@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Great+Vibes&family=Inter:wght@400;600&family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;700&display=swap");
/* Interactive Digital Co. — Wedding Planner design system
   Tokens are set by themes.js (7 palettes + custom accent, contrast-corrected). */











:root {
  --bg: #F7F5EF; --surface: #fff; --surface-2: #EEF1EA; --text: #26302A; --muted: #5A665E; --accent: #7C9A82; --accent-2: #D8C8A8; --accent-strong: #5D7462; --on-accent: #fff;
  --border: #DCE0D6; --focus: #6E8B74; --danger: #A5302A; --warn: #8A5A00; --ok: #2E6B3F; --warn-bg: #FBF1DC; --danger-bg: #FBE8E6; --ok-bg: #E5F2E8;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(30,40,30,.06);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  color-scheme: light;
}
:root[data-dark="1"] { color-scheme: dark; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); }
h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: .005em; margin: 0 0 var(--s2); color: var(--text); }
h1 { font-size: clamp(30px, 4vw, 40px); } h2 { font-size: 24px; } .h2 { font-size: 26px; margin-top: var(--s6); } .h3, h3 { font-size: 21px; }
.display { font-size: clamp(36px, 6vw, 56px); font-weight: 500; } .display.sm { font-size: clamp(30px, 7vw, 40px); }
p { margin: 0 0 var(--s3); } a { color: var(--accent-strong); text-underline-offset: 3px; }
.lede { color: var(--muted); font-size: 17px; max-width: 68ch; } .muted { color: var(--muted); } .sm { font-size: 14px; } .strong { font-weight: 600; } .center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--accent-strong); margin-bottom: var(--s2); }
.hint { font-size: 14px; color: var(--muted); } .good-text { color: var(--ok); font-weight: 600; } .bad-text { color: var(--danger); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--surface); padding: 10px 14px; border-radius: 8px; } .skip:focus { left: 12px; }

/* banner, top bar, nav */
.proto-banner { background: var(--surface-2); color: var(--text); font-size: 13px; padding: 6px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.topbar { display: flex; align-items: center; gap: var(--s4); padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { font-size: 26px; color: var(--accent-strong); } .brand-co { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); } .brand-app { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.topbar-context { display: flex; align-items: center; gap: var(--s3); flex: 1; flex-wrap: wrap; min-width: 0; }
.switch-wrap { display: flex; align-items: center; gap: 8px; } .switch-label { font-size: 13px; color: var(--muted); } .switcher { min-width: 220px; font-weight: 600; }
.top-names { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.save-status { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.save-status[data-state=saving] { color: var(--text); } .save-status[data-state=saved] { color: var(--ok); background: var(--ok-bg); } .save-status[data-state=error] { color: var(--danger); background: var(--danger-bg); } .save-status[data-state=offline] { color: var(--warn); background: var(--warn-bg); }
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 110px); background: linear-gradient(to right, var(--surface) 232px, var(--border) 232px, var(--border) 233px, transparent 233px); }
body.guest-mode .layout, .layout:has(> .nav[hidden]) { background: none; }
.nav { padding: var(--s5) var(--s3); border-right: 1px solid var(--border); background: var(--surface); position: sticky; top: 70px; align-self: start; height: calc(100vh - 70px); overflow: auto; }
.nav[hidden] { display: none; } .nav[hidden] + main { grid-column: 1 / -1; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; margin-bottom: 2px; min-height: 44px; }
.nav-item:hover { background: var(--surface-2); } .nav-item.on { background: var(--accent-strong); color: var(--on-accent); }
.nav-wedding { margin: var(--s4) 6px var(--s3); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--accent); }
.nav-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .nav-wedding strong { font-family: var(--serif); font-size: 19px; }
main { padding: var(--s6) clamp(16px, 4vw, 48px) 96px; min-width: 0; outline: none; }
.page { max-width: 1180px; margin: 0 auto; } .page.wide { max-width: 1400px; } .page.narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--s5); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--accent-strong); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); font-weight: 600; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.danger-ghost { color: var(--danger); border-color: transparent; background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 38px; padding: 7px 13px; font-size: 14px; } .btn.lg { min-height: 54px; font-size: 17px; padding: 14px 24px; } .btn.block { width: 100%; }
.btn.on { background: var(--surface-2); border-color: var(--accent-strong); font-weight: 600; }
:root[data-dark="1"] .btn.danger { color: #1a1a1a; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; line-height: 1.5; } input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent-strong); }
input[type=color] { width: 54px; padding: 4px; } input[type=search] { max-width: 320px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-strong); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.linklike:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
.row { display: flex; align-items: center; gap: var(--s3); } .row.wrap { flex-wrap: wrap; } .row.tight { gap: var(--s2); } .row.gap { gap: var(--s5); } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; margin: var(--s4) 0; }
.spacer { flex: 1; } .stack-v { display: grid; gap: var(--s3); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--accent-strong); color: var(--on-accent); border-color: var(--accent-strong); }
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s4) 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--danger-bg); color: var(--danger); } .tag.private { background: var(--surface-2); color: var(--muted); }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); } .badge.sample { background: var(--warn-bg); color: var(--warn); border-color: transparent; font-weight: 600; }
.pill { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); } .pill[data-state=dirty] { background: var(--warn-bg); color: var(--warn); }

