/* Qwiks CareRoom — one stylesheet, no framework. Brand colours come from /theme.css. */
:root {
  --brand: #2E6B57; --brand-ink: #fff; --brand-tint: rgba(46,107,87,.10); --brand-line: rgba(46,107,87,.35); --brand-dark: #1F4A3C;
  --ground: #F6F4EF; --surface: #fff; --surface-2: #FBFAF7; --ink: #1F2A26; --muted: #5B6762; --faint: #8A938F;
  --line: #E7E3DA; --line-2: #EFEBE3; --field: #D6D1C5;
  --ok-bg: #E3F0EA; --ok: #1F5A45; --warn-bg: #FBEBD3; --warn: #8A4F0C; --bad-bg: #FCE8E6; --bad: #8C1D18; --info-bg: #E3E8F2; --info: #24406B;
  --internal-bg: #FDF3E1; --internal-line: #EBC88A; --internal: #7A4A06;
  --radius: 16px; --radius-s: 12px; --shadow: 0 6px 20px rgba(31,42,38,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
  --sidebar: #17322A;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ico-s { width: 16px; height: 16px; }
.ico-l { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.sec { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.hidden { display: none !important; }

/* layout helpers */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.stack-l { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col, 260px)), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: block; color: inherit; }
a.tile:hover { text-decoration: none; border-color: var(--brand-line); }
.kpi-n { font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.brand-card { background: var(--brand); color: var(--brand-ink); border-radius: 20px; padding: 18px; }
.brand-card .muted { color: inherit; opacity: .85; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-s); border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none !important; line-height: 1.2; background: none; color: inherit; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(.94); color: var(--brand-ink); }
.btn-line { background: var(--surface); border-color: var(--field); color: var(--ink); }
.btn-line:hover { border-color: var(--muted); color: var(--ink); }
.btn-ghost { color: var(--brand); padding: 0 10px; }
.btn-danger { background: var(--surface); border-color: #E3B1AA; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-white { background: #fff; color: var(--brand); }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #EEECE6; color: #4A5551; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-brand { background: var(--brand-tint); color: var(--brand-dark); }
.chip-internal { background: var(--internal-bg); color: var(--internal); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D9534F; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* avatars */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.avatar-s { width: 30px; height: 30px; font-size: 11px; }
.avatar-l { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.avatar-sq { border-radius: 12px; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 700; }
.help { font-size: 12px; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], input[type=color], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--field); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
input[type=color] { padding: 4px; width: 64px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-line); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 52px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--brand-line); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.error-text { color: var(--bad); font-size: 13px; font-weight: 600; }

/* alerts / flashes */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); font-size: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.flashes { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 80; width: min(560px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; }
.flashes .alert { box-shadow: var(--shadow); }
@media (min-width: 960px) { .flashes { bottom: 24px; } }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }

/* lists */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: inherit; min-height: 56px; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); text-decoration: none; color: inherit; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ico { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--faint); display: block; }

