:root {
  --bg: #081222;
  --surface: #0e1726;
  --alt: #142034;
  --line: #25334a;
  --text: #eef3ff;
  --muted: #bccae0;
  --clock: #ffc94d;
  --button: #355da6;
  --edge: #22407a;
  --banner: #2b1019;
  --banner-text: #f4dfe2;
  --banner-edge: #8a5964;
  --head: #172846;
  --head-text: #c5d1e8;
  --select: #263f66;
}
@font-face { font-family: Inter; src: url("fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/Inter-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.desk { height: 100%; width: 100%; display: flex; flex-direction: column; padding: 8px 18px 18px; gap: 12px; overflow-x: hidden; overflow-y: auto; }
.top { display: grid; grid-template-columns: minmax(280px, 1.2fr) auto minmax(320px, 1fr); grid-template-areas: "venue clock side"; gap: 18px; align-items: center; }
.top.charity { grid-template-areas: "charity charity charity" "venue clock side"; }
.center { grid-area: clock; }
.side { grid-area: side; }
#charity { grid-area: charity; }
.venue { grid-area: venue; display: flex; gap: 12px; align-items: center; min-width: 0; }
.mark { width: 64px; height: 64px; display: grid; place-items: center; font-size: 54px; color: #c3d1f5; flex: none; }
.mark img { width: 40px; height: 40px; object-fit: contain; }
.venue-copy { min-width: 0; }
.header-qr { flex: none; margin-left: 6px; background: #fff; line-height: 0; }
.header-qr img { width: 88px; height: 88px; display: block; image-rendering: pixelated; }
.top.compact .header-qr img { width: 72px; height: 72px; }
.top.charity .header-qr img { width: 56px; height: 56px; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stayLine, #callLine { margin: 0; color: var(--muted); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
#charity { margin: 0 0 2px; font-size: 18px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#clock { margin: 0; font-size: 56px; font-weight: 700; line-height: 1; color: var(--clock); }
.brandlock { display: block; height: 104px; width: auto; margin: 2px auto 0; }
.top.compact #clock { font-size: 48px; }
.top.compact .brandlock { height: 72px; }
.top.charity #clock { font-size: 28px; line-height: 30px; }
.top.charity .brandlock { height: 44px; margin-top: 1px; }
.top.charity .side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.top.charity .side-row { display: contents; }
.side { justify-self: end; display: grid; gap: 8px; }
.side-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pills { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pill { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 4px 14px; font-size: 14px; font-weight: 600; border: 0; }
.pill i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.pill.online { background: #214232; color: #b9e8ca; }
.pill.online i { background: #3ddc84; }
.pill.saving { background: #3a3420; color: #f6e3a4; }
.pill.saving i { background: #e6c15a; }
.pill.offline { background: #4a2424; color: #ffc9c2; }
.pill.offline i { background: #ff6b6b; }
.big { width: 112px; height: 78px; border-radius: 7px; border: 1px solid var(--edge); background: var(--button); color: #fff; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px 8px; }
.big .glyph { font-size: 30px; line-height: 1; font-weight: 700; }
.big .glyph svg { width: 1em; height: 1em; display: block; }
.big span:last-child { font-size: 14px; }
.big.wide { width: 136px; }
.big.stopped { background: #b42318; border-color: #e5484d; }
.big, .rowbtn, .tool, .chipbtn, .foot button, .undo button, .go { transition: filter .15s ease, background-color .15s ease; }
.big:hover, .rowbtn:hover, .tool:hover, .chipbtn:hover, .foot button:hover, .undo button:hover, .go:hover { filter: brightness(1.12); }
.big:disabled, .foot button:disabled { opacity: .4; cursor: default; filter: none; }
.tool, .chipbtn, .rowbtn { border-radius: 7px; border: 1px solid var(--edge); background: var(--button); color: #fff; }
.tool { width: 44px; height: 36px; font-size: 18px; }
#tvFit { font-size: 13px; font-weight: 700; }
#floorInstall { display: grid; place-items: center; padding: 0; }
#floorInstall svg { width: 16px; height: 16px; }
#floorInstall[hidden] { display: none; }
#floorQr svg { width: 240px; height: 240px; display: block; }
.scroll-wrap { position: relative; }
.scroll-hint { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: 250px; margin: 0; background: #355da6; border: 1px solid #223c6c; color: #fff; border-radius: 16px; padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); z-index: 6; cursor: pointer; }
.scroll-hint[hidden] { display: none; }
.table-scroll { position: relative; flex: none; align-self: stretch; width: auto; height: 18px; margin: 0; border-radius: 9px; background: #24344e; border: 1px solid #6f8ebd; cursor: pointer; touch-action: none; }
.table-scroll[hidden] { display: none; }
.table-scroll-thumb { position: absolute; top: 2px; height: calc(100% - 4px); left: 0; width: 72px; border-radius: 7px; background: #355da6; cursor: pointer; }
.boards.marquee { scrollbar-width: none; }
.boards.marquee::-webkit-scrollbar { height: 0; display: none; }
.desk.tv-guide { outline: 5px solid #ffc94d; outline-offset: -5px; }
.tv-size, .tv-move { display: flex; align-items: center; gap: 12px; }
.tv-size b, .tv-move b { flex: 1; text-align: center; font-size: 18px; }
.tv-pad { display: grid; grid-template-columns: 44px 44px 44px; grid-template-areas: ". up ." "left . right" ". down ."; }
#tvUp { grid-area: up; } #tvLeft { grid-area: left; } #tvRight { grid-area: right; } #tvDown { grid-area: down; }
.chipbtn { padding: 6px 14px; font-size: 16px; font-weight: 600; }
.credit { color: var(--muted); font-size: 16px; font-weight: 600; }
.linkish { background: transparent; border: 0; color: var(--muted); font-weight: 700; text-decoration: underline; }
.impersonation { display: flex; align-items: center; background: #3a3420; color: #f6e3a4; border: 1px solid #8a7040; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.impersonation[hidden] { display: none; }
.boards { flex: 1; min-height: 240px; min-width: 0; display: flex; gap: 12px; overflow-x: auto; }
.board { position: relative; flex: none; min-width: 0; background: var(--surface); border: 1px solid var(--button); border-radius: 8px; display: flex; flex-direction: column; min-height: 0; --row-font: 22px; --col-font: 16px; --head-font: 16px; --row-height: 44px; --row-weight: 700; --num: 38px; --call: 112px; --wait: 100px; --here: 72px; --seat: 40px; --del: 120px; }
.closed-sign { position: absolute; inset: 70px 16px 58px; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.stamp { transform: rotate(-8deg); border: 5px solid #ff4d4f; color: #ff4d4f; background: rgba(14, 23, 38, .9); border-radius: 14px; padding: 12px 22px 16px; text-align: center; font-weight: 900; font-size: 26px; line-height: 1.05; letter-spacing: .04em; }
.stamp svg { display: block; margin: 0 auto 6px; }
.listhead { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 7px 7px 0 0; color: #fff; cursor: pointer; user-select: none; }
.chev { display: none; width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); flex: none; margin-top: -4px; }
.board.folded .chev { transform: rotate(-45deg); margin-top: 0; }
.closed-chip { display: none; }
.listhead b { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listhead b input { width: 100%; font: inherit; font-weight: 700; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.7); }
.listhead .count { font-size: 23px; font-weight: 700; }
.hide-list { margin-left: auto; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #fff; border-radius: 6px; cursor: pointer; }
.hide-list:hover { background: rgba(255,255,255,.16); }
.listhead .hide-list + .count { margin-left: 12px; }
.columns, .player { display: grid; grid-template-columns: var(--num) minmax(80px, 1fr) var(--call) var(--wait) var(--here) var(--del); align-items: center; }
.board.compact .columns, .board.compact .player { grid-template-columns: var(--num) minmax(80px, 1fr) var(--del); }
.actions { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 0; min-width: 0; width: 100%; }
.actions.end { justify-content: flex-end; gap: 6px; }
.pill[hidden] { display: none; }
.columns { background: var(--head); color: var(--head-text); font-size: var(--head-font); font-weight: 700; padding: 10px 6px; }
.tally { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--alt); border-bottom: 1px solid var(--line); flex-wrap: nowrap; min-width: 0; }
.tally .tally-count { flex: 1 1 auto; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; text-align: left; font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally-count small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tally button { flex: none; height: 34px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--edge); background: var(--button); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tally .tally-seats { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tally .tally-seats:only-child { margin-left: auto; }
.tally button:hover { filter: brightness(1.12); }
.count-range { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.count-range label { display: grid; gap: 4px; }
.count-total { font-size: 18px; margin: 6px 0 12px; }
.count-total b { font-size: 30px; color: var(--clock); }
.count-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 15px; }
.count-table th, .count-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.count-table th { color: var(--head-text); background: var(--head); }
.count-lists { color: var(--muted); }
#setCountsReport { justify-self: start; width: auto; }
.dialog.counts { width: min(820px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
#countsOpen { display: grid; place-items: center; padding: 0; }
#countsOpen svg { width: 18px; height: 18px; }
#countsOpen[hidden] { display: none; }
.players { flex: 1; overflow-x: hidden; overflow-y: hidden; min-height: 72px; scrollbar-width: thin; scrollbar-color: #355da6 #142039; }
.players::-webkit-scrollbar { width: 10px; }
.players::-webkit-scrollbar-thumb { background: #355da6; border-radius: 6px; }
.players::-webkit-scrollbar-track { background: #142039; }
.player { min-height: var(--row-height); height: var(--row-height); padding: 0 6px; font-size: var(--row-font); font-weight: var(--row-weight); border-top: 1px solid var(--line); cursor: pointer; user-select: none; }
body.drag-on, body.drag-on * { cursor: pointer !important; }
.drag-source { outline: 3px solid #F5B942; outline-offset: -3px; }
.drop-gap { height: 8px; margin: 2px 6px; border-radius: 4px; background: #F5B942; pointer-events: none; }
.drop-gap.side { width: 8px; height: auto; align-self: stretch; margin: 0; flex: none; }
.drag-preview { box-sizing: border-box; width: 220px; height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 8px; background: #F5B942; color: #1C1408; font: 700 18px/1 Inter, "Segoe UI", sans-serif; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; }
.player .num, .player .when { font-size: var(--col-font); }
.player:nth-child(even) { background: var(--alt); }
.player.selected { background: var(--select); }
.player .name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.player .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone { color: #8eb4ff; font-size: 16px; }
.tag { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 7px; background: #3a3420; color: #f6e3a4; }
.when { font-size: 18px; }
.claimleft { color: #F5B942; font-weight: 700; }
.rowbtn { box-sizing: border-box; height: calc(28px * var(--icon, 1)); width: auto; max-width: 100%; padding: 0 calc(8px * var(--icon, 1)); display: inline-flex; align-items: center; justify-content: center; gap: calc(5px * var(--icon, 1)); font-size: calc(14px * var(--icon, 1)); font-weight: 600; line-height: 1; white-space: nowrap; text-align: center; }
.rowbtn.icon { width: calc(28px * var(--icon, 1)); padding: 0; }
.rowbtn svg { width: calc(14px * var(--icon, 1)); height: calc(14px * var(--icon, 1)); display: block; flex: none; }
.bell, .coming { flex: none; width: var(--row-font); height: var(--row-font); min-height: 0; padding: 0; border: 0; background: transparent; display: block; overflow: visible; }
.bell svg, .coming svg { width: 100%; height: 100%; display: block; }
.coming { color: #3DDC84; }
.actions.end .seat svg { width: calc(20px * var(--icon, 1)); height: calc(20px * var(--icon, 1)); }
.foot { display: flex; justify-content: flex-end; align-items: center; padding: 6px; }
.foot-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 6px; max-width: 100%; }
.foot button { box-sizing: border-box; height: 40px; min-height: 40px; flex: none; padding: 0 14px; margin: 0 0 0 6px; border-radius: 7px; border: 1px solid transparent; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.foot button[hidden] { display: none; }
.empty { margin: 0; padding: 16px; color: var(--muted); font-size: 16px; }
.banner { background: var(--banner); color: var(--banner-text); border: 1px solid var(--banner-edge); border-radius: 8px; min-height: 58px; display: grid; place-items: center; padding: 10px 14px; font-size: 28px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; }
.modal { position: fixed; inset: 0; background: rgba(8, 18, 34, .72); display: grid; place-items: center; padding: 24px; z-index: 5; }
.modal[hidden] { display: none; }
.dialog { --pad: 22px; width: min(460px, 100%); background: #101d31; border: 1px solid #48618a; border-radius: 12px; padding: 0 var(--pad) var(--pad); display: grid; gap: 12px; }
.dialog > h2:first-child { margin: 0 calc(-1 * var(--pad)) 4px; padding: 14px var(--pad); background: #1a3058; border-bottom: 1px solid #48618a; border-radius: 11px 11px 0 0; color: #fff; }
.dialog.add { width: min(720px, 100%); }
.list-label { margin: 0 0 8px; font-weight: 600; color: var(--text); }
.choice-list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.call-fields { display: flex; align-items: center; gap: 8px; }
.call-fields input { width: 72px; text-align: center; }
.call-fields select { width: 92px; }
.dialog .choice { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; padding: 8px 10px; border-radius: 5px; }
.dialog .choice:hover { background: var(--select); }
.app-offer { display: flex; align-items: center; gap: 16px; background: #142039; border: 1px solid #48618a; border-radius: 6px; padding: 12px 14px; }
.app-copy { flex: 1; min-width: 0; }
.app-copy strong { font-size: 16px; }
.qr-frame { background: #fff; border-radius: 6px; padding: 8px; flex: none; }
.qr-frame img, .qr-frame svg { width: 176px; height: 176px; display: block; }
.qr-frame[hidden] { display: none; }
.dialog.wide { width: min(1720px, 100%); height: min(760px, calc(100vh - 32px)); overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.dialog.wide > .tabpanel .form-grid { grid-template-columns: repeat(2, minmax(220px, 380px)); justify-content: start; }
.dialog.wide > .tabpanel label > input[inputmode="numeric"], .dialog.wide > .tabpanel label > input[inputmode="decimal"] { width: 120px; justify-self: start; }
.dialog.wide > .tabpanel label > input[type="date"] { width: 200px; justify-self: start; }
.dialog.wide > .tabpanel label > select { justify-self: start; min-width: 220px; max-width: 100%; }
.dialog.wide > .tabpanel > label { max-width: 380px; }
.dialog.wide > .tabpanel > label:has(textarea) { max-width: 760px; }
.dialog.wide > .tabpanel > label.check { max-width: none; }
.dialog.wide .days { max-width: 520px; }
#addGame { justify-self: start; width: auto; padding: 8px 18px; }
.dialog.wide .days .day { grid-template-columns: 110px 160px 160px; }
.dialog.wide .dialog-actions, .dialog.wide > .warn { align-self: end; }
.dialog.wide > .tabpanel { min-height: 0; overflow: auto; }
.dialog.wide > .tabpanel[data-panel="hours"] { overflow: auto; }
.dialog.hours { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; }
.dialog.hours .day { grid-template-columns: 110px 160px 160px; }
.dialog h2 { margin: 0; font-size: 23px; }
.dialog h3.section { margin: 6px 0 0; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.days { display: grid; gap: 6px; }
.day { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 8px; align-items: center; color: var(--text); }
.code { margin: 0; font: 700 32px Consolas, monospace; letter-spacing: 2px; }
.warnbtn { color: #ffc9c2; border-color: #8a5964; margin-right: auto; }
.undo { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 16px; background: #101d30; color: var(--text); border: 1px solid #567ab8; border-radius: 10px; padding: 10px 10px 10px 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.undo[hidden] { display: none; }
.undo button { background: var(--button); border: 1px solid var(--edge); color: #fff; border-radius: 7px; padding: 8px 20px; font-weight: 700; }
.dialog label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.dialog input:not([type="checkbox"]), .dialog select, .dialog textarea { background: #142039; border: 1px solid #48618a; border-radius: 8px; padding: 9px 12px; }
.dialog input:not([type="checkbox"]):focus, .dialog select:focus, .dialog textarea:focus { outline: none; border-color: #7eabff; box-shadow: 0 0 0 3px rgba(126, 171, 255, .35); }
input[type="checkbox"] {
  appearance: none; width: 22px; height: 22px; margin: 0; flex: none; cursor: pointer;
  border-radius: 7px; border: 1.5px solid #6f8ebd; background: #0c1830 center / 14px 14px no-repeat;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
input[type="checkbox"]:hover { border-color: #b7d0ff; }
input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(126, 171, 255, .4); }
input[type="checkbox"]:checked {
  border-color: #9ec0ff; background-color: #3b6ec8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.3 6.4 11.4 12.8 4.6'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
.dialog .check, .game .opts label, #acceptLists .check { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; }
.dialog [hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid #48618a; }
.tab { background: transparent; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; margin-bottom: -1px; padding: 9px 16px; color: var(--muted); font-weight: 700; box-shadow: none; }
.tab:hover { color: #fff; background: rgba(126, 171, 255, .08); }
.tab.on { background: #101d31; border-color: #48618a; color: #fff; box-shadow: inset 0 3px 0 #6f9bff; position: relative; }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #101d31; }
.tabpanel { display: grid; gap: 12px; align-content: start; }
.tabpanel[hidden] { display: none; }
.hint { margin: 0; color: #91a3c2; font-size: 14px; }
.logo-find { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-find .hint { flex: 1 1 180px; }
#logoPreview { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: #101820; }
.modal.front { z-index: 8; }
.logo-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-choices button { width: 104px; height: 104px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: #101820; }
.logo-choices img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.warn { margin: 0; color: #ffc9c2; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.go, .text { border-radius: 7px; padding: 8px 14px; }
.go { background: var(--button); border: 1px solid var(--edge); color: #fff; font-weight: 700; }
.text { background: transparent; border: 1px solid #48618a; color: var(--text); }
.list-grid { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(360px, 1.4fr) 168px 188px 96px 200px 64px auto; gap: 10px; align-items: center; }
.no-phone .phone-only { display: none; }
.no-phone .list-grid { grid-template-columns: minmax(160px, 1.4fr) minmax(360px, 1.4fr) 96px 64px auto; }
.desk-note { display: none; }
.no-phone .phone-note { display: none; }
.no-phone .desk-note { display: block; }
.list-grid > .head { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.25; text-align: center; }
.list-grid > .head > span:first-child { min-width: 0; text-align: center; }
.col-help { width: 20px; height: 20px; flex: none; align-self: center; padding: 0; border-radius: 10px; border: 0; background: #e6c15a; color: #1a1404; font-size: 13px; font-weight: 700; line-height: 20px; }
.col-help-pop { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 8; width: max-content; max-width: 300px; padding: 12px; background: #101d31; border: 1px solid #48618a; border-radius: 8px; color: #eaf0ff; font-size: 13px; font-weight: 500; text-align: left; line-height: 1.4; white-space: pre-line; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.col-help-pop[hidden] { display: none; }
#setGames, .game { display: contents; }
.cell-label { display: none; }
.stay-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.stay-cell .cell-label { grid-column: 1 / -1; }
.stay-minutes { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.stay-minutes[hidden] { display: none; }
.list-grid .stay-cell .g-wait { width: 72px; }
.list-grid .g-flag { display: flex; align-items: center; justify-content: center; margin: 0; }
.list-grid .g-hours-open, .list-grid .g-remove { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 8px 10px; line-height: 1.2; }
.list-grid .g-hours-open { width: 100%; font-size: 13px; }
.list-grid .g-remove { justify-self: center; padding: 8px 10px; }
.list-grid .cell { margin: 0; }
.list-grid input:not([type="checkbox"]), .list-grid select { width: 100%; min-width: 0; }
.request, .room { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.room { width: 100%; background: transparent; border: 0; color: var(--text); text-align: left; font-weight: 700; }
.link { display: flex; gap: 8px; }
.link input { flex: 1; }
@media (max-width: 800px) {
  .list-grid, .no-phone .list-grid { grid-template-columns: 1fr; }
  .list-grid > .head { display: none; }
  #setGames { display: grid; gap: 14px; }
  .game { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .game > .cell:nth-child(-n+4), .game > .g-remove { grid-column: 1 / -1; }
  .cell-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  .game .g-remove { justify-self: start; }
}
@media (max-width: 1100px) {
  .top { grid-template-columns: 1fr; }
  .side { justify-self: stretch; }
  h1, #stayLine, #callLine { white-space: normal; }
  .form-grid, .day { grid-template-columns: 1fr; }
  .dialog.wide .days .day { grid-template-columns: 110px 1fr 1fr; }
}
@media (max-width: 1100px), (pointer: coarse) and (max-width: 1800px) {
  html, body { height: auto; min-height: 100%; }
  .desk { height: auto; min-height: 100%; overflow: visible; padding: 0 0 24px; gap: 8px; }
  .top { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 8px; background: #0c1730; border-bottom: 1px solid var(--line); }
  .mark, #stayLine, #callLine, #clock, .brandlock, .credit, .header-qr, #floorInstall, #tvFit, #fit, .scroll-wrap, .table-scroll { display: none !important; }
  .center { display: contents; }
  .top.charity .side { display: grid; }
  .top.charity .side-row { display: flex; }
  #charity { margin: 0; font-size: 13px; text-align: left; }
  .venue { gap: 0; }
  h1 { font-size: 20px; margin: 0; padding-right: 72px; }
  .side-row.sub { position: absolute; top: 12px; right: 12px; width: auto; }
  .side { width: 100%; }
  .side-row { justify-content: stretch; gap: 8px; flex-wrap: nowrap; }
  .pills { flex-direction: row; flex-wrap: wrap; }
  .pills:empty { display: none; }
  .pill { padding: 4px 10px; font-size: 12px; }
  .big, .big.wide { flex: 1; width: auto; height: 48px; border-radius: 12px; }
  .big .glyph { font-size: 16px; }
  .big span:last-child { font-size: 11px; font-weight: 700; }
  .boards { overflow: visible; padding: 4px 12px 0; gap: 8px; min-height: 0; flex: none; }
  .board { min-height: 0; border-radius: 14px; overflow: hidden; --row-font: 16px; --col-font: 13px; --head-font: 13px; --row-height: auto; }
  .listhead { height: 56px; }
  .closed-chip { font-size: 11px; font-weight: 800; letter-spacing: .04em; background: rgba(0, 0, 0, .28); border-radius: 99px; padding: 3px 8px; }
  .columns { display: none; }
  .players { max-height: none; min-height: 0; overflow: visible; }
  .player { display: flex; flex-wrap: wrap; align-items: center; height: auto; min-height: 56px; gap: 6px 8px; padding: 10px 8px; }
  .player .num { width: 1.6em; flex: none; }
  .player .name { flex: 1 1 calc(100% - 2.6em); }
  .player .actions.end { width: auto; margin-left: auto; }
  .player .when:empty { display: none; }
  .banner { margin: 0 12px; min-height: 0; font-size: 15px; padding: 8px 12px; }
  .banner:empty { display: none; }
  .foot { flex-wrap: wrap; }
  .foot button { height: 44px; min-height: 44px; padding: 0 12px; font-size: 15px; }
  body.floor { --tap: 56px; }
  body.floor .boards { padding: 4px 10px 0; }
  body.floor .board { min-width: 0; max-width: 100%; }
  body.floor .players { min-width: 0; }
  body.floor .player.frow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; height: auto; min-height: 76px; padding: 10px 10px 10px 12px; }
  body.floor .frow .num { width: auto; font-size: 17px; font-weight: 700; color: var(--muted); text-align: center; }
  body.floor .frow .info { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
  body.floor .frow .name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 23px; font-weight: 700; line-height: 1.15; color: var(--text); }
  body.floor .frow .name > span:not(.phone):not(.tag) { min-width: 0; flex: 0 1 auto; }
  body.floor .frow .phone { font-size: 17px; color: #8eb4ff; flex: none; }
  body.floor .frow .coming { width: 20px; height: 20px; flex: none; }
  body.floor .frow .sub { font-size: 15px; font-weight: 600; line-height: 1.2; color: #8fa6cc; white-space: nowrap; }
  body.floor .frow .sub:empty { display: none; }
  body.floor .frow .sub.claimleft { color: #F5B942; }
  body.floor .factions { display: flex; align-items: center; gap: 8px; }
  body.floor .fbtn { box-sizing: border-box; flex: none; width: var(--tap); height: var(--tap); padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--edge); background: var(--button); color: #fff; touch-action: manipulation; }
  body.floor .fbtn svg { width: 28px; height: 28px; display: block; }
  body.floor .fbtn.here svg { width: 30px; height: 30px; }
  body.floor .fbtn.bell { border: 0; background: transparent; }
  body.floor .fbtn.bell svg { width: 40px; height: 40px; }
  body.floor .factions > i.bell { width: 32px; height: 32px; }
  body.floor .fbtn:active { filter: brightness(1.25); transform: scale(.96); }
  body.floor .foot { padding: 10px; }
  body.floor .foot-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  body.floor .foot button { flex: 1 1 0; min-width: 0; height: var(--tap); min-height: var(--tap); margin: 0; padding: 0 10px; border-radius: 14px; font-size: 17px; }
  body.floor .foot button.plus { flex: 0 0 var(--tap); width: var(--tap); padding: 0; font-size: 34px; font-weight: 600; }
  body.floor .tally.ftally { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  body.floor .ftally-head { display: flex; align-items: center; gap: 8px; min-height: 32px; }
  body.floor .ftally-head .tally-count { flex: 1 1 auto; min-width: 0; height: auto; padding: 0; font-size: 17px; }
  body.floor .ftally-btns { display: flex; gap: 8px; }
  body.floor .ftally-btns button { flex: 1 1 0; min-width: 0; height: var(--tap); padding: 0 8px; border-radius: 14px; font-size: 16px; line-height: 1.15; white-space: normal; overflow: hidden; }
  body.floor .tally .tally-hide { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #9fb0cf; display: inline-flex; align-items: center; justify-content: center; }
  body.floor .ftally-btns .tally-hide { height: var(--tap); }
  body.floor .tally .tally-hide svg { width: 22px; height: 22px; }
  .modal { padding: 12px; align-items: start; }
  .dialog, .dialog.wide, .dialog.add { --pad: 16px; width: 100%; }
  .dialog.wide { height: calc(100vh - 24px); }
  .dialog.wide > .tabpanel .form-grid { grid-template-columns: minmax(0, 1fr); }
  .qr-frame img, .qr-frame svg { width: min(176px, 46vw); height: auto; }
  .app-offer { flex-wrap: wrap; }
  .undo { left: 12px; right: 12px; transform: none; width: auto; }
  .tally { padding: 8px; flex-wrap: wrap; row-gap: 6px; }
  .tally button { flex: 1 1 0; height: 40px; padding: 0 10px; font-size: 14px; }
  .tally .tally-count { flex: 1 0 100%; height: auto; font-size: 15px; }
  #countsOpen { display: none; }
  .count-table { font-size: 13px; }
  .count-table th, .count-table td { padding: 5px 4px; }
}
body.stack .boards { flex-direction: column; }
body.stack .board { width: 100% !important; }
body.stack .listhead { border-radius: 14px; }
body.stack .board:not(.folded) .listhead { border-radius: 14px 14px 0 0; }
body.stack .chev, body.stack .closed-chip { display: block; }
body.stack .board.folded .tally, body.stack .board.folded .columns, body.stack .board.folded .players, body.stack .board.folded .foot, body.stack .board.folded .closed-sign { display: none; }
body.floor #addApp, body.floor #editApp { display: none; }
body.floor .modal { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); padding: 8px; place-items: start center; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
body.floor .dialog.add { max-height: calc(var(--vvh, 100dvh) - 16px); overflow-y: auto; gap: 10px; padding-bottom: 0; }
body.floor .dialog.add > h2:first-child { padding: 10px var(--pad); font-size: 19px; }
body.floor .dialog.add input:not([type="checkbox"]) { font-size: 18px; padding: 10px 12px; }
body.floor .dialog.add .hint { display: none; }
body.floor .dialog.add .list-label { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
body.floor .dialog.add .choice { padding: 6px 10px; font-size: 16px; }
body.floor .dialog.add .dialog-actions { position: sticky; bottom: 0; z-index: 1; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad); background: #101d31; border-top: 1px solid #25334a; }
body.floor .dialog.add .dialog-actions button { min-height: 48px; min-width: 110px; font-size: 17px; }
