/* Large type and strong contrast for use during service. */
:root{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;--muted:#444;--line:#bbb}
body{font-size:16px}
button{min-height:50px;font-size:16px;font-weight:700;border-color:#888}
button:focus-visible,a:focus-visible{outline:3px solid #111}
.topbar{border-bottom:2px solid #111}
.brand{font-size:32px;font-weight:800;letter-spacing:-1px;white-space:nowrap}
.header-actions{gap:18px}
.header-actions .quiet{font-size:16px}
#connection{font-size:14px;font-weight:700;color:#222}
nav{border-bottom:2px solid #111;gap:8px}
nav button{font-size:16px;font-weight:700;min-height:50px}
nav .count{font-size:14px;font-weight:700;background:#e4e4e4;color:#111}
main{padding-top:30px;max-width:1200px}
h1{font-size:32px;font-weight:800;letter-spacing:-.7px}
h2{font-size:24px;font-weight:800;letter-spacing:-.3px}
h3{font-size:19px;font-weight:700}
.panel,.ticket{border:2px solid #aaa}
.panel-head{border-bottom:2px solid #ddd}
.order-entry{max-width:760px}
.field>span,.label{font-size:17px;font-weight:700;margin-bottom:10px}
.field input,.field textarea,.field select{font-size:19px;font-weight:500;border:2px solid #888;padding:14px;color:#111}
.field input::placeholder,.field textarea::placeholder{color:#555;opacity:1}
.field textarea{line-height:1.7;min-height:245px}
.field small{font-size:14px;font-weight:500;color:#333;line-height:1.6}
.form-footer{border-top:2px solid #ddd}
.form-footer button{font-size:18px;min-height:56px;padding:14px 28px}
.primary{background:#111;color:white;border-color:#111}
.segmented{border:2px solid #888}
.segmented button{font-size:16px;font-weight:700;min-height:44px}
.search{font-size:16px;border:2px solid #888;min-height:50px;width:250px}
.ticket-top{padding:20px;border-bottom:2px dashed #bbb}
.ticket-top h2{font-size:26px;font-weight:800}
.ticket-top small{font-size:15px;color:#333;font-weight:600;line-height:1.8}
.ticket-number{font-size:16px;font-weight:700;color:#222}
.ticket-item{font-size:19px;padding:18px 0;gap:14px;font-weight:700}
.item-name{line-height:1.5}
.item-name small{font-size:16px;font-weight:600;color:#222;line-height:1.6;margin-top:5px}
.qty{width:34px;min-width:34px;height:34px;font-size:18px;font-weight:800;background:#e8e8e8;color:#111}
.pill{font-size:13px;font-weight:700;color:#222;border-color:#999;padding:7px}
.ticket-bottom button{font-size:17px;min-height:54px}
.source-order{font-size:15px;color:#222;font-weight:600}
.source-order summary{min-height:44px;padding-top:12px}
.source-order pre{font-size:14px;font-weight:500;color:#111}
.alert{font-size:16px;font-weight:600;line-height:1.6;border-color:#555}
.toast{font-size:16px;font-weight:700}
.empty-state h2{font-size:24px}
.login summary,.login details{font-size:15px}
.login .subtext,.footnote,.settings-section p{font-size:14px;color:#333}
.menu-row{font-size:15px;grid-template-columns:1fr 125px 50px}
.menu-row select,.menu-add input,.menu-add select,.action-row button{font-size:14px}
.menu-add{grid-template-columns:1fr 125px}
@media(max-width:750px){
  .topbar{height:auto;min-height:76px;padding:12px 16px;flex-wrap:wrap;gap:8px}
  .brand{font-size:29px}
  .header-actions{gap:6px;margin-left:auto}
  .header-actions .quiet{font-size:14px;padding:8px}
  #connection{font-size:12px}
  nav{padding:7px 4px calc(7px + env(safe-area-inset-bottom));gap:2px;border-top:2px solid #111}
  nav button{font-size:12px;font-weight:700;padding:8px 2px;gap:4px;min-height:56px}
  nav .count{font-size:12px;min-width:22px;padding:2px 5px}
  main{padding:22px 14px 115px}
  h1{font-size:28px}
  h2{font-size:23px}
  .panel{padding:20px}
  .field textarea{min-height:220px;font-size:18px}
  .field input{font-size:18px}
  .field small{font-size:14px}
  .form-footer button{width:100%;font-size:18px}
  .toolbar{flex-wrap:wrap;gap:14px}
  .segmented button{font-size:15px;padding:8px 14px}
  .search{width:100%;font-size:16px}
  .ticket-item{font-size:18px}
  .item-name small{font-size:16px}
  .ticket-top h2{font-size:25px}
  .toast{bottom:100px}
  .menu-row{grid-template-columns:1fr 105px 44px;font-size:14px}
  .menu-add{grid-template-columns:1fr 105px}
}

.menu-panel{max-width:760px;margin:20px auto 0;font-size:16px;color:#333;line-height:1.7;border-color:#999;padding:24px}.menu-panel strong{font-size:17px;color:#111;margin-bottom:8px}.menu-links{display:flex;gap:24px;flex-wrap:wrap;margin-top:10px}.menu-links button{font-size:16px;font-weight:700;color:#111;min-height:44px}

/* One stable queue at every screen size. */
.tickets{display:flex;flex-direction:column;gap:22px;max-width:760px;margin:0 auto;overflow-anchor:none}
.ticket{width:100%;flex:none;animation:none!important;transform:none;scroll-margin-top:20px;border-color:#cbd5e1;border-top:6px solid var(--station-color,#1d4ed8)}
.ticket:focus{outline:none}
.ticket-top{background:var(--station-tint,#eff6ff);border-bottom-color:#cbd5e1}
[data-station="new"]{--station-color:#1d4ed8;--station-tint:#eff6ff}
[data-station="Counter"]{--station-color:#0f766e;--station-tint:#f0fdfa}
[data-station="Kitchen"]{--station-color:#9a3412;--station-tint:#fff7ed}
[data-station="Sandwiches"]{--station-color:#7e22ce;--station-tint:#faf5ff}
[data-station="Drinks"]{--station-color:#1d4ed8;--station-tint:#eff6ff}
nav button[data-station]{color:var(--station-color);background:var(--station-tint);border:1px solid transparent}
nav button[aria-current="page"]{background:var(--station-color);color:white;border-color:var(--station-color)}
nav button[aria-current="page"] .count{background:white;color:var(--station-color)}
.station-label{color:var(--station-color)!important;font-weight:700!important}
.pill[data-station]{background:var(--station-tint);color:var(--station-color);border-color:var(--station-color)}
.pill.done{background:#dcfce7!important;color:#166534!important;border-color:#15803d!important}
.ticket-bottom .primary{background:#15803d;border-color:#15803d;color:white}
.ticket-bottom .primary:hover{background:#166534}
.order-entry .primary,.login .primary{background:#1d4ed8;border-color:#1d4ed8}
.segmented button.active{background:#1d4ed8}
.qty{background:#e2e8f0;color:#0f172a}
#connection.live{color:#166534}
#connection.live:before{background:#15803d}
.alert{background:#fff7ed;border-color:#9a3412}
.toolbar,.page-head{max-width:760px;margin-left:auto;margin-right:auto}
.menu-item-row{grid-template-columns:1fr 50px}
.station-row{grid-template-columns:1fr 145px}
.menu-add{grid-template-columns:1fr}
@media(max-width:750px){.menu-item-row{grid-template-columns:1fr 44px}.station-row{grid-template-columns:minmax(0,1fr) 120px}}

#import-preview{border-top:2px solid #ddd;margin-top:20px;padding-top:20px}.import-items{max-height:220px;overflow:auto;margin-top:12px;font-size:15px;line-height:1.7}.import-items>div{padding:6px 0;border-bottom:1px solid #eee}
nav .clear-all{margin-left:auto;flex:none;color:#991b1b;background:#fff;border:1px solid #b91c1c}
nav .clear-all:hover{background:#fef2f2}
.danger{background:#b91c1c;border-color:#b91c1c;color:#fff}.danger:hover{background:#991b1b}
#clear-orders p{font-size:16px;line-height:1.6}
@media(max-width:750px){nav .clear-all{flex:1;margin-left:2px;font-size:11px;padding:8px 3px}nav button[data-page]{font-size:11px;letter-spacing:-.2px}}
.header-actions .save-icon{height:46px;min-height:46px;padding:10px 15px;display:flex;align-items:center;justify-content:center;gap:8px;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;font-size:16px;font-weight:700;box-shadow:0 1px 2px #0f172a0d}
.header-actions .save-icon:hover{background:#dbeafe;border-color:#93c5fd}.header-actions .save-icon svg{width:20px;height:20px;flex:none}.header-actions .save-icon span{line-height:1}
@media(max-width:750px){.header-actions .save-icon{height:44px;min-height:44px;padding:10px 11px;gap:6px;font-size:14px}.header-actions{gap:5px}}

.dialog-head{gap:12px}.dialog-head h2{flex:1}#settings-content>.menu-panel{margin-top:0;margin-bottom:20px}#settings-back{padding:10px 16px;text-align:center}

#order-suggestions{position:fixed;z-index:8;overflow-y:auto;background:white;border:2px solid #1d4ed8;border-radius:7px;box-shadow:0 5px 18px #0f172a26}
#order-suggestions button{display:block;width:100%;text-align:left;min-height:48px;border:0;border-bottom:1px solid #ddd;border-radius:0;padding:10px 12px;font-size:15px;line-height:1.5;font-weight:600;color:#111;background:white}
#order-suggestions button:last-child{border-bottom:0}#order-suggestions button:hover,#order-suggestions button[aria-selected="true"]{background:#eff6ff;color:#1d4ed8}
.submission-note{margin:16px 20px 0;padding:12px;border:1px solid #b45309;background:#fffbeb;color:#78350f;font-size:14px;line-height:1.6;font-weight:600}.review-item{color:#92400e!important}

.tickets{gap:14px}.ticket{border-top-width:4px}
.order-details>summary{list-style:none;cursor:pointer;user-select:none}.order-details>summary::-webkit-details-marker{display:none}
.order-details>summary:focus-visible{outline:3px solid var(--station-color);outline-offset:-3px}
.ticket-top{padding:14px 18px;border-bottom:0}.order-details[open]>.ticket-top{border-bottom:1px dashed #cbd5e1}
.ticket-top h2{font-size:23px;line-height:1.3}.ticket-top small{font-size:13px;line-height:1.6}
.ticket-overview{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#475569;margin-top:5px}
.notes-indicator{font-size:11px;font-weight:700;color:#92400e;background:#fef3c7;padding:2px 7px;border-radius:4px}
.ticket-side{display:flex;align-items:center;gap:12px}.ticket-number{font-size:14px}.expand-indicator{font-size:24px;font-weight:500;line-height:1;color:#475569}
.expand-indicator:before{content:'+'}.order-details[open] .expand-indicator:before{content:'−'}
.ticket-item{padding:12px 0;font-size:17px;gap:12px}.item-name small{font-size:15px;margin-top:3px}.qty{width:30px;min-width:30px;height:30px;font-size:16px}
.ticket-bottom{padding:10px 16px}.ticket-bottom button{min-height:44px;font-size:16px;padding:9px 14px}
.source-order{font-size:14px}.source-order pre{font-size:13px}

.sound-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.sound-controls label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700;cursor:pointer}.sound-controls input{width:22px;height:22px;accent-color:#1d4ed8}

.item-price{margin-left:auto;min-width:70px;text-align:right;flex:none;white-space:nowrap;font-size:16px}.item-price small{display:block;font-size:12px;font-weight:500;margin-top:4px}.ticket-item .item-name{min-width:0;flex:1}.order-total{display:flex;justify-content:space-between;gap:16px;margin:2px 0 12px;font-size:20px;font-weight:800}.menu-item-row{grid-template-columns:minmax(0,1fr) 108px 44px}.menu-price{display:flex;align-items:center;gap:5px}.menu-price input{width:86px;min-height:44px;border:1px solid #888;border-radius:5px;padding:7px;font:inherit}@media(max-width:750px){.menu-item-row{grid-template-columns:minmax(0,1fr) 92px 40px}.menu-price input{width:72px}.item-price{min-width:60px;font-size:15px}.item-price small{font-size:11px}}