/* cards, tiles, dashboard */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); } .card.pad { padding: var(--s5); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); } .card-head h2 { margin: 0; font-size: 22px; } .card-head a { font-size: 14px; }
.hero { display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s6); align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface) 55%, var(--surface-2)); }
.hero-date { font-size: 18px; color: var(--muted); }
.countdown { text-align: center; min-width: 160px; padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.cd-num { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent-strong); font-weight: 600; } .cd-label { color: var(--muted); font-weight: 500; } .cd-label.big { font-family: var(--serif); font-size: 26px; color: var(--accent-strong); }
.quick { display: flex; gap: var(--s2); flex-wrap: wrap; margin: var(--s5) 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--s5); }
.dash { padding: var(--s5); } .dash .metric-row { grid-template-columns: 1fr 1fr; }
.metric-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: var(--s3); margin-bottom: var(--s3); }
.metric { display: flex; flex-direction: column; padding: 12px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: var(--text); min-height: 44px; }
.metric:hover { outline: 2px solid var(--accent); } .metric-label { font-size: 13px; color: var(--muted); } .metric-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; } .metric-sub { font-size: 13px; color: var(--muted); }
.metric.bad .metric-value, .metric.bad .metric-sub { color: var(--danger); } .metric.warn .metric-sub { color: var(--warn); } .metric.good .metric-value { color: var(--ok); }
.meter { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); } .meter span { display: block; height: 100%; background: var(--accent-strong); border-radius: 99px; }
.meter-cap { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: var(--s2) 0; }
.seg.yes { background: var(--accent-strong); } .seg.no { background: var(--muted); opacity: .55; } .seg.pending { background: var(--accent-2); } .seg.none { background: var(--border); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); } .legend .k::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k.yes::before { background: var(--accent-strong); } .k.no::before { background: var(--muted); opacity: .55; } .k.pending::before { background: var(--accent-2); } .k.none::before { background: var(--border); }
.list { list-style: none; padding: 0; margin: 0 0 var(--s3); } .list li { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; } .list li:last-child { border-bottom: 0; }
.list-meta { color: var(--muted); font-size: 14px; text-align: right; } .list-meta.strong { color: var(--text); font-size: 16px; }
.list li.is-bad > :first-child, .mini li.is-bad { color: var(--danger); } .list li.is-bad .list-meta { color: var(--danger); } .list li.is-warn > :first-child, .mini li.is-warn { color: var(--warn); }
.alert { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; margin-top: var(--s3); } .alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.bad { background: var(--danger-bg); color: var(--danger); } .alert.inline { display: inline-block; padding: 4px 10px; margin: 2px 0 4px; }
.empty { color: var(--muted); } .empty .btn { margin-top: var(--s3); }
.empty-block { padding: var(--s6); text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r); background: var(--surface); }
.callout { background: var(--surface-2); padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--accent); margin-bottom: var(--s4); }
.ring-wrap { position: relative; width: 84px; height: 84px; flex: none; } .ring { width: 84px; height: 84px; } .ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 9; } .ring-fg { fill: none; stroke: var(--accent-strong); stroke-width: 9; stroke-linecap: round; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--accent-2); } .timeline li { padding: 6px 0 6px 16px; position: relative; display: flex; gap: 12px; } .timeline li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-strong); }
.tl-time { min-width: 76px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s3); margin-bottom: var(--s3); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; } .tile-label { display: block; font-size: 13px; color: var(--muted); } .tile-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile.bad .tile-value { color: var(--danger); } .tile.warn .tile-value { color: var(--warn); } .tile.good .tile-value { color: var(--ok); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; } table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; } table.data tbody tr:last-child > * { border-bottom: 0; } table.data tbody th { font-weight: 600; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; } table.data select { min-width: 140px; min-height: 38px; padding: 6px 10px; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--s5); overflow-x: auto; }
.subtab { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; } .subtab.on { color: var(--text); border-bottom-color: var(--accent-strong); font-weight: 600; }
details { margin-top: var(--s4); } summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

/* dialogs & forms */
.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.42); display: grid; place-items: center; padding: 16px; z-index: 50; overflow: auto; }
.dialog { background: var(--surface); color: var(--text); border-radius: 18px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: var(--s5) var(--s5) var(--s4); box-shadow: 0 20px 60px rgba(0,0,0,.25); border: 1px solid var(--border); }
.dialog.wide { width: min(920px, 100%); } .dialog-title { font-size: 28px; margin-bottom: var(--s4); }
.dialog-actions { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; align-items: center; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); }
.dialog.nudge { animation: nudge .3s; } @keyframes nudge { 30% { transform: translateX(-6px); } 60% { transform: translateX(6px); } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s4); } .field { display: grid; gap: 6px; align-content: start; } .field.full, .form-grid > .full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; } .field.check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; } .field.check .field-error { grid-column: 1 / -1; }
.req { color: var(--danger); } .field-error { color: var(--danger); font-size: 14px; min-height: 0; } .field-error:empty { display: none; }
.form-banner { grid-column: 1 / -1; background: var(--danger-bg); color: var(--danger); padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; } .check-inline label { cursor: pointer; }
.toasts { pointer-events: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(520px, calc(100% - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); transition: opacity .4s; font-weight: 500; } .toast-error { background: var(--danger); color: #fff; } .toast.out { opacity: 0; }
:root[data-dark="1"] .toast-error { color: #1a1a1a; }

/* welcome */
.welcome { max-width: 880px; margin: 3vh auto 0; text-align: center; } .welcome .lede { margin: 0 auto var(--s6); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s5); text-align: left; }
.choice { display: grid; gap: 6px; padding: var(--s5); border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.choice:hover { border-color: var(--accent-strong); } .choice strong { font-family: var(--serif); font-size: 25px; } .choice span:last-child { color: var(--muted); } .choice-ico { font-size: 28px; color: var(--accent-strong); }
.sample-box { margin-top: var(--s6); padding: var(--s5); border-radius: var(--r); border: 1px dashed var(--border); } .sample-box .row { justify-content: center; }

/* pro */
.wed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s5); margin-top: var(--s4); }
.wed-card { padding: 0 var(--s5) var(--s5); overflow: hidden; } .wed-card-top { height: 8px; margin: 0 calc(-1 * var(--s5)) var(--s4); background: var(--sw, var(--accent)); } .wed-card.is-archived { opacity: .75; }
.mini { list-style: none; padding: 0; margin: 0 0 var(--s4); font-size: 14.5px; } .mini li { padding: 3px 0; }
.attn { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); }

