/*
  Palette from the reference board the couple picked: sky-blue to periwinkle wash,
  frosted white panels, navy type. Blue is the single accent (actions, progress, done states).
  Plus Jakarta Sans: Indonesian-made geometric sans, close to the reference's rounded grotesk.
*/
:root {
  --bg: #eef5fc;
  --ink: #1d2550;
  --muted: #545d86;
  --faint: #6a7299;
  --accent: #3b57d9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(59, 87, 217, 0.1);
  --accent-2: #5cc0ec;
  --good: #1c7f56;
  --bad: #c2410c;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.75);
  --line: rgba(29, 37, 80, 0.08);
  --line-strong: rgba(29, 37, 80, 0.18);
  --edge: rgba(255, 255, 255, 0.9);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* Static wash, as in the reference: cyan top-left, periwinkle top-right, fading to white. */
.backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 55% at 100% 0%, #c3c6fa 0%, transparent 70%),
    radial-gradient(90% 60% at 0% 0%, #bfe9f9 0%, transparent 72%),
    linear-gradient(180deg, #d4ecfa 0%, #eef5fc 55%, #f6f9fd 100%);
}

/* Panels: frosted white over the wash. Real backdrop blur is kept for the layers that float over
   content (tab bar, sheet, toast); flat panels don't need it since the wash behind them is static. */
.glass {
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: 0 1px 2px rgba(29, 37, 80, 0.04), 0 8px 24px -16px rgba(43, 66, 150, 0.25);
}
.tabbar.glass, .sheet.glass, .toast.glass {
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar.glass, .sheet.glass, .toast.glass { background: #f7faff; }
}

/* Layout */
.view {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 20px) 16px calc(var(--tabbar-h) + var(--safe-b) + 40px);
  outline: none;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 4px 18px; }
.page-head h1 { font: 700 30px/1.1 var(--display); letter-spacing: -0.025em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; min-height: 44px; margin: -6px 0 -4px -6px; padding: 0 6px; }
.stack { display: grid; gap: 14px; }
.card { border-radius: var(--r-lg); padding: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title h2 { font: 700 18px/1.2 var(--display); letter-spacing: -0.015em; }
.card-title .meta { color: var(--muted); font-size: 13px; }
.section-label { margin: 24px 6px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.section-label h2 { font: 700 19px/1.15 var(--display); letter-spacing: -0.02em; }
.section-label span { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Icons */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }

/* Tab bar */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 480px);
  height: var(--tabbar-h);
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  z-index: 10;
}
.tabbar.glass { background: rgba(255, 255, 255, 0.72); box-shadow: 0 14px 34px -14px rgba(43, 66, 150, 0.35); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 600;
  border-radius: 18px; transition: color 0.2s, background-color 0.2s;
}
.tabbar a[aria-current='page'] { color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero { border-radius: 28px; padding: 24px 20px 20px; position: relative; background: var(--surface-2); }
.hero .names { font: 800 40px/1.05 var(--display); margin: 6px 0 8px; letter-spacing: -0.035em; }
.hero .names em { font-style: normal; color: var(--accent); padding: 0 0.16em; font-weight: 600; }
.hero .date { color: var(--muted); font-size: 14px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.countdown div { border-radius: var(--r-md); padding: 12px 12px 10px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.countdown b { display: block; font: 700 28px/1.05 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.countdown div:first-child b { color: var(--accent); }
.countdown span { font-size: 12px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border-radius: 20px; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 88px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .value { font: 700 19px/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--faint); }
.ring { width: 54px; height: 54px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: rgba(59, 87, 217, 0.12); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease-out); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring.lg { width: 112px; height: 112px; }
.ring.lg circle { stroke-width: 8; }
.ring.lg .pct { font: 700 24px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Progress bar: the one place the cyan-to-blue blend from the reference is used, to show fill. */
.bar { height: 6px; border-radius: 99px; background: rgba(59, 87, 217, 0.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.5s var(--ease-out); }
.bar.olive > i { background: var(--good); }
.bar.terra > i { background: var(--bad); }
.bar.split { display: flex; }
.bar.split > i { border-radius: 0; background: var(--accent); }
.bar.split > i + i { background: var(--accent-2); }

/* Rows / lists */
.rows { border-radius: var(--r-lg); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; background: none; border: 0; padding: 4px 0; text-align: left; display: block; }
.row-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.row-end { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.row-end b { display: block; font-weight: 600; }
.row-end span { font-size: 12px; color: var(--muted); }
.row.done .row-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(29, 37, 80, 0.35); }

.check {
  width: 44px; height: 44px; margin: -6px; flex: none; display: grid; place-items: center;
  background: none; border: 0; padding: 0;
}
.check > span {
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: #fff;
  transition: background-color 0.2s, border-color 0.2s, transform 0.16s var(--ease-out);
}
.check .ic { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease-out); color: var(--accent-ink); }
.check[aria-pressed='true'] > span { background: var(--accent); border-color: var(--accent); }
.check[aria-pressed='true'] .ic { opacity: 1; transform: none; }
.check:active > span { transform: scale(0.9); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--muted); background: #fff; }
.badge.warn { color: #9a3412; border-color: rgba(194, 65, 12, 0.3); background: #fff3ea; }
.badge.ok { color: #166544; border-color: rgba(28, 127, 86, 0.3); background: #eaf7f0; }
.badge.gold { color: #2c43b0; border-color: rgba(59, 87, 217, 0.3); background: #eef1ff; }

/* Chips & segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 6px; margin: 0 -4px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--edge);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { opacity: 0.65; margin-left: 4px; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; margin-bottom: 14px; }
.seg button { min-height: 40px; border: 0; background: none; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; transition: background-color 0.2s, color 0.2s; }
.seg button[aria-pressed='true'] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(29, 37, 80, 0.1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.8); font-weight: 600; text-decoration: none;
  transition: background-color 0.2s, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: rgba(194, 65, 12, 0.3); background: #fff6f0; }
.btn.block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; flex: none;
  border: 1px solid var(--line-strong); background: #fff; text-decoration: none; color: var(--ink);
}
.icon-btn:active { transform: scale(0.94); }
.add-btn { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 0; flex: none; box-shadow: 0 10px 22px -10px rgba(59, 87, 217, 0.6); }
.add-btn:active { transform: scale(0.94); }
.add-btn .ic { stroke-width: 2.2; }
.text-btn { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; gap: 6px; }

/* Summary numbers */
.big-money { font: 800 32px/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.035em; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kv > div { border-radius: var(--r-md); padding: 10px 12px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--accent); }
.legend i.olive { background: var(--accent-2); }

/* Quick tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { border-radius: 20px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-height: 118px; transition: transform 0.18s var(--ease-out), background-color 0.2s; }
.tile:active { transform: scale(0.98); }
.tile .ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -0.015em; }
.tile span { font-size: 12px; color: var(--muted); }

/* Timeline (rundown) */
.rundown { position: relative; padding-left: 4px; }
.rd-item { position: relative; padding: 0 0 14px 26px; }
.rd-item::before { content: ''; position: absolute; left: 7px; top: 22px; bottom: -4px; width: 1px; background: var(--line-strong); }
.rd-item:last-child::before { display: none; }
.rd-item::after { content: ''; position: absolute; left: 2px; top: 16px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.rd-card { border-radius: 18px; padding: 12px 14px; display: block; width: 100%; text-align: left; }
.rd-time { font-size: 12px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-title { font: 700 16px/1.25 var(--display); margin-top: 2px; letter-spacing: -0.01em; }
.rd-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rd-hl { font-size: 13px; color: var(--muted); margin-top: 8px; white-space: pre-line; border-top: 1px dashed var(--line-strong); padding-top: 8px; }

/* Vendor cards */
.vendor { border-radius: 20px; padding: 14px; display: grid; gap: 10px; }
.vendor-top { display: flex; align-items: flex-start; gap: 10px; }
.vendor-top .row-main { padding: 0; }
.vendor-actions { display: flex; gap: 8px; }
.vendor-actions .btn { flex: 1; min-height: 42px; font-size: 14px; }

/* Search */
.search { display: flex; align-items: center; gap: 8px; border-radius: 16px; padding: 0 14px; margin-bottom: 12px; min-height: 48px; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; outline: none; min-height: 46px; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--faint); }

/* Details note */
details.note { border-radius: var(--r-lg); padding: 4px 18px; }
details.note summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 600; }
details.note summary::-webkit-details-marker { display: none; }
details.note summary .ic { transition: transform 0.2s var(--ease-out); transform: rotate(90deg); }
details.note[open] summary .ic { transform: rotate(-90deg); }
details.note div { white-space: pre-line; color: var(--muted); font-size: 14px; padding-bottom: 16px; }

/* Empty */
.empty { text-align: center; padding: 28px 18px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 700 17px/1.3 var(--display); margin-bottom: 4px; }

/* Bottom sheet */
.sheet {
  margin: auto auto 0; width: min(100%, 560px); max-height: 92dvh; padding: 0; border-radius: 28px 28px 0 0;
  color: var(--ink); border-bottom: 0; overflow: hidden;
}
.sheet.glass { background: rgba(246, 249, 255, 0.9); box-shadow: 0 -10px 40px -10px rgba(43, 66, 150, 0.3); }
.sheet[open] { animation: sheet-in 0.32s var(--ease-out); }
.sheet::backdrop { background: rgba(29, 37, 80, 0.28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 28px; border-bottom: 1px solid var(--edge); } @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } } }
.sheet form { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 22px; position: relative; }
.sheet-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); transform: translateX(-50%); }
.sheet-head h2 { font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; padding-top: 14px; }
.sheet-body { padding: 8px 22px 12px; overflow-y: auto; display: grid; gap: 14px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 22px calc(16px + var(--safe-b)); display: flex; gap: 10px; border-top: 1px solid var(--line); }
.sheet-foot .btn.primary { flex: 1; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.hint { font-size: 12px; color: var(--faint); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); transform: translateX(-50%);
  border-radius: 16px; padding: 8px 8px 8px 16px; display: flex; align-items: center; gap: 12px; z-index: 30;
  font-size: 14px; font-weight: 500; max-width: calc(100% - 32px);
  animation: toast-in 0.28s var(--ease-out);
}
.toast.glass { background: rgba(29, 37, 80, 0.88); color: #fff; border-color: rgba(255, 255, 255, 0.15); }
.toast .btn { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.toast:not(:has(button)) { padding-right: 16px; min-height: 44px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.toast[hidden] { display: none; }

.install { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 14px; }
.install p { flex: 1; font-size: 14px; }

a.text-btn { text-decoration: none; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .page-head h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Grid children default to min-width:auto, which let date inputs push the sheet wider than the screen. */
.sheet-body > *, .field, .field-row > * { min-width: 0; }
.sheet { max-width: 100%; }
.field input[type='date'] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; padding-right: 10px; }
@media (max-width: 719px) { .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; } }

/* Figures and short labels stay on one line; sizes are set so they fit a 360px phone. */
.big-money { font-size: 28px; white-space: nowrap; }
.big-money.md { font-size: 22px; }
.stat { flex-direction: column; align-items: flex-start; gap: 10px; }
.stat .ring { width: 46px; height: 46px; }
.stat .ring .pct { font-size: 11px; }
.stat .value, .stat .sub, .stat .label, .kv dd, .kv dt, .row-end b, .row-end span, .badge, .countdown span { white-space: nowrap; }

/* Side tag on guest rows: blue for the groom's side, rose for the bride's, so the two read apart at a glance. */
.badge.side-pria { color: #2c43b0; border-color: rgba(59, 87, 217, 0.28); background: #eef1ff; }
.badge.side-wanita { color: #a3245a; border-color: rgba(190, 40, 100, 0.25); background: #fdeef4; }

/* Bottom sheet spans the device width on phones and never scrolls sideways. */
.sheet-body { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 639px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-left: 0; border-right: 0; }
}
.ring-ico { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.text-btn, .tile span, .rd-time { white-space: nowrap; }
.small.muted span { white-space: nowrap; }

/* ---------- 3D glass art ---------- */
.ico3d { width: 52px; height: 52px; flex: none; overflow: visible; }
.ico3d.lg { width: 64px; height: 64px; }
.tile .ico3d { margin: -4px 0 -2px -4px; }
.hero { padding-top: 12px; }
.hero-art { display: block; width: calc(100% + 24px); max-width: 360px; height: auto; margin: 0 -12px 6px; overflow: visible; }

/* Guest card: the one summary that spans the row, with its own composition chart. */
.guest-card { display: grid; gap: 14px; border-radius: var(--r-lg); padding: 16px 18px 18px; text-decoration: none; margin-bottom: 12px; background: var(--surface-2); }
.gc-head { display: flex; align-items: center; gap: 14px; }
.gc-head .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.gc-head .value { font: 800 24px/1.1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.gc-head .sub { font-size: 12px; color: var(--faint); }
.gc-chart { display: grid; gap: 6px; }
.gc-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.gc-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gc-row + .bar + .gc-row { margin-top: 6px; }
.gc-split { height: 10px; }
.bar.gc-split > i:first-child { background: linear-gradient(90deg, #7f9cff, var(--accent)); }
.bar.gc-split > i + i { background: linear-gradient(90deg, #f7a8c2, #ec6e96); }

/* The three ring stats sit in one row under the guest card. */
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px; min-height: 0; gap: 8px; }
.stat .value { font-size: 17px; }
.stat .sub, .stat .label { font-size: 11px; }
.ring .arc { stroke: url(#g-blue); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Filter chips: outlined pills, the selected one turns solid white (reference: All / Living Room). */
.chips { gap: 10px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink); background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(29, 37, 80, 0.16);
}
.chip[aria-pressed='true'] { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(43, 66, 150, 0.45); }
.chip .n { color: var(--muted); opacity: 1; }
