/* OccAsianZ planning tools PREVIEW (/planning-preview). Loaded only on that page, after site.css.
   Same rules as site.css and tools.css (the build checks all three): Core Framework names only, no custom properties,
   no raw colours, spacing from --space-*, motion .2/.3/.6s, a reduced-motion block. Everything is scoped to .pv.
   Look: the approved mock-ups (Deliverables/2026-11-15-occasianz-static-plan/tools-dashboard-mock-2026-11-30/).
   Mock colour -> Core Framework: night --secondary, plum --primary, action --action, accent --quaternary, gold --tertiary,
   gold-d1/d2 --tertiary-d-1/-d-2, gold-tint --tertiary-l-4, cream --bg-body, muted --primary-l-1, line --border,
   ok --success, bad --error. Sizes are in rem (10px root, so Sat's 12.5px Chrome scales them with the rest of the site). */

/* the site's own header, footer and pop-up are not part of the app */
body.pv-page > :not(main):not(script):not(noscript), body:has(#pv) > :not(main):not(script):not(noscript) { display: none; }
body:not(.has-hero) main > .pv:first-child { padding-top: 0; }
body.pv-lock { overflow: hidden; }

.pv, .pv *, .pv *::before, .pv *::after { box-sizing: border-box; }
.pv { min-height: 100vh; font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-s); line-height: 1.5; color: var(--text-body); background: var(--bg-body); padding-bottom: calc(var(--space-5xl) * 2 + env(safe-area-inset-bottom)); }
:where(.pv) :is(h1, h2, h3) { font-family: "Playfair Display", Georgia, serif; font-weight: 500; color: var(--text-title); line-height: 1.1; margin: 0; }
:where(.pv) :is(p, ul, ol) { margin: 0; }
:where(.pv) :is(ul, ol) { padding: 0; list-style: none; }
:where(.pv) button { font: inherit; color: inherit; cursor: pointer; }
:where(.pv) a { color: var(--action); }
.pv svg.pv-ic { width: 1.8rem; height: 1.8rem; flex: none; }
.pv :focus-visible { outline: .2rem solid var(--action); outline-offset: .2rem; }
.pv .pv-side :focus-visible, .pv .pv-cover :focus-visible, .pv .pv-band :focus-visible, .pv .pv-mbar :focus-visible { outline-color: var(--tertiary); }
.pv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pv-mut { color: var(--primary-l-1); font-weight: 400; }
.pv-out { font-style: normal; font-size: .85em; margin-left: .25em; }
.pv-eyebrow { display: flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-xs); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-eyebrow::before { content: ""; width: 2.8rem; height: 1px; background: var(--tertiary-d-1); flex: none; }
.pv-sub { display: block; font-size: var(--text-s); color: var(--primary-l-1); }
.pv-k { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-s { font-size: var(--text-s); color: var(--primary-l-1); }

/* buttons */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3xs); min-height: 4.8rem; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-full); border: 1px solid transparent; font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.pv-btn-gold { background: var(--tertiary); color: var(--secondary); }
.pv-btn-gold:hover { background: var(--tertiary-l-1); }
.pv-btn-plum { background: var(--action); color: var(--text-title-dark); }
.pv-btn-plum:hover { background: var(--hover-primary); }
.pv-btn-line { background: var(--bg-surface); color: var(--text-title); border-color: var(--tertiary-d-1); }
.pv-btn-line:hover { border-color: var(--action); }
.pv-btn-ghost { background: transparent; color: var(--text-title); border-color: var(--tertiary-d-1); }
.pv-btn-ghost:hover { background: var(--tertiary-l-3); }
.pv-round { width: 4.8rem; height: 4.8rem; border-radius: 50%; border: 1px solid var(--light-30); background: transparent; color: var(--tertiary); display: grid; place-items: center; }
.pv-pill { display: inline-flex; align-items: center; gap: var(--space-4xs); font-size: var(--text-xs); font-weight: 600; padding: var(--space-4xs) var(--space-2xs); border-radius: var(--radius-full); white-space: nowrap; }
.pv-pill svg.pv-ic { width: 1.2rem; height: 1.2rem; stroke-width: 2.2; }
.pv-p-ok { background: var(--success-10); color: var(--success); }
.pv-p-bad { background: var(--error-10); color: var(--error); }
.pv-p-due { background: var(--tertiary-l-4); color: var(--tertiary-d-2); }
.pv-p-todo { background: var(--primary-5); color: var(--primary-l-1); }
.pv-ico { width: 4rem; height: 4rem; flex: none; border-radius: var(--radius-m); display: grid; place-items: center; background: var(--tertiary-l-4); color: var(--tertiary-d-2); }
.pv-ico svg.pv-ic { width: 2rem; height: 2rem; }
.pv-bar { display: flex; height: .6rem; border-radius: var(--radius-full); background: var(--tertiary-l-4); overflow: hidden; }
.pv-bar i { display: block; height: 100%; }
.pv-b-plum { background: var(--action); } .pv-b-ok { background: var(--success); } .pv-b-gold { background: var(--tertiary); } .pv-b-bad { background: var(--error); }

/* top banner */
/* the sample wedding: a note on every screen with the way back to the start screen (Sat 2026-12-04) */
.pv-samplebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); padding: var(--space-xs) var(--space-s); background: var(--tertiary-l-4); border-bottom: 1px solid var(--tertiary-l-2); color: var(--text-title); font-size: var(--text-s); }
.pv-samplebar p { flex: 1 1 20rem; }

/* sidebar (desktop only) and the page column */
.pv-side { display: none; }
.pv-col { min-width: 0; }
.pv .pv-col:focus-visible, .pv .pv-col:focus { outline: none; }
.pv-menu ul { display: grid; gap: var(--space-4xs); }
.pv-menu a { display: flex; align-items: center; gap: var(--space-2xs); min-height: 4.8rem; padding: var(--space-3xs) var(--space-2xs); border-radius: var(--radius-m); color: var(--text-light); text-decoration: none; font-size: var(--text-m); transition: background .2s; }
.pv-menu a:hover { background: var(--light-10); }
.pv-menu a.on { background: var(--tertiary-20); color: var(--tertiary); font-weight: 600; }
.pv-menu a span:first-of-type { flex: 1; }
.pv-menu .pv-out { color: var(--tertiary-60); margin: 0; }
.pv-lbl { font-size: var(--text-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--tertiary-60); padding: 0 var(--space-2xs); margin-bottom: var(--space-3xs); }
.pv-legend { font-size: var(--text-xs); color: var(--tertiary-60); padding: var(--space-2xs) var(--space-2xs) 0; }
.pv-legend i { font-style: normal; }
.pv-logo img { height: 3.4rem; width: auto; margin: 0 var(--space-3xs); }
.pv-save { margin-top: auto; display: grid; gap: var(--space-3xs); background: var(--light-5); border: 1px solid var(--light-10); border-radius: var(--radius-m); padding: var(--space-xs); font-size: var(--text-s); color: var(--text-body-dark); }
.pv-save b { display: flex; align-items: center; gap: var(--space-3xs); color: var(--text-title-dark); font-weight: 600; }
.pv-warn { display: flex; align-items: center; gap: var(--space-3xs); color: var(--tertiary); }
.pv-save .pv-btn { width: 100%; }

/* cover (Home) */
.pv-cover { position: relative; overflow: hidden; isolation: isolate; color: var(--text-light); background: linear-gradient(150deg, var(--secondary), var(--primary) 60%, var(--hover-primary)); padding: var(--space-xs) var(--space-s) calc(var(--space-xl) * 2); }
.pv-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 20%, var(--action), transparent 60%); opacity: .6; z-index: -1; }
.pv-cover > * { position: relative; }
.pv-cover .pv-mandala { position: absolute; right: -17rem; top: -12rem; width: 44rem; height: 44rem; color: var(--tertiary); opacity: .15; }
.pv-cover .pv-cover-art { position: absolute; right: -4rem; bottom: -1rem; width: 23rem; height: auto; opacity: .45; }
.pv-cover-top { display: flex; align-items: center; justify-content: space-between; }
.pv-cover-top img { height: 2.4rem; width: auto; }
.pv-cover .pv-eyebrow { color: var(--tertiary); margin-top: var(--space-l); }
.pv-cover .pv-eyebrow::before { background: var(--tertiary); }
.pv-names { font-size: var(--text-4xl); font-weight: 400; line-height: 1.02; color: var(--text-title-dark); margin: var(--space-2xs) 0 !important; max-width: 24ch; }
.pv-amp { font-style: normal; color: var(--tertiary); padding: 0 .08em; }
.pv-when { display: grid; gap: var(--space-4xs); font-size: var(--text-s); color: var(--text-body-dark); }
.pv-when span { display: inline-flex; align-items: center; gap: var(--space-3xs); }
.pv-when svg { color: var(--tertiary); }
.pv-when a { color: var(--tertiary); }
.pv-cd { display: inline-flex; align-items: baseline; gap: var(--space-2xs); margin-top: var(--space-xs) !important; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-full); background: var(--light-10); border: 1px solid var(--tertiary-50); }
.pv-cd b { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-2xl); font-weight: 400; color: var(--tertiary); line-height: 1; }
.pv-cd span { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--tertiary-l-3); }