/* sections */
.day-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); } .dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 var(--s4); } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; } .checklist li { break-inside: avoid; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s5); } .note textarea { min-height: 130px; } .links { font-size: 14px; padding-left: 18px; }
.publish { margin-bottom: var(--s5); border: 1px solid var(--border); } .publish legend { font-family: var(--serif); font-size: 22px; font-weight: 600; padding: 0 6px; }
.insp-label { font-weight: 600; font-size: 14px; color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); }
.theme-card { display: grid; gap: 6px; text-align: left; padding: 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.theme-card.on { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-2); } .theme-sw { display: flex; gap: 6px; padding: 10px; border-radius: 8px; border: 1px solid var(--border); } .theme-sw span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }

/* invitation editor */
.editor { display: grid; gap: var(--s4); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); position: sticky; top: 72px; z-index: 5; }
.editor-toolbar .sep { width: 1px; height: 28px; background: var(--border); }
.editor-body { display: grid; grid-template-columns: minmax(280px, 1fr) 380px; gap: var(--s5); align-items: start; }
.stage { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 22px 22px; border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; justify-content: center; min-height: 300px; }
.stage-inner { position: relative; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.inv-card { position: absolute; left: 0; top: 0; width: 1500px; height: 2100px; transform-origin: 0 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.safe-guide { position: absolute; left: 0; top: 0; width: 1500px; height: 2100px; transform-origin: 0 0; pointer-events: none; }
.safe-guide::after { content: ''; position: absolute; inset: 75px; border: 3px dashed rgba(120,120,120,.55); }
.el { position: absolute; cursor: move; } .el-text .ln { white-space: pre; overflow: visible; }
.el-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } .el-bg-dim { position: absolute; inset: 0; pointer-events: none; }
.el-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.el-image .ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 30px, rgba(0,0,0,.08) 30px 60px); color: #555; font: 600 44px/1.3 Inter, sans-serif; padding: 60px; border: 6px dashed rgba(0,0,0,.25); }
.el.selected { outline: 6px solid #2E7BD6; outline-offset: 6px; } .el.warn-edge { outline: 5px dashed #C0392B; outline-offset: 4px; } .el.selected.warn-edge { outline: 6px solid #C0392B; }
.handle { position: absolute; right: -34px; bottom: -34px; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 6px solid #2E7BD6; cursor: nwse-resize; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.inspector { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s5); display: grid; gap: var(--s4); position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.insp-group { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border); }
.insp-field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; } .insp-field > span { color: var(--muted); font-weight: 600; }
.inspector .row { gap: var(--s2); align-items: flex-end; } .inspector input[type=number] { min-width: 0; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tpl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font: 500 14px var(--sans); color: var(--text); min-height: 48px; text-align: left; }
.tpl.on { border-color: var(--accent-strong); } .tpl-sw { width: 28px; height: 36px; border-radius: 4px; border: 2px solid; display: grid; place-items: center; flex: none; } .tpl-sw span { width: 12px; height: 12px; border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip .dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.seg { display: inline-flex; } .seg .btn { border-radius: 0; margin-left: -1px; } .seg .btn:first-child { border-radius: 8px 0 0 8px; } .seg .btn:last-child { border-radius: 0 8px 8px 0; }
.file-btn { position: relative; } .file-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.warn-note { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0; }

/* guest page */
body.guest-mode .proto-banner { font-size: 12px; } body.guest-mode .brand-co, body.guest-mode #devpanel { display: none; }
.guest-shell { max-width: 460px; margin: 0 auto; display: grid; gap: var(--s4); }
.guest-invite { width: 100%; aspect-ratio: 5 / 7; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.18); background: var(--surface-2); }
.guest-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: var(--s5); }
.person { border: 1px solid var(--border); border-radius: 12px; padding: var(--s4); margin: 0 0 var(--s4); display: grid; gap: var(--s3); } .person legend { font-weight: 600; padding: 0 6px; font-size: 17px; }
.radio-pill { display: inline-flex; } .radio-pill input { position: absolute; opacity: 0; } .radio-pill label { padding: 12px 16px; border-radius: 99px; border: 2px solid var(--border); cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; font-weight: 500; }
.radio-pill input:checked + label { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); } .radio-pill input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.loading { text-align: center; color: var(--muted); padding: var(--s7); }

/* prototype controls */
.devpanel { position: fixed; right: 12px; bottom: 12px; z-index: 40; background: var(--surface); border: 1px dashed var(--muted); border-radius: 12px; padding: 4px 12px; font-size: 14px; max-width: 320px; box-shadow: var(--shadow); }
.devpanel details { margin: 0; } .dev-body { display: grid; gap: 8px; padding-bottom: 10px; } .devpanel select { min-height: 36px; padding: 4px 8px; }
body.is-offline .proto-banner::after { content: ' · OFFLINE (simulated)'; font-weight: 700; color: var(--warn); }

