/* BALIVIP venue planner. Layout, sizes and motion follow docs/vow-audit/SPEC.md; colours, type and
   radii are BALIVIP's own (balivip-web skill, SPEC section 16). No invented colours: every tint below
   is one of the seven tokens at an alpha. */
:root {
  --cream: #f4f2ed; --night: #0c0f14; --umber: #2b2724; --gold: #c9a25c; --muted: #6b645c; --stone: #b4ada3; --hair: #dddddd;
  --white: #ffffff; --umber-2: #1a1815; --gold-deep: #a8894e;
  --ink: var(--umber); --primary: var(--night); --primary-hover: var(--umber); --on-primary: var(--cream);
  --tint-1: rgba(43, 39, 36, 0.045); --tint-2: rgba(43, 39, 36, 0.08); --tint-3: rgba(43, 39, 36, 0.13);
  --gold-1: rgba(201, 162, 92, 0.12); --gold-2: rgba(201, 162, 92, 0.24);
  --warn: var(--gold-deep); --remove: var(--muted);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", -apple-system, "Segoe UI", Arial, sans-serif;
  --r-btn: 3px; --r-card: 16px; --r-pill-s: 18px; --r-pill: 22px;
  --sh-toolbar: 0 4px 24px rgba(12, 15, 20, 0.07); --sh-exp: 0 4px 30px rgba(12, 15, 20, 0.13); --sh-pill: 0 2px 15px rgba(12, 15, 20, 0.19);
  --sh-dialog: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --t: background-color 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
  --header: 83px; --panel: 310px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--cream); color: var(--ink); font: 400 16px/24px var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: var(--t); }
button:disabled { cursor: default; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.panel :is(input, select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0; }
em { font-style: italic; font-weight: 400; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 17px; border-radius: var(--r-btn); border: 0; font: 500 14px/1.2 var(--sans); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.secondary { background: var(--tint-2); color: var(--primary); }
.btn.secondary:hover:not(:disabled) { background: var(--tint-3); }
.btn.full { width: 100%; }
.btn.small { min-height: 0; padding: 8px; font-size: 12px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; color: var(--ink); }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field > span { color: var(--ink); }
.input, .select, textarea.input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--hair); border-radius: var(--r-btn); background: var(--white); font-size: 14px; color: var(--ink); }
textarea.input { height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 32px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b645c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* ---------- shell ---------- */
.app { display: flex; flex-direction: column; height: 100dvh; min-height: 600px; overflow: hidden; }
.top { height: var(--header); flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 30px; background: var(--cream); border-bottom: 1px solid var(--hair); position: relative; z-index: 20; }
.logo { display: flex; align-items: center; gap: 23px; text-decoration: none; color: var(--ink); width: max-content; }
.logo-mark { display: grid; justify-items: center; gap: 2px; }
.logo-word { font: 500 27px/1 var(--serif); letter-spacing: 0.32em; margin-right: -0.32em; }
.logo-sub { font: 400 8px/1 var(--sans); letter-spacing: 0.42em; margin-right: -0.42em; color: var(--muted); }
.logo-tag { font: 400 10px/1.6 var(--sans); letter-spacing: 2px; text-transform: uppercase; border-left: 1px solid var(--hair); padding-left: 18px; width: 88px; color: var(--muted); }
.couple { justify-self: center; display: grid; justify-items: center; gap: 5px; background: none; border: 0; padding: 0 8px; min-width: 135px; min-height: 48px; }
.couple-name { font: 500 22px/1.1 var(--serif); }
.couple-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1; letter-spacing: 0.5px; color: var(--muted); }
.couple-date svg.i { width: 13px; height: 13px; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; font-size: 12px; color: var(--muted); }
.save-state svg.i { width: 13px; height: 13px; }
.save-state.warn { color: var(--warn); }
.export { height: 45px; min-width: 100px; }
.workspace { flex: 1; display: flex; min-height: 0; position: relative; }