/* Home body */
.pv-body > * { min-width: 0; }
.pv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: 0 var(--space-xs); margin-top: calc(var(--space-xl) * -1.2); position: relative; }
.pv-row2 { display: grid; gap: var(--space-xs); }
.pv-row2 > * { min-width: 0; }
.pv-next { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i e" "i t" "p p" "a a"; align-items: center; gap: var(--space-4xs) var(--space-xs); background: var(--tertiary-l-4); border: 1px solid var(--tertiary-l-2); border-radius: var(--radius-l); padding: var(--space-s); box-shadow: var(--shadow-m); }
.pv-next > div { display: contents; }
.pv-next-ico { grid-area: i; width: 5.2rem; height: 5.2rem; border-radius: var(--radius-m); background: var(--primary); color: var(--tertiary); display: grid; place-items: center; align-self: start; }
.pv-next-ico svg.pv-ic { width: 2.8rem; height: 2.8rem; }
.pv-next .pv-eyebrow { grid-area: e; color: var(--error); font-size: var(--text-xs); align-self: end; }
.pv-next .pv-eyebrow::before { background: currentColor; width: 1.8rem; }
.pv-next .pv-eyebrow.pv-eb-todo { color: var(--tertiary-d-2); }
.pv-next .pv-eyebrow.pv-eb-ok { color: var(--success); }
.pv-next h2 { grid-area: t; font-size: var(--text-2xl); align-self: start; }
.pv-next p:not(.pv-eyebrow) { grid-area: p; color: var(--primary-l-1); margin: var(--space-3xs) 0 var(--space-2xs); max-width: 54rem; }
.pv-acts { grid-area: a; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.pv-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-s); box-shadow: var(--shadow-m); }
.pv-stat { min-width: 0; }
.pv-v { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-2xl); color: var(--text-title); line-height: 1.15; margin: var(--space-4xs) 0 var(--space-2xs) !important; }
.pv-v small { font-size: var(--text-s); color: var(--primary-l-1); font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
.pv-v-sm { font-size: var(--text-xl); }
.pv-stat .pv-s { margin-top: var(--space-3xs); }
.pv-then { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: var(--space-xs); }
.pv-then .pv-v { margin: 0 !important; font-size: var(--text-m); }
.pv-then > div { min-width: 0; flex: 1 1 18rem; }
.pv-sech { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-2xs); }
.pv-sech h2 { font-size: var(--text-xl); }
.pv-more { display: inline-flex; align-items: center; gap: var(--space-4xs); min-height: 4.8rem; padding: 0 var(--space-3xs); border: 0; background: none; font-size: var(--text-s); font-weight: 600; color: var(--action); text-decoration: none; }
.pv-more svg.pv-ic { width: 1.4rem; height: 1.4rem; }
.pv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3xs); }
.pv-tile { display: grid; justify-items: center; align-content: start; gap: var(--space-4xs); min-height: 4.8rem; padding: var(--space-2xs) var(--space-4xs); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-surface); text-align: center; transition: border-color .2s, box-shadow .2s; }
.pv-tile:hover { border-color: var(--tertiary-d-1); box-shadow: var(--shadow-s); }
.pv-tile .pv-ico { width: 4.6rem; height: 4.6rem; border-radius: 50%; }
.pv-tile b { font-weight: 500; font-size: var(--text-xs); color: var(--text-title); line-height: 1.25; }
.pv-tile .pv-nl { display: none; }
.pv-tile > span:last-child { display: inline-flex; align-items: center; gap: var(--space-4xs); font-size: var(--text-xs); }
.pv-tile > span:last-child svg.pv-ic { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }
.pv-st-ok { color: var(--success); } .pv-st-find { color: var(--tertiary-d-2); }
.pv-tl { position: relative; display: grid; gap: var(--space-2xs); padding-left: var(--space-m); }
.pv-tl::before { content: ""; position: absolute; left: .8rem; top: .8rem; bottom: .8rem; width: 1px; background: var(--tertiary-d-1); }
.pv-ev { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-2xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-2xs) var(--space-xs); }
.pv-ev::before { content: ""; position: absolute; left: calc(var(--space-m) * -1 + .2rem); top: 2.2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--bg-body); border: 2px solid var(--tertiary-d-1); }
.pv-ev.pv-big::before { background: var(--primary); border-color: var(--primary); }
.pv-ev .pv-d { grid-column: 1; font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-ev b { grid-column: 1; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: var(--text-l); color: var(--text-title); }
.pv-ev .pv-sub { grid-column: 1; }
.pv-ev .pv-pill { grid-column: 2; grid-row: 1 / 4; }
.pv-ask { position: relative; overflow: hidden; display: grid; gap: var(--space-xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-s); }
.pv-ask h2 { font-size: var(--text-xl); }
.pv-ask p { color: var(--primary-l-1); margin-top: var(--space-4xs); }
.pv-ask img { display: none; }

/* Budget */
.pv-budget { padding: 0; margin-top: 0; gap: var(--space-xs); }
.pv-bhead { display: none; }
.pv-hd { background: linear-gradient(150deg, var(--secondary), var(--primary) 60%, var(--hover-primary)); color: var(--text-light); }
.pv-mbar { display: flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs) 0; }
.pv-back { width: 4.8rem; height: 4.8rem; border-radius: 50%; border: 1px solid var(--light-30); display: grid; place-items: center; color: var(--tertiary); }
.pv-mbar h1 { color: var(--text-title-dark); font-size: var(--text-xl); }
.pv-hd-d { display: none; }
.pv-band { display: grid; gap: var(--space-xs); padding: var(--space-xs) var(--space-xs) var(--space-s); }
.pv-band .pv-k { color: var(--tertiary); }
.pv-band .pv-s { color: var(--text-body-dark); }
.pv-big-n { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-3xl); font-weight: 400; line-height: 1.05; color: var(--text-title-dark); margin: var(--space-4xs) 0 !important; }
.pv-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2xs); }
.pv-three p { font-size: var(--text-s); color: var(--tertiary-l-3); }
.pv-three span { display: block; }
.pv-three b { display: block; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: var(--text-xl); color: var(--text-title-dark); }
.pv-band .pv-bar { grid-column: 1 / -1; background: var(--light-20); height: .8rem; margin-top: var(--space-2xs); }
.pv-pays { display: none; }
.pv-pills { display: flex; gap: var(--space-3xs); overflow-x: auto; padding: 0 var(--space-xs); scrollbar-width: thin; }
.pv-chip { flex: none; min-height: 4.8rem; padding: 0 var(--space-xs); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-surface); color: var(--text-title); font-size: var(--text-s); white-space: nowrap; transition: background .2s, border-color .2s; }
.pv-chip:hover { border-color: var(--tertiary-d-1); }
.pv-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--text-title-dark); font-weight: 600; }
.pv-chip-sm { margin: 0 var(--space-4xs) var(--space-4xs) 0; white-space: normal; text-align: left; }
.pv-cols { display: grid; gap: var(--space-xs); padding: 0 var(--space-xs); }
.pv-list { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-m); overflow: hidden; }
.pv-lh { display: none; }
.pv-cat-h { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 2.4rem; align-items: center; gap: var(--space-2xs); min-height: 6.4rem; padding: var(--space-2xs) var(--space-xs); border: 0; border-bottom: 1px solid var(--border); background: var(--bg-surface); text-align: left; }
.pv-cat.open > .pv-cat-h { background: var(--bg-body); border-bottom: 0; }
.pv-cat-h:hover { background: var(--bg-body); }
.pv-nm { display: flex; align-items: center; gap: var(--space-2xs); min-width: 0; }
.pv-nm > span:last-child { min-width: 0; }
.pv-who { display: grid; gap: var(--space-4xs); margin: var(--space-3xs) 0; }
.pv-who li { display: flex; justify-content: space-between; gap: var(--space-xs); }
.pv-hintline { color: var(--tertiary-l-3); font-size: var(--text-xs); }
.pv-nm b { display: block; font-weight: 600; color: var(--text-title); line-height: 1.3; }
.pv-nm .pv-ico { width: 4.2rem; height: 4.2rem; border-radius: 50%; }
.pv-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-title); font-weight: 600; }
.pv-num small { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--primary-l-1); }
.pv-c-agreed, .pv-c-pill { display: none; }
.pv-chev { display: grid; place-items: center; color: var(--primary-l-1); transition: transform .2s; }
.pv-cat.open .pv-chev { transform: rotate(90deg); color: var(--action); }
.pv-m-only { display: block; }
.pv-items { display: grid; gap: var(--space-2xs); padding: 0 var(--space-2xs) var(--space-xs); background: var(--bg-body); border-bottom: 1px solid var(--border); }
.pv-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n m"; align-items: center; gap: var(--space-3xs) var(--space-2xs); width: 100%; min-height: 4.8rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-2xs) var(--space-xs); text-align: left; font: inherit; color: inherit; transition: border-color .2s; }
.pv-it:hover { border-color: var(--action); }
.pv-it-n { grid-area: n; min-width: 0; } .pv-it-m { grid-area: m; text-align: right; } .pv-it-g { grid-area: g; } .pv-it-a { grid-area: a; } .pv-it-s { grid-area: s; } .pv-edit, .pv-it-e { grid-area: e; justify-self: end; }
.pv-it-m small { display: block; font-size: var(--text-xs); color: var(--primary-l-1); }
.pv-it-e { display: inline-grid; place-items: center; min-height: 4.8rem; min-width: 4.8rem; padding: 0 var(--space-xs); border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--action); font-size: var(--text-s); font-weight: 600; }
.pv-it-n b { display: block; color: var(--text-title); font-weight: 600; line-height: 1.3; }
.pv-lab { display: block; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-val { font-variant-numeric: tabular-nums; color: var(--text-title); font-weight: 600; }
.pv-edit { min-height: 4.8rem; min-width: 4.8rem; padding: 0 var(--space-xs); border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-surface); color: var(--action); font-size: var(--text-s); font-weight: 600; transition: border-color .2s; }
.pv-edit:hover { border-color: var(--action); }
.pv-showmore { justify-self: start; min-height: 4.8rem; padding: 0 var(--space-3xs); border: 0; background: none; font-size: var(--text-s); font-weight: 600; color: var(--action); text-align: left; }
.pv-empty { padding: var(--space-s); color: var(--primary-l-1); }
.pv-rail { display: grid; gap: var(--space-xs); }
.pv-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-s); box-shadow: var(--shadow-m); }
.pv-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2xs); }
.pv-card-h h2 { font-size: var(--text-xl); }
.pv-evbars li button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: var(--space-4xs) var(--space-2xs); min-height: 4.8rem; padding: var(--space-3xs) 0; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; font-size: var(--text-s); }
.pv-evbars li:first-child button { border-top: 0; }
.pv-evbars li.pv-small { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4xs) var(--space-2xs); padding: var(--space-3xs) 0; border-top: 1px solid var(--border); font-size: var(--text-s); }
.pv-evbars b { font-weight: 600; color: var(--text-title); font-variant-numeric: tabular-nums; }
.pv-evbars .pv-bar { grid-column: 1 / -1; height: .5rem; }
.pv-tobook { background: var(--tertiary-l-4); border-color: var(--tertiary-l-2); }
.pv-tobook .pv-big-n { color: var(--text-title) !important; font-size: var(--text-3xl); }
.pv-tobook .pv-s { margin-bottom: var(--space-2xs); }
.pv-todo-ev { margin-top: var(--space-2xs); font-weight: 600; color: var(--text-title); }