/* responsive */
.proto-banner .short { display: none; }
@media (max-width: 860px) { .proto-banner .long { display: none; } .proto-banner .short { display: inline; } .brand-mark { font-size: 22px; } .brand-app { font-size: 19px; } .devpanel { padding: 0 10px; font-size: 13px; } .hero .countdown { width: 100%; } }
@media (max-width: 1100px) { .editor-body { grid-template-columns: 1fr; } .inspector { position: static; max-height: none; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; background: none; }
  .topbar { padding: 10px 16px; gap: 8px; } .topbar-context { flex-basis: 100%; gap: 8px; } .brand-co { display: none; } .save-status { font-size: 12px; }
  html, body { overflow-x: hidden; }
  .nav { position: sticky; top: 0; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border); z-index: 15; }
  .nav-item { white-space: nowrap; margin: 0; padding: 8px 14px; } .nav-wedding { display: none; }
  .topbar { position: static; } .editor-toolbar { top: 56px; }
  main { padding-top: var(--s5); } .form-grid { grid-template-columns: 1fr; } .day-grid { grid-template-columns: 1fr; } .checklist { columns: 1; }
  .hero { padding: var(--s5); } .switcher { min-width: 0; max-width: 62vw; }
  table.data thead { display: none; } table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: 100%; }
  table.data tr { border-bottom: 1px solid var(--border); padding: 10px 4px; } table.data th, table.data td { border: 0; padding: 4px 12px; text-align: left !important; }
  table.data td[data-label]:not(:empty)::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
  .devpanel { left: 12px; right: auto; bottom: 12px; max-width: calc(100% - 24px); }
}