/* ---------- panel ---------- */
.panel { width: var(--panel); flex: none; display: flex; flex-direction: column; background: var(--cream); border-right: 1px solid var(--hair); min-height: 0; position: relative; z-index: 6; }
.panel-intro { padding: 28px 24px 22px; flex: none; }
.panel-intro h1 { font: 500 29px/1.1 var(--serif); letter-spacing: -1px; margin: 16px 0 14px; }
.counts { display: flex; gap: 12px; font-size: 12px; line-height: 1.4; color: var(--muted); margin: 0; }
.counts .uns { color: var(--ink); }
.panel-close { display: none; }
.tabs { display: flex; gap: 9px; height: 45px; flex: none; padding: 0 18px; border-bottom: 1px solid var(--hair); }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; color: rgba(43, 39, 36, 0.6); padding: 0; }
.tabs button svg.i { width: 15px; height: 15px; }
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--gold); }
.panel-scroll { flex: 1; overflow-y: auto; padding: 23px 24px; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; min-height: 0; }
.restart { flex: none; border-top: 1px solid var(--hair); padding: 16px 24px 12px; display: grid; gap: 8px; justify-items: start; }
.restart p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.venue-foot { flex: none; border-top: 1px solid var(--hair); padding: 8px 24px; display: flex; gap: 12px; align-items: center; height: 63px; }
.arch-badge { width: 31px; height: 35px; flex: none; border: 1px solid var(--stone); border-radius: 15px 15px 0 0; display: grid; place-items: center; font: 500 20px/1 var(--serif); color: var(--muted); padding-top: 4px; }
.venue-foot .vname { font-size: 12px; line-height: 1.4; }
.venue-foot .vline { font-size: 10px; line-height: 1.4; color: var(--muted); }
.venue-foot select { display: block; margin-top: 0; line-height: 1.3; max-width: 220px; border: 0; background: none; padding: 0; font-size: 10px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* tables tab */
.welcome { background: var(--tint-1); border: 1px solid var(--hair); padding: 18px; margin-bottom: 25px; }
.welcome .eyebrow { letter-spacing: 1.8px; white-space: nowrap; }
.welcome h2 { font: 500 25px/1.2 var(--serif); margin: 12px 0 10px; }
.welcome p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.welcome .btn { min-height: 44px; font-size: 13px; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; }
.sec-title small { font-size: 11px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; justify-items: center; align-content: space-between; height: 154px; overflow: visible; padding: 12px 6px; background: var(--tint-1); border: 1px solid var(--hair); border-radius: var(--r-btn); font-size: 12px; line-height: 1.5; color: var(--ink); }
.tile:hover { background: var(--tint-2); border-color: var(--stone); }
.tile .lab { display: flex; align-items: center; gap: 8px; text-align: center; }
.tile .lab span { max-width: 48px; line-height: 1.5; }
.diagram { position: relative; width: 70px; height: 76px; transform: scale(0.85); margin-top: 4px; }
.diagram .tb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(201, 162, 92, 0.14); border: 1px solid var(--stone); }
.diagram .ch { position: absolute; left: 50%; top: 50%; width: 10px; height: 7px; margin: -3.5px 0 0 -5px; background: var(--white); border: 1px solid var(--stone); border-radius: 3px; }
.extra-shapes { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.ready { border-top: 1px solid var(--hair); margin-top: 22px; padding-top: 18px; }
.ready-row { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; border-bottom: 1px solid var(--hair); padding: 15px 0; text-align: left; min-height: 78px; }
.ready-row b { display: block; font: 500 18px/1.3 var(--serif); }
.ready-row small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.disc { border-top: 1px solid var(--hair); margin-top: 18px; }
.disc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0; cursor: pointer; font-size: 14px; }
.disc > summary::-webkit-details-marker { display: none; }
.disc > summary small { margin-left: auto; font-size: 11px; color: var(--muted); }
.disc > summary svg.i { transition: transform 0.2s; }
.disc[open] > summary svg.chev { transform: rotate(90deg); }
.seg { display: flex; background: var(--tint-2); border-radius: var(--r-btn); padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: var(--r-btn); padding: 9px 6px; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.help { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 14px 0; }
.stack { display: grid; gap: 8px; }
.couple-row { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 12px; }
.couple-row small { font-size: 12px; color: var(--muted); }
.inspector-empty { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hair); margin-top: 18px; padding-top: 18px; }
.inspector { border-top: 1px solid var(--hair); margin-top: 18px; padding-top: 18px; display: grid; gap: 12px; }
.inspector .head { display: flex; justify-content: space-between; align-items: center; }
.inspector .head .eyebrow { font-size: 9px; }
.inspector .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.tname { display: flex; align-items: baseline; gap: 10px; font: 500 27px/1.2 var(--serif); }
.tname input { font: inherit; border: 0; background: none; width: 150px; padding: 0; color: var(--ink); }
.irow { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; width: 90px; height: 30px; border: 1px solid var(--hair); border-radius: var(--r-btn); background: var(--white); }
.stepper button { width: 30px; height: 28px; border: 0; background: none; display: grid; place-items: center; }
.stepper output { flex: 1; text-align: center; font-size: 12px; color: var(--ink); }
.irow .select { width: 105px; height: 31px; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .field { font-size: 14px; }
.grid2 .input { height: 36px; }
.grid2.small .field { font-size: 11px; }
.rotate-btn { display: inline-flex; align-items: center; justify-content: space-between; width: 95px; height: 32px; padding: 0 10px; border: 1px solid var(--hair); border-radius: var(--r-btn); background: var(--white); font-size: 12px; }
.bnote { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.seated-link { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--tint-1); border: 0; border-radius: var(--r-btn); padding: 10px 9px; font-size: 12px; color: var(--muted); text-align: left; }
.seated-link span { flex: 1; }
.iactions { display: flex; justify-content: space-between; }
.iactions button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-size: 12px; padding: 4px 0; color: var(--muted); }
.iactions .remove { color: var(--remove); }
.venue-btn { margin: 18px 0 12px; height: 45px; }
.space-facts { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.space-facts dt { color: var(--ink); margin-top: 8px; }
.space-facts dd { margin: 0; }
.space-facts .src { font-size: 11px; color: var(--stone); }
.fill-row { display: flex; gap: 16px; margin: 6px 0 4px; }
.tip { display: flex; gap: 8px; font-size: 11px; line-height: 1.65; color: var(--stone); border-top: 1px solid var(--hair); padding-top: 12px; margin: 0 0 10px; }
.notes > summary { font-size: 14px; }
.notes.warn > summary { color: var(--warn); }
.notes p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; }
.note-btn { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--tint-1); border: 0; border-left: 2px solid var(--gold); padding: 12px 14px; margin: 0 0 8px; font-size: 13px; line-height: 1.6; }

/* guests tab */
.mode-switch { display: flex; height: 39px; background: var(--tint-2); border-radius: var(--r-btn); padding: 3px; margin-bottom: 22px; }
.mode-switch button { flex: 1; border: 0; background: none; border-radius: var(--r-btn); font-size: 13px; color: var(--muted); }
.mode-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.addbox { border: 1px solid var(--hair); border-radius: var(--r-btn); padding: 0 12px; margin-bottom: 28px; }
.addbox > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 43px; cursor: pointer; font-size: 14px; }
.addbox > summary::-webkit-details-marker { display: none; }
.addbox[open] { padding-bottom: 12px; }
.addbox label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.addbox .btn { margin-top: 18px; }
.gdetails > summary { font: 500 19px/1.3 var(--serif); padding: 18px 0 14px; }
.gdetails > summary::marker { font-size: 14px; }
.glist { list-style: none; margin: 14px 0 0; padding: 0; }
.grow { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--hair); padding: 12px 0; text-align: left; }
.grow b { display: block; font-weight: 400; font-size: 14px; }
.grow small { display: block; font-size: 12px; color: var(--muted); }
.badge { font-size: 11px; line-height: 1; border-radius: var(--r-pill); padding: 4px 7px; background: var(--gold-1); color: var(--ink); }
.badge.confirmed { background: var(--tint-2); }
.badge.declined { background: var(--tint-1); color: var(--muted); }
.countline { font-size: 12px; color: var(--muted); margin: 14px 0; }
.group-btn { width: 100%; min-height: 44px; border: 1px solid var(--stone); border-radius: var(--r-btn); background: none; font-size: 13px; }

/* mood tab */
.mood-head { display: flex; justify-content: space-between; align-items: center; }
.mood h2 { font: 500 25px/1.25 var(--serif); margin: 18px 0 10px; }
.mood > p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 22px; }
.cards { display: grid; gap: 10px; }
.ccard { text-align: left; background: none; border: 1px solid var(--hair); border-radius: var(--r-btn); padding: 15px; }
.ccard[aria-pressed="true"] { background: var(--tint-1); border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.strip { display: flex; gap: 3px; height: 26px; margin-bottom: 14px; }
.strip i { display: block; }
.ccard b { display: flex; justify-content: space-between; align-items: center; font: 500 20px/1.3 var(--serif); padding: 0 12px; }
.ccard small { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); padding: 2px 12px 0; }
.cdetail { margin-top: 26px; }
.cdetail h3 { font: 500 26px/1.2 var(--serif); margin: 10px 0; }
.cdetail p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 12px; }
.cdetail dl { margin: 0; }
.cdetail dt { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.cdetail dd { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.tod { margin-top: 28px; }
.tod label { font-size: 14px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: none; margin: 12px 0 6px; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--primary), var(--primary)) 0 / var(--fill, 50%) 100% no-repeat, var(--tint-2); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tint-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); margin-top: -5px; }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); }
.tod-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tod-labels span { display: inline-flex; gap: 5px; align-items: center; }
.tod-labels svg.i { width: 13px; height: 13px; }
.step-in { margin-top: 30px; }