/* edit panel (side panel on desktop, full screen on phones) */
.pv-dim { position: fixed; inset: 0; z-index: 39; background: var(--secondary-40); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: pv-fade .3s ease; }
.pv-dim[hidden], .pv-panel[hidden], .pv-sheet[hidden] { display: none; }
.pv-panel { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg-surface); animation: pv-up .3s ease; }
.pv-dim.pv-out { animation: pv-fade-out .3s ease forwards; }
.pv-panel.pv-out, .pv-sheet.pv-out { animation: pv-up-out .3s ease forwards; }
.pv-ph { display: flex; align-items: flex-start; gap: var(--space-xs); padding: var(--space-s) var(--space-s) var(--space-xs); border-bottom: 1px solid var(--border); }
.pv-ph h2 { font-size: var(--text-xl); line-height: 1.2; }
.pv-ph .pv-sub { margin-top: var(--space-4xs); }
.pv-ico-d { width: 5.2rem; height: 5.2rem; background: var(--primary); color: var(--tertiary); }
.pv-ico-d svg.pv-ic { width: 2.6rem; height: 2.6rem; }
.pv-x { margin-left: auto; width: 4.8rem; height: 4.8rem; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-surface); color: var(--primary-l-1); display: grid; place-items: center; }
.pv-pb { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: var(--space-s); padding: var(--space-s); }
.pv-grp { display: grid; gap: var(--space-2xs); }
.pv-grp h3 { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-two { display: grid; gap: var(--space-2xs); }
.pv-f { display: grid; gap: var(--space-4xs); align-content: start; }
.pv-f label { font-weight: 500; color: var(--text-title); }
.pv-f label small { font-weight: 400; color: var(--primary-l-1); font-size: var(--text-xs); }
.pv-in { width: 100%; min-height: 4.8rem; padding: var(--space-3xs) var(--space-2xs); border: 1px solid var(--tertiary-d-1); border-radius: var(--radius-s); background: var(--bg-surface); color: var(--text-title); font: inherit; font-size: var(--text-m); }
.pv-in:focus { outline: .2rem solid var(--action); outline-offset: .1rem; }
.pv-ro { background: var(--bg-body); border-color: var(--border); color: var(--primary-l-1); }
.pv-in[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 .2rem var(--error-10); }
.pv-err { display: flex; align-items: flex-start; gap: var(--space-3xs); font-size: var(--text-s); font-weight: 500; line-height: 1.4; color: var(--error); }
.pv-err[hidden] { display: none; }
.pv-err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid currentColor; border-radius: 50%; font-size: var(--text-xs); font-weight: 700; line-height: 1; }
.pv-taps { display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
.pv-tap { min-height: 4.8rem; padding: 0 var(--space-xs); border: 1px solid var(--tertiary-d-1); border-radius: var(--radius-full); background: var(--bg-surface); font-size: var(--text-s); color: var(--text-title); transition: background .2s, border-color .2s; }
.pv-tap[aria-pressed="true"] { background: var(--primary-10); border-color: var(--action); font-weight: 600; }
.pv-tap[aria-pressed="true"]::before { content: "✓ "; }
.pv-sw { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); width: 100%; min-height: 5.6rem; padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-body); color: var(--text-title); font-weight: 600; text-align: left; transition: background .2s, color .2s; }
.pv-sw i { position: relative; flex: none; width: 4.4rem; height: 2.6rem; border-radius: var(--radius-full); background: var(--primary-l-3); transition: background .2s; }
.pv-sw i::after { content: ""; position: absolute; left: .3rem; top: .3rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--white); transition: transform .2s; }
.pv-sw.on { background: var(--success-10); color: var(--success); border-color: var(--success-30); }
.pv-sw.on i { background: var(--success); }
.pv-sw.on i::after { transform: translateX(1.8rem); }
.pv-pf { display: flex; gap: var(--space-2xs); padding: var(--space-xs) var(--space-s) calc(var(--space-xs) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.pv-pf .pv-btn { flex: 1; }

/* phone: tab bar, round button, More sheet, toast */
.pv-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg-surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-l); padding: var(--space-4xs) 0 calc(var(--space-4xs) + env(safe-area-inset-bottom)); }
.pv-tabs a, .pv-tabs button { display: grid; justify-items: center; align-content: center; gap: var(--space-4xs); min-height: 5.6rem; border: 0; background: none; color: var(--primary-l-1); font-size: var(--text-xs); text-decoration: none; position: relative; }
.pv-tabs svg.pv-ic { width: 2.2rem; height: 2.2rem; }
.pv-tabs .on { color: var(--action); font-weight: 600; }
.pv-tabs .on::after { content: ""; position: absolute; bottom: .3rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tertiary); }
.pv-fab { position: fixed; z-index: 21; right: var(--space-xs); bottom: calc(8.2rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3xs); box-shadow: var(--shadow-xl); border: 0; text-decoration: none; }
.pv-fab-round { width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--tertiary); color: var(--secondary); }
.pv-fab-round svg.pv-ic { width: 2.4rem; height: 2.4rem; }
.pv-fab-pill { height: 5.2rem; padding: 0 var(--space-s); border-radius: var(--radius-full); background: var(--action); color: var(--text-title-dark); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 90vh; overflow-y: auto; background: var(--bg-surface); border-radius: var(--radius-l) var(--radius-l) 0 0; animation: pv-up .3s ease; }
.pv-sheet li + li { border-top: 1px solid var(--border); }
.pv-sheet li a, .pv-sheet li button { display: flex; align-items: center; gap: var(--space-xs); width: 100%; min-height: 5.6rem; padding: var(--space-2xs) var(--space-s); border: 0; background: none; color: var(--text-title); text-decoration: none; font-size: var(--text-m); text-align: left; }
.pv-sheet li span { flex: 1; }
.pv-sheet .pv-out { margin: 0; color: var(--primary-l-1); }
.pv-toast { position: fixed; left: 50%; bottom: calc(14rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(2rem); z-index: 56; display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); max-width: 92vw; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-full); background: var(--text-title); color: var(--text-title-dark); font-size: var(--text-s); text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.pv-toast:empty { padding: 0; }
.pv-toast > span { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* while a toast shows, the Saved pill and the floating button step aside */
.pv:has(.pv-toast.on) .pv-saved { opacity: 0; }
.pv:has(.pv-toast.on) .pv-fab { opacity: 0; pointer-events: none; }
.pv-toast.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.pv-toast-btn { min-height: 4.8rem; min-width: 4.8rem; padding: 0 var(--space-2xs); border: 0; background: none; color: var(--tertiary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; }
@keyframes pv-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes pv-up-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(100%); } }
@keyframes pv-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: none; } }
@keyframes pv-in-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(100%); } }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pv-drop { from { opacity: 0; transform: translateY(-1rem); } to { opacity: 1; transform: none; } }
@keyframes pv-pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pv-bump { 0% { transform: scale(.9); } 60% { transform: scale(1.07); } 100% { transform: none; } }

