body.screen { font-family: var(--font-body); line-height: 1.4; -webkit-font-smoothing: antialiased; }
/* Host display: large type, readable from across the room. */
.screen { min-height: 100vh; min-height: 100dvh; margin: 0; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; background: var(--h-panel); border-bottom: 1px solid var(--h-line); flex-wrap: wrap; }
.screen-top strong { display: block; font-size: 1.5rem; }
.screen-top > div:first-child span { color: var(--h-muted); font-size: 1rem; }
.screen-clock { font-size: 3rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.screen-counts { display: flex; gap: 22px; font-size: 1.1rem; color: var(--h-muted); }
.screen-counts b { font-size: 2rem; color: var(--h-ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.screen-body { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px 28px; }
@media (min-width: 1100px) { .screen-body { grid-template-columns: 1fr 340px; } }
.screen-zone { margin-bottom: 22px; }
.screen-zone h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--h-muted); margin: 0 0 10px; }
.screen-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.screen-table { border: 2px solid; border-radius: var(--r-card); padding: 12px; min-height: 96px; display: flex; flex-direction: column; gap: 2px; }
.screen-table strong { font-size: 1.6rem; }
.screen-table span { font-size: 1rem; font-weight: 600; }
.screen-table small { color: var(--h-muted); font-size: .9rem; }
.screen-table.st-available { opacity: .7; }
.screen-side { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: var(--r-card); padding: 18px; align-self: start; }
.screen-side h2 { margin: 0 0 12px; font-size: 1.2rem; }
.screen-side ul { list-style: none; padding: 0; margin: 0; }
.screen-side li { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--h-line); font-size: 1.15rem; }
.screen-side li b { font-variant-numeric: tabular-nums; }
.screen-side li em { font-style: normal; text-align: right; color: var(--h-muted); }
.screen-side li.is-here { color: var(--h-accent); font-weight: 700; }
.screen-empty, .screen-note { color: var(--h-muted); font-size: .95rem; }

/* Kitchen screen: big type, tiles sized by party. */
.kitchen-body { padding: 20px 28px; }
.kitchen-grid { display: grid; gap: 16px; grid-template-columns: repeat(24, 1fr); grid-auto-flow: dense; align-items: start; }
.kitchen-card { background: var(--h-panel); border: 3px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 10px; align-content: start; grid-column: span 7; }
.kitchen-card.size-s { grid-column: span 5; }
.kitchen-card.size-m { grid-column: span 7; }
.kitchen-card.size-l { grid-column: span 10; }
.kitchen-card.size-xl { grid-column: span 14; }
.kitchen-card.is-due { border-style: dashed; background: transparent; }
.kitchen-card.has-alert { border-color: var(--danger); }
.kitchen-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kitchen-card header strong { font-size: 2.5rem; line-height: 1; }
.size-l header strong, .size-xl header strong { font-size: 3rem; }
.k-cov { font-size: 1.25rem; font-weight: 700; color: var(--h-muted); }
.k-cov b { font-size: 2.25rem; color: var(--h-ink); margin-right: 4px; }
.k-area { margin: -4px 0 0; color: var(--h-muted); font-size: 1.125rem; font-weight: 600; }
.k-when { margin: 0; font-size: 1.25rem; font-weight: 700; }
.k-courses { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.size-l .k-courses, .size-xl .k-courses { grid-template-columns: repeat(3, 1fr); }
.k-courses li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-card); background: var(--h-bg); color: var(--h-muted); font-size: 1.25rem; }
.size-l .k-courses li, .size-xl .k-courses li { grid-template-columns: 32px 1fr; }
.size-l .k-courses em, .size-xl .k-courses em { grid-column: 2; }
.k-courses li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed currentColor; font-weight: 800; font-size: 1.125rem; }
.k-courses li em { font-style: normal; font-weight: 800; font-size: 1rem; }
.k-courses li.k-done { background: var(--s-seated); color: var(--s-seated-edge); } .k-courses li.k-done span { background: var(--s-seated); border: 1px solid var(--s-seated-edge); color: var(--ink); }
.k-courses li.k-doing { background: var(--s-arriving); color: var(--s-arriving-edge); } .k-courses li.k-doing span { border: 3px solid var(--s-arriving-edge); background: var(--s-arriving); }
.kitchen-alert { margin: 0; background: var(--danger); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-card); font-weight: 800; font-size: 1.25rem; }
.kitchen-tags { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.kitchen-tags span { background: var(--s-arriving); color: var(--s-arriving-edge); border: 2px solid var(--s-arriving-edge); border-radius: var(--r-ctl); padding: 3px 14px; font-size: 1.125rem; font-weight: 700; text-transform: capitalize; }
.k-occ { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--h-accent); }
.kitchen-note { margin: 0; color: var(--h-muted); font-size: 1.125rem; }