/* ---------- stage and overlays ---------- */
.stage { flex: 1; position: relative; overflow: hidden; background: var(--umber-2); }
.canvas-host, .canvas-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.overlay-layer { position: absolute; inset: 0; pointer-events: none; }
.scene-heading { position: absolute; top: 28px; left: 28px; pointer-events: none; text-shadow: 0 1px 18px rgba(12, 15, 20, 0.45); z-index: 3; }
.scene-heading .eyebrow { font-size: 10px; color: var(--cream); }
.scene-heading h2 { font: 500 28px/1.3 var(--serif); letter-spacing: -0.6px; color: var(--white); margin: 6px 0 0; }
.toolbar { position: absolute; top: 32px; right: 25px; display: flex; gap: 2px; padding: 6px; background: rgba(244, 242, 237, 0.93); border-radius: var(--r-btn); box-shadow: var(--sh-toolbar); z-index: 4; }
.toolbar button, .music button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: var(--r-btn); background: none; color: var(--muted); }
.toolbar button:hover:not(:disabled), .music button:hover { background: var(--tint-2); }
.toolbar button[aria-pressed="true"] { background: var(--tint-2); color: var(--ink); }
.toolbar .div { width: 1px; background: var(--hair); margin: 4px 4px; }
.music { position: absolute; top: 88px; right: 25px; display: flex; gap: 2px; padding: 0; background: rgba(244, 242, 237, 0.92); border-radius: var(--r-btn); z-index: 4; }
.music button { width: 35px; height: 31px; }
.vol-pop { position: absolute; top: 37px; right: 0; width: 138px; display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(244, 242, 237, 0.96); border-radius: var(--r-btn); box-shadow: var(--sh-toolbar); color: var(--muted); }
.vol-pop input { width: 90px; accent-color: var(--primary); }
.pills { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pill { position: absolute; transform: translate(-50%, -50%); height: 27px; padding: 0 9px; display: inline-flex; align-items: center; white-space: nowrap; border-radius: var(--r-pill-s); border: 1px solid var(--hair); background: rgba(244, 242, 237, 0.89); color: var(--umber); font-size: 12px; box-shadow: var(--sh-pill); pointer-events: auto; transition: background-color 0.18s, box-shadow 0.18s; }
.pill.sel { background: var(--primary); color: var(--cream); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-2), var(--sh-pill); }
.pill.fx { background: rgba(12, 15, 20, 0.7); color: var(--cream); border-color: transparent; pointer-events: none; font-size: 11px; }
.stats { position: absolute; left: 27px; bottom: 25px; display: flex; align-items: baseline; color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); font-size: 11px; z-index: 3; pointer-events: none; }
.stats b { font-size: 15px; font-weight: 500; margin-right: 5px; }
.stats span + span { border-left: 1px solid rgba(244, 242, 237, 0.5); margin-left: 12px; padding-left: 12px; }
.stats .over { color: #f3c77e; }
.view-switch { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; height: 48px; background: rgba(244, 242, 237, 0.93); border-radius: var(--r-btn); z-index: 4; }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--r-btn); padding: 10px; font-size: 13px; background: none; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--primary); color: var(--cream); }
.exp-btn { position: absolute; right: 27px; bottom: 25px; display: inline-flex; align-items: center; gap: 18px; padding: 15px 17px; line-height: 20px; border: 0; border-radius: var(--r-btn); background: var(--cream); color: var(--umber); font-size: 13px; box-shadow: var(--sh-exp); z-index: 4; }
.exp-btn:hover { background: var(--white); }
.scene-note { position: absolute; left: 27px; bottom: 62px; max-width: 520px; margin: 0; font-size: 10px; line-height: 1.5; color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); z-index: 3; pointer-events: none; opacity: 0.85; }
.scene-note b { font-weight: 500; }
.scene-note svg.i { width: 11px; height: 11px; vertical-align: -1px; }
.attrib { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: var(--cream); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); z-index: 3; pointer-events: none; }
.guest-hover { position: absolute; padding: 9px 14px; border-radius: var(--r-pill-s); border: 1px solid var(--hair); background: var(--cream); font-size: 14px; max-width: 210px; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; z-index: 8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--night); color: var(--cream); z-index: 30; }
.loading .mono { font: 500 64px/1 var(--serif); animation: breathe 2s ease-in-out infinite; color: var(--gold); }
.loading p { margin: 0; font-size: 13px; letter-spacing: 2px; }
@keyframes breathe { 50% { opacity: 0.45; } }
.error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--cream); font: 500 22px/1.3 var(--serif); z-index: 31; }

/* garden seating */
.dock { position: absolute; top: 20px; left: 20px; width: 218px; padding: 12px 14px; background: rgba(244, 242, 237, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--r-card); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); z-index: 5; }
.dock-top { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.dock-top span { flex: 1; }
.dock-top button, .dock-mid button { border: 0; background: none; display: grid; place-items: center; padding: 4px; color: var(--muted); }
.dock-mid { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.dock-mid div { text-align: center; }
.dock-mid b { display: block; font: 500 21px/1.15 var(--serif); }
.dock-mid small { font-size: 11px; color: var(--muted); }
.markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.marker { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; pointer-events: auto; border: 0; transition: background-color 0.18s, box-shadow 0.18s; }
.marker.empty { background: rgba(12, 15, 20, 0.91); color: var(--cream); border: 1px dashed var(--gold); }
.marker.empty::after { content: "+"; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); color: var(--night); font-size: 11px; line-height: 14px; }
.marker.full { background: rgba(244, 242, 237, 0.93); color: var(--umber); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.marker .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--r-btn); background: var(--cream); color: var(--umber); font-size: 13px; font-weight: 400; max-width: 165px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; box-shadow: var(--sh-toolbar); }
.marker:hover .tip, .marker:focus-visible .tip { display: block; }
.app.cam-moving .markers { visibility: hidden; }