/* tablet and up */
@media (min-width: 560px) {
  .pv-two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .pv-panel { inset: 0 0 0 auto; width: 46rem; max-width: 100%; box-shadow: var(--shadow-xl); animation-name: pv-in; }
  .pv-panel.pv-out { animation-name: pv-in-out; }
  .pv-tile .pv-nl { display: inline; }
  .pv-tile .pv-ns { display: none; }
  .pv-pays { display: block; }
  .pv-band { grid-template-columns: 1fr; }
}

/* desktop: plum menu on the left, no tab bar */
@media (min-width: 1024px) {
  .pv { padding-bottom: 0; }
  .pv-tabs, .pv-fab { display: none; }
  .pv-toast { bottom: var(--space-m); }
  .pv-app { display: grid; grid-template-columns: 24.8rem minmax(0, 1fr); align-items: start; }
  .pv-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--space-m); padding: var(--space-m) var(--space-xs); background: linear-gradient(180deg, var(--secondary), var(--primary)); color: var(--tertiary-l-3); overflow-y: auto; }
  .pv-cover { margin: var(--space-m) var(--space-l) 0; border-radius: var(--radius-xl); padding: var(--space-xl) var(--space-xl) var(--space-l); min-height: 30rem; }
  .pv-cover-top { display: none; }
  .pv-cover .pv-eyebrow { margin-top: 0; }
  .pv-cover .pv-mandala { right: -12rem; top: -15rem; width: 62rem; height: 62rem; opacity: .16; }
  .pv-cover .pv-cover-art { right: 6rem; bottom: -4rem; width: 33rem; opacity: .55; }
  .pv-names { margin: var(--space-xs) 0 var(--space-2xs) !important; }
  .pv-when { display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--text-m); }
  .pv-cd { margin-top: var(--space-m) !important; padding: var(--space-2xs) var(--space-s); }
  .pv-cd b { font-size: var(--text-2xl); }
  .pv-body { padding: 0 var(--space-l) var(--space-l); margin-top: var(--space-m); gap: var(--space-m); }
  .pv-row2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
  .pv-next { grid-template-areas: "i e" "i t" "i p" "i a"; align-items: start; padding: var(--space-m); border-radius: var(--radius-xl); column-gap: var(--space-s); }
  .pv-next > div { display: contents; }
  .pv-next-ico { width: 6.4rem; height: 6.4rem; grid-row: 1 / 5; }
  .pv-next-ico svg.pv-ic { width: 3.2rem; height: 3.2rem; }
  .pv-next h2 { font-size: var(--text-2xl); }
  .pv-strip { align-content: start; padding: var(--space-m); border-radius: var(--radius-xl); gap: var(--space-s) var(--space-m); }
  .pv-v { font-size: var(--text-2xl); }
  .pv-sech h2 { font-size: var(--text-xl); }
  .pv-tiles { grid-template-columns: repeat(8, 1fr); gap: var(--space-2xs); }
  .pv-tile { padding: var(--space-xs) var(--space-4xs) var(--space-2xs); }
  .pv-tile .pv-ico { width: 5.8rem; height: 5.8rem; }
  .pv-tile .pv-ico svg.pv-ic { width: 2.8rem; height: 2.8rem; }
  .pv-tile b { font-size: var(--text-s); }
  .pv-tl { grid-auto-flow: column; grid-auto-columns: minmax(12.5rem, 1fr); gap: 0; padding: var(--space-s) 0 var(--space-3xs); overflow-x: auto; }
  .pv-tl::before { display: none; }
  .pv-ev { display: block; text-align: center; background: none; border: 0; padding: 0 var(--space-3xs); border-radius: 0; }
  .pv-ev::before { position: relative; display: block; left: auto; top: auto; z-index: 1; width: 1.5rem; height: 1.5rem; margin: 0 auto var(--space-xs); }
  .pv-ev::after { content: ""; position: absolute; top: .7rem; left: 0; right: 0; height: 1px; background: var(--tertiary-d-1); }
  .pv-ev:first-child::after { left: 50%; }
  .pv-ev:last-child::after { right: 50%; }
  .pv-ev.pv-big::before { box-shadow: 0 0 0 .5rem var(--primary-10); }
  .pv-ev b { display: block; font-size: var(--text-xl); margin: var(--space-4xs) 0; }
  .pv-ev .pv-sub { margin-bottom: var(--space-2xs); }
  .pv-ask { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-s) var(--space-m); border-radius: var(--radius-xl); }
  .pv-ask img { display: block; position: absolute; right: 26rem; top: 50%; transform: translateY(-50%); width: auto; height: 82%; max-height: 14rem; opacity: .9; pointer-events: none; }
  /* budget */
  .pv-budget { padding: var(--space-m) var(--space-l) var(--space-l); gap: var(--space-s); }
  .pv-bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-s); flex-wrap: wrap; }
  .pv-bhead h1 { font-size: var(--text-3xl); margin-top: var(--space-2xs); }
  .pv-bhead h1 em { font-style: normal; color: var(--quaternary); }
  .pv-bactions { display: flex; gap: var(--space-2xs); }
  .pv-hd-d { display: block; }
  .pv-hd-m, .pv-mbar { display: none; }
  .pv-hd { background: none; }
  .pv-band { grid-template-columns: 1.1fr 1.6fr 1fr; align-items: center; gap: var(--space-m); padding: var(--space-m) var(--space-l); border-radius: var(--radius-l); color: var(--text-light); background: linear-gradient(120deg, var(--secondary), var(--primary) 60%, var(--hover-primary)); }
  .pv-pills { flex-wrap: wrap; overflow: visible; padding: 0; }
  .pv-cols { grid-template-columns: minmax(0, 1fr) 33rem; align-items: start; gap: var(--space-s); padding: 0; }
  .pv-lh { display: grid; grid-template-columns: minmax(0, 1fr) 12rem 12rem 12rem 2.8rem; gap: var(--space-2xs); padding: var(--space-xs) var(--space-s); font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--tertiary-d-2); border-bottom: 1px solid var(--border); }
  .pv-cat-h { grid-template-columns: minmax(0, 1fr) 12rem 12rem 12rem 2.8rem; padding: var(--space-2xs) var(--space-s); }
  .pv-c-agreed, .pv-c-pill { display: block; }
  .pv-m-only { display: none; }
  .pv-num { font-weight: 400; }
  .pv-items { padding: 0 var(--space-s) var(--space-xs) var(--space-2xl); }
  .pv-it { grid-template-columns: minmax(0, 1fr) 11rem 11rem 11rem 7rem; grid-template-areas: "n g a s e"; padding: var(--space-2xs) var(--space-xs); }
}

/* ---- the five other screens: Your wedding, Guest list, Catering, Table plan, Dates (same look as Budget) ---- */
.pv [hidden] { display: none !important; }
.pv-stack { display: grid; gap: var(--space-xs); padding: 0 var(--space-xs) var(--space-xs); min-width: 0; }
.pv-stack > * { min-width: 0; }
.pv-stack .pv-cols { padding: 0; }
.pv-stack .pv-pills { padding: 0; }
.pv-colx { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.pv-band-2 { grid-template-columns: minmax(0, 1fr); }
.pv-bandr { display: grid; gap: var(--space-2xs); align-content: start; justify-items: start; }
.pv-bandv { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-xl); color: var(--text-title-dark); line-height: 1.15; }
.pv-tags { display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
.pv-tags li { padding: var(--space-4xs) var(--space-2xs); border: 1px solid var(--tertiary-50); border-radius: var(--radius-full); background: var(--light-10); color: var(--text-title-dark); font-size: var(--text-s); }
.pv-band .pv-btn-ghost { color: var(--text-title-dark); border-color: var(--tertiary-50); }
.pv-band .pv-btn-ghost:hover { background: var(--light-10); }
.pv-band .pv-three b svg.pv-ic, .pv-band .pv-three b { display: flex; align-items: center; gap: var(--space-4xs); }
.pv-band .pv-three b svg.pv-ic { width: 1.8rem; height: 1.8rem; color: var(--tertiary); }
.pv-key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-xs); font-size: var(--text-xs); color: var(--text-body-dark); }
.pv-key li { display: inline-flex; align-items: center; gap: var(--space-3xs); }
.pv-key i { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; }
.pv-cols > section, .pv-colx > section { min-width: 0; }
.pv-sech .pv-s { white-space: nowrap; }