/* ===== v0.2 additions ===== */
.toast-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); }
.block { display: block; } .warn-text { color: var(--warn); font-weight: 600; } .h4 { font-size: 18px; margin: 0 0 var(--s2); }
.plain { list-style: none; padding: 0; margin: 0; }
/* HOME — workbook hierarchy */
.home-head { margin-bottom: var(--s5); } .home-head h1 { margin-bottom: 4px; } .home-sub { font-size: 18px; color: var(--muted); }
.home-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s5); align-items: stretch; margin-bottom: var(--s5); }
.card-eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; color: var(--accent-strong); font-weight: 600; margin-bottom: var(--s3); }
.dl.wide { grid-template-columns: 140px 1fr; } .home-details .dl dd { font-size: 17px; }
.countdown-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: var(--s6) var(--s5); border-radius: var(--r); background: var(--accent-strong); color: var(--on-accent); box-shadow: var(--shadow); min-height: 260px; }
.countdown-card .cd-eyebrow { font-size: 13px; letter-spacing: .2em; font-weight: 600; opacity: .9; }
.countdown-card .cd-num { display: block; font-family: var(--serif); font-size: clamp(64px, 9vw, 108px); line-height: 1; font-weight: 600; color: inherit; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1, 'tnum' 1; letter-spacing: .02em; padding-bottom: .06em; white-space: nowrap; }
.countdown-card .cd-num.long { font-size: clamp(52px, 7vw, 84px); } .countdown-card .cd-label { display: block; margin-top: 6px; line-height: 1.2; }
.countdown-card .cd-num.heart { font-size: 64px; } .countdown-card .cd-label { font-weight: 600; letter-spacing: .14em; color: inherit; } .countdown-card .cd-label.big { font-family: var(--serif); font-size: 32px; letter-spacing: 0; }
.countdown-card .cd-sub { opacity: .95; } .countdown-card .cd-date { font-family: var(--serif); font-size: 20px; margin-top: var(--s2); } .countdown-card .cd-tz { font-size: 13px; opacity: .9; }
.countdown-card .btn.primary { background: var(--on-accent); color: var(--accent-strong); border-color: var(--on-accent); margin-top: var(--s3); }
.kpi4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-bottom: var(--s5); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: var(--r); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.kpi:hover { border-color: var(--accent-strong); } .kpi-label { font-size: 12.5px; letter-spacing: .14em; font-weight: 600; color: var(--muted); } .kpi-value { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; } .kpi-sub { font-size: 14px; color: var(--muted); }
.kpi.bad { border-top-color: var(--danger); } .kpi.bad .kpi-value, .kpi.bad .kpi-sub { color: var(--danger); } .kpi.warn .kpi-sub { color: var(--warn); font-weight: 600; }
.dots { color: var(--accent-strong); letter-spacing: 1px; }
.home-mid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-bottom: var(--s5); }
.glance { display: grid; gap: var(--s3); margin: var(--s3) 0 var(--s4); } .gl-row { display: grid; grid-template-columns: 150px 1fr 96px; gap: var(--s3); align-items: center; }
.gl-label { font-size: 14.5px; } .gl-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; } .gl-track { height: 18px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.gl-bar { display: block; height: 100%; border-radius: 99px; } .gl-bar.total { background: var(--accent-2); } .gl-bar.proj { background: var(--accent); } .gl-bar.over { background: var(--danger); } .gl-bar.paid { background: var(--accent-strong); }
.start-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); } .start-steps li { display: flex; gap: var(--s3); align-items: center; }
.step-n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-strong); font-weight: 700; } .start-steps li.done .step-n { background: var(--accent-strong); color: var(--on-accent); } .start-steps li.done .linklike { color: var(--muted); }
.navlist { list-style: none; margin: 0; padding: 0; columns: 1; } .navlist li { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--border); } .navlist li:last-child { border: 0; } .navlist a { font-weight: 600; }
.more-glance { margin-top: var(--s5); } .more-glance > summary { font-family: var(--serif); font-size: 20px; } .more-glance .dash-grid { margin-top: var(--s3); }
@media (max-width: 1000px) { .kpi4 { grid-template-columns: 1fr 1fr; } .home-top, .home-mid { grid-template-columns: 1fr; } .countdown-card { min-height: 0; } }
@media (max-width: 860px) { .home-top { display: flex; flex-direction: column-reverse; } .kpi-value { font-size: 28px; } .gl-row { grid-template-columns: 110px 1fr 80px; } }
/* pro countdown */
.pro-cd { font-weight: 600; } .pro-cd-num { font-family: var(--serif); font-size: 34px; color: var(--accent-strong); margin-right: 4px; } .pro-cd.soon .pro-cd-num { color: var(--warn); }
/* checklist stages */
.cl-stages { display: grid; gap: var(--s5); margin-top: var(--s4); } .cl-stage-head { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s2); } .cl-stage-head h2 { margin: 0; }
.cl-stage-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.is-done { text-decoration: line-through; color: var(--muted); } .is-skipped { color: var(--muted); font-style: italic; } .cl-stage-empty { padding-left: 42px; } .tile-btn { text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.cl-stages-preview { margin-top: var(--s4); opacity: .7; text-align: left; }
/* wedding day */
.auto-switch { max-width: 520px; } .auto-switch .hint { margin: 0; } .when strong { font-variant-numeric: tabular-nums; } tr.row-bad > * { background: var(--danger-bg); }
/* seating */
.seating { display: grid; gap: var(--s3); }
.seat-toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.seat-toolbar select { width: auto; min-height: 38px; padding: 6px 10px; } .seat-toolbar .sep { width: 1px; height: 28px; background: var(--border); }
.seat-summary { display: flex; flex-wrap: wrap; gap: var(--s2); }
.seat-body { display: grid; grid-template-columns: 300px 1fr; gap: var(--s4); align-items: start; } .seat-side { display: grid; gap: var(--s3); max-height: 76vh; overflow: auto; position: sticky; top: 80px; }
.seat-lists, .seat-insp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s3); }
.seat-lists.drop-over { outline: 3px dashed var(--accent-strong); }
.chips-col { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px; min-height: 44px; border-radius: 10px; border: 2px solid var(--accent-strong); background: var(--surface); color: var(--text); font: 500 14px var(--sans); cursor: grab; touch-action: none; text-align: left; }
.gchip.pending { border-style: dashed; border-color: var(--muted); } .gchip.declined { border-color: var(--danger); } .gchip.is-sel { background: var(--accent-strong); color: var(--on-accent); } .gchip .gmeal { font-size: 12px; opacity: .85; }
.seat-attn li { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
svg.plan { width: 100%; height: 76vh; min-height: 460px; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.plan-bg { fill: var(--surface-2); }
.table-g { cursor: move; } .table-g .tbody { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 2.5; } .table-g.is-sel .tbody { stroke-width: 5; stroke-dasharray: 8 4; } .table-g.is-bad .tbody { stroke: var(--danger); stroke-width: 4; }
.table-g.drop-over .tbody { fill: var(--accent-2); } .table-g:focus { outline: none; } .table-g:focus-visible .tbody { stroke: var(--focus); stroke-width: 6; }
.tname { font: 600 18px var(--sans); fill: var(--text); pointer-events: none; } .tcount { font: 500 15px var(--sans); fill: var(--muted); pointer-events: none; } .tcount.over { fill: var(--danger); font-weight: 700; }
.seat circle { fill: var(--surface); stroke: var(--border); stroke-width: 2; } .seat text { font: 700 13px var(--sans); fill: var(--muted); pointer-events: none; }
.seat.yes circle { fill: var(--accent-strong); stroke: var(--accent-strong); } .seat.yes text { fill: var(--on-accent); }
.seat.pending circle { fill: var(--surface); stroke: var(--accent-strong); stroke-dasharray: 4 3; } .seat.pending text { fill: var(--text); }
.seat.declined circle, .seat.dup circle { fill: var(--danger-bg); stroke: var(--danger); stroke-width: 3; } .seat.declined text, .seat.dup text { fill: var(--danger); }
.seat.is-sel circle { stroke: var(--focus); stroke-width: 5; } .seat.drop-over circle { stroke: var(--focus); stroke-width: 5; fill: var(--accent-2); } .seat { cursor: pointer; } .seat:focus-visible circle { stroke: var(--focus); stroke-width: 5; }
.marker rect { stroke-width: 2; } .marker-dance { fill: var(--accent-2); stroke: var(--accent-strong); stroke-dasharray: 10 6; } .marker-entrance { fill: var(--surface); stroke: var(--muted); } .marker { cursor: move; } .marker.is-sel rect { stroke-width: 5; }
.marker-label { font: 600 20px var(--sans); fill: var(--text); pointer-events: none; }
.drag-ghost { position: fixed; z-index: 70; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--accent-strong); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow); }
body.is-dragging { cursor: grabbing; } body.is-dragging * { cursor: grabbing !important; }
.seatlist li { display: grid; grid-template-columns: 62px 1fr auto; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); } .seatlist .muted { grid-column: 2; } .seatno { font-size: 12px; color: var(--muted); }
.steps { padding-left: 20px; margin: 0; } .steps li { margin-bottom: 6px; }
.print-only { display: none; }

