:root {
  --bg: #f5f4f1; --panel: #ffffff; --ink: #1b1a1f; --muted: #6b6873; --line: #e4e1dc;
  --brand: #c93c3c; --brand-ink: #ffffff; --brand-soft: #fbe7e5; --gold: #e3a93b; --cream: #fbf6ee;
  --ok: #138a52; --ok-soft: #e3f5ec; --warn: #b26a00; --warn-soft: #fff2dc;
  --bad: #c62f2f; --bad-soft: #fde8e8; --info: #2563c9; --info-soft: #e6efff;
  --side: #1e1b24; --side-ink: #d9d6e0; --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: #d64646 url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20120%20140%27%3E%3Crect%20x%3D%2749%27%20y%3D%270%27%20width%3D%2722%27%20height%3D%2718%27%20rx%3D%275%27%20fill%3D%27%23E3A93B%27/%3E%3Cg%20transform%3D%27rotate%28-6%2060%2076%29%27%3E%3Crect%20x%3D%2716%27%20y%3D%2714%27%20width%3D%2788%27%20height%3D%27120%27%20rx%3D%2716%27%20fill%3D%27%23FBF6EE%27/%3E%3Crect%20x%3D%2744%27%20y%3D%2726%27%20width%3D%2732%27%20height%3D%278%27%20rx%3D%274%27%20fill%3D%27%23D64646%27/%3E%3Cpath%20d%3D%27M36%2080%20L53%2097%20L85%2060%27%20fill%3D%27none%27%20stroke%3D%27%23D64646%27%20stroke-width%3D%2713%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3Crect%20x%3D%2730%27%20y%3D%27115%27%20width%3D%2760%27%20height%3D%276%27%20rx%3D%273%27%20fill%3D%27%23E3A93B%27/%3E%3C/g%3E%3C/svg%3E") center / 62% no-repeat; display: grid; place-items: center; font-size: 0; color: transparent !important; flex: none; }
.side .event { font-size: .78rem; color: #9b97a6; padding: 0 8px 14px; margin-top: -10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-ink); font-size: .93rem; }
.nav a:hover { background: #26232d; text-decoration: none; }
.nav a.active { background: #2f2a3b; color: #fff; }
.nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #77737f; padding: 14px 10px 4px; }
.side .me { border-top: 1px solid #2b2832; margin-top: 16px; padding: 12px 8px 0; font-size: .85rem; }
.side .me button { margin-top: 8px; }
.main { padding: 26px 30px 60px; max-width: 1800px; width: 100%; min-width: 0; }
.topbar { display: none; }
.side-close { margin-left: auto; background: none !important; border: 0 !important; color: #9b97a6 !important; font-size: 1.15rem; padding: 4px 8px; cursor: pointer; }
.side-close:hover { color: #fff !important; }
.side-backdrop { display: none; }
.top-back { color: #fff; font-weight: 700; font-size: 1rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.12); }
.top-back:hover { text-decoration: none; }
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Docked menu hidden on a wide screen (✕ in the menu, ☰ brings it back) */
body.side-collapsed .shell { grid-template-columns: 1fr; }
body.side-collapsed .side:not(.open) { display: none; }
body.side-collapsed .topbar { display: flex; align-items: center; gap: 10px; background: var(--side); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; font-weight: 700; }
body.side-collapsed .topbar button { background: none; border: 0; color: #fff; font-size: 1.4rem; padding: 0 6px; }
/* The automatic back button only shows where there is no docked menu (always for area supervisors) */
.auto-back { display: none; width: max-content; }
.auto-back.always, body.side-collapsed .auto-back { display: inline-flex; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 50; transform: translateX(-105%); transition: transform .2s; height: 100%; }
  .side.open { transform: none; }
  .shell:has(.side.open) .side-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); }
  .auto-back { display: inline-flex; }
  body.side-collapsed .side { display: block; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--side); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; font-weight: 700; }
  .topbar button { background: none; border: 0; color: #fff; font-size: 1.4rem; padding: 0 6px; }
  .main { padding: 18px 14px 60px; }
}

/* ---------- components ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 14px; }
.grid.k { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.ok .n { color: var(--ok); } .stat.warn .n { color: var(--warn); } .stat.bad .n { color: var(--bad); }

button, .btn { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
button:hover, .btn:hover { border-color: #c9c4bd; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--bad); }
button.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
button.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
button.ghost { background: transparent; border-color: transparent; }
button.sm, .btn.sm { padding: 4px 10px; font-size: .85rem; }
button:disabled { opacity: .5; cursor: not-allowed; }
.side button { background: #26232d; color: var(--side-ink); border-color: #34303d; }

label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 4px; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid #d5d1ca; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .93rem; cursor: pointer; }
.check input { margin-top: 3px; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline select, .inline input { width: auto; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #faf9f7; position: sticky; top: 0; }
td { padding: 9px 10px; border-bottom: 1px solid #efece8; vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: #faf8ff; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; max-height: calc(100vh - 170px); }
.table-wrap.full { max-height: none; overflow: visible; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.b-complete { background: var(--ok-soft); color: var(--ok); }
.b-in_progress { background: var(--info-soft); color: var(--info); }
.b-pending { background: #f0eeea; color: #5f5b66; }
.b-overdue, .b-bad { background: var(--bad-soft); color: var(--bad); }
.b-warn, .b-review { background: var(--warn-soft); color: var(--warn); }
.b-not_registered { background: #f4f0ff; color: #6a4bd1; }
.flag { font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); margin-right: 3px; text-transform: uppercase; }
.flag.late, .flag.missing_out, .flag.no_show { background: var(--bad-soft); color: var(--bad); }
.flag.edited, .flag.manual { background: var(--info-soft); color: var(--info); }

.bar { height: 8px; background: #ece9e4; border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 4px; background: #e6e3de; }
.dot.complete { background: var(--ok); } .dot.in_progress { background: var(--info); } .dot.overdue { background: var(--bad); }

.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f6dcd8; display: inline-grid; place-items: center; font-weight: 700; color: #b83232; font-size: .8rem; flex: none; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.6rem; }
.who { display: flex; align-items: center; gap: 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 9px 12px; color: var(--muted); }
.tabs button.active { color: var(--ink); border-color: var(--brand); }

/* toasts & modal */
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 200; }
.toast { background: #1b1a1f; color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: var(--shadow); max-width: 380px; font-size: .92rem; animation: pop .18s ease-out; }
.toast.err { background: var(--bad); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 12, 20, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(920px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal header h2 { margin: 0; }
.modal .body { padding: 18px 20px; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: #fff; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 15% 0%, rgba(214,70,70,.35) 0, transparent 45%), radial-gradient(circle at 90% 100%, rgba(227,169,59,.18) 0, transparent 40%), #1e1b24; }
.auth .card { width: min(430px, 100%); padding: 28px; }
.auth .brand { color: var(--ink); padding: 0 0 6px; }
.demo-logins { margin-top: 16px; font-size: .82rem; background: #fbf6ee; border-radius: 8px; padding: 10px 12px; }
.demo-logins button { margin: 3px 4px 0 0; }

/* onboarding (employee) */
.task { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.task + .task { margin-top: 10px; }
.task:hover { border-color: var(--brand); }
.task .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #f0eeea; color: #5f5b66; }
.task.complete .num { background: var(--ok); color: #fff; }
.task.in_progress .num { background: var(--info); color: #fff; }
.task .count { font-size: .8rem; color: var(--muted); }
.task .count.urgent { color: var(--bad); font-weight: 600; }
.hero { background: linear-gradient(120deg, #1e1b24, #8f2a2a 55%, #d64646); color: #fff; border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.hero .bar { background: rgba(255,255,255,.25); margin-top: 12px; height: 10px; }
.hero .bar > i { background: #fff; }
.policy-box { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfaf8; white-space: pre-wrap; font-size: .92rem; }
.drop { border: 2px dashed #cfc9c1; border-radius: 10px; padding: 22px; text-align: center; background: #fbfaf8; cursor: pointer; }
.drop img { max-width: 220px; max-height: 160px; border-radius: 8px; margin-top: 8px; }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toggle { border-radius: 99px; padding: 8px 14px; }
.toggle.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.avail-day { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.avail-day h3 { display: flex; justify-content: space-between; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d5d1ca; border-radius: 99px; padding: 7px 13px; margin: 4px 6px 0 0; cursor: pointer; user-select: none; background: #fff; font-size: .9rem; }
.chip.on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.chip.on::before { content: "✓"; }

/* schedule */
.sched-day { margin-bottom: 18px; }
.sched-day > h3 { margin: 0 0 8px; font-size: .95rem; }
.slot { display: grid; grid-template-columns: 220px 1fr; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.slot .meta .t { font-weight: 600; }
.fill { font-size: .8rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; display: inline-block; margin-top: 4px; }
.fill.full { background: var(--ok-soft); color: var(--ok); } .fill.short { background: var(--bad-soft); color: var(--bad); } .fill.over { background: var(--warn-soft); color: var(--warn); }
.people { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; padding: 4px 6px 4px 10px; border-radius: 99px; background: #f2f0ec; }
.pill.auto { background: #e3ecff; color: #1d4fa8; }
.pill button { padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; }
.jobgroup { margin-bottom: 6px; }
.jobgroup .jl { font-size: .74rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; font-weight: 700; margin-right: 6px; }
@media (max-width: 700px) { .slot { grid-template-columns: 1fr; } }

/* par grid */
.par-input { width: 64px; text-align: center; padding: 6px; }

/* kiosk */
.kiosk { position: fixed; inset: 0; background: #120f18; color: #fff; z-index: 90; display: flex; flex-direction: column; }
.kiosk header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #2a2633; }
.kiosk header .clock { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kiosk .stage { flex: 1; display: grid; place-items: center; padding: 20px; overflow: auto; }
.kiosk input { font-size: 1.5rem; padding: 16px 18px; background: #1f1b27; border-color: #3a3445; color: #fff; text-align: center; border-radius: 12px; }
.kiosk .results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; width: min(820px, 92vw); }
.kiosk .person { background: #1f1b27; border: 1px solid #3a3445; border-radius: 14px; padding: 16px 10px; text-align: center; cursor: pointer; color: #fff; display: block; }
.kiosk .person:hover { border-color: #d64646; }
.kiosk .person .avatar { width: 72px; height: 72px; margin: 0 auto 8px; display: grid; font-size: 1.3rem; }
.kiosk .person .st { font-size: .78rem; margin-top: 4px; color: #a59fb3; }
.kiosk .person .st.on { color: #4ade80; }
.keypad { display: grid; grid-template-columns: repeat(3, 92px); gap: 12px; justify-content: center; margin-top: 16px; }
.keypad button { height: 78px; font-size: 1.8rem; background: #1f1b27; color: #fff; border-color: #3a3445; border-radius: 14px; justify-content: center; }
.keypad button:active { background: #2f2a3b; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0 4px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6b6578; }
.pin-dots i.f { background: #fff; border-color: #fff; }
.kiosk .big { font-size: 2.2rem; font-weight: 800; text-align: center; }
.kiosk .done-in { color: #4ade80; } .kiosk .done-out { color: #fbbf24; }
.kiosk footer { padding: 12px 24px; border-top: 1px solid #2a2633; color: #a59fb3; font-size: .9rem; display: flex; justify-content: space-between; }
.kiosk button.exit { background: transparent; color: #a59fb3; border-color: #3a3445; }

.stars { display: flex; gap: 4px; }
.stars button { font-size: 1.4rem; padding: 0 3px; border: 0; background: none; color: #d0ccc5; }
.stars button.on { color: #f5a623; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0ede9; }
.empty { text-align: center; padding: 36px; color: var(--muted); }
pre.mail { white-space: pre-wrap; background: #fbfaf8; border: 1px solid var(--line); padding: 12px; border-radius: 8px; font-size: .88rem; margin: 0; font-family: inherit; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* staff roster */
.roster-wrap { max-height: 72vh; }
table.roster { font-size: .84rem; }
table.roster td, table.roster th { padding: 6px 8px; white-space: nowrap; }
table.roster td.edit-cell { white-space: normal; min-width: 140px; max-width: 220px; cursor: pointer; }
table.roster td.edit-cell:hover { background: #faf8ff; }
table.roster tr.off-row td { opacity: .55; background: #fbfbfa; }
select.mini { padding: 4px 6px; font-size: .82rem; width: auto; max-width: 150px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d5d1ca; border-radius: 99px; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(16px); }
.consent { background: #fbf6ee; border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; }
.consent .check { margin-bottom: 10px; font-size: .86rem; }
.scan-btn { width: 100%; justify-content: center; padding: 12px; border-style: dashed; background: #faf8ff; }
.policy-page { min-height: 100vh; background: var(--bg); padding: 30px 16px; }
.policy-page .card { max-width: 760px; margin: 0 auto; padding: 32px; }
.policy-page h3 { margin-top: 20px; }
.policy-page ul { padding-left: 20px; }
.ed-switch { background: #26232d; color: #fff; border-color: #3b3645; font-weight: 600; padding: 7px 9px; font-size: .9rem; }
.ed-current { color: #fff; font-weight: 600; font-size: .9rem; }
.archive-bar { background: var(--warn-soft); color: #6b4300; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }

/* ---------- public homepage ---------- */
.home { min-height: 100vh; background: #fbf6ee; color: #1e1b24; font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; }
.home a { color: inherit; }
.home .wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.home-top { background: #1e1b24; color: #fbf6ee; }
.home-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.home-nav .brand { padding: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }
.home-nav .brand b { color: #e05555; font-weight: 800; }
.home-nav nav { display: flex; gap: 10px; align-items: center; }
.home-nav nav a.link { color: #d9d3c7; padding: 8px 10px; font-weight: 500; }
.home-nav nav a.link:hover { color: #fff; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; border: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.hbtn.red { background: #d64646; color: #fff !important; }
.hbtn.red:hover { background: #bf3838; }
.hbtn.ghost { border-color: rgba(251,246,238,.35); color: #fbf6ee !important; }
.hbtn.ghost:hover { border-color: #fbf6ee; }
.hbtn.dark { background: #1e1b24; color: #fbf6ee !important; }
.hbtn.sm { padding: 8px 14px; }
.home-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 84px; }
.home-hero .eyebrow { display: inline-block; color: #e3a93b; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 16px; }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; font-stretch: 108%; }
.home-hero h1 em { font-style: normal; color: #e05555; }
.home-hero p.lead { font-size: 1.15rem; line-height: 1.55; color: #d9d3c7; max-width: 540px; margin: 0 0 28px; }
.home-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero .events { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: #a9a297; font-size: .88rem; }
.home-hero .events span.ev-chip { border: 1px solid rgba(251,246,238,.22); color: #fbf6ee; border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.pass-card { position: relative; justify-self: center; width: min(330px, 100%); transform: rotate(-4deg); }
.pass-card .strap { width: 46px; height: 64px; margin: 0 auto -12px; background: #e3a93b; border-radius: 8px 8px 4px 4px; }
.pass-card .body { background: #fbf6ee; color: #1e1b24; border-radius: 20px; padding: 26px 24px 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45); border-top: 10px solid #d64646; }
.pass-card .slot { width: 64px; height: 10px; border-radius: 6px; background: #1e1b24; opacity: .15; margin: -10px auto 18px; }
.pass-card .who { display: flex; gap: 14px; align-items: center; }
.pass-card .face { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #e3a93b, #d64646); flex: none; }
.pass-card .name { font-weight: 800; font-size: 1.2rem; }
.pass-card .role { color: #6b6460; font-size: .9rem; }
.pass-card .cleared { margin: 18px 0 14px; background: #d64646; color: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.pass-card ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.pass-card li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e2d9cb; }
.pass-card li:last-child { border-bottom: 0; }
.pass-card li b { color: #1f8a55; }
.pass-card .foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: .78rem; color: #8a8278; font-weight: 600; letter-spacing: 1px; }
.home-section { padding: 84px 0; }
.home-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -1px; line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.home-section .sub { color: #5d5650; font-size: 1.08rem; max-width: 640px; margin: 0 0 40px; line-height: 1.55; }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-feature { background: #fff; border: 1px solid #ece3d6; border-radius: 16px; padding: 24px; }
.home-feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fbe7e5; color: #c93c3c; margin-bottom: 16px; }
.home-feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.home-feature p { margin: 0; color: #5d5650; line-height: 1.5; font-size: .96rem; }
.home-steps { background: #1e1b24; color: #fbf6ee; }
.home-steps .sub { color: #bdb5a9; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps div { border-top: 3px solid #e3a93b; padding-top: 16px; }
.steps div::before { counter-increment: s; content: "0" counter(s); display: block; color: #e3a93b; font-weight: 800; font-size: .85rem; letter-spacing: 2px; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.steps p { margin: 0; color: #bdb5a9; line-height: 1.5; font-size: .95rem; }
.home-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-cta > div { border-radius: 18px; padding: 32px; }
.home-cta .work { background: #d64646; color: #fff; }
.home-cta .team { background: #fff; border: 1px solid #ece3d6; }
.home-cta h3 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.5px; }
.home-cta p { margin: 0 0 22px; line-height: 1.5; }
.home-cta .work p { color: #ffe3df; }
.home-cta .team p { color: #5d5650; }
.home-cta .work .hbtn { background: #fff; color: #c93c3c !important; }
.home-foot { border-top: 1px solid #ece3d6; padding: 28px 0 40px; color: #7a726a; font-size: .9rem; }
.home-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-foot a { color: #5d5650; margin-left: 16px; }
.home-foot a:hover { color: #c93c3c; }
@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; padding: 28px 0 60px; gap: 40px; }
  .home-features, .steps, .home-cta { grid-template-columns: 1fr; }
  .home-nav nav a.link { display: none; }
  .home-section { padding: 60px 0; }
}

/* ---------- onsite clock server ---------- */
.pill.ok { background: var(--ok-soft); color: var(--ok); padding: 4px 10px; }
.pill.warn { background: var(--warn-soft); color: var(--warn); padding: 4px 10px; }
.onsite-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #2b2730; color: #f3eee6; font-size: .85rem; padding: 7px 16px; border-bottom: 3px solid #e3a93b; }
.onsite-bar b.on { color: #6ee7a8; } .onsite-bar b.off { color: #ff8a80; }
.onsite-bar button { background: transparent; color: #f3eee6; border-color: rgba(255,255,255,.35); }
.kiosk .net { font-size: .85rem; color: #a59fb3; } .kiosk .net.off { color: #ffb4a8; }
.kiosk .queued { color: #fbbf24; font-weight: 700; }

/* ---------- staff meals ---------- */
.meal-ticket { max-width: 380px; margin: 0 auto; padding: 0; overflow: hidden; border-top: 10px solid #d64646; }
.meal-ticket .mt-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.meal-ticket .mt-label { font-size: .75rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #d64646; }
.meal-ticket .mt-date { font-size: 1.25rem; font-weight: 800; }
.meal-ticket .mt-qr { display: flex; justify-content: center; padding: 6px 20px; }
.meal-ticket .mt-qr svg { width: min(280px, 100%); height: auto; }
.meal-ticket .mt-code { text-align: center; font-size: 1.05rem; margin: 4px 0 6px; letter-spacing: 1px; }
.meal-ticket .mt-name { text-align: center; font-weight: 700; padding: 12px; margin-top: 12px; border-top: 2px dashed var(--line); background: var(--cream); }
.meal-ticket .mt-used { text-align: center; padding: 30px 20px; color: var(--muted); }
.meal-ticket .mt-used .big { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.meal-result { border-radius: 16px; padding: 24px; text-align: center; color: #fff; }
.meal-result.ok { background: #138a52; } .meal-result.used { background: #b26a00; } .meal-result.bad { background: #c62f2f; }
.meal-result .mr-head { font-size: 2.2rem; font-weight: 900; letter-spacing: 1px; }
.meal-result .mr-person { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 10px; text-align: left; }
.meal-result .mr-name { font-size: 1.4rem; font-weight: 800; }
.meal-result .mr-msg { font-size: 1.1rem; margin: 6px 0; }
.meal-result .avatar { border: 3px solid rgba(255,255,255,.7); }
.steps-list { padding-left: 20px; line-height: 1.7; }
tr.today td { background: #fff8e8; }
.home-reliable { background: #fff; border-top: 1px solid #ece3d6; border-bottom: 1px solid #ece3d6; }
.home-reliable .rel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.home-reliable .eyebrow-dark { display: inline-block; color: #c93c3c; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 12px; }
.home-reliable .rel-points { display: grid; gap: 18px; }
.home-reliable .rel-points > div { display: flex; gap: 16px; align-items: flex-start; }
.home-reliable .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1e1b24; color: #e3a93b; flex: none; }
.home-reliable h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.home-reliable p { margin: 0; color: #5d5650; line-height: 1.5; }
@media (max-width: 860px) { .home-reliable .rel-grid { grid-template-columns: 1fr; gap: 28px; } }
.apply-card { width: min(540px, 100%) !important; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; justify-content: center; padding: 10px 12px; font-weight: 600; }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table tr.grp td { background: var(--cream); font-weight: 800; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.perm-table select.mini { width: auto; padding: 5px 8px; }

/* ---------- Today (supervisor iPad view) ---------- */
.today h1 { margin: 0; }
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.today-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.today-actions select { width: auto; min-width: 180px; padding: 11px 12px; font-size: 1rem; }
.today-actions .primary { padding: 12px 18px; font-size: 1rem; }
.today-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; box-shadow: var(--shadow); white-space: normal; text-align: left; }
.tt b { font-size: 2.1rem; line-height: 1; }
.tt span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.tt.in b { color: var(--ok); } .tt.missing b { color: var(--bad); } .tt.upcoming b { color: #6b6873; } .tt.done b { color: var(--info); }
.tt.on { border-color: var(--ink); }
.tp-group { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.tp-ghead { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.tp-ghead .small { margin-left: auto; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 5px solid transparent; min-height: 64px; }
.tp-row:last-child { border-bottom: 0; }
.tp-row.in { border-left-color: var(--ok); } .tp-row.missing { border-left-color: var(--bad); background: #fff7f6; }
.tp-row.upcoming { border-left-color: #cfcac3; } .tp-row.done { border-left-color: var(--info); }
.tp-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.tp-who .avatar { width: 44px; height: 44px; }
.tp-name { font-weight: 700; font-size: 1.05rem; }
.tp-sub { color: var(--muted); font-size: .88rem; }
.tp-status { text-align: right; flex: none; }
.tp-pill { display: inline-block; padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.tp-pill.in { background: var(--ok-soft); color: var(--ok); } .tp-pill.missing { background: var(--bad-soft); color: var(--bad); }
.tp-pill.upcoming { background: #f0eee9; color: #6b6873; } .tp-pill.done { background: var(--info-soft); color: var(--info); }
.tp-detail { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.tp-call { flex: none; }
@media (max-width: 900px) { .today-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tt.all, .tt.done { grid-column: span 1; } }
@media (max-width: 560px) {
  .today-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt.all { grid-column: span 2; }
  .tt b { font-size: 1.7rem; } .tp-row { flex-wrap: wrap; } .tp-status { text-align: left; }
}
.view-badge { display: inline-block; margin: 0 8px 14px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .3px; background: rgba(255,255,255,.1); color: #f3eee6; }
.topbar .view-badge { margin: 0 0 0 auto; }
.view-badge.v-superadmin { background: #e3a93b; color: #1e1b24; }
.view-badge.v-admin { background: #d64646; color: #fff; }
.view-badge.v-supervisor { background: #2f6fd1; color: #fff; }
.view-badge.v-employee { background: #1f8a55; color: #fff; }
.view-badge.v-vendor { background: #7a5a3a; color: #fff; }
.view-pick { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.view-pick select { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 800; padding: 0; width: auto; cursor: pointer; -webkit-appearance: none; appearance: none; }
.view-pick select option { color: #1e1b24; }
.viewas-bar { background: #fff4d6; border: 1px solid #e3a93b; color: #5a4300; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.viewas-bar #otherView { margin-left: auto; }
.va-list { display: grid; gap: 6px; max-height: 380px; overflow: auto; }
.va-person { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; }
.va-person:hover { border-color: var(--brand); }
.dl-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dl-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.6rem; }
#parPick, #addJob { width: auto; max-width: 100%; }
.sup-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; max-height: 220px; overflow: auto; }
.drag-row { cursor: grab; } .drag-row.dragging { opacity: .45; background: var(--cream); }
.grip { color: var(--muted); font-size: 1.1rem; margin-right: 4px; cursor: grab; }
.nowrap { white-space: nowrap; }
.tr-group { margin-bottom: 22px; }
.tr-sup { margin: 0 0 8px; font-size: 1.15rem; padding-left: 10px; border-left: 4px solid var(--brand); }
.tr-area { margin-bottom: 10px; }
.actions .area-pick, .actions input[type=date] { width: auto; max-width: 100%; }
.flag.auto_out { background: #fde2c4; color: #8a4b00; }
tr.row-warn td { background: #fff7e8; }
.warn-card { background: #fff4d6; border: 1px solid #e3a93b; margin-bottom: 16px; }
.sup-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sup-line:last-child { border-bottom: 0; }
.tr-sup .pill { font-size: .78rem; vertical-align: middle; margin-left: 6px; }

/* ---------- notifications ---------- */
.nav a { position: relative; }
.nav-badge { margin-left: auto; background: #d64646; color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 800; padding: 1px 7px; min-width: 20px; text-align: center; }
.note-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid #cfcac3; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.note-card.unread { border-left-color: var(--info); cursor: pointer; }
.note-card.urgent { border-left-color: #d64646; }
.note-card.urgent.unread { background: #fff6f5; }
.note-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.note-head .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--info); margin-right: 8px; }
.note-urgent { background: #fbe0dd; color: #b42c2c; margin-left: 6px; font-size: .75rem; padding: 2px 8px; }
.note-body { margin: 8px 0; line-height: 1.5; }
.today-notes { display: grid; gap: 8px; margin-bottom: 14px; }
.today-note { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #eef4ff; border: 1px solid #c9dafc; border-radius: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.today-note.urgent { background: #fdecea; border-color: #f2b8b2; }
.today-note .muted { font-weight: 400; }

/* ---------- supervisor iPad home ---------- */
.ipad-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ipad-hello { font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px; }
.ipad-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ipad-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 190px; padding: 22px; border-radius: 22px;
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 8px solid var(--tc); transition: transform .08s; }
.ipad-tile:active { transform: scale(.97); }
.ipad-tile:hover { border-color: var(--tc); text-decoration: none; }
.ipad-tile:hover * { text-decoration: none; }
.it-icon { font-size: 3rem; line-height: 1; margin-bottom: auto; }
.it-label { font-size: 1.45rem; font-weight: 800; letter-spacing: -.3px; color: var(--tc); }
.it-sub { color: var(--muted); font-size: .95rem; }
.it-badge { position: absolute; top: 16px; right: 16px; background: var(--ok-soft); color: var(--ok); border-radius: 99px; padding: 4px 10px; font-size: .85rem; font-weight: 700; }
.it-badge b { color: var(--bad); }
@media (max-width: 1100px) { .ipad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ipad-tile { min-height: 160px; } }
@media (max-width: 480px) { .ipad-tiles { gap: 10px; } .ipad-tile { min-height: 130px; padding: 16px; } .it-icon { font-size: 2.2rem; } .it-label { font-size: 1.15rem; } }
.ipad-back { margin-bottom: 14px; font-size: 1.05rem; padding: 10px 16px; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.emp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 16px; background: #fff; white-space: normal; text-align: center; }
.emp-card:hover { border-color: var(--brand); }
.ec-name { font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.ec-sub { color: var(--muted); font-size: .88rem; }
.ec-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.stars { color: #e3a93b; letter-spacing: 1px; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 2rem; border-radius: 20px; }
.emp-detail { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.order-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.order-cat h2 { margin-top: 0; }
.oi { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.oi:last-child { border-bottom: 0; }
.oi.picked .oi-name { color: var(--brand); font-weight: 800; }
.oi-name { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 46px; height: 46px; border-radius: 12px; font-size: 1.5rem; justify-content: center; padding: 0; }
.oq { min-width: 34px; text-align: center; font-size: 1.2rem; font-weight: 800; }
.order-bar { position: sticky; bottom: 0; display: flex; gap: 10px; background: var(--bg); padding: 12px 0; margin-top: 10px; }
.order-bar input { flex: 1; font-size: 1.05rem; }
button.big { padding: 14px 24px; font-size: 1.1rem; }
.order-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-lines { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; font-size: 1.02rem; }
.medic-head { text-align: center; margin-bottom: 16px; } .medic-head h1 { margin: 0; font-size: 2rem; }
.medic-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.medic-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; border-radius: 24px; border: 0;
  font-size: 2rem; font-weight: 900; letter-spacing: 1px; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.medic-btn span { font-size: 3.4rem; }
.medic-btn.medic { background: #c62f2f; } .medic-btn.security { background: #2f5fb3; } .medic-btn.police { background: #1e1b24; }
.medic-btn:active { transform: scale(.97); }
@media (max-width: 700px) { .medic-btns { grid-template-columns: 1fr; } .medic-btn { min-height: 120px; flex-direction: row; font-size: 1.6rem; } .medic-btn span { font-size: 2.4rem; } }
.quick-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qn { padding: 10px 14px; border-radius: 99px; }
.medic-sent { font-size: 1.6rem; font-weight: 900; padding: 22px; border-radius: 16px; text-align: center; color: #fff; background: #c62f2f; margin-bottom: 12px; }
.medic-sent.security { background: #2f5fb3; } .medic-sent.police { background: #1e1b24; }
.help-sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.help-sec summary { cursor: pointer; padding: 16px 0; font-size: 1.15rem; font-weight: 700; list-style: none; display: flex; gap: 12px; align-items: center; }
.help-sec summary span { font-size: 1.6rem; }
.help-sec > div { padding: 0 0 14px; line-height: 1.6; }
.status-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status-row:last-of-type { border-bottom: 0; }
.sdot { width: 16px; height: 16px; border-radius: 50%; margin-top: 4px; flex: none; background: #cfcac3; }
.status-row.good .sdot { background: #1f8a55; } .status-row.bad .sdot { background: #c62f2f; } .status-row.meh .sdot { background: #e3a93b; }
.dispatch { border-left: 8px solid #c62f2f; } .dispatch.security { border-left-color: #2f5fb3; } .dispatch.police { border-left-color: #1e1b24; }
.dispatch.open { background: #fff6f5; }
.dk { font-weight: 900; font-size: 1.2rem; letter-spacing: 1px; }
.order-desk { margin-bottom: 10px; }
.oi-other { align-items: flex-end; }
.other-text { margin-top: 6px; font-size: 1rem; }
.onhand { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.onhand input { width: 64px; text-align: center; font-size: 1.15rem; padding: 8px 4px; }

/* ---------- iPad Orders: section tabs + item cards with pictures ---------- */
.cat-tabs { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 12px; margin: 0 -2px 6px;
  background: var(--bg); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .cat-tabs { top: 50px; } }
body.side-collapsed .cat-tabs { top: 50px; }
.cat-tabs button { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; min-height: 60px;
  border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 1.1rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.cat-tabs button.on { background: var(--side); color: #fff; border-color: var(--side); }
.cat-tabs .ct-recent { font-size: 1.05rem; padding-left: 14px; }
.ct-img { width: 40px; height: 40px; display: grid; place-items: center; background: #f6f3ee; border-radius: 10px; overflow: hidden; flex: none; }
.cat-tabs button.on .ct-img { background: #fff; }
.ct-img svg, .ct-img img { width: 36px; height: 36px; object-fit: contain; }
.ct-count { position: absolute; top: -8px; right: -6px; background: var(--brand); color: #fff; border-radius: 99px; font-size: .8rem; padding: 2px 8px; min-width: 24px; text-align: center; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; padding-bottom: 8px; }
.oc { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: 10px 14px; align-items: center; background: #fff;
  border: 2px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); transition: border-color .1s; }
.oc.picked { border-color: var(--brand); background: #fffaf9; }
.oc-img { width: 72px; height: 72px; display: grid; place-items: center; background: #f6f3ee; border-radius: 14px; overflow: hidden; grid-row: span 1; }
.oc-img svg, .oc-img img { width: 64px; height: 64px; object-fit: contain; }
.oc-name { font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.oc.picked .oc-name { color: var(--brand); }
.oc-meta { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.oc-ctl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.oc-ctl .onhand { flex-direction: row; gap: 8px; font-size: .78rem; }
.oc .stepper button { width: 54px; height: 54px; font-size: 1.7rem; border-radius: 14px; }
.oc .stepper button[data-plus] { background: var(--side); color: #fff; border-color: var(--side); }
.oc .oq { min-width: 40px; text-align: center; font-size: 1.5rem; font-weight: 800; }
.oc-other .other-text { margin-top: 6px; }
.order-page .order-bar { position: sticky; bottom: 0; z-index: 30; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.08); margin-top: 14px; flex-wrap: wrap; }
.ob-sum { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.ob-sum b { color: var(--ink); }
.order-page .order-bar input { min-width: 180px; }
@media (max-width: 700px) { .oc-grid { grid-template-columns: 1fr; } .ob-sum { width: 100%; } }
/* Order guide (admin): item pictures */
.og-pic { position: relative; cursor: pointer; flex: none; }
.og-img { width: 52px; height: 52px; display: grid; place-items: center; background: #f6f3ee; border-radius: 12px; overflow: hidden; flex: none; }
.og-img svg, .og-img img { width: 46px; height: 46px; object-fit: contain; }
.og-cam { position: absolute; right: -6px; bottom: -6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; font-size: .75rem; padding: 1px 4px; }
.og-pic:hover .og-img { outline: 2px solid var(--brand); }
/* Order history: one card per festival day with a product total at the bottom */
.oh-day { padding: 0; overflow: hidden; margin-bottom: 12px; }
.oh-day + .oh-day { margin-top: 0; }
.oh-day summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; list-style: none; }
.oh-day summary::-webkit-details-marker { display: none; }
.oh-day summary::before { content: "▸"; color: var(--muted); margin-right: -4px; }
.oh-day[open] summary::before { content: "▾"; }
.oh-date { font-weight: 800; font-size: 1.15rem; flex: 1; }
.oh-meta { color: var(--muted); font-weight: 600; }
.oh-orders { padding: 0 18px; border-top: 1px solid var(--line); }
.oh-sum { background: var(--cream, #fbf6ee); border-top: 2px solid var(--line); padding: 14px 18px 16px; }
.oh-sum h3 { margin: 0 0 6px; font-size: 1.05rem; }
.oh-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; margin: 10px 0 2px; }
.oh-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e4dccf; font-size: 1.02rem; }
.oh-line b { font-size: 1.1rem; min-width: 32px; text-align: right; }
/* ---------- Staff Info (searchable staff information sheet) ---------- */
.ipad-info { margin-top: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 8px solid #2f5fb3;
  border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow); }
.ii-label { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; flex: none; }
.ii-label:hover { text-decoration: none; }
.ii-label .it-label, .ii-label .it-sub { display: block; }
.ipad-info .info-search { flex: 1; min-width: 280px; }
.info-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; }
.info-search:focus-within { border-color: #2f5fb3; }
.info-search input { border: 0; padding: 8px 4px; font-size: 1.05rem; outline: none !important; background: transparent; }
.info-search.big { margin-bottom: 10px; box-shadow: var(--shadow); }
.info-search.big input { font-size: 1.2rem; padding: 12px 4px; }
.info-search button { padding: 10px 18px; font-size: 1.02rem; border-radius: 10px; }
.is-icon { font-size: 1.2rem; }
.info-chips { margin-bottom: 14px; }
.info-results { display: grid; gap: 10px; }
.info-hit { border-left: 6px solid #cfcac3; }
.info-hit.best { border-left-color: #2f5fb3; }
.info-hit + .info-hit { margin-top: 0; }
.ih-head { margin-bottom: 6px; font-size: 1.1rem; }
.ih-best { display: inline-block; background: #e7eefb; color: #2f5fb3; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 99px; padding: 3px 9px; margin-right: 8px; vertical-align: 2px; }
.ih-snip { font-size: 1.08rem; line-height: 1.5; margin: 6px 0; }
.ih-snip mark, .info-body mark { background: #fff1b8; padding: 0 2px; border-radius: 3px; }
.info-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.info-toc-item { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.info-toc-item:hover { border-color: #2f5fb3; text-decoration: none; }
.info-sec { padding: 0; margin-bottom: 10px; scroll-margin-top: 70px; }
.info-sec + .info-sec { margin-top: 0; }
.info-sec summary { cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 1.1rem; list-style: none; }
.info-sec summary::-webkit-details-marker { display: none; }
.info-sec summary::before { content: "▸ "; color: var(--muted); }
.info-sec[open] summary::before { content: "▾ "; }
.info-sec.flash { box-shadow: 0 0 0 3px #2f5fb3; }
.info-body { padding: 0 18px 14px; font-size: 1.05rem; line-height: 1.55; border-top: 1px solid var(--line); }
.info-body ul { margin: 6px 0; padding-left: 22px; }
.info-body li { margin: 3px 0; }
.info-doc { margin: 18px 0 8px; }
.info-manage { margin-bottom: 16px; border-left: 6px solid #e3a93b; }
.info-manage summary { cursor: pointer; }
.it-badge.alert { background: #fdecea; color: #c62f2f; }
/* ---------- iPad home: 12 tiles that fill exactly one screen (4×3 sideways, 3×4 upright) ---------- */
.main:has(.ipad-home) { padding-bottom: 16px; }
.ipad-home { display: flex; flex-direction: column; height: calc(100dvh - 42px); min-height: 520px; }
.ipad-home .ipad-head { margin-bottom: 12px; }
.ipad-home .ipad-hello { font-size: 1.6rem; }
.ipad-home .ipad-tiles { flex: 1; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.ipad-home .ipad-tile { min-height: 0; padding: 14px 16px; border-radius: 18px; border-top-width: 7px; gap: 2px; overflow: hidden; }
.ipad-home .it-icon { font-size: clamp(1.8rem, 5.5vh, 2.8rem); }
.ipad-home .it-label { font-size: clamp(1.05rem, 2.6vh, 1.4rem); line-height: 1.15; }
.ipad-home .it-sub { font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ipad-home .it-badge { top: 10px; right: 10px; font-size: .78rem; }
.today-notes.slim { margin-bottom: 10px; }
.today-notes.slim .today-note { padding: 8px 14px; }
@media (orientation: portrait) { .ipad-home .ipad-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ipad-home { height: calc(100dvh - 50px - 34px); } }
body.side-collapsed .ipad-home { height: calc(100dvh - 50px - 42px); }
/* Phones: too small for one screen, so scroll 2 across */
@media (max-width: 600px) {
  .ipad-home { height: auto; }
  .ipad-home .ipad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 128px; }
}
.pill.info { background: #e7eefb; color: #2f5fb3; }
/* ---------- Lost & Found ---------- */
.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.lf-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; position: relative; background: #fff; border: 1px solid var(--line);
  border-left: 6px solid #e0861b; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); cursor: pointer; }
.lf-card.at_tent { border-left-color: #2f5fb3; } .lf-card.returned { border-left-color: var(--ok); opacity: .7; }
.lf-card .pill { position: absolute; top: 10px; right: 10px; font-size: .74rem; }
.lf-img { width: 92px; height: 92px; border-radius: 12px; background: #f6f3ee; display: grid; place-items: center; overflow: hidden; font-size: 2.6rem; }
.lf-img img { width: 100%; height: 100%; object-fit: cover; }
.lf-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); padding-right: 120px; }
.lf-desc { font-weight: 700; font-size: 1.04rem; line-height: 1.3; margin: 2px 0 4px; }
.lf-where { font-size: .92rem; }
.lf-photo { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: #f6f3ee; margin-bottom: 12px; }
.lf-shot { display: grid; place-items: center; border: 2px dashed #cfc9c1; border-radius: 16px; background: #fbfaf8; min-height: 150px; margin-bottom: 14px; cursor: pointer; text-align: center; font-size: 2.4rem; }
.lf-shot b { display: block; font-size: 1.1rem; }
.lf-shot span { display: grid; gap: 4px; place-items: center; }
.lf-shot img { max-height: 140px; border-radius: 10px; }
.lf-cats { display: flex; flex-wrap: wrap; }
.lf-cats .chip.on { background: var(--side); border-color: var(--side); color: #fff; }
/* ---------- Calendar ---------- */
.cal-days button { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 18px; }
.cd-name { font-size: 1.1rem; font-weight: 800; }
.cd-date { font-size: .85rem; font-weight: 600; opacity: .75; }
.cal-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cn { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sc); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.cn-stage { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.cn-live { color: #c62f2f; font-weight: 800; font-size: .85rem; }
.cn-next { color: var(--muted); font-weight: 700; font-size: .85rem; }
.cal-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cal-stage { background: var(--sc); color: #fff; font-weight: 800; font-size: 1.1rem; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; }
.cal-stage button { color: #fff; padding: 2px 8px; }
.cal-set { position: relative; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sc); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.cal-set.editable { cursor: pointer; }
.cal-set.editable:hover { border-color: var(--sc); }
.cal-set.past { opacity: .5; }
.cal-set.live { box-shadow: 0 0 0 3px var(--sc); }
.cs-time { font-weight: 700; color: var(--muted); font-size: .92rem; }
.cs-artist { font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.cs-live { position: absolute; top: 10px; right: 10px; background: #c62f2f; color: #fff; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; text-transform: uppercase; }
@media (max-width: 700px) { .cal-grid { grid-template-columns: 1fr; } }
/* Alerts */
.note-ic { margin-right: 8px; font-size: 1.15rem; }
.note-card.scheduled { border-left-color: #8a3fc7; background: #fcfaff; }
.note-sched { color: #8a3fc7; font-weight: 700; }
.sched-day { margin: 16px 0 8px; font-size: 1.05rem; }
.note-tpls { display: flex; flex-wrap: wrap; }
.note-tpls .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 860px) { .shell { min-height: calc(100dvh - 50px); } }
body.side-collapsed .shell { min-height: calc(100dvh - 50px); }
/* iPad home tiles: picture and words grow with the size of the square, so there is no empty middle */
.ipad-home .ipad-tile { container-type: size; justify-content: center; align-items: center; text-align: center; gap: 0; padding: 10px 12px; }
.ipad-home .it-icon { font-size: min(44cqh, 36cqw); line-height: 1; margin: 0 0 5cqh; }
.ipad-home .it-label { font-size: min(12cqh, 11.5cqw); line-height: 1.1; }
.ipad-home .it-sub { font-size: min(6.4cqh, 6cqw); line-height: 1.25; margin-top: 1.5cqh; -webkit-line-clamp: 2; }
.ipad-home .it-badge { font-size: min(6cqh, 1rem); padding: .3em .7em; }
.ipad-home .it-label { font-size: max(1rem, min(13cqh, 12.5cqw)); }
.ipad-home .it-sub { font-size: max(.74rem, min(7cqh, 6.6cqw)); }
/* Tinted tiles: each square takes a soft shade of its own color, and the picture sits on a white disc for contrast */
.ipad-home .ipad-tile { background: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 16%, #fff), color-mix(in srgb, var(--tc) 30%, #fff));
  border-color: color-mix(in srgb, var(--tc) 35%, #fff); }
.ipad-home .it-icon { display: grid; place-items: center; width: min(58cqh, 48cqw); height: min(58cqh, 48cqw); border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--tc) 30%, transparent); font-size: min(36cqh, 30cqw); margin-bottom: 4cqh; }
.ipad-home .it-sub { color: color-mix(in srgb, var(--tc) 55%, #2a2730); }
/* One look for every tile: white squares on a single dark background */
.main:has(.ipad-home) { background: linear-gradient(180deg, #2a2633, #1e1b24); }
.ipad-home .ipad-hello { color: #fff; }
.ipad-home .ipad-head .muted { color: #c9c3d3; }
.ipad-home .ipad-head b, .ipad-home .ipad-head strong { color: #fff; }
.ipad-home .ipad-tile { background: #fff; border: 0; border-top: 0; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ipad-home .ipad-tile::before { display: none; }
.ipad-home .ipad-tile:hover { outline: 3px solid #d64646; }
.ipad-home .it-icon { background: #f3f1ee; box-shadow: none; }
.ipad-home .it-label { color: #1e1b24; }
.ipad-home .it-sub { color: #6b6575; }
.ipad-home .ipad-tile:hover { outline: 0; }
@media (hover: hover) { .ipad-home .ipad-tile:hover { outline: 3px solid #d64646; } }
.ipad-home .ipad-tile:active { outline: 3px solid #d64646; }
/* ---------- Displays & printers (admin) ---------- */
.disp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; margin-top: 12px; }
.disp-card { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.disp-card.off { opacity: .55; }
.disp-qr { flex: none; width: 132px; height: 132px; background: #fff; }
.disp-qr svg { width: 100%; height: 100%; }
.disp-info { min-width: 0; flex: 1; }
.disp-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--muted); }
.disp-name { font-weight: 800; font-size: 1.15rem; margin: 2px 0 4px; }
.disp-link code { display: block; font-size: .72rem; word-break: break-all; color: var(--muted); margin-top: 6px; }

/* ---------- Kiosk screens (Boneyard orders, medic & police) ---------- */
body.kiosk-body { background: #14121a; }
.kiosk { min-height: 100dvh; display: flex; flex-direction: column; color: #f4f1ec; background: #14121a; font-size: 18px; }
.k-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #1e1b24; border-bottom: 1px solid #2e2a36; position: sticky; top: 0; z-index: 5; }
.k-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; }
.k-title .logo { background: #d64646; color: #fff; border-radius: 8px; padding: 4px 7px; font-size: .9rem; }
.k-meta { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 1.15rem; color: #c9c3d3; }
.k-conn { font-size: 1.1rem; color: #888; } .k-conn.ok { color: #22c55e; } .k-conn.bad { color: #ef4444; animation: kblink 1s infinite; }
.k-board { flex: 1; padding: 18px 20px 30px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.k-card { background: #fff; color: #1e1b24; border-radius: 18px; padding: 16px 18px; border-top: 10px solid #22c55e; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.k-card.order.slow { border-top-color: #f59e0b; } .k-card.order.late { border-top-color: #ef4444; }
.k-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.k-area { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.k-area.big { font-size: 2rem; margin: 6px 0 4px; }
.k-who { color: #5f5868; font-size: 1rem; margin-top: 3px; }
.k-age { text-align: right; flex: none; } .k-age b { display: block; font-size: 1.15rem; } .k-age span { color: #6b6575; font-size: .85rem; }
.k-card.order.late .k-age b { color: #dc2626; } .k-card.order.slow .k-age b { color: #b45309; }
.k-items { width: 100%; border-collapse: collapse; margin: 12px 0 6px; }
.k-items td { padding: 7px 4px; border-top: 1px solid #ece8e1; font-size: 1.15rem; font-weight: 600; }
.k-items td.q { width: 56px; font-size: 1.6rem; font-weight: 900; color: #d64646; text-align: center; }
.k-items td span { color: #8a8394; font-weight: 500; font-size: .95rem; }
.k-note { background: #fff7db; border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-weight: 700; font-size: 1.05rem; }
.k-btn { width: 100%; border: 0; border-radius: 14px; padding: 18px; font-size: 1.4rem; font-weight: 900; margin-top: 10px; cursor: pointer; letter-spacing: .03em; }
.k-btn span { font-size: .95rem; font-weight: 600; opacity: .85; margin-left: 8px; }
.k-btn.ok { background: #16a34a; color: #fff; } .k-btn.warn { background: #f59e0b; color: #1e1b24; }
.k-btn:active { transform: scale(.98); } .k-btn:disabled { opacity: .5; }
.k-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-card.alert { border-top-width: 14px; }
.k-card.alert.medic { border-top-color: #ef4444; } .k-card.alert.security { border-top-color: #3b82f6; } .k-card.alert.police { border-top-color: #1e3a8a; }
.k-card.alert.open { animation: kpulse 1.2s infinite; }
.k-kind { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; }
.k-card.alert.medic .k-kind { color: #dc2626; } .k-card.alert.security .k-kind { color: #2563eb; } .k-card.alert.police .k-kind { color: #1e3a8a; }
.k-mid { display: inline-block; background: #fee2e2; color: #b91c1c; font-weight: 900; font-size: 1.3rem; border-radius: 10px; padding: 4px 12px; margin: 4px 0; }
.k-otw { display: grid; place-items: center; border-radius: 14px; background: #fef3c7; color: #92400e; font-weight: 800; margin-top: 10px; }
.k-empty { text-align: center; color: #9b97a6; padding: 40px; }
.k-empty.big { font-size: 2.2rem; font-weight: 800; color: #4ade80; padding: 14vh 20px; }
.k-empty.big span { display: block; font-size: 1.1rem; font-weight: 500; color: #9b97a6; margin-top: 10px; }
.k-done { margin-top: 26px; border-top: 1px solid #2e2a36; padding-top: 12px; color: #c9c3d3; }
.k-done h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #8a8394; margin: 0 0 8px; }
.k-done-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #23202b; font-size: 1rem; }
.k-done-row button { margin-left: auto; background: #2e2a36; color: #f4f1ec; border: 0; border-radius: 8px; padding: 6px 12px; }
.k-sound { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; }
.k-sound button { background: #d64646; color: #fff; border: 0; border-radius: 99px; padding: 16px 26px; font-size: 1.2rem; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
body.k-alarm .k-head { background: #7f1d1d; animation: kalarm 1s infinite; }
@keyframes kpulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.55), 0 8px 24px rgba(0,0,0,.4); } }
@keyframes kalarm { 50% { background: #b91c1c; } }
@keyframes kblink { 50% { opacity: .2; } }
.k-btns.order-btns { grid-template-columns: 1fr 2fr; }
.k-btn.ghost { background: #ece8e1; color: #1e1b24; font-size: 1.1rem; }
.k-hint { color: #8a8394; font-size: .85rem; text-align: center; margin-top: 6px; }
.k-done-row button + button { margin-left: 6px; }
.k-timer { position: relative; float: right; margin-top: -40px; font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #1e1b24; background: #f3f1ee; border-radius: 12px; padding: 4px 12px; }
.k-timer.long { background: #fee2e2; color: #b91c1c; }
.k-card.alert.received { border-top-color: #f59e0b; }
.k-resp { color: #4ade80; }
.k-alert-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.k-timer { float: none; margin-top: 0; }

/* ==== DARK MODE (generated) ==== */
body.dark { --bg: #15131a; --panel: #1f1c25; --panel2: #27232e; --ink: #ece9f1; --muted: #a39eac; --line: #363140;
  --brand-soft: #3a1f22; --cream: #2a2520; --ok-soft: #14321f; --warn-soft: #3a2c12; --bad-soft: #3d1b1b; --info-soft: #1a2740;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35); color-scheme: dark; }
body.dark, body.dark html { background: var(--bg); color: var(--ink); }
body.dark input, body.dark select, body.dark textarea { background: var(--panel2); color: var(--ink); border-color: var(--line); }
body.dark button:not(.primary):not(.danger):not(.ok):not(.k-btn), body.dark .btn:not(.primary) { background: var(--panel2); color: var(--ink); border-color: var(--line); }
body.dark table th { background: var(--panel2); color: var(--muted); }
body.dark table td, body.dark table th { border-color: var(--line); }
body.dark .modal, body.dark .card, body.dark .table-wrap { background: var(--panel); border-color: var(--line); color: var(--ink); }
body.dark code { background: var(--panel2); color: var(--ink); }
body.dark .muted, body.dark .small.muted { color: var(--muted); }
body.dark a { color: #f08a8a; }
body.dark .nav a, body.dark .ipad-tile, body.dark .ipad-tile:hover { color: inherit; }
body.dark .info-body mark, body.dark .ih-snip mark { background: #5c4a12; color: #fff; }
body.dark .ipad-home .ipad-tile { background: var(--panel); }
body.dark .ipad-home .it-icon { background: var(--panel2); }
body.dark .ipad-home .it-label { color: var(--ink); }
body.dark .ipad-home .it-sub { color: var(--muted); }
body.dark button, body.dark .btn { background: var(--panel); }
body.dark input, body.dark select, body.dark textarea { background: var(--panel); }
body.dark tr.click:hover td { background: var(--panel2); }
body.dark .table-wrap { background: var(--panel); }
body.dark .modal { background: var(--panel); }
body.dark .modal header { background: var(--panel); }
body.dark .modal footer { background: var(--panel); }
body.dark .demo-logins { background: var(--panel2); }
body.dark .task { background: var(--panel); }
body.dark .hero .bar > i { background: var(--panel); }
body.dark .policy-box { background: var(--panel2); }
body.dark .drop { border: 2px dashed var(--line); background: var(--panel2); }
body.dark .avail-day { background: var(--panel); }
body.dark .chip { background: var(--panel); }
body.dark .slot { background: var(--panel); }
body.dark .pill { background: var(--panel2); }
body.dark .pin-dots i.f { background: var(--panel); }
body.dark pre.mail { background: var(--panel2); }
body.dark table.roster td.edit-cell:hover { background: var(--panel2); }
body.dark .switch span::before { background: var(--panel); }
body.dark .consent { background: var(--panel2); }
body.dark .scan-btn { background: var(--panel2); }
body.dark .home { background: var(--panel2); color: var(--ink); }
body.dark .pass-card .body { background: var(--panel2); color: var(--ink); }
body.dark .home-feature { background: var(--panel); }
body.dark .home-cta .team { background: var(--panel); }
body.dark .home-cta .work .hbtn { background: var(--panel); }
body.dark .home-reliable { background: var(--panel); }
body.dark .tt { background: var(--panel); }
body.dark .tp-group { background: var(--panel); }
body.dark .tp-pill.upcoming { background: var(--panel2); }
body.dark .view-pick select option { color: var(--ink); }
body.dark .warn-card { background: var(--warn-soft); }
body.dark .note-card { background: var(--panel); border-left: 5px solid var(--line); }
body.dark .note-card.urgent.unread { background: var(--brand-soft); }
body.dark .today-note.urgent { background: var(--bad-soft); }
body.dark .ipad-tile { background: var(--panel); }
body.dark .emp-card { background: var(--panel); }
body.dark .help-sec { background: var(--panel); }
body.dark .dispatch.open { background: var(--brand-soft); }
body.dark .cat-tabs button { background: var(--panel); }
body.dark .ct-img { background: var(--panel2); }
body.dark .oc { background: var(--panel); }
body.dark .oc.picked { background: var(--panel2); }
body.dark .oc-img { background: var(--panel2); }
body.dark .order-page .order-bar { background: var(--panel); }
body.dark .og-img { background: var(--panel2); }
body.dark .og-cam { background: var(--panel); }
body.dark .oh-line { border-bottom: 1px dashed var(--line); }
body.dark .ipad-info { background: var(--panel); }
body.dark .info-search { background: var(--panel); }
body.dark .info-hit { border-left: 6px solid var(--line); }
body.dark .ih-best { background: var(--info-soft); }
body.dark .ih-snip mark, body.dark .info-body mark { background: var(--warn-soft); }
body.dark .info-toc-item { background: var(--panel); }
body.dark .it-badge.alert { background: var(--bad-soft); }
body.dark .lf-card { background: var(--panel); }
body.dark .lf-img { background: var(--panel2); }
body.dark .lf-photo { background: var(--panel2); }
body.dark .lf-shot { border: 2px dashed var(--line); background: var(--panel2); }
body.dark .cn { background: var(--panel); }
body.dark .cal-set { background: var(--panel); }
body.dark .note-card.scheduled { background: var(--panel2); }
body.dark .ipad-home .ipad-tile { background: var(--panel); }
body.dark .ipad-home .it-icon { background: var(--panel); }
body.dark .ipad-home .ipad-tile { background: var(--panel); }
body.dark .ipad-home .it-icon { background: var(--panel2); }
body.dark .ipad-home .it-label { color: var(--ink); }
body.dark .disp-card { background: var(--panel); }
body.dark .disp-qr { background: #fff; border-radius: 8px; }
/* Light / dark and PC / tablet switches */
.pref-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pref-btns.side { padding: 10px 14px 4px; }
.pref-btns .seg.mini { gap: 0; display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid #3a3544; }
.pref-btns .seg.mini button { background: transparent !important; color: #b7b2c0 !important; border: 0 !important; padding: 5px 9px; font-size: .78rem; border-radius: 0; cursor: pointer; }
.pref-btns .seg.mini button.on { background: #3a3544 !important; color: #fff !important; }
.pref-btns.top { margin-left: auto; margin-right: 8px; }
.pref-btns.top .seg.mini button span { display: none; }
.pref-btns.top .seg.mini button { padding: 5px 8px; font-size: .95rem; }
/* tablet view: no side menu, big buttons everywhere */
body.tablet .shell { grid-template-columns: 1fr; }
body.tablet .side:not(.open) { display: none; }
body.tablet .topbar { display: flex; align-items: center; gap: 10px; background: var(--side); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; font-weight: 700; }
body.tablet .topbar button#menuBtn { background: none; border: 0; color: #fff; font-size: 1.4rem; padding: 0 6px; }
body.tablet .main { padding-top: 16px; }
body.tablet button, body.tablet .btn { min-height: 42px; }
body.tablet .ipad-back.auto-back { display: inline-flex; font-size: 1.05rem; padding: 10px 18px; }
.ipad-home.hub .ipad-tiles { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (orientation: portrait) { .ipad-home.hub .ipad-tiles { grid-template-columns: repeat(var(--pcols), minmax(0, 1fr)); } }
@media (max-width: 600px) { .ipad-home.hub .ipad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ipad-home .it-badge:not(.alert) { background: var(--panel2, #f3f1ee); color: var(--muted); }
.pref-btns.side { flex: none !important; align-items: flex-start; height: auto; }
.pref-btns .seg.mini { flex: none !important; height: auto; align-self: flex-start; }
.pref-btns .seg.mini button { flex: none !important; height: auto; min-height: 0; }
body.dark { --info: #7aa7ff; --ok: #3ccf86; --warn: #f0a640; --bad: #f26b6b; }
body.dark .cat-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
body.dark .tabs button.active, body.dark .seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* kiosk: printer down = this screen is the backup */
.k-printer-down { background: #b91c1c; color: #fff; font-size: 1.5rem; font-weight: 900; border-radius: 16px; padding: 16px 20px; margin-bottom: 16px;
  animation: kalarm 1.2s infinite; letter-spacing: .02em; }
.k-printer-down span { display: block; font-size: 1rem; font-weight: 600; margin-top: 6px; letter-spacing: 0; }
.k-pr { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 800; border-radius: 99px; padding: 2px 8px; background: #ece8e1; color: #5f5868; }
.k-pr.ok { background: #dcfce7; color: #166534; } .k-pr.wait { background: #fef3c7; color: #92400e; } .k-pr.bad { background: #fee2e2; color: #b91c1c; }
.k-age .k-pr { display: block; margin-left: auto; width: max-content; }

/* ---------- System status ---------- */
.st-banner { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.st-banner.ok { background: var(--ok-soft); color: var(--ok); }
.st-banner.warn { background: var(--warn-soft); }
.st-banner.bad { background: var(--bad-soft); }
.st-banner ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink); }
.st-banner li.bad::marker { color: var(--bad); } .st-banner li.warn::marker { color: var(--warn); }
.st-servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; margin-bottom: 16px; }
.st-servers .card + .card { margin-top: 0; }
.st-server.stale .st-meters, .st-server.stale .st-sparks, .st-server.stale .st-kpis { opacity: .55; }
.st-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.st-head h2 { margin: 0; }
.st-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; margin-top: 6px; background: var(--muted); }
.st-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.st-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.st-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.st-dot.off, .st-dot.unknown { background: #b9b5ae; }
.st-meters { display: grid; gap: 10px; margin-bottom: 14px; }
.st-meter-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.st-meter-top .ok { color: var(--ok); } .st-meter-top .warn { color: var(--warn); } .st-meter-top .bad { color: var(--bad); }
.st-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .4s; }
.st-bar i.warn { background: var(--warn); } .st-bar i.bad { background: var(--bad); }
.st-sparks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.st-sparkwrap { position: relative; }
.st-spark { width: 100%; height: 46px; display: block; background: var(--bg); border-radius: 6px; }
.st-spark.overlay { position: absolute; inset: 0; background: transparent; }
.st-kpis { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 10px; }
.st-kpis .n small { font-size: .55em; color: var(--muted); }
.st-meta { margin-bottom: 4px; }
.st-sub { font-size: 1rem; margin: 16px 0 6px; }
.st-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-row .st-dot { margin-top: 5px; }
.st-name { font-weight: 600; min-width: 210px; }
.st-detail { color: var(--muted); font-size: .9rem; flex: 1; }
.st-clients { margin-top: 12px; } .st-clients summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 560px) { .st-servers { grid-template-columns: 1fr; } .st-sparks { grid-template-columns: 1fr; } .st-name { min-width: 0; } .st-row { flex-wrap: wrap; } }
body.dark .st-dot.off, body.dark .st-dot.unknown { background: #5a5763; }

.st-update { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.st-update.ok { background: var(--ok-soft); color: var(--ok); }
.st-update.warn { background: var(--warn-soft); }
.st-update.bad { background: var(--bad-soft); }
.st-update button { padding: 4px 10px; }

/* availability form: required Yes / No answers */
.av-note { background: var(--info-soft); border-radius: 10px; padding: 10px 14px; margin: 8px 0 14px; font-size: .95rem; }
.av-h { margin: 14px 0 8px; font-size: 1.05rem; }
.av-q { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--panel); }
.av-q.todo, .avail-day.todo { border-color: var(--warn); background: var(--warn-soft); }
.avail-day.yes { border-color: var(--ok); }
.avail-day.no { opacity: .75; }
.av-dayhead { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.seg.yn { flex: none; flex-wrap: nowrap; }
.seg.yn button { flex: none; min-width: 64px; padding: 8px 14px; }
.seg.yn button.yes.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.seg.yn button.no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
@media (max-width: 520px) { .av-q, .av-dayhead { flex-direction: column; align-items: stretch; } .seg.yn button { flex: 1; } }
body.dark .avail-day { background: var(--panel); }

/* ---------- published schedule (supervisor iPad) ---------- */
.sv-nav { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.sv-arrow { font-size: 1.8rem; min-width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; padding: 10px 14px; }
.sv-arrow span { font-size: .75rem; color: var(--muted); font-weight: 500; }
.sv-arrow:disabled { opacity: .35; cursor: default; }
.sv-day { flex: 1; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.sv-dl { font-size: 1.35rem; font-weight: 700; }
.sv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sv-chips .chip { margin: 0; }
.sv-chips .chip.on-day { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.sv-shift + .sv-shift { margin-top: 12px; }
.sv-sh { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.sv-sh h2 { margin: 0; }
.sv-p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.sv-who a { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.sv-r { display: flex; gap: 8px; align-items: center; flex: none; }
.tp-pill.late { background: var(--bad-soft); color: var(--bad); }
.pub-days .check { display: block; margin: 6px 0; }

/* ---------- iPad home: swipe left / right between pages of tiles ---------- */
.ipad-home .ipad-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ipad-home .ipad-pages::-webkit-scrollbar { display: none; }
.ipad-home .ipad-pages.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.ipad-home .ipad-pages > .ipad-tiles { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 4px;
  grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
@media (orientation: portrait) { .ipad-home .ipad-pages > .ipad-tiles { grid-template-rows: repeat(4, minmax(0, 1fr)); } }
.ipad-dots { display: flex; justify-content: center; gap: 12px; padding: 12px 0 2px; }
.ipad-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.ipad-dots button.on { background: #fff; transform: scale(1.15); }
@media (max-width: 600px) {
  .ipad-home .ipad-pages { display: block; overflow: visible; }
  .ipad-home .ipad-pages > .ipad-tiles { height: auto; grid-template-rows: none; grid-auto-rows: 128px; margin-bottom: 12px; padding: 0; }
  .ipad-dots { display: none; }
}

.sv-secs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.sv-sec { background: var(--info-soft); color: var(--info); border-radius: 99px; padding: 4px 11px; font-size: .88rem; font-weight: 600; }
.sv-sec.none { background: var(--warn-soft); color: var(--warn); }
.sec-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-pick .chip { margin: 0; font-size: 1rem; padding: 10px 16px; }

/* Under 21: impossible to miss */
.u21-tag { display: inline-block; background: var(--bad); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; white-space: nowrap; }
.u21-tag.sm { font-size: .7rem; padding: 2px 6px; }
.sv-p.u21 { background: var(--bad-soft); border-left: 5px solid var(--bad); padding-left: 10px; margin: 0 -6px; border-radius: 6px; }
.u21-alert { background: var(--bad); color: #fff; font-weight: 700; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.chip.locked { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sec-pick .chip small { font-weight: 500; opacity: .75; margin-left: 4px; }

.lock-btn { border: 0; background: transparent; padding: 0 2px; font-size: .95rem; cursor: pointer; opacity: .45; }
.lock-btn.on { opacity: 1; }
.lock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* Supervisor job access grid (ballot boxes) */
.ja-table th { text-align: center; white-space: nowrap; font-size: .9rem; }
.ja-table th:first-child, .ja-table td:first-child { text-align: left; }
.ja-col { padding: 1px 8px; font-size: .72rem; margin-top: 4px; }
.ja-cell { text-align: center; }
.ja-box { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font-size: .72rem; font-weight: 700; }
.ja-box input { width: 26px; height: 26px; accent-color: var(--ok); cursor: pointer; }
.ja-box input:not(:checked) + span { color: var(--bad); }
.ja-box input:checked + span { color: var(--ok); }

.kiosk .enf.on { border-color: #2f9e62; color: #8be0b0; }
.kiosk .enf.off { border-color: #e0861b; color: #ffc27a; background: rgba(224,134,27,.15); }
.kiosk .k-warn { display: inline-block; margin-top: 12px; background: #e0861b; color: #1b1a1f; font-weight: 800; padding: 6px 14px; border-radius: 8px; }

/* ---------- Labor (on the clock vs. schedule) ---------- */
.lab-card { border-left: 6px solid var(--ok); }
.lab-card.over { border-left-color: var(--bad); } .lab-card.short { border-left-color: var(--warn); }
.lab-card + .lab-card { margin-top: 14px; }
.lab-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.lab-top h2 { margin: 0 0 6px; }
.lab-banner { display: inline-block; font-weight: 800; padding: 6px 12px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
.lab-banner.over { background: var(--bad); color: #fff; } .lab-banner.short { background: var(--warn-soft); color: var(--warn); }
.lab-nums { display: flex; gap: 18px; text-align: center; }
.lab-nums b { display: block; font-size: 2.2rem; line-height: 1; } .lab-nums span { font-size: .8rem; color: var(--muted); }
.lab-jobs { width: 100%; margin: 6px 0 10px; } .lab-jobs td, .lab-jobs th { padding: 6px 8px; }
.lab-tag { font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 6px; }
.lab-tag.over { background: var(--bad); color: #fff; } .lab-tag.short { background: var(--warn-soft); color: var(--warn); } .lab-tag.ok { color: var(--ok); }
.lab-h { font-size: 1rem; margin: 14px 0 4px; } .lab-h.over { color: var(--bad); } .lab-h.short { color: var(--warn); }
.ipad-home .it-badge.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- EMERGENCY takeover ---------- */
.em-overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; color: #fff; text-align: center;
  animation: emFlash 1s steps(1, end) infinite; }
@keyframes emFlash { 0% { background: #c40000; } 50% { background: #1a0000; } }
.em-inner { max-width: 900px; }
.em-flag { font-size: clamp(1.6rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: .06em; animation: emPulse .5s ease-in-out infinite alternate; }
@keyframes emPulse { from { transform: scale(1); } to { transform: scale(1.06); } }
.em-title { font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 900; line-height: 1.05; margin: 18px 0; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.em-body { font-size: clamp(1.1rem, 2.6vw, 1.7rem); line-height: 1.4; background: rgba(0,0,0,.35); border-radius: 14px; padding: 16px 20px; margin: 0 auto 16px; max-width: 800px; }
.em-meta { opacity: .85; margin-bottom: 22px; }
.em-ack { font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 900; padding: 18px 40px; border-radius: 16px; border: 4px solid #fff; background: #fff; color: #b00000; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.em-tap { margin-top: 14px; font-size: .95rem; opacity: .8; }
.em-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; background: #c40000; color: #fff; text-align: center; padding: 10px 14px; font-weight: 700; cursor: pointer; animation: emBan 1.2s ease-in-out infinite alternate; }
.em-banner span { opacity: .8; font-weight: 500; margin-left: 8px; text-decoration: underline; }
@keyframes emBan { from { background: #c40000; } to { background: #7a0000; } }
.em-btn { background: #c40000; color: #fff; border-color: #c40000; font-weight: 800; letter-spacing: .03em; }
.em-btn:hover { background: #a00000; }
.em-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .em-tpls .chip { margin: 0; }
.em-status { border: 2px solid #c40000; background: var(--bad-soft); margin-bottom: 14px; }
.em-status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.em-status-flag { color: #c40000; font-weight: 900; letter-spacing: .05em; }
.em-acks { margin-top: 10px; }

.em-result { border-radius: 10px; padding: 12px 14px; font-size: 1.05rem; margin: 8px 0; }
.em-result.ok { background: var(--ok-soft); color: var(--ok); }
.em-result.bad { background: var(--bad); color: #fff; }
.em-progress { display: flex; gap: 14px; margin: 10px 0; }
.em-progress > div { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.em-progress b { display: block; font-size: 1.8rem; } .em-progress span { color: var(--muted); font-size: .85rem; }

/* ---------- Messages ---------- */
.chat { display: grid; grid-template-columns: 320px 1fr; gap: 14px; height: calc(100dvh - 210px); min-height: 460px; }
.chat-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; }
.chat-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); position: relative; }
.chat-item.on { background: var(--info-soft); }
.ci-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ci-badge { background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
.ci-last { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; padding-right: 54px; }
.ci-time { position: absolute; right: 14px; bottom: 12px; font-size: .75rem; color: var(--muted); }
.chat-pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bub { max-width: 75%; align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.bub.me { align-self: flex-end; background: #2563c9; color: #fff; border-color: #2563c9; border-radius: 16px 16px 4px 16px; }
.bub.pending { opacity: .65; } .bub.failed { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.bub.failed a { color: var(--bad); font-weight: 700; }
.bub-who { font-size: .78rem; font-weight: 700; color: var(--info); margin-bottom: 2px; }
.bub-body { font-size: 1.02rem; line-height: 1.35; word-wrap: break-word; }
.bub-time { font-size: .72rem; opacity: .7; margin-top: 3px; text-align: right; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick .chip { margin: 0; white-space: nowrap; flex: none; }
.chat-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-send input { flex: 1; font-size: 1.05rem; }
.chat-empty { margin: auto; color: var(--muted); padding: 30px; text-align: center; }
.pick-list { max-height: 55vh; overflow-y: auto; display: grid; gap: 6px; }
.pick { text-align: left; justify-content: flex-start; padding: 12px; }
.chat-banner { position: fixed; top: 14px; right: 14px; z-index: 99990; width: min(380px, calc(100vw - 28px)); background: #1e1b24; color: #fff;
  border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: cbIn .25s ease-out; }
.chat-banner .cb-who { font-weight: 700; } .chat-banner .cb-who span { opacity: .7; font-weight: 500; }
.chat-banner .cb-body { margin-top: 3px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes cbIn { from { transform: translateY(-20px); opacity: 0; } }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 190px); }
  .chat.has-open .chat-list { display: none; }
  .chat:not(.has-open) .chat-pane { display: none; }
}

.ch-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ch-people { max-height: 320px; }
.ch-people .check { display: block; margin: 4px 0; }
.chat { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
.chat-pane, .chat-list { min-width: 0; }
@media (max-width: 760px) { .chat { grid-template-columns: minmax(0, 1fr); } }

.em-photo { display: block; margin: 0 auto 16px; width: auto; height: auto; max-width: min(300px, 70vw); max-height: min(300px, 32vh);
  border: 6px solid #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5); background: #fff; }
.em-photo-pick { display: flex; gap: 14px; align-items: flex-start; }
.em-photo-prev { width: 110px; height: 110px; flex: none; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); font-size: .85rem; overflow: hidden; background: var(--bg); }
.em-photo-prev img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Issues (yellow triangle) ---------- */
.issue-ico { width: 1.15em; height: 1.05em; vertical-align: -.12em; flex: none; }
.it-icon .issue-ico { width: 1em; height: .92em; }
.pill.bad { background: var(--bad-soft); color: var(--bad); padding: 4px 10px; font-weight: 700; }
.red { color: var(--bad); }
.issue-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 16px; flex-wrap: wrap; }
.issue-head > .issue-ico { width: 64px; height: 58px; }
.issue-head h1 { margin: 0; }
.issue-area { margin-left: auto; display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.issue-area b { color: var(--ink, #111); font-size: 1.1rem; }
.issue-area select { font-size: 1.05rem; min-width: 200px; }
.issue-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.issue-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; min-height: 120px; justify-content: center;
  background: #fef9c3; border: 3px solid #111; border-radius: 16px; font-size: 1.08rem; font-weight: 800; color: #111; text-align: center; }
.issue-cat span { font-size: 2.3rem; line-height: 1; }
.issue-cat:active { transform: scale(.97); background: #facc15; }
.issue-urgent { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--bad); border-radius: 10px; background: var(--bad-soft); cursor: pointer; }
.issue-urgent input { width: 22px; height: 22px; }
.issue-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.issue-row.urgent { border-left: 5px solid var(--bad); padding-left: 10px; }
.issue-row .ir-ico, .issue-card .ic-ico { font-size: 1.9rem; line-height: 1; flex: none; width: 44px; text-align: center; }
.issue-row .ir-main, .issue-card .ic-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.issue-row .ir-act, .issue-card .ic-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.issue-row.st-resolved, .issue-row.st-cancelled { opacity: .7; }
.issue-log { margin: 6px 0 0; padding-left: 18px; } .issue-log li { margin: 3px 0; }
.issue-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.issue-kpis > div { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 120px; color: var(--muted); font-size: .85rem; }
.issue-kpis b { display: block; font-size: 1.5rem; color: var(--ink, #111); }
.issue-kpis > .bad { border-color: var(--bad); background: var(--bad-soft); } .issue-kpis > .bad b { color: var(--bad); }
.issue-card { border-left: 6px solid #facc15; }
.issue-card.urgent { border-left-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.issue-card.st-dispatched { border-left-color: var(--info); } .issue-card.st-resolved { border-left-color: var(--ok); } .issue-card.st-cancelled { border-left-color: var(--line); }
.issue-card .ic-top { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.issue-card .ic-title { font-size: 1.15rem; font-weight: 800; }
.issue-card .ic-where { font-size: 1.05rem; }
.issue-card .ic-note { background: #fffbea; border-radius: 8px; padding: 6px 10px; }
.issue-tbl td, .issue-tbl th { white-space: nowrap; } .issue-tbl td.small { white-space: normal; min-width: 220px; }
.issue-tbl tr.urgent td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
.ibar { min-width: 120px; height: 12px; background: #f1efe9; border-radius: 6px; overflow: hidden; } .ibar span { display: block; height: 100%; background: #eab308; }
.ihours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 150px; align-items: end; }
.ihours > div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ihours span { width: 100%; background: #eab308; border-radius: 4px 4px 0 0; min-height: 1px; }
.ihours b { position: absolute; top: 0; font-size: .7rem; } .ihours i { font-size: .65rem; color: var(--muted); font-style: normal; height: 14px; }
@media print { .no-print, .nav, header.top, .topbar, .ipad-back { display: none !important; } .card { break-inside: avoid; box-shadow: none; } }
@media (max-width: 700px) { .issue-card .ic-act { flex-direction: row; flex-wrap: wrap; width: 100%; } }
/* Staff info quick copy */
.info-copybar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 18px 4px; }
.info-linecopy { border: 0; background: none; padding: 2px 6px; margin-left: 6px; font-size: .95rem; opacity: .45; cursor: pointer; vertical-align: baseline; min-height: 0; box-shadow: none; }
.info-linecopy:hover, .info-linecopy:active { opacity: 1; background: #eef3ff; border-radius: 6px; }

/* ---------- BravoDash ---------- */
.bd-ico { width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }
.it-icon .bd-ico { width: 1em; height: 1em; }
.bd-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 14px; flex-wrap: wrap; }
.bd-head > .bd-ico { width: 64px; height: 64px; } .bd-head h1 { margin: 0; color: #e5322d; }
.bd-days { display: inline-flex; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; margin-bottom: 12px; }
.bd-days b { min-width: 170px; text-align: center; } .bd-days button { font-size: 1.3rem; padding: 2px 14px; }
.bd-meal { border-top: 5px solid #e5322d; }
.bd-mhead { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; } .bd-mhead h2 { margin: 0; }
.bd-mine { display: flex; gap: 12px; margin-top: 12px; padding: 12px 14px; background: #fff4f2; border: 2px solid #e5322d; border-radius: 12px; }
.bd-mine-main { flex: 1; } .bd-mine-name { font-size: 1.25rem; font-weight: 800; }
.bd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bd-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 12px; text-align: left; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, #fff); }
.bd-item > *:not(.bd-pic) { padding: 0 12px; } .bd-item.picked { border-color: #e5322d; box-shadow: 0 0 0 3px #fde3e1; }
.bd-iname { font-weight: 800; font-size: 1.05rem; }
.bd-pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f6f1ea; }
.bd-nopic { display: grid; place-items: center; font-size: 2.6rem; }
.bd-pic.sm { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 10px; flex: none; font-size: 1.6rem; }
.bd-pic.lg { width: 110px; height: 82px; border-radius: 10px; flex: none; }
.bd-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: #1f8a55; background: #e6f6ed; border-radius: 999px; padding: 2px 8px !important; margin-left: 12px; }
.bd-confirm { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.bd-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bd-mode label { cursor: pointer; } .bd-mode input { position: absolute; opacity: 0; }
.bd-mode span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.6rem; }
.bd-mode span b { font-size: .95rem; } .bd-mode span i { font-size: .75rem; font-style: normal; color: var(--muted); }
.bd-mode input:checked + span { border-color: #e5322d; background: #fff4f2; }
.bd-prep { display: flex; flex-wrap: wrap; gap: 10px; } .bd-prep > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 1.05rem; }
.bd-prep b { font-size: 1.4rem; margin-right: 8px; color: #e5322d; }
.bd-run { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.bd-run-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 1.05rem; } .bd-run-head > span:last-child { margin-left: auto; }
.bd-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.bd-line.st-delivered, .bd-line.st-picked_up { opacity: .55; } .bd-note { color: #b45309; font-weight: 700; }
.bd-mrow { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bd-setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 10px; }
.print-only { display: none; } @media print { .print-only { display: block; } .bd-line button { display: none; } }
@media (max-width: 600px) { .bd-mode { grid-template-columns: 1fr; } }
/* BravoDash v2: courses + countdown */
.bd-count { display: inline-flex; align-items: baseline; gap: 6px; background: #fff4f2; border: 2px solid #e5322d; border-radius: 999px; padding: 4px 14px; }
.bd-count b { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: #e5322d; } .bd-count i { font-style: normal; font-size: .85rem; color: var(--muted); }
.bd-count.soon { background: #e5322d; animation: bdpulse 1s infinite; } .bd-count.soon b, .bd-count.soon i { color: #fff; }
.bd-count.closed { background: #eee; border-color: #bbb; } .bd-count.closed b { color: #777; font-size: 1rem; }
@keyframes bdpulse { 50% { opacity: .75; } }
.bd-meal.missed { background: #f3f3f3; border-top-color: #9ca3af; } .bd-meal.missed h2 { color: #777; }
.bd-missed { margin: 12px 0; padding: 14px; border-radius: 12px; background: #e5e7eb; color: #4b5563; font-weight: 800; font-size: 1.1rem; text-align: center; }
.bd-form.grey { opacity: .4; filter: grayscale(1); pointer-events: none; }
.bd-course { margin-top: 14px; } .bd-clabel { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
.bd-opts, .bd-yn { display: flex; flex-wrap: wrap; gap: 8px; } .bd-opts.long { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bd-opt { padding: 12px 18px; border: 2px solid var(--line); border-radius: 12px; background: var(--card, #fff); font-size: 1.02rem; font-weight: 700; text-align: left; min-width: 90px; }
.bd-opts.long .bd-opt { font-weight: 600; } .bd-optn { display: block; font-size: .75rem; font-weight: 900; letter-spacing: .06em; color: #e5322d; margin-bottom: 4px; }
.bd-opt.on { border-color: #e5322d; background: #e5322d; color: #fff; } .bd-opt.on .bd-optn { color: #fff; }
.bd-yn .bd-opt { min-width: 90px; text-align: center; } .bd-sub { margin-top: 8px; padding-left: 12px; border-left: 3px solid #fde3e1; }
.bd-where { display: flex; gap: 8px; flex-wrap: wrap; } .bd-where select, .bd-where input { flex: 1; min-width: 180px; }
.bd-submit { margin-top: 16px; width: 100%; padding: 16px; font-size: 1.15rem; background: #e5322d; border-color: #e5322d; }
.bd-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bd-totals > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .bd-tl { font-weight: 800; margin-bottom: 6px; }
.bd-tc { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; } .bd-tc b { font-size: 1.3rem; color: #e5322d; min-width: 28px; text-align: right; }
.bd-missedlist { display: flex; flex-wrap: wrap; gap: 8px; } .bd-missedlist span { background: #f3f4f6; border-radius: 999px; padding: 5px 12px; } .bd-missedlist i { color: var(--muted); font-style: normal; font-size: .85rem; }
.bd-daygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.bd-edc { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: grid; gap: 8px; } .bd-edc textarea { min-height: 72px; }
.bd-edopts { display: grid; gap: 6px; } .bd-edo { display: flex; gap: 8px; align-items: center; }
.bd-edo input, .bd-edo textarea { flex: 1; } .bd-edo textarea { min-height: 52px; font-size: 1rem; }
.bd-edn { font-weight: 900; color: #e5322d; min-width: 82px; font-size: .9rem; }
.bd-opt { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.bd-opts.long { grid-template-columns: 1fr; } .bd-opts.long .bd-opt { display: block; width: 100%; padding: 14px 18px; font-size: 1.08rem; }
/* ---------- Safe count ---------- */
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.safe-card { border-top: 6px solid #9ca3af; } .safe-card.due { border-top-color: #e5322d; } .safe-card.done { border-top-color: #1f8a55; }
.safe-ch { display: flex; gap: 12px; align-items: center; } .safe-ch h2 { margin: 0; } .safe-ch .pill { margin-left: auto; } .safe-ic { font-size: 2.2rem; }
.safe-sum { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 6px; } .safe-sum b { display: block; font-size: 1.35rem; } .safe-sum span { color: var(--muted); font-size: .85rem; }
.safe-go { width: 100%; margin-top: 12px; padding: 14px; font-size: 1.1rem; }
.safe-tbl { width: 100%; } .safe-tbl td { padding: 6px 8px; } .safe-tbl .sd { font-weight: 900; font-size: 1.25rem; width: 90px; }
.safe-tbl .sa { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; } .safe-tbl tfoot td { font-weight: 900; font-size: 1.2rem; border-top: 2px solid var(--line); padding-top: 10px; }
.safe-qty { display: flex; gap: 6px; align-items: center; } .safe-qty input { width: 90px; text-align: center; font-size: 1.2rem; }
.safe-qty button { width: 44px; height: 44px; font-size: 1.4rem; padding: 0; }
.safe-diff { margin: 8px 0; padding: 8px 12px; border-radius: 8px; font-weight: 700; } .safe-diff.ok { background: #e6f6ed; color: #1f8a55; } .safe-diff.bad { background: #fff4e5; color: #b45309; }
.safe-confirm { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.safe-confirm input { width: 22px; height: 22px; }
.safe-rep td.ok { background: #f0faf4; } .safe-rep td.miss { background: #fdecec; color: var(--bad); } .sf-bank { width: 110px; }
.safe-rep th.sf-sent, .safe-rep td.sf-sent { background: #f3f7ff; text-align: center; } .sf-q { width: 70px; text-align: center; font-size: 1.05rem; }
.safe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.safe-actions button { padding: 18px; font-size: 1.15rem; font-weight: 900; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.safe-actions button span { font-size: .8rem; font-weight: 600; opacity: .8; }
.safe-req { background: #166534; border-color: #166534; color: #fff; } .safe-stuck { background: #fef9c3; border: 3px solid #111; color: #111; }
.safe-need { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .safe-need > div { display: grid; gap: 8px; }
.safe-nb { padding: 22px 10px; font-size: 1.25rem; font-weight: 900; border: 3px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
.safe-nb.on { background: #166534; border-color: #166534; color: #fff; }
.safe-reqs .order-row.open { background: #fff7e6; border-radius: 8px; padding-left: 8px; }
.issue-catareas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .issue-catareas > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
@media (max-width: 600px) { .safe-actions, .safe-need { grid-template-columns: 1fr; } }
/* light/dark + PC/tablet: small, centered, at the bottom of the side menu */
.pref-btns.side { justify-content: center; gap: 8px; padding: 6px 10px; border-top: 1px solid #2c2834; flex-wrap: nowrap; }
.pref-btns.side .seg.mini { border-radius: 7px; }
.pref-btns.side .seg.mini button { padding: 3px 7px; font-size: .7rem; line-height: 1.2; min-height: 0; }
.pref-btns.side .seg.mini button span { display: none; }
/* ---------- Admin iPad: sales & voids ---------- */
.ipad-home.office .ipad-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pos-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .pos-filters select { font-size: 1.05rem; padding: 10px 12px; min-width: 200px; }
.pos-filters select#posArea { flex: 1; min-width: 260px; }
.pos-demo { background: #fff7e6; border: 1px solid #f5d28a; color: #8a5a00; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: .9rem; }
.pos-kpis b { font-size: 1.7rem; }
.pos-hours { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 200px; align-items: end; }
.pos-hours > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pos-hours span { width: 100%; background: #1f8a55; border-radius: 6px 6px 0 0; min-height: 2px; } .pos-hours b { font-size: .72rem; } .pos-hours i { font-style: normal; font-size: .78rem; color: var(--muted); }
.pos-row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; border-radius: 0; font: inherit; }
.pos-row:not(.static) { cursor: pointer; } .pos-row:not(.static):active { background: #f3f7ff; }
.pos-rank { width: 26px; height: 26px; border-radius: 50%; background: #e6f6ed; color: #1f8a55; font-weight: 900; display: grid; place-items: center; flex: none; font-size: .85rem; }
.pos-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pos-name i { font-style: normal; font-size: .82rem; color: var(--muted); }
.pos-bar { flex: 1.2; height: 14px; background: #f1efe9; border-radius: 7px; overflow: hidden; } .pos-bar > span { display: block; height: 100%; background: #1f8a55; }
.pos-bar.void > span { background: #f59e0b; } .pos-bar.void.hot > span { background: var(--bad); }
.pos-amt { min-width: 100px; text-align: right; font-size: 1.1rem; display: flex; flex-direction: column; } .pos-amt i { font-style: normal; font-size: .78rem; color: var(--muted); font-weight: 500; }
.pos-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .pos-two, .ipad-home.office .ipad-tiles { grid-template-columns: 1fr 1fr; } .pos-bar { display: none; } }
.pos-filters { flex-wrap: nowrap; align-items: stretch; } .pos-filters select { width: auto; } .pos-filters select#posArea { flex: 2; min-width: 0; } .pos-filters select#posDay { flex: 1; min-width: 0; }
.pos-filters button { flex: none; padding: 0 16px; }
@media (max-width: 600px) { .pos-filters { flex-wrap: wrap; } .pos-filters select#posArea { flex-basis: 100%; } }
.ipad-home.office .ipad-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ipad-home.office .ipad-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.office-sos { width: 100%; margin: 0 0 12px; padding: 12px 16px; border: 0; border-radius: 16px; background: #c1121f; color: #fff; font-size: 1.15rem; font-weight: 900;
  letter-spacing: .02em; display: flex; justify-content: center; align-items: baseline; gap: 12px; box-shadow: 0 6px 18px rgba(193,18,31,.35); cursor: pointer; flex: none; }
.office-sos span { font-size: .8rem; font-weight: 600; opacity: .85; } .office-sos:active { transform: scale(.99); }
/* Admin iPad home: big tiles for the main tools, then every other page as small icons (no folders) */
.office-home .ipad-hello { font-size: 1.6rem; } .office-home .ipad-head { margin-bottom: 10px; }
.office-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.office-main .ipad-tile { min-height: 132px; padding: 14px; border-radius: 18px; }
.office-main .it-icon { width: 54px; height: 54px; font-size: 2rem; } .office-main .it-icon .issue-ico, .office-main .it-icon .bd-ico { width: 34px; height: 32px; }
.office-main .it-label { font-size: 1.15rem; } .office-main .it-sub { font-size: .78rem; }
.office-sec { margin-top: 18px; } .office-sec h3 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.office-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.office-mi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink, #111); text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.2; min-height: 52px; }
.office-mi span { font-size: 1.35rem; flex: none; } .office-mi:active { background: #f3f7ff; }
@media (max-width: 1100px) { .office-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .office-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-ico { width: 1.5em; height: 1.15em; } .bd-head > .bd-ico { width: 84px; height: 64px; } .it-icon .bd-ico { width: 1.25em; height: 1em; }
.chan-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 12px; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.brief-secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; max-height: 220px; overflow: auto; }
.brief-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: #f4f2ee; margin-top: 8px; }
@media (max-width: 1000px) { .brief-grid { grid-template-columns: 1fr; } }