/* accordion rows: one open at a time, at most four facts per row */
.pv-ac-h { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 2.4rem; align-items: center; gap: var(--space-2xs); min-height: 6.4rem; padding: var(--space-2xs) var(--space-xs); border: 0; border-bottom: 1px solid var(--border); background: var(--bg-surface); text-align: left; transition: background .2s; }
.pv-cat.open > .pv-ac-h { background: var(--bg-body); border-bottom: 0; }
.pv-ac-h:hover { background: var(--bg-body); }
.pv-facts { display: none; }
.pv-fact { display: block; min-width: 0; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-title); }
.pv-fact small { display: block; font-size: var(--text-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-ab { padding: 0 var(--space-xs) var(--space-xs); background: var(--bg-body); border-bottom: 1px solid var(--border); }
.pv-ab-in { display: grid; gap: var(--space-2xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-xs); }
.pv-ab-flush { padding: 0; gap: 0; overflow: hidden; }
.pv-ab-acts { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.pv-ab > .pv-ab-acts { margin-top: var(--space-2xs); }
.pv-h3 { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tertiary-d-2); margin-top: var(--space-3xs); }
.pv-h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--primary-l-1); }
.pv-ab-in .pv-taps { margin-bottom: var(--space-3xs); }
.pv-taps-list .pv-tap { flex: 1 1 100%; text-align: left; }
.pv-taps-list.pv-taps .pv-tap[aria-pressed="true"] { background: var(--primary-10); }
.pv-kv { display: grid; }
.pv-kv p { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-xs); min-height: 4rem; padding: var(--space-3xs) 0; border-top: 1px solid var(--border); font-size: var(--text-s); }
.pv-kv b { font-variant-numeric: tabular-nums; color: var(--text-title); font-weight: 600; text-align: right; }
.pv-kv .pv-tot { border-top: 1px solid var(--tertiary-d-1); }
.pv-kv .pv-tot span { font-weight: 600; color: var(--text-title); }
.pv-showmore-l { margin: var(--space-3xs) var(--space-xs); }
.pv-hintdark { color: var(--primary-l-1); margin-top: var(--space-2xs); }
.pv-sset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-xs) var(--space-s); font-size: var(--text-s); color: var(--primary-l-1); }
.pv-sset p { flex: 1 1 24rem; }
.pv-sset b { color: var(--text-title); font-weight: 600; }
.pv-linkrow { display: flex; align-items: center; gap: var(--space-2xs); min-height: 4.8rem; padding: var(--space-3xs) 0; border-top: 1px solid var(--border); color: var(--text-title); text-decoration: none; font-weight: 500; }
.pv-linkrow svg.pv-ic { color: var(--tertiary-d-2); }
.pv-linkrow span:not(.pv-sr) { flex: 1; }
.pv-linkrow .pv-out { color: var(--primary-l-1); margin: 0; }
.pv-linkrow:hover { color: var(--action); }
.pv-empty { padding: var(--space-s); color: var(--primary-l-1); }
.pv-venues li + li { border-top: 1px solid var(--border); }
.pv-venues a { display: grid; gap: var(--space-4xs); min-height: 4.8rem; padding: var(--space-2xs) 0; text-decoration: none; color: var(--text-title); }
.pv-venues b { font-weight: 600; }
.pv-venues span { font-size: var(--text-s); color: var(--primary-l-1); }
.pv-card > .pv-s { margin-bottom: var(--space-2xs); }

/* guest list */
.pv-srch { position: relative; }
.pv-srch svg.pv-ic { position: absolute; left: var(--space-2xs); top: 1.5rem; color: var(--primary-l-1); pointer-events: none; }
.pv-srch .pv-in { padding-left: calc(var(--space-m) + var(--space-xs)); }
#pvGCount { margin: var(--space-3xs) 0 var(--space-2xs); }
.pv-gl { display: grid; gap: var(--space-2xs); }
.pv-gr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-m); transition: border-color .2s; }
.pv-gr:hover { border-color: var(--tertiary-d-1); }
.pv-gr-n { display: grid; gap: var(--space-4xs); align-content: center; min-width: 0; min-height: 4.8rem; padding: var(--space-2xs) var(--space-xs); border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.pv-gr-t { display: flex; align-items: center; gap: var(--space-3xs); min-width: 0; }
.pv-gr-n b { color: var(--text-title); font-weight: 600; min-width: 0; }
.pv-gr-r { margin-right: var(--space-xs); }
span.pv-gr-r { text-align: right; white-space: nowrap; }
/* the one reply badge: the whole 48px button is the tap area, the pill is drawn inside it */
.pv-badge { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--space-4xs); min-height: 4.8rem; padding: 0 var(--space-2xs); border: 0; background: none; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.pv-badge::before { content: ""; position: absolute; inset: 1rem 0; z-index: -1; border-radius: var(--radius-full); border: 1px solid transparent; }
.pv-badge svg.pv-ic { width: 1.2rem; height: 1.2rem; stroke-width: 2.4; }
.pv-bg-y { color: var(--success); } .pv-bg-n { color: var(--error); } .pv-bg-p { color: var(--tertiary-d-2); } .pv-bg-ok { color: var(--success); } .pv-bg-bad { color: var(--error); } .pv-bg-due { color: var(--tertiary-d-2); } .pv-bg-todo { color: var(--primary-l-1); }
.pv-badge.pv-bg-ok::before { background: var(--success-10); } .pv-badge.pv-bg-bad::before { background: var(--error-10); } .pv-badge.pv-bg-due::before { background: var(--tertiary-l-4); } .pv-badge.pv-bg-todo::before { background: var(--primary-5); }
.pv-dot { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: currentColor; }
.pv-ab > .pv-gl + .pv-ab-acts { margin-top: var(--space-2xs); }

/* table plan */
.pv-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
.pv-tcard { display: grid; align-content: start; gap: var(--space-3xs); min-height: 12rem; padding: var(--space-xs); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-surface); text-align: left; transition: border-color .2s, box-shadow .2s; }
.pv-tcard:hover { border-color: var(--tertiary-d-1); box-shadow: var(--shadow-s); }
.pv-tcard.over { border-color: var(--error); box-shadow: 0 0 0 .2rem var(--error-10); }
.pv-tc-t { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3xs); }
.pv-tc-t b { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: var(--text-l); color: var(--text-title); }
.pv-tc-n { font-size: var(--text-s); color: var(--primary-l-1); }
.pv-tcard .pv-bar { height: .8rem; margin-top: auto; }
.pv-tadd { place-items: center; align-content: center; justify-items: center; border-style: dashed; border-color: var(--tertiary-d-1); background: none; color: var(--action); font-weight: 600; font-size: var(--text-s); }
.pv-pickbar, .pv-conf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--tertiary-l-2); border-radius: var(--radius-m); background: var(--tertiary-l-4); color: var(--text-title); font-size: var(--text-s); }
.pv-conf { display: grid; border-color: var(--error); background: var(--error-10); }
.pv-conf[hidden] { display: none; }
.pv-chipwrap { display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
.pv-warnline { display: flex; align-items: flex-start; gap: var(--space-3xs); font-size: var(--text-s); font-weight: 500; color: var(--error); }
.pv-wl { display: grid; }
.pv-wl li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); border-top: 1px solid var(--border); padding: var(--space-3xs) 0; }
.pv-wl small { color: var(--primary-l-1); font-size: var(--text-xs); }
.pv-cols-w { grid-template-columns: minmax(0, 1fr); }
.pv-empty-t { background: var(--bg-surface); border: 1px dashed var(--tertiary-d-1); border-radius: var(--radius-m); margin-bottom: var(--space-2xs); }

/* dates */
.pv-dlh { display: flex; align-items: center; gap: var(--space-3xs); padding: var(--space-2xs) var(--space-xs); background: var(--bg-body); border-bottom: 1px solid var(--border); font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tertiary-d-2); }
.pv-dlh span { margin-left: auto; font-weight: 400; }
.pv-dlh-late { color: var(--error); }
.pv-dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t t a" "l p a"; align-items: center; gap: var(--space-4xs) var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--border); background: var(--bg-surface); }
.pv-dl-n { display: contents; }
.pv-dl .pv-lab { grid-area: l; }
.pv-dl-n b { grid-area: t; min-width: 0; }
.pv-dl.late { box-shadow: inset .4rem 0 0 var(--error); }
.pv-dl-n b { display: block; font-weight: 600; color: var(--text-title); line-height: 1.3; }
.pv-dl > .pv-pill { grid-area: p; justify-self: start; min-width: 0; }
.pv-dl > .pv-btn { grid-area: a; min-width: 4.8rem; padding: var(--space-3xs) var(--space-2xs); }
.pv-ab-flush .pv-dl:last-child { border-bottom: 0; }
.pv-ro { display: grid; gap: var(--space-3xs); }
.pv-ro li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-2xs); padding: var(--space-3xs) 0; border-top: 1px solid var(--border); }
.pv-ro b { color: var(--text-title); font-variant-numeric: tabular-nums; }
.pv-ro small { color: var(--primary-l-1); }
.pv-cks { display: grid; }
.pv-ck { display: flex; align-items: flex-start; gap: var(--space-2xs); min-height: 4.8rem; padding: var(--space-3xs) 0; border-top: 1px solid var(--border); }
.pv-ck input { width: 2.4rem; height: 2.4rem; flex: none; margin: var(--space-4xs) 0 0; accent-color: var(--action); }
.pv-ck span { padding-top: var(--space-4xs); }
.pv-pb textarea.pv-ta { min-height: 12rem; resize: vertical; }
.pv-pb .pv-conf { margin-top: var(--space-2xs); }

