:root {
  color-scheme: dark;
  --bg: #0a0f0c;
  --surface: #111914;
  --surface-2: #17231c;
  --surface-3: #1d2d23;
  --line: rgba(240, 239, 228, 0.1);
  --line-strong: rgba(240, 239, 228, 0.18);
  --text: #f5f1e8;
  --muted: #9da9a0;
  --gold: #d9b96e;
  --gold-deep: #8f753c;
  --green: #63c18a;
  --green-bg: #143323;
  --orange: #e9a45a;
  --orange-bg: #392516;
  --blue: #77aee9;
  --blue-bg: #162a3f;
  --red: #ef8279;
  --red-bg: #3b1c1c;
  --purple: #b79ae8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --tap: 48px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea { color: var(--text); color-scheme: dark; }
:focus-visible { outline: 3px solid rgba(217, 185, 110, .7); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { letter-spacing: -.02em; }
small { color: var(--muted); }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 12px 18px; background: var(--gold); color: #111; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(217,185,110,.55); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #274332, #121c16 65%); color: var(--gold); font-family: Georgia, serif; font-size: 23px; font-weight: 700; box-shadow: inset 0 0 0 4px rgba(217,185,110,.06); }
.brand-mark--large { width: 64px; height: 64px; font-size: 38px; border-width: 2px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

/* Demo entry */
.entry-shell { min-height: 100vh; max-width: 1040px; margin: 0 auto; padding: 32px 20px 28px; background: radial-gradient(circle at 10% 0%, rgba(42, 78, 56, .5), transparent 34%), radial-gradient(circle at 95% 24%, rgba(134, 99, 39, .16), transparent 28%); }
.entry-hero { padding: 28px 2px 34px; }
.entry-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 38px; font-size: 17px; font-weight: 900; letter-spacing: .28em; }
.entry-hero h1 { max-width: 630px; margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 8vw, 66px); font-weight: 500; line-height: .98; }
.entry-hero > p:last-child { max-width: 530px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.entry-heading { margin-bottom: 12px; }
.entry-heading h2 { font-size: 22px; }
.demo-pill { padding: 7px 11px; border: 1px solid rgba(217,185,110,.28); border-radius: 100px; background: rgba(217,185,110,.08); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.role-grid { display: grid; gap: 11px; }
.role-card { min-height: 82px; display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,25,20,.88); text-align: left; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.role-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); }
.role-card:active { transform: scale(.99); }
.role-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; }
.role-card--gold .role-icon { background: rgba(217,185,110,.14); color: var(--gold); }
.role-card--green .role-icon { background: var(--green-bg); color: var(--green); }
.role-card--blue .role-icon { background: var(--blue-bg); color: var(--blue); }
.role-card--orange .role-icon { background: var(--orange-bg); color: var(--orange); }
.role-card strong, .role-card small { display: block; }
.role-card strong { margin-bottom: 4px; font-size: 17px; }
.role-card small { font-size: 13px; }
.role-chevron { color: #68736b; }
.entry-foot { margin-top: 25px; color: #657168; font-size: 12px; text-align: center; }
.entry-shell--gate { display: grid; place-items: center; }

.pin-shell { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 64px 20px 30px; background: radial-gradient(circle at 50% 0%, rgba(38,70,51,.55), transparent 42%); }
.pin-back { position: absolute; left: 20px; top: 22px; transform: rotate(180deg); }
.pin-card { width: min(100%, 390px); text-align: center; }
.pin-card .avatar { margin: 0 auto 18px; }
.pin-card h1 { font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.pin-card > p:not(.eyebrow):not(.field-error):not(.demo-hint) { margin-top: 8px; color: var(--muted); }
.pin-dots { display: flex; justify-content: center; gap: 15px; margin: 28px 0 7px; }
.pin-dot { width: 13px; height: 13px; border: 1.5px solid #627067; border-radius: 50%; transition: .16s; }
.pin-dot.is-filled { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(217,185,110,.08); }
.field-error { min-height: 20px; color: var(--red); font-size: 12px; opacity: 0; }
.field-error.is-visible { opacity: 1; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); justify-content: center; gap: 11px; margin-top: 10px; }
.pin-pad button { width: 76px; height: 58px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 21px; font-weight: 650; }
.pin-pad button:active { background: var(--surface-3); transform: scale(.96); }
.pin-pad .pin-pad__utility { border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; }
.pin-pad .pin-pad__enter { background: var(--gold); color: #13150f; }
.demo-hint { margin-top: 20px; color: var(--muted); font-size: 12px; }
.demo-hint strong { color: var(--text); letter-spacing: .18em; }

/* App chrome */
.app-shell { min-height: 100vh; padding-bottom: calc(90px + var(--safe-bottom)); }
.app-header { position: sticky; z-index: 20; top: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 9px max(17px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: rgba(10,15,12,.91); backdrop-filter: blur(18px); }
.wordmark { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; text-align: left; }
.wordmark > span:last-child { display: flex; flex-direction: column; }
.wordmark strong { font-size: 13px; letter-spacing: .18em; }
.wordmark small { margin-top: 1px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.ready-chip { min-height: 34px; padding: 0 11px; border: 1px solid rgba(99,193,138,.22); border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 800; }
.profile-button { position: relative; width: 43px; height: 43px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 800; }
.status-dot { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border: 2px solid var(--bg); border-radius: 50%; background: var(--green); }
.demo-strip { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 26px; padding: 5px 14px; background: #121b16; color: #7e8b82; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.demo-strip span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.screen { width: min(100%, 1040px); margin: 0 auto; padding: 24px 16px 40px; }
.screen-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.screen-heading h1 { font-family: Georgia, serif; font-size: clamp(30px, 7vw, 44px); font-weight: 500; line-height: 1.05; }
.screen-heading > div > p:last-child { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; min-height: 69px; padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + var(--safe-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(10,15,12,.96); backdrop-filter: blur(20px); }
.nav-item { position: relative; min-width: 60px; min-height: 52px; display: flex; flex: 1; max-width: 110px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; border: 0; border-radius: 13px; background: transparent; color: #748078; }
.nav-item .icon { width: 21px; height: 21px; }
.nav-item span { font-size: 10px; font-weight: 700; }
.nav-item.is-active { color: var(--gold); background: rgba(217,185,110,.07); }
.nav-item b { position: absolute; top: 1px; left: calc(50% + 7px); min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); border-radius: 99px; background: var(--red); color: white; font-size: 9px; }

/* Shared controls */
.button { min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; font-size: 13px; }
.button .icon { width: 18px; height: 18px; }
.button--small { min-height: 40px; padding: 0 13px; border-radius: 12px; font-size: 12px; }
.button--wide { width: 100%; }
.button--primary { background: var(--gold); color: #15170f; }
.button--primary:hover { background: #e7ca83; }
.button--secondary { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.button--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button--danger, .button--danger-soft { border-color: rgba(239,130,121,.2); background: var(--red); color: #230d0b; }
.button--danger-soft { background: var(--red-bg); color: var(--red); }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.icon-button.danger { color: var(--red); }
.text-button { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: var(--gold); font-size: 12px; font-weight: 800; }
.fab { position: fixed; z-index: 18; right: 17px; bottom: calc(86px + var(--safe-bottom)); min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 19px; border: 0; border-radius: 17px; background: var(--gold); color: #12140f; box-shadow: 0 13px 35px rgba(0,0,0,.4); font-weight: 900; }
.fab .icon { width: 19px; }
.section-block { margin-top: 28px; }
.section-block--first { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.section-heading h2 { font-size: 19px; }
.section-heading--spaced { margin-top: 30px; }
.metric-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--surface-2); color: var(--muted); }
.metric-icon.gold { background: rgba(217,185,110,.13); color: var(--gold); }
.metric-icon.green { background: var(--green-bg); color: var(--green); }
.metric-icon.orange { background: var(--orange-bg); color: var(--orange); }
.metric-icon.blue { background: var(--blue-bg); color: var(--blue); }
.metric-icon.purple { background: rgba(183,154,232,.13); color: var(--purple); }
.metric-icon.red { background: var(--red-bg); color: var(--red); }
.metric-icon.neutral { background: #202922; color: #a4afa7; }
.avatar { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(217,185,110,.2); border-radius: 50%; background: linear-gradient(145deg, #294131, #142018); color: #e6d7af; font-size: 12px; font-weight: 850; }
.avatar--xl { width: 70px; height: 70px; font-size: 20px; }
.avatar--soft { background: #202b23; color: #c8d2ca; border-color: var(--line); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.segmented button { min-height: 43px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; }
.segmented button.is-active { background: var(--surface-3); color: var(--text); box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.segmented--three { grid-template-columns: repeat(3, 1fr); }
.segmented--compact { margin: 18px 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill--closed { background: #202722; color: var(--muted); }
.status-pill--sitting_out { background: var(--orange-bg); color: var(--orange); }
.status-pill--placed { background: var(--blue-bg); color: var(--blue); }
.status-pill--preparing { background: var(--orange-bg); color: var(--orange); }
.status-pill--ready { background: var(--green-bg); color: var(--green); }
.status-pill--delivered { background: #202722; color: var(--muted); }
.status-pill--rejected { background: var(--red-bg); color: var(--red); }

/* Overview */
.hero-card { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; padding: 21px; border: 1px solid rgba(217,185,110,.16); border-radius: var(--radius-lg); background: radial-gradient(circle at 85% 25%, rgba(217,185,110,.14), transparent 30%), linear-gradient(135deg, #17261d, #101813); box-shadow: 0 18px 44px rgba(0,0,0,.17); }
.live-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(99,193,138,.1); }
.hero-card h2 { max-width: 260px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.08; }
.hero-card p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.hero-stack { min-width: 112px; display: flex; flex-direction: column; justify-content: center; padding-left: 16px; border-left: 1px solid var(--line); text-align: right; }
.hero-stack small, .hero-stack span { font-size: 9px; }
.hero-stack strong { margin: 5px 0 2px; color: var(--gold); font-size: 25px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.metric-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.metric-card .metric-icon { width: 34px; height: 34px; margin-bottom: 5px; border-radius: 11px; }
.metric-card .icon { width: 17px; }
.metric-card > strong { font-size: 19px; }
.metric-card > small { overflow: hidden; width: 100%; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-grid button { min-height: 104px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.quick-grid button > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); color: var(--gold); }
.quick-grid strong { align-self: end; font-size: 13px; }
.quick-grid small { align-self: start; margin-top: 3px; font-size: 10px; line-height: 1.25; }
.attention-card, .subtle-banner, .ready-banner { width: 100%; display: grid; grid-template-columns: 44px 1fr 22px; align-items: center; gap: 12px; margin-top: 24px; padding: 14px; border: 1px solid rgba(233,164,90,.17); border-radius: 16px; background: var(--orange-bg); text-align: left; }
.attention-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(233,164,90,.11); color: var(--orange); }
.attention-card strong, .attention-card small, .subtle-banner strong, .subtle-banner small, .ready-banner strong, .ready-banner small { display: block; }
.attention-card strong, .subtle-banner strong, .ready-banner strong { margin-bottom: 4px; font-size: 13px; }
.attention-card small, .subtle-banner small, .ready-banner small { font-size: 11px; }
.timeline { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.timeline-item { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 11px; padding: 15px; }
.timeline-item + .timeline-item { border-top: 1px solid var(--line); }
.timeline-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(150,160,152,.08); }
.timeline-dot--success { background: var(--green); }
.timeline-dot--warning { background: var(--orange); }
.timeline-item strong, .timeline-item p, .timeline-item small { display: block; }
.timeline-item strong { font-size: 13px; }
.timeline-item p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.timeline-item small { font-size: 10px; }

/* Floor */
.floor-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: -5px 0 17px; color: var(--muted); font-size: 10px; font-weight: 700; }
.floor-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #4b554e; }
.legend-dot.playing { background: var(--green); }
.legend-dot.out { background: var(--orange); }
.table-list { display: grid; gap: 13px; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-card--closed { opacity: .75; }
.table-card__head { display: flex; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
.table-card--closed .table-card__head { align-items: center; border: 0; }
.table-title-line { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.warning-pill { padding: 5px 8px; border-radius: 99px; background: var(--orange-bg); color: var(--orange); font-size: 9px; font-weight: 800; }
.table-card h2 { font-size: 20px; }
.table-card__head p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.table-count { text-align: right; }
.table-count strong, .table-count small { display: block; }
.table-count strong { font-size: 18px; }
.table-count small { margin-top: 4px; font-size: 9px; }
.seat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 11px; }
.seat { position: relative; min-width: 0; min-height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9px 4px 7px; border: 1px solid var(--line); border-radius: 15px; background: #131c16; }
.seat-number { position: absolute; top: 6px; left: 8px; color: #6f7a72; font-size: 9px; font-weight: 800; }
.seat-avatar { width: 35px; height: 35px; display: grid; place-items: center; margin: 4px 0 5px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 10px; font-weight: 900; }
.seat strong { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.seat small { max-width: 100%; overflow: hidden; margin-top: 3px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.seat--playing { border-color: rgba(99,193,138,.23); background: linear-gradient(145deg, rgba(24,57,38,.78), #121a15); }
.seat--out { border-color: rgba(233,164,90,.22); background: linear-gradient(145deg, rgba(57,38,22,.8), #171610); }
.seat--out .seat-avatar { background: var(--orange-bg); color: var(--orange); }
.seat--empty { color: #718078; }
.seat--empty > span { position: absolute; top: 6px; left: 8px; font-size: 9px; font-weight: 800; }
.seat--empty i { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 5px; border: 1px dashed #3e4942; border-radius: 50%; }
.seat--empty i .icon { width: 15px; }
.seat--empty small { font-size: 9px; }

/* Loyalty */
.leader-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; padding: 16px; border: 1px solid rgba(217,185,110,.15); border-radius: 17px; background: linear-gradient(120deg, rgba(217,185,110,.08), transparent), var(--surface); }
.leader-summary > div:first-child { display: flex; align-items: center; gap: 11px; }
.leader-summary p strong, .leader-summary p small { display: block; }
.leader-summary p strong { margin-bottom: 4px; font-size: 15px; }
.leader-summary p small { font-size: 10px; }
.cutoff-chip { padding-left: 14px; border-left: 1px solid var(--line); text-align: right; }
.cutoff-chip small, .cutoff-chip strong { display: block; }
.cutoff-chip small { font-size: 9px; }
.cutoff-chip strong { margin-top: 3px; color: var(--green); font-size: 12px; }
.rule-ribbon { display: flex; justify-content: space-between; gap: 5px; margin-bottom: 15px; padding: 10px 12px; border-radius: 12px; background: #101712; color: var(--muted); font-size: 9px; }
.rule-ribbon strong { color: var(--text); }
.leaderboard { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.leaderboard-head { display: grid; grid-template-columns: 1fr 54px 75px; gap: 6px; padding: 9px 15px 9px 55px; border-bottom: 1px solid var(--line); color: #78837b; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-head span:not(:first-child) { text-align: right; }
.leader-row { position: relative; width: 100%; min-height: 70px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 45px 72px 12px; align-items: center; gap: 7px; padding: 10px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.leader-row:last-child { border-bottom: 0; }
.leader-row--top { background: linear-gradient(90deg, rgba(217,185,110,.04), transparent 48%); }
.rank { color: var(--muted); font-size: 12px; font-weight: 900; text-align: center; }
.rank--1, .rank--2, .rank--3 { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; }
.rank--1 { background: rgba(217,185,110,.18); color: var(--gold); }
.rank--2 { background: rgba(196,205,212,.12); color: #ced5d9; }
.rank--3 { background: rgba(187,124,76,.14); color: #d79b6c; }
.leader-person { min-width: 0; display: flex; align-items: center; gap: 9px; }
.leader-person .avatar { width: 34px; height: 34px; font-size: 9px; }
.leader-person > span:last-child { min-width: 0; }
.leader-person strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.eligibility { display: inline-block; margin-top: 4px; font-size: 8px; }
.eligibility--yes { color: var(--green); }
.eligibility--wait { color: var(--orange); }
.hours-cell, .stack-cell { text-align: right; }
.hours-cell strong, .hours-cell small, .stack-cell strong, .stack-cell small { display: block; }
.hours-cell strong, .stack-cell strong { font-size: 12px; }
.hours-cell small, .stack-cell small { margin-top: 2px; font-size: 8px; }
.stack-cell strong { color: var(--gold); }
.row-chevron { width: 14px; color: #59635c; }
.subtle-banner { border-color: var(--line); background: var(--surface); }
.custom-leader-summary .cutoff-chip strong { color: var(--purple, #ad8cff); }
.custom-board-note { margin-top: 0; }
.custom-formula { justify-content: space-around; }
.leaderboard--custom .leader-row { cursor: default; }

/* Food */
.ready-banner { margin: 0 0 16px; border-color: rgba(99,193,138,.2); background: var(--green-bg); }
.ready-banner > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(99,193,138,.11); color: var(--green); }
.seat-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seat-picker button { min-width: 0; min-height: 100px; display: flex; flex-direction: column; align-items: center; padding: 12px 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.seat-picker .avatar { width: 35px; height: 35px; margin-bottom: 6px; font-size: 9px; }
.seat-picker strong { max-width: 100%; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.seat-picker small { margin-top: 3px; font-size: 8px; }
.menu-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-preview article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.food-emoji { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--orange-bg); color: var(--orange); font-size: 11px; }
.menu-preview strong, .menu-preview small { display: block; }
.menu-preview strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.menu-preview small { margin-top: 3px; font-size: 9px; }
.queue-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.queue-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.queue-summary strong { font-size: 19px; }
.queue-summary small { font-size: 10px; }
.queue-summary__placed strong { color: var(--blue); }
.queue-summary__preparing strong { color: var(--orange); }
.queue-summary__ready strong { color: var(--green); }
.order-list { display: grid; gap: 12px; }
.order-card { overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.order-card--ready { border-color: rgba(99,193,138,.25); box-shadow: inset 3px 0 0 var(--green); }
.order-card--placed { box-shadow: inset 3px 0 0 var(--blue); }
.order-card--preparing { box-shadow: inset 3px 0 0 var(--orange); }
.order-card__head { display: flex; align-items: center; justify-content: space-between; }
.order-card__head > div { display: flex; gap: 8px; align-items: center; }
.order-card__head > strong { color: var(--muted); font-size: 10px; font-weight: 650; }
.order-number { font-size: 17px; font-weight: 900; }
.order-destination { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; }
.order-destination h2 { font-size: 17px; }
.order-destination p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.order-card ul { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.order-card li { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; padding: 5px 0; font-size: 12px; }
.order-card li > strong { color: var(--gold); }
.order-card li small { font-size: 10px; }
.order-note { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--orange-bg); color: #e5c29d; font-size: 11px; }
.order-note strong { margin-right: 7px; color: var(--orange); font-size: 9px; text-transform: uppercase; }
.order-total { display: flex; justify-content: space-between; margin: 11px 0 13px; font-size: 11px; }
.order-total span { color: var(--muted); }
.order-actions { display: flex; gap: 8px; }
.order-actions .button { flex: 1; }
.order-waiting { padding: 10px; border-radius: 11px; background: #0f1712; text-align: center; }
.order-waiting small { font-size: 9px; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--muted); text-align: center; }
.empty-state > span { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.empty-state h2 { color: var(--text); font-size: 20px; }
.empty-state p { margin-top: 7px; font-size: 12px; }

/* Players and menu */
.search-field { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--muted); }
.search-field input { min-width: 0; flex: 1; height: 48px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field > span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: var(--surface-3); font-size: 10px; }
.player-list { overflow: hidden; margin-top: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.player-row { width: 100%; min-height: 70px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 14px; align-items: center; gap: 9px; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.player-row:last-child { border-bottom: 0; }
.player-row__name { min-width: 0; }
.player-row__name strong, .player-row__name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row__name strong { font-size: 13px; }
.player-row__name small { margin-top: 4px; font-size: 9px; }
.consent-badge { padding: 5px 7px; border-radius: 99px; background: #202822; color: var(--muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.consent-badge--opted_in { background: var(--green-bg); color: var(--green); }
.consent-badge--opted_out { background: var(--red-bg); color: var(--red); }
.availability-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.availability-list > div { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.availability-list > div:last-child { border-bottom: 0; }
.availability-list strong, .availability-list small { display: block; }
.availability-list strong { font-size: 13px; }
.availability-list small { margin-top: 4px; font-size: 10px; }
.toggle { position: relative; width: 50px; height: 30px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 99px; background: #303932; }
.toggle i { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #89948c; transition: .18s; }
.toggle.is-on { background: rgba(99,193,138,.28); }
.toggle.is-on i { left: 24px; background: var(--green); }

/* Settings */
.settings-section { margin-top: 16px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.settings-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.settings-title h2 { font-size: 21px; }
.settings-title > div > p:last-child { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-form { display: grid; gap: 14px; }
.settings-form label, .sheet-form label, .order-form > label { display: grid; gap: 7px; }
.settings-form label > span, .sheet-form label > span, .order-form > label > span { color: #c6cec8; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: #0e1511; }
textarea { min-height: 84px; padding-top: 12px; line-height: 1.45; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(217,185,110,.08); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-suffix, .money-input, .phone-input { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #0e1511; }
.input-suffix input, .money-input input, .phone-input input { border: 0; box-shadow: none; }
.input-suffix b, .money-input b, .phone-input b { padding: 0 12px; color: var(--muted); font-size: 12px; }
.money-input b, .phone-input b { padding-right: 0; color: var(--text); }
.form-subhead { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 17px; border-top: 1px solid var(--line); }
.form-subhead strong { font-size: 13px; }
.form-subhead small { font-size: 9px; }
.program-rule-head { display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 12px; border: 1px solid rgba(217,185,110,.17); border-radius: 14px; background: rgba(217,185,110,.06); }
.program-rule-head--monthly { margin-top: 17px; border-color: rgba(119,174,233,.18); background: rgba(119,174,233,.06); }
.program-badge { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: rgba(217,185,110,.13); color: var(--gold); font-weight: 900; }
.program-rule-head--monthly .program-badge { background: var(--blue-bg); color: var(--blue); }
.program-rule-head strong, .program-rule-head small { display: block; }
.program-rule-head strong { font-size: 12px; }
.program-rule-head small { margin-top: 3px; font-size: 9px; }
.time-band-list { display: grid; gap: 9px; }
.time-band-list > div { display: grid; grid-template-columns: 1fr 1fr 74px; gap: 7px; padding: 10px; border-radius: 13px; background: #0f1712; }
.time-band-list input { min-height: 42px; padding: 0 7px; font-size: 11px; }
.tier-setting-list { display: grid; gap: 8px; }
.tier-setting-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border-radius: 13px; background: #0f1712; }
.tier-setting-list span strong, .tier-setting-list span small { display: block; }
.tier-setting-list span strong { font-size: 12px; }
.tier-setting-list span small { margin-top: 3px; font-size: 9px; }
.tier-setting-list label { width: 88px; display: flex; align-items: center; }
.tier-setting-list input { min-height: 42px; padding: 0 7px; text-align: right; }
.tier-setting-list label b { margin-left: -24px; color: var(--muted); }
.token-row, .preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.token-row button, .preset-row button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-3); color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; }
.preset-row button { color: var(--gold); font-family: inherit; font-weight: 800; }
.title-with-status { display: flex; align-items: center; gap: 9px; }
.feature-status { margin-bottom: 7px; padding: 4px 8px; border-radius: 99px; background: var(--red-bg); color: var(--red); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.custom-score.is-enabled .feature-status { background: var(--green-bg); color: var(--green); }
.score-safety, .support-note { display: flex; gap: 10px; margin-bottom: 15px; padding: 11px; border-radius: 13px; background: #0f1712; color: var(--muted); }
.score-safety > span, .support-note > span { color: var(--green); }
.score-safety strong, .score-safety small, .support-note strong, .support-note small { display: block; }
.score-safety strong, .support-note strong { color: var(--text); font-size: 11px; }
.score-safety small, .support-note small { margin-top: 3px; font-size: 9px; line-height: 1.4; }
.formula-builder { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 7px; }
.formula-builder label { grid-column: 1; }
.formula-builder b { grid-column: 2; margin-bottom: 15px; color: var(--gold); font-size: 10px; }
.formula-builder em { grid-column: 3; margin-bottom: 15px; color: var(--muted); font-style: normal; }
.formula-note { padding: 10px; border-radius: 10px; background: #0d1410; color: var(--muted); font-size: 9px; line-height: 1.5; }
.preview-table { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.preview-table > div { display: grid; grid-template-columns: 1fr 80px 45px; gap: 6px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 9px; }
.preview-table > div:first-child { background: #0e1511; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.preview-table > div:last-child { border-bottom: 0; }
.preview-table span strong, .preview-table span small { display: block; }
.preview-table span small { margin-top: 3px; font-size: 7px; }
.compact-settings { padding: 0; overflow: hidden; }
.compact-settings > button { width: 100%; min-height: 73px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px; padding: 12px 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.compact-settings > button:last-child { border-bottom: 0; }
.compact-settings strong, .compact-settings small { display: block; }
.compact-settings strong { font-size: 13px; }
.compact-settings small { margin-top: 4px; font-size: 10px; }
.profile-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.profile-card h2 { font-size: 20px; }
.profile-card p { margin-top: 5px; color: var(--green); font-size: 10px; }
.support-note { margin-top: 16px; }

/* Sheet */
.sheet-layer { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(2,5,3,.74); backdrop-filter: blur(5px); }
.sheet { position: relative; width: min(100%, 600px); max-height: min(88vh, 860px); overflow: hidden; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 26px 26px 0 0; background: #101713; box-shadow: var(--shadow); animation: sheet-in .2s ease-out; }
.sheet--tall { max-height: 94vh; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .5; } }
.sheet-handle { width: 37px; height: 4px; margin: 9px auto 2px; border-radius: 99px; background: #4b554e; }
.sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 12px 17px 13px; border-bottom: 1px solid var(--line); }
.sheet > header h2 { font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.sheet-body { max-height: calc(94vh - 94px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 17px calc(20px + var(--safe-bottom)); }
.sheet-intro { margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.sheet-form { display: grid; gap: 14px; }
.field-help { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.sheet-role-list, .manage-table-list, .order-seat-list { display: grid; gap: 8px; margin-bottom: 15px; }
.sheet-role-list button, .manage-table-list article, .order-seat-list button { min-height: 64px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; }
.sheet-role-list button.is-current { border-color: rgba(217,185,110,.3); background: rgba(217,185,110,.07); }
.sheet-role-list strong, .sheet-role-list small, .manage-table-list strong, .manage-table-list small, .order-seat-list strong, .order-seat-list small { display: block; }
.sheet-role-list strong, .manage-table-list strong, .order-seat-list strong { font-size: 13px; }
.sheet-role-list small, .manage-table-list small, .order-seat-list small { margin-top: 3px; font-size: 9px; }
.sheet-role-list i { color: var(--green); }
.safe-note { margin: 10px 3px 0; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.sheet-form fieldset { margin: 0; padding: 0; border: 0; }
.sheet-form legend { margin-bottom: 8px; color: #c6cec8; font-size: 11px; font-weight: 700; }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice-cards label { position: relative; }
.choice-cards input { position: absolute; opacity: 0; pointer-events: none; }
.choice-cards label span { min-height: 67px; display: flex; flex-direction: column; justify-content: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #0e1511; }
.choice-cards input:checked + span { border-color: var(--gold-deep); background: rgba(217,185,110,.08); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.choice-cards strong, .choice-cards small { display: block; }
.choice-cards strong { font-size: 12px; }
.choice-cards small { margin-top: 4px; font-size: 8px; }
.choice-cards--single { grid-template-columns: 1fr; }
.choice-cards--single label span { min-height: 52px; }
.impact-note, .warning-note { display: flex; gap: 9px; padding: 11px; border-radius: 12px; background: var(--green-bg); color: #aed2ba; font-size: 10px; line-height: 1.45; }
.impact-note .icon, .warning-note .icon { width: 18px; flex: 0 0 auto; color: var(--green); }
.warning-note { background: var(--orange-bg); color: #dfc19f; }
.warning-note .icon { color: var(--orange); }
.player-seat-hero, .player-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.player-seat-hero h3, .player-profile h3 { margin-top: 7px; font-size: 20px; }
.player-seat-hero p, .player-profile p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.seat-stat-grid, .stack-pair, .history-total { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.seat-stat-grid > div, .stack-pair > button, .history-total > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; }
.seat-stat-grid small, .seat-stat-grid strong, .seat-stat-grid span, .stack-pair small, .stack-pair strong, .stack-pair span, .history-total small, .history-total strong, .history-total span { display: block; }
.seat-stat-grid strong, .stack-pair strong, .history-total strong { margin: 5px 0 3px; color: var(--gold); font-size: 19px; }
.seat-stat-grid small, .seat-stat-grid span, .stack-pair small, .stack-pair span, .history-total small, .history-total span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stack-pair .icon { width: 12px; vertical-align: middle; }
.large-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.large-action-grid button { min-height: 92px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; }
.large-action-grid .metric-icon { grid-row: 1 / 3; }
.large-action-grid strong { align-self: end; font-size: 12px; }
.large-action-grid small { align-self: start; margin-top: 3px; font-size: 9px; }
.move-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 13px; }
.move-grid button { min-height: 76px; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); text-align: left; }
.move-grid span, .move-grid small { color: var(--muted); font-size: 9px; }
.move-grid strong { margin: 5px 0; font-size: 14px; }
.current-value, .confirm-summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.current-value span, .confirm-summary span { color: var(--muted); font-size: 10px; }
.current-value strong, .confirm-summary strong { color: var(--gold); font-size: 14px; }
.confirm-visual { width: 68px; height: 68px; display: grid; place-items: center; margin: 5px auto 16px; border-radius: 50%; background: var(--red-bg); color: var(--red); }
.confirm-visual .icon { width: 30px; height: 30px; }
.search-field--sheet { margin-bottom: 12px; }
.order-form { display: grid; gap: 13px; padding-bottom: 78px; }
.menu-category { display: grid; gap: 7px; }
.menu-category h3 { margin: 8px 0 2px; color: var(--gold); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.menu-item { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.menu-item > div:first-child { min-width: 0; }
.menu-item strong, .menu-item p, .menu-item small { display: block; }
.menu-item strong { font-size: 12px; }
.menu-item p { margin: 4px 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.menu-item small { color: var(--gold); font-size: 10px; }
.menu-item.is-unavailable { opacity: .52; }
.add-item { min-width: 70px; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 11px; background: #263229; color: var(--green); font-size: 10px; font-weight: 800; }
.add-item .icon { width: 15px; }
.quantity-stepper { min-width: 100px; display: grid; grid-template-columns: 34px 30px 34px; align-items: center; }
.quantity-stepper button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #28332b; }
.quantity-stepper .icon { width: 15px; }
.quantity-stepper strong { text-align: center; }
.sold-out { padding: 6px 8px; border-radius: 99px; background: var(--red-bg); color: var(--red); font-size: 9px; font-weight: 800; }
.cart-bar { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; max-width: 600px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto; padding: 11px 17px calc(11px + var(--safe-bottom)); border-top: 1px solid var(--line); background: rgba(16,23,19,.97); backdrop-filter: blur(16px); }
.cart-bar span small, .cart-bar span strong { display: block; }
.cart-bar span small { font-size: 9px; }
.cart-bar span strong { margin-top: 2px; font-size: 15px; }
.recipient-card, .contact-number { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.recipient-card strong, .recipient-card small, .contact-number strong, .contact-number small { display: block; }
.recipient-card strong, .contact-number strong { font-size: 12px; }
.recipient-card small, .contact-number small { margin-top: 3px; font-size: 9px; }
.phone-preview { min-height: 240px; display: flex; align-items: flex-end; padding: 20px 13px; margin: 13px 0; border-radius: 18px; background: radial-gradient(circle at 20% 20%, rgba(99,193,138,.08), transparent 30%), #0a120d; }
.chat-bubble { position: relative; width: 90%; margin-left: auto; padding: 13px 13px 23px; border-radius: 15px 15px 3px 15px; background: #1c5b3a; color: #eaf6ed; font-size: 12px; line-height: 1.5; }
.chat-bubble small { position: absolute; right: 9px; bottom: 6px; color: rgba(234,246,237,.6); font-size: 7px; }
.contact-card { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.contact-card h3 { font-size: 16px; }
.contact-number { border: 0; padding: 0; background: transparent; }
.contact-number button { min-height: 40px; padding: 0 8px; border: 0; background: transparent; color: var(--gold); font-size: 10px; font-weight: 800; }
.consent-status { display: flex; gap: 10px; margin-top: 14px; padding: 11px; border-radius: 12px; background: #172119; }
.consent-status > span { color: var(--muted); }
.consent-status strong, .consent-status small { display: block; }
.consent-status strong { font-size: 11px; }
.consent-status small { margin-top: 3px; font-size: 8px; }
.consent-status--opted_in > span { color: var(--green); }
.consent-status--opted_out > span { color: var(--red); }
.button-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.empty-contact { display: flex; flex-direction: column; align-items: center; padding: 20px; color: var(--muted); text-align: center; }
.empty-contact > span { margin-bottom: 10px; }
.empty-contact strong { color: var(--text); font-size: 13px; }
.empty-contact p { margin: 4px 0 12px; font-size: 10px; }
.danger-text { color: var(--red); }
.ledger { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.ledger-rule { display: flex; gap: 9px; padding: 11px; background: #0f1712; }
.ledger-rule > span { color: var(--green); }
.ledger-rule strong, .ledger-rule small { display: block; }
.ledger-rule strong { font-size: 10px; }
.ledger-rule small { margin-top: 3px; font-size: 8px; }
.ledger article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.ledger-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--green-bg); color: var(--green); }
.ledger-icon .icon { width: 16px; }
.ledger-icon--excluded { background: var(--orange-bg); color: var(--orange); }
.ledger-icon--correction { background: var(--red-bg); color: var(--red); }
.ledger article > div > div { display: flex; justify-content: space-between; gap: 10px; }
.ledger article strong { font-size: 11px; }
.ledger article b { color: var(--green); font-size: 11px; }
.ledger article b.negative { color: var(--red); }
.ledger article p { margin: 4px 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.ledger article small { font-size: 8px; }
.check-row { display: flex !important; grid-template-columns: none !important; flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.check-row input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--gold); }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 11px; }
.check-row small { margin-top: 3px; font-size: 9px; line-height: 1.35; }

/* Toast */
.toast { position: fixed; z-index: 200; right: 12px; bottom: calc(82px + var(--safe-bottom)); left: 12px; max-width: 560px; min-height: 54px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; margin: 0 auto; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 15px; background: #222c25; box-shadow: var(--shadow); animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--green-bg); color: var(--green); }
.toast p { font-size: 11px; line-height: 1.35; }
.toast button { min-height: 38px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: 0; background: transparent; color: var(--gold); font-size: 10px; font-weight: 900; }
.toast button .icon { width: 15px; }
.toast--error > span { background: var(--red-bg); color: var(--red); }

@media (min-width: 620px) {
  .entry-shell { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; padding: 48px; }
  .entry-hero { padding: 0; }
  .entry-foot { grid-column: 1 / -1; }
  .screen { padding: 32px 26px 55px; }
  .table-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat-grid { gap: 8px; }
  .leader-row { grid-template-columns: 35px minmax(0, 1fr) 70px 100px 16px; padding-right: 16px; }
  .leaderboard-head { grid-template-columns: 1fr 70px 100px; padding-left: 68px; padding-right: 40px; }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-card { align-self: start; }
  .metric-grid { gap: 12px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { border-radius: 26px; bottom: 12px; }
  .sheet-layer { align-items: flex-end; padding: 12px; }
  .sheet-body { max-height: calc(94vh - 105px); }
}

@media (min-width: 960px) {
  .app-shell { padding: 0 0 30px 92px; }
  .app-header { padding-left: 116px; }
  .bottom-nav { top: 0; right: auto; width: 92px; height: 100vh; flex-direction: column; justify-content: flex-start; gap: 7px; padding: 92px 8px 15px; border-top: 0; border-right: 1px solid var(--line); }
  .nav-item { width: 76px; min-height: 65px; flex: 0 0 auto; }
  .fab { right: 28px; bottom: 28px; }
  .toast { bottom: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
