:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --surface-3: #ece2d4;
  --text: #241619;
  --muted: #776a6c;
  --line: #ebe1d3;
  --brand: #8a2440;
  --brand-2: #a8324f;
  --brand-soft: #f6e6ea;
  --brand-ink: #ffffff;
  --gold: #b68a3a;
  --gold-soft: #f7edd9;
  --ok: #2e7d4f;
  --ok-soft: #e4f3ea;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --shadow-sm: 0 1px 2px rgba(50, 20, 30, .06);
  --shadow: 0 1px 2px rgba(50, 20, 30, .05), 0 8px 24px rgba(50, 20, 30, .07);
  --shadow-lg: 0 20px 50px rgba(30, 10, 15, .25);
  --r: 18px;
  --r-sm: 12px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141011;
    --surface: #1e1819;
    --surface-2: #272021;
    --surface-3: #32292a;
    --text: #f3ebe6;
    --muted: #ab9e9b;
    --line: #342b2b;
    --brand: #d0607b;
    --brand-2: #dc7690;
    --brand-soft: #3a2228;
    --brand-ink: #ffffff;
    --gold: #dcb066;
    --gold-soft: #33291a;
    --ok: #74c794;
    --ok-soft: #1d3326;
    --danger: #ff8a80;
    --danger-soft: #3a1f1d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.ic.lg { width: 28px; height: 28px; }
.ic.xl { width: 40px; height: 40px; }

/* ---------- loading ---------- */
.center-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600;
  text-decoration: none; color: var(--text); white-space: nowrap; transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.primary:hover { background: var(--brand-2); }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: transparent; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 1.05rem; padding: 12px 22px; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn.icon { width: 44px; padding: 0; }