@media (min-width: 720px) {
  .pv-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-taps-list .pv-tap { flex: 0 1 auto; }
}
@media (min-width: 1024px) {
  .pv-stack { padding: 0; gap: var(--space-s); }
  .pv-band-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  /* the name keeps at least 16rem and the facts give way (2026-12-05: at 1366px, and at 1229px in Sat's Chrome, the 1fr name column
     fell to nothing and the event name ran over the Date column) */
  .pv-ac-h { grid-template-columns: minmax(16rem, 1fr) minmax(0, auto) 2.8rem; padding: var(--space-2xs) var(--space-s); gap: var(--space-m); }
  .pv-facts { min-width: 0; }
  .pv-fact { flex: 0 1 auto; }
  .pv-facts { display: flex; gap: var(--space-s); }
  .pv-fact { width: 12rem; }
  .pv-fc-guests .pv-fact:nth-child(1) { width: 8rem; }
  .pv-fc-guests .pv-fact:nth-child(2) { width: 12rem; }
  .pv-fc-guests .pv-fact:nth-child(3) { width: 24rem; }
  .pv-fc-cat .pv-fact:nth-child(1) { width: 17rem; }
  .pv-fc-cat .pv-fact:nth-child(2) { width: 9rem; }
  .pv-fc-cat .pv-fact:nth-child(3) { width: 18rem; }
  .pv-fc-dates .pv-fact:nth-child(2) { width: 8rem; }
  .pv-fc-dates .pv-fact:nth-child(3) { width: 14rem; }
  .pv-fc-dates .pv-fact:nth-child(4) { width: 15rem; }
  .pv-ab { padding: 0 var(--space-s) var(--space-xs) var(--space-2xl); }
  .pv-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-cols-w { grid-template-columns: minmax(0, 1fr) 33rem; align-items: start; gap: var(--space-s); }
  .pv-dl { grid-template-columns: minmax(0, 1fr) 15rem 17rem; grid-template-areas: "n p a"; gap: var(--space-xs); padding: var(--space-2xs) var(--space-s); }
  .pv-dl-n { display: block; grid-area: n; min-width: 0; }
  .pv-dl .pv-lab { grid-area: auto; }
  .pv-dl > .pv-btn { padding: var(--space-3xs) var(--space-xs); }
  .pv-dl > .pv-pill { justify-self: start; }
  .pv-dlh { padding: var(--space-2xs) var(--space-s); }
  .pv-ab-flush .pv-dl { padding-left: var(--space-xs); padding-right: var(--space-xs); }
}

/* ---- polish round (Sat 2026-11-30): slicker motion, a drawing on every screen, calmer rows on a phone ----
   Motion stays on transform and opacity, at .2s, .3s or .6s, and the reduced-motion block at the end switches all of it off. */

/* what only a desktop shows, and one short line for a phone */
.pv-d-only { display: none; }

/* the "Saved" tick: fades in after each save, fades out after about 2 seconds */
.pv-saved { position: fixed; z-index: 57; left: var(--space-xs); bottom: calc(8.2rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: var(--space-4xs); padding: var(--space-4xs) var(--space-2xs); border-radius: var(--radius-full); border: 1px solid var(--tertiary-50); background: var(--primary); color: var(--tertiary); font-size: var(--text-s); font-weight: 600; opacity: 0; transform: translateY(1rem); transition: opacity .3s, transform .3s; pointer-events: none; }
.pv-saved:empty { padding: 0; border-width: 0; }
.pv-saved.on { opacity: 1; transform: none; }
.pv-saved svg.pv-ic { width: 1.4rem; height: 1.4rem; stroke-width: 3; }

/* a gold tick that pops in (scale and fade), and the ring on Home that bumps when the number changes */
.pv-tick { flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tertiary); color: var(--secondary); }
.pv-tick svg.pv-ic { width: 1.4rem; height: 1.4rem; stroke-width: 3; }
.pv-tick.pv-pop { animation: pv-pop-in .3s ease; }
.pv-ck .pv-tick { margin-left: auto; margin-top: var(--space-4xs); }
.pv-donebar { display: flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs); border: 1px solid var(--tertiary-l-2); border-radius: var(--radius-m); background: var(--tertiary-l-4); color: var(--text-title); box-shadow: var(--shadow-s); }
.pv-ready { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "r t" "a a"; align-items: center; gap: var(--space-xs); padding: var(--space-s); border-radius: var(--radius-l); color: var(--text-light); background: linear-gradient(120deg, var(--secondary), var(--primary) 60%, var(--hover-primary)); box-shadow: var(--shadow-m); }
.pv-ready > div { grid-area: t; min-width: 0; }
.pv-ready > .pv-btn { grid-area: a; }
.pv-ready .pv-eyebrow { color: var(--tertiary); }
.pv-ready .pv-eyebrow::before { background: var(--tertiary); }
.pv-ready h2 { color: var(--text-title-dark); font-size: var(--text-xl); margin: var(--space-4xs) 0 !important; }
.pv-ready p:not(.pv-eyebrow) { color: var(--text-body-dark); }
.pv-ring { grid-area: r; position: relative; display: grid; place-items: center; width: 8rem; height: 8rem; }
.pv-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-ring-bg, .pv-ring-fg { fill: none; stroke-width: 3; }
.pv-ring-bg { stroke: var(--light-20); }
.pv-ring-fg { stroke: var(--tertiary); stroke-linecap: round; }
.pv-ring b { position: relative; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: var(--text-2xl); color: var(--tertiary); line-height: 1; }
.pv-ring.pv-pop { animation: pv-bump .3s ease; }

/* open rows: the detail fades and slides in */
.pv-in-anim { animation: pv-drop .3s ease; }

/* a drawing in every screen's band, and in every empty list */
.pv-band { position: relative; overflow: hidden; }
.pv-has-art > :not(.pv-band-img) { position: relative; z-index: 1; }
.pv-band-img { position: absolute; z-index: 0; right: var(--space-xs); bottom: 0; width: auto; height: 82%; max-width: 40%; opacity: .2; pointer-events: none; }
.pv-es { display: grid; justify-items: center; gap: var(--space-2xs); padding: var(--space-m) var(--space-s); text-align: center; }
.pv-es-art { width: 11rem; height: auto; opacity: .8; }
.pv-es p { max-width: 38rem; color: var(--text-title); font-size: var(--text-m); }
section > .pv-es { background: var(--bg-surface); border: 1px dashed var(--tertiary-d-1); border-radius: var(--radius-l); }
.pv-list .pv-es { border: 0; border-radius: 0; }

/* the reply menu on a guest row */
.pv-rmenu { position: fixed; z-index: 60; min-width: min(20rem, calc(100vw - 16px)); max-width: calc(100vw - 16px); padding: var(--space-4xs); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-surface); box-shadow: var(--shadow-xl); animation: pv-drop .2s ease; }
.pv-rmenu[hidden] { display: none; }
.pv-rmenu-i { display: flex; align-items: center; gap: var(--space-2xs); width: 100%; min-height: 4.8rem; padding: 0 var(--space-2xs); border: 0; border-radius: var(--radius-s); background: none; color: var(--text-title); font-size: var(--text-m); text-align: left; transition: background .2s; }
.pv-rmenu-i:hover { background: var(--bg-body); }
.pv-rmenu-i[aria-checked="true"] { font-weight: 600; }
.pv-rmenu-i span { flex: 1; }
.pv-rmenu-i svg.pv-ic { color: var(--action); }

/* catering: one line per event on a phone, the price at the right */
.pv-ac-p .pv-ac-h { grid-template-columns: minmax(0, 1fr) auto 2.4rem; }
.pv-mprice { font-size: var(--text-s); white-space: nowrap; }

/* a phone: every row is at most two lines (one line each for the name and the small print) */
@media (max-width: 1023.98px) {
  .pv-nm b, .pv-nm .pv-sub, .pv-it-n b, .pv-it-n .pv-sub, .pv-gr-t b, .pv-gr-n .pv-sub, .pv-dl-n b, .pv-ev b, .pv-ev .pv-sub, .pv-venues b, .pv-venues span, .pv-evbars li button > span:first-child, .pv-linkrow > span:not(.pv-sr) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pv-ro li > span, .pv-ck > span:not(.pv-tick) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .pv-ev .pv-pill { grid-row: 1; }
  .pv-ev .pv-sub { grid-column: 1 / -1; }
  .pv-ev b { grid-row: 1; min-width: 0; }
  .pv-dl .pv-pill { overflow: hidden; text-overflow: ellipsis; padding-top: 0; padding-bottom: 0; line-height: 2; }
  .pv-dl { row-gap: 0; }
  .pv-ac-h, .pv-cat-h { min-height: 4.8rem; }
  .pv-gr-n, .pv-venues a { gap: 0; }
  .pv-nm .pv-ico { width: 3.6rem; height: 3.6rem; }
  .pv-gr-t .pv-pill { padding-top: 0; padding-bottom: 0; line-height: 1.6; }
}