@media (max-width: 1000px) { .seat-body { grid-template-columns: 1fr; } .seat-side { position: static; max-height: none; } .seat-lists { max-height: 40vh; overflow: auto; } svg.plan { height: 60vh; min-height: 320px; } }
/* invitation couple photo */
.couple-group { background: var(--surface-2); border-radius: 12px; padding: var(--s3); border-top: 0; }
/* theme studio */
.theme-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s5); } .theme-layout > *, .scope .check-inline > span, .color-row label { min-width: 0; } .dialog .dialog-body { min-width: 0; overflow-wrap: anywhere; } .theme-layout .theme-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.custom-theme { border: 1px solid var(--border); border-radius: 12px; padding: var(--s4); margin-top: var(--s4); } .custom-theme legend { font-weight: 600; padding: 0 6px; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); } .color-row { display: flex; gap: var(--s3); align-items: center; } .color-row input[type=color] { width: 56px; height: 44px; flex: none; }
.theme-sample { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--bg); } .ts-body .row { flex-wrap: wrap; }
.ts-nav { background: var(--surface); padding: 10px; display: grid; gap: 4px; font-size: 13px; border-right: 1px solid var(--border); } .ts-nav span { padding: 6px 8px; border-radius: 8px; } .ts-nav .on { background: var(--accent-strong); color: var(--on-accent); }
.ts-body { padding: 12px; display: grid; gap: 10px; } .ts-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 10px; padding: 10px; display: grid; gap: 4px; }
.fixes { margin-top: var(--s3); font-size: 14px; } .fix-note { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border); display: inline-block; }
.scope { border: 1px solid var(--border); border-radius: 12px; padding: var(--s3) var(--s4); display: grid; gap: 4px; } .scope legend { font-weight: 600; padding: 0 6px; } .scope .check-inline { align-items: flex-start; }
@media (max-width: 860px) { .theme-layout, .color-grid { grid-template-columns: 1fr; } .theme-layout .theme-grid { grid-template-columns: 1fr 1fr; } .theme-card { padding: 8px; } .dialog { padding: var(--s4) var(--s3); } }
@media print {
  .seat-toolbar, .seat-side, .subtabs, .help-hide { display: none !important; }
  .seat-body { display: block; } .plan-wrap { border: 1px solid #999; } svg.plan { height: 6.5in; } .print-only { display: block !important; }
  .print-cols { columns: 3; column-gap: 24px; font-size: 11pt; } .print-table { break-inside: avoid; margin-bottom: 10px; } .print-table h3 { font-size: 13pt; margin: 0 0 4px; }
  .seat-print-list { page-break-before: always; } .print-cols.index { columns: 3; font-size: 10.5pt; }
  .table-g .tbody { fill: #fff; } .seat.yes circle { fill: #333; stroke: #333; } .seat.yes text { fill: #fff; }
}


/* ===== v0.3 additions ===== */
/* invitation editor: images */
.handle-layer { position: absolute; pointer-events: none; z-index: 40; } .handle-layer .handle { pointer-events: auto; }
.el-bg-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } .inv-card.bg-mode { cursor: grab; } .inv-card.bg-mode .el-bg-wrap { outline: 8px dashed #2E7BD6; outline-offset: -8px; }
.inv-card.bg-mode .el { pointer-events: none; opacity: .55; } .inv-card.pan-mode .el-image.selected { cursor: grab; }
.el-image .clip { position: absolute; inset: 0; overflow: hidden; } .el-image .clip img { display: block; }
.img-loading { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 30px, rgba(0,0,0,.1) 30px 60px); }
.editor-banner { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 500; }
.editor-banner > span { flex: 1; min-width: 200px; }
.session-bar { position: sticky; top: -24px; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; padding: 10px 12px; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) 0; background: var(--surface-2); border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; }
.img-group { background: var(--surface-2); border-radius: 12px; padding: var(--s3); border-top: 0; } .img-group .insp-label { margin: 0; font-size: 15px; color: var(--text); }
.insp-group h4.insp-label { margin: 0 0 4px; font-family: var(--sans); }
.focal-grid { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; } .focal { width: 34px; height: 34px; border-radius: 6px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; }
.focal.on { background: var(--accent-strong); border-color: var(--accent-strong); } .focal:hover { border-color: var(--accent-strong); }
.insp-field.slider input[type=range] { width: 100%; min-height: 32px; accent-color: var(--accent-strong); padding: 0; border: 0; background: none; } .insp-field.slider output { font-weight: 600; color: var(--text); }
.layer-list li { display: flex; gap: 8px; align-items: center; padding: 4px 0; } .layer-list li span { flex: 1; }
.file-btn.busy { opacity: .6; pointer-events: none; } .file-btn.busy::after { content: ' …'; }
/* guests: households & members */
.hh-blocks { display: grid; gap: var(--s4); margin-top: var(--s4); } .hh-block { padding: var(--s4); } .hh-head { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; margin-bottom: var(--s3); } .hh-head h2 { margin: 0; }
.tile-sub { display: block; font-size: 12.5px; color: var(--muted); } .member-row { display: grid; grid-template-columns: 1fr 140px; gap: var(--s2); }
.alert-card { border-color: var(--danger); } .catering-print table { margin-bottom: var(--s4); }
/* inspiration links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.link-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.link-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; } .ph-thumb { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-strong); font: 600 28px var(--serif); }
.link-body { display: grid; gap: 4px; min-width: 0; } .link-title { font-weight: 600; overflow-wrap: anywhere; } .link-host, .link-notes { overflow-wrap: anywhere; margin: 0; } .links-section { margin-bottom: var(--s5); }
/* seating: household groups and list view */
.hh-group { display: grid; gap: 4px; } .hh-chip { justify-self: start; padding: 6px 10px; min-height: 40px; border-radius: 10px; border: 2px dashed var(--accent-strong); background: var(--surface-2); color: var(--text); font: 600 13.5px var(--sans); cursor: grab; touch-action: none; }
.hh-chip.is-sel { background: var(--accent-strong); color: var(--on-accent); border-style: solid; }
.plan-col { min-width: 0; } .seat-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); } .seat-list-card.is-bad { border-color: var(--danger); }
.seat-listview .seatlist li { grid-template-columns: 110px 1fr auto; } .seat-listview select { min-height: 38px; padding: 4px 8px; }
@media print { body.print-catering .layout, body.print-catering .topbar, body.print-catering .proto-banner { display: none !important; } body.print-catering .scrim { position: static; background: none; display: block; padding: 0; } body.print-catering .dialog { box-shadow: none; border: 0; width: 100%; max-height: none; } body.print-catering .dialog-actions, body.print-catering .dialog-title, body.print-catering .check-inline { display: none !important; } }

