/* Sanford Wedding — photo & video gallery */
@font-face { font-family: 'Marcellus'; src: url('../fonts/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('../fonts/mulish-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('../fonts/mulish-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('../fonts/mulish-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #EDEDE5;
  --paper: #F7F6F1;
  --card: #FFFFFF;
  --ink: #2B2112;
  --muted: #6F6555;
  --brown: #5A3B12;
  --brown-dark: #3F290B;
  --taupe: #8E8371;
  --taupe-light: #C9C1B2;
  --line: #DDD7CA;
  --ok: #4C6A38;
  --ok-bg: #E7EEDD;
  --warn: #946A1F;
  --warn-bg: #F5EBD6;
  --bad: #9A3A2C;
  --bad-bg: #F5E1DC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 33, 18, .06), 0 6px 20px rgba(43, 33, 18, .07);
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --serif: 'Marcellus', 'Optima', 'Palatino Linotype', Georgia, serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--brown); line-height: 1.2; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.spacer { flex: 1; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px;
  border: 1.5px solid var(--brown); background: var(--brown); color: #fff;
  font-weight: 700; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s, opacity .15s;
  touch-action: manipulation; user-select: none;
}
.btn:hover { background: var(--brown-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--brown); }
.btn.secondary:hover { background: rgba(90, 59, 18, .06); }
.btn.ghost { background: transparent; color: var(--brown); border-color: transparent; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger.secondary { background: transparent; color: var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: .45em 1em; font-size: .9rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.icon-btn svg { width: 24px; height: 24px; }

label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; font-weight: 600; margin-bottom: .35rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: .75em .95em;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(90, 59, 18, .14); }
.input.code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; font-size: 1.15rem; text-align: center; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.error-text { color: var(--bad); font-size: .92rem; margin: .5rem 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: .35em; white-space: nowrap;
  min-height: 38px; padding: .35em .95em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-size: .9rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.chip[aria-pressed="true"], .chip.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem 0 .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.notice { border-radius: 12px; padding: .85rem 1rem; background: var(--warn-bg); color: #5c4212; font-size: .95rem; margin-bottom: 1rem; }
.notice.ok { background: var(--ok-bg); color: #2f4520; }
.notice.bad { background: var(--bad-bg); color: #6b241a; }

.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .2em .6em; border-radius: 999px; background: var(--paper); color: var(--muted); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.approved { background: var(--ok-bg); color: var(--ok); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- landing ---------- */
.landing { max-width: 460px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 20px calc(32px + var(--safe-b)); }
.landing-logo { width: min(230px, 62vw); margin: 0 auto 1.25rem; }
.landing .intro { text-align: center; margin-bottom: 1.5rem; }
.landing .intro p { color: var(--muted); margin: 0; }
.combo { position: relative; }
.combo .input { padding-left: 2.8em; }
.combo .search-ic { position: absolute; left: .95em; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--taupe); pointer-events: none; }
.listbox {
  list-style: none; margin: .4rem 0 0; padding: .35rem; border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow); border: 1px solid var(--line); max-height: 320px; overflow-y: auto;
}
.listbox li {
  padding: .8em .9em; border-radius: 9px; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .6em;
}
.listbox li[aria-selected="true"], .listbox li:hover { background: var(--paper); }
.listbox li mark { background: transparent; color: var(--brown); font-weight: 700; }
.listbox .empty { color: var(--muted); cursor: default; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--paper); color: var(--brown); font-family: var(--serif); font-size: .95rem; border: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.who .avatar { width: 48px; height: 48px; font-size: 1.15rem; }
.who strong { display: block; font-size: 1.1rem; }
.member-list { display: grid; gap: .6rem; margin: 1rem 0; }
.member-btn {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 60px; padding: .7rem 1rem;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: left; font-weight: 600;
}
.member-btn:hover, .member-btn:focus-visible { border-color: var(--brown); outline: none; }
.footer-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }
.linkish { background: none; border: 0; color: var(--brown); text-decoration: underline; cursor: pointer; padding: .5em 0; font-weight: 600; }

/* ---------- app shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(8px + var(--safe-t)) 12px 8px 14px;
  background: rgba(237, 237, 229, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--brown); min-width: 0; }
.brand img { width: 34px; height: 44px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; color: var(--taupe); text-transform: uppercase; margin-top: -2px; }
.user-btn {
  display: flex; align-items: center; gap: .45rem; padding: .3rem .45rem .3rem .3rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); cursor: pointer; max-width: 52vw; min-height: 44px;
}
.user-btn .avatar { width: 32px; height: 32px; font-size: .85rem; }
.user-btn .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.menu {
  position: absolute; right: 10px; top: calc(100% + 4px); background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: .35rem; min-width: 220px; z-index: 40;
}
.menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .8rem .9rem; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 600; }
.menu button:hover { background: var(--paper); }

main.app { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar) + var(--safe-b) + 96px); }
main.app.wide { max-width: 1400px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(247, 246, 241, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--taupe); text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--brown); }
@media (min-width: 900px) {
  .tabbar { top: 0; bottom: auto; left: auto; right: 190px; height: 61px; padding: 0; width: 470px; background: transparent; border: 0; backdrop-filter: none; }
  .tabbar a { flex-direction: row; gap: 6px; font-size: .9rem; }
  .tabbar a svg { width: 20px; height: 20px; }
  main.app { padding-bottom: 120px; }
}

/* ---------- upload ---------- */
.hero { text-align: center; padding: .5rem 0 1rem; }
.hero p { color: var(--muted); max-width: 32em; margin: 0 auto; }
.pick-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-bottom: 1rem; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 150px; padding: 1.2rem; border-radius: var(--radius); cursor: pointer; text-align: center;
  border: 2px dashed var(--taupe-light); background: var(--paper); color: var(--brown); transition: border-color .15s, background .15s;
}
.pick:hover, .pick.drag { border-color: var(--brown); background: #fff; }
.pick svg { width: 42px; height: 42px; }
.pick strong { font-size: 1.1rem; }
.pick span { color: var(--muted); font-size: .88rem; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pick.camera { min-height: 64px; flex-direction: row; border-style: solid; border-width: 1.5px; border-color: var(--line); background: var(--card); }
.pick.camera svg { width: 26px; height: 26px; }
.section-label { font-weight: 700; font-size: .95rem; margin: 1.1rem 0 .45rem; }
.section-label .muted { font-weight: 400; }

.queue { display: grid; gap: .75rem; margin: 1rem 0; }
.qitem { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; background: var(--card); border-radius: var(--radius); padding: .7rem; box-shadow: var(--shadow); position: relative; }
.qthumb { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--paper); position: relative; display: grid; place-items: center; color: var(--taupe); }
.qthumb img, .qthumb video { width: 100%; height: 100%; object-fit: cover; }
.qthumb .badge { position: absolute; left: 5px; bottom: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.qbody { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.qbody .meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); padding-right: 36px; }
.qbody .meta .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbody textarea { min-height: 48px; padding: .55em .7em; font-size: 16px; border-radius: 10px; }
.qbody select { min-height: 40px; padding: .35em .6em; border-radius: 10px; font-size: .9rem; }
.qremove { position: absolute; top: 4px; right: 4px; }
.progress { height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brown); transition: width .2s; }
.qitem.done .progress > i { background: var(--ok); }
.qitem.failed .progress > i { background: var(--bad); }
.qstatus { font-size: .82rem; font-weight: 600; color: var(--muted); }
.qitem.done .qstatus { color: var(--ok); }
.qitem.failed .qstatus { color: var(--bad); }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 25;
  padding: 10px 16px; background: linear-gradient(to top, var(--bg) 70%, rgba(237, 237, 229, 0));
}
.actionbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: .6rem; }
@media (min-width: 900px) { .actionbar { bottom: 0; } }
.overall { font-size: .85rem; color: var(--muted); text-align: center; margin-bottom: .35rem; }

.success { text-align: center; padding: 2rem 1rem; }
.success .tick { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.success .tick svg { width: 38px; height: 38px; }

/* ---------- grids ---------- */
.summary { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.summary b { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; grid-auto-flow: dense; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--paper); cursor: pointer;
  border: 0; padding: 0; display: block; width: 100%;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.tile:hover img { transform: scale(1.03); }
.tile.featured { grid-column: span 2; grid-row: span 2; }
.tile .ov { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); color: #fff; font-size: .72rem; font-weight: 700; pointer-events: none; }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile .play span { width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); }
.tile .play svg { width: 22px; height: 22px; margin-left: 3px; }
.tile .status { position: absolute; top: 5px; left: 5px; }
.tile .star { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.tile .star svg { width: 20px; height: 20px; }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--taupe); font-size: .75rem; text-align: center; padding: 6px; }
.tile .ph svg { width: 30px; height: 30px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--taupe-light); border-top-color: var(--brown); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sentinel { height: 1px; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state img { width: 70px; margin: 0 auto 1rem; opacity: .7; }

.toolbar { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.toolbar select { min-height: 40px; width: auto; padding: .3em 2em .3em .8em; border-radius: 999px; font-size: .9rem; }

.messages { display: grid; gap: .6rem; }
.msg { background: var(--card); border-radius: 12px; padding: .9rem 1rem; box-shadow: var(--shadow); position: relative; }
.msg p { white-space: pre-wrap; margin: 0 0 .3rem; padding-right: 36px; overflow-wrap: anywhere; }
.msg .x { position: absolute; top: 6px; right: 6px; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: #120d06; color: #fff; display: flex; flex-direction: column; touch-action: none; }
.lb-top { display: flex; align-items: center; gap: .3rem; padding: calc(6px + var(--safe-t)) 6px 6px; z-index: 3; }
.lb-top .count { font-size: .85rem; opacity: .75; margin-left: .3rem; }
.lb .icon-btn { color: #fff; }
.lb .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lb .icon-btn.on { background: rgba(255, 255, 255, .2); }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-media-wrap { position: relative; max-width: 100%; max-height: 100%; display: flex; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0, 0, 0, .35) !important; }
.lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
@media (hover: none) { .lb-nav { width: 40px; height: 40px; opacity: .8; } .lb-nav.prev { left: 4px; } .lb-nav.next { right: 4px; } }
.lb-info { padding: .8rem 1rem calc(.9rem + var(--safe-b)); background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .3)); max-height: 44vh; overflow-y: auto; touch-action: pan-y; }
.lb-info .by { font-size: .85rem; opacity: .8; }
.lb-info .by button { color: #fff; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.lb-info .cap { margin: .35rem 0; font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.lb-info .pend { font-size: .85rem; color: #f2d79b; margin: .3rem 0; }
.lb-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.lb-actions .btn { min-height: 40px; padding: .4em 1em; font-size: .88rem; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.lb-actions .btn:hover { background: rgba(255, 255, 255, .22); }
.lb-actions .btn.ok { background: var(--ok); border-color: var(--ok); }
.lb-actions .btn.danger { background: rgba(154, 58, 44, .85); border-color: transparent; }
.lb-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; align-items: center; font-size: .85rem; }
.lb-tags .tagchip { display: inline-flex; align-items: center; gap: .2rem; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .2rem .25rem .2rem .7rem; border: 0; color: #fff; font-weight: 600; cursor: pointer; min-height: 32px; }
.lb-tags .tagchip .rm { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.lb-tags .tagchip .rm:hover { background: rgba(255, 255, 255, .2); }
.lb-tags .tagchip.solo { padding-right: .7rem; }
.tag-marker { position: absolute; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.tag-marker i { width: 54px; height: 54px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35), inset 0 0 0 1.5px rgba(0, 0, 0, .25); }
.tag-marker b { margin-top: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag-marker.hl i { border-color: #f2d79b; }
.tag-marker.new i { border-style: dashed; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.lb.tagging .lb-stage { cursor: crosshair; }
.tag-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(0, 0, 0, .7); padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* ---------- sheets / modals ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(20, 14, 6, .5); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .backdrop { align-items: center; } }
.sheet {
  width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--paper); color: var(--ink);
  border-radius: 20px 20px 0 0; padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-b)); animation: up .2s ease-out;
}
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
.sheet .handle { width: 40px; height: 5px; border-radius: 5px; background: var(--taupe-light); margin: -6px auto 12px; }
.sheet .row { display: flex; gap: .6rem; margin-top: 1rem; }
.sheet .row .btn { flex: 1; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b) + 84px); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); animation: up .2s; max-width: 520px; pointer-events: auto; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: .3rem; overflow-x: auto; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: calc(61px + var(--safe-t)); z-index: 29; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: none; border: 0; background: none; padding: .9rem .9rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.admin-tabs button[aria-selected="true"] { color: var(--brown); border-bottom-color: var(--brown); }
.badge-n { background: var(--bad); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05em .5em; min-width: 1.4em; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(8, 1fr); } }
.stat { background: var(--card); border-radius: 12px; padding: .75rem .9rem; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--brown); font-weight: 400; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.acards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .acards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .acards { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1400px) { .acards { grid-template-columns: repeat(6, 1fr); } }
.acard { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; outline: 3px solid transparent; transition: outline-color .1s; }
.acard.sel { outline-color: var(--brown); }
.acard .tile { border-radius: 0; }
.acard .body { padding: .5rem .6rem .6rem; font-size: .82rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.acard .body .g { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .body .c { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acard .qa { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.acard .qa button { border: 0; background: none; min-height: 44px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .3rem; font-size: .85rem; }
.acard .qa button + button { border-left: 1px solid var(--line); }
.acard .qa .yes { color: var(--ok); } .acard .qa .no { color: var(--bad); }
.acard .qa button:hover { background: var(--paper); }
.acard .check { position: absolute; top: 6px; left: 6px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2px solid var(--taupe-light); display: grid; place-items: center; cursor: pointer; }
.acard.sel .check { background: var(--brown); border-color: var(--brown); color: #fff; }
.acard .check svg { width: 18px; height: 18px; }
.bulkbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff; padding: .7rem 1rem calc(.7rem + var(--safe-b)); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.bulkbar .btn { min-height: 40px; padding: .4em 1em; font-size: .88rem; }
.bulkbar .btn.secondary { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hh { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: .7rem; overflow: hidden; }
.hh-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; cursor: pointer; flex-wrap: wrap; }
.hh-head h3 { margin: 0; font-size: 1.05rem; flex: 1; min-width: 160px; }
.hh-body { border-top: 1px solid var(--line); padding: .6rem 1rem 1rem; }
.code-box { font-family: ui-monospace, Menlo, monospace; background: var(--paper); border: 1px dashed var(--taupe-light); padding: .2rem .6rem; border-radius: 8px; letter-spacing: .1em; font-weight: 700; }
.mrow { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--paper); flex-wrap: wrap; }
.mrow:last-child { border-bottom: 0; }
.mrow .nm { font-weight: 600; flex: 1; min-width: 140px; }
.mrow .nm.dim { color: var(--muted); font-style: italic; font-weight: 400; }
.mrow .meta { font-size: .78rem; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 50px; height: 30px; border-radius: 999px; background: var(--taupe-light); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(90, 59, 18, .25); }
.setting { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.setting > div { flex: 1; }
.setting strong { display: block; }
.setting p { margin: 0; font-size: .85rem; color: var(--muted); }
.qr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.qr-card { background: #fff; border-radius: 14px; padding: 1rem; text-align: center; box-shadow: var(--shadow); break-inside: avoid; border: 1px solid var(--line); }
.qr-card img.st { width: 46px; margin: 0 auto .3rem; }
.qr-card .qr svg { width: 100%; max-width: 180px; height: auto; margin: .4rem auto; display: block; }
.qr-card .names { font-family: var(--serif); color: var(--brown); font-size: 1.05rem; line-height: 1.25; min-height: 2.5em; }
.qr-card .cta { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 700; }
.qr-card .url { font-size: .62rem; color: var(--muted); word-break: break-all; }
.qr-general { max-width: 420px; margin: 0 auto 1.5rem; }
.qr-general .qr svg { max-width: 260px; }
.audit { font-size: .8rem; font-family: ui-monospace, Menlo, monospace; max-height: 400px; overflow: auto; background: var(--card); border-radius: 10px; padding: .6rem; }
.audit div { padding: .2rem 0; border-bottom: 1px solid var(--paper); }
.meta-table { font-size: .82rem; opacity: .85; display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; margin-top: .5rem; }
.meta-table dt { opacity: .7; } .meta-table dd { margin: 0; overflow-wrap: anywhere; }

@media print {
  body { background: #fff; }
  body.printing > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .qr-cards { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  #print-root .qr-card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
}
#print-root { display: none; padding: 10mm; }
.tile .status { font-size: .62rem; white-space: nowrap; padding: .25em .55em; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
@media (max-width: 699px) {
  .stats { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 1rem; padding: 2px 16px 6px; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: none; min-width: 112px; padding: .55rem .8rem; }
  .stat b { font-size: 1.25rem; }
  .mrow .meta { flex-basis: 100%; order: 3; padding-left: 44px; }
  .mrow .btn.ghost { order: 4; }
}
.btn span svg, .qa span svg, .lb-actions span svg { width: 1.15em; height: 1.15em; }
.acard .check { color: var(--taupe-light); }

/* ---------- install as app ---------- */
.install-card { display: flex; align-items: center; gap: .75rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem .5rem .7rem .8rem; margin: 0 0 1rem; border: 1px solid var(--line); }
.install-card img { width: 46px; height: 46px; border-radius: 11px; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.install-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.install-card .txt span { font-size: .84rem; color: var(--muted); }
.install-card .close { width: 36px; height: 36px; flex: none; }
.install-card .close svg { width: 18px; height: 18px; }
.install-head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.install-head img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.install-head h2 { margin: 0; }
.install-head p { margin: .1rem 0 0; }
.install-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.install-step { display: flex; align-items: center; gap: .75rem; background: var(--card); border-radius: 12px; padding: .75rem .9rem; border: 1px solid var(--line); }
.install-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.install-step .txt { flex: 1; }
.install-step .ico { color: #0a84ff; display: inline-flex; flex: none; }
.topbar .btn { white-space: nowrap; }
@media (max-width: 600px) { .hide-sm { display: none !important; } .topbar .brand small { letter-spacing: .18em; } }

/* shown until the page's code has loaded */
.boot { text-align: center; padding: 22vh 24px 0; color: var(--muted); }
.boot img { width: 64px; margin: 0 auto .8rem; opacity: .85; }
.boot .slow { opacity: 0; animation: boot-show .3s ease 6s forwards; max-width: 22em; margin: .5rem auto; font-size: .9rem; }
@keyframes boot-show { to { opacity: 1; } }

/* "Which part of the day?" — a tidy grid of big buttons instead of a sideways-scrolling row */
.moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 560px) { .moment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.moment-grid .chip { width: 100%; justify-content: center; min-height: 46px; white-space: normal; text-align: center; line-height: 1.2; padding: .45em .6em; border-radius: 12px; }

/* ---------- album filters (guest) ---------- */
.album-quick { display: grid; gap: .5rem; margin-bottom: .5rem; }
.album-quick.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.album-quick.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.album-quick .chip { width: 100%; justify-content: center; min-height: 44px; padding: .35em .4em; font-size: .86rem; white-space: normal; text-align: center; line-height: 1.2; }
.album-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.album-filters select, .album-toolbar select { min-height: 44px; border-radius: 12px; font-size: 16px; padding: .4em .8em; }
.album-toolbar select { width: auto; }
@media (min-width: 700px) {
  .album-quick, .album-filters { max-width: 720px; }
}

/* ---------- action sheets ---------- */
.action-list { display: grid; gap: .4rem; }
.action-item { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 54px; padding: .6rem 1rem; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-weight: 600; font-size: 1rem; text-align: left; cursor: pointer; color: var(--ink); }
.action-item:hover { border-color: var(--brown); }
.action-item .ai-ic { display: inline-flex; color: var(--brown); }
.action-item .ai-ic svg { width: 22px; height: 22px; }
.action-item.danger { color: var(--bad); }
.action-item.danger .ai-ic { color: var(--bad); }

/* ---------- admin: phone layout ---------- */
.show-sm { display: none !important; }
.tabbar.admin-bottom { display: none; }
.admin-toolbar { flex-wrap: wrap; }
.admin-search { flex: 1 1 260px; max-width: 360px; }
.acard .qa .lbl { white-space: nowrap; }
.acard .qa svg { width: 18px; height: 18px; }
.hh-head { gap: .6rem; }
.hh-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hh-title h3 { margin: 0; min-width: 0; }
.chev { display: inline-flex; color: var(--taupe); transition: transform .15s; }
.chev svg { width: 20px; height: 20px; }
.hh-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.mrow2 { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .65rem .2rem; border: 0; border-bottom: 1px solid var(--paper); background: none; text-align: left; cursor: pointer; min-height: 56px; }
.mrow2:hover { background: var(--paper); }
.mrow2 .mtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow2 .nm { font-weight: 600; overflow-wrap: anywhere; }
.mrow2 .nm.dim { color: var(--muted); font-style: italic; font-weight: 400; }
.mrow2 .meta { font-size: .78rem; color: var(--muted); }
.mrow2 .mmore { display: inline-flex; color: var(--taupe); }
.mrow2 .mmore svg { width: 20px; height: 20px; }
.lb-decide { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
.lb-actions .lb-decide .btn { min-height: 50px; font-size: 1rem; }
.lb-actions .btn.is-on { opacity: .55; }
.lb-details { margin-top: .4rem; font-size: .85rem; }
.lb-details summary { cursor: pointer; opacity: .8; padding: .2rem 0; }

@media (max-width: 760px) {
  .admin-tabs { display: none; }
  .tabbar.admin-bottom { display: grid; grid-template-columns: repeat(5, 1fr); }
  .tabbar.admin-bottom a { font-size: .68rem; }
  .tabbar .tb-ic { position: relative; display: inline-flex; }
  .tabbar .tb-ic svg { width: 24px; height: 24px; }
  .tb-badge { position: absolute; top: -5px; right: -11px; background: var(--bad); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 700; padding: 1px 5px; line-height: 1.3; }
  .bulkbar { bottom: calc(var(--tabbar) + var(--safe-b)); padding: .55rem .7rem; flex-wrap: nowrap; justify-content: space-between; }
  .bulkbar b { font-size: .85rem; white-space: nowrap; }
  .bulkbar .btn { flex: 1; padding: .4em .5em; }
  .admin-search { flex-basis: 100%; max-width: none; }
  .admin-toolbar select { flex: 1; min-width: 0; }
}
@media (max-width: 600px) {
  .show-sm { display: inline-grid !important; }
}
@media (max-width: 430px) {
  .acard .qa .lbl { display: none; }
  .acard .qa button { min-height: 48px; }
  .acard .qa svg { width: 24px; height: 24px; }
}
.admin-toolbar select { flex: 1 1 160px; width: auto; min-width: 150px; max-width: 240px; }
@media (max-width: 760px) { .admin-toolbar select { max-width: none; } }
@media (min-width: 761px) { .lb-decide { max-width: 520px; } }
.tabbar a > span:first-child { position: relative; }
.tb-badge.up { background: var(--brown); position: absolute; top: -6px; right: -16px; color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 700; padding: 1px 5px; line-height: 1.3; }

/* ---------- wedding info ---------- */
.top-links { display: flex; gap: .4rem; }
.page-info, .page-rsvp { padding-bottom: 120px !important; }
.info { max-width: 680px; margin: 0 auto; }
.info-nav { position: sticky; top: calc(61px + var(--safe-t)); z-index: 20; background: var(--bg); padding: .5rem 0 .6rem; margin-bottom: .5rem; }
.info-sec { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.2rem; margin-bottom: 1rem; scroll-margin-top: 120px; }
.info-sec h2 { font-size: 1.5rem; text-align: center; margin-bottom: .8rem; }
.info-hero { text-align: center; background: transparent; box-shadow: none; padding-top: .5rem; }
.info-names { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: .8rem; }
.info-hero-img { width: min(100%, 360px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; margin: 0 auto 1rem; box-shadow: var(--shadow); }
.info-lead { color: var(--muted); font-size: 1.05rem; }
.countdown { display: inline-block; margin-top: .4rem; padding: .45rem 1.1rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--brown); font-weight: 600; }
.countdown b { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-right: .15rem; }
.rt p { margin: 0 0 .8em; }
.rt p:last-child { margin-bottom: 0; }
.info-deadline { display: flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; color: var(--brown); margin: .9rem 0; }
.info-deadline svg { width: 20px; height: 20px; }
.info-date { text-align: center; font-weight: 700; color: var(--brown); }
.timeline { list-style: none; padding: 0; margin: .5rem 0 0; }
.timeline li { display: grid; grid-template-columns: 78px 18px 1fr; align-items: start; gap: .5rem; padding: .55rem 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 86px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 50%; } .timeline li:last-child::before { bottom: 50%; }
.tl-time { text-align: right; font-weight: 700; color: var(--brown); font-size: .92rem; padding-top: .1rem; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brown); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--brown); margin-top: .25rem; z-index: 1; }
.tl-body { display: flex; flex-direction: column; } .tl-note { color: var(--muted); font-size: .88rem; }
.venue-card { text-align: center; }
.venue-card strong { font-family: var(--serif); font-size: 1.25rem; color: var(--brown); font-weight: 400; }
.venue-card address { font-style: normal; margin: .3rem 0 .8rem; }
.venue-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: .65rem; font-size: 1.4rem; color: var(--brown); }
.faq details[open] summary::after { content: '–'; }
.faq details .rt { padding: 0 0 1rem; color: var(--ink); }
.hotels { display: grid; gap: .8rem; }
.hotel { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.hotel h3 { margin-bottom: .2rem; }
.hotel .rt { margin: .4rem 0 .7rem; font-size: .95rem; }

/* ---------- RSVP ---------- */
.rsvp-wrap { max-width: 620px; margin: 0 auto; }
.rsvp-wrap h1 { font-size: 1.8rem; margin-top: .4rem; }
.rsvp-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.rsvp-fields[disabled] { opacity: .65; }
.rsvp-person { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: .9rem; }
.rsvp-person .who { margin-bottom: .6rem; }
.rsvp-event { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--paper); flex-wrap: wrap; }
.ev-name { font-weight: 700; }
.yn-group { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .4rem; min-width: 190px; }
.yn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; cursor: pointer; padding: 0 .8rem; }
.yn svg { width: 18px; height: 18px; }
.yn.yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.yn.no[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.rsvp-meal { border-top: 1px solid var(--paper); padding-top: .8rem; margin-top: .2rem; }
.rsvp-meal .lbl { display: block; font-weight: 600; margin-bottom: .35rem; }
.diet-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rsvp-bar { bottom: 0; }
.sum-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .25rem; }
.sum-list li { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.sum-list li.yes { color: var(--ok); } .sum-list li.no { color: var(--bad); }
.sum-list svg { width: 18px; height: 18px; }
.landing-links { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.chip { text-decoration: none; }

/* ---------- admin: RSVPs & wedding info ---------- */
.rs-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rs-top h1 { flex: 1; margin: 0; }
.rs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; margin: .8rem 0; }
.rs-stat { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .8rem .9rem; }
.rs-name { font-family: var(--serif); color: var(--brown); font-size: 1.15rem; }
.rs-nums { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .85rem; margin: .3rem 0 .4rem; }
.rs-nums b { font-size: 1.05rem; }
.rs-nums .y { color: var(--ok); } .rs-nums .n { color: var(--bad); } .rs-nums .a { color: var(--muted); }
.rs-bar { height: 8px; border-radius: 8px; background: var(--paper); overflow: hidden; display: flex; margin-bottom: .3rem; }
.rs-bar i { display: block; height: 100%; } .rs-bar .y { background: var(--ok); } .rs-bar .n { background: var(--bad); }
.rs-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.count-list { list-style: none; padding: 0; margin: 0; }
.count-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--paper); font-size: .92rem; }
.rs-parties { display: grid; gap: .6rem; }
.rs-party { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .7rem .9rem; }
.rs-party-head { display: flex; align-items: center; gap: .5rem; }
.rs-members { margin-top: .4rem; }
.rs-member { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .4rem 0; border-top: 1px solid var(--paper); }
.rs-member .nm { font-weight: 600; flex: 1 1 150px; }
.rs-ans { display: flex; gap: .3rem; flex-wrap: wrap; }
.ans { font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; background: var(--paper); color: var(--muted); }
.ans.y { background: var(--ok-bg); color: var(--ok); } .ans.n { background: var(--bad-bg); color: var(--bad); }
.rs-meal { flex-basis: 100%; color: var(--muted); }
.rs-msg { margin: .4rem 0 0; font-style: italic; color: var(--muted); font-size: .92rem; }
.sec-list { display: grid; gap: .5rem; margin: .8rem 0; }
.sec-row { display: flex; align-items: center; gap: .4rem; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem .6rem .4rem .2rem; }
.sec-row.off { opacity: .6; }
.sec-move { display: flex; flex-direction: column; }
.sec-move .icon-btn { width: 34px; height: 30px; }
.sec-move .icon-btn svg { width: 18px; height: 18px; }
.sec-move .icon-btn[disabled] { opacity: .25; }
.sec-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .5rem .3rem; cursor: pointer; display: flex; flex-direction: column; }
.items-ed { display: grid; gap: .6rem; margin-bottom: 1rem; }
.item-ed { border: 1px solid var(--line); border-radius: 12px; padding: .6rem; display: grid; gap: .4rem; background: var(--card); }
.item-ed-head { display: flex; align-items: center; }
.item-ed-head .icon-btn { width: 36px; height: 36px; }
.item-ed-head .icon-btn svg { width: 18px; height: 18px; }
.hero-prev { width: 160px; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ev-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.ev-row .input { flex: 1; }
.inv-list { display: grid; gap: .4rem; margin-bottom: .6rem; }
.inv-list input { width: 22px; height: 22px; accent-color: var(--brown); }
.landing-links .btn { padding: .6em .7em; white-space: nowrap; font-size: .95rem; text-align: center; }
.ev-name { display: flex; flex-direction: column; }
.ev-time { font-weight: 600; font-size: .85rem; color: var(--muted); }
.add-baby { margin: .2rem 0 .6rem; }

/* spacing: buttons after text inside info sections */
.info-sec > .btn, .info-sec > a.btn, .info-sec .rt + .btn, .info-sec .rt + a.btn { margin-top: 1.1rem; }
/* live countdown */
.cd-wrap { margin-top: .6rem; }
.countdown-live { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: .5rem; }
.cd-unit { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: .6rem .3rem .5rem; min-width: 64px; }
.cd-unit b { display: block; font-family: var(--serif); font-weight: 400; color: var(--brown); font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); font-weight: 700; }
/* schedule extras */
.tl-end { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); }
.tl-who { font-size: .75rem; color: var(--taupe); font-weight: 700; }
.sched-locked { text-align: center; }
.sched-locked p { color: var(--muted); }
/* hotel photos */
.hotel-img { width: calc(100% + 2rem); max-width: none; margin: -1rem -1rem .8rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 0; }
.hotel { overflow: hidden; }
.rs-ages { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .82rem; color: var(--ink); margin-bottom: .3rem; }
.limits-card { margin: .8rem 0; }
.limits-card.is-over { border: 2px solid var(--bad); }
.table-scroll { overflow-x: auto; margin-top: .5rem; }
table.limits { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.limits th, table.limits td { padding: .45rem .5rem; border-bottom: 1px solid var(--paper); text-align: center; white-space: nowrap; }
table.limits thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.limits tbody th { text-align: left; font-weight: 600; white-space: normal; }
table.limits td.ok { color: var(--ok); font-weight: 700; } table.limits td.full { color: var(--warn); font-weight: 700; }
table.limits td.over { color: #fff; background: var(--bad); font-weight: 700; border-radius: 6px; }
table.limits tr.row-over th { color: var(--bad); }
.item-img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: .4rem; }
.ev-row2 { flex-wrap: wrap; }
.ev-row2 > .input { flex: 1 1 100%; }
.ev-t { display: grid; gap: .15rem; } .ev-t .input { min-height: 40px; padding: .3em .5em; }
.seg { display: flex; gap: .4rem; flex-wrap: wrap; }
@media print {
  @page { size: A4; margin: 10mm; }
  #print-root.qr4 { padding: 0; }
  #print-root.qr4 .qr-cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 133mm; gap: 4mm; }
  #print-root.qr4 .qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8mm; border: 1px dashed #bbb; border-radius: 0; }
  #print-root.qr4 .qr-card img.st { width: 18mm; }
  #print-root.qr4 .qr-card .names { font-size: 16pt; min-height: 0; margin-bottom: 2mm; }
  #print-root.qr4 .qr-card .qr svg { max-width: 62mm; }
  #print-root.qr4 .qr-card .cta { font-size: 9pt; margin-top: 2mm; }
  #print-root.qr4 .qr-card .url { font-size: 8pt; }
}

/* ---------- table plan ---------- */
.tp-summary .tp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; }
.tp-nums b { display: block; font-family: var(--serif); font-weight: 400; color: var(--brown); font-size: 1.5rem; }
.tp-nums span { font-size: .72rem; color: var(--muted); font-weight: 700; }
@media (max-width: 480px) { .tp-summary .tp-nums { grid-template-columns: repeat(2, 1fr); } }
.tp-unseated { margin-top: .8rem; } .tp-unseated summary { cursor: pointer; font-weight: 700; }
.tp-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tp-chips .chip { cursor: default; font-weight: 600; font-size: .82rem; min-height: 32px; }
.tp-chips .chip.awaiting { color: var(--muted); border-style: dashed; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .8rem; margin-top: .8rem; }
@media (max-width: 400px) { .tp-grid { grid-template-columns: 1fr; } }
.tp-card { padding: .9rem; }
.tp-head { display: flex; align-items: center; gap: .4rem; }
.tp-svg { width: 100%; height: auto; display: block; margin: .3rem 0; font-family: var(--sans); }
.tp-table { fill: var(--paper); stroke: var(--taupe); stroke-width: 2; }
.tp-tname { font-family: var(--serif); font-size: 15px; fill: var(--brown); }
.tp-seat { cursor: pointer; }
.tp-seat circle { fill: #fff; stroke: var(--taupe-light); stroke-width: 2; transition: fill .15s; }
.tp-seat:hover circle, .tp-seat:focus circle { stroke: var(--brown); }
.tp-seat .tp-num { font-size: 11px; font-weight: 700; fill: var(--taupe); pointer-events: none; }
.tp-seat.taken circle { fill: var(--brown); stroke: var(--brown); }
.tp-seat.taken .tp-num { fill: #fff; font-size: 13px; }
.tp-seat.declined circle { fill: var(--bad); stroke: var(--bad); } .tp-seat.declined .tp-num { fill: #fff; }
.tp-seat.off circle { fill: var(--paper); stroke-dasharray: 3 3; } .tp-seat.off .tp-num { fill: var(--taupe-light); }
.tp-label { font-size: 12px; font-weight: 600; fill: var(--ink); pointer-events: none; }
.tp-list { margin: .3rem 0 0; padding-left: 1.6rem; columns: 2; column-gap: 1.2rem; font-size: .85rem; }
.tp-list li { min-height: 1.35em; break-inside: avoid; }
.tp-list li.off { color: var(--taupe-light); } .tp-list li.declined { color: var(--bad); }
.tp-pick { display: grid; gap: .7rem; max-height: 50vh; overflow-y: auto; }
.tp-party-head { display: flex; align-items: center; gap: .4rem; justify-content: space-between; margin-bottom: .2rem; }
.tp-guest { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; width: 100%; text-align: left; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--card); border-radius: 10px; margin-bottom: .3rem; cursor: pointer; min-height: 48px; }
.tp-guest > span:first-child { flex: 1; font-weight: 600; }
.tp-guest:hover { border-color: var(--brown); }
@media print {
  #print-root.plan { padding: 0; }
  #print-root.plan .plan-head { text-align: center; margin-bottom: 6mm; }
  #print-root.plan .plan-head h1 { font-size: 22pt; margin: 0; } #print-root.plan .plan-head p { margin: 0; color: #666; }
  #print-root.plan .plan-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
  #print-root.plan .plan-table { break-inside: avoid; page-break-inside: avoid; border: 1px solid #ccc; border-radius: 4mm; padding: 4mm; }
  #print-root.plan .plan-table h2 { text-align: center; margin: 0 0 2mm; font-size: 14pt; }
  #print-root.plan .tp-svg { max-height: 80mm; }
  #print-root.plan .tp-seat.taken circle { fill: #5A3B12; }
  #print-root.plan .tp-list { font-size: 9pt; }
  #print-root.plan .plan-index { break-before: page; page-break-before: always; }
  #print-root.plan .plan-cols { columns: 3; column-gap: 8mm; font-size: 10pt; }
  #print-root.plan .plan-cols div { display: flex; justify-content: space-between; gap: 3mm; border-bottom: 1px dotted #ccc; padding: 1mm 0; break-inside: avoid; }
}
.tp-card .tp-list li.empty { display: none; }
.tp-card .tp-list:not(:has(li:not(.empty))) { display: none; }

/* v2.2 table plan: seat kinds, room layout */
.tp-seat.k-highchair rect { fill: #F3E7C9; stroke: #B08A3E; stroke-width: 2; }
.tp-seat.k-highchair .tp-num { fill: #8A6A26; font-size: 10px; }
.tp-seat.k-highchair.taken rect { fill: #B08A3E; stroke: #B08A3E; } .tp-seat.k-highchair.taken .tp-num { fill: #fff; font-size: 13px; }
.tp-seat.off circle { fill: transparent; stroke: var(--taupe-light); stroke-dasharray: 3 3; }
.tp-label.off { fill: var(--taupe-light); font-style: italic; font-weight: 400; font-size: 11px; }
.tp-list li.hc-empty { color: #8A6A26; font-style: italic; }
.tp-legend { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--muted); margin: -.1rem 0 .3rem; }
.tp-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.tp-legend .lg { width: 12px; height: 12px; display: inline-block; border: 2px solid var(--taupe-light); border-radius: 50%; background: #fff; }
.tp-legend .lg.hc { border-radius: 3px; background: #F3E7C9; border-color: #B08A3E; }
.tp-legend .lg.off { border-style: dashed; background: transparent; }
.tp-head .btn.ghost { padding-inline: .5rem; gap: .3rem; }
.tp-views { margin: .2rem 0 .6rem; }
.tp-preview { border: 1px solid var(--line); border-radius: 12px; padding: .3rem .5rem; margin-top: .4rem; background: var(--card); }
.tp-preview .tp-svg { max-height: 260px; }
.room-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); -webkit-overflow-scrolling: touch; }
.room-svg { display: block; width: 100%; height: auto; font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.room-floor { fill: #FBF8F3; stroke: var(--taupe); stroke-width: 3; }
.room-grid line { stroke: #ECE4D8; stroke-width: 1; }
.room-dim { font-size: 12px; fill: var(--muted); }
.room-t { cursor: grab; touch-action: none; outline: none; }
.room-t:active { cursor: grabbing; }
.room-table { fill: #fff; stroke: var(--taupe); stroke-width: 2; }
.room-item { fill: #EFE7DA; stroke: var(--taupe-light); stroke-width: 2; stroke-dasharray: 6 4; }
.room-t .tp-seat circle, .room-t .tp-seat rect { stroke-width: 1.5; }
.room-t .tp-seat .tp-num { font-size: 7px; }
.room-name { font-family: var(--serif); font-size: 13px; fill: var(--brown); pointer-events: none; }
.room-t.feature .room-name { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--muted); }
.room-count { font-size: 10px; font-weight: 700; fill: var(--muted); pointer-events: none; }
.room-sel { fill: rgba(176, 138, 62, .08); stroke: #B08A3E; stroke-width: 2; stroke-dasharray: 5 4; }
.room-t:focus-visible .room-table, .room-t:focus-visible .room-item { stroke: var(--brown); stroke-width: 3; }
.room-tools { padding: .7rem .8rem; margin-top: .6rem; display: grid; gap: .5rem; }
.room-tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.room-tools-row .lbl { min-width: 4.5rem; color: var(--muted); font-weight: 700; }
.room-tools-row .btn.sm { min-height: 36px; padding: .3rem .6rem; }
@media (max-width: 480px) { .room-tools-row .lbl { min-width: 100%; } }
@media print {
  #print-root.plan .plan-room { break-after: page; page-break-after: always; text-align: center; }
  #print-root.plan .room-svg { width: 100%; max-height: 240mm; }
  #print-root.plan .room-grid line { stroke: #eee; }
  #print-root.plan .plan-key { font-size: 9pt; color: #666; margin: 2mm 0 0; }
  #print-root.plan .tp-seat.k-highchair.taken rect { fill: #B08A3E; }
}

.room-guest text { font-size: 9.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #FBF8F3; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.room-guest text.declined { fill: var(--bad); text-decoration: line-through; }
.room-guest text { font-size: 9px; }

/* RSVP guest groups */
.rs-groups { margin-top: 1.2rem; scroll-margin-top: 80px; }
.rs-groups .lbl { display: block; font-weight: 700; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.chip-n { display: inline-block; min-width: 1.4em; margin-left: .35rem; padding: 0 .35em; border-radius: 999px; background: rgba(0,0,0,.07); font-size: .78em; font-weight: 700; text-align: center; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255,255,255,.25); }
table.limits tr.clickable { cursor: pointer; }
table.limits tr.clickable:hover th, table.limits tr.clickable:hover td, table.limits tr.clickable:focus-visible th { background: var(--paper); }
.lim-link { text-decoration: underline; text-decoration-color: var(--taupe-light); text-underline-offset: 3px; }
table.rs-glist { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.rs-glist th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .35rem .4rem; border-bottom: 1px solid var(--line); }
table.rs-glist td { padding: .45rem .4rem; border-bottom: 1px solid var(--paper); vertical-align: middle; }
table.rs-glist td:last-child { width: 40px; text-align: right; }
table.rs-glist .icon-btn { width: 36px; height: 36px; }
@media (max-width: 560px) { table.rs-glist thead { display: none; } table.rs-glist tr { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .5rem 0; border-bottom: 1px solid var(--paper); } table.rs-glist td { border: 0; padding: 0; } table.rs-glist td:nth-child(2) { grid-column: 1; font-size: .82rem; } table.rs-glist td:nth-child(3) { grid-column: 1; } table.rs-glist td:nth-child(4) { grid-column: 1; color: var(--muted); } table.rs-glist td:last-child { grid-row: 1 / span 3; grid-column: 2; align-self: center; } }

/* v2.2 extras: share sheet, Wi-Fi card, share page, caterer sheet */
.row-wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.checkline { display: flex; align-items: center; gap: .4rem; margin: .3rem 0; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .4rem .2rem; margin-top: .4rem; }
.share-net { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: none; border: 0; padding: .45rem .2rem; border-radius: 12px; font: inherit; font-size: .78rem; color: var(--ink); cursor: pointer; min-height: 44px; }
.share-net:hover, .share-net:focus-visible { background: var(--paper); }
.share-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.lb-top .lb-share.hidden { display: none; }
.wifi-card { margin: 0 0 1rem; border: 1px solid var(--line); }
.wifi-card.compact { padding: 1rem; }
.wifi-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.wifi-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--brown); flex: none; }
.wifi-ic svg { width: 22px; height: 22px; }
.wifi-dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0 0 .6rem; align-items: center; }
.wifi-dl dt { color: var(--muted); font-size: .85rem; }
.wifi-dl dd { margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; word-break: break-all; }
.wifi-dl code { font-size: 1.02rem; background: var(--paper); padding: .15rem .45rem; border-radius: 6px; user-select: all; }
.wifi-steps .btn { gap: .4rem; }
.wifi-qr { text-align: center; margin-top: .6rem; }
.wifi-qr img { width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
body.share-page { background: var(--bg); min-height: 100vh; }
.share-main { max-width: 860px; margin: 0 auto; padding: 1.2rem 1rem 2rem; text-align: center; }
.share-brand img { height: 64px; margin: .4rem auto 1rem; display: block; }
.share-fig { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem; }
.share-fig img, .share-fig video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 10px; display: block; background: #000; }
.share-fig figcaption { padding: .8rem .4rem .3rem; color: var(--muted); }
.share-fig q { font-family: var(--serif); font-size: 1.2rem; color: var(--brown); }
.share-foot { margin-top: 1.2rem; }
/* caterer sheet (print) */
#print-root.caterer { font-size: 10pt; color: #000; }
#print-root.caterer h1 { font-family: var(--serif); font-weight: 400; font-size: 20pt; margin: 0 0 1mm; }
#print-root.caterer .cat-sub { margin: 0 0 5mm; color: #444; }
#print-root.caterer .cat-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 8mm; margin-bottom: 6mm; }
#print-root.caterer h2 { font-size: 12pt; margin: 0 0 2mm; border-bottom: 1px solid #999; padding-bottom: 1mm; }
#print-root.caterer table { width: 100%; border-collapse: collapse; }
#print-root.caterer td, #print-root.caterer th { border-bottom: 1px solid #ddd; padding: 1.2mm 1.5mm; text-align: left; vertical-align: top; }
#print-root.caterer th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; color: #555; }
#print-root.caterer td.n { text-align: right; font-weight: 700; width: 14mm; }
#print-root.caterer .cat-table { break-inside: avoid; page-break-inside: avoid; margin-bottom: 6mm; }
#print-root.caterer .cat-table h3 { font-size: 12pt; margin: 0 0 1mm; display: flex; justify-content: space-between; }
#print-root.caterer .cat-tally { margin: 0 0 1.5mm; color: #333; }
#print-root.caterer .diet { font-weight: 700; }
#print-root.caterer .flag { display: inline-block; border: 1.5px solid #000; border-radius: 3px; padding: 0 1mm; font-weight: 700; font-size: 8.5pt; }
#print-root.caterer .pb { break-before: page; page-break-before: always; }

/* slideshow remote + settings */
.remote-card { border: 1px solid var(--line); }
.remote-now { display: flex; gap: .8rem; align-items: center; background: var(--paper); border-radius: 12px; padding: .6rem; }
.remote-now img, .remote-now .ph { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: #000; display: grid; place-items: center; font-size: 2rem; }
.remote-now .row-wrap { margin-top: .4rem; }
.remote-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.remote-btns .btn { min-width: 56px; min-height: 48px; font-size: 1.05rem; }
.remote-recent summary { cursor: pointer; font-weight: 700; margin: .4rem 0; }
.remote-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .4rem; }
.remote-thumbs .rt { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--paper); cursor: pointer; }
.remote-thumbs .rt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remote-thumbs .rt i { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: .62rem; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; border-radius: 999px; }
.remote-thumbs .rt:focus-visible { outline: 3px solid var(--brown); }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 1rem; }

/* Our story timeline */
.story { list-style: none; margin: 1.2rem 0 0; padding: 0 0 0 1.6rem; position: relative; }
.story::before { content: ''; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--taupe-light), var(--brown)); border-radius: 2px; }
.story-item { position: relative; margin: 0 0 1.4rem; }
.story-dot { position: absolute; left: -1.6rem; top: .9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--card); border: 3px solid var(--brown); display: grid; place-items: center; font-size: .7rem; }
.story-item:last-child .story-dot { width: 1.7rem; height: 1.7rem; left: -1.9rem; top: .7rem; border-color: var(--gold, #B08A3E); font-size: .9rem; }
.story-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.story-body { padding: .9rem 1rem 1rem; }
.story-body h3 { margin: .25rem 0 .2rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--brown); }
.story-date { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A6A26; background: #F3E7C9; padding: .15rem .55rem; border-radius: 999px; }
.story-place { margin: 0 0 .4rem; font-size: .88rem; color: var(--muted); }
.story-body p:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .story { padding: 0; }
  .story::before { left: 50%; transform: translateX(-1px); }
  .story-item { width: 50%; }
  .story-item.left { padding-right: 2.2rem; }
  .story-item.right { margin-left: 50%; padding-left: 2.2rem; }
  .story-item.left .story-dot { left: auto; right: -.6rem; }
  .story-item.right .story-dot { left: -.6rem; }
  .story-item:last-child.left .story-dot { right: -.85rem; } .story-item:last-child.right .story-dot { left: -.85rem; }
  .story-item + .story-item { margin-top: -2.5rem; }
}

/* v2.6: challenges, notices, official, downloads, getting home, thank-you */
.challenge-box { margin: 1rem 0; }
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.challenge { position: relative; display: flex; align-items: center; gap: .5rem; text-align: left; padding: .6rem .7rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; min-height: 52px; }
.challenge .ce { font-size: 1.35rem; flex: none; }
.challenge .ct { line-height: 1.2; }
.challenge[aria-pressed="true"] { border-color: var(--brown); background: var(--brown); color: #fff; }
.challenge.done:not([aria-pressed="true"]) { border-color: #9fbf9f; background: #f2f8f1; }
.challenge .tick { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #3c7a3c; color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.lb-labels { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .35rem; }
.pill.official { background: #F3E7C9; color: #6b4f1a; }
.dl-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.travel-list { display: grid; gap: .6rem; margin: .8rem 0; }
.travel-item { display: flex; align-items: center; gap: .8rem; background: var(--paper); border-radius: 14px; padding: .75rem .9rem; }
.travel-item .ti-ic { font-size: 1.5rem; flex: none; }
.travel-item .ti-main { flex: 1; min-width: 0; }
.travel-item .ti-main strong { display: block; }
.travel-item .ti-main span { font-size: .85rem; color: var(--muted); }
.travel-trains { background: var(--paper); border-radius: 14px; padding: .8rem .9rem; margin-top: .6rem; }
.ty-hero { text-align: center; padding: 1.5rem 1rem 1rem; }
.ty-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem); margin: .2rem 0 .6rem; color: var(--brown); }
.ty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: 1rem 0; }
.ty-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.ty-actions { display: grid; gap: .6rem; max-width: 420px; margin: 0 auto; }
.storage-banner { margin: 0 0 1rem; }
/* swipe review */
.sw-root { position: fixed; inset: 0; z-index: 200; background: #15110b; color: #f5efe4; display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.sw-top { display: flex; align-items: center; gap: .6rem; }
.sw-top .icon-btn { color: #fff; }
.sw-count { font-size: .9rem; opacity: .85; }
.sw-stage { position: relative; flex: 1; margin: .6rem 0; min-height: 0; }
.sw-card { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #000; display: flex; flex-direction: column; touch-action: none; transition: transform .25s ease; box-shadow: 0 10px 40px rgba(0,0,0,.5); user-select: none; -webkit-user-select: none; }
.sw-card > img, .sw-card > video { flex: 1; min-height: 0; width: 100%; object-fit: contain; pointer-events: none; }
.sw-card > video { pointer-events: auto; }
.sw-under { transform: scale(.95); opacity: .5; }
.sw-under img { width: 100%; height: 100%; object-fit: contain; }
.sw-meta { padding: .6rem .8rem; background: rgba(0,0,0,.7); font-size: .95rem; }
.sw-stamp { position: absolute; top: 24px; padding: .3rem .9rem; border: 4px solid; border-radius: 10px; font-weight: 800; font-size: 1.6rem; letter-spacing: .08em; opacity: 0; transition: opacity .1s; pointer-events: none; }
.sw-stamp.yes { left: 20px; color: #4caf50; transform: rotate(-12deg); }
.sw-stamp.no { right: 20px; color: #e53935; transform: rotate(12deg); }
.sw-stamp.skip { left: 50%; transform: translateX(-50%); color: #e7c98a; }
.sw-card.to-yes .sw-stamp.yes, .sw-card.to-no .sw-stamp.no, .sw-card.to-skip .sw-stamp.skip { opacity: 1; }
.sw-actions { display: flex; justify-content: center; gap: 1rem; }
.sw-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; font-size: 1.6rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.sw-btn small { font-size: .6rem; font-weight: 700; letter-spacing: .04em; }
.sw-btn.no { background: #c62828; } .sw-btn.yes { background: #2e7d32; } .sw-btn.skip { background: #5d5246; width: 56px; height: 56px; align-self: center; } .sw-btn.star { background: #B08A3E; width: 56px; height: 56px; align-self: center; }
.sw-hint { text-align: center; font-size: .75rem; opacity: .6; margin: .5rem 0 0; }
.sw-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; }
/* challenges editor, official upload, run sheet */
.ch-ed { display: grid; gap: .4rem; margin: .6rem 0; }
.ch-row { display: grid; grid-template-columns: 56px 1fr auto auto auto auto; gap: .4rem; align-items: center; }
.ch-row.off { opacity: .55; }
.ch-emoji { text-align: center; font-size: 1.2rem; padding-inline: .2rem; }
.ch-n { min-width: 2.5rem; text-align: right; }
.progress { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin: .8rem 0 .3rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--brown); transition: width .3s; }
.off-list { max-height: 160px; overflow: auto; }
.rs-rows { display: grid; gap: .4rem; margin-bottom: .6rem; }
.rs-row { display: grid; grid-template-columns: 110px 1.4fr 1fr 1fr auto; gap: .4rem; align-items: center; }
.rs-con { grid-template-columns: 1fr 1fr 1fr auto; margin-bottom: .4rem; }
.rs-tools { display: flex; }
.rs-sup { margin-bottom: .7rem; padding: .9rem; }
.rs-sup-head { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.rs-role { font-weight: 700; flex: 1; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem; margin-bottom: .4rem; }
.btn.pulse { box-shadow: 0 0 0 4px rgba(176,138,62,.35); }
@media (max-width: 640px) { .rs-row { grid-template-columns: 1fr 1fr; } .rs-row .rs-time { grid-column: 1; } .rs-row .rs-tools { grid-column: 2; justify-self: end; } .rs-con { grid-template-columns: 1fr 1fr; } .ch-row { grid-template-columns: 48px 1fr auto auto; } .ch-row .ch-n { display: none; } }
/* run sheet print */
#print-root.runsheet { font-size: 9.5pt; color: #000; }
#print-root.runsheet h1 { font-family: var(--serif); font-weight: 400; font-size: 20pt; margin: 0; }
#print-root.runsheet .rs-sub { margin: 1mm 0 4mm; color: #444; }
#print-root.runsheet h2 { font-size: 12pt; margin: 5mm 0 2mm; border-bottom: 1px solid #999; padding-bottom: 1mm; }
#print-root.runsheet table { width: 100%; border-collapse: collapse; }
#print-root.runsheet th, #print-root.runsheet td { text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding: 1.4mm 1.5mm; }
#print-root.runsheet th { font-size: 8pt; text-transform: uppercase; letter-spacing: .04em; color: #555; }
#print-root.runsheet tr { break-inside: avoid; }
#print-root.runsheet .rs-callout { border: 1.5px solid #000; border-radius: 3mm; padding: 2mm 3mm; margin: 2mm 0; }
#print-root.runsheet .rs-notes { white-space: pre-wrap; }
#print-root.runsheet .rs-printed { color: #777; font-size: 8pt; margin-top: 4mm; }

/* v2.7 gifts */
.gift-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin: .9rem 0; }
.gift-item { display: flex; align-items: flex-start; gap: .75rem; background: var(--paper); border-radius: 14px; padding: .8rem .9rem; }
.gift-item .gi-ic { font-size: 1.6rem; line-height: 1; flex: none; }
.gift-item strong { display: block; }
.gift-item span { font-size: .88rem; color: var(--muted); }
.info-gifts { text-align: center; }
.info-gifts p { margin-left: auto; margin-right: auto; max-width: 38em; }
.info-gifts .gift-item { text-align: left; }
.gift-btn { display: flex; width: fit-content; max-width: 100%; margin: 1rem auto 0; justify-content: center; text-align: center; white-space: normal; }

/* v2.7 album video previews */
.tile video.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; pointer-events: none; background: transparent; }
.tile.previewing video.preview { opacity: 1; }
.tile.previewing .play { place-items: start end; padding: 6px; }
.tile.previewing .play span { width: 26px; height: 26px; }
.tile.previewing .play svg { width: 13px; height: 13px; margin-left: 2px; }
.album-toolbar .sound-btn { white-space: nowrap; flex: none; }
.album-toolbar > .muted.small { white-space: nowrap; }
@media (max-width: 420px) { .album-toolbar { flex-wrap: wrap; } .album-toolbar select { flex: 1 1 100%; } }

.album-head { display: flex; align-items: center; gap: .8rem; justify-content: space-between; }
.album-head h1 { margin-bottom: .6rem; }

/* v2.7: one consistent look for every wedding-page section —
   headings, intro text, dates and buttons centred; text inside boxes (Q&A answers, hotels, taxis, story moments, schedule) stays left for easy reading. */
.info-sec { text-align: center; }
.info-sec > .rt p, .info-sec > p { margin-left: auto; margin-right: auto; max-width: 38em; }
.info-sec > .info-deadline { justify-content: center; }
.info-sec > .btn, .info-sec > a.btn, .info-sec > .row-wrap { margin-left: auto; margin-right: auto; }
.info-sec > a.btn.block { width: 100%; max-width: 26rem; }
.info-sec > .row-wrap { justify-content: center; }
.info-sec .faq, .info-sec .hotel, .info-sec .travel-item, .info-sec .travel-trains, .info-sec .story, .info-sec .gift-item, .info-sec .notice, .info-sec .tl-body { text-align: left; }
.info-sec .timeline { max-width: 30rem; margin-left: auto; margin-right: auto; }
.info-sec .travel-list, .info-sec .hotels, .info-sec .faq { margin-left: auto; margin-right: auto; max-width: 40rem; }

/* v2.7 viewer: arrows always available (phones too), slide in when moving between photos and videos */
.lb-nav.hidden { display: none; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-in-right { animation: lbInR .28s ease-out; }
.lb-in-left { animation: lbInL .28s ease-out; }
@keyframes lbInR { from { transform: translateX(14%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes lbInL { from { transform: translateX(-14%); opacity: .2; } to { transform: none; opacity: 1; } }
.lb-bounce-l { animation: lbBL .3s ease; } .lb-bounce-r { animation: lbBR .3s ease; }
@keyframes lbBL { 40% { transform: translateX(-24px); } } @keyframes lbBR { 40% { transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .lb-in-right, .lb-in-left, .lb-bounce-l, .lb-bounce-r { animation: none; } }

.wording-group { border-top: 1px solid var(--line); padding: .5rem 0; }
.wording-group summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.wording-group .field .input { flex: 1; min-width: 0; }

.pill.test-pill { background: #efe6fb; color: #5b3a8a; border-color: #d9c8f0; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .92rem; }
.check-row input { margin-top: .2rem; }

.guide-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* v2.8 supplier upload page */
.sup-wrap { max-width: 640px; margin: 0 auto; padding: 1rem 0 3rem; }
.sup-wrap .pick + .pick { margin-top: .7rem; }
.sup-tips { margin: .9rem 0 .4rem; padding-left: 1.1rem; }
.sup-tips li { margin: .2rem 0; }
.sup-list { display: grid; gap: .55rem; margin-top: .9rem; }
.sup-row { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.sup-name { display: flex; justify-content: space-between; gap: .6rem; font-size: .9rem; }
.sup-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sup-status { font-size: .8rem; font-weight: 600; color: var(--muted); }
.sup-row.done .progress > i, .sup-row.duplicate .progress > i { background: var(--ok); }
.sup-row.failed .progress > i { background: var(--bad); }
.sup-row.done .sup-status, .sup-row.duplicate .sup-status { color: var(--ok); }
.sup-row.failed .sup-status { color: var(--bad); }
.supplier-row { padding: .8rem 0; border-top: 1px solid var(--line); }
.supplier-row .link-box { font-size: .82rem; word-break: break-all; background: var(--paper); border-radius: 8px; padding: .45rem .6rem; margin: .4rem 0; }
.pick.sup-folder { min-height: 70px; border-style: solid; border-width: 1.5px; border-color: var(--line); background: var(--card); }

/* v2.9 possible duplicates */
.dup-box { display: grid; grid-template-columns: 46px 1fr; gap: .5rem; align-items: center; margin-top: .45rem; padding: .4rem; border-radius: 10px; background: var(--paper); font-size: .78rem; line-height: 1.3; }
.dup-box img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; }
.dup-box .muted { font-size: .74rem; }
.acard .qa.dup-qa { grid-template-columns: 1fr 1fr; }
.acard .qa.dup-qa button:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
.acard .qa.dup-qa button { font-size: .78rem; padding: 0 .3rem; border-top: 1px solid var(--line); margin-top: -1px; }
.sup-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sup-notdup { font-size: .8rem; font-weight: 700; color: var(--brown); text-decoration: underline; background: none; border: 0; padding: .2rem 0; cursor: pointer; }
.sup-flagged { display: grid; gap: .8rem; margin-top: .6rem; }
.sup-flag { border-top: 1px solid var(--line); padding-top: .7rem; }
.sup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sup-pair figure { margin: 0; }
.sup-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--paper); display: block; }
.sup-pair figcaption { font-size: .75rem; color: var(--muted); margin-top: .2rem; text-align: center; }
.sup-flag-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .5rem; }
.sup-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
button.dup-box { width: 100%; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; font-size: .78rem; }
button.dup-box:hover { background: #e9e6dc; }
.sheet.sheet-wide { max-width: 980px; width: 100%; }
.cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .6rem 0 1rem; }
@media (max-width: 640px) { .cmp-pair { grid-template-columns: 1fr; } }
.cmp-side { margin: 0; }
.cmp-img { background: #1d1b18; border-radius: 12px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.cmp-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (max-width: 640px) { .cmp-img { aspect-ratio: auto; max-height: 34vh; } .cmp-img img { max-height: 34vh; } }
.cmp-side figcaption { margin-top: .4rem; }
.cmp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem; }
.sup-match { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; align-items: center; margin-top: .3rem; padding: .4rem; border-radius: 10px; background: var(--paper); }
.sup-match img, .sup-match-ph { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--card); }

/* v3.0 privacy notice */
.privacy-foot { text-align: center; margin: 1.6rem 0 .4rem; font-size: .88rem; }
.privacy-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.privacy-page { max-width: 720px; margin: 0 auto; padding-bottom: 3rem; }
.privacy-body h2 { font-size: 1.15rem; margin: 1.3rem 0 .4rem; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body ul { padding-left: 1.2rem; margin: .3rem 0 .8rem; }
.privacy-body li { margin: .3rem 0; }
.privacy-body a { color: var(--brown); }

/* v3.0 live announcements */
.ann-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem calc(.7rem); padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); background: var(--brown); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.18); animation: ann-in .35s ease-out; }
.ann-emoji { font-size: 1.3rem; }
.ann-text { flex: 1; line-height: 1.35; }
.ann-x { background: rgba(255,255,255,.18); color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; flex: none; }
@keyframes ann-in { from { transform: translateY(-100%); } to { transform: none; } }
.updates-card { padding: .9rem 1rem; }
.updates-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.updates-row p { margin: .2rem 0 0; }
.updates-card .btn { flex: none; }
.ann-live { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; background: #eef3e8; margin: .4rem 0 .9rem; }
.ann-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.ann-presets .chip { font-size: .8rem; }
.ann-compose { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; }
.ann-emoji-in { text-align: center; font-size: 1.4rem; padding: .3rem; }
.ann-opts { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.2rem; margin: .7rem 0 .9rem; }
.ann-opts select { min-width: 11rem; }
.ann-history { margin-top: 1rem; }
.ann-history summary { cursor: pointer; font-weight: 700; }
.ann-hrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--line); }

/* v3.0 video & voice guestbook */
body.gb-open { overflow: hidden; }
.gb-rec { position: fixed; inset: 0; z-index: 300; background: #15120d; color: #fff; display: flex; flex-direction: column; overflow-y: auto; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); animation: fade .2s; }
.gb-rec .muted, .gb-rec .small.muted { color: rgba(255,255,255,.65); }
.gb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer; }
.gb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.gb-choose, .gb-review, .gb-wait { width: 100%; max-width: 520px; text-align: center; }
.gb-choose h2, .gb-review h2 { color: #fff; margin: .3rem 0 .5rem; }
.gb-choose p { color: rgba(255,255,255,.85); }
.gb-emoji { font-size: 3.2rem; }
.gb-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.4rem 0; }
.gb-choice { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.3rem .8rem; border-radius: 18px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font: inherit; }
.gb-choice span { font-size: 2.4rem; }
.gb-choice small { color: rgba(255,255,255,.6); }
.gb-choice:hover, .gb-choice:focus-visible { background: rgba(255,255,255,.12); border-color: #e7c98a; }
.gb-fine { color: rgba(255,255,255,.6) !important; }
.gb-fine .privacy-link { color: rgba(255,255,255,.75); }
.gb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.gb-rec .btn.secondary, .gb-rec .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.gb-recorder { position: relative; width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gb-live { width: 100%; max-height: 62vh; border-radius: 18px; background: #000; transform: scaleX(-1); object-fit: cover; aspect-ratio: 3 / 4; }
@media (min-aspect-ratio: 1/1) { .gb-live { aspect-ratio: 16 / 9; } }
.gb-voice { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 0 1rem; width: 100%; }
.gb-mic { font-size: 4rem; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.gb-rec.recording .gb-mic { animation: gb-pulse 1.4s infinite; background: rgba(192,57,43,.25); }
@keyframes gb-pulse { 50% { transform: scale(1.07); } }
.gb-meter { width: min(100%, 420px); height: 110px; }
.gb-count { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); font-size: 7rem; font-weight: 800; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.gb-controls { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 100%; max-width: 420px; }
.gb-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.gb-prog { width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; }
.gb-prog i { display: block; height: 100%; width: 0; background: #c0392b; transition: width .25s linear; }
.gb-recbtn { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gb-recbtn span { width: 56px; height: 56px; border-radius: 50%; background: #e0443a; transition: all .2s; }
.gb-recbtn.on span { width: 30px; height: 30px; border-radius: 7px; }
.gb-hint { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; }
.gb-playback { width: 100%; max-height: 52vh; border-radius: 16px; background: #000; }
.gb-playback-a { width: 100%; margin: 1.2rem 0 .4rem; }
.gb-review .check-row { justify-content: center; color: #fff; text-align: left; margin: .4rem 0 .8rem; }
.gb-review textarea { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.gb-review .progress { margin-top: .8rem; background: rgba(255,255,255,.15); }
.gb-card { padding: .9rem 1rem; }
.gb-card-row { display: flex; gap: .8rem; align-items: center; }
.gb-card-row p { margin: .15rem 0 0; }
.gb-card-emoji { font-size: 2rem; }
.gb-card-btns { display: flex; gap: .5rem; margin-top: .7rem; }
.gb-card-btns .btn { flex: 1; }
.gb-item { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .8rem; padding: .8rem; }
.gb-item video { width: 100%; max-height: 360px; border-radius: 12px; background: #000; }
.gb-item audio { width: 100%; }
.gb-item-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.gb-item-meta p { margin: 0; }
/* admin guestbook */
.gba-list { display: grid; gap: .9rem; margin-top: .8rem; align-items: start; }
@media (min-width: 900px) { .gba-list { grid-template-columns: 1fr 1fr; } }
.gba-item { display: grid; gap: .7rem; padding: .9rem; }
.gba-item.new { box-shadow: 0 0 0 2px var(--ok), var(--shadow); }
.gba-media video { width: 100%; max-height: 380px; border-radius: 12px; background: #000; display: block; }
.gba-audio { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 12px; background: var(--paper); }
.gba-audio-ic { font-size: 1.8rem; }
.gba-audio audio { flex: 1; min-width: 0; }
.gba-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.gba-fav { font-size: 1.5rem; color: var(--muted); background: none; border: 0; cursor: pointer; line-height: 1; }
.gba-fav.on { color: #c99a2e; }
.gba-note { margin: .4rem 0; font-style: italic; }
.gba-body .row-wrap { margin-top: .4rem; }
.gba-setting { margin: .5rem 0 0; padding: .55rem 0; }
.gba-settings { margin-bottom: .9rem; padding: .8rem 1rem; }
.gba-settings summary { cursor: pointer; }
.gba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }

/* v3.1 help requests (guest) */
.help-link { text-align: center; margin: 1.2rem 0 .4rem; }
.help-strip { position: sticky; top: 0; z-index: 55; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #fdf1e3; border-bottom: 1px solid #ecd2ad; }
.help-strip.claimed { background: #eaf3e4; border-color: #cfe2c1; }
.help-strip.done { background: #eef3ea; }
.help-strip-ic { font-size: 1.4rem; }
.help-strip-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: .9rem; }
.help-strip-x { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; text-decoration: underline; }
.help-who { background: var(--card); border-radius: 14px; padding: .8rem; margin: .6rem 0 .4rem; }
.help-who-row { display: flex; align-items: center; gap: .7rem; }
.help-who-row > div { display: flex; flex-direction: column; }
.help-who-row b { font-size: 1.1rem; }
.help-who-btns { display: flex; gap: .5rem; margin-top: .6rem; }
.help-who-btns .btn.on { background: var(--brown); color: #fff; border-color: var(--brown); }
.help-topics { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.help-topic { display: flex; align-items: center; gap: .45rem; text-align: left; padding: .6rem .7rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: .88rem; cursor: pointer; color: inherit; }
.help-topic span { font-size: 1.15rem; }
.help-topic.on { border-color: var(--brown); background: #f6efe3; font-weight: 700; }
.help-sheet .field { margin-top: .8rem; }
.help-cant { text-align: center; margin: .6rem 0 0; }
.help-cant .linkish { background: none; border: 0; color: var(--brown); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; }
/* help requests (admin) */
.help-banner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .9rem; margin: .6rem 0; border-radius: 12px; background: #b3412f; color: #fff; font-weight: 700; animation: ann-in .3s ease-out; }
.help-banner .btn { background: #fff; color: #b3412f; border-color: #fff; }
.help-list { display: grid; gap: .8rem; }
.help-card { padding: .9rem 1rem; }
.help-card.open { box-shadow: 0 0 0 2px #d9826f, var(--shadow); }
.help-card.done, .help-card.cancelled { opacity: .75; }
.help-card-head { display: flex; gap: .7rem; align-items: flex-start; }
.help-card-ic { font-size: 1.7rem; line-height: 1; }
.help-card-name { font-size: 1.08rem; }
.help-card-topic { margin: .55rem 0 .15rem; font-weight: 700; }
.help-card-msg { margin: .2rem 0; font-style: italic; }
.help-card-where { margin: .35rem 0 .2rem; }
.help-card .row-wrap { margin-top: .5rem; }
.help-recent { margin-top: 1.2rem; }
.help-recent summary { cursor: pointer; font-weight: 700; margin-bottom: .6rem; }
.help-recent .help-card { margin-top: .6rem; }
/* elements toggled with the hidden attribute must stay hidden even when they have a display rule */
.help-banner[hidden], .help-sheet [hidden], .help-link[hidden], .help-cant[hidden], .gb-card[hidden], .help-strip[hidden], .updates-card[hidden] { display: none !important; }
/* buttons inside boxed wedding-page cards sit in the middle (text stays left-aligned) */
.info-sec .hotel > .btn, .info-sec .travel-trains .btn { display: flex; width: fit-content; margin: .6rem auto 0; }
/* hotel cards: everything centred, with a thin rule between the address and the details */
.info-sec .hotel { text-align: center; }
.info-sec .hotel h3 { margin-bottom: .25rem; }
.info-sec .hotel > p.small { margin: 0 auto .2rem; max-width: 26rem; }
.info-sec .hotel .rt { max-width: 32rem; margin: .7rem auto .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.info-sec .travel-trains { text-align: center; }

/* ---------- v3.2 subtitle editor ---------- */
.subs-ed { max-width: 760px; margin: 0 auto; }
.subs-ed-player { position: relative; background: #000; border-radius: 12px; overflow: hidden; margin: .4rem 0 .6rem; }
.subs-ed-v { display: block; width: 100%; max-height: 42vh; background: #000; }
.subs-ed-live { position: absolute; left: 0; right: 0; bottom: 3.4rem; text-align: center; pointer-events: none; opacity: 0; transition: opacity .15s; padding: 0 1rem; }
.subs-ed-live.on { opacity: 1; }
.subs-ed-live span { background: rgba(0,0,0,.75); color: #fff; padding: .1em .45em; border-radius: .2em; font-weight: 600; font-size: clamp(14px, 3.4vw, 22px); line-height: 1.5; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.subs-ed-list { display: grid; gap: .35rem; max-height: 38vh; overflow: auto; padding-right: .2rem; }
.subs-ed-row { display: grid; grid-template-columns: auto 5.2rem 1fr auto; gap: .4rem; align-items: start; padding: .25rem; border-radius: 10px; }
.subs-ed-row.now { background: color-mix(in srgb, var(--accent, #B08A3E) 14%, transparent); }
.subs-ed-t { font-variant-numeric: tabular-nums; padding-left: .5rem; padding-right: .3rem; text-align: center; }
.subs-ed-x { resize: vertical; min-height: 2.6rem; }
@media (max-width: 520px) { .subs-ed-row { grid-template-columns: auto 4.6rem 1fr auto; gap: .3rem; } }
.subs-ed-x.input { min-height: 2.6rem; height: auto; field-sizing: content; }

/* ---------- v3.3 invitations ---------- */
.inv-frame { width: 100%; height: min(78vh, 760px); border: 1px solid var(--line); border-radius: 12px; margin-top: .8rem; background: #eee; }
.inv-list { display: grid; gap: .1rem; max-height: 60vh; overflow: auto; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.inv-party { display: flex; flex-direction: column; min-width: 0; }
.inv-party b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-dls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.inv-dl { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; height: auto; padding: .7rem 1rem; text-align: left; }
.inv-row .input { width: 100%; min-width: 0; }
.inv-dl { border-radius: 14px; }
@media (max-width: 640px) { .inv-row { grid-template-columns: 1fr auto; } .inv-row .input { grid-column: 1 / -1; grid-row: 2; } }
