.wrap { width:min(1180px,calc(100% - 56px));margin-inline:auto }
.skip { position:absolute;left:12px;top:-80px;background:white;padding:12px;z-index:2 }
.skip:focus { top:8px }
.top { background:#fff;border-bottom:1px solid var(--line) }
.top-inner,.brand,.top nav,.eyebrow,.toolbar,.tabs,.destination,.history summary,.card-actions,.form-actions,#team-title { display:flex;align-items:center }
.top-inner { min-height:68px;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-block:10px }
.brand { gap:8px;letter-spacing:-.06em;font-size:1.24rem }
.top nav { gap:14px }
.top nav a { color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-size:.86rem }
button { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font:inherit;font-size:.86rem;font-weight:660;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 13px }
button:hover { border-color:#9e927d;background:#faf9f5 }
button.primary { color:#fff;background:var(--dark);border-color:var(--dark) }
button.primary:hover { background:#453f35 }
button:disabled { opacity:.55 }
svg { width:17px;height:17px;flex:none }
main { padding-block:32px 70px }
.heading { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:23px }
.eyebrow { gap:7px;color:#675e4d;font-size:.83rem;font-weight:680 }
h1,h2,h3 { font-family:var(--display);letter-spacing:-.045em;line-height:1.12 }
h1 { margin:5px 0 0;font-size:clamp(2.45rem,5vw,4rem) }
h1 span { color:#b89437 }
h2 { font-size:1.35rem;margin:0 }
.tools { display:grid;justify-items:end;gap:7px }
.toolbar { gap:6px }
.sync { color:var(--muted);font-size:.78rem }
.sync::before { content:"";display:inline-block;vertical-align:middle;width:7px;height:7px;margin-right:6px;border-radius:100%;background:#a19c90 }
.sync[data-state="live"]::before { background:#4b795a }
.sync[data-state="offline"]::before { background:#b5762d }
#sound[aria-pressed="true"] { background:#fbf4e4;border-color:#dfc99a;color:#6e5421 }
.tabs { flex-wrap:wrap;width:fit-content;max-width:100%;gap:3px;padding:4px;background:#ece9e1;border:1px solid #dedacf;border-radius:13px;margin-bottom:16px }
.tabs button { background:none;border:1px solid transparent;min-height:42px;padding:8px 13px;color:#625d52 }
.tabs button[aria-selected="true"] { color:#29271f;border-color:#d6d1c6;background:#fff;box-shadow:0 1px 3px #342c1a12 }
.tabs b { min-width:21px;padding:2px 6px;border-radius:6px;background:#dbd7cd;color:#595348;font-size:.77rem }
.tabs [aria-selected="true"] b { background:#eee4c8;color:#664e19 }
#work-panel { min-height:80px }
.queue { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(310px,100%),1fr));gap:15px;align-items:start }
.card,.empty,.login,dialog,.history { border:1px solid var(--line);background:white;border-radius:14px }
.card { min-width:0;padding:17px;box-shadow:var(--panel-shadow);overflow-wrap:anywhere }
.card-head { display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap }
.destination { gap:7px;min-width:0 }
.destination>svg { color:#926d20 }
.destination h3 { margin:0;font-size:1.28rem }
.wait,.issue-badge,.progress-mark,.assignment { display:inline-flex;align-items:center;gap:5px;font-size:.78rem;line-height:1.4 }
.wait { background:#f5f2e9;color:#69572d;border-radius:6px;padding:3px 6px;white-space:nowrap }
.wait svg,.issue-badge svg,.progress-mark svg,.assignment svg { width:14px;height:14px }
.card p,.dialog-content p { line-height:1.45 }
.meta,.card small,.history small,.dish-list small,.issue-list small { color:var(--muted);font-size:.8rem;line-height:1.45 }
.card .meta { margin:5px 0 12px }
.order-note { margin:9px 0;display:flex;align-items:flex-start;gap:8px;background:#fbf5e4;color:#574720;border-left:3px solid #ceb16b;border-radius:0 6px 6px 0;padding:8px 9px;font-size:.85rem;white-space:pre-line }
.order-note svg { margin-top:2px;width:15px;height:15px }
.order-note b { display:block;font-size:.74rem }
.preview-items,.dish-list,.issue-list,.history ol { list-style:none;margin:0;padding:0 }
.preview-items { display:grid;gap:5px;font-size:.9rem;line-height:1.4 }
.preview-items li { display:flex;align-items:baseline;gap:4px }
.preview-items small { display:block;color:#75603d;white-space:pre-line }
.preview-items b { display:inline-block;min-width:1.9em;color:#6a6253 }
.progress-mark,.assignment,.issue-badge { display:flex;width:fit-content;margin-top:9px }
.progress-mark { color:#39604c }
.issue-badge { color:#89501e;font-weight:640 }
.assignment { color:#5f584a }
.card-actions { gap:8px;justify-content:space-between;border-top:1px solid #e9e5dd;margin-top:13px;padding-top:11px }
.card-actions>button { flex:1 }
.card-actions>button:only-child { flex:none }
.card-actions .secondary { background:#fff }
#team-title { gap:7px;margin:24px 0 12px;font-size:1.11rem;color:#575144 }
.colleague { background:#fdfcf9 }
.empty { margin:0;padding:26px 20px;color:var(--muted);font-size:.92rem;border-style:dashed;text-align:center }
.history { margin-top:22px;padding:0 16px }
.history summary { display:grid;grid-template-columns:auto minmax(0,1fr) auto;cursor:pointer;gap:8px;min-height:52px;font-weight:650;list-style:none;padding-block:7px }
.history summary::-webkit-details-marker { display:none }
.history .chevron { margin-left:auto }
.history[open] .chevron { transform:rotate(180deg) }
.history summary small { margin-left:4px;font-weight:400;white-space:nowrap }
.history ol { padding-bottom:12px }
.recent { display:grid;gap:3px;overflow-wrap:anywhere;border-top:1px solid var(--line);padding:10px 0;font-size:.86rem;line-height:1.45 }
.notice,#feedback { padding:10px 14px;border-radius:8px;font-size:.9rem }
.notice { background:#fff3e2;border:1px solid #e4bd7b;color:#69441f }
#feedback { background:#eaf2e9;color:#30513d;border:1px solid #cedfcf;margin:0 0 12px }
.login { max-width:420px;margin:5vh auto;padding:clamp(20px,4vw,35px) }
.login form { display:grid;gap:18px;margin-top:26px }
.login input { width:100%;border:1px solid var(--line);border-radius:8px;min-height:44px;padding-left:42px;font:inherit }
dialog { color:var(--ink);width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 36px);padding:0;box-shadow:0 18px 60px #302a1d40;overflow:hidden }
dialog[open] { display:flex;flex-direction:column }
dialog::backdrop { background:#20231f69 }
.dialog-head { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line) }
.dialog-head p { margin:0 0 5px;color:var(--muted);font-size:.8rem;overflow-wrap:anywhere }
.dialog-head h2 { font-size:1.42rem;margin:0 }
#dialog-close { width:42px;min-width:42px;padding:8px }
.dialog-content { padding:15px 20px 20px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere }
.dialog-content h3 { margin:14px 0 8px;font-size:1.07rem }
.dialog-content h3:first-child,.dialog-content p:first-child,#dialog-body>p:first-child { margin-top:0 }
.dialog-content .notice { margin-top:0 }
.dish-list,.issue-list { border-block:1px solid var(--line) }
.dish-list li { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 }
.dish-list li + li,.issue-list li + li { border-top:1px solid #eeeae3 }
.dish-list b { font-size:.92rem }
.dish-list small { display:block;margin-top:2px;white-space:pre-line }
.quantity { flex:none;background:#f3f1e9;color:#544e42;padding:4px 7px;border-radius:6px;font-size:.78rem;font-weight:650 }
.issue-list li { padding:10px 0 }
.issue-list p { font-size:.85rem;margin:.2em 0 }
.detail-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:16px }
.detail-actions button { justify-content:flex-start;font-size:.81rem;text-align:left }
.wide { width:100%;margin-top:10px }
#dialog-body form { display:grid;gap:13px }
#dialog-body form>p { margin:0;font-size:.91rem }
#dialog-body form>label { display:grid;gap:5px;font-size:.9rem;font-weight:640 }
#dialog-body select,#dialog-body textarea,#dialog-body input { font:inherit;color:var(--ink);background:#fff;border:1px solid var(--field-line);border-radius:8px;padding:9px;min-height:44px }
#dialog-body select,#dialog-body textarea { width:100% }
#dialog-body textarea { resize:vertical }
#dialog-body input[type=number] { width:4.5em;flex:none;text-align:center }
.form-actions { justify-content:flex-end;gap:8px;flex-wrap:wrap }
.selected { color:var(--muted) }
@media (max-width:640px) {
  .wrap { width:calc(100% - 28px) } main { padding-top:21px }
  .top nav { gap:9px }.brand { font-size:1.02rem }
  .top-inner { min-height:60px }
  .heading { align-items:center;gap:14px;padding-bottom:15px;margin-bottom:15px }
  .tools { justify-items:start }.toolbar button { padding-inline:10px }
  .tabs { width:100%;flex-wrap:nowrap }
  .tabs button { flex:1;min-width:0;font-size:.81rem;line-height:1.2;padding:7px 5px }
  .card { padding:14px }
  .history { padding-inline:12px }.history summary { column-gap:6px }
  .history summary small { display:block;margin:2px 0 0;font-size:.73rem }
}
@media (max-width:395px) {
  .heading { display:grid }.tools { display:flex;align-items:center;justify-content:space-between;gap:6px }
  .toolbar button { padding:8px } #refresh span { display:none }
  .dialog-head,.dialog-content { padding-inline:15px }.detail-actions { grid-template-columns:1fr }
}
