:root {
  --deco-garland: url("decor/toscana-garland.svg");
  --deco-corner: url("decor/toscana-corner.svg");
  --deco-flower: url("decor/toscana-flower.svg");
  --bg: #e7eddc;
  --surface: #f8faf2;
  --surface-2: #dce6cd;
  --text: #2a3324;
  --muted: #69735d;
  --border: #cbd7bb;
  --accent: #3b6a35;
  --accent-strong: #2b5126;
  --accent-soft: #d6e5cb;
  --olive: #4d7a3f;
  --olive-soft: #d9e7cf;
  --rose: #c4718a;
  --rose-soft: #f7e4e9;
  --gold: #ad8d45;
  --gold-soft: #f4ecd6;
  --danger: #a83a2c;
  --danger-soft: #f6dad3;
  --hero-top: #f3e3c9;
  --hero-bottom: #c9d9b4;
  --shadow: 0 1px 2px rgba(80, 50, 20, .06), 0 6px 18px rgba(80, 50, 20, .07);
  --radius: 10px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121811;
    --surface: #192118;
    --surface-2: #222c20;
    --text: #f1f0e6;
    --muted: #a7ad9a;
    --border: #30402c;
    --accent: #9fcb8f;
    --accent-strong: #bfe0b0;
    --accent-soft: #243421;
    --olive: #a9cf98;
    --olive-soft: #26331f;
    --rose: #e7a5b6;
    --rose-soft: #3a2830;
    --gold: #e0b25e;
    --gold-soft: #3f3220;
    --danger: #ef8a7a;
    --danger-soft: #4a2420;
    --hero-top: #3b2a22;
    --hero-bottom: #55352a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
    --bg: #121811;
    --surface: #192118;
    --surface-2: #222c20;
    --text: #f1f0e6;
    --muted: #a7ad9a;
    --border: #30402c;
    --accent: #9fcb8f;
    --accent-strong: #bfe0b0;
    --accent-soft: #243421;
    --olive: #a9cf98;
    --olive-soft: #26331f;
    --rose: #e7a5b6;
    --rose-soft: #3a2830;
    --gold: #e0b25e;
    --gold-soft: #3f3220;
    --danger: #ef8a7a;
    --danger-soft: #4a2420;
    --hero-top: #3b2a22;
    --hero-bottom: #55352a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse at top left, rgba(255, 250, 230, .5), transparent 55%), radial-gradient(ellipse at bottom right, rgba(160, 190, 140, .14), transparent 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .01em; }
h1 { font-size: 38px; line-height: 1.1; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 2px; }
a { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; color: inherit; }

.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.brand img { width: 30px; height: 30px; }
.brand-names { font-family: var(--serif); font-size: 23px; font-style: italic; font-weight: 600; line-height: 1.15; }
.brand-date { font-size: 12px; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none;
}
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nav .ico { width: 18px; text-align: center; opacity: .8; }
.sidebar-foot { margin-top: 0; padding: 12px 8px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.sidebar-foot button { background: none; border: 0; padding: 0; color: var(--accent-strong); cursor: pointer; text-decoration: underline; }

main { padding: 32px 40px 64px; max-width: 1240px; width: 100%; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface);
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  font-weight: 500; text-decoration: none; color: var(--text);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2; margin-top: 4px; }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.hero {
  position: relative; overflow: hidden; background: var(--hero-bottom); min-height: 300px; align-items: flex-start;
  border-radius: var(--radius); padding: 36px 36px 150px; margin-bottom: 24px; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.hero .count { font-family: var(--serif); font-weight: 600; font-size: 64px; line-height: 1; }
.hero .count small { font-size: 18px; color: var(--muted); margin-left: 6px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input[type=search] { flex: 1 1 220px; max-width: 340px; }
input, select, textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.toolbar select, .toolbar input { width: auto; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 600; border-top: 1px solid var(--border); border-bottom: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.green { background: var(--olive-soft); color: var(--olive); }
.pill.rose { background: var(--rose-soft); color: var(--rose); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--olive); border-radius: 99px; }
.progress.over > span { background: var(--danger); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }

dialog {
  border: 1px solid var(--border); border-radius: 16px; padding: 0;
  background: var(--surface); color: var(--text);
  width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
dialog::backdrop { background: rgba(30, 28, 25, .45); }
dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dialog-head { padding: 20px 24px 8px; }
.dialog-body { padding: 8px 24px 16px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dialog-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.dialog-foot .spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 8px; padding-top: 22px; }
.field.check label { font-weight: 500; color: var(--text); font-size: 14px; }

.timeline-day { margin-bottom: 28px; }
.timeline-day h3 { margin-bottom: 12px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.tl-item:hover { border-color: var(--accent); }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-strong); }

.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.task:last-child { border-bottom: 0; }
.task .task-main { flex: 1; cursor: pointer; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.task-group { margin-bottom: 20px; }
.task-group h3 { margin: 0 0 10px; }
.task-group .card { padding: 0; }

.seating { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.seating .pool { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.seat-table { min-height: 180px; display: flex; flex-direction: column; }
.seat-table .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.seat-table .head h3 { cursor: pointer; }
.dropzone { flex: 1; border-radius: 8px; padding: 4px; min-height: 60px; transition: background .15s; }
.dropzone.over { background: var(--accent-soft); }
.chip {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px;
  cursor: grab; font-size: 14px; user-select: none;
}
.chip:active { cursor: grabbing; }
.chip .x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 2px; font-size: 16px; line-height: 1; }
.chip select { width: auto; padding: 2px 4px; font-size: 12px; }
.seat-count.full { color: var(--danger); font-weight: 600; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px;
  font-size: 14px; z-index: 50; box-shadow: var(--shadow);
}

.login-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; background: var(--hero-bottom); }
.login-page > .scene { position: fixed; }
.login-card { position: relative; z-index: 1; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); }
.login-card h1 { font-style: italic; }
.login-card { width: min(380px, 100%); background: var(--surface); border-radius: 18px; padding: 36px 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); text-align: center; }
.login-card img { width: 52px; height: 52px; margin-bottom: 10px; }
.login-card p { color: var(--muted); margin: 6px 0 24px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-card .error { color: var(--danger); font-size: 14px; min-height: 20px; }
.login-card .btn { justify-content: center; padding: 10px; }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .grid.stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .value { font-size: 24px; }
  .card { padding: 16px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  .menu-toggle { display: inline-flex; position: fixed; top: 12px; left: 12px; z-index: 30; }
  main { padding: 64px 16px 48px; }
  .seating { grid-template-columns: 1fr; }
  .seating .pool { position: static; max-height: none; }
  .dialog-body { grid-template-columns: 1fr; }
  .hero .count { font-size: 44px; }
  .tl-item { grid-template-columns: 80px 1fr; }
}

@media print {
  .sidebar, .menu-toggle, .actions, .toolbar { display: none !important; }
  .layout { display: block; }
  main { padding: 0; }
  .card, .table-wrap { box-shadow: none; }
}

.hero h1 { font-style: italic; font-size: 44px; }
.sidebar { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
@media (max-width: 860px) { .hero { padding: 24px 20px 90px; } .hero h1 { font-size: 34px; } }

.seating { grid-template-columns: 260px minmax(0, 1fr); }
.selection { background: var(--gold-soft); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.selection p { margin: 6px 0 8px; }
.people { margin-top: 10px; }
.chip { cursor: pointer; }
.chip.selected { background: var(--gold-soft); outline: 2px solid var(--gold); }
#pool-search { margin-top: 6px; }
.floor-wrap { padding: 12px; overflow-x: auto; }
.floor-hint { margin: 0 4px 8px; }
.floor { min-width: 600px; }
.floor-svg { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
.floor-bg { fill: var(--surface-2); stroke: var(--border); stroke-width: 2; }
.tbl-top { fill: var(--surface); stroke: var(--accent); stroke-width: 2; cursor: grab; }
.tbl.dragging .tbl-top { cursor: grabbing; stroke-dasharray: 5 4; }
.tbl.dragging { opacity: .85; }
.tbl-name { font-family: var(--serif); font-weight: 600; font-size: 16px; text-anchor: middle; fill: var(--text); pointer-events: none; }
.tbl-count { font-size: 11px; text-anchor: middle; fill: var(--muted); pointer-events: none; }
.seat { cursor: pointer; }
.seat circle { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.seat text { font-size: 12px; font-weight: 600; text-anchor: middle; fill: var(--muted); pointer-events: none; }
.seat.taken circle { fill: var(--accent-soft); stroke: var(--accent); stroke-dasharray: none; }
.seat.taken text { fill: var(--accent-strong); }
.seat.target circle { stroke: var(--gold); }
.seat.selected circle, .seat.over circle { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 3; stroke-dasharray: none; }
.seat:hover circle { stroke-width: 2.5; }
.seat-lists { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.seat-lists .card { padding: 14px 16px; }
.seat-lists .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.seat-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.seat-list li { padding: 3px 0; border-bottom: 1px dashed var(--border); }
.seat-list li:last-child { border-bottom: 0; }
.seat-list li .muted { display: inline-block; width: 22px; }
@media (max-width: 1180px) { .seating { grid-template-columns: minmax(0, 1fr); } .seating .pool { position: static; max-height: 340px; } }
@media print { .seating { display: block; } .pool, .floor-hint { display: none; } .floor { min-width: 0; } }

.feat { cursor: grab; }
.feat.dragging { cursor: grabbing; opacity: .85; }
.feat-body { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.feat-hit { fill: transparent; }
.feat-icon { font-size: 18px; text-anchor: middle; pointer-events: none; }
.feat-label { font-size: 12px; font-weight: 600; text-anchor: middle; fill: var(--text); pointer-events: none; }
.feat-dance .feat-body { fill: color-mix(in srgb, var(--gold) 22%, var(--surface)); stroke: var(--gold); }
.feat-stage .feat-body { fill: color-mix(in srgb, var(--text) 14%, var(--surface)); stroke: var(--text); }
.feat-bar .feat-body, .feat-buffet .feat-body, .feat-candy .feat-body { fill: color-mix(in srgb, #8a5a35 30%, var(--surface)); stroke: #8a5a35; }
.feat-cocktail .feat-body, .feat-cake .feat-body, .feat-gifts .feat-body { fill: var(--surface); stroke: var(--accent); }
.feat-smoking .feat-body { fill: color-mix(in srgb, var(--muted) 12%, transparent); stroke: var(--muted); stroke-dasharray: 6 5; }
.feat-lounge .feat-body, .feat-photo .feat-body { fill: var(--rose-soft); stroke: var(--rose); }
.feat-plant .feat-body { fill: var(--olive-soft); stroke: var(--olive); }
.feat-entrance .feat-body { fill: var(--accent); stroke: var(--accent-strong); }
.feat-arch-line { fill: none; stroke: var(--olive); stroke-width: 5; stroke-linecap: round; }
.flower { fill: #f3c3c8; stroke: #c98b8b; stroke-width: 1; }
.flower.alt { fill: #fffaf0; stroke: #d9b36a; }

.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene svg { width: 100%; height: 100%; display: block; }
.hero > :not(.scene) { position: relative; z-index: 1; }
.hero h1, .hero .count, .hero .muted, .hero .count small { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .18); }
.hero .muted { opacity: .92; }
.hero .phase { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 12px; color: #fff; opacity: .85; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); letter-spacing: .04em; }
.side-scene { position: relative; height: 96px; border-radius: 10px; overflow: hidden; margin: 12px 4px 8px; box-shadow: var(--shadow); }
.side-scene .scene-label { position: absolute; left: 10px; top: 8px; z-index: 1; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); letter-spacing: .04em; }
.sidebar-foot { margin-top: 0; }
@media (max-width: 860px) { .hero { padding: 24px 20px 120px; min-height: 240px; } }

#upload-album { width: 160px; }
.albums { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.album-chip { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.album-chip span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.album-chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.album-chip.active span { color: rgba(255, 255, 255, .8); }
.gallery-drop { padding: 0; min-height: 200px; border-radius: var(--radius); }
.gallery-drop.over { outline: 3px dashed var(--accent); outline-offset: 4px; }
.gallery { columns: 4 220px; column-gap: 12px; }
.photo { position: relative; margin: 0 0 12px; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); box-shadow: var(--shadow); }
.photo img { display: block; width: 100%; height: auto; transition: transform .3s; }
.photo:hover img { transform: scale(1.03); }
.photo figcaption { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.photo .fav { position: absolute; top: 8px; right: 10px; color: #fff; font-size: 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
#lightbox { width: min(1200px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #111; color: #fff; border: 0; padding: 0; overflow: hidden; }
#lightbox::backdrop { background: rgba(10, 8, 6, .85); }
.lb-stage { position: relative; display: grid; place-items: center; background: #111; height: min(78vh, 900px); }
.lb-stage { overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: min(78vh, 900px); object-fit: contain; }
.lb-nav, .lb-close { position: absolute; background: rgba(0, 0, 0, .45); color: #fff; border: 0; border-radius: 99px; width: 44px; height: 44px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-close { top: 12px; right: 12px; }
.lb-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); color: var(--text); }
.lb-info input[name=caption] { flex: 1 1 220px; }
.lb-info input[name=album] { width: 170px; }
.lb-meta { margin-left: auto; }
@media (max-width: 860px) { .gallery { columns: 2 140px; column-gap: 8px; } .photo { margin-bottom: 8px; } .lb-stage { height: 60vh; } .lb-stage img { max-height: 60vh; } #upload-album { width: 120px; } }
#lightbox form.lb-info { flex-direction: row; max-height: none; }
.lb-info input { width: auto; }

.scene canvas { width: 100%; height: 100%; display: block; }

.rsvp-body { min-height: 100vh; }
.rsvp-hero { position: relative; height: 46vh; min-height: 280px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.rsvp-hero-text { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 0, 0, .25); padding: 0 16px; }
.rsvp-kicker { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; opacity: .9; }
.rsvp-hero h1 { font-style: italic; font-size: clamp(40px, 8vw, 72px); margin: 8px 0; }
.rsvp-when { font-size: 16px; opacity: .95; }
.rsvp-main { max-width: 620px; margin: -48px auto 64px; padding: 0 16px; position: relative; z-index: 2; }
.rsvp-card { padding: 28px; }
.rsvp-card h2 { margin-bottom: 8px; }
.rsvp-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.rsvp-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 14px 0; margin: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rsvp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rsvp-choice input { position: absolute; opacity: 0; }
.rsvp-choice span { display: block; text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.rsvp-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.rsvp-choice input:focus-visible + span { outline: 2px solid var(--gold); }
.rsvp-more { display: flex; flex-direction: column; gap: 14px; }
.rsvp-thanks { background: var(--olive-soft); color: var(--olive); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.rsvp-card .error { color: var(--danger); min-height: 1em; font-size: 14px; }
.invite-list { list-style: none; margin: 0; padding: 0; }
.invite-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.invite-list .who { flex: 1 1 180px; }
.invite-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.invite-actions .btn[aria-disabled=true] { opacity: .35; pointer-events: none; }
.dialog-body.single { grid-template-columns: 1fr; }
#f_invite_message { min-height: 200px; }

.sidebar { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, var(--surface), var(--surface-2)); }
.card, .table-wrap { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stat .label, .field label, table.data th { letter-spacing: .06em; }
.photo .fav, .pill.rose { color: var(--rose); }
.photo .fav { color: #fff; text-shadow: 0 0 6px var(--rose); }
.page-head h1::after { width: 96px; height: 20px; margin-top: 4px; border-radius: 0; background: var(--deco-flower) 0 50% / 20px no-repeat, linear-gradient(90deg, var(--accent), transparent) 26px 50% / 70px 1.5px no-repeat; }

.list li { align-items: center; }
.list li .pill { align-self: center; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-accent: #1b2014; } }
:root[data-theme="dark"] { --on-accent: #1b2014; }

.hero { padding-top: 64px; }
.hero::after, .rsvp-hero::after { content: ""; position: absolute; inset: -4px 0 auto 0; height: 96px; z-index: 1; pointer-events: none; background: var(--deco-garland) top center / 1000px auto repeat-x; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .15)); }
.sidebar { position: sticky; overflow: hidden; }
.sidebar::before { content: ""; position: absolute; bottom: 170px; right: -34px; width: 130px; height: 140px; background: var(--deco-corner) top right / contain no-repeat; transform: scaleX(-1) rotate(-20deg); opacity: .9; pointer-events: none; }
.brand { position: relative; z-index: 1; }
.login-card, .rsvp-card { position: relative; overflow: visible; }
.login-card::before, .rsvp-card::before { content: ""; position: absolute; top: -46px; left: -44px; width: 170px; height: 180px; background: var(--deco-corner) top left / contain no-repeat; pointer-events: none; z-index: 2; }
.rsvp-card::after { content: ""; position: absolute; bottom: -40px; right: -36px; width: 140px; height: 150px; background: var(--deco-corner) top left / contain no-repeat; transform: rotate(180deg); pointer-events: none; }
.list li::before { content: ""; flex: 0 0 12px; height: 12px; margin-top: 4px; background: var(--deco-flower) center / contain no-repeat; opacity: .8; }
.list li > span:first-of-type { flex: 1; }
@media (max-width: 860px) { .sidebar::before { width: 110px; height: 120px; } .login-card::before, .rsvp-card::before { width: 120px; height: 130px; top: -36px; left: -20px; } .rsvp-card::after { display: none; } }

.gp-card { display: flex; flex-direction: column; gap: 10px; }
.gp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gp-duties li { padding: 6px 0; }
#nav a[hidden] { display: none; }

.subnav { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.subnav a { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.subnav:empty { display: none; }
.info-card { margin-top: 18px; padding: 24px 28px; }
.info-card h2 { margin-bottom: 10px; }
.info-card p { margin: 0; line-height: 1.6; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.schedule li:last-child { border-bottom: 0; }
.schedule .when { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-strong); }
.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 14px; }
.venue .actions { margin-top: 8px; }
.rsvp-main { scroll-behavior: smooth; }

.rsvp-pending { background: var(--gold-soft); color: var(--gold); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.rsvp-answer { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; margin: 6px 0 12px; }
.rsvp-answer p { margin: 8px 0; }

.notice { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.rsvp-card form[hidden] { display: none; }

.seat-list li { display: flex; align-items: center; gap: 4px; }
.seat-x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; opacity: .45; }
.seat-list li:hover .seat-x { opacity: 1; color: var(--danger); }
.add-seat { margin-top: 8px; }
.seat-lists .head .btn { margin-left: 4px; }

.scene .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: opacity 1.5s; }
.scene .ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .36), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .12)); }
.side-scene .scene .ph { object-position: center 70%; }

h1, h2, h3 { color: var(--accent-strong); }
.hero h1, .rsvp-hero h1 { color: #fff; }
.sidebar { border-right-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.nav a.active { background: var(--accent); color: var(--on-accent, #fff); }
.nav a:hover:not(.active) { background: var(--accent-soft); }
.card { border-color: color-mix(in srgb, var(--accent) 14%, var(--border)); }
.stat .value { color: var(--accent-strong); }
.scene .ph { filter: saturate(1.08); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.theme-card { position: relative; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-card .thumb { position: relative; height: 110px; background-size: cover; background-position: center 60%; }
.theme-card .thumb .garl { position: absolute; inset: -2px 0 auto 0; height: 46px; background-size: 520px auto; background-repeat: repeat-x; background-position: top center; }
.theme-card .meta { padding: 10px 12px 12px; }
.theme-card .tname { font-size: 20px; font-weight: 600; }
.theme-card .swatches { display: flex; gap: 4px; margin-top: 8px; }
.theme-card .swatches span { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.theme-card .badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: var(--on-accent, #fff); font-size: 11px; padding: 2px 8px; border-radius: 99px; }

@media (max-width: 860px) {
  .sidebar { position: fixed; overflow-y: auto; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .menu-toggle { box-shadow: var(--shadow); }
}

.section-toggle { margin-top: 10px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); cursor: pointer; }
.section-toggle + .field textarea:disabled { opacity: .5; }

.lang-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.preset { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; }
.preset:hover { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { border: 1px dashed var(--border); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; cursor: pointer; color: var(--text); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 12px; cursor: pointer; font: inherit; color: var(--text); }
.seg button.on { background: var(--accent); color: var(--on-accent, #fff); }
.preview { border-radius: 12px; padding: 16px; min-height: 260px; }
.preview-whatsapp { background: #e5ddd5; }
.preview-sms { background: #f2f2f7; }
.preview-email { background: var(--surface-2); }
.bubble { position: relative; max-width: 88%; margin-left: auto; background: #dcf8c6; color: #111; border-radius: 10px 10px 2px 10px; padding: 8px 10px 18px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); word-break: break-word; }
.preview-sms .bubble { background: #0a84ff; color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble .time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; opacity: .6; }
.mail { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; color: var(--text); }
.mail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mail-body { padding: 14px; font-size: 14px; line-height: 1.6; word-break: break-word; }

.ui-lang { display: inline-flex; gap: 4px; margin-top: 8px; }
.ui-lang button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; text-decoration: none; }
.ui-lang button.on { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }

.venue-search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); max-height: 280px; overflow-y: auto; }
.sug-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; color: inherit; cursor: pointer; }
.sug-item:hover { background: var(--accent-soft); }
.sug-item:last-child { border-bottom: 0; }
.venue-addr { margin-top: 4px; }
.map-wrap { margin-top: 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); height: 200px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open { margin-top: 8px; align-self: flex-start; }

.welcome { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20, 22, 18, .35); backdrop-filter: blur(3px); overflow: hidden; animation: wfade .35s ease; cursor: pointer; }
.welcome.out { opacity: 0; transition: opacity .35s; }
.welcome-card { position: relative; z-index: 2; width: min(420px, calc(100vw - 32px)); background: var(--surface); border-radius: 18px; padding: 30px 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: wpop .5s cubic-bezier(.2, 1.4, .4, 1); }
.welcome-ico { width: 64px; height: 64px; margin: -6px auto 6px; background: var(--deco-flower) center / contain no-repeat; }
.welcome-card h2 { font-size: 30px; margin-bottom: 10px; }
.welcome-line { margin: 6px 0; font-weight: 600; }
.welcome-cheer { margin: 14px 0 18px; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 19px; }
.petal { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 60% 0 60% 0; opacity: .9; z-index: 1; animation-name: petal; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes petal { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); opacity: .2; } }
@keyframes wpop { from { transform: scale(.85) translateY(10px); opacity: 0; } }
@keyframes wfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .petal { display: none; } .welcome-card { animation: none; } }

.hero .count-date { position: relative; color: #fff; text-align: right; font-size: 14px; margin-top: 6px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
#saving { position: fixed; top: 12px; right: 12px; z-index: 90; background: var(--accent); color: var(--on-accent, #fff); padding: 5px 12px; border-radius: 99px; font-size: 13px; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; pointer-events: none; }
#saving.on { opacity: 1; transform: none; }

#mapdlg { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); overflow: hidden; }
#mapdlg::backdrop { background: rgba(0, 0, 0, .45); }
.mp-head { padding: 16px 18px 8px; }
.mp-head h2 { margin-bottom: 10px; }
.mp-head p { margin: 6px 0 0; }
#mp-map { height: min(52vh, 460px); }
.mp-foot { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }
.mp-sel { flex: 1; min-width: 0; }
.mp-sel .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venue-actions { margin-top: 8px; }
.leaflet-container { font: inherit; }

.couple-card { margin-bottom: 16px; }
.photo-slots { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.pslot { position: relative; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.pslot img, .pslot .plus { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--surface-2); }
.pslot .plus { display: grid; place-items: center; font-size: 28px; color: var(--muted); border-style: dashed; }
.pslot:hover .plus, .pslot:hover img { border-color: var(--accent); }
.pslot.has img { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); }
.pslot-label { font-size: 12px; text-align: center; color: var(--muted); line-height: 1.2; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslot-x { position: absolute; top: -2px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--surface); color: var(--danger); box-shadow: var(--shadow); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; }
.pslot:hover .pslot-x { opacity: 1; }
@media (hover: none) { .pslot-x { opacity: 1; } }

.scene .ph-night { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; transition: opacity 1s; }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 16px; }
.venue-card h2 { margin-bottom: 6px; }
.venue-card .dialog-body { padding: 8px 0 0; }
.vphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.vphoto { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.vphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vphoto .vp-btns { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.vphoto .vp-btns button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 13px; line-height: 1; }
.vphoto.cover { outline: 3px solid var(--accent); outline-offset: -3px; }
.vphoto .cover-badge { position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: var(--on-accent, #fff); font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.import-row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.import-row input { flex: 1 1 220px; }

.glance { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-width: 640px; }
.gchip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 13px; color: #fff; text-decoration: none; background: rgba(0, 0, 0, .32); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .25); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gchip:hover { background: rgba(0, 0, 0, .48); }
.gchip.dim { opacity: .8; font-style: italic; }

.design-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.design-preview { position: sticky; top: 16px; }
#inv-canvas { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; margin: 0 auto; border-radius: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .15); background: #fff; }
.cmd { display: flex; gap: 8px; margin-top: 14px; }
.cmd input { flex: 1; }
.design-controls h2 { font-size: 22px; margin-bottom: 8px; }
.dc-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.dc-row label { font-size: 13px; font-weight: 600; color: var(--muted); }
.dc-row input[type=color] { width: 56px; height: 34px; padding: 2px; }
.dc-row input[type=checkbox] { justify-self: start; }
.rsvp-invite { width: 100%; border-radius: 10px; margin-bottom: 16px; box-shadow: var(--shadow); }
@media (max-width: 960px) { .design-grid { grid-template-columns: minmax(0, 1fr); } .design-preview { position: static; } }

.ig-box { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.ig-box textarea { min-height: 70px; }
.ig-box .btn { align-self: flex-start; }

.preset-card { margin-bottom: 16px; }
.preset-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.preset-head h2 { margin-right: auto; }
.preset-head input { width: min(280px, 100%); }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 8px; }
.preset-grid[data-collapsed] { max-height: 236px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.preset-thumb { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; text-align: left; }
.preset-thumb:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.preset-thumb canvas { width: 100%; height: auto; min-height: 90px; background: var(--surface-2); border-radius: 4px; display: block; }
.preset-thumb span { font-size: 11px; line-height: 1.25; color: var(--muted); }
.dia-bar { position: fixed; z-index: 1000; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.dia-bar button { min-width: 28px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.dia-bar button:hover { background: var(--accent-soft, rgba(0, 0, 0, .06)); }
.dia-bar .dia-case { color: var(--muted); font-size: 13px; }
.dia-bar .dia-case.on { color: var(--accent, inherit); background: var(--accent-soft, rgba(0, 0, 0, .08)); }
.combo-list { position: fixed; z-index: 1001; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.combo-list button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.combo-list button:hover, .combo-list button.active { background: var(--accent-soft, rgba(0, 0, 0, .06)); }
.combo-list button.current { font-weight: 600; color: var(--accent-strong, var(--accent)); }
input[list], input[data-combo] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.field.name-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.field.name-boxes[hidden] { display: none; }
.field.name-boxes > label { grid-column: 1 / -1; }
.pill.side-bride { background: #fbe3e8; color: #b0284a; }
.pill.side-groom { background: #e0ebfa; color: #2457a6; }
.pill.side-both { background: #e2f1e0; color: #2f7a3a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.side-bride { background: #4a1f2b; color: #f6a9bb; }
  :root:not([data-theme="light"]) .pill.side-groom { background: #1d2f4d; color: #a9c8f6; }
  :root:not([data-theme="light"]) .pill.side-both { background: #1e3a22; color: #a8dcae; }
}
:root[data-theme="dark"] .pill.side-bride { background: #4a1f2b; color: #f6a9bb; }
:root[data-theme="dark"] .pill.side-groom { background: #1d2f4d; color: #a9c8f6; }
:root[data-theme="dark"] .pill.side-both { background: #1e3a22; color: #a8dcae; }
.seat.suggested circle { fill: var(--surface); stroke: var(--gold, var(--accent)); stroke-dasharray: 3 2; }
.seat.suggested text { fill: var(--muted); font-style: italic; }
.seat-list li.suggested { font-style: italic; color: var(--muted); }
.suggest-box { border-color: var(--gold, var(--accent)); }
.suggest-tag { color: var(--accent-strong, var(--accent)); font-weight: 600; }
.seat-hint { margin: 4px 0; }
.pill.invite-unsent { background: #fdebd9; color: #b4561a; }
.pill.invite-sent { background: #e0ebfa; color: #2457a6; }
.pill.invite-replied { background: #e2f1e0; color: #2f7a3a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.invite-unsent { background: #4a2c16; color: #f5bf8f; }
  :root:not([data-theme="light"]) .pill.invite-sent { background: #1d2f4d; color: #a9c8f6; }
  :root:not([data-theme="light"]) .pill.invite-replied { background: #1e3a22; color: #a8dcae; }
}
:root[data-theme="dark"] .pill.invite-unsent { background: #4a2c16; color: #f5bf8f; }
:root[data-theme="dark"] .pill.invite-sent { background: #1d2f4d; color: #a9c8f6; }
:root[data-theme="dark"] .pill.invite-replied { background: #1e3a22; color: #a8dcae; }
.pill.invite-nocontact { background: #fbe0e0; color: #b42525; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.invite-nocontact { background: #4a1c1c; color: #f5a3a3; } }
:root[data-theme="dark"] .pill.invite-nocontact { background: #4a1c1c; color: #f5a3a3; }
.personal-inv { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.personal-inv h2 { margin: 0 0 4px; }
.personal-inv .actions { margin-top: 10px; flex-wrap: wrap; }
.personal-inv select { max-width: 100%; }
.copyright { margin: 10px 0 0; font-size: 11px; color: var(--muted); opacity: .8; letter-spacing: .02em; text-align: center; }
.sidebar-foot .copyright { text-align: left; }
.rsvp-main .copyright { margin: 24px 0 8px; }
.login-card > *, .rsvp-card > * { position: relative; z-index: 1; }
.login-card::before, .rsvp-card::before { top: -98px; left: -88px; width: 150px; height: 160px; z-index: 0; }
.rsvp-card::after { bottom: -88px; right: -80px; width: 130px; height: 140px; z-index: 0; }
@media (max-width: 860px) {
  .login-card::before, .rsvp-card::before { width: 96px; height: 104px; top: -64px; left: -18px; opacity: .6; }
  .login-card, .rsvp-card { padding-top: 44px; }
}
.subnav { flex-wrap: wrap; align-items: center; }
.lang-pick { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; box-shadow: var(--shadow); }
.lang-pick button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 99px; cursor: pointer; }
.lang-pick button.on { background: var(--accent); color: var(--on-accent, #fff); }
body > .lang-pick { position: fixed; top: 14px; right: 14px; z-index: 40; }
@media (max-width: 520px) { body > .lang-pick { top: 10px; right: 10px; } body > .lang-pick button { padding: 4px 6px; font-size: 11px; } }
@media (min-width: 861px) { main#view { padding-top: 56px; } }
@media print { body > .lang-pick { display: none; } }
.gp-badge { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
@keyframes wp-pulse { 50% { transform: scale(.82); opacity: .55; } }
@keyframes wp-slide { 0% { left: -35%; width: 35%; } 60% { width: 45%; } 100% { left: 100%; width: 30%; } }
.loader { position: relative; width: 56px; height: 56px; }
.loader::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent-soft, rgba(0, 0, 0, .08)); border-top-color: var(--accent); animation: wp-spin .9s linear infinite; }
.loader::after { content: ""; position: absolute; inset: 14px; background: url("icon.svg") center / contain no-repeat; animation: wp-pulse 1.6s ease-in-out infinite; }
.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--bg); transition: opacity .45s ease; }
.boot p { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 22px; font-style: italic; color: var(--accent-strong, var(--accent)); }
.boot.done { opacity: 0; pointer-events: none; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; overflow: hidden; opacity: 0; transition: opacity .25s; pointer-events: none; }
.topbar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 3px; background: var(--accent); animation: wp-slide 1.2s ease-in-out infinite; }
.topbar.on { opacity: 1; }
.card-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; }
.design-preview { position: relative; }
.design-preview.busy::after { content: ""; position: absolute; top: 40%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--accent-soft, rgba(0, 0, 0, .08)); border-top-color: var(--accent); animation: wp-spin .9s linear infinite; pointer-events: none; }
@media print { .boot, .topbar { display: none !important; } }
.pick-list { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; margin-top: 10px; }
.pick-group { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.pick-group span { opacity: .7; margin-left: 4px; }
.pick-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pick-row:hover, .pick-row:focus-visible { background: var(--accent-soft); }
.seat-pick { border: 0; background: transparent; color: var(--accent-strong, var(--accent)); font: inherit; font-size: 13px; padding: 0; cursor: pointer; }
.seat-pick:hover { text-decoration: underline; }
.seat-lists .head { gap: 8px; }
.seat-lists .head { flex-wrap: wrap; row-gap: 4px; }
.seat-lists .head h3 { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.seat-lists .head > span { flex-shrink: 0; white-space: nowrap; }
.seat:not(.taken) { cursor: pointer; }
.venue-when { margin: 4px 0 2px; font-size: 14px; color: var(--accent-strong, var(--accent)); }