/* seating chart board */
.board { position: absolute; inset: 0; overflow-y: auto; padding: 26px 28px; background: rgba(244, 242, 237, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); z-index: 7; }
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.board-head h2 { font: 500 28px/1.3 var(--serif); margin: 10px 0 8px; }
.board-head p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 500px; margin: 0; }
.board-head .acts { display: flex; gap: 8px; }
.icon-btn { width: 45px; height: 45px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r-btn); color: var(--muted); }
.icon-btn:hover:not(:disabled) { background: var(--tint-2); }
.tray { background: var(--tint-2); border-radius: var(--r-card); padding: 14px 16px; margin: 20px 0 24px; }
.tray.drop { box-shadow: inset 0 0 0 2px var(--gold); }
.tray-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.tray-row span { display: inline-flex; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 124px; overflow-y: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--white); font-size: 13px; }
.chip i { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--tint-2); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--cream); border-color: var(--primary); }
.chip[aria-pressed="true"] i { background: rgba(244, 242, 237, 0.2); }
.highlight { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 20px; }
.highlight .select { width: 170px; height: 36px; }
.highlight small { font-size: 12px; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.tcard { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.tcard.wide { grid-column: 1 / -1; }
.tcard-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hair); font-size: 12px; letter-spacing: 1.2px; }
.tcard-head span { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); letter-spacing: 0; }
.tcard-head button { border: 0; background: none; padding: 2px; color: var(--muted); }
.orbit { position: relative; height: 290px; }
.tcenter { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(201, 162, 92, 0.14); border: 1px solid var(--stone); display: grid; place-content: center; text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.tcenter.sq { border-radius: 10px; }
.tcenter b { font: 500 30px/1.1 var(--serif); color: var(--ink); letter-spacing: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat { position: absolute; width: 84px; margin-left: -42px; margin-top: -26px; display: grid; justify-items: center; gap: 4px; border: 0; background: none; border-radius: var(--r-btn); padding: 2px; font-size: 12px; color: var(--muted); }
.seat i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; border: 1px dashed var(--stone); color: var(--stone); background: var(--white); transition: transform 0.18s, background-color 0.18s; }
.seat.full i { border: 0; background: var(--tint-2); color: var(--ink); }
.seat.full span { color: var(--ink); }
.seat.hl i { background: var(--gold); color: var(--night); outline: 3px solid var(--gold-2); }
.seat span { max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat.over { background: var(--gold-1); }
.seat.over i { background: var(--primary); color: var(--cream); transform: scale(1.12); }
.banquet { overflow-x: auto; padding: 18px; }
.banquet svg { display: block; margin: 0 auto; }
.banquet .bseat { cursor: pointer; }
.seatnames > summary { padding: 12px 16px; font-size: 14px; border-top: 1px solid var(--hair); cursor: pointer; }
.seatnames ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; margin: 0; padding: 0 16px 16px 36px; font-size: 13px; }

/* experience mode */
.app.experience .panel, .app.experience .top, .app.experience .scene-heading, .app.experience .toolbar, .app.experience .stats, .app.experience .view-switch, .app.experience .pills, .app.experience .scene-note, .app.experience .dock, .app.experience .markers { display: none !important; }
.app.experience .music { top: 24px; right: 24px; }
.app.experience #vp-exp, .app.experience .arrange-btn { display: none !important; }
.exp-ui > * { transition: opacity 0.45s, visibility 0.45s; }
.app.idle .exp-ui > *:not(.controls-pill):not(.caption) { opacity: 0; visibility: hidden; }
.caption { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); text-align: center; color: var(--cream); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 4; width: 90%; }
.caption .eyebrow { font-size: 10px; letter-spacing: 4px; color: var(--cream); font-weight: 400; }
.caption h2 { font: 500 36px/1.3 var(--serif); margin: 12px 0 8px; }
.caption p { font-size: 11px; letter-spacing: 3px; margin: 0; }
.tour { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; background: rgba(12, 15, 20, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(244, 242, 237, 0.14); border-radius: var(--r-card); z-index: 5; }
.tour button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--cream); padding: 11px 14px; font-size: 13px; border-radius: var(--r-btn); white-space: nowrap; }
.tour button:hover:not(:disabled) { background: rgba(244, 242, 237, 0.1); }
.keepsake-btn { position: absolute; top: 23px; right: 110px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 17px; border: 1px solid var(--gold-2); border-radius: var(--r-btn); background: rgba(244, 242, 237, 0.93); font-size: 13px; z-index: 5; }
.controls-pill { position: absolute; right: 24px; bottom: 24px; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill-s); border: 0; background: rgba(12, 15, 20, 0.47); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--cream); font-size: 12px; z-index: 6; }
.app.idle .controls-pill { display: inline-flex; }
.show-cap { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); text-align: center; color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); pointer-events: none; z-index: 5; }
.show-cap small { font-size: 12px; letter-spacing: 3px; }
.show-cap b { display: block; font: 500 36px/1.3 var(--serif); margin: 6px 0; }
.show-cap span { font-size: 14px; }
.app.showcasing .tour { bottom: 24px; }
.app.showcasing .caption, .app.showcasing .keepsake-btn { opacity: 0; }

/* ---------- venue editor ---------- */
.editor { position: absolute; inset: 0; background: var(--cream); z-index: 15; display: flex; flex-direction: column; }
.ed-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--hair); flex: none; }
.ed-head .eyebrow { font-size: 12px; }
.ed-head h2 { font: 500 28px/1.3 var(--serif); margin: 8px 0 0; }
.ed-head .acts { display: flex; gap: 8px; }
.ed-head .acts .btn { height: 45px; }
.ed-work { flex: 1; display: grid; grid-template-columns: 300px 1fr; min-height: 0; }
.ed-insp { overflow-y: auto; padding: 20px; border-right: 1px solid var(--hair); }
.ed-insp > details { border-bottom: 1px solid var(--hair); padding-bottom: 20px; margin-bottom: 14px; }
.ed-insp > details > summary { font: 500 19px/1.4 var(--serif); padding: 4px 0 10px; cursor: pointer; }
.ed-insp > details > summary::marker { font-size: 14px; }
.ed-insp p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.ed-insp .grid2 { margin: 12px 0; }
.ed-insp .grid2 .input { height: 41px; }
.ed-insp .seg { width: max-content; background: none; padding: 0; gap: 6px; }
.ed-insp .seg button { border: 1px solid var(--hair); padding: 9px 14px; flex: none; background: var(--white); }
.ed-insp .seg button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.measure-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 12px; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; }
.catalog { display: grid; gap: 8px; }
.cat-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-btn); font-size: 14px; text-align: left; }
.cat-btn:hover { border-color: var(--stone); }
.cat-btn[aria-current="true"] { background: var(--tint-2); border-color: var(--stone); }
.placed { margin: 16px 0 10px; }
.placed .eyebrow { margin-bottom: 8px; }
.obj h3 { font: 500 23px/1.3 var(--serif); margin: 18px 0 10px; }
.obj .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.obj .status { font-size: 12px; color: var(--warn); min-height: 18px; margin: 8px 0 0; }
.locked { font-size: 12px; color: var(--muted); }
.ed-plan { overflow-y: auto; padding: 18px; }
.ed-cap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.ed-cap .edit-link { justify-self: start; background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 4px 0 6px; font-size: 13px; color: var(--ink); }
.ed-cap .sp { justify-self: end; }
.ed-cap .sp.warn { color: var(--warn); }
.plan-svg { display: block; width: 100%; user-select: none; touch-action: none; }
.plan-svg .obj-g { cursor: grab; }
.plan-svg.measuring, .plan-svg.measuring .obj-g { cursor: crosshair; }
.ed-notes { border-top: 1px solid var(--hair); margin-top: 18px; padding-top: 14px; }
.ed-notes li { font-size: 13px; line-height: 1.6; color: var(--warn); }
.ed-notes ul { padding-left: 18px; margin: 0 0 10px; }
.ed-notes small { font-size: 12px; color: var(--muted); }
.ref-status { font-size: 12px; color: var(--muted); }