/* page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--brand); }
.seg { display: inline-grid; grid-auto-flow: column; background: #F1EEE7; border-radius: 12px; padding: 4px; gap: 2px; }
.seg a, .seg button { min-height: 36px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg .on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ---------- staff shell ---------- */
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: none; background: var(--sidebar); color: #fff; padding: 18px 12px; display: none; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: inherit; text-decoration: none !important; }
.brandmark .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; overflow: hidden; }
.brandmark .logo img { width: 100%; height: 100%; object-fit: cover; }
.brandmark .t1 { font-weight: 800; font-size: 15px; line-height: 1.2; }
.brandmark .t2 { font-size: 12px; color: #A9C2B8; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: #D5E2DC; font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: rgba(255,255,255,.13); color: #fff; }
.nav .badge { margin-left: auto; }
.nav-sec { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #86A397; padding: 12px 12px 4px; }
.me { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; }
.me a { color: #D5E2DC; }
.content { flex: 1; min-width: 0; padding: 20px 16px 110px; max-width: 1400px; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 60px; }
.topbar .brandmark .t2 { color: var(--muted); }
.mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 700; color: #6B7570; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; position: relative; }
.mobile-nav .on { color: var(--brand); }
.mobile-nav .badge { position: absolute; top: 2px; left: 52%; }
.mobile-nav .plus { width: 56px; height: 50px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); margin: 0 auto; box-shadow: 0 6px 16px rgba(31,42,38,.18); }
.drawer-nav a { color: var(--ink); }
.drawer-nav a:hover, .drawer-nav a.on { background: var(--brand-tint); color: var(--ink); }
@media (min-width: 960px) {
  .sidebar { display: flex; }
  .topbar, .mobile-nav { display: none; }
  .content { padding: 28px 32px 48px; }
}

/* ---------- parent shell ---------- */
.p-shell { max-width: 620px; margin: 0 auto; min-height: 100vh; background: var(--ground); position: relative; }
.p-hero { background: var(--brand); color: var(--brand-ink); padding: calc(18px + env(safe-area-inset-top)) 16px 56px; }
.p-hero .glass { background: rgba(255,255,255,.16); color: inherit; }
.p-hero a { color: inherit; }
.p-kids { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.p-kids a { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.16); color: inherit; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.p-kids a.on { background: #fff; color: var(--brand); }
.p-childcard { margin: -40px 16px 0; position: relative; box-shadow: var(--shadow); }
.p-bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top)) 12px 8px; display: flex; align-items: center; gap: 6px; min-height: 60px; }
.p-main { padding: 16px 16px 120px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- room feed ---------- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.post.internal { background: var(--internal-bg); border-color: var(--internal-line); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.post-body { padding: 0 16px 12px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.post-tag { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: 12px; font-weight: 800; color: var(--internal); }
.media-grid { display: grid; gap: 2px; grid-template-columns: repeat(2, 1fr); background: var(--line-2); }
.media-grid.one { grid-template-columns: 1fr; }
.media-grid a, .media-grid video { display: block; background: #E4EEE8; }
.media-grid img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; aspect-ratio: 4 / 3; }
.media-grid.one img { aspect-ratio: auto; object-fit: contain; background: #F1EEE7; }
.media-grid video { width: 100%; max-height: 520px; background: #000; }
.files { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 12px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.file-row .ext { width: 40px; height: 40px; border-radius: 10px; background: #FBE4DF; color: #8F2D1C; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; text-transform: uppercase; flex: none; }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-top: 1px solid var(--line-2); }
.post-actions button, .post-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: none; }
.post-actions .liked { color: #B3261E; }
.post-actions .liked .ico { fill: currentColor; }
.comments { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment .bubble { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 12px; min-width: 0; overflow-wrap: anywhere; }
.post.internal .comment .bubble { background: rgba(255,255,255,.6); }
.comment-form { display: flex; gap: 8px; padding: 0 16px 14px; }
.comment-form input { min-height: 40px; border-radius: 999px; font-size: 14px; flex: 1; min-width: 0; }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.composer.is-internal { background: var(--internal-bg); border-color: var(--internal-line); }
.composer textarea { border: 0; padding: 6px 4px; min-height: 64px; resize: none; background: transparent; }
.composer textarea:focus { outline: none; }
.vis-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.vis-toggle label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--field); background: #fff; cursor: pointer; }
.vis-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vis-toggle input:checked + span { color: inherit; }
.vis-toggle label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.vis-toggle label.int:has(input:checked) { background: var(--internal); border-color: var(--internal); color: #fff; }
.picked-files { font-size: 12px; color: var(--muted); }

/* ---------- schedule ---------- */
.board { min-width: 860px; }
.board-row { display: grid; grid-template-columns: 180px repeat(var(--days, 6), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.board-row:last-child { border-bottom: 0; }
.board-head { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.board-head > div { padding: 10px; }
.board-cell { border-left: 1px solid var(--line-2); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.board-cell.today { background: var(--brand-tint); }
.board-name { padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.blk { display: block; border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.3; color: var(--ink); text-decoration: none !important; border: 1px solid transparent; }
.blk:hover { filter: brightness(.97); color: var(--ink); }
.blk b { display: block; font-weight: 800; }
.blk.free { border: 1.5px dashed #B9B3A6; color: #4A5551; background: transparent; }
.blk.leave { background: #F1EEE7; border-color: #E1DCD1; color: #4A5551; }
.blk.st-attended { opacity: .75; }
.blk.st-absent { text-decoration: line-through !important; opacity: .7; }
.sess { display: flex; gap: 14px; align-items: center; padding: 14px 16px; color: inherit; }
.sess-time { width: 64px; flex: none; }
.sess-bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-strip a { min-height: 62px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; }
.week-strip a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.week-strip .d { font-size: 11px; font-weight: 700; }
.week-strip .n { font-size: 17px; font-weight: 800; }
.week-strip .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.week-strip a.on .pip { background: #fff; }
.plan-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.plan-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); }
.plan-item.blocked { background: var(--bad-bg); border-color: #EBC1BA; color: var(--bad); }
.plan-item.warned { background: var(--warn-bg); border-color: #EFD3A8; }
.plan-item.skipped { opacity: .65; }

/* ---------- misc components ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 40px); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog:focus { outline: none; }
dialog::backdrop { background: rgba(20,28,25,.45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; gap: 10px; }
.dlg-body { padding: 8px 18px 20px; }
@media (max-width: 600px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
.install-banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--brand-tint); border: 1px solid var(--brand-line); }
.install-banner .logo { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); column-gap: 12px; font-size: 14px; }
.kv > dt { color: var(--muted); font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.kv > dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; overflow-wrap: anywhere; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps > li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.steps > li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; }
.guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.guest-box { width: min(560px, 100%); }
.guest-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin: 0 auto 14px; overflow: hidden; }
.req { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.req .ok { color: var(--ok); } .req .no { color: var(--bad); } .req .opt { color: var(--warn); }
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .mobile-nav, .p-bar, .no-print, .flashes { display: none !important; }
  .content, .p-main { padding: 0 !important; }
  .card { border: 0; }
  .print-only { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fade .25s ease-out; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.chip-muted { background: #EEECE6; color: #4A5551; }

.tile.stack-s, .tile.stack { display: flex; }
.card.row { flex-wrap: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 160px), 1fr)); gap: 6px; margin-bottom: 16px; }
.g-item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #E4EEE8; display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-video { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #2F5A4A; background: #DCE4F2; }
