/* Round 7 (B): full-screen preview, site mode, seating by package, currencies, after sign-up briefs, pricing extras.
   Loaded after styles.css. Shell tokens (--ink, --paper, --tint, --line, --orange, --muted, --serif) come from there. */

/* ---------- preview button and the new-tab link in the demo toolbar ---------- */
.preview-button{display:inline-flex;align-items:center;gap:7px;font-weight:600}
.preview-ico{width:13px;height:10px;border:1.5px solid currentColor;border-radius:2px;position:relative;flex:none}
.preview-ico::after{content:'';position:absolute;left:2px;right:2px;bottom:-5px;height:1.5px;background:currentColor}
.tab-link{display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}

/* ---------- full-screen preview: slim bar, desktop or phone width ---------- */
.preview-bar{display:flex;align-items:center;gap:14px;margin-left:auto}
.device-switch{display:inline-flex;padding:3px;border-radius:6px;background:color-mix(in srgb,var(--ink) 8%,transparent)}
.frame-top .device-switch button{background:none;padding:6px 12px;border-radius:4px;font-size:11px;color:var(--ink)}
.frame-top .device-switch button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0000001a;font-weight:600}
.preview-tab{font-size:11px;color:var(--ink);border-bottom:1px solid currentColor;padding:4px 0;white-space:nowrap}
.demo-frame.previewing{display:flex;flex-direction:column}
.demo-frame.previewing .frame-top{padding:7px 14px;gap:12px;background:var(--paper)}
.demo-frame.previewing #return-button{background:var(--ink);color:var(--paper);font-weight:600;padding:8px 14px}
.demo-frame.previewing #demo-clock{display:none}
.demo-frame.previewing #guest-view{flex:1 0 auto}
.demo-frame.previewing.device-phone{background:color-mix(in srgb,var(--ink) 10%,var(--paper));overflow:hidden}
.demo-frame.previewing.device-phone #guest-view{flex:1 1 auto;width:390px;max-width:calc(100% - 24px);margin:14px auto;overflow-y:auto;overflow-x:hidden;border:10px solid #15161a;border-radius:34px;background:#fff;box-shadow:0 18px 50px #0003;overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:720px),(pointer:coarse){.frame-top .device-switch button{min-height:44px;padding:0 12px}.preview-tab{display:inline-flex;align-items:center;min-height:44px;border:0;text-decoration:underline;text-underline-offset:4px}.demo-frame.previewing #return-button{min-height:44px}}
@media(max-width:720px){
 .preview-bar{gap:8px}.preview-tab{display:none}
 .demo-frame.previewing .frame-dots,.demo-frame.previewing #preview-label{display:none}
 .demo-frame.previewing .frame-top{justify-content:space-between}
 .demo-frame.previewing #return-button{min-height:44px}
 .demo-frame.previewing.device-phone #guest-view{width:auto;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
}