/* Front-of-house display */
.foh-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 14px 32px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.foh-top strong { font-size: 1.5rem; display: block; } .foh-top span { color: var(--muted); }
.foh-kpis { display: flex; justify-content: center; gap: 12px; }
.foh-kpi { background: rgba(255,255,255,.08); border-radius: var(--r-card); padding: 8px 22px; text-align: center; min-width: 140px; }
.foh-kpi b { display: block; font-size: 2.5rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.foh-kpi span { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.foh-kpi.hot { background: var(--s-arriving-edge); color: var(--accent-ink); } .foh-kpi.hot span { color: var(--accent-ink); }
.foh-clock { font-size: 3.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.foh-body { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 20px; padding: 20px 32px; }
.foh-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.foh-plan:first-child { grid-column: 1 / -1; }
.foh-plan h2 { margin: 0 0 8px; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--h-muted); display: flex; justify-content: space-between; }
.foh-plan h2 small { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.foh-plan .room { aspect-ratio: 16 / 9; }
.foh-plan:first-child .room { aspect-ratio: 2 / 1; }
.foh-plan .ft { cursor: default; }
.foh-plan .chair { display: none; }
.foh-side { display: grid; gap: 16px; align-content: start; }
.foh-card { background: var(--h-panel); border: 1px solid var(--h-line); border-radius: 16px; padding: 14px 18px; }
.foh-card h2 { margin: 0 0 6px; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; }
.foh-card h2 small { color: var(--h-muted); font-weight: 600; font-size: 1rem; }
.foh-list { list-style: none; margin: 0; padding: 0; }
.foh-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--h-line); font-size: 1.25rem; }
.foh-list li:first-child { border-top: 0; }
.foh-list time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.375rem; }
.foh-list .who { display: block; font-weight: 700; } .foh-list .meta { display: block; font-size: 1rem; color: var(--h-muted); font-weight: 600; }
.foh-list .tag { font-size: .9375rem; font-weight: 800; padding: 4px 12px; border-radius: var(--r-ctl); background: var(--s-arriving); color: var(--muted); white-space: nowrap; }
.foh-list .tag.here { background: var(--s-arrived); color: var(--s-arrived-edge); } .foh-list .tag.late { background: var(--s-arriving); color: var(--s-arriving-edge); } .foh-list .tag.soon { background: var(--s-seated); color: var(--s-seated-edge); }
.foh-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; color: var(--h-muted); font-weight: 600; margin-top: 10px; }
.foh-empty { color: var(--h-muted); margin: 6px 0; font-size: 1.0625rem; }
@media (max-width: 1100px) { .foh-body { grid-template-columns: 1fr; } .foh-top { grid-template-columns: 1fr; } .kitchen-card { grid-column: span 24 !important; } }

.k-chip { font-size: 1.125rem; font-weight: 800; padding: 6px 16px; border-radius: var(--r-ctl); background: var(--s-arriving); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.k-chip-starters, .k-chip-mains, .k-chip-dessert { background: var(--s-arriving); color: var(--s-arriving-edge); }
.k-chip-bill { background: var(--s-bill); color: var(--s-arrived-edge); } .k-chip-due { background: var(--surface); border: 2px dashed var(--line); }
.k-area b { color: var(--h-ink); }
.kitchen-card.has-alert { border-color: var(--danger); }

/* Wall screen: tables sized so every label fits, in all three rooms. */
.foh-plan:first-child .ft { scale: 1.12; }
.foh-plan:not(:first-child) .room { aspect-ratio: 3 / 2; }
.foh-plan:not(:first-child) .ft { scale: 1.5; }
.foh-plan:not(:first-child) .ft-sub { display: none; }
.foh-plan:not(:first-child) .ft-state { font-size: clamp(.8125rem, 2.1cqw, 1rem); }
.foh-plan:not(:first-child) .ft-num { font-size: clamp(1rem, 3cqw, 1.375rem); }
.foh-plan .ft-body { overflow: visible; }

.foh-plan:not(:first-child) .ft.shape-round, .foh-plan:not(:first-child) .ft.shape-oval { scale: 1.8; }
.foh-plan:first-child .ft-body { gap: 0; }
.foh-plan:first-child .ft-sub { font-size: .8125rem; line-height: 1.05; }
.foh-plan:not(:first-child) .ft.shape-round .ft-state, .foh-plan:not(:first-child) .ft.shape-oval .ft-state { font-size: .52rem; letter-spacing: 0; }
.foh-plan:not(:first-child) .ft.shape-round .ft-num, .foh-plan:not(:first-child) .ft.shape-oval .ft-num { font-size: .78rem; }
/* The wall screen's tables are plain colours, so its key is too (hatching is for the host floor). */
.screen .key i { background-image: none !important; }
/* The small side door label is too long for the room edge it sits on. */
.foh-plan:not(:first-child) .lm.kind-door span { display: none; }
.foh-plan:not(:first-child) .lm.kind-door { display: none; }
.foh-plan:not(:first-child) .ft { translate: 2.5cqw 5cqw; }