/* ===== v0.4 ===== */
.chair-name { font: 600 13px var(--sans); fill: var(--text); paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; pointer-events: none; } .chair-name.declined { fill: var(--danger); text-decoration: line-through; }
.chair-pick { min-height: 34px !important; padding: 2px 6px !important; font-size: 13px; margin-top: 4px; width: auto; }
.seatlist li .block { display: block; }
.hh-people { display: grid; gap: 8px; margin: var(--s2) 0; } .hh-person { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto auto; gap: 8px; align-items: center; }
.hh-person .full-row { grid-column: 1 / -1; margin: -4px 0 0; } .hh-person.is-removing input { text-decoration: line-through; opacity: .6; } .hh-person.is-flagged { outline: 2px dashed var(--warn); outline-offset: 4px; border-radius: 8px; }
.hh-people-card { background: var(--surface-2); } .dup-flag { border: 0; cursor: pointer; margin-left: 8px; font: 600 13px var(--sans); }
.preview-frame { max-width: 470px; margin: 0 auto; background: var(--bg); border: 8px solid var(--text); border-radius: 28px; padding: 16px 10px; max-height: 70vh; overflow: auto; }
.preview-frame .guest-shell { max-width: none; } .preview-note { font-size: 14px; }
@media (max-width: 860px) { .hh-person { grid-template-columns: minmax(0, 1fr) 96px auto; } .hh-person .tag { display: none; } .preview-frame { border-width: 4px; } }
/* ===== v0.5 ===== */
.cl-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s4); }
.save-status[data-state=session] { color: var(--warn); background: var(--warn-bg); }
[data-handle] { cursor: grab; touch-action: none; min-width: 40px; min-height: 40px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; border-radius: 8px; }
[data-handle]:hover, [data-handle]:focus-visible { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.is-dragging { opacity: .55; } .drop-before { box-shadow: inset 0 3px 0 var(--accent-strong); } .drop-after { box-shadow: inset 0 -3px 0 var(--accent-strong); }
.sched-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sched-row { display: grid; grid-template-columns: 44px 150px minmax(0, 1fr) 110px auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.sched-row.is-bad { border-color: var(--danger); background: var(--danger-bg); } .sched-row .s-title { font-weight: 600; } .sched-row .s-meta { font-size: 13px; color: var(--muted); }
.sched-row .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .sched-row .s-time strong { font-variant-numeric: tabular-nums; }
.sched-issue { grid-column: 2 / -1; font-size: 13.5px; color: var(--danger); } .sched-issue.info { color: var(--muted); }
.ess-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; } .ess-row { display: grid; grid-template-columns: 40px 28px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.ess-row input[type=text] { min-height: 38px; padding: 6px 10px; } .ess-row.done input[type=text] { text-decoration: line-through; color: var(--muted); }
.age-seg { display: inline-flex; align-items: center; gap: 6px; } .readonly-banner { margin-bottom: var(--s4); }
.link-note { font-size: 13.5px; color: var(--muted); margin: 0; } .share-note { font-size: 14px; }
@media (max-width: 860px) { .sched-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .sched-row .s-time { grid-column: 2; } .sched-row .s-len { display: none; } .sched-row .s-main { grid-column: 2 / -1; } .sched-row .s-actions { grid-column: 2 / -1; } }
.time12 { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .time12 select { width: auto; min-width: 64px; }
.dur-note { font-size: 14px; color: var(--muted); margin: 0; } .dur-note.bad { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* print: Wedding Day page */
@media print {
  .proto-banner, .topbar, .nav, .devpanel, .toasts, .no-print, .page-head .row, .btn { display: none !important; }
  body { background: #fff; color: #000; } main { padding: 0; } .layout { display: block; } .card { box-shadow: none; border-color: #bbb; }
  table.data thead th { background: #eee; } .page { max-width: none; }
  @page { margin: 0.6in; }
}
.field.is-muted { opacity: .55; }
/* v0.7: wedding-day rows never clip times or badges */
.sched-row { grid-template-columns: 44px minmax(170px, 210px) minmax(0, 1fr) 96px auto; }
.sched-row .s-time { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sched-row .s-time strong { white-space: nowrap; }
.sched-row .s-time .tag { white-space: normal; max-width: 100%; line-height: 1.3; overflow-wrap: anywhere; }
.sched-row .s-main { min-width: 0; overflow-wrap: anywhere; }
.sched-row.is-order { border-color: var(--warn); }
.sched-issue.order { color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 860px) { .sched-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .sched-row .s-time strong { white-space: normal; } }
/* v0.7: seating — guest panel | plan | table settings */
.seat-body3 { grid-template-columns: 290px minmax(0, 1fr) 270px; }
.seat-panel { display: grid; gap: var(--s3); align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s3); position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.seat-panel .seat-lists { max-height: none; overflow: visible; } .seat-panel .seat-search { width: 100%; }
.seat-panel.drop-over { outline: 3px dashed var(--accent-strong); outline-offset: -3px; }
.seat-how { margin: 0; font-size: 13.5px; }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--text); }
.legend-dot.yes { background: var(--text); } .legend-dot.pending { border-style: dashed; background: transparent; }
.seat.freed circle { stroke: var(--danger); stroke-dasharray: 3 3; }
.seat-body3 .seat-side { position: sticky; top: 80px; }
@media (max-width: 1180px) { .seat-body3 { grid-template-columns: 270px minmax(0, 1fr); } .seat-body3 .seat-side { grid-column: 1 / -1; position: static; } }
@media (max-width: 800px) { .seat-body3 { grid-template-columns: 1fr; } .seat-panel { position: static; max-height: 46vh; } }
.print-plan, .seat-print-page { display: none; }
@page seatplan { size: letter landscape; margin: 0.35in; } @page seatplan-p { size: letter portrait; margin: 0.35in; }
@media print {
  body.print-seating .proto-banner, body.print-seating .topbar, body.print-seating .nav, body.print-seating .devpanel, body.print-seating .toasts, body.print-seating .page-head, body.print-seating .subtabs,
  body.print-seating .seat-toolbar, body.print-seating .seating > .hint, body.print-seating .seat-summary, body.print-seating .seat-body, body.print-seating .scrim { display: none !important; }
  body.print-seating .seat-print-list { display: block !important; }
  body.print-seating .seat-print-page { display: grid !important; grid-template-rows: auto minmax(0, 1fr); page: seatplan; break-after: page; break-inside: avoid; height: 7.6in; overflow: hidden; }
  body.print-seating .seat-print-page.portrait { page: seatplan-p; height: 10.1in; } body.print-seating .seat-print-list.portrait { page: seatplan-p; }
  body.print-seating .print-plan { display: block !important; width: 100%; height: 100%; min-height: 0; }
  body.print-seating .seat-print-list { break-before: page; page: seatplan; } /* same landscape width as the plan page, so columns never clip */
  .print-title { display: flex; justify-content: space-between; gap: 12px; font-size: 10pt; margin-bottom: 4px; } .print-title strong { font-size: 13pt; }
  .print-plan .pt-body { fill: #fff; stroke: #222; stroke-width: 2; } .print-plan .pt-name { font-weight: 700; fill: #111; }
  .print-plan .pseat circle { fill: #fff; stroke: #444; stroke-width: 1.5; } .print-plan .pseat.yes circle { fill: #222; } .print-plan .pseat.yes text { fill: #fff; } .print-plan .pseat.pending circle { stroke-dasharray: 4 3; stroke: #222; }
  .print-plan .pseat text { fill: #333; } .print-plan .pname { fill: #111; font-weight: 600; } .print-plan .pname.prov { font-style: italic; } .print-plan .pt-only { fill: #333; }
  .print-plan rect[class^=pm-] { fill: #eee; stroke: #666; stroke-width: 2; } .print-plan .pm-label { fill: #333; font-weight: 600; }
}

/* v0.8 print: same drawing as the screen; only colours change for paper (no sizes, no positions) */
@media print {
  .print-plan .tbody { fill: #fff; stroke: #222; } .print-plan .tname { fill: #111; } .print-plan .tcount { fill: #444; }
  .print-plan .seat circle { fill: #fff; stroke: #555; } .print-plan .seat.yes circle { fill: #222; stroke: #222; } .print-plan .seat.yes text { fill: #fff; }
  .print-plan .seat.pending circle { fill: #fff; stroke: #222; } .print-plan .seat text { fill: #333; }
  .print-plan .chair-name { fill: #111; stroke: #fff; } .print-plan .marker-dance { fill: #eee; stroke: #555; } .print-plan .marker-entrance { fill: #fff; stroke: #555; } .print-plan .marker-label { fill: #222; }
}

/* v0.8: paper size + orientation for the floor-plan printout */
@page seat-letter-l { size: letter landscape; margin: 0.35in; }
@page seat-letter-p { size: letter portrait; margin: 0.35in; }
@page seat-a4-l { size: A4 landscape; margin: 0.35in; }
@page seat-a4-p { size: A4 portrait; margin: 0.35in; }
@page seat-tabloid-l { size: 17in 11in; margin: 0.35in; }
@page seat-tabloid-p { size: 11in 17in; margin: 0.35in; }
@page seat-a3-l { size: A3 landscape; margin: 0.35in; }
@page seat-a3-p { size: A3 portrait; margin: 0.35in; }
@media print {
  body.print-seating .seat-print-page.landscape.paper-letter { page: seat-letter-l; height: 7.75in; } body.print-seating .seat-print-list.landscape.paper-letter { page: seat-letter-l; }
  body.print-seating .seat-print-page.portrait.paper-letter { page: seat-letter-p; height: 10.25in; } body.print-seating .seat-print-list.portrait.paper-letter { page: seat-letter-p; }
  body.print-seating .seat-print-page.landscape.paper-a4 { page: seat-a4-l; height: 7.52in; } body.print-seating .seat-print-list.landscape.paper-a4 { page: seat-a4-l; }
  body.print-seating .seat-print-page.portrait.paper-a4 { page: seat-a4-p; height: 10.94in; } body.print-seating .seat-print-list.portrait.paper-a4 { page: seat-a4-p; }
  body.print-seating .seat-print-page.landscape.paper-tabloid { page: seat-tabloid-l; height: 10.25in; } body.print-seating .seat-print-list.landscape.paper-tabloid { page: seat-tabloid-l; }
  body.print-seating .seat-print-page.portrait.paper-tabloid { page: seat-tabloid-p; height: 16.25in; } body.print-seating .seat-print-list.portrait.paper-tabloid { page: seat-tabloid-p; }
  body.print-seating .seat-print-page.landscape.paper-a3 { page: seat-a3-l; height: 10.94in; } body.print-seating .seat-print-list.landscape.paper-a3 { page: seat-a3-l; }
  body.print-seating .seat-print-page.portrait.paper-a3 { page: seat-a3-p; height: 15.79in; } body.print-seating .seat-print-list.portrait.paper-a3 { page: seat-a3-p; }
}