/* ---------- dialogs and toasts ---------- */
dialog { border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--cream); color: var(--ink); padding: 35px; box-shadow: var(--sh-dialog); max-width: calc(100vw - 32px); max-height: 88vh; overflow-y: auto; }
dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
dialog .x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); }
dialog h2 { font: 500 32px/1.2 var(--serif); margin: 12px 0 10px; }
dialog .desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.dlg-std { width: 490px; }
.dlg-std form, .dlg-stack { display: grid; gap: 14px; }
.dlg-std .field + .field { margin-top: 20px; }
.dlg-picker { width: 458px; padding: 28px; }
.dlg-picker h2 { font-size: 28px; margin-top: 0; }
.plist { list-style: none; margin: 14px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.plist button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--hair); background: none; font-size: 14px; text-align: left; }
.plist button:hover { background: var(--tint-1); }
.plist small { font-size: 12px; color: var(--muted); }
.dlg-profile { width: 680px; padding: 30px; }
.dlg-profile h2 { font-size: 28px; margin: 0 0 8px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; margin-top: 10px; }
.pgrid .span { grid-column: 1 / -1; }
.pgrid fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.pgrid legend { font-size: 14px; margin-bottom: 6px; }
.notice { font-size: 13px; line-height: 1.6; color: var(--warn); margin: 0; }
.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pfoot .left { display: flex; gap: 14px; }
.dlg-group { width: 478px; padding: 30px 24px; }
.dlg-group h2 { font-size: 28px; }
.glist2 { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--hair); margin: 14px 0; }
.glist2 label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 6px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.glist2 label small { display: block; font-size: 12px; color: var(--muted); }
.glist2 input { accent-color: var(--primary); margin-top: 4px; }
.dlg-share { width: 618px; padding: 30px; }
.dlg-share h2 { font: 600 19px/1.3 var(--sans); }
.share-box { background: var(--tint-1); padding: 20px 18px; margin: 20px 0; display: grid; gap: 6px; justify-items: start; font-size: 14px; }
.share-box b { font-weight: 400; font-size: 16px; }
.owner-note { font-size: 12px; color: var(--muted); }
.dlg-export { width: 490px; }
.opt { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 16px; margin-bottom: 14px; text-align: left; background: var(--tint-1); border: 1px solid var(--hair); border-radius: var(--r-btn); }
.opt:hover { background: var(--tint-2); }
.opt span { flex: 1; }
.opt b { display: block; font-size: 14px; font-weight: 500; }
.opt small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.progress { font-size: 13px; color: var(--muted); min-height: 20px; margin: 4px 0 8px; }
.foot-note { font-size: 12px; color: var(--muted); margin: 0; }
.dlg-keep { width: 880px; padding: 30px; }
.keep-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }
.keep-grid h2 { font-size: 38px; }
.keep-grid p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.keep-grid img, .keep-grid canvas { width: 100%; height: auto; display: block; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); }
.keep-grid small { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: 356px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border-radius: var(--r-btn); border: 1px solid var(--hair); background: var(--white); font-size: 13px; line-height: 1.5; box-shadow: var(--sh-dialog); pointer-events: auto; animation: tin 0.2s ease-out; }
.toast.success { background: var(--cream); border-color: var(--stone); }
.toast.error { background: var(--cream); border-color: var(--gold); color: var(--umber); }
.toast.error svg.i { color: var(--gold-deep); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.arrange-btn { display: none; }

/* embed: the block on a venue page */
.embed .logo { visibility: hidden; }

/* ---------- breakpoints ---------- */
@media (min-width: 1500px) {
  :root { --panel: 330px; }
  .panel-intro { padding-top: 40px; }
  .panel-scroll { padding: 26px 29px; }
  .scene-heading { top: 40px; left: 40px; }
  .scene-heading h2 { font-size: 43px; }
}
@media (max-width: 1150px) {
  :root { --panel: 280px; }
  .panel-intro, .panel-scroll, .restart, .venue-foot { padding-left: 20px; padding-right: 20px; }
  .stats { display: none; }
  .scene-heading h2 { font-size: 30px; }
  .toolbar { top: 22px; right: 18px; }
  .music { top: 75px; right: 18px; }
  .view-switch, .exp-btn { bottom: 18px; }
  .exp-btn { right: 18px; padding: 15px 12px; font-size: 11px; }
  .top-right { gap: 10px; }
  .tgrid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .dock { width: 235px; }
}
@media (max-width: 900px) {
  .ed-work { grid-template-columns: 220px 1fr; }
  .ed-head { padding: 18px; }
  .ed-head h2 { font-size: 23px; }
}
@media (max-width: 760px) {
  :root { --header: 72px; }
  .top { grid-template-columns: auto 1fr auto; padding: 0 18px; }
  .logo-tag { display: none; }
  .logo-word { font-size: 20px; }
  .couple-name { font-size: 17px; }
  .couple-date { font-size: 10px; }
  .save-state { display: none; }
  .export { min-width: 0; width: 45px; padding: 0; }
  .export span { display: none; }
  .panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); transform: translateX(-102%); transition: transform 0.3s; box-shadow: 0 0 60px rgba(0, 0, 0, 0.35); z-index: 25; }
  .app.panel-open .panel { transform: none; }
  .panel-close { display: grid; place-items: center; position: absolute; top: 18px; right: 14px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); }
  .panel-intro { padding: 30px 20px 18px; }
  .panel-intro h1 { font-size: 27px; }
  .arrange-btn { display: inline-flex; position: absolute; left: 50%; bottom: 138px; transform: translateX(-50%); align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--gold-2); border-radius: var(--r-btn); background: var(--cream); font-size: 14px; z-index: 5; box-shadow: var(--sh-exp); white-space: nowrap; }
  .scene-heading { top: 24px; left: 20px; }
  .toolbar { flex-direction: column; top: 24px; right: 18px; padding: 4px; }
  .toolbar button { width: 28px; height: 29px; }
  .toolbar .div { display: none; }
  .music { top: 175px; right: 18px; }
  .music button { width: 36px; }
  .view-switch { bottom: 78px; width: calc(100% - 72px); max-width: 245px; }
  .view-switch button { flex: 1; justify-content: center; }
  .exp-btn { left: 50%; right: auto; transform: translateX(-50%); bottom: 18px; width: calc(100% - 72px); max-width: 245px; min-height: 44px; justify-content: center; padding: 12px; font-size: 13px; }
  .scene-note { left: 20px; right: auto; top: 104px; bottom: auto; max-width: 260px; pointer-events: auto; cursor: pointer; padding: 5px 10px; border-radius: var(--r-pill-s); background: rgba(12, 15, 20, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-shadow: none; opacity: 1; }
  .scene-note .long, .scene-note br { display: none; }
  .scene-note.open .long { display: inline; }
  .scene-note.open br { display: block; }
  .tgrid { grid-template-columns: 1fr; }
  .board { padding: 20px 16px; }
  .dock { width: 210px; top: 16px; left: 16px; }
  .tour { flex-wrap: wrap; justify-content: center; width: calc(100% - 32px); bottom: 90px; }
  .caption h2 { font-size: 32px; }
  .keepsake-btn { right: 104px; top: 22px; padding: 12px 14px; }
  .exp-ui .exp-btn { left: auto; right: 16px; transform: none; width: auto; }
  .keep-grid { grid-template-columns: 1fr; }
  dialog { padding: 24px; }
}
@media (max-width: 600px) {
  .ed-work { display: flex; flex-direction: column; overflow-y: auto; }
  .ed-plan { order: -1; overflow: visible; flex: none; }
  .ed-insp { overflow: visible; border-right: 0; }
  .ed-head { position: sticky; top: 0; background: var(--cream); z-index: 2; }
  .ed-head .acts { flex-direction: column; }
  .ed-head .acts .btn span { display: none; }
  .ed-head .acts .btn.undo-btn .lbl { display: none; }
  .catalog { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 2026-10-10 simplification: one bar on top, one bar at the bottom, nothing else asks for attention.
   Matches the couple portal (balivip-sunny portal-nav.css): cream bar, hairline, 104 px logo, small caps. ---------- */
:root { --header: 64px; }
.top { grid-template-columns: auto 1fr auto; gap: 24px; padding: 0 24px; border-bottom: 1px solid rgba(43, 39, 36, 0.14); }
.logo img { width: 104px; height: auto; display: block; }
.switch { justify-self: center; display: flex; align-items: center; gap: 14px; min-width: 0; }
.venue-pick { position: relative; display: inline-flex; align-items: center; }
.venue-pick select { appearance: none; border: 0; background: none; font: 500 20px/1.2 var(--serif); color: var(--ink); padding: 4px 22px 4px 2px; cursor: pointer; max-width: 260px; text-overflow: ellipsis; }
.venue-pick svg.i { position: absolute; right: 2px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--tint-2); max-width: 52vw; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 6px 14px; font: 400 13px/1.2 var(--sans); color: var(--muted); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 15, 20, 0.12); }
.top-right { gap: 14px; }
.btn.quiet { min-height: 34px; padding: 7px 14px; border: 1px solid rgba(43, 39, 36, 0.2); background: none; color: var(--ink); font-size: 13px; border-radius: 8px; }
.btn.quiet:hover { background: var(--tint-1); }