@media (max-width: 1023.98px) {
  .pv-toast { left: var(--space-s); right: var(--space-s); bottom: calc(7.4rem + env(safe-area-inset-bottom)); max-width: none; justify-content: space-between; text-align: left; border-radius: var(--radius-m); transform: translateY(2rem); }
  .pv-toast.on { transform: none; }
  .pv-ask > div { padding-right: calc(var(--space-5xl) + var(--space-3xs)); }
  .pv-ask img { display: block; position: absolute; right: var(--space-xs); top: var(--space-xs); width: 5.6rem; height: auto; opacity: .7; pointer-events: none; }
  .pv-es-art { width: 6rem; }
  .pv-es { padding: var(--space-xs); gap: var(--space-3xs); }
}
@media (min-width: 720px) {
  .pv-ready { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r t a"; padding: var(--space-s) var(--space-m); gap: var(--space-m); }
  .pv-band-img { opacity: .3; height: 86%; }
}

@media (min-width: 1024px) {
  .pv-d-only { display: inline; }
  .pv-sub.pv-d-only, .pv-d.pv-d-only, .pv-it-g.pv-d-only, .pv-it-a.pv-d-only, .pv-it-s.pv-d-only { display: block; }
  .pv-it-e.pv-d-only { display: inline-grid; }
  .pv-mprice { display: none; }
  .pv-ac-p .pv-ac-h { grid-template-columns: minmax(16rem, 1fr) minmax(0, auto) 2.8rem; }
  .pv-saved { left: auto; right: var(--space-m); bottom: var(--space-m); }
  /* the drawing sits at the band's right edge; the band keeps its text clear of it */
  .pv-has-art { padding-right: calc(var(--space-l) + var(--space-4xl)); }
  .pv-band-img { right: var(--space-s); bottom: var(--space-2xs); width: auto; height: auto; max-height: 84%; max-width: 7.5rem; opacity: .6; }
  .pv-es-art { width: 12rem; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .pv-cover .pv-cover-art { width: 22rem; right: var(--space-m); }
  .pv-cover .pv-when { max-width: calc(100% - 24rem); }
  /* the Budget band has four columns of figures; on small laptops it needs the room more than the drawing */
  .pv-band:not(.pv-band-2).pv-has-art { padding-right: var(--space-l); }
  .pv-band:not(.pv-band-2) .pv-band-img { display: none; }
}
@media (min-width: 1280px) {
  .pv-has-art { padding-right: calc(var(--space-l) + var(--space-5xl)); }
  .pv-band-img { right: var(--space-m); max-width: 12rem; }
}

/* ---- the seven jobs that used to open the old tools: import, WhatsApp, sheets, room, calendar, shortlist, running-order lines ---- */
.pv-btn-sm { padding: var(--space-3xs) var(--space-2xs); letter-spacing: .08em; }
.pv-linkrow { width: 100%; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; font: inherit; }
.pv-linkrow svg.pv-ic:last-child { color: var(--primary-l-1); }
.pv-card > .pv-s + .pv-linkrow { margin-top: var(--space-2xs); }
.pv-rail, .pv-card, .pv-linkrow > span { min-width: 0; }
.pv-pickbar .pv-ab-acts { margin-left: auto; }

/* import */
.pv-file { position: relative; display: flex; }
.pv-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pv-file input:focus-visible + label { outline: .2rem solid var(--action); outline-offset: .2rem; }
.pv-tw { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-surface); }
.pv-tbl { width: 100%; border-collapse: collapse; font-size: var(--text-s); }
.pv-tbl th, .pv-tbl td { padding: var(--space-3xs) var(--space-2xs); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-tbl thead th { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tertiary-d-2); background: var(--bg-body); }
.pv-tbl tbody tr:last-child > * { border-bottom: 0; }
.pv-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.pv-map { display: grid; gap: var(--space-2xs); }
#pvSheetBody { display: grid; gap: var(--space-s); }
@media (min-width: 720px) {
  .pv-map .pv-f { grid-template-columns: minmax(0, 1fr) 20rem; align-items: center; gap: var(--space-2xs); }
}

/* WhatsApp invites */
.pv-wa { display: grid; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; background: var(--bg-surface); }
.pv-wa-r { display: grid; gap: var(--space-3xs); padding: var(--space-2xs) var(--space-xs); border-top: 1px solid var(--border); }
.pv-wa-r:first-child { border-top: 0; }
.pv-wa-n b { display: block; color: var(--text-title); font-weight: 600; line-height: 1.3; }
.pv-wa-a { display: flex; align-items: center; gap: var(--space-3xs); }
.pv-wa-a .pv-btn { flex: 1; }
.pv-sentbtn { flex: none; width: 4.8rem; height: 4.8rem; border-radius: 50%; border: 1px solid var(--tertiary-d-1); background: var(--bg-surface); color: var(--tertiary-d-1); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.pv-sentbtn[aria-pressed="true"] { background: var(--success); border-color: var(--success); color: var(--white); }
.pv-sentbtn svg.pv-ic { width: 2rem; height: 2rem; stroke-width: 2.4; }
.pv-wa-r.sent .pv-wa-n b { color: var(--primary-l-1); }
.pv-wa-n b, .pv-wa-n .pv-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sheets to print: a page on screen, the only thing that prints */
.pv-ps { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--bg-body); animation: pv-up .3s ease; }
.pv-ps.pv-out { animation: pv-up-out .3s ease forwards; }
.pv-ps-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); padding: var(--space-xs) var(--space-s); background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.pv-ps-bar h2 { font-size: var(--text-xl); }
.pv-ps-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.pv-ps-acts .pv-x { margin-left: 0; }
.pv-ps-hint { max-width: 90rem; margin: var(--space-2xs) auto 0; padding: 0 var(--space-xs); color: var(--primary-l-1); font-size: var(--text-s); }
.pv-ps-hint:empty { display: none; }
.pv-paper { max-width: 90rem; margin: var(--space-xs) auto var(--space-l); padding: var(--space-s); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--shadow-m); color: var(--text-title); }
.pv-pp-title { font-size: var(--text-3xl); }
.pv-pp-sub { margin: var(--space-4xs) 0 var(--space-s) !important; color: var(--primary-l-1); }
.pv-pp-check { margin: 0 0 var(--space-s) !important; padding: var(--space-2xs) var(--space-xs); border-left: 3px solid var(--secondary); font-weight: 600; color: var(--text-title); }
.pv-pp-ev { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-xl); font-weight: 500; margin: var(--space-s) 0 var(--space-3xs); color: var(--text-title); }
.pv-pp-ev span { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-s); font-weight: 400; color: var(--primary-l-1); }
.pv-pp-h5 { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tertiary-d-2); margin: var(--space-xs) 0 var(--space-3xs); }
.pv-pp-sum { margin: 0 0 var(--space-2xs) !important; }
.pv-pp-sec { margin-bottom: var(--space-xs); }
.pv-pp-list { display: grid; gap: var(--space-3xs); padding-left: var(--space-xs) !important; list-style: disc !important; }
.pv-tbl-p th, .pv-tbl-p td { white-space: normal; max-width: none; }
.pv-tbl-kv th { width: 40%; font-weight: 500; }
.pv-tbl .alg { color: var(--error); font-weight: 600; }
.pv-pp-room { margin: var(--space-xs) 0; }
.pv-pp-room .pv-rsvg { max-height: 62rem; margin: 0 auto; }

/* sheets on a narrow screen: each table row becomes a small card (print and wide screens keep the full table) */
.pv-scrollhint { display: block; }
.pv-tw { scrollbar-width: auto; }
@media (min-width: 720px) { .pv-scrollhint { display: none; } }
@media screen and (max-width: 719.98px) {
  .pv-tbl-p:not(.pv-tbl-kv), .pv-tbl-p:not(.pv-tbl-kv) tbody, .pv-tbl-p:not(.pv-tbl-kv) tr, .pv-tbl-p:not(.pv-tbl-kv) th, .pv-tbl-p:not(.pv-tbl-kv) td { display: block; }
  .pv-tbl-p:not(.pv-tbl-kv) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv-tbl-p:not(.pv-tbl-kv) tr { padding: var(--space-2xs); border-bottom: 1px solid var(--border); }
  .pv-tbl-p:not(.pv-tbl-kv) tbody tr:last-child { border-bottom: 0; }
  .pv-tbl-p:not(.pv-tbl-kv) th { padding: 0 0 var(--space-4xs); border: 0; font-size: var(--text-m); font-weight: 600; color: var(--text-title); }
  .pv-tbl-p:not(.pv-tbl-kv) td { display: flex; justify-content: space-between; gap: var(--space-xs); padding: var(--space-4xs) 0; border: 0; text-align: right; }
  .pv-tbl-p:not(.pv-tbl-kv) td::before { content: attr(data-label); flex: none; color: var(--primary-l-1); text-align: left; }
  .pv-tbl-p:not(.pv-tbl-kv) td:empty { display: none; }
  .pv-tbl-p:not(.pv-tbl-kv) td[data-label="Allergies"] { flex-direction: column; gap: var(--space-4xs); text-align: left; }
  .pv-paper .pv-tw { overflow: visible; border: 0; background: none; }
}

