/* Momentry web v0.4.0 — design tokens + components.
   Palette: lilac paper, indigo ink, deep rose for actions, sage for confirmations. Fonts are self-hosted. */

@font-face { font-family: 'Gloock'; font-weight: 400; font-display: swap;
  src: url('/fonts/gloock-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gloock'; font-weight: 400; font-display: swap;
  src: url('/fonts/gloock-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F4F1F9;
  --card: #FFFFFF;
  --ink: #221C3A;
  --ink-soft: #5A5273;
  --mist: #DCD6EA;
  --rose: #C92F58;
  --rose-ink: #FFFFFF;
  --rose-rgb: 201 47 88;
  --glow-rgb: 120 98 214;
  --sage: #2F6B4F;
  --sage-bg: #E3F0E9;
  --warn: #8A4B00;
  --warn-bg: #FFF1DC;
  --font-display: 'Gloock', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --gutter: clamp(16px, 5vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* class display rules must never override the hidden attribute */
html { -webkit-text-size-adjust: 100%; }
html { font-size: clamp(16px, 11px + 0.5vw, 19.5px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--font-body); min-height: 100dvh; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--rose); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100%, 640px); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { width: min(100%, 1120px); }
.stack > * + * { margin-top: var(--gap, 1.25rem); }
.section { padding-block: clamp(18px, 4vw, 30px); } /* block only: .wrap.section must keep its side gutters */
.section + .section { border-top: 1px solid var(--mist); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.lang button { background: none; border: 0; padding: 6px 8px; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-radius: 8px; }
.lang button[aria-pressed='true'] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* buttons + fields (large touch targets for every age group) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 .98rem var(--font-body); cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--rose); border-color: var(--rose); color: var(--rose-ink); }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn:active:not([disabled]) { transform: translateY(1px); }

label.field { display: block; font-weight: 600; }
.field > span { display: block; margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='number'], textarea, select {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 2px solid var(--mist); border-radius: 12px;
  background: var(--card); color: var(--ink); font: 400 1rem var(--font-body); }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* choice rows: radio/checkbox as big tappable rows */
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 14px; background: var(--card);
  border: 2px solid var(--mist); border-radius: 12px; cursor: pointer; font-weight: 600; }
.choice input { width: 22px; height: 22px; accent-color: var(--rose); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice small { display: block; font-weight: 400; color: var(--ink-soft); }

/* the place card — the one memorable object on the invitation */
.place-card { background: var(--card); border: 2px solid var(--ink); border-radius: 6px 6px 18px 18px;
  padding: 22px 22px 20px; transform: rotate(-1.4deg); box-shadow: 8px 8px 0 var(--mist); max-width: 420px; }
.place-card .for { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 4px; }
.place-card .name { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.05; margin: 0 0 14px; overflow-wrap: anywhere; }
.place-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding-top: 16px; border-top: 2px dotted var(--mist); }
.place-card dt { font-size: 0.9rem; color: var(--ink-soft); }
.place-card dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.place-card dd.empty { font-family: var(--font-body); font-size: 1rem; color: var(--ink-soft); }

/* schedule is a real sequence, so it gets a rail */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 4.5rem; top: 8px; bottom: -8px; width: 2px; background: var(--mist); transform: translateX(6px); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 4.5rem; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); transform: translateX(3px); }
.timeline time { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline .what { padding-left: 22px; }
.timeline .what b { display: block; }

.place { padding: 14px 0; border-bottom: 1px solid var(--mist); }
.place:last-child { border-bottom: 0; }
.place b { display: block; font-size: 1.1rem; }

.notice { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 2px solid var(--mist); }
.notice.ok { background: var(--sage-bg); border-color: var(--sage); color: var(--sage); font-weight: 600; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.quote { border-left: 4px solid var(--rose); padding: 4px 0 4px 16px; font-size: 1.15rem; max-width: 52ch; }

/* upload queue */
.dropzone { display: grid; gap: 12px; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.queue li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--mist); border-radius: 12px; padding: 8px; }
.queue img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--mist); }
.queue .state { font-weight: 700; font-size: 0.9rem; }
.queue .state.done { color: var(--sage); }
.queue .state.err { color: var(--rose); }
.bar-progress { height: 6px; background: var(--mist); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.bar-progress > i { display: block; height: 100%; background: var(--rose); width: 0; }

.gallery { columns: 2 150px; column-gap: 8px; }
.gallery img { width: 100%; height: auto; margin: 0 0 8px; border-radius: 8px; background: var(--mist); break-inside: avoid; }

/* manage (desk layout) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 2px solid var(--mist); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.tablewrap { overflow-x: auto; border: 2px solid var(--mist); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mist); vertical-align: top; }
th { font-weight: 700; background: var(--paper); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: var(--mist); }
.pill.yes { background: var(--sage-bg); color: var(--sage); }
.pill.no { background: var(--warn-bg); color: var(--warn); }
.qrbox { background: #fff; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; width: 220px; }
.qrbox svg { width: 100%; height: auto; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 10; max-width: calc(100vw - 32px); }

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12mm; }
}
.print-cards { display: none; }
.print-card { border: 2px solid #000; padding: 10mm; text-align: center; break-inside: avoid; }
.print-card .qrbox { margin: 6mm auto; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .place-card { animation: settle 0.5s ease-out both; }
  @keyframes settle { from { transform: rotate(-4deg) translateY(-10px); } }
}

/* ---------- hall plan (v0.4.0) ---------- */
.fp { width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fp-room { fill: #fff; stroke: var(--mist); stroke-width: 0.12; }
.fp-table { fill: #EFEAF8; stroke: var(--ink); stroke-width: 0.07; }
.fp-table.couple { fill: #FBE3EA; stroke: var(--rose); }
.fp-label { fill: var(--ink); font-family: var(--font-body); font-weight: 700; pointer-events: none; }
.fp-sp { fill: #F4F1F9; stroke: var(--ink-soft); stroke-width: 0.06; stroke-dasharray: 0.3 0.2; }
.fp-sp-dance { fill: #E7F0FF; stroke: #4B6FB5; }
.fp-sp-dj, .fp-sp-stage { fill: #EDE7F8; }
.fp-sp-bar, .fp-sp-cake { fill: #FFF1DC; stroke: var(--warn); }
.fp-sp-door { fill: #E3F0E9; stroke: var(--sage); }
.fp-sp-label { fill: var(--ink); font-family: var(--font-body); font-weight: 700; pointer-events: none; }
.fp-item.sel .fp-table, .fp-item.sel .fp-sp { stroke: var(--rose); stroke-width: 0.16; stroke-dasharray: none; }
.fp-item[data-drag] { cursor: grab; touch-action: none; }
.fp-item.dragging { cursor: grabbing; opacity: 0.85; }
.fp-seat circle { fill: #fff; stroke: var(--ink-soft); stroke-width: 0.06; }
.fp-seat text { fill: var(--ink); font-family: var(--font-body); font-weight: 700; pointer-events: none; }
.fp-seat.taken circle, .fp-seat.draft circle { fill: #D9CFF0; stroke: var(--ink); }
.fp-seat.proposed circle { fill: #D9CFF0; stroke: var(--ink); }
.fp-seat.accepted circle { fill: var(--sage-bg); stroke: var(--sage); stroke-width: 0.12; }
.fp-seat.reserved circle { fill: #FBE3EA; stroke: var(--rose); }
.fp-seat.reserved text { fill: var(--rose); }
.fp-seat.mine circle { fill: var(--rose); stroke: var(--ink); stroke-width: 0.12; }
.fp-seat.mine text { fill: #fff; }
.fp-seat.target circle { fill: #FFD76B; stroke: var(--ink); stroke-width: 0.14; }
.fp-seat[data-key] { cursor: pointer; }
.fp-seat[data-key]:hover circle { stroke: var(--rose); stroke-width: 0.14; }

.plan-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .plan-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); } .plan-side { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; } }
.card { background: var(--card); border: 1px solid var(--mist); border-radius: var(--r); padding: 14px; }
.card + .card { margin-top: 16px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tpl { display: block; text-align: left; background: var(--card); border: 2px solid var(--mist); border-radius: var(--r); padding: 8px; cursor: pointer; font: inherit; color: inherit; }
.tpl[aria-pressed='true'] { border-color: var(--ink); }
.tpl b { display: block; margin-top: 6px; font-size: 0.95rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.canvas { border: 2px solid var(--mist); border-radius: var(--r); background: #fff; overflow: auto; padding: 6px; }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.grow { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--mist); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.grow[aria-pressed='true'] { border-color: var(--rose); background: #FFF6F8; }
.grow small { color: var(--ink-soft); display: block; }
.mini { min-height: 40px; padding: 6px 10px; font-size: 0.95rem; }
.pill.accepted { background: var(--sage-bg); color: var(--sage); }
.pill.proposed { background: #EDE7F8; }
.banner { padding: 12px 14px; border-radius: 12px; background: #FFF6DB; border: 2px solid #E5B93C; margin-bottom: 12px; }
.req { border: 2px solid var(--mist); border-radius: 12px; padding: 12px; background: var(--card); }
.req + .req { margin-top: 10px; }
.mapbox { overflow-x: auto; border: 2px solid var(--mist); border-radius: var(--r); background: #fff; padding: 6px; }
.venue-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-top: 10px; background: var(--mist); }
.seat-line { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; margin: 0 0 10px; }
.closing { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; max-width: 30ch; }
.story-video { width: 100%; max-height: 70vh; border-radius: var(--r); background: #000; }
.story-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.story-strip img { height: 280px; width: auto; max-width: 85%; object-fit: cover; border-radius: 12px; scroll-snap-align: start; flex: none; background: var(--mist); }

/* ---- print views (v0.5.0) ---- */
.print-sheet { padding-bottom: 24px; }
.print-h { font-family: 'Gloock', serif; margin: 0 0 10px; }
.print-plan { width: 100%; max-height: 80vh; background: #fff; }
.print-lists { columns: 2 260px; column-gap: 28px; }
.print-lists .print-h { column-span: all; }
.print-table { break-inside: avoid; margin: 0 0 18px; }
.print-table h3 { margin: 0 0 4px; }
.print-table ol, .print-table ul { margin: 0; padding-left: 1.3em; }
.print-cardgrid { display: grid; grid-template-columns: repeat(2, 95mm); gap: 0; justify-content: center; }
.pcard { width: 95mm; height: 52mm; border: 1px dashed #999; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6mm; box-sizing: border-box; break-inside: avoid; background: #fff; color: #1d1535; }
.pcard-name { font-family: 'Gloock', serif; font-size: 22pt; line-height: 1.15; overflow-wrap: anywhere; }
.pcard-table { margin-top: 3mm; font-size: 11pt; letter-spacing: .02em; color: #555; }
@media print {
  @page { size: A4; margin: 10mm; }
  .print-plan { max-height: 250mm; }
  .print-cardgrid { grid-template-columns: repeat(2, 95mm); }
  .wrap.wide { max-width: none; padding: 0; }
}

/* ---- unified depth (v0.6.0): same lilac/rose language as the sales page, soft layered shadows ---- */
.card, .stat, .notice, .choice, .tpl, .req { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(34,28,58,.06), 0 10px 24px -14px rgba(34,28,58,.28); }
.card, .stat { background: linear-gradient(180deg, #fff, #FBF9FE); }
.btn { transition: transform .15s ease, box-shadow .15s ease; }
.btn.primary { box-shadow: 0 8px 20px -10px rgb(var(--rose-rgb) / .8), 0 1px 0 rgba(255,255,255,.35) inset; }
.btn.primary:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgb(var(--rose-rgb) / .85), 0 1px 0 rgba(255,255,255,.35) inset; }
.tpl, .acc-events .card { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover:hover) { .tpl:hover, a.card:hover { transform: translateY(-2px) perspective(600px) rotateX(1.5deg); } }
.bar { padding: 10px 0; }
.brand { font-size: 1.2rem; }
.wrap.wide { width: min(100%, 1040px); }
@media (prefers-reduced-motion: reduce) { .tpl, .btn, .card { transition: none; transform: none !important; } }

/* ---- album (v0.6.0) ---- */
.masonry { columns: 2 140px; column-gap: 10px; }
@media (min-width: 720px) { .masonry { columns: 4 200px; } }
.ph { position: relative; margin: 0 0 10px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--mist); box-shadow: 0 8px 20px -12px rgba(34,28,58,.55); transition: transform .18s ease, box-shadow .18s ease; }
@media (hover:hover) { .ph:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 28px -12px rgba(34,28,58,.6); } }
.ph-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ph-img img { width: 100%; height: auto; }
.ph.is-hidden img { opacity: .45; filter: grayscale(1); }
.ph-heart { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(34,28,58,.45); backdrop-filter: blur(6px); display: grid; place-items: center; cursor: pointer; }
.lb { position: fixed; inset: 0; z-index: 40; background: rgba(20,15,36,.94); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: 12px var(--gutter) 16px; gap: 10px; }
.lb .muted { color: #cfc8e6; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb .btn { color: #fff; border-color: rgba(255,255,255,.6); }
.lb-stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 8px; min-height: 0; }
.lb-nav { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 0 6px; }
.lb-bar { justify-content: center; }

/* ---- auto-selection panel (v0.8.0) ---- */
.cur { margin-bottom: 14px; }
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cur-th { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--mist); aspect-ratio: 1; }
.cur-th img { width: 100%; height: 100%; object-fit: cover; }
.cur-th input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--rose); }
.cur-th span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(34,28,58,.7); }
.btn[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- plan card (v0.10.0) ---- */
.plan-card { --gap: .7rem; }
.plan-meter { display: grid; gap: 4px; }
.plan-bar { height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.plan-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), #E4799A); border-radius: 99px; }

/* ---- calmer dashboard (v0.10.0): folding sections + guest cards on phones ---- */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: clamp(1.15rem, 3.8vw, 1.4rem); padding: 4px 0; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; font: 700 1.3rem var(--font-body); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--mist); color: var(--ink-soft); flex: none; }
.fold[open] > summary::after { content: '–'; }
.fold-body { padding-top: 14px; }
@media (max-width: 719px) {
  .guest-table thead { display: none; }
  .guest-table, .guest-table tbody { display: block; }
  .tablewrap:has(.guest-table) { border: 0; background: none; overflow: visible; }
  .guest-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--mist); border-radius: var(--r); box-shadow: 0 8px 18px -14px rgba(34,28,58,.4); }
  .guest-table td { border: 0; padding: 0; }
  .guest-table .c-name { font-size: 1.02rem; }
  .guest-table .c-table, .guest-table .c-seat { grid-column: 1 / -1; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 8px; }
  .guest-table .c-table input, .guest-table .c-seat input { width: 100% !important; }
  .guest-table td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .8rem; }
  .guest-table td[data-label]:not(.c-table):not(.c-seat) { grid-column: 1 / -1; display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: .92rem; }
  .guest-table td[data-label]:empty { display: none; }
  .guest-table .c-link { grid-column: 1 / -1; }
}

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--mist); box-shadow: var(--shadow-1, 0 1px 3px rgba(0,0,0,.12)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-hidden img { opacity: .3; }
.thumb-btn { position: absolute; left: 6px; right: 6px; bottom: 6px; min-height: 32px; padding: 4px 8px; font-size: .78rem; background: rgba(255,255,255,.92); }

.tablewrap { overflow-x: auto; }
@media (min-width: 720px) {
  .tablewrap:has(.guest-table) { max-height: 70vh; overflow: auto; }
  .guest-table thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
  .guest-table td.c-link { white-space: nowrap; }
  .guest-table td.c-link .btn { min-height: 34px; padding: 4px 10px; font-size: .82rem; margin: 2px 2px 2px 0; }
}
.thumb-btn{white-space:nowrap}
.plan-buy { gap: 10px; }
.plan-buy .btn { flex: 1 1 220px; }

/* =====================================================================
   v0.12.0 — identity + responsive shell.
   Idea: the event seen from above, as a round table. Guests are dots around it.
   One dark panel carries the names; everything else is quiet paper on a lilac cloth.
   ===================================================================== */
:root {
  --ink-deep: #1A1433;
  --plum: #2B2158;
  --brass: #9A6B17;
  --brass-hi: #E3C176;
  --paper-warm: #FFFEFC;
  --gutter: clamp(16px, 3.4vw, 56px);
}
.shell { width: min(100%, 1560px); margin-inline: auto; padding-inline: var(--gutter); }
.bar { padding: 14px 0; }
input[type='password'], input[type='email'], input[type='tel'], input[type='url'], input[type='search'], input[type='number'] { width: 100%; min-height: 44px; padding: 8px 14px; border: 2px solid var(--mist); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
input[type='password']:focus, input[type='email']:focus { border-color: var(--ink); }

/* ---- dashboard ---- */
.dash { padding-bottom: 56px; }
.dash-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: clamp(20px, 3vw, 48px); padding: clamp(22px, 4.2vw, 64px); border-radius: clamp(20px, 2.4vw, 32px); color: #F4F0FF;
  background: radial-gradient(900px 420px at 88% 0%, rgb(var(--rose-rgb) / .38), transparent 60%), radial-gradient(700px 500px at 0% 110%, rgb(var(--glow-rgb) / .35), transparent 60%), linear-gradient(160deg, var(--ink-deep), var(--plum)); box-shadow: 0 30px 60px -34px rgba(26,20,51,.9); }
.dash-hero h1 { color: #fff; font-size: clamp(2.5rem, 8.2vw, 6.6rem); line-height: .94; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dash-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 16px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; color: #E9E2FF; }
.dash-date span { color: var(--brass-hi); font-family: var(--font-display); font-weight: 400; font-size: 1.15em; }
.dash-hero .stats { margin-top: clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.dash-hero .stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); box-shadow: none; color: #fff; backdrop-filter: blur(6px); }
.dash-hero .stat b { color: #fff; }
.dash-hero .stat .muted { color: #CFC6EE; }
.dash-hero-ring { display: grid; justify-items: center; align-content: center; gap: 14px; }
.seatring { width: min(100%, 360px); height: auto; overflow: visible; filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)); }
.seat-dot { stroke-width: 2; transition: r .2s; }
.seat-dot.yes { fill: #FF5C8A; stroke: #FFB3C9; }
.seat-dot.pending { fill: #8F80D8; stroke: #BDB2F0; }
.seat-dot.no { fill: transparent; stroke: #A99FD0; stroke-dasharray: 3 3; }
.seat-dot.empty { fill: transparent; stroke: rgba(255,255,255,.28); }
.seat-table { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.seat-num { font: 400 46px/1 var(--font-display); fill: #fff; }
.seat-of { font: 600 13px var(--font-body); fill: #CFC6EE; }
.ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .92rem; color: #D9D1F5; }
.ring-legend b { color: #fff; }
.seat-dot-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; border: 2px solid; vertical-align: -1px; }
.seat-dot-key.yes { background: #FF5C8A; border-color: #FFB3C9; } .seat-dot-key.pending { background: #8F80D8; border-color: #BDB2F0; } .seat-dot-key.no { border: 2px dashed #A99FD0; }

.dash-grid { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.dash-main { display: grid; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.dash-aside { display: grid; gap: 16px; min-width: 0; align-content: start; }
.tile, .dash-aside > .section, .dash-aside > .fold, .dash-aside > .card { background: var(--paper-warm); border: 1px solid var(--mist); border-radius: 22px; padding: clamp(16px, 1.8vw, 26px); box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(34,28,58,.05), 0 22px 40px -28px rgba(34,28,58,.45); margin: 0; }
.dash-aside > .section { border-top: 1px solid var(--mist); }
.dash-aside > .fold { padding-block: 12px; }
.dash-aside > .fold[open] { padding-bottom: clamp(16px, 1.8vw, 26px); }
.dash-aside > .plan-card { background: linear-gradient(180deg, #fff, #F8F4FF); }
.tile > h2, .dash-aside > .section > h2 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); }
.tallies { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tallies .stat { background: #F8F5FD; box-shadow: none; }
.tile .tablewrap { border-radius: 14px; }
.mosaic { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); border-radius: 14px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaic.m1 { grid-template-columns: 1fr; } .mosaic.m1 img { aspect-ratio: 16 / 9; }
.mosaic.m3 img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.thumbs { grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 11vw, 160px), 1fr)); }

@media (min-width: 760px) and (max-width: 1199px) {
  .dash-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .dash-aside > .plan-card { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .dash-hero { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; } }
@media (min-width: 1200px) { .dash-grid { grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 440px); } }
@media (max-width: 719px) {
  .dash-hero { border-radius: 22px; }
  .dash-hero-ring { order: -1; }
  .seatring { width: min(70%, 250px); }
  .tile, .dash-aside > .section, .dash-aside > .fold, .dash-aside > .card { border-radius: 18px; }
  .tile.guests-sec { padding-inline: 12px; }
}
.dash-main { grid-template-columns: minmax(0, 1fr); }
.dash-main > *, .dash-aside > * { min-width: 0; }
.stat b { white-space: nowrap; }
.dash-hero .stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }

.guest-table td { vertical-align: middle; }
@media (min-width: 720px) {
  .guest-table td.c-link { white-space: nowrap; }
  .guest-table td.c-link .btn { display: inline-flex; margin: 0 4px 0 0; }
  .guest-table .c-table input, .guest-table .c-seat input { min-width: 84px; }
}

/* ---- invitation: dark panel + content; two columns on desktop ---- */
.inv { max-width: 720px; padding-bottom: 56px; }
.inv-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 56px); border-radius: clamp(20px, 2.4vw, 32px); color: #F4F0FF;
  background: radial-gradient(700px 360px at 90% -10%, rgb(var(--rose-rgb) / .42), transparent 60%), radial-gradient(600px 420px at -10% 110%, rgb(var(--glow-rgb) / .38), transparent 60%), linear-gradient(160deg, var(--ink-deep), var(--plum)); box-shadow: 0 30px 60px -34px rgba(26,20,51,.9); }
.inv-hero h1 { color: #fff; font-size: clamp(2.7rem, 11vw, 5.4rem); line-height: .94; letter-spacing: -.02em; overflow-wrap: anywhere; }
.inv-date { margin: 0; color: var(--brass-hi); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); }
.inv-hero .quote { color: #E4DCFA; border-left-color: #FF5C8A; background: none; }
.inv-body { padding-top: 12px; }
.inv-places { display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inv-places .place { border-bottom: 0; }
@media (min-width: 1000px) {
  .inv { max-width: 1560px; display: grid; grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); gap: clamp(28px, 3.4vw, 64px); align-items: start; }
  .inv-hero { position: sticky; top: 16px; min-height: calc(100svh - 110px); display: flex; flex-direction: column; justify-content: center; }
  .inv-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); align-content: start; padding-top: 0; }
  .inv-wide { grid-column: 1 / -1; }
  .inv-body > .section:first-child { border-top: 0; }
}
.inv-hero .place-card { color: var(--ink); }
.inv .mapbox .fp { max-height: min(72vh, 680px); margin-inline: auto; }
@media (min-width: 1000px) { .inv-body > .section.stack:has(a.btn.primary[href^='/e/']) { grid-column: 1 / -1; } }

/* ---- sign-in / create: brand panel + form ---- */
.split { display: grid; gap: clamp(16px, 3vw, 48px); padding-bottom: 48px; align-items: start; }
.split-main { width: min(100%, 560px); margin-inline: auto; min-width: 0; }
.art-panel { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 18px; padding: clamp(20px, 3.4vw, 56px); border-radius: clamp(20px, 2.4vw, 32px); color: #fff;
  background: radial-gradient(600px 360px at 85% 0%, rgb(var(--rose-rgb) / .4), transparent 60%), radial-gradient(520px 420px at 0% 110%, rgb(var(--glow-rgb) / .38), transparent 60%), linear-gradient(160deg, var(--ink-deep), var(--plum)); box-shadow: 0 30px 60px -34px rgba(26,20,51,.9); }
.art-ring { width: min(44vw, 200px); }
.art-line { margin: 0; text-align: center; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2.5rem); line-height: 1.08; max-width: 16ch; color: #fff; }
.acc-wide { padding-bottom: 56px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split-main { margin-inline: 0; width: min(100%, 560px); justify-self: center; }
  .art-panel { position: sticky; top: 16px; min-height: calc(100svh - 100px); }
  .art-ring { width: min(30vw, 380px); }
}
.acc-wide .acc-events { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ---- wide pages (album, editor, print): use the screen ---- */
.wrap.wide { width: min(100%, 1560px); }
.masonry { columns: 2 140px; }
@media (min-width: 720px) { .masonry { columns: 220px; column-gap: 14px; } .ph { margin-bottom: 14px; } }
.plan-grid .fp { max-height: calc(100dvh - 170px); margin-inline: auto; }
.up { padding-bottom: 48px; }
.up-side { width: min(100%, 560px); margin-inline: auto; }
.up-gallery { width: min(100%, 560px); margin-inline: auto; }
@media (min-width: 960px) {
  .up { display: grid; grid-template-columns: minmax(360px, 480px) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
  .up-side { margin: 0; position: sticky; top: 12px; width: auto; }
  .up-gallery { width: auto; margin: 0; border-top: 0; }
  .up-gallery .gallery { columns: 3 190px; column-gap: 12px; }
  .up-gallery .gallery img { border-radius: 14px; }
  .up h1 { font-size: clamp(2.6rem, 4vw, 4rem); }
}
@media (max-width: 719px) {
  .dash-hero { gap: 16px; padding: 22px 18px; }
  .dash-hero-ring { order: 0; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 12px; }
  .dash-hero .seatring { width: 140px; }
  .ring-legend { flex-direction: column; justify-content: flex-start; gap: 4px; }
  .dash-hero .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .dash-hero .stat { padding: 10px 10px; }
  .dash-hero .stat b { font-size: 1.35rem; }
  .dash-hero .stat .muted { font-size: .78rem; line-height: 1.2; }
}

/* ---------- v0.14.0: timeline, lanes, selection, moments manager ---------- */
.viewbar { padding-bottom: 12px; gap: 10px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; min-height: 36px; }
.chips { padding-bottom: 12px; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--mist); background: var(--paper-warm, #fff); color: var(--ink); font: 600 .84rem var(--font-body); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed='true'] { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.chip[disabled] { opacity: .45; cursor: default; }
.album select, .mg select { min-height: 36px; border-radius: 10px; border: 1.5px solid var(--mist); background: #fff; padding: 0 10px; font: inherit; font-size: .88rem; max-width: 100%; }

.tl-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 0 0 6px; background: linear-gradient(var(--paper) 78%, transparent); scrollbar-width: thin; }
.tl-rail { position: relative; margin-left: 12px; padding-left: clamp(18px, 3vw, 34px); border-left: 2px solid var(--brass-hi, #E3C176); }
.tl-sec { position: relative; padding: 4px 0 30px; scroll-margin-top: 64px; }
.tl-dot { position: absolute; left: calc(-1 * clamp(18px, 3vw, 34px) - 9px); top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass, #9A6B17); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--brass-hi, #E3C176); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.tl-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.tl-time { font-family: var(--font-display); color: var(--brass, #9A6B17); font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 210px), 1fr)); gap: 10px; }
.tl-grid .ph { margin: 0; }
.tl-grid .ph-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.ph-vp { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 9px; border-radius: 999px; background: rgba(26,20,51,.72); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ph-manual { position: absolute; top: 4px; left: 8px; color: var(--brass-hi, #E3C176); font-size: 1.4rem; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.ph-check { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(26,20,51,.45); color: #fff; display: grid; place-items: center; font-weight: 800; pointer-events: none; }
.ph.is-sel { outline: 3px solid var(--rose, #C92F58); outline-offset: -3px; }
.ph.is-sel .ph-check { background: var(--rose, #C92F58); border-color: var(--rose, #C92F58); }
.selbar { position: sticky; bottom: 10px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: 18px; background: var(--ink-deep); color: #fff; box-shadow: 0 18px 40px -16px rgba(26,20,51,.8); }
.selbar .btn:not(.primary) { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.selbar select { color: var(--ink); }

/* manager */
.mg-card { margin-bottom: 16px; }
.mg { display: grid; gap: 28px; }
@media (min-width: 900px) { .mg { grid-template-columns: 1.1fr 1fr; } }
.mg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.mg-time { width: 132px; min-height: 36px; border-radius: 10px; border: 1.5px solid var(--mist); padding: 0 8px; font: inherit; }
.mg-title { flex: 1 1 160px; min-width: 0; min-height: 36px; border-radius: 10px; border: 1.5px solid var(--mist); padding: 0 10px; font: inherit; }
.mg-kind { font-weight: 700; font-size: .82rem; color: var(--brass, #9A6B17); min-width: 86px; }
.mg-cam { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--paper); }
.mg-qr { width: 150px; background: #fff; padding: 8px; border-radius: 10px; }
.mg-qr svg { width: 100%; height: auto; display: block; }

/* lanes */
.lanes { overflow-x: auto; border-radius: 18px; background: var(--ink-deep); color: #fff; padding: 0 0 12px; box-shadow: 0 30px 60px -34px rgba(26,20,51,.9); }
.lanes-body { position: relative; padding-top: 6px; }
.ln-lane { display: flex; align-items: stretch; min-height: 72px; border-top: 1px solid rgba(255,255,255,.08); }
.ln-head { min-height: 0; border-top: 0; }
.ln-lab { position: sticky; left: 0; z-index: 3; flex: none; box-sizing: border-box; padding: 10px 12px; background: var(--ink-deep); display: flex; flex-direction: column; justify-content: center; gap: 2px; font-weight: 700; font-size: .88rem; border-right: 1px solid rgba(255,255,255,.12); }
.ln-lab small { color: var(--brass-hi, #E3C176); font-weight: 600; }
.ln-track { position: relative; flex: none; height: 72px; }
.ln-th { position: absolute; top: 6px; height: 60px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--plum); box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); }
.ln-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln-th b { position: absolute; right: 3px; bottom: 3px; min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose, #C92F58); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.ln-th:focus-visible { outline: 3px solid var(--brass-hi, #E3C176); }
.ln-flags { position: relative; }
.ln-flag { position: absolute; padding: 1px 8px; border-left: 2px solid var(--brass-hi, #E3C176); font-size: .74rem; font-weight: 700; color: var(--brass-hi, #E3C176); white-space: nowrap; }
.ln-ruler { position: relative; height: 22px; }
.ln-tick { position: absolute; top: 2px; font-size: .72rem; color: #cfc8e6; padding-left: 4px; border-left: 1px solid rgba(255,255,255,.25); }
.ln-marks { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 1; }
.ln-marks i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(227,193,118,.55); }
.ln-th { z-index: 2; }
@media (max-width: 640px) { .tl-rail { margin-left: 8px; } .selbar { border-radius: 14px; } }
@media (prefers-reduced-motion: no-preference) { .ph.is-sel { transition: outline-color .15s; } }

/* ---------- v0.14.0: slideshow ---------- */
.sh { position: fixed; inset: 0; background: #0f0b1f; color: #fff; overflow: hidden; cursor: default; }
.sh.idle { cursor: none; }
.sh-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: grid; place-items: center; }
.sh-layer.on { opacity: 1; }
.sh-img { width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.sh-img.kb { animation: kb var(--kd, 7s) ease-out both; }
@keyframes kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(var(--ks, 1.08)) translate(var(--kx, 2%), var(--ky, 1%)); } }
.sh-chap { text-align: center; padding: 0 var(--gutter); max-width: 900px; background: none; }
.sh-layer:has(.sh-chap) { background: radial-gradient(900px 500px at 80% 0%, rgb(var(--rose-rgb) / .4), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgb(var(--glow-rgb) / .38), transparent 60%), linear-gradient(160deg, var(--ink-deep), var(--plum)); }
.sh-chap-time { display: block; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4.2rem); color: var(--brass-hi, #E3C176); }
.sh-chap h2 { margin: .1em 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 5.2rem); line-height: 1.05; color: #fff; }
.sh-chap p { margin: .6em 0 0; color: #cfc8e6; font-size: 1.05rem; }
.sh-chap::after { content: ''; display: block; width: 90px; height: 2px; margin: 1.2em auto 0; background: var(--brass-hi, #E3C176); }
.sh-top, .sh-foot { position: absolute; left: 0; right: 0; z-index: 4; padding: 12px var(--gutter); transition: opacity .4s; }
.sh-top { top: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: linear-gradient(rgba(10,7,22,.85), transparent); }
.sh-foot { bottom: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(10,7,22,.85)); display: grid; gap: 10px; }
.sh.idle .sh-top, .sh.idle .sh-foot > :not(.sh-cap):not(.sh-prog) { opacity: 0; pointer-events: none; }
.sh .btn { color: #fff; border-color: rgba(255,255,255,.5); }
.sh select { min-height: 36px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.4); background: rgba(26,20,51,.7); color: #fff; padding: 0 10px; font: inherit; font-size: .88rem; max-width: 100%; }
.sh-fav { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; }
.sh-cap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .95rem; min-height: 1.4em; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.sh-cap b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--brass-hi, #E3C176); }
.sh-prog { display: flex; gap: 4px; height: 14px; align-items: center; }
.sh-seg { height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; cursor: pointer; }
.sh-seg i { display: block; height: 100%; background: var(--brass-hi, #E3C176); transition: width .4s; }
.sh-bottom { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sh-btn { min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(26,20,51,.6); color: #fff; font-size: 1.2rem; cursor: pointer; }
.sh-btn.wide { font-size: .88rem; }
.sh-hint { margin: 0; text-align: center; color: #a69fc4; font-size: .78rem; }
@media (max-width: 640px) { .sh-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .sh-layer { transition: none; } .sh-img.kb { animation: none; } }
.sh select, .album select, .mg select, .selbar select { width: auto; }
@media (max-width: 640px) { .ln-lab { padding: 8px; font-size: .8rem; } }

/* v0.14.0: guest table stays inside its card; invite buttons in one tidy row */
.guest-table { width: 100%; }
.guest-table td.c-link { white-space: nowrap; }
.guest-table td.c-link .btn { min-height: 34px; padding: 0 10px; font-size: .8rem; margin: 0 4px 0 0; }
@media (min-width: 761px) { .tablewrap:has(.guest-table) { overflow-x: auto; max-width: 100%; } .guest-table th, .guest-table td { padding-inline: 10px; } .guest-table input[type='text'], .guest-table input:not([type]) { min-width: 0; width: 100%; max-width: 130px; } }
.guest-table td.c-link .row { flex-wrap: nowrap; gap: 6px; }

/* v0.14.0: couple's look editor */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.th-sw { display: grid; gap: 6px; justify-items: center; padding: 10px 6px; border: 2px solid var(--mist); border-radius: 14px; background: #fff; cursor: pointer; font: 600 .8rem var(--font-body); color: var(--ink); }
.th-sw i { display: block; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.th-sw[aria-pressed='true'], .th-font[aria-pressed='true'] { border-color: var(--rose); box-shadow: 0 0 0 3px rgb(var(--rose-rgb) / .22); }
.th-custom { gap: 12px; } .th-custom input[type=color] { width: 56px; height: 40px; padding: 2px; border: 2px solid var(--mist); border-radius: 10px; background: #fff; }
.th-font { display: grid; gap: 2px; padding: 10px 16px; border: 2px solid var(--mist); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.th-font b { font-size: 1.35rem; font-weight: 600; } .th-font small { font: 600 .74rem var(--font-body); color: var(--ink-soft); }

/* ---- v0.14 Studio ---- */
.row.tight { gap: 8px; }
.btn.danger { color: #9B1C2E; border-color: #E7B9C0; }
.sx { padding-bottom: 56px; }
.sx-head { display: grid; gap: 10px; padding: 6px 0 16px; }
.sx-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); overflow-wrap: anywhere; }
.sx-head .row { justify-content: space-between; }
.sx-status { font-size: .9rem; }
.sx-status[data-state='error'] { color: #9B1C2E; font-weight: 700; }
.sx-edit { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sx-main, .sx-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; align-content: start; }
@media (min-width: 1000px) { .sx-edit { grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 400px); } .sx-side { position: sticky; top: 12px; } }
.sx-stage, .shr-stage { position: relative; display: grid; place-items: center; background: #0d0a1c; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 44px -26px rgba(26,20,51,.8); }
.sx-stage canvas, .shr-stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 62vh; }
.shr-stage { width: fit-content; max-width: 100%; margin-inline: auto; } .shr-stage canvas { max-height: 72vh; }
.sx-stage:fullscreen, .shr-stage:fullscreen { border-radius: 0; }
.sx-stage:fullscreen canvas, .shr-stage:fullscreen canvas { max-height: 100vh; }
.sx-transport { display: flex; align-items: center; gap: 8px; }
.sx-scrub { flex: 1; min-width: 0; accent-color: var(--rose); min-height: 28px; }
.sx-time { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--ink-soft); white-space: nowrap; }
.sx-play { min-width: 52px; }
.sx-stripbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; }
.sx-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.sx-tile { position: relative; flex: 0 0 auto; width: 118px; aspect-ratio: 16 / 10; border: 2px solid var(--mist); border-radius: 12px; padding: 0; background: #1a1433; overflow: hidden; cursor: pointer; scroll-snap-align: start; color: #fff; }
.sx-tile img { width: 100%; height: 100%; object-fit: cover; }
.sx-tile.on { border-color: var(--rose); box-shadow: 0 0 0 3px rgb(var(--rose-rgb) / .28); }
.sx-tile.drag { opacity: .4; } .sx-tile.over { border-color: var(--ink); transform: translateY(-2px); }
.sx-tile-card { display: grid; place-items: center; height: 100%; padding: 6px; font: 400 .82rem/1.15 var(--font-display); text-align: center; background: linear-gradient(160deg, var(--ink-deep), var(--plum)); overflow: hidden; }
.sx-tile.t-chapter .sx-tile-card { background: linear-gradient(160deg, var(--plum), var(--ink-deep)); color: var(--brass-hi); }
.sx-tile-n { position: absolute; left: 5px; top: 4px; font-size: .72rem; background: rgba(13,10,28,.7); padding: 0 6px; border-radius: 999px; }
.sx-tile-d { position: absolute; right: 5px; bottom: 4px; font-size: .72rem; font-style: normal; background: rgba(13,10,28,.7); padding: 0 6px; border-radius: 999px; }
.sx-tile-c { position: absolute; left: 6px; bottom: 6px; width: 14px; height: 3px; background: var(--brass-hi); border-radius: 2px; }
.sx-insp { display: grid; gap: 12px; }
.sx-insp-head { display: grid; gap: 8px; }
.sx-two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.sx-proj { display: grid; gap: 10px; justify-items: start; }
.sx-empty { display: grid; gap: 14px; justify-items: start; padding: clamp(18px, 3vw, 36px); }
.sx-build { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-modal { position: fixed; inset: 0; z-index: 40; background: rgba(13,10,28,.72); display: grid; place-items: center; padding: 12px; }
.sx-modal-box { background: var(--paper-warm); border-radius: 20px; width: min(100%, 980px); max-height: 92dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.sx-modal-head, .sx-modal-foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.sx-modal-head h2 { flex: 1; font-size: 1.3rem; }
.sx-modal-foot { justify-content: flex-end; border-top: 1px solid var(--mist); }
.sx-modal-foot > span { margin-right: auto; }
.sx-modal-body { overflow: auto; padding: 4px 18px 18px; }
.sx-fav { display: inline-flex; gap: 8px; align-items: center; }
.sx-pick-group h3 { margin: 14px 0 8px; font-size: 1rem; }
.sx-pick-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.sx-pick { position: relative; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: #1a1433; aspect-ratio: 1; cursor: pointer; }
.sx-pick img { width: 100%; height: 100%; object-fit: cover; }
.sx-pick.on { border-color: var(--rose); } .sx-pick.used img { opacity: .45; }
.sx-pick i { position: absolute; right: 4px; top: 4px; background: var(--sage); color: #fff; border-radius: 999px; padding: 0 6px; font-style: normal; font-size: .8rem; }
.sx-make { display: grid; gap: 18px; }
.sx-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.sx-card { display: grid; gap: 12px; align-content: start; } .sx-card + .sx-card { margin-top: 0; }
.sx-card h2 { font-size: 1.35rem; }
.sx-card p { margin: 0; }
.sx-link { display: grid; gap: 8px; }
.sx-link input { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--mist); border-radius: 12px; font: inherit; background: #fff; }
.sx-ok { color: var(--sage); font-weight: 700; }
.sx-prog { display: grid; gap: 8px; }

/* ---- v0.14 public share pages ---- */
.shr { padding-bottom: 56px; display: grid; gap: clamp(18px, 3vw, 32px); }
.shr-hero { text-align: center; padding: clamp(28px, 6vw, 72px) var(--gutter); border-radius: clamp(18px, 2.4vw, 30px); color: #F4F0FF; background: radial-gradient(800px 380px at 85% 0%, rgb(var(--rose-rgb) / .38), transparent 60%), radial-gradient(600px 420px at 0% 110%, rgb(var(--glow-rgb) / .35), transparent 60%), linear-gradient(160deg, var(--ink-deep), var(--plum)); }
.shr-hero h1 { color: #fff; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1; overflow-wrap: anywhere; font-family: var(--font-display); }
.shr-of { margin: 0 auto .4em; color: var(--brass-hi); max-width: none; }
.shr-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; margin: 14px auto 0; color: #E9E2FF; font-weight: 600; max-width: none; }
.shr-player { display: grid; gap: 12px; max-width: 1100px; width: 100%; margin-inline: auto; }
.shr-video { width: 100%; max-height: 78vh; background: #000; border-radius: 18px; }
.shr-bigplay { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: 16px 28px; border: 0; border-radius: 999px; background: rgb(var(--rose-rgb)); color: var(--rose-ink); font: 700 1.1rem var(--font-body); cursor: pointer; box-shadow: 0 16px 36px -12px rgba(0,0,0,.6); }
.shr-group h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 22px 0 10px; }
.shr-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 18vw, 220px), 1fr)); }
.shr-ph { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #1a1433; aspect-ratio: 1; cursor: zoom-in; }
.shr-ph img { width: 100%; height: 100%; object-fit: cover; }
.shr-lb { position: fixed; inset: 0; z-index: 40; background: rgba(8,6,18,.94); display: grid; place-items: center; padding: 56px 12px; }
.shr-lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shr-lb-x { position: absolute; right: 12px; top: 12px; } .shr-lb-d { position: absolute; left: 12px; bottom: 12px; }
.shr-lb-p, .shr-lb-n { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.4rem; min-width: 48px; } .shr-lb-p { left: 8px; } .shr-lb-n { right: 8px; }
.shr-promo { border-radius: 22px; padding: clamp(20px, 4vw, 44px); background: var(--paper-warm); border: 1px solid var(--mist); display: grid; gap: 12px; justify-items: start; box-shadow: 0 22px 40px -28px rgba(34,28,58,.45); }
.shr-promo h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.shr-promo p { margin: 0; }
.shr-promo ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
@media (max-width: 560px) { .sx-two { grid-template-columns: 1fr; } .sx-tile { width: 96px; } .sx-transport .btn { min-width: 40px; padding: 0 10px; } }
/* wide tables scroll inside their box; shadows at the edges show there is more */
.tablewrap { background: linear-gradient(90deg, var(--card) 30%, transparent) 0 0 / 40px 100% no-repeat local, linear-gradient(270deg, var(--card) 30%, transparent) 100% 0 / 40px 100% no-repeat local, linear-gradient(90deg, rgba(34,28,58,.18), transparent) 0 0 / 14px 100% no-repeat scroll, linear-gradient(270deg, rgba(34,28,58,.18), transparent) 100% 0 / 14px 100% no-repeat scroll, var(--card); }
.guest-table td:last-child { min-width: 160px; }