/* less: the welcome card, the big titles, music, extra camera buttons and the footer venue line go */
.welcome, .panel-intro h1, .panel-intro .eyebrow, .scene-heading, .music, .venue-foot, .stats, #vp-figures, #vp-zoom-in, #vp-zoom-out, .toolbar .div, .tabs [data-tab="mood"] { display: none !important; }
.panel-intro { padding: 16px 24px 10px; }
.toolbar { top: 16px; right: 16px; padding: 4px; border-radius: 10px; background: rgba(244, 242, 237, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.scene-note { opacity: 0.75; }

/* the one control bar: view, time of day, mood */
.bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 14px; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(244, 242, 237, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 30px rgba(12, 15, 20, 0.16); max-width: calc(100% - 32px); }
.bar .view-switch { position: static; transform: none; height: auto; padding: 3px; gap: 2px; background: var(--tint-2); border-radius: 10px; }
.bar .view-switch button { border-radius: 8px; padding: 7px 12px; font-size: 13px; }
.bar .view-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 15, 20, 0.12); }
.bar .view-switch button svg.i { display: none; }
.bar-div { width: 1px; height: 22px; background: rgba(43, 39, 36, 0.14); }
.bar-tod { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.bar-tod input { -webkit-appearance: none; appearance: none; width: 140px; height: 18px; background: none; margin: 0; }
.bar-tod input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e9c98f, #2b2724); }
.bar-tod input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e9c98f, #2b2724); }
.bar-tod input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 1px 4px rgba(12, 15, 20, 0.35); margin-top: -7px; }
.bar-tod input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 1px 4px rgba(12, 15, 20, 0.35); }
.bar-moods { display: inline-flex; gap: 8px; }
.bar-moods button { width: 26px; height: 26px; padding: 2px; border-radius: 50%; border: 1.5px solid transparent; background: none; }
.bar-moods button i { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(43, 39, 36, 0.15); }
.bar-moods button[aria-checked="true"] { border-color: var(--ink); }
.exp-btn { bottom: 22px; border-radius: 10px; }
.app.experience .bar, .app.site .bar { display: none !important; }
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; padding: 0 14px; }
  .top-right .save-state { display: none; }
  .switch { justify-self: stretch; gap: 8px; }
  .venue-pick select { font-size: 17px; max-width: 160px; }
  .seg { max-width: 46vw; }
  .bar { bottom: 74px; gap: 10px; }
  .bar-tod input { width: 96px; }
}
.cer { display: grid; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); margin-bottom: 18px; }
.cer-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cer-count span { display: grid; justify-items: center; }
.cer-count b { font: 500 44px/1 var(--serif); }
.cer-count small { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.cer-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43, 39, 36, 0.2); background: var(--white); display: grid; place-items: center; }
.cer-btn:hover:not(:disabled) { background: var(--tint-1); }
.save-state:empty, .save-state:has(span:empty) svg { display: none; }
.how summary { cursor: pointer; font-size: 12px; color: var(--gold-deep); list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how .src { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }
.bar-moods .vis-add { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed rgba(43, 39, 36, 0.35); background: none; display: grid; place-items: center; color: var(--muted); padding: 0; }
.bar-moods .vis-add svg.i { width: 13px; height: 13px; }
.vis-dlg .vd-files { font-size: 13px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: center; }
/* the first-visit Pinterest invitation: Pinterest's badge large, unaltered, with clear space around it */
.dlg-pin { width: min(520px, calc(100vw - 32px)); }
.vis-dlg.is-welcome { text-align: center; justify-items: center; }
.vis-dlg.is-welcome .field, .vis-dlg.is-welcome .btn { width: 100%; text-align: left; }
.vis-dlg.is-welcome .help { justify-self: start; }
.pin-hero { display: grid; place-items: center; width: 132px; height: 132px; margin: 4px auto 8px; border-radius: 50%; background: #fff; box-shadow: 0 12px 32px rgba(43, 39, 36, 0.12); }
.pin-badge { width: 88px; height: 88px; display: block; }
.vis-dlg.is-welcome h2 { max-width: 16ch; margin-inline: auto; }
.vis-dlg .vd-later { justify-self: center; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .pin-hero { width: 104px; height: 104px; } .pin-badge { width: 68px; height: 68px; } }
.vis-dlg .vd-status { min-height: 20px; font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.vs { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); margin-bottom: 18px; }
.vs-head { display: flex; justify-content: space-between; align-items: center; }
.vs-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.vs-board img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.vs-pal { display: flex; gap: 6px; }
.vs-pal i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 39, 36, 0.12); }
.vs-row { display: grid; gap: 6px; }
.vs-row small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.vs-row span { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-row i { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--tint-2); }
.vs-adds ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.bar .view-switch button { white-space: nowrap; }
body.embed .bar { gap: 10px; padding-right: 10px; }
body.embed .bar-tod input { width: 100px; }
body.embed .exp-btn { display: none; }
/* too many guests: the space says so plainly and offers the ones that fit */
.over { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(12, 15, 20, 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 16px; }
.over-card { max-width: 440px; background: var(--cream); border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(12, 15, 20, 0.3); display: grid; gap: 10px; }
.over-card .eyebrow { color: #a8452f; }
.over-card h3 { font: 500 24px/1.2 var(--serif); margin: 0; }
.over-card p { margin: 0; font-size: 14px; color: var(--muted); }
.over-sub { color: var(--ink) !important; }
.over-alts { display: flex; flex-wrap: wrap; gap: 8px; }

/* lighter panel (Temi audit principles: small pills not full-width blocks, rare options folded, less copy) */
.tiles { display: flex !important; flex-wrap: wrap; gap: 6px; grid-template-columns: none !important; }
.tiles .tile { display: inline-flex; align-items: center; gap: 4px; min-height: 0; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(43, 39, 36, 0.18); background: var(--white); aspect-ratio: auto; width: auto; }
.tiles .tile .diagram { display: none; }
.tiles .tile .lab { display: inline-flex; flex-direction: row-reverse; gap: 4px; align-items: center; font-size: 13px; position: static; padding: 0; }
.tiles .tile .lab svg.i { width: 13px; height: 13px; }
.tiles .tile:hover { background: var(--tint-1); }
.ready { display: flex; flex-wrap: wrap; gap: 6px; }
.ready > .eyebrow { width: 100%; }
.ready .ready-row { display: inline-flex; width: auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(43, 39, 36, 0.18); background: var(--white); font-size: 13px; }
.ready .ready-row small, .ready .ready-row svg.i { display: none; }
.ready .ready-row b { font: 400 13px var(--sans); }
.tip, .venue-btn, .extra-shapes, .sec-title small { display: none !important; }
.inspector .head .dot { display: none; }
details.exact summary { cursor: pointer; font-size: 12px; color: var(--gold-deep); list-style: none; margin: 4px 0; }
details.exact summary::-webkit-details-marker { display: none; }
.panel-scroll { padding: 18px 22px; }
.sec-title { margin-bottom: 8px; }
.ready .ready-row, .tiles .tile { min-height: 0 !important; height: 32px !important; align-items: center !important; justify-content: center; text-align: center; flex: none; }
.ready .ready-row > span { display: inline; }
.tiles .tile .lab > span { white-space: nowrap; }

/* ---------- minimal scene controls (2026-10-17, with js/minimal.js) ---------- */
.vpm-btn { display: none; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 13px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.vpm-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vpm-btn:hover { background: var(--tint-2); }
.vpm-btn:focus-visible, .vpm-sheet button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vpm #vpm-more { display: inline-flex; }
.vpm .bar-moods, .vpm #vp-zoom-in, .vpm #vp-zoom-out, .vpm .toolbar .div { display: none; }  /* colours live in Mood; the wheel and pinch zoom */
.vpm-veil { position: absolute; inset: 0; z-index: 30; background: rgba(12, 15, 20, 0); transition: background 0.2s; }
.vpm-veil.on { background: rgba(12, 15, 20, 0.28); }
.vpm-sheet { position: absolute; right: 22px; bottom: 84px; z-index: 31; width: 280px; padding: 8px; border-radius: 16px; background: rgba(244, 242, 237, 0.97); box-shadow: 0 20px 60px rgba(12, 15, 20, 0.3); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vpm-sheet.on { opacity: 1; transform: none; }
.vpm-sheet ul { list-style: none; margin: 0; padding: 0; }
.vpm-sheet button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 400 15px var(--sans); text-align: left; cursor: pointer; }
.vpm-sheet button:hover:not(:disabled) { background: var(--tint-2); }
.vpm-sheet button:disabled { color: var(--muted); opacity: 0.55; cursor: default; }
.vpm-sheet svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vpm-grab { display: none; }
@media (max-width: 760px) {
  /* phone: three controls on the scene, nothing else */
  .vpm .toolbar, .vpm .music, .vpm .arrange-btn, .vpm #vp-exp, .vpm .bar-tod, .vpm .bar-div, .vpm .top-right .export { display: none !important; }
  .vpm #vpm-tod { display: inline-flex; }
  .vpm .bar { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 4px; padding: 5px; border-radius: 14px; max-width: calc(100% - 24px); }
  .vpm .bar .view-switch button { padding: 8px 12px; }
  .vpm .scene-note { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 12px; max-width: calc(100% - 24px); opacity: 0.85; }
  body.embed .logo { display: none; }
  body.embed .top { grid-template-columns: 1fr; padding: 0 12px; }
  body.embed .switch { justify-content: space-between; }
  body.embed .seg { max-width: 58vw; }
  .vpm-sheet { left: 0; right: 0; bottom: 0; width: auto; padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .vpm-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(43, 39, 36, 0.2); margin: 4px auto 8px; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  /* tablet: Export lives in More, so the header holds one row and never sits on the panel */
  .vpm .top-right .export { display: none; }
  .vpm .top { grid-template-columns: auto 1fr auto; }
}
/* space tabs: a soft fade where more tabs sit past the edge (js/minimal.js sets the classes) */
.seg.vpm-fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.seg.vpm-fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.seg.vpm-fade-l.vpm-fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* ---------- Look: one menu for the flowers and the table linen (2026-10-20, with js/minimal.js) ---------- */
.vpm #vpm-look { display: inline-flex; }
.vpm-look { position: absolute; right: 22px; bottom: 84px; z-index: 31; width: 520px; max-width: calc(100% - 44px); padding: 16px 0 16px; border-radius: 22px; background: rgba(244, 242, 237, 0.97); box-shadow: 0 20px 60px rgba(12, 15, 20, 0.3); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.vpm-look.on { opacity: 1; transform: none; }
.vpm-look-head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 0 20px 12px; }
.vpm-look-head p { margin: 0; font: 500 22px/1.2 var(--serif); color: var(--ink); }
.vpm-look-head span { grid-column: 1; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.vpm-look-x { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 18px; background: none; color: var(--ink); cursor: pointer; }
.vpm-look-x:hover { background: var(--tint-2); }
.vpm-look-x svg, .vpm-look-pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vpm-look-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 20px; scrollbar-width: none; }
.vpm-look-row::-webkit-scrollbar { display: none; }
.vpm-look-row > button { flex: 0 0 148px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 8px 12px; border: 1px solid rgba(43, 39, 36, 0.12); border-radius: 16px; background: #fbfaf7; color: var(--ink); text-align: left; cursor: pointer; scroll-snap-align: start; transition: border-color 0.15s, box-shadow 0.15s; }
.vpm-look-row > button[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.vpm-look-row > button:focus-visible, .vpm-look-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vpm-look-row b { margin-top: 4px; font: 500 18px/1.15 var(--serif); }
.vpm-look-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 12px/1.35 var(--sans); color: var(--muted); }
.vpm-look-row small em { display: block; font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0.7; }
/* the swatch: the cloth across the table, the flowers sitting on it */
.vpm-look-sw { position: relative; display: block; height: 64px; border-radius: 12px; background: var(--l); box-shadow: inset 0 0 0 1px rgba(43, 39, 36, 0.08); overflow: hidden; }
.vpm-look-sw i { position: absolute; bottom: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--f); box-shadow: 0 2px 6px rgba(12, 15, 20, 0.18); }
.vpm-look-sw i:nth-child(1) { left: 40px; }
.vpm-look-sw i:nth-child(2) { left: 56px; bottom: 24px; width: 20px; height: 20px; background: var(--p); }
.vpm-look-sw i:nth-child(3) { left: 68px; width: 16px; height: 16px; background: var(--g); }
.vpm-look-pin { justify-content: center; align-items: center !important; text-align: center !important; border-style: dashed !important; }
.vpm-look-pin svg { width: 24px; height: 24px; margin: 8px auto 4px; }
.vpm-look .vpm-grab { display: none; }
/* decor kinds under the looks (2026-10-21): the sheet scrolls, its head stays */
.vpm-look { max-height: min(72%, 640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vpm-look-head { position: sticky; top: -16px; z-index: 1; padding-top: 4px; background: #f4f2ed; box-shadow: 0 8px 12px -12px rgba(12, 15, 20, 0.35); }
.vpm-dec { padding: 16px 0 0; }
.vpm-dec + .vpm-dec { border-top: 0; }
.vpm-dec-h { margin: 0 20px 8px; font: 500 10px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vpm-dec-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 4px; scroll-padding: 20px; scrollbar-width: none; }
.vpm-dec-row::-webkit-scrollbar { display: none; }
.vpm-dec-row > button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; max-width: 232px; min-height: 40px; padding: 8px 16px 8px 8px; border: 1px solid rgba(43, 39, 36, 0.12); border-radius: 22px; background: #fbfaf7; color: var(--ink); font: 400 13px/1.25 var(--sans); text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.vpm-dec-row > button:not(:has(.vpm-dec-sw)) { padding-left: 16px; }
.vpm-dec-row > button:hover { border-color: rgba(43, 39, 36, 0.32); }
.vpm-dec-row > button[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: #fff; }
.vpm-dec-row > button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vpm-dec-sw { display: inline-flex; flex: 0 0 auto; }
.vpm-dec-sw i { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(43, 39, 36, 0.12) inset, 0 1px 3px rgba(12, 15, 20, 0.14); }
.vpm-dec-sw i + i { margin-left: -6px; }
.vpm-dec-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .vpm .bar .vpm-btn { padding: 0 10px; }
  .vpm-look { left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .vpm-look .vpm-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(43, 39, 36, 0.2); margin: 4px auto 8px; }
  .vpm-look-row > button { flex-basis: 136px; }
  .vpm-look { max-height: 62%; }
  .vpm-look-head { top: -8px; }
}
@media (prefers-reduced-motion: reduce) { .vpm-look, .vpm-look-row > button { transition: none; } }
@media (max-width: 420px) { .vpm #vpm-more span { display: none; } .vpm #vpm-more { padding: 0 8px; } }

/* ---------- 2026-10-21 embed spacing pass (the planner inside /seating) ----------
   The card fits the window it is given: no 600 px floor, so the bottom bar and "Start a fresh plan" stay in view.
   Header: the venue and space tabs sit dead centre, the save state at the right.
   Panel: one chair count (the big counter), 4 px rhythm. Imagery credit moves top left, clear of the bar. */
body.embed .app { min-height: 0; }
body.embed .panel:has(.cer) .panel-intro { display: none; }
body.embed .panel-intro { padding: 16px 24px 8px; }
body.embed .panel-scroll { padding: 20px 24px; }
body.embed .cer { gap: 12px; padding-bottom: 20px; margin-bottom: 16px; }
body.embed .cer .help { margin: 4px 0 0; }
body.embed .space-facts { margin: 0; }
body.embed .space-facts dt { margin-top: 0; }
body.embed .restart { padding: 12px 24px 16px; gap: 4px; }
@media (min-width: 900px) {
  body.embed .top { grid-template-columns: 1fr auto 1fr; gap: 16px; }
  body.embed .top-right { justify-self: end; }
}
@media (min-width: 761px) {
  body.embed .scene-note { top: 16px; bottom: auto; left: 20px; right: auto; max-width: 360px; }
}
@media (max-width: 1150px) {
  body.embed .panel-intro, body.embed .panel-scroll, body.embed .restart { padding-left: 20px; padding-right: 20px; }
}

/* 2026-10-21 b: inside /seating the 3D view leads; a slimmer panel at desktop widths */
@media (min-width: 900px) {
  body.embed { --panel: 296px; }
}

/* ---------- 2026-10-21 scene pills: the label sits inside its pill ----------
   The old tile label kept max-width: 48px from the big diagram tiles, so
   "Round table" and "Square table" ran past the pill edge. Pills now size to
   their text, wrap to a new row when the panel is narrow, and share one height. */
.tiles, .ready { gap: 8px; }
.tiles .tile, .ready .ready-row { box-sizing: border-box; height: 32px !important; padding: 0 12px; white-space: nowrap; max-width: 100%; }
.tiles .tile .lab { gap: 4px; line-height: 1; }
.tiles .tile .lab > span { max-width: none; line-height: 1; white-space: nowrap; }
.tiles .tile .lab svg.i { flex: none; }
.ready .ready-row > span { display: inline-flex; align-items: center; }
.ready .ready-row b { line-height: 1; white-space: nowrap; }