/* the room */
.pv-roombar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xs); margin-bottom: var(--space-2xs); }
.pv-roomdim { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3xs); font-size: var(--text-s); color: var(--primary-l-1); }
.pv-in-n { width: 7rem; text-align: center; }
.pv-room-draw { display: none; }
.pv-roombar { display: none; }
.pv-room-list { display: block; }
.pv-roomcanvas { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-2xs); box-shadow: var(--shadow-m); margin-bottom: var(--space-2xs); }
.pv-rsvg { display: block; width: 100%; height: auto; max-height: 78vh; margin: 0 auto; user-select: none; }
.pv-rsvg .s-room { stroke: var(--tertiary-d-1); }
.pv-rsvg .s-grid { stroke: var(--border); }
.pv-rsvg .rdim { fill: var(--primary-l-1); font-size: .6px; }
.pv-rsvg .it { cursor: grab; touch-action: none; }
.pv-rsvg .it:focus { outline: none; }
.pv-rsvg .it.dragging { cursor: grabbing; opacity: .85; }
.pv-rsvg .tbl { fill: var(--primary); stroke: var(--tertiary-d-1); stroke-width: .06; }
.pv-rsvg .seat { fill: var(--bg-surface); stroke: var(--tertiary-d-1); stroke-width: .04; }
.pv-rsvg .seat.f { fill: var(--tertiary); }
.pv-rsvg .seat.x { fill: var(--error); stroke: var(--error); }
.pv-rsvg .tno { fill: var(--text-title-dark); font-size: .6px; font-weight: 600; }
.pv-rsvg .tnm { fill: var(--tertiary-l-3); font-size: .3px; }
.pv-rsvg .ovn { fill: var(--error); font-size: .32px; font-weight: 700; }
.pv-rsvg .fs { fill: var(--tertiary-l-4); stroke: var(--tertiary-d-1); }
.pv-rsvg .ft-dance .fs { fill: var(--bg-body); }
.pv-rsvg .flbl { fill: var(--text-title); font-size: .55px; }
.pv-rsvg .it.tight .tbl { stroke: var(--error); stroke-width: .12; }
.pv-rsvg .it.sel .tbl, .pv-rsvg .it.sel .fs, .pv-rsvg .it:focus-visible .tbl, .pv-rsvg .it:focus-visible .fs { stroke: var(--action); stroke-width: .16; }
.pv-room-list > .pv-s { margin-bottom: var(--space-2xs); }
.pv-fc-room .pv-fact:nth-child(1) { width: 12rem; }

/* shortlist, checks, running-order lines */
.pv-sladd { display: grid; gap: var(--space-2xs); align-items: end; margin-bottom: var(--space-2xs); }
.pv-checks { display: grid; gap: var(--space-3xs); }
.pv-checks li { display: flex; align-items: flex-start; gap: var(--space-2xs); }
.pv-checks svg.pv-ic { margin-top: var(--space-4xs); width: 1.6rem; height: 1.6rem; }
.pv-ck-ok svg.pv-ic { color: var(--success); }
.pv-ck-warn svg.pv-ic { color: var(--tertiary-d-2); }
.pv-ck-no svg.pv-ic { color: var(--error); }
.pv-ro li { display: block; padding: 0; }
.pv-roi { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2.4rem; align-items: center; gap: var(--space-2xs); width: 100%; min-height: 4.8rem; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.pv-roi b { color: var(--text-title); font-variant-numeric: tabular-nums; }
.pv-roi svg.pv-ic { color: var(--primary-l-1); }
.pv-roi:hover svg.pv-ic { color: var(--action); }
.pv-roi > span { min-width: 0; }
@media (max-width: 1023.98px) { .pv-roi > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }

@media (min-width: 560px) {
  .pv-sladd { grid-template-columns: minmax(0, 24rem) auto; }
}
@media (min-width: 720px) {
  .pv-room-draw { display: block; }
  .pv-roombar { display: flex; }
  .pv-room-list { display: none; }
}
@media (min-width: 1024px) {
  .pv-fc-sl .pv-fact:nth-child(1) { width: 14rem; }
  .pv-fc-sl .pv-fact:nth-child(2) { width: 18rem; }
  .pv-ps-bar { padding: var(--space-xs) var(--space-l); }
  .pv-paper { padding: var(--space-l); }
}

/* ---- battle-test fixes (2026-12-04): start screen, "Before you start", Restore, the planner form, one food figure ---- */
/* a small text button (Restore, About your plan, Need help finding one?) */
.pv-linkbtn { display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: 4.4rem; padding: 0; border: 0; background: none; font: inherit; font-size: var(--text-s); font-weight: 600; color: var(--action); text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.pv-linkbtn:hover { color: var(--hover-primary); }
.pv-linkbtn svg.pv-ic { width: 1.6rem; height: 1.6rem; flex: none; }
.pv-save .pv-linkbtn { color: var(--tertiary-l-3); }
.pv-save .pv-linkbtn:hover { color: var(--tertiary); }
.pv-tobook .pv-linkbtn { margin-top: var(--space-2xs); }
/* the start screen: the same shell, a card in place of the plan */
.pv-body.pv-start { margin-top: 0; padding-top: var(--space-s); padding-bottom: var(--space-xl); }
.pv-start-card { position: relative; overflow: hidden; display: grid; gap: var(--space-xs); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-m) var(--space-s); box-shadow: var(--shadow-m); }
.pv-start-card > p:not(.pv-eyebrow) { max-width: 56rem; color: var(--primary-l-1); }
.pv-start-h { font-family: "Playfair Display", Georgia, serif; font-size: var(--text-3xl); font-weight: 400; line-height: 1.1; color: var(--text-title); }
.pv-start-art { width: 9rem; height: auto; opacity: .8; justify-self: end; order: -1; }
.pv-start-acts { display: grid; gap: var(--space-2xs); margin-top: var(--space-2xs); }
.pv-start-acts .pv-btn { width: 100%; }
.pv-start-sample { justify-self: start; }
.pv-notice h2 { font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.pv-notice p, .pv-notice-p p { color: var(--text-body); max-width: 64rem; }
.pv-notice p + p, .pv-notice-p p + p { margin-top: var(--space-2xs); }
.pv-notice .pv-acts { margin-top: var(--space-xs); }
/* Catering: the line that says which head count is used (on a phone too, where it may wrap) */
.pv-ac-sub, .pv-headline { white-space: normal; overflow: visible; color: var(--primary-l-1); }
/* the row's own line under the whole row, lined up with the event's name: an empty box as wide as the icon, then the nm gap */
.pv-ac-hs { row-gap: 0; }
.pv-ac-hs > .pv-ac-sub { grid-column: 1 / -1; display: flex; gap: var(--space-2xs); }
.pv-ac-hs > .pv-ac-sub::before { content: ""; flex: none; width: 4.2rem; }
@media (max-width: 1023.98px) { .pv-ac-hs > .pv-ac-sub::before { width: 3.6rem; } }
.pv-headline { font-weight: 500; }
/* the planner form in the side panel (the site's questionnaire) */
.pv-pb .pv-askform { margin: 0; }
.pv-askmail { margin-top: var(--space-2xs); }
.pv-pb .pv-err#pvAskNote { margin-top: var(--space-2xs); }
@media (max-width: 719.98px) {
  /* Home "Then": the job and its due date stack, so both stay whole on a phone */
  .pv-then { flex-direction: column; align-items: flex-start; }
  .pv-then > div { flex: none; width: 100%; }
  .pv-then .pv-v { white-space: normal; overflow-wrap: anywhere; }
  .pv-then .pv-pill { white-space: normal; }
  /* a long link ("Want us to find a few caterers for you?") may take a second line, never a third */
  .pv-linkrow > span:not(.pv-sr) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
@media (min-width: 720px) {
  .pv-body.pv-start { padding-top: var(--space-l); }
  .pv-start-card { padding: var(--space-l); }
  .pv-start-acts { grid-template-columns: repeat(3, auto); justify-content: start; }
  .pv-start-acts .pv-btn { width: auto; }
  .pv-start-art { position: absolute; right: var(--space-m); top: var(--space-m); width: 14rem; }
  .pv-start-card > p, .pv-start-h { max-width: calc(100% - 16rem); }
}

/* printing: only the sheet that is open. Colours stay Core Framework names; the browser prints them as set */
@page { margin: 1.4cm; }
@media print {
  body.pv-printing,body.pv-printing.pv-lock { overflow: visible; background: var(--white); }
  body.pv-printing .pv-app, body.pv-printing .pv-tabs, body.pv-printing .pv-fab, body.pv-printing .pv-dim, body.pv-printing .pv-panel, body.pv-printing .pv-sheet,
  body.pv-printing .pv-saved, body.pv-printing .pv-toast, body.pv-printing .pv-rmenu, body.pv-printing .pv-ps-bar, body.pv-printing .pv-ps-hint { display: none !important; }
  body.pv-printing .pv { min-height: 0; padding: 0; background: var(--white); }
  body.pv-printing .pv-ps { position: static; overflow: visible; animation: none; background: var(--white); }
  body.pv-printing .pv-paper { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  body.pv-printing .pv-pp-sec { break-inside: avoid; }
  body.pv-printing .pv-tw { overflow: visible; border: 0; }
  body.pv-printing .pv-tbl thead th { background: none; }
}

/* "How it works" links to the guide page (Sat 2026-12-05): a quiet text link on each screen, panel and the start screen */
.pv-how { display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: 4.4rem; font-size: var(--text-s); font-weight: 600; color: var(--action); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.pv-how:hover { color: var(--hover-primary); }
.pv-how svg.pv-ic { width: 1.6rem; height: 1.6rem; flex: none; }
.pv-bactions { align-items: center; }
.pv-mbar .pv-how-m { margin-left: auto; padding-right: var(--space-3xs); color: var(--tertiary); }
.pv-mbar .pv-how-m:hover { color: var(--tertiary-l-2); }
.pv-ph .pv-how-ph { display: flex; width: fit-content; min-height: 4rem; }
.pv-start-card .pv-how-start { justify-self: start; }
.pv-menu .pv-how-side { margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--light-10); border-radius: 0; font-size: var(--text-s); font-weight: 400; color: var(--tertiary-l-3); text-decoration: none; }
.pv-menu .pv-how-side:hover { color: var(--tertiary); }
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pv-panel.pv-out, .pv-sheet.pv-out, .pv-dim.pv-out, .pv-ps.pv-out { display: none; }
}