.btn.icon.sm { width: 36px; }
.btn[disabled] { opacity: .5; cursor: default; box-shadow: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- forms ---------- */
label.field { display: block; }
label.field > .lbl { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
label.field > .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=password], input[type=date], input[type=time], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); min-height: 48px;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--brand); outline: none; }
.err { color: var(--danger); font-size: .9rem; }
.err:empty { display: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; }
.card.pad-lg { padding: 28px 22px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title .ic { color: var(--brand); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: .9rem; }
.notice .ic { color: var(--gold); margin-top: 1px; }
.notice.ok { background: var(--ok-soft); }
.notice.ok .ic { color: var(--ok); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- welcome / join ---------- */
.welcome { width: 100%; max-width: 420px; text-align: center; }
.ornament { color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .8rem; letter-spacing: .3em; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.couple { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; color: var(--brand); line-height: 1.05; margin: 14px 0 6px; }
.welcome .sub { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.feature-list .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
}
.topbar-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--brand); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); border: 0; display: grid; place-items: center; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.uppill { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 16px calc(100px + env(safe-area-inset-bottom)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head .kicker { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs button {
  flex: 1; max-width: 120px; border: 0; background: none; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 14px;
}
.tabs button .ic { width: 24px; height: 24px; }
.tabs button .pillbg { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background .2s; }
.tabs button[aria-current=page] { color: var(--brand); }
.tabs button[aria-current=page] .pillbg { background: var(--brand-soft); }
@media (min-width: 900px) {
  .tabs { position: sticky; top: 59px; bottom: auto; justify-content: center; gap: 4px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); padding: 8px; }
  .tabs button { flex: 0 0 auto; max-width: none; flex-direction: row; gap: 8px; padding: 8px 16px; font-size: .95rem; border-radius: 999px; }
  .tabs button .pillbg { width: auto; height: auto; background: none !important; }
  .tabs button[aria-current=page] { background: var(--brand-soft); }
  .tabs button .ic { width: 20px; height: 20px; }
  main { padding-bottom: 48px; }
}

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-size: .9rem; font-weight: 500; white-space: nowrap; min-height: 38px; display: inline-flex; align-items: center; gap: 6px;
}
.chip .n { color: var(--muted); font-size: .8rem; font-weight: 600; }
.chip[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed=true] .n { color: inherit; opacity: .7; }
.chip .ic { width: 16px; height: 16px; }
.chips.sub .chip { min-height: 34px; font-size: .85rem; padding: 5px 12px; }
.chips.sub .chip[aria-pressed=true] { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; border-radius: 0; } }
.tile { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; cursor: pointer; border: 0; padding: 0; }
@media (min-width: 600px) { .tile { border-radius: 10px; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .2s, border-radius .2s; }
@media (hover: hover) { .tile:hover img { transform: scale(1.03); } }
.tile .tag { position: absolute; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 3px 7px; }
.tile .tag .ic { width: 12px; height: 12px; }
.tile .tag.l { left: 6px; } .tile .tag.r { right: 6px; }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.tile .check {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.2);
  display: none; place-items: center; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.tile .check .ic { width: 14px; height: 14px; }
.selecting .tile .check { display: grid; }
.tile.sel .check { background: var(--brand); border-color: var(--brand); }
.tile.sel img { transform: scale(.88); border-radius: 8px; }
.tile.hiddenp::before { content: "Hidden"; position: absolute; z-index: 1; top: 6px; left: 6px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .ic { color: var(--surface-3); margin: 0 auto 10px; display: block; }
.empty .btn { margin-top: 16px; }
.more { display: flex; justify-content: center; padding: 20px; }

.selbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 35;
  background: var(--text); color: var(--bg); border-radius: 20px; padding: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; box-shadow: var(--shadow-lg); width: max-content; max-width: calc(100% - 24px); animation: rise .2s ease-out;
}
.selbar .count { padding: 0 8px 0 6px; font-weight: 700; font-size: .9rem; }
.selbar .btn { min-height: 38px; padding: 6px 12px; font-size: .88rem; background: rgba(127,127,127,.18); color: inherit; border-color: transparent; box-shadow: none; }
.selbar .btn.primary { background: var(--brand); color: #fff; }
@media (min-width: 900px) { .selbar { bottom: 28px; } }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- find me ---------- */
.hero { text-align: center; padding: 34px 22px; background: radial-gradient(120% 90% at 50% 0%, var(--gold-soft), var(--surface) 70%); }
.hero .badge-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; margin: 0 auto 18px; color: var(--brand); }
.steps { display: grid; gap: 10px; text-align: left; margin: 20px 0; counter-reset: s; }
.steps div { display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.steps div::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.faces { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face { flex: 0 0 auto; width: 72px; text-align: center; background: none; border: 0; cursor: pointer; padding: 0; color: inherit; }
.face .ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; margin: 0 auto 6px; background: var(--line); transition: background .2s; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.face[aria-pressed=true] .ring { background: linear-gradient(135deg, var(--brand), var(--gold)); }
.face .add { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); margin: 0 auto 6px; }
.face .nm { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.big-count { font-size: 1.35rem; font-weight: 700; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; user-select: none; }
.toggle input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: 0 0 auto; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(16px); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- upload ---------- */
.upload-wrap { max-width: 620px; margin: 0 auto; }
.drop { border: 2px dashed color-mix(in srgb, var(--gold) 60%, transparent); border-radius: var(--r); padding: 32px 18px; text-align: center; background: var(--surface); transition: background .2s, border-color .2s; }
.drop.over { background: var(--gold-soft); border-color: var(--gold); }
.drop .badge-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button {
  text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 12px; cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start; transition: border-color .15s, background .15s;
}
.choice button .ic { color: var(--muted); margin-top: 2px; }
.choice button b { display: block; font-size: .95rem; }
.choice button span.d { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.choice button[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); }
.choice button[aria-pressed=true] .ic { color: var(--brand); }
.progress-card .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.progress-card .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); width: 0; transition: width .3s; }
.qlist { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; }
.qlist li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.qlist li:last-child { border-bottom: 0; }
.qlist .ic { color: var(--muted); width: 18px; height: 18px; }
.qlist .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlist .st { color: var(--muted); font-size: .8rem; white-space: nowrap; font-weight: 600; }
.qlist .st.ok { color: var(--ok); }
.qlist .st.bad { color: var(--danger); }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; background: #0b0809; color: #fff; display: flex; flex-direction: column; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.viewer .vtop { display: flex; align-items: center; gap: 10px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
.viewer .meta { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.35; }
.viewer .meta .s { opacity: .65; font-size: .78rem; }
.viewer .stage { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; touch-action: pan-y; }
.viewer .stage img, .viewer .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.viewer .nav.prev { left: 10px; } .viewer .nav.next { right: 10px; }
@media (hover: none) { .viewer .nav { display: none; } }
.viewer .vbar { display: flex; justify-content: space-around; gap: 4px; padding: 8px 8px max(10px, env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.vbtn { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; padding: 6px 10px; min-width: 64px; border-radius: 12px; cursor: pointer; text-decoration: none; opacity: .92; }
.vbtn:hover { background: rgba(255,255,255,.08); }
.vbtn .ic { width: 24px; height: 24px; }
.xbtn { background: rgba(255,255,255,.1); border: 0; color: inherit; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }

/* ---------- sheets (dialogs) ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 8, 12, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  background: var(--surface); color: var(--text); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: up .22s cubic-bezier(.2,.8,.3,1); max-height: 90dvh; overflow-y: auto;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin-bottom: 6px; }
.sheet .acts { display: grid; gap: 8px; margin-top: 18px; }
.sheet .opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); }
.sheet .opt:hover { background: var(--surface-2); }
.sheet .opt .ic { color: var(--brand); }
.sheet .opt b { display: block; }
.sheet .opt span.d { display: block; font-size: .82rem; color: var(--muted); }
.sheet .opt.danger .ic, .sheet .opt.danger b { color: var(--danger); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { .scrim { align-items: center; } .sheet { border-radius: 24px; padding-bottom: 22px; } .sheet .grab { display: none; } }

/* ---------- hosts ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.invite { display: grid; gap: 18px; }
@media (min-width: 700px) { .invite { grid-template-columns: 220px 1fr; align-items: center; } }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 16px; padding: 10px; margin: 0 auto; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.linkbox { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; font-size: .88rem; font-weight: 600; word-break: break-all; }
.pinbox { display: inline-flex; align-items: center; gap: 10px; }
.pinbox b { font-size: 1.4rem; letter-spacing: .15em; font-family: ui-monospace, Consolas, monospace; }
.actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.tagpill { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .7rem; font-weight: 700; background: var(--gold-soft); color: var(--gold); margin-left: 6px; vertical-align: 1px; }
.tagpill.red { background: var(--danger-soft); color: var(--danger); }
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
details.acc > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .ic { color: var(--brand); }
details.acc > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.acc[open] > summary::after { transform: rotate(-135deg); }
details.acc > .body { padding: 0 20px 20px; }
section + section { margin-top: 16px; }
.fnrow { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr auto; gap: 8px; align-items: end; }
.fnrow .tl > span { display: none; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 640px) {
  .fnrow { grid-template-columns: 1fr 1fr auto; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .fnrow .nm, .fnrow input[type=date] { grid-column: 1 / -1; }
  .fnrow.head { display: none; }
  .fnrow .tl > span { display: block; }
}

#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 80;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg);
  font-size: .92rem; font-weight: 500; animation: rise .2s ease-out;
}
@media (min-width: 900px) { #toast { bottom: 32px; } }

/* ---------- poster (printable) ---------- */
.poster { background: #fffaf3; color: #3b0d1a; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.poster .frame { border: 1.5px solid #c9a35a; outline: 1px solid #c9a35a; outline-offset: 6px; border-radius: 22px; padding: 34px 24px; max-width: 520px; width: 100%; }
.poster .couple { color: #8a2440; font-size: 3rem; }
.poster .qr { width: 250px; height: 250px; max-width: 75vw; max-height: 75vw; margin: 22px auto 14px; box-shadow: none; border: 0; }
.poster .pin { font-size: 1.2rem; margin-top: 14px; }
.poster .pin b { letter-spacing: .18em; font-size: 1.5rem; }
.poster .psteps { text-align: left; margin: 16px auto 0; max-width: 340px; display: grid; gap: 8px; font-size: .98rem; }
.poster .psteps div { display: flex; gap: 10px; }
.poster .psteps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #8a2440; color: #fff; display: grid; place-items: center; font-size: .8rem; flex: 0 0 auto; }
.poster .mr { font-family: "Noto Sans Devanagari", "Nirmala UI", sans-serif; color: #8a2440; margin-top: 4px; }
@media print { .noprint { display: none !important; } .poster { min-height: auto; } }

/* ---------- slideshow ---------- */
.wall { position: fixed; inset: 0; background: #000; color: #fff; overflow: hidden; cursor: pointer; }
.wall img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s; }
.wall img.ph.on { opacity: 1; }
.wall .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 32px; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; justify-content: space-between; align-items: flex-end; }
.wall .cap .couple { color: #fff; font-size: 2.4rem; margin: 0; }
.wall .wqr { width: 130px; height: 130px; background: #fff; border-radius: 12px; padding: 6px; }
.wall .empty-wall { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