/* ---------- site mode (site.html / index.html?site): only the couple's website, full page ---------- */
html.site-mode body{background:#fff}
html.site-mode body>:not(main):not(.toast):not(dialog):not(.site-header),html.site-mode main>:not(#demo),html.site-mode #demo>:not(#demo-frame),html.site-mode #demo-frame>:not(#guest-view){display:none!important}
html.site-mode main,html.site-mode #demo{padding:0;margin:0;max-width:none;border:0}
html.site-mode #demo-frame{border:0;border-radius:0;box-shadow:none;overflow:visible}
html.site-mode #guest-view{display:block!important;min-height:100vh}
html.site-mode #guest-view>.wedding-world{min-height:100vh}
html.site-mode .site-header{position:fixed;top:10px;right:10px;z-index:60;padding:0;margin:0;max-width:none;display:block}
html.site-mode .site-header>:not(nav),html.site-mode .site-header nav>:not(.lang-switch){display:none!important}
html.site-mode .site-header .lang-switch{background:#fffffff0;border-radius:22px;box-shadow:0 2px 10px #0002;padding:2px;display:inline-flex}

/* ---------- seating: package switch ---------- */
.seat-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 6px}
.seat-tiers button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:#fff;border:1px solid #d3dccf;border-radius:8px;padding:10px 12px;color:#2c4334;min-height:44px}
.seat-tiers button strong{font-size:13px}.seat-tiers button small{font-size:11px;color:#5f6f63}
.seat-tiers button[aria-pressed=true]{border-color:#375a3e;background:#e3eddf;box-shadow:inset 0 0 0 1px #375a3e}
.seat-tier-note{font-size:11px;color:#5f6f63;margin:0 0 16px}
/* R22 (decision 158): 'See it as' for free-trial couples, and the paid couples' upgrade line */
.seat-pv{margin:0 0 16px}
.seat-pv-label{font-size:12px;font-weight:600;color:#2c4334;margin:0 0 6px}
.seat-pv-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seat-pv-opt{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#fff;border:1px solid #d3dccf;border-radius:8px;padding:10px 12px;color:#2c4334;min-height:44px;font:inherit;cursor:pointer}
.seat-pv-opt strong{font-size:13px}.seat-pv-opt small{font-size:12px;line-height:1.35;color:#5f6f63}
.seat-pv-opt[aria-pressed=true]{border-color:#375a3e;background:#e3eddf;box-shadow:inset 0 0 0 1px #375a3e}
.seat-pv-opt[aria-pressed=true] small{color:#4f5e53}
.seat-pv-opt:focus-visible{outline:2px solid #375a3e;outline-offset:2px}
.seat-pv-note,.seat-pv-up{font-size:13px;line-height:1.45;color:#3f5245;background:#f6f1e3;border-radius:8px;padding:8px 12px;margin:8px 0 0;overflow-wrap:anywhere}
.seat-pv-up{margin:0 0 16px}
.seat-pv-note a,.seat-pv-up a{color:#2c5137;font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}

/* shared table drawing */
.tbl-svg{display:block;width:100%;height:100%;overflow:visible}
.tbl-top{fill:#f3efe6;stroke:#6d5b45;stroke-width:3}
.chair circle{fill:#fff;stroke:#8c9a8b;stroke-width:2.5}
.chair.taken circle{fill:#375a3e;stroke:#375a3e}
.chair text{fill:#fff;font:700 12px var(--sans);text-anchor:middle}

/* Pro: visual plan */
.vp{display:grid;grid-template-columns:minmax(180px,1fr) 3fr;gap:15px;align-items:start}
.vp-hint{font-size:11px;margin:14px 0 0}
.vp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.vp-table{background:#fff;border:1px solid #dce2d6;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:10px;transition:background .2s}
.vp-table.drag-over{background:#e4f0dd;outline:2px solid #497451}
.vp-fig{height:150px;display:flex;align-items:center;justify-content:center;padding:6px}
.vp-fig .tbl-svg{max-height:138px}
.vp-table h4{font-size:14px;margin:0}.vp-table h4 small{font-weight:400;color:#6a796d;font-size:11px;margin-left:4px}
.vp-names{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.vp-names li{display:inline-flex;align-items:center;gap:4px;font-size:11px;background:#f1f5ec;border:1px solid #dce2d6;border-radius:14px;padding:2px 4px 2px 10px}
.vp-names li.empty{background:none;border:0;padding:0;color:#6c7667}
.vp-names .small-button{border:0;background:none;min-height:26px;padding:0 6px;font-size:14px}
.vp-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto}
.vp-shapes{display:inline-flex;gap:4px}
.vp-shape{width:36px;height:34px;border:1px solid #c1cec0;border-radius:6px;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.vp-shape[aria-pressed=true]{background:#375a3e;border-color:#375a3e}
.vp-shape[aria-pressed=true] .shape-ico{border-color:#fff}
.shape-ico{display:block;border:2px solid #375a3e}
.shape-ico.round{width:16px;height:16px;border-radius:50%}.shape-ico.square{width:15px;height:15px;border-radius:2px}.shape-ico.long{width:22px;height:9px;border-radius:2px}
.vp-seats{display:inline-flex;align-items:center;gap:4px;font-size:11px}
.vp-seats .small-button{min-width:32px;font-size:15px;line-height:1}
.vp-seat-n{min-width:52px;text-align:center}
.vp-remove{margin-left:auto}
.vp-add,.fp .vp-add{display:grid;grid-template-columns:1.4fr 1fr .8fr auto;gap:9px;align-items:end}
.vp-add .button{background:#375a3e;color:#fff;padding:12px 15px}

/* Max: floor plan */
.fp-tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:12px}
.fp-rooms{display:flex;flex-wrap:wrap;gap:6px}
.fp-room-btn{border:1px solid #c1cec0;border-radius:18px;background:#fff;color:#2c4334;font-size:12px;padding:7px 13px;cursor:pointer;display:inline-flex;align-items:center;font-weight:500}
.fp-room-btn[aria-pressed=true]{background:#375a3e;color:#fff;border-color:#375a3e}
.fp-upload{position:relative;border-style:dashed}
.fp-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;margin:0}
.fp-opts{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fp-snap{display:flex;gap:8px;align-items:flex-start;font-weight:600;font-size:12px;max-width:300px}
.fp-snap input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#375a3e}
.fp-snap small{display:block;font-weight:400;color:#5f6f63;font-size:11px}
.fp-layout{display:grid;grid-template-columns:minmax(170px,1fr) 4fr;gap:15px;align-items:start}
.fp-wrap{overflow-x:auto;border-radius:10px;border:1px solid #d3dccf;background:#fbfaf6}
.fp-room{position:relative;width:100%;aspect-ratio:1000/700;min-width:560px;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}
.fp-art{position:absolute;inset:0;width:100%;height:100%}
.fp-upload-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.85}
.fp-gridline{stroke:#375a3e;stroke-opacity:.09;stroke-width:1}
.fp-wall{fill:#fffdf7;stroke:#2c4334;stroke-width:6}
.fp-wall.glass{fill:#f6fbf6}
.fp-beam{stroke:#8a6d4b;stroke-width:4;stroke-dasharray:2 12;opacity:.3}
.fp-door,.fp-window{fill:#c9e4d2;stroke:#2c4334;stroke-width:2}
.fp-scallop{fill:none;stroke:#2c4334;stroke-width:2;opacity:.45}
.fp-pole{fill:#2c4334}
.fp-glaze{stroke:#3f8f6c;stroke-width:1.5;opacity:.35}
.fp-plant{fill:#c9e4d2;stroke:#3f8f6c;stroke-width:3}
.fp-chandelier{fill:none;stroke:#c99a3a;stroke-width:3;stroke-dasharray:4 5}
.fp-zone{fill:#f1ead9;stroke:#a89a7c;stroke-width:2;stroke-dasharray:7 6}
.fp-zone.floor{fill:#ece4d1}.fp-zone.stage{fill:#e6e0ef;stroke:#7d6e9c}
.fp-label{font:600 20px var(--sans);fill:#5b5140;text-anchor:middle;letter-spacing:.02em}
.fp-label.small{font-size:16px;font-weight:500;fill:#6b6455}
.fp-table{position:absolute;touch-action:none;cursor:grab;border-radius:12px;outline:none}
.fp-table:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.fp-table.dragging{cursor:grabbing;z-index:5;filter:drop-shadow(0 8px 12px #0003)}
.fp-body{position:absolute;inset:0;rotate:var(--rot,0deg)}
.fp-table.selected .tbl-top{fill:#e3eddf;stroke:#375a3e;stroke-width:5}
.fp-table.drag-over .tbl-top{fill:#d2e3c8}
.fp-rot{position:absolute;left:50%;top:-32px;width:22px;height:22px;margin-left:-11px;border-radius:50%;background:#375a3e;border:3px solid #fff;box-shadow:0 1px 4px #0004;cursor:grab;touch-action:none}
.fp-rot::after{content:'';position:absolute;left:50%;top:16px;width:2px;height:18px;margin-left:-1px;background:#375a3e}
.fp-name{position:absolute;left:50%;top:50%;translate:-50% -50%;text-align:center;font:600 12px/1.1 var(--sans);color:#2c4334;pointer-events:none;white-space:nowrap;background:#fffdf7d9;padding:2px 5px;border-radius:4px}
.fp-name small{display:block;font-weight:400;font-size:10px;color:#5f6f63}
.fp-note{font-size:11px;margin:8px 0 0}
.fp-swipe{display:none;font-size:11px;margin:0 0 6px;color:#5f6f63}
@media(max-width:720px){.fp-swipe{display:block}}
.fp-tip{font-size:12px;margin:12px 0}
.fp-detail-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.fp-detail-head h4{margin:0}.fp-detail-head small{font-weight:400;color:#6a796d}
.fp-rotate-btns{display:inline-flex;gap:6px}
.fp-detail .vp-names{margin-bottom:12px}

@media(max-width:1050px){.vp,.fp-layout{grid-template-columns:1fr}.vp-add,.fp .vp-add{grid-template-columns:1fr 1fr}.vp-add label:first-child{grid-column:1/-1}}
@media(max-width:720px){
 .seat-tiers{gap:6px}.seat-tiers button{padding:8px}.seat-tiers button small{font-size:10px}
 .seat-pv-group{grid-template-columns:1fr;gap:6px}.seat-pv-opt{padding:8px 12px}
 .vp-grid{grid-template-columns:1fr}
 .vp-add .button{grid-column:1/-1;justify-self:start}
 .fp-room{min-width:600px}
 .fp-tools{flex-direction:column}
}
@media(max-width:720px),(pointer:coarse){
 .vp-shape{width:44px;height:44px}
 .vp-seats .small-button,.vp-names .small-button{min-width:44px;min-height:44px}
 .fp-room-btn{min-height:44px;padding:0 14px}
 .fp-snap{min-height:44px;align-items:center}.fp-snap input{width:22px;height:22px}
 .fp-rot{width:30px;height:30px;margin-left:-15px;top:-40px}
}
@media(prefers-reduced-motion:reduce){.vp-table{transition:none}}

/* ---------- currencies in the budget ---------- */
.fx-box{display:grid;gap:12px}
.fx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.fx-head h4{margin-bottom:4px}.fx-head .ex-small{margin:0;max-width:520px}
.fx-main{min-width:220px}
.fx-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.fx-row{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(200px,1.4fr) auto 1fr auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #dce2d6;border-radius:8px;background:#fbfcf9}
.fx-row.frozen{background:#eef3fa;border-color:#b9c7dd}
.fx-code{font-size:15px;display:flex;flex-direction:column}.fx-code small{font-weight:400;color:#6a796d;font-size:10px}
.fx-rate{display:flex;align-items:center;gap:6px;font-weight:500;font-size:12px;white-space:nowrap}
.fx-rate input{width:110px;margin:0;padding:8px}
.fx-rate input[readonly]{background:#eef1f4;color:#4d5868}
.fx-freeze{display:flex;align-items:center;gap:6px;font-weight:500;font-size:12px;white-space:nowrap}
.fx-freeze input{width:18px;height:18px;margin:0;accent-color:#375a3e}
.fx-src{color:#5f6f63;font-size:11px}
.fx-remove{font-size:15px}
.fx-actions{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}
.fx-add{display:flex;gap:9px;align-items:end;flex-wrap:wrap}
.fx-add label{min-width:220px}
.fx-add .button{background:#375a3e;color:#fff;padding:12px 15px}
.fx-source{margin:0}
.budget-table .b-name{display:block}
.budget-table .b-code{color:#6a796d;font-size:10px}
.budget-table .b-cur{margin-top:5px;width:auto;min-width:76px;padding:5px 8px;font-size:12px}
.budget-table .b-conv{display:block;color:#5f6f63;font-size:10px;margin-top:3px;white-space:nowrap}
.inline-add.has-cur{grid-template-columns:1.2fr 1fr 1fr .8fr auto}
@media(max-width:1050px){.fx-row{grid-template-columns:1fr 1fr;}.fx-row .fx-src{grid-column:1/-1}.fx-row .fx-remove{grid-row:1;grid-column:2;justify-self:end}}
@media(max-width:720px){
 .fx-main,.fx-add label,.fx-add{min-width:0;width:100%}
 .fx-row{grid-template-columns:1fr auto}.fx-rate{grid-column:1/-1;flex-wrap:wrap}.fx-rate input{flex:1 1 90px}.fx-freeze{grid-column:1/-1;min-height:44px}
 .fx-freeze input{width:22px;height:22px}
 .inline-add.has-cur{grid-template-columns:1fr 1fr}
 .budget-table .b-conv{white-space:normal}
}
@media(max-width:720px),(pointer:coarse){.fx-freeze{min-height:44px}.fx-freeze input{width:22px;height:22px}.budget-table .b-cur{min-height:44px;font-size:16px}.fx-row .small-button{min-width:44px;min-height:44px}}

/* ---------- after sign-up: briefs ---------- */
.brief-box .brief-buttons,.brief-done .brief-buttons{display:flex;flex-wrap:wrap;gap:8px}
.brief-status{margin:10px 0 0;color:#375a3e;font-weight:600}
.brief-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto}
.brief-form{display:grid;gap:4px}
.brief-form fieldset{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:12px 0}
.brief-form legend{font-size:13px;font-weight:600;padding:0 5px}
.brief-form label{margin:12px 0}
.brief-form fieldset label{margin:6px 0}
.brief-lead{font-size:13px;color:var(--muted);margin:0 0 4px}
.brief-pals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.brief-pals legend{grid-column:1/-1}
.brief-pal,.brief-langs label,.save-package label{display:flex;align-items:center;gap:10px;font-weight:500;font-size:13px;min-height:40px;cursor:pointer}
.brief-pal input,.brief-langs input,.save-package input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--ink)}
.brief-pal .chips{display:inline-flex;border-radius:5px;overflow:hidden;border:1px solid #0002;flex:none}
.brief-pal .chips i{width:16px;height:22px;display:block}
.brief-langs{display:flex;gap:24px;flex-wrap:wrap}.brief-langs legend{width:100%}
.brief-promise,.brief-due{background:var(--shell-card,#fbf9f3);border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.55;margin:4px 0 6px}
.brief-promise strong,.brief-due strong{display:block;margin-bottom:3px}
.brief-site{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.brief-site label{margin:4px 0}
.brief-uploads{display:grid;gap:6px;margin:8px 0}
.brief-file{position:relative;justify-self:start;border:1px dashed var(--ink);background:#fff;color:var(--ink);overflow:hidden}
.brief-file input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.brief-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.brief-thumb{position:relative;margin:0;width:96px;height:96px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.brief-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.brief-thumb .small-button{position:absolute;top:4px;right:4px;min-height:28px;padding:0 8px;background:#fffffff0}
.brief-form textarea{width:100%;border:1px solid #9faaa5;border-radius:5px;padding:11px 12px;font:inherit;margin-top:6px;resize:vertical}
.brief-form>.button{justify-self:start;margin-top:8px}
.brief-recap{margin:6px 0 10px;padding-left:20px;font-size:13px;line-height:1.7}
.brief-idea{font-family:var(--serif);font-style:italic}
.save-package{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin:12px 0;display:flex;flex-wrap:wrap;gap:4px 20px}
.save-package legend{font-size:13px;font-weight:600;padding:0 5px}
.save-package label{margin:0}
.save-package small{width:100%}
@media(max-width:720px){.brief-site{grid-template-columns:1fr}.brief-pals{grid-template-columns:1fr}.brief-dialog{max-height:calc(100dvh - 24px)}}
@media(max-width:720px),(pointer:coarse){.brief-pal,.brief-langs label,.save-package label{min-height:44px}.brief-pal input,.brief-langs input,.save-package input{width:22px;height:22px}.brief-form textarea{font-size:16px}.brief-thumb .small-button{min-width:44px;min-height:44px}}

/* ---------- pricing extras ---------- */
.tier-brief{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;font-size:12px;align-self:flex-start;text-align:left}
.pricing-theme .tier-brief{display:inline;min-height:0;margin:0;padding:0 0 1px;font-size:inherit;border-bottom:1px solid currentColor}
@media(max-width:720px),(pointer:coarse){.pricing-theme .tier-brief{display:inline-flex;min-height:44px;padding:0;border:0;text-decoration:underline;text-underline-offset:4px}}
