/* Screen-only identity; thermal print and business logic keep their existing rules. */
@media screen {
.live-operation { --brand-red:#b5091c; --brand-red-dark:#8f101e; --brand-ink:#1d1c20; --border:#e7e1de; background:#f7f5f3; color:var(--brand-ink); }
.live-operation > header { background:#19191d; border-bottom:1px solid #33272c; box-shadow:0 3px 10px #1b151c16; }
.live-operation #session .live-exit-button { background:#29282e; color:#fff; border-color:#514149; }
.live-operation .panel { border-color:var(--border); box-shadow:0 2px 8px #3423220a; }
.astro-welcome { position:relative; isolation:isolate; overflow:hidden; min-height:clamp(172px,26vw,282px); display:grid; align-items:center; border-radius:20px; margin:4px 0 24px; background:#08080c; color:white; }
.astro-art,.astro-art img { position:absolute; display:block; inset:0; width:100%; height:100%; }
.astro-art { z-index:-2; }
.astro-art img { object-fit:cover; object-position:center 38%; }
.astro-welcome::before {content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#08080cdd 0%,#08080c85 44%,#08080c06 73%);pointer-events:none;}
.astro-welcome.astro-drift .astro-art img { animation:astro-arrive 1.1s cubic-bezier(.21,.58,.36,1) both; }
@keyframes astro-arrive { from {transform:translate3d(4px,3px,0) scale(1.035)} to {transform:translate3d(0,0,0) scale(1)} }
.astro-copy { padding:22px clamp(15px,4vw,43px) 24px; }
.astro-eyebrow { margin:0 0 8px; color:#f6bec4; font-size:.76rem; text-transform:uppercase; letter-spacing:.14em; font-weight:780; }
.astro-copy h1 { margin:0; color:white; font-size:clamp(1.68rem,5.35vw,3.75rem); letter-spacing:-.044em; line-height:1.02; font-weight:820; }
.astro-role { position:absolute; right:12px; bottom:12px; border:1px solid #ffffff50; border-radius:99px; background:#201c23e8; color:#fff; padding:4px 9px; font-size:.72rem; }
.home-local-head { margin-bottom:10px; }
.home-local-head h2 { font-size:clamp(1.22rem,3vw,1.48rem); letter-spacing:-.02em; }
.home-branch { border-radius:16px; box-shadow:0 2px 10px #25161709; }
.home-branch-icon { background:#f9e9eb; }
.home-stats>div { background:#f7f4f2; }
.branch-entry { justify-content:center; background:#f9ecee; color:#911022; border:1px solid #e8cfd3; }
.home-panel-link { margin:16px 0 0; background:var(--brand-red); border-color:var(--brand-red); color:white; min-height:67px; gap:11px; padding:11px 13px; }
.home-panel-link strong {margin-bottom:2px;}
.home-panel-link small {color:#ffe9ec;}
.home-panel-link .home-panel-icon { width:39px; height:39px; background:#ffffff24; }
.home-panel-arrow { margin-left:auto; }
.home-panel-arrow svg { display:block; width:21px; height:21px; }
.home-panel-link:not(.quiet):not(:disabled):hover { background:#991023; color:white; border-color:#991023; }
.dreco-section-title { display:flex; align-items:center; gap:7px; }
.dreco-section-title svg { width:1.16em; height:1.16em; color:var(--brand-red-dark); flex:none; }
.dreco-add-item { justify-content:center; }
.counter .sale-tabs button,.counter .checkout-actions button,.counter .add-fields button { min-height:44px; }
.counter .sale-tabs button[aria-pressed=true] { color:var(--brand-red-dark); }
.dash-kpis .dash-metric:first-child { background:#232127;color:white;border-color:#232127; }
.dash-kpis .dash-metric:first-child :is(dd,dt) { color:white; }
.dash-kpis .dash-metric:first-child small { color:#f6dfdf; }
@media(max-width:760px) {
 .astro-welcome { margin:2px 0 15px; border-radius:16px; }
 .astro-art img { object-position:center 39%; }
 .astro-copy { padding:20px 13px; }
 .astro-eyebrow { font-size:.62rem; letter-spacing:.08em; }
 .astro-role { right:8px; bottom:8px; font-size:.64rem; }
 .home-locals { gap:9px; }
 .home-stats{ margin:9px 0;}
 .home-branch-title h3{ text-wrap:initial; }
 .home-panel-link{margin:11px 0 0;}
 .live-operation .mobile-tab .tab-icon svg{width:21px;height:21px}
}
@media(prefers-reduced-motion:reduce) {
 .astro-welcome.astro-drift .astro-art img {animation:none;transform:none;}
}
}

@media screen {
 .astro-panel-button {
   display:inline-flex; gap:7px; align-items:center; justify-content:center; min-height:44px;
   margin-top:15px; padding:7px 10px; border:1px solid #fa97a290;
   border-radius:10px; background:#ad0c21; color:white; font-size:clamp(.83rem,2.95vw,1rem);
   font-weight:780; white-space:nowrap; box-shadow:0 4px 14px #07040850;
 }
 .astro-panel-button svg {width:17px;height:17px;flex:none}
 .astro-panel-button:focus-visible {outline-color:white;outline-offset:3px}
 .astro-welcome:has(.astro-panel-button) .astro-copy {padding-bottom:17px;}
 @media(max-width:390px) {
   .astro-panel-button {gap:5px;padding-inline:8px;margin-top:11px;}
   .astro-panel-button svg {width:15px;height:15px;}
 }
}

@media screen {
 #buyer,#c-name,#guest-name,[data-key="name"] {text-transform:uppercase}
 .astro-panel-button {position:relative; z-index:1;}
 .astro-panel-button svg {display:block;width:17px;height:17px;max-width:17px;min-width:17px;}
 @media(min-width:761px) {
  .astro-welcome:has(.astro-panel-button) .astro-copy{padding-block:24px}
  .astro-panel-button{margin-top:17px}
 }
 body:has(#order-detail-dialog[open]) {overflow:hidden}
 #order-detail-dialog {width:min(640px,calc(100% - 24px));padding:0 18px 18px;max-height:min(90vh,800px);max-height:min(90dvh,800px);overscroll-behavior:contain}
 #order-detail-dialog::backdrop {background:#111016a8}
 .order-modal-header {display:flex;position:sticky;top:0;z-index:1;gap:10px;align-items:center;justify-content:space-between;background:white;padding:14px 0 12px;border-bottom:1px solid var(--border)}
 .order-modal-header h2{font-size:clamp(1rem,4vw,1.38rem);margin:3px 0 0;overflow-wrap:anywhere;line-height:1.22}
 .order-modal-header .kicker {margin:0;font-size:.68rem}
 #order-detail-close {min-height:44px;flex:none}
 #order-return-profile{margin-top:12px}
 .order-search-panel {max-width:980px}
}
