/* ==========================================================================
   Shaadi Planning: the shared UI layer (the design system). Loaded on every page right
   after that page's base stylesheets (style.css / planner.css / owner.css /
   site.css ...), so equal-specificity rules here win by order.

   The product's own tokens (--bg, --surface, --ink, --mute, --plum, --accent,
   --hm-*, --tb-*, --sw-* ...) live in style.css (and their copies in
   planner.css, owner.css and site.css); this file adds only what the design system
   introduced on top of them:
     --ds-*  the design system palette, light here and dark in the block below
     --ui-*  roles built from it (canvas, grouped surfaces, fills, tint,
             filled-button colors, separators, easing)
     --r-*   radii: field 10, row group 12, card 14, sheet 16, pill
     shadcn-style aliases (--primary, --muted-foreground, --border ...)
   Then the components, by screen family:
     1 type   2 top bar   3 tab bar   4 buttons   5 fields + switch   6 cards
     7 home   8 summary stats   9 guests   10 budget   11 account
     12 sheets + menus   13 portal   14 console   15 public site
     16 segmented control   17 accessibility preferences   18-20 per-screen
     21 component anatomy   22 dark-mode details
   A few rules start with "html body": they meet the planner's own
   ":root body #app ..." rules in planner.css and must outrank them.
   Behavior that goes with it (large title, scroll-edge bars) is public/ui.js.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* the design system palette */
  --ds-plum:#3E1F47;--ds-plum-deep:#2A1430;--ds-plum-on-dark:#C9A6D6;
  --ds-gold:#C8791A;--ds-gold-ink:#9A5A0F;--ds-gold-on-dark:#E3A14A;
  --ds-bg-grouped:#F6F3EE;--ds-surface:#FFFFFF;--ds-surface-2:#FBF9F6;
  --ds-ink:#1E1B18;--ds-ink-2:#5E5750;--ds-ink-3:#8A827A;
  --ds-separator:rgba(60,50,40,.14);--ds-fill:rgba(120,110,100,.12);
  --ds-good:#2E7D4F;--ds-warn:#B26A00;--ds-bad:#C2362B;
  /* status as text on its tint (4.5:1 or better) */
  --ds-good-ink:#23683F;--ds-warn-ink:#8E5A00;--ds-bad-ink:#A82C22;--ds-good-bg:#E9F2EC;--ds-warn-bg:#FAF0E0;--ds-bad-bg:#FAE9E7;
  /* shape and motion */
  --r-field:10px;--r-group:12px;--r-card:14px;--r-sheet:16px;--r-pill:999px;
  --ui-ease:cubic-bezier(.25,.8,.3,1);--ui-dur:.35s; /* critically damped, no overshoot */
  /* roles */
  --ui-bg:var(--ds-bg-grouped);--ui-group:var(--ds-surface);--ui-elev:var(--ds-surface);--ui-field:var(--ds-surface-2);
  --ui-fill:var(--ds-fill);--ui-sep:var(--ds-separator);--ui-card-sh:none;
  --ui-tint:var(--ds-plum);--ui-tinted:rgba(62,31,71,.12);--ui-btn:var(--ds-plum);--ui-on-btn:#FFFFFF;--ui-gold-text:var(--ds-gold-ink);
  --ph:var(--ds-ink-3);
  /* component anatomy aliases (shadcn/ui names) */
  --background:var(--ui-bg);--foreground:var(--ink);--card-foreground:var(--ink);
  --muted:var(--ui-fill);--muted-foreground:var(--mute);--border:var(--ui-sep);--input:var(--ui-sep);
  --primary:var(--ui-btn);--primary-foreground:var(--ui-on-btn);--secondary:var(--ui-tinted);--secondary-foreground:var(--ui-tint);
  --destructive:var(--ds-bad);--radius:var(--r-card)}
/* dark: true-black grouped canvas, #1C1C1E groups, #2C2C2E elevated; filled buttons turn light lavender with plum-deep text; gold text lifts to #EBB565 */
:root[data-theme=dark]{
  --ds-bg-grouped:#000000;--ds-surface:#1C1C1E;--ds-surface-2:#2C2C2E;
  --ds-ink:#F5F1EA;--ds-ink-2:#B9B2A8;--ds-ink-3:#8C857C;
  --ds-separator:rgba(255,255,255,.12);--ds-fill:rgba(118,118,128,.24);
  --ds-good-ink:#8FD3A6;--ds-warn-ink:#F2C46B;--ds-bad-ink:#FF9F94;--ds-good-bg:#16291D;--ds-warn-bg:#33290F;--ds-bad-bg:#3A1D1B;
  --ui-elev:var(--ds-surface-2);
  --ui-tint:#EADAF0;--ui-tinted:rgba(201,166,214,.14);--ui-btn:var(--ds-plum-on-dark);--ui-on-btn:var(--ds-plum-deep);--ui-gold-text:#EBB565}

/* ---------- 1. Type ---------- */
body { font-family: var(--sans); font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.45; background: var(--ui-bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
html body :is(button, input, select, textarea, .btn) { font-family: var(--sans); letter-spacing: -.011em; }
html { background: var(--ui-bg); }
canvas { letter-spacing: normal; } /* text drawn on a canvas (cards, brand videos) keeps its own spacing, not the page's */
body.sp-hm #app, body:has(#pp-main > .hm), body:has([data-tab=overview]:not([hidden]) > .hm) { background: var(--ui-bg); }

/* page titles: the brand serif, big, tight, left */
:is(#app, #pp-main, #o-main) .pg > h1, :is(#app, #pp-main, #o-main) h1:not(.sr) {
  font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.015em; margin: 4px 0 20px; color: var(--ink); text-align: left; }
#app .pg > h1 em { font-style: italic; color: inherit; }
/* the eyebrow above a title repeats it: hide */
#app .pg > .eyebrow:first-child { display: none; }
/* section headers, iOS grouped style */
html body #app .eyebrow, html body .own .eyebrow, html body #pp-main .eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--mute);
  margin: 0 0 8px; padding: 0 16px; }
#app h2, #pp-main h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; }
.mute, .mute.s { color: var(--mute); }
.s { font-size: 13px; letter-spacing: -.003em; }
#app .sec { border-top: 0; padding-top: 8px; margin-top: 24px; }
hr { border: 0; height: .5px; background: var(--ui-sep); }

/* ---------- 2. Top bar: translucent material, compact title appears on scroll (public/ui.js) ---------- */
.hdr, .pp-top, .ohd .obar {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: .5px solid transparent; box-shadow: none;
  transition: background-color .25s var(--ui-ease), border-color .25s var(--ui-ease); }
html.ui-scrolled .pp-top, html.ui-scrolled .ohd .obar {
  background: color-mix(in srgb, var(--ui-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--ui-sep); }
/* The planner's bar holds the desktop sidebar (#nav, position: fixed). A backdrop-filter on .hdr itself would make it the sidebar's
   containing block and squeeze the sidebar into the bar once the page scrolls, so the material is drawn on a layer behind the bar. */
html.ui-scrolled .hdr { border-bottom-color: var(--ui-sep); }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s var(--ui-ease);
  background: color-mix(in srgb, var(--ui-bg) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
html.ui-scrolled .hdr::before { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .hdr::before { background: var(--ui-bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.hdr .hrow { min-height: 52px; padding-top: 4px; padding-bottom: 4px; position: relative; }
.hdr .logo { font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; transition: opacity .2s var(--ui-ease); }
.hdr .logo svg { width: 24px; height: 26px; }
/* A phone's bar holds the logo and four buttons: the wordmark steps down to fit (a 360 to 400 px screen), and what cannot fit is cut from its end, never from the mark */
@media (max-width: 859px) { .hdr .logo { justify-content: flex-start; font-size: clamp(14px, calc((100vw - 260px) / 6.8), 21px); } }
@media (max-width: 345px) { .hdr .logo em { display: none; } } /* the smallest phones: the mark and Shaadi */
.hdr :is(.nsearch, .nhelp, .nbell, .menu) { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: transparent; border: 0; color: var(--ui-tint); }
.hdr :is(.nsearch, .nhelp, .nbell) svg { width: 22px; height: 22px; }
.ui-ctitle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); font: 600 17px/1.2 var(--sans); letter-spacing: -.025em; color: var(--ink);
  opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .22s var(--ui-ease), transform .3s var(--ui-ease); }
html.ui-collapsed .ui-ctitle { opacity: 1; transform: translate(-50%, -50%); }
html.ui-collapsed .hdr .logo { opacity: 0; }
/* Home has no title to put in the bar: the logo stays when it scrolls (the bar is never left empty) */
html.ui-collapsed body:has(#t-home:not([hidden])) .hdr .logo { opacity: 1; }
html.ui-collapsed body:has(#t-home:not([hidden])) .ui-ctitle { opacity: 0; }
/* Back in the bar (ui.js): inside a tool, once its "‹ Tools" has scrolled away; it takes the logo's place */
.hdr .hrow > button.ui-back { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 4px; min-height: 44px; max-width: 32%; padding: 0 8px;
  border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ui-tint); font: 400 17px/1 var(--sans); letter-spacing: -.02em; }
.hdr .hrow > button.ui-back svg { width: 11px; height: 19px; flex: none; }
.hdr .hrow > button.ui-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ui-hasback .hdr .hrow > button.ui-back { display: inline-flex; }
html.ui-hasback .hdr .logo { opacity: 0; pointer-events: none; }

/* ---------- 3. Floating tab bar (material) ---------- */
/* The planner's bar (.tabbar) is the phone and tablet bar below 860px; the portal's and the console's (.sptb) is a bottom bar only below 700px
   (style.css), so from 700px its tabs keep their own size across the top instead of the bar's small labels */
@media (max-width: 859px) {
  nav.tabbar {
    background: var(--tb-fill) !important; -webkit-backdrop-filter: blur(24px) saturate(190%) !important; backdrop-filter: blur(24px) saturate(190%) !important;
    box-shadow: inset 0 0 0 .5px var(--tb-edge), var(--tb-shadow) !important; border: 0 !important; }
  nav.tabbar button { color: var(--mute); font: 500 10.5px/1.1 var(--sans); letter-spacing: .005em; }
  nav.tabbar button { background: none !important; border: 0 !important; padding: 2px 0 !important; min-height: 52px; border-radius: 999px !important; box-shadow: none !important; }
  nav.tabbar button:is(.on, [aria-expanded=true]) { background: var(--tb-pill) !important; }
  nav.tabbar button svg { background: none !important; stroke-width: 1.7; }
  nav.tabbar button:is(.on, [aria-expanded=true]) { color: var(--tb-on); font-weight: 600; }
  nav.tabbar button:focus-visible { outline-offset: -4px; }
}
@media (max-width: 699px) {
  nav.sptb {
    background: var(--tb-fill) !important; -webkit-backdrop-filter: blur(24px) saturate(190%) !important; backdrop-filter: blur(24px) saturate(190%) !important;
    box-shadow: inset 0 0 0 .5px var(--tb-edge), var(--tb-shadow) !important; border: 0 !important; }
  nav.sptb :is(a, button) { color: var(--mute); font: 500 10.5px/1.1 var(--sans); letter-spacing: .005em; }
  nav.sptb :is(a, button) { background: none !important; border: 0 !important; padding: 2px 0 !important; min-height: 52px; border-radius: 999px !important; box-shadow: none !important; }
  nav.sptb :is(a, button):is([aria-current], .on) { background: var(--tb-pill) !important; }
  nav.sptb :is(a, button) svg { background: none !important; stroke-width: 1.7; }
  nav.sptb :is(a, button):is([aria-current], .on) { color: var(--tb-on); font-weight: 600; }
}

/* ---------- 4. Buttons: filled primary, tinted secondary, plain tertiary ---------- */
/* a button that is a card (.card: a request row in Our Concierge and Room Blocks) stays a card, not a tinted pill; a selected button (pressed, selected, checked, .on) keeps its own selected look; sign-in buttons keep their providers' styles; .cal-x: the Calendar's rows, blocks and days draw themselves (planner.css) */
html body :is(#app, #pp-main, .pp-top, .own, .sp-dlg, .acctm) :is(button, .btn):not(.card):not(.hm-tile):not(.hm-jbc):not(.hm-stat):not(.gs-go, .gs-x, .cs-tile, .sgp-tp, .sgp-ev, .pal-c, .pal-x, [role=option], .mn-big):not([role=switch]):not(.sq):not(.hm-fab):not(.hm-ask):not(.lnk):not(.li):not(.wa-b):not(.sp-mbtn):not(nav.tabbar button):not(.hdr button):not(.sptb button):not([aria-pressed=true], [aria-selected=true], [aria-checked=true], .on):not(.sgn-b, .pp-sgo):not(.cal-x):not(.chips button, .seg button, .sd-tpl) {
  border: 0; background: var(--ui-tinted); color: var(--ui-tint); font-weight: 600; font-size: .9375rem; letter-spacing: 0;
  border-radius: var(--r-pill); min-height: 44px; padding: 10px 18px; box-shadow: none; }
html body :is(#app, #pp-main, .own, .sp-dlg) :is(button.p, .btn.p, button.cpl-addtop) {
  background: var(--ui-btn) !important; color: var(--ui-on-btn) !important; border: 0 !important; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em;
  min-height: 50px; border-radius: var(--r-pill); box-shadow: none !important; }
html body :is(#app, #pp-main, .own) button.lnk, html body #app .cpl-sl { background: var(--ui-tinted) !important; border: 0; color: var(--ui-tint); font-weight: 600; text-decoration: none; padding: 0 16px; min-height: 44px; border-radius: var(--r-pill); } /* a text action is a small tinted pill (section 4b) */
/* Choice chips (a card's design, a font, a color set): a quiet outline, and the picked one tinted plum, never solid ink (one accent per
   screen). Segmented controls: a gray track and a raised thumb (16 below has the Appearance one). Template tiles keep their own look. */
html body :is(#app, #pp-main, .own, .sp-dlg) .chips button { background: var(--ui-group); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--ui-sep); font-weight: 500; font-size: .9375rem; letter-spacing: -.01em; padding: 0 16px; border-radius: var(--r-pill); }
html body #app .chips > button { min-height: 44px; } /* the planner's chips (Guests' + Roka, + Haldi...) are 44px targets on phones */
html body :is(#app, #pp-main, .own, .sp-dlg) .chips button:is(.on, [aria-pressed=true]) { background: var(--ui-tinted); color: var(--ui-tint); box-shadow: inset 0 0 0 1.5px var(--ui-tint); font-weight: 600; }
html body :is(#app, #pp-main, .own, .sp-dlg) .seg { background: var(--ui-fill); box-shadow: none; padding: 2px; gap: 2px; border-radius: var(--r-pill); }
html body :is(#app, #pp-main, .own, .sp-dlg) .seg button { background: transparent; color: var(--ink); border: 0; box-shadow: none; font-weight: 500; font-size: .875rem; padding: 0 14px; border-radius: var(--r-pill); }
html body :is(#app, #pp-main, .own, .sp-dlg) .seg button:is(.on, [aria-pressed=true], [aria-selected=true]) { background: #FFFFFF; color: var(--ds-ink); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
html[data-theme=dark] body :is(#app, #pp-main, .own, .sp-dlg) .seg button:is(.on, [aria-pressed=true], [aria-selected=true]) { background: #48484A; color: #FFFFFF; }
@media (prefers-contrast: more) { html body :is(#app, #pp-main, .own, .sp-dlg) .chips button { box-shadow: inset 0 0 0 1px var(--ink); } html body :is(#app, #pp-main, .own, .sp-dlg) .seg { box-shadow: inset 0 0 0 1px var(--ink); } }
/* press feedback on pointer-down */
:is(button, .btn, a.hm-tile, summary, .pill) { transition: transform .32s var(--ui-ease), opacity .2s; }
:is(button, .btn, a.hm-tile, .pill):active:not(:disabled) { transform: scale(.97); }
:is(button, .btn, .pill):active:not(:disabled) { opacity: .85; }

/* ---------- 5. Fields and the switch ---------- */
html body :is(#app, #pp-main, .own) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) {
  background-color: var(--ui-field); border: 0; border-radius: var(--r-field); min-height: 44px; padding: 10px 14px; font-size: 17px; letter-spacing: -.025em; color: var(--ink); box-shadow: none; }
/* the portal: a list keeps room for its chevron (the 14px above would put the words under it, as on Team's role menu) */
html body #pp-main select:not([multiple]) { padding-right: 2.3rem; }
:is(#app, #pp-main, .own) :where(input:not([type=checkbox], [type=radio]), select, textarea):focus { /* never a box or a radio: their checked fill would go white, hiding the tick */ box-shadow: var(--ring); outline: 0; background-color: var(--surface); }
:is(#app, #pp-main, .own) .card :where(input:not([type=checkbox]):not([type=radio]), select, textarea) { background-color: var(--ui-field); box-shadow: inset 0 0 0 .5px var(--ui-sep); }
html body :is(#app, #pp-main, .own) label.f { font-size: 13px; color: var(--mute); font-weight: 500; gap: 6px; letter-spacing: -.003em; }
::placeholder { color: var(--ph); opacity: 1; }
input[type=search] { padding-left: 38px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20 20l-4-4' fill='none' stroke='%238E8590' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%; background-size: 18px; }

/* iOS-style switch */
input[type=checkbox][role=switch] { -webkit-appearance: none; appearance: none; width: 51px !important; height: 31px !important; min-height: 31px !important; flex: none;
  border-radius: 999px; border: 0 !important; background: var(--sw-off) !important; position: relative; padding: 0 !important; margin: 0; cursor: pointer; transition: background-color .25s var(--ui-ease); box-shadow: none !important; }
html body input[type=checkbox][role=switch]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .3s var(--ui-ease); }
input[type=checkbox][role=switch]::after { display: none !important; }
input[type=checkbox][role=switch]:checked { background: var(--sw-on) !important; }
input[type=checkbox][role=switch]:checked::before { transform: translateX(20px); }

/* a group of choice chips (events a guest is invited to): a picked chip is tinted plum, not solid ink (one accent per screen) */
.ckp .chk { border-color: var(--ui-sep); }
.ckp .chk:has(> input:checked) { background: var(--ui-tinted); border-color: transparent; color: var(--ui-tint); }
/* a choice with two lines (an event's name and its date): a rounded card, the name on one line and the date under it, never an oval */
.ckp:has(> .chk > span > b) { grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); }
.ckp .chk:has(> span > b) { border-radius: 14px; justify-content: flex-start; text-align: left; padding: 10px 12px; }
.ckp .chk:has(> span > b) > input { border-radius: inherit !important; }
.ckp .chk:has(> span > b) > span { display: grid; gap: 1px; min-width: 0; }
.ckp .chk:has(> span > b) :is(b, .s) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; overflow-wrap: normal; }

/* ---------- 6. Cards: no borders, soft corners ---------- */
:is(#app, #pp-main, .own) :is(.card, .sga-card, .sga-profile) { background: var(--card); border: 0 !important; border-radius: var(--r-card); box-shadow: var(--ui-card-sh) !important; }

/* ---------- 7. Home ---------- */
.hm { padding-top: 0; }
.hm .hm-top { align-items: flex-start; text-align: left; padding: 8px 0 16px; }
.hm .hm-hi { font: 400 34px/1.1 var(--serif); letter-spacing: -.015em; margin: 4px 0 0; color: var(--ink); }
.hm .hm-hi em { color: inherit; font-style: italic; }
.hm .hm-line { font-size: 15px; color: var(--mute); margin-top: 4px; }
/* countdown card */
.hm .hm-hero { border-radius: 20px; border: 0; box-shadow: none; background: linear-gradient(145deg, #4A2655 0%, #321939 60%, #29132F 100%); }
[data-theme=dark] .hm .hm-hero { background: linear-gradient(145deg, #3A2045 0%, #24142B 100%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.hm .hm-hero .hk { font: 600 12px/1.2 var(--sans); letter-spacing: .06em; color: rgba(255, 245, 235, .72); }
.hm .hm-hero .cpl-days { font-family: var(--serif); font-weight: 300; letter-spacing: -.03em; }
.hm .hm-hero .cpl-sub { font-size: 15px; letter-spacing: -.016em; color: rgba(255, 245, 235, .82); }
/* nudge row */
.hm .hm-nudge { background: var(--card); border: 0; border-radius: var(--r-card); box-shadow: none; padding: 12px 12px 12px 16px; gap: 12px; }
.hm .hm-nudge p { font: 500 15px/1.35 var(--sans); letter-spacing: -.016em; color: var(--ink); }
.hm .hm-nudge .cpl-advdot { width: 10px; height: 10px; min-width: 10px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hm .hm-nudge .hm-ngo { background: var(--ui-fill); color: var(--ui-tint); font-size: 15px; min-height: 36px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
/* section header row */
.hm .hm-hrow { margin: 28px 0 10px; padding: 0 4px; align-items: center; }
.hm .hm-h { font: 700 22px/1.2 var(--sans); letter-spacing: -.026em; color: var(--ink); }
html body .hm .hm-addsm { background: none !important; color: var(--ui-tint) !important; min-height: 44px; padding: 0 4px; font-size: 17px; font-weight: 500; border: 0 !important; }
/* tiles: white cards, left aligned, tinted icon chip */
.hm-grid { gap: 12px; }
:is(.hm, .tiles) .hm-tile { border: 0 !important; border-radius: 16px; box-shadow: none !important; background: var(--card) !important; color: var(--ink) !important; position: relative; }
/* phones and tablets: icon chip on top, title and summary under; a computer keeps the compact grid (icon and title on one line, style.css) */
@media (max-width: 1023px) {
  .hm .hm-tile { aspect-ratio: auto; min-height: 116px; align-items: flex-start; justify-content: space-between; text-align: left; gap: 14px; padding: 14px; }
  .hm .hm-tile .hm-tx { display: flex; flex-direction: column; width: 100%; }
}
.hm .hm-tile .hm-tx { align-items: flex-start; text-align: left; gap: 2px; }

:is(.hm, .tiles) .hm-tile > svg { width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 10px; color: var(--hm-icc); stroke: currentColor;
  background: color-mix(in srgb, var(--hm-icc) 13%, transparent); flex: none; }
:is(.hm, .tiles) .hm-tile .hm-tt { font: 600 17px/1.25 var(--sans) !important; letter-spacing: -.025em !important; color: var(--ink) !important; }
:is(.hm, .tiles) .hm-tile .hm-ts { font: 400 13px/1.35 var(--sans) !important; letter-spacing: -.005em; color: var(--mute) !important; }
:is(.hm, .tiles) .hm-tile .hm-bar { width: 100%; height: 4px; border-radius: 4px; background: var(--ui-fill); margin-top: 6px; }
:is(.hm, .tiles) .hm-tile .hm-bar::before, :is(.hm, .tiles) .hm-tile .hm-bar::after { background: var(--hm-icc); border-radius: 4px; }
/* a computer: the planner's compact tiles stay under ~124px */
@media (min-width: 1024px) {
  #app :is(.hm, .tiles) .hm-tile:not([data-c=up]) { padding-block: 12px; }
  #app :is(.hm, .tiles) .hm-tile > svg { padding: 5px; border-radius: 9px; }
  #app :is(.hm, .tiles) .hm-tile .hm-bar { margin-top: 2px; }
}
:is(.hm, .tiles) .hm-tile::after { content: ""; position: absolute; right: 14px; top: 22px; width: 7px; height: 7px; border: solid var(--ph); border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .7; }
/* Jump Back In (habits.js): up to three places this person uses most lately, a row that swipes on a phone */
.hm-jb .hm-hrow { margin-top: 24px; }
.hm-jbr { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.hm-jbr::-webkit-scrollbar { display: none; }
html body .hm .hm-jbc { flex: 0 0 min(78%, 300px); scroll-snap-align: start; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; justify-items: start; text-align: left;
  min-height: 64px; padding: 10px 14px; border: 0 !important; border-radius: 16px; background: var(--card) !important; color: var(--ink) !important; box-shadow: none !important; }
html body .hm .hm-jbc:active { transform: scale(.97); }
.hm-jbc > svg { grid-row: span 2; width: 20px; height: 20px; padding: 7px; box-sizing: content-box; border-radius: 10px; color: var(--ui-tint); stroke: currentColor; background: var(--ui-tinted); }
.hm-jbc b { font: 600 16px/1.25 var(--sans); letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-jbc span { font: 400 13px/1.3 var(--sans); color: var(--mute); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 860px) { .hm-jbr { margin: 0; padding: 0; overflow: visible; } html body .hm .hm-jbc { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { html body .hm .hm-jbc:active { transform: none; } }
/* Get Started: a plain grouped card. Title and "2 of 4 done", a thin bar, one row per step (a done step is its ticked title), Hide as text */
html body .hm .hm-gs { border: 0; box-shadow: none; border-radius: 16px; background: var(--card); padding: 14px 16px 4px; }
html body .hm .hm-gs .gs-h { font: 700 22px/1.2 var(--sans); letter-spacing: -.026em; }
html body .hm .hm-gs button.gs-x { border: 0; background: none; color: var(--ui-tint); font: 500 17px/1 var(--sans); padding: 0 4px; min-height: 44px; border-radius: 10px; }
html body .hm .hm-gs .gs-sub { margin: 0 0 8px; font-size: 15px; }
html body .hm .hm-gs .gs-bar { height: 4px; margin: 0 0 6px; background: var(--ui-fill); }
.hm-gs .gs-row { position: relative; }
html body .hm-gs .gs-row + .gs-row, html body .hm-gs .gs-body + .gs-row { border-top: 0; }
.hm-gs .gs-row + .gs-row::before, .hm-gs .gs-body + .gs-row::before { content: ""; position: absolute; left: 40px; right: 0; top: 0; height: .5px; background: var(--ui-sep); } /* inset to the words, like a grouped list */
html body .hm .hm-gs button.gs-go { min-height: 56px; padding: 8px 0; border-radius: 0; background: none; gap: 12px; }
html body .hm .hm-gs .gs-row.done button.gs-go { min-height: 44px; }
html body .hm .hm-gs button.gs-go:hover { background: none; }
.hm-gs .gs-dot { width: 28px; height: 28px; }
.hm-gs .gs-tx b { font-size: 17px; letter-spacing: -.02em; }
.hm-gs .gs-tx > span:not(.sr) { font-size: 14px; }
@media (min-width: 1024px) { html body .hm-gs .gs-row { border: 0; } .hm-gs .gs-row + .gs-row::before { display: none; } html body .hm .hm-gs button.gs-go { padding: 8px 4px; } }

/* A section that opens and showed the browser's triangle (Phone, Email and Address; "29 more vendor types"; Preview the Guest Page): a chevron
   after its words that turns when open. Only these: rows that draw their own layout (Your Events, Smart Paste...) keep theirs. */
/* No browser triangle on any summary, anywhere: Safari and the iOS app draw ::-webkit-details-marker even when list-style is none or the
   summary is flex/grid, which put a ▶ beside buttons that open panels and sheets. Rows that need a cue get the chevron below. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.mn-tr summary::after, #o-main .orow-main > details > summary::after { content: ""; display: inline-block; flex: none; align-self: center; box-sizing: border-box; width: 7px; height: 7px; margin: 0 0 0 10px; vertical-align: .2em;
  border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); transition: transform .2s var(--ui-ease); }
.mn-tr[open] summary::after, #o-main .orow-main > details[open] > summary::after { transform: translateY(3px) rotate(225deg); }
:is(#app, #pp-main, .own, .sp-dlg) details > summary.mute, #app .sgp-prev > summary { list-style: none; cursor: pointer; }
:is(#app, #pp-main, .own, .sp-dlg) details > summary.mute::-webkit-details-marker, #app .sgp-prev > summary::-webkit-details-marker { display: none; }
:is(#app, #pp-main, .own, .sp-dlg) details > summary.mute::after, #app .sgp-prev > summary::after { content: ""; display: inline-block; flex: none; align-self: center; box-sizing: border-box; width: 7px; height: 7px; margin: 0 0 0 10px; vertical-align: .2em;
  border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); transition: transform .2s var(--ui-ease); }
:is(#app, #pp-main, .own, .sp-dlg) details[open] > summary.mute::after, #app .sgp-prev[open] > summary::after { transform: translateY(3px) rotate(225deg); }
@media (prefers-reduced-motion: reduce) { :is(#app, #pp-main, .own, .sp-dlg) details > summary::after { transition: none !important; } }
/* FAB */
button.hm-fab { width: 56px; height: 56px; min-height: 56px; background: var(--hm-fab) !important; color: var(--hm-fab-ink) !important; box-shadow: 0 8px 24px -6px rgba(42, 23, 48, .45) !important; }
[data-theme=dark] button.hm-fab { box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .9) !important; }

/* ---------- 8. Summary stats as one grouped card ---------- */
.hm-stats { gap: 0; background: var(--card); border-radius: var(--r-card); overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; }
.hm-stats .hm-stat { background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 68px; padding: 12px 12px; position: relative; color: var(--ink); }
.hm-stats .hm-stat + .hm-stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: .5px; background: var(--ui-sep); }
.hm-stats .hm-stat .hm-sn { font: 600 22px/1.15 var(--sans) !important; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink) !important; }
.hm-stats .hm-stat .hm-sl { font: 400 13px/1.2 var(--sans); color: var(--mute); }
.hm-stats .hm-stat[aria-pressed=true] { background: var(--plum-soft) !important; }

/* ---------- 9. Guests: grouped list ---------- */
#t-guests .cpl-addtop { width: 100%; margin: 0 0 8px; }
#t-guests .cpl-filt { gap: 8px; }
#t-guests .cpl-filt select { min-height: 36px; padding: 6px 30px 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; background-color: var(--ui-fill); color: var(--ink); }
#t-guests .cpl-filt input[type=search] { border-radius: var(--r-pill); background-color: var(--ui-fill); min-height: 40px; }
@media (max-width: 859px) {
  #app .cpl-tbl tbody { display: block; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
  #app .cpl-tbl tbody tr { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 14px 16px 12px !important; position: relative; }
  #app .cpl-tbl tbody tr + tr::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: .5px; background: var(--ui-sep); }
  #app .cpl-tbl td.cpl-gn b { font: 600 17px/1.25 var(--sans); letter-spacing: -.025em; }
  #app .cpl-tbl td.cpl-gn .mute { font-size: 15px; letter-spacing: -.016em; }
  #app .cpl-tbl td.cpl-gn::before { width: 36px; height: 36px; font: 600 13px/36px var(--sans); }
  #app .cpl-tbl td[data-l] { font-size: 12px; }
  #app .cpl-tbl td[data-l]::before { font: 500 12px/1.2 var(--sans); color: var(--mute); letter-spacing: 0; }
  #app .cpl-tbl select.cpl-r { min-height: 36px; height: 36px; padding: 4px 26px 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.016em; border: 0 !important; background-color: var(--ui-fill); background-position: right 10px center; }
  #app .cpl-tbl select.cpl-r.yes { background-color: var(--green-bg, #E9F2EA); color: var(--green, #2F6B3A); }
  #app .cpl-tbl select.cpl-r.no { background-color: var(--red-bg, #FBEAE7); color: var(--red, #A2332A); }
  #app .cpl-tbl select.cpl-r.maybe { background-color: var(--yellow-bg); color: var(--yellow); }
  #app .cpl-tbl td.cpl-act :is(button, .sp-mbtn, .wa-b) { background: none !important; border: 0 !important; color: var(--ui-tint) !important; font-size: 15px; font-weight: 500; min-height: 44px; padding: 8px 8px; box-shadow: none !important; }
  #app .cpl-tbl td.cpl-act .wa-b svg { width: 16px; height: 16px; }
  #app .cpl-tbl .tag { font: 500 12px/1 var(--sans); letter-spacing: 0; padding: 5px 9px; border-radius: 999px; }
}

/* ---------- 10. Budget ---------- */
#t-budget .kpis, #t-budget .bud-kpis { gap: 0; }
#app .tot { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#app :is(.stk-l, .stk-r, .num) { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.016em; }

/* ---------- 11. Account page: inset grouped rows ---------- */
#t-account .sga { gap: 20px; }
#t-account .sga-profile { padding: 14px 16px; gap: 14px; }
#t-account .sga-profile h2 { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
#t-account .sga-profile p { font-size: 15px; color: var(--mute); }
#t-account .sga-avatar { width: 56px; height: 56px; font-size: 24px; background: linear-gradient(145deg, #5A2D66, #3E1F47); color: #fff; }
#t-account .sga-card { padding: 0; overflow: visible; position: relative; margin-top: 28px; }
#t-account .sga-card > h2 { position: absolute; top: -24px; left: 16px; margin: 0; font: 500 13px/1.2 var(--sans) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
#t-account .sga-li { min-height: 52px; padding: 8px 12px 8px 16px; gap: 12px; }
#t-account .sga-li .sga-ic { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--ui-tint) 14%, transparent); color: var(--ui-tint); }
#t-account .sga-li b { font: 400 17px/1.25 var(--sans); letter-spacing: -.025em; }
#t-account .sga-li .mute { font-size: 15px; }
#t-account .sga-li button { background: none !important; color: var(--ui-tint) !important; font-size: 17px; font-weight: 400; padding: 8px 6px; }
#t-account #sga-inst > p { padding: 12px 16px 14px; margin: 0; font-size: 15px; line-height: 1.4; }
#t-account .sga-card > p.sgn-msg:empty { display: none; }
#t-account .sga-advanced { margin-top: 20px; }
#t-account .sga-advanced > summary { min-height: 52px; padding: 0 16px; font: 400 17px/1.2 var(--sans); letter-spacing: -.025em; display: flex; align-items: center; }
#t-account .tag.g { font: 500 13px/1 var(--sans); padding: 6px 10px; }

/* footer: quieter */
#app .ft { border-top: 0; background: transparent; }
#app .ft a { color: var(--mute); font-size: 13px; }

/* ---------- 12. Sheets and menus: bottom sheet with grabber, dimmed background ---------- */
@media (max-width: 859px) {
  dialog.hm-sheet[open] { position: fixed; inset: auto 0 0 0; width: 100% !important; max-width: none !important; margin: 0; transform: none !important;
    border: 0 !important; border-radius: 16px 16px 0 0 !important; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)) !important;
    background: var(--ui-bg) !important; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18) !important; animation: ui-up .42s var(--ui-ease) both; }
  dialog.hm-sheet[open]::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--ph); opacity: .55; }
  dialog.hm-sheet::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-theme=dark] dialog.hm-sheet[open] { background: #2C2C2E !important; }
}
dialog.hm-sheet .hm-shh { padding: 0 4px 12px; align-items: center; }
dialog.hm-sheet .hm-shh h2 { font: 700 22px/1.2 var(--sans); letter-spacing: -.026em; }
:root body dialog.sp-dlg.hm-sheet .hm-shh button.hm-shx { position: relative; flex: none; width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; max-height: 32px !important; aspect-ratio: 1; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--ui-fill) !important; color: var(--mute) !important; }
:root body dialog.sp-dlg.hm-sheet .hm-shh button.hm-shx::after { content: ""; position: absolute; inset: -6px; } /* a 44pt target around the 32pt circle */
dialog.hm-sheet .hm-shx svg { width: 14px; height: 14px; }
dialog.hm-sheet .hm-shl { gap: 0 !important; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
[data-theme=dark] dialog.hm-sheet .hm-shl { background: #3A3A3C; }
dialog.hm-sheet .hm-shl button { background: transparent !important; border: 0 !important; border-radius: 0 !important; min-height: 56px; padding: 0 16px !important; justify-content: flex-start; gap: 14px;
  color: var(--ink) !important; font: 400 17px/1.2 var(--sans) !important; letter-spacing: -.025em; position: relative; box-shadow: none !important; }
dialog.hm-sheet .hm-shl button + button::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--ui-sep); }
dialog.hm-sheet .hm-shl button:focus-visible { outline: 0 !important; background: var(--ui-fill) !important; } /* inside the rounded group a ring would be clipped to a stray line */
/* icon tiles: tinted like the Home tiles, one quiet color each */
dialog.hm-sheet .hm-shl button svg { width: 18px; height: 18px; padding: 7px; box-sizing: content-box; border-radius: 9px; color: #5A2D66; background: #F1E9F3; }
dialog.hm-sheet .hm-shl button:nth-child(2) svg { color: #9A5A0F; background: #F8EEDF; }
dialog.hm-sheet .hm-shl button:nth-child(3) svg { color: #2B6E47; background: #E6F1EA; }
dialog.hm-sheet .hm-shl button:nth-child(4) svg { color: #9C3F5E; background: #F6E6EC; }
[data-theme=dark] dialog.hm-sheet .hm-shl button svg { color: #D9BFE3; background: rgba(201, 166, 214, .16); }
[data-theme=dark] dialog.hm-sheet .hm-shl button:nth-child(2) svg { color: #EBB565; background: rgba(235, 181, 101, .16); }
[data-theme=dark] dialog.hm-sheet .hm-shl button:nth-child(3) svg { color: #8FD1A9; background: rgba(143, 209, 169, .15); }
[data-theme=dark] dialog.hm-sheet .hm-shl button:nth-child(4) svg { color: #EBA3BC; background: rgba(235, 163, 188, .15); }
dialog.hm-sheet .hm-shl button:active { background: var(--ui-fill) !important; transform: none; }
/* The + sheet (home.js): Ask the Advisor as a wide pill beside a round close button, a hairline, then Quick actions, round glass buttons
   three across with a label under each. Monochrome: the icons and labels are the ink color; the rounds are a soft material on the sheet. */
dialog.hm-sheet { --qa-fill: #FFFFFF; --qa-edge: rgba(60, 50, 40, .1); --qa-hi: rgba(255, 255, 255, .8); --qa-sh: 0 1px 2px rgba(30, 20, 10, .05); }
[data-theme=dark] dialog.hm-sheet { --qa-fill: rgba(255, 255, 255, .08); --qa-edge: rgba(255, 255, 255, .1); --qa-hi: rgba(255, 255, 255, .07); --qa-sh: 0 0 0 transparent; } /* dark: depth from the lighter fill, no drop shadow */
dialog.hm-sheet .hm-shh { display: flex; justify-content: flex-end; gap: 10px; }
dialog.hm-sheet .hm-shh.ask { padding: 0 0 18px; margin: 0 0 4px; border-bottom: .5px solid var(--ui-sep); }
:root body dialog.sp-dlg.hm-sheet button.hm-ask { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 52px !important; padding: 0 20px !important;
  border: 0 !important; border-radius: 999px !important; background: var(--qa-fill) !important; box-shadow: inset 0 0 0 .5px var(--qa-edge), inset 0 1px 0 var(--qa-hi), var(--qa-sh) !important; color: var(--ink) !important;
  font: 500 1.0625rem/1.2 var(--sans); letter-spacing: -.01em; text-align: left; }
dialog.hm-sheet .hm-kic { width: 20px; height: 20px; flex: none; color: var(--ink); }
:root body dialog.sp-dlg.hm-sheet button.hm-ask span { color: var(--ink) !important; }
:root body.no-ai dialog.sp-dlg.hm-sheet .hm-ask { display: none; }
/* the live field: type a question in the pill, send it (Enter or the round arrow, shown once there is text) and the Advisor answers on its own page */
dialog.hm-sheet form.hm-askf { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 20px; border-radius: 999px; background: var(--qa-fill);
  box-shadow: inset 0 0 0 .5px var(--qa-edge), inset 0 1px 0 var(--qa-hi), var(--qa-sh); cursor: text; }
dialog.hm-sheet form.hm-askf:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), var(--qa-sh); }
:root body dialog.sp-dlg.hm-sheet form.hm-askf input { flex: 1; min-width: 0; height: 50px; min-height: 0 !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important; outline: 0 !important; color: var(--ink); font: 500 1.0625rem/1.2 var(--sans); letter-spacing: -.01em; }
dialog.hm-sheet form.hm-askf input::placeholder { color: var(--ink); opacity: 1; }
dialog.hm-sheet form.hm-askf:focus-within input::placeholder { color: var(--mute); }
:root body dialog.sp-dlg.hm-sheet form.hm-askf button.hm-asks { flex: none; display: grid; place-items: center; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: var(--plum) !important; color: #FFFFFF !important; box-shadow: none !important; transition: scale .15s ease-out, opacity .15s; }
[data-theme=dark] dialog.hm-sheet form.hm-askf button.hm-asks { color: #2A1430 !important; }
dialog.hm-sheet form.hm-askf button.hm-asks svg { width: 20px; height: 20px; }
dialog.hm-sheet form.hm-askf button.hm-asks svg path { stroke-width: 2.2; }
dialog.hm-sheet form.hm-askf:has(input:placeholder-shown) button.hm-asks { opacity: 0; scale: .6; pointer-events: none; }
dialog.hm-sheet form.hm-askf button.hm-asks:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px; }
body.native.kb dialog.hm-sheet[open] { margin-bottom: var(--kbo, 0px); } /* the store apps: above the keyboard */
@media (prefers-reduced-motion: reduce) { dialog.hm-sheet form.hm-askf button.hm-asks { transition: none; } } /* AI not switched on: no Advisor pill */
body.no-ai dialog.hm-sheet .hm-shh.ask { border-bottom: 0; padding-bottom: 0; }
dialog.hm-sheet .hm-kic path { fill: currentColor; stroke: none; }
:root body dialog.sp-dlg.hm-sheet .hm-shh.ask button.hm-shx { width: 52px !important; height: 52px !important; min-width: 52px !important; min-height: 52px !important; max-height: 52px !important;
  background: var(--qa-fill) !important; box-shadow: inset 0 0 0 .5px var(--qa-edge), inset 0 1px 0 var(--qa-hi), var(--qa-sh) !important; color: var(--ink) !important; }
dialog.hm-sheet .hm-shh.ask .hm-shx svg { width: 20px; height: 20px; }
dialog.hm-sheet .hm-qa:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 4px; } /* four actions: one row */
dialog.hm-sheet .hm-qa:has(> :nth-child(4):last-child) .hm-qc { width: 62px; height: 62px; }
dialog.hm-sheet .hm-qh { margin: 18px 4px 16px; font: 600 .9375rem/1.3 var(--sans); letter-spacing: 0; color: var(--mute); }
dialog.hm-sheet .hm-qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; padding: 0 0 8px; }
:root body dialog.sp-dlg.hm-sheet .hm-qa button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 0 !important; height: auto; padding: 0 !important;
  border: 0 !important; border-radius: 16px !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; }
dialog.hm-sheet .hm-qc { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--qa-fill); box-shadow: inset 0 0 0 .5px var(--qa-edge), inset 0 1px 0 var(--qa-hi), var(--qa-sh);
  transition: scale .15s ease-out, background-color .15s; }
dialog.hm-sheet .hm-qc svg { width: 26px; height: 26px; color: var(--ink) !important; background: none !important; padding: 0 !important; }
dialog.hm-sheet .hm-qc svg path { stroke-width: 1.6; }
dialog.hm-sheet .hm-ql { font: 500 .8125rem/1.25 var(--sans); letter-spacing: 0; text-align: center; color: var(--ink); }
dialog.hm-sheet .hm-qa button:active .hm-qc, dialog.hm-sheet button.hm-ask:active { scale: .94; }
dialog.hm-sheet .hm-qa button:focus-visible { outline: 0 !important; }
dialog.hm-sheet .hm-qa button:focus-visible .hm-qc, dialog.hm-sheet button.hm-ask:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { dialog.hm-sheet .hm-qa button:hover .hm-qc { background: color-mix(in srgb, var(--qa-fill), var(--ink) 6%); } }
@media (max-width: 859px) {
  /* 8px from every edge, the bottom too: on an iPhone the home indicator's room goes inside the sheet (its padding), never as a gap under it
     where the tab bar and the page would show through */
  dialog.hm-sheet[open] { inset: auto 8px 8px 8px; width: auto !important; border-radius: 32px !important; padding: 26px 20px max(24px, calc(var(--sa-b, env(safe-area-inset-bottom, 0px)) + 4px)) !important;
    box-shadow: 0 12px 40px -12px rgba(30, 20, 10, .28), 0 0 0 .5px rgba(60, 50, 40, .08) !important; }
  [data-theme=dark] dialog.hm-sheet[open] { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06) !important; }
  dialog.hm-sheet::backdrop { background: rgba(0, 0, 0, .4); }
  dialog.hm-sheet[open]::before { top: 8px; }
}
:root body dialog.hm-sheet:is(:focus, :focus-visible) { outline: 0 !important; } /* the sheet takes focus on open (home.js) so Tab reaches its rows; it is not a control, so no ring around it */
@media (prefers-contrast: more) { dialog.hm-sheet { --qa-edge: var(--ink); } }
@media (prefers-reduced-motion: reduce) { dialog.hm-sheet .hm-qc { transition: none; } dialog.hm-sheet .hm-qa button:active .hm-qc, dialog.hm-sheet button.hm-ask:active { scale: 1; } }
@keyframes ui-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* account sheet (menu) */
@media (max-width: 859px) {
  .acctm { background: var(--ui-bg) !important; border: 0 !important; border-radius: 16px 16px 0 0 !important; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2) !important; }
  [data-theme=dark] .acctm { background: #2C2C2E !important; }
}
.acctm .am-sec { background: var(--card); border: 0; border-radius: var(--r-card); }
[data-theme=dark] .acctm .am-sec { background: #3A3A3C !important; }
.acctm .am-sec button { background: transparent !important; min-height: 52px; font: 400 17px/1.2 var(--sans) !important; letter-spacing: -.025em; color: var(--ink) !important; border-radius: 0 !important; }
.acctm .am-who #who-name { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.acctm .am-sec.am-out { background: transparent !important; }
.acctm .am-sec.am-out button { color: var(--red) !important; justify-content: center; }
.acctm .am-ic { border-radius: 8px !important; width: 30px !important; height: 30px !important; }



/* ---------- 13. Planner portal ---------- */
.pp-top .pp-brand { font: 600 17px/1.2 var(--sans); letter-spacing: -.025em; }
.pp-top .pp-acct { width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; background: var(--ui-fill); color: var(--ui-tint); font: 600 13px/1 var(--sans); }
.pp-top .pnbell { background: none; border: 0; color: var(--ui-tint); }
#pp-main .pp-listhead h2 { font: 700 22px/1.2 var(--sans); letter-spacing: -.026em; }
#pp-main .pp-form h2 { font: 600 20px/1.2 var(--sans); letter-spacing: -.024em; }
#pp-main .pp-cards { gap: 0; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
#pp-main .pp-cards > * { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; position: relative; }
#pp-main .pp-cards > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--ui-sep); }

/* ---------- 14. Owner console ---------- */
html body.own { background: var(--ui-bg); }
.ohd { background: color-mix(in srgb, var(--ui-bg) 72%, transparent) !important; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: .5px solid var(--ui-sep) !important; box-shadow: none !important; }
.ohd .otabs, .ohd .otrow { border: 0; background: transparent; }
.ohd .osecs a { font: 500 15px/1.2 var(--sans); letter-spacing: -.016em; color: var(--mute); }
.ohd .osecs a[aria-current] { color: var(--ink); font-weight: 600; }
.ohd .osubs { gap: 6px; padding-bottom: 8px; }
.ohd .osubs a { font: 500 13px/1 var(--sans); padding: 8px 14px; border-radius: 999px; color: var(--mute); border: 0 !important; min-height: 32px; display: inline-flex; align-items: center; box-shadow: none !important; }
.ohd .osubs a[aria-current]{ background: var(--ui-fill); color: var(--ink); }
.ohd .osubs a::after, .ohd .osecs a::after { display: none !important; }
.ohd .ocnt:not(:empty) { background: var(--ds-gold-ink); color: #fff; font: 600 11px/1 var(--sans); min-width: 18px; height: 18px; border-radius: 9px; }
[data-theme=dark] .ohd .ocnt:not(:empty) { background: #E3A14A; color: #1C1306; }
.ohd .otag { font: 600 11px/1 var(--sans); letter-spacing: .06em; background: var(--accent-soft); color: var(--accent-ink); }
html body .own .osearch input { border-radius: 12px !important; }
.own .hm .hm-grid .hm-tile { min-height: 104px; }
.own :is(.ocard, .otoday, .card) { background: var(--card); border: 0; box-shadow: none; border-radius: var(--r-card); }
html body .own .opanel h2, html body .own .opanel h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.026em; }
@media (min-width: 860px) {
  .own .hm .hm-tile { flex-direction: row; align-items: flex-start; justify-content: flex-start; }
}

/* ---------- 15. Public site: system type, quieter chrome ---------- */
body.mk .mh { background: transparent; border-bottom: .5px solid var(--ui-sep); box-shadow: none; }
/* The bar material sits on the header's own layer (site.css .mh:before): a backdrop-filter on .mh itself would make it the containing block
   of the phone menu (position: fixed), shrinking the sheet to the header's height and leaving the page on top of it. */
body.mk .mh::before { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
body.mk.mo .mh::before { background: var(--bg); } /* menu open: the bar is solid, one sheet with the menu under it */
body.mk .mlogo b { font-family: var(--serif); }
body.mk .mright .pill.sm { font: 600 15px/1 var(--sans); letter-spacing: -.016em; border-radius: 12px; min-height: 40px; padding: 0 16px; background: #3E1F47; color: #fff; box-shadow: none; }
body.mk .mburger { width: 44px; height: 44px; border: 0; background: var(--ui-fill); border-radius: 12px; }
body.mk .hero .eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .06em; }
body.mk .hero h1 { letter-spacing: -.025em; line-height: 1.04; }
body.mk .hero .lede { font: 400 19px/1.45 var(--sans); letter-spacing: -.02em; }
body.mk .pill { font-family: var(--sans); letter-spacing: -.02em; }
body.mk .pill.lg { border-radius: 14px; min-height: 52px; font-size: 17px; font-weight: 600; padding: 0 22px; box-shadow: none; }
body.mk .pill.glass { background: rgba(255, 255, 255, .12); border: 0; -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }

/* ---------- 16. Segmented control (Appearance etc.) ---------- */
.sp-appear { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--ui-fill) !important; border: 0 !important; min-height: 36px; }
.sp-appear button { min-height: 32px !important; padding: 0 12px !important; border-radius: var(--r-pill) !important; background: transparent !important; color: var(--ink) !important; font: 500 .8125rem/1 var(--sans) !important; border: 0 !important; box-shadow: none !important; }
.sp-appear button[aria-checked=true] { background: #FFFFFF !important; font-weight: 600 !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04) !important; }
[data-theme=dark] .sp-appear button[aria-checked=true] { background: #636366 !important; }

/* ---------- 17. Accessibility preferences ---------- */
@media (prefers-contrast: more) {
  :is(.card, .sga-card, .hm-tile, .hm-jbc, .hm-stats, .cpl-tbl tbody, .am-sec) { box-shadow: inset 0 0 0 1px var(--ink) !important; }
  :is(.hdr, .pp-top, .ohd, nav.tabbar, nav.sptb) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--ui-bg) !important; border-bottom: 1px solid var(--ink) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation-duration: .01ms !important; transition-duration: 0s !important; }
  :is(button, .btn, a.hm-tile, .pill):active { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :is(.hdr, .pp-top, .ohd, .mh, nav.tabbar, nav.sptb), body.mk .mh::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--ui-bg) !important; }
}

/* ---------- 18. Per-screen fixes ---------- */
/* budget summary: 2 + 1 grouped */
.hm-stats.n3 { grid-template-columns: 1fr 1fr; }
.hm-stats.n3 .hm-stat:nth-child(3) { grid-column: 1 / -1; }
.hm-stats.n3 .hm-stat:nth-child(3)::before { left: 16px; right: 0; top: 0; bottom: auto; width: auto; height: .5px; }
.hm-stats.big .hm-stat { padding: 14px 16px; }
.hm-stats.big .hm-stat .hm-sl + .hm-sl { font-size: .8125rem; }
.hm-stats button.hm-stat[data-stat=due]::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid var(--ph); border-width: 2px 2px 0 0; transform: rotate(45deg); }
#app .cpl-statl:has(.cpl-stat:empty) { display: none; }
#app .cpl-bsum { margin-top: 0; }
#app label.cpl-btot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 52px; padding: 0 16px; background: var(--card); border-radius: var(--r-group); box-shadow: var(--ui-card-sh);
  font: 400 1.0625rem/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
#app label.cpl-btot .cpl-money { display: flex; align-items: center; gap: 2px; color: var(--mute); }
#app label.cpl-btot input { background: transparent !important; border: 0 !important; box-shadow: none !important; text-align: right; width: 8rem; padding: 0 !important; color: var(--mute) !important; font-variant-numeric: tabular-nums; }
#app .stk-l b, #app .stk-l span { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#app .stk-l b { font-weight: 600; }
#app .stk { height: 10px; gap: 3px; }
#app .stk i { border-radius: 5px; }
#app .cpl-cq b { font: 600 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; }

/* account sheet: ivory sheet, white groups, inset hairlines */
@media (max-width: 859px) { #app #acctm.acctm { background: var(--ui-bg) !important; border-radius: 16px 16px 0 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } [data-theme=dark] #app #acctm.acctm { background: #2C2C2E !important; } }
#acctm .am-sec > * { border-top: 0 !important; box-shadow: none !important; }
#acctm .am-sec > * + * { background: linear-gradient(var(--ui-sep), var(--ui-sep)) 60px 0 / calc(100% - 60px) .5px no-repeat !important; }
#acctm .am-sec:not(.am-out) { box-shadow: var(--ui-card-sh) !important; }
#acctm .am-who { background: var(--card); border-radius: var(--r-card); padding: 12px 16px; box-shadow: var(--ui-card-sh); }
[data-theme=dark] #acctm .am-who { background: #3A3A3C; }

/* account page rows */
#t-account .sga-li { padding: 8px 12px 8px 16px !important; }
#t-account .sga-advanced > summary { justify-content: space-between; }
#t-account .sga-profile .sga-profile-tx p { line-height: 1.3; }

#app label.cpl-btot .cpl-money { flex: none; margin-left: auto; }
#app #acctm { --am-fill: var(--card); }
[data-theme=dark] #app #acctm { --am-fill: #3A3A3C; }

/* ---------- 19. Quieter brand surfaces: flat countdown card and site hero, status words ---------- */
#app .pg > h1 em, .hm .hm-hi em { font-style: normal; color: inherit; }
.hm .hm-hero { background: var(--ds-plum); }
.hm .hm-hero::before, .hm .hm-hero::after { opacity: .35; }
[data-theme=dark] .hm .hm-hero { background: var(--ds-plum-deep); }
/* status labels: a dot and a word, not a pill */
@media (max-width: 859px) { #app .cpl-tbl .tag.y { background: none !important; padding: 0 !important; color: var(--ds-warn-ink) !important; font: 500 .8125rem/1.3 var(--sans) !important; display: inline-flex; align-items: center; gap: 6px; }
  #app .cpl-tbl .tag.y::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-warn); } }
/* public site hero: flat brand plum, no glow */
body.mk .hero { background: var(--ds-plum-deep); }
body.mk .hero > svg, body.mk .hero::before, body.mk .hero::after { display: none !important; }

/* ---------- 20. Home tiles, portal bar and console density ---------- */
#o-main .hm .hm-tile:not([data-c=up]) { justify-content: flex-start !important; gap: 12px !important; min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; padding: 14px !important; align-items: flex-start !important; text-align: left !important; }
@media (max-width: 1023px) {
  :is(#app, #pp-main) .hm .hm-tile:not([data-c=up]) { justify-content: flex-start !important; gap: 12px !important; min-height: 0 !important; height: auto !important; aspect-ratio: auto !important; padding: 14px !important; align-items: flex-start !important; text-align: left !important; }
}
:is(#app, #pp-main, #o-main) .hm .hm-grid { align-items: stretch; }
.pp-top button.pnbell, .pp-top button.pp-acct { width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; border-radius: 50% !important; }
.pp-top button.pnbell { background: none !important; color: var(--ui-tint) !important; }
.pp-top button.pnbell svg { width: 22px !important; height: 22px !important; }
.pp-top button.pp-acct { background: var(--ui-tinted) !important; color: var(--ui-tint) !important; font: 600 .875rem/1 var(--sans) !important; }
html body button.hm-search { background: var(--ui-fill) !important; border: 0 !important; border-radius: var(--r-pill) !important; min-height: 44px !important; color: var(--ph) !important; font: 400 1.0625rem/1 var(--sans) !important; letter-spacing: -.01em; justify-content: flex-start !important; padding: 0 14px !important; max-width: none; }
button.hm-search svg { color: var(--ph); width: 18px; height: 18px; }
#o-main .hm .hm-top { align-items: flex-start; text-align: left; }
#o-main .hm .hm-hi { font: 400 2.125rem/1.1 var(--serif); letter-spacing: -.015em; }
#o-main .hm .hm-h, #o-main .hm h2 { font: 700 1.375rem/1.2 var(--sans) !important; letter-spacing: -.01em; }
html body .own .osearch input { background-color: var(--ui-fill) !important; border: 0 !important; border-radius: var(--r-pill) !important; }
.own .obar .obar-t { font: 600 1.0625rem/1.2 var(--sans); letter-spacing: -.01em; }
#o-main .hm > h2, #o-main .opanel > .hm h2:not(.hm-h) { font: 700 1.375rem/1.2 var(--sans) !important; letter-spacing: -.01em; }
.own .osearch { border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (min-width: 860px) {
  #o-main .hm .hm-tile { flex-direction: row; flex-wrap: nowrap; gap: 12px; }
  #o-main .hm .hm-tile .hm-tx { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; padding-right: 16px; }
}
#o-main .ocard { background: var(--card); border: 0; box-shadow: none; border-radius: var(--r-card); padding: 8px 0; }
#o-main .ocard .oh2 { font: 700 1.375rem/1.2 var(--sans); letter-spacing: -.01em; padding: 8px 16px 4px; margin: 0; }
#o-main .otodo { gap: 0; display: grid; }
#o-main .otodo > li { border: 0; box-shadow: none; background: transparent; border-radius: 0; margin: 0; }
#o-main .otodo > li > a { border: 0; box-shadow: none; background: linear-gradient(var(--ui-sep), var(--ui-sep)) 16px 0 / calc(100% - 16px) .5px no-repeat; border-radius: 0; padding: 12px 16px; display: block; color: var(--ink); }
#o-main .otodo > li > a b { font: 600 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; }
#o-main .otodo > li > a span { font: 400 .9375rem/1.35 var(--sans); color: var(--mute); }
#o-main .otodo > li > a::before, #o-main .otodo > li::before { display: none !important; }
#o-main .otodo > li > a b { display: block; margin-bottom: 2px; }
#o-main .otodo > li > a span { display: block; }
#o-main .osearch input { background-color: var(--ui-fill); border: 0; box-shadow: none; border-radius: var(--r-pill); min-height: 44px; }
#app label.cpl-btot { display: flex; }
#app label.cpl-btot .cpl-money { flex: 1 1 auto; justify-content: flex-end; margin-left: 0; }
#app .sec:has(> .eyebrow) { margin-top: 32px; }

/* ---------- 21. Component anatomy (shadcn/ui patterns in vanilla CSS): focus, badges, toast, menus, dialogs, tables ---------- */
/* focus: 2px ring with offset, keyboard only */
:is(button, a, summary, select, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--primary) !important; outline-offset: 2px !important; box-shadow: none !important; }
:is(input, select, textarea):focus:not(:focus-visible) { outline: 0; }
/* consistent control heights: 36 compact / 40 / 44 default */
html body :is(#app, #pp-main, .own) :is(button, .btn).sm, html body .own .otable :is(button, select) { min-height: 36px !important; }
/* badges: icon/dot + word */
html body :is(#app, #pp-main, .own) .tag:not(.y) { display: inline-flex; align-items: center; gap: 6px; border: 0 !important; border-radius: var(--r-pill); padding: 3px 10px; font: 500 .8125rem/1.3 var(--sans) !important; letter-spacing: 0; text-transform: none; }
:is(#app, #pp-main, .own) .tag.g { background: var(--ds-good-bg) !important; color: var(--ds-good-ink) !important; }
html body :is(#app, #pp-main, .own) .tag.g::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
:is(#app, #pp-main, .own) .tag.r { background: var(--ds-bad-bg) !important; color: var(--ds-bad-ink) !important; }
/* toast: one line, elevated surface */
:is(#sp-toast, .pp-toast, .otoast) { background: var(--ink) !important; color: var(--ui-bg) !important; border: 0 !important; border-radius: var(--r-card) !important; font: 500 .9375rem/1.35 var(--sans) !important; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4) !important; }
/* skeletons instead of spinners */
:is(.skel, .skeleton) { background: linear-gradient(90deg, var(--ui-fill) 0%, var(--ui-fill-2, rgba(120,110,100,.06)) 50%, var(--ui-fill) 100%); background-size: 200% 100%; border-radius: 8px; animation: ui-skel 1.4s ease-in-out infinite; color: transparent !important; }
@keyframes ui-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* dropdowns / menus */
:is(.sp-mm, .omenu-pop, [role=menu]) { background: var(--ui-elev) !important; border: .5px solid var(--border) !important; border-radius: var(--r-group) !important; box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .25) !important; padding: 4px !important; }
:is(.sp-mm, [role=menu]) :is(button, a, [role=menuitem]) { background: transparent !important; border-radius: 8px !important; justify-content: flex-start; min-height: 40px; color: var(--ink) !important; font: 400 .9375rem/1.2 var(--sans) !important; }
:is(.sp-mm, [role=menu]) .sp-del { color: var(--ds-bad-ink) !important; }
/* dialogs */
dialog.sp-dlg:not(.hm-sheet) { background: var(--ui-elev) !important; border: 0 !important; border-radius: var(--r-sheet) !important; box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .4) !important; }
dialog.sp-dlg::backdrop { background: rgba(0, 0, 0, .32) !important; }
@media (max-width: 859px) { body.native dialog.sp-dlg:not(.hm-sheet) { border-radius: var(--r-sheet) var(--r-sheet) 0 0 !important; } } /* in the store apps a dialog is a bottom sheet (native.css) */
/* data table (console) */
html body .own :is(.otable, .vtab) { border-collapse: separate !important; border-spacing: 0; background: var(--card); border-radius: var(--r-card); overflow: hidden; border: 0 !important; font: 400 .9375rem/1.35 var(--sans); font-variant-numeric: tabular-nums; }
html body .own :is(.otable, .vtab) thead th { position: sticky; top: 0; z-index: 1; background: var(--card) !important; color: var(--muted-foreground) !important; font: 500 .8125rem/1.2 var(--sans) !important; letter-spacing: 0; text-transform: none; border: 0 !important; box-shadow: inset 0 -.5px 0 var(--border); padding: 10px 12px !important; text-align: left; }
html body .own :is(.otable, .vtab) tbody td { border: 0 !important; box-shadow: inset 0 -.5px 0 var(--border); padding: 12px !important; color: var(--ink); background: transparent !important; }
.own :is(.otable, .vtab) tbody tr:last-child td { box-shadow: none; }
.own :is(.otable, .vtab) tbody tr:hover td { background: var(--muted) !important; }
.own :is(.otable, .vtab) tbody tr[aria-selected=true] td { background: var(--plum-soft) !important; }

/* ---------- 22. Dark-mode details (tools/contrast.mjs: body 7:1, muted 4.5:1, outlines 3:1) ---------- */
[data-theme=dark] .ohd .otag { background: var(--accent-soft); color: var(--ui-gold-text); }
[data-theme=dark] .sp-appear button[aria-checked=true] { background: #48484A !important; }
[data-theme=dark] body.mk .tr-b { border-color: rgba(255, 255, 255, .45) !important; }
[data-theme=dark] .tag.live { color: var(--ui-gold-text); }

/* ---------- 23. Tools: the index (search, Recent, twelve hubs), a hub, and Back + the parts switcher in a tool (public/tools.js index(), hubView(), head()) ---------- */
/* Kept in its own section so it merges cleanly. Selectors carry #app #t-tools to outrank section 4's button styles without !important;
   the few !important ones answer planner.css's older .tl-back pill. */
#t-tools { --tl-a: var(--ds-plum); --tl-b: var(--ds-gold-ink); --tl-c: #8A3B5A; }
[data-theme=dark] #t-tools { --tl-a: var(--ds-plum-on-dark); --tl-b: var(--ds-gold-on-dark); --tl-c: #F2A7C3; }
html body #app #t-tools input.tl-q { display: block; width: 100%; height: 40px; min-height: 40px; margin: 0 0 4px; border-radius: 12px; background-color: var(--ui-fill); box-shadow: none; font-size: 1.0625rem; }
#t-tools .tl-sh { font: 500 .8125rem/1.35 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); margin: 22px 16px 7px; }
#t-tools .tl-sec { padding: 0; border: 0; }
#t-tools .tl-group { background: var(--ui-group); border-radius: var(--r-row-group, 12px); overflow: hidden; margin: 0 0 20px; }
#t-tools .tl-results { margin-top: 12px; }
html body #app #t-tools button.tl-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; margin: 0; padding: 8px 16px 8px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 400 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; text-align: left; box-shadow: none; }
html body #app #t-tools button.tl-row.tl-two { min-height: 60px; }
#t-tools .tl-row + .tl-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--ui-sep); }
html body #app #t-tools button.tl-row:active { background: var(--ui-fill); transform: none; }
#t-tools .tl-row:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; border-radius: 12px; }
#t-tools .tl-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#t-tools .tl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#t-tools .tl-in { font-size: .9375rem; color: var(--mute); }
#t-tools .tl-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
#t-tools .tl-icg { width: 20px; height: 20px; }
#t-tools .tl-ta { color: var(--tl-a); background: color-mix(in srgb, var(--tl-a) 13%, transparent); }
#t-tools .tl-tb { color: var(--tl-b); background: color-mix(in srgb, var(--tl-b) 14%, transparent); }
#t-tools .tl-tc { color: var(--tl-c); background: color-mix(in srgb, var(--tl-c) 13%, transparent); }
[data-theme=dark] #t-tools .tl-ic { background: color-mix(in srgb, currentColor 18%, transparent); }
#t-tools .tl-st { flex: none; max-width: 50%; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
#t-tools .tl-st i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
#t-tools .tl-warn { color: var(--ds-warn-ink); } #t-tools .tl-warn i { background: var(--ds-warn-ink); }
#t-tools .tl-bad { color: var(--ds-bad-ink); } #t-tools .tl-bad i { background: var(--ds-bad-ink); }
#t-tools .tl-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--ui-btn); color: var(--ui-on-btn); font: 600 .8125rem/22px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
#t-tools .tl-chev { flex: none; width: 8px; height: 14px; color: var(--ds-ink-3); }
#t-tools .tl-recent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--ui-group); border-radius: 12px; padding: 14px 8px 12px; }
html body #app #t-tools button.tl-rc { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-height: 44px; margin: 0; padding: 0 2px; border: 0; border-radius: 12px; background: transparent; box-shadow: none; color: var(--ink); text-align: center; }
#t-tools .tl-rc .tl-ic { width: 52px; height: 52px; border-radius: 13px; }
#t-tools .tl-rc .tl-icg { width: 26px; height: 26px; }
#t-tools .tl-rc > span:last-child { font: 400 .8125rem/1.25 var(--sans); letter-spacing: 0; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#t-tools .tl-rc:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: 2px; }
#t-tools .tl-empty { color: var(--mute); text-align: center; margin: 32px 0; }
/* Back (a hub to Tools, a tool to its hub): plain tinted text with a chevron */
html body #app #t-tools button.tl-back { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px !important; margin: 0 0 2px -2px; padding: 0 8px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none; color: var(--ui-tint) !important; font: 400 1.0625rem/1 var(--sans); letter-spacing: -.01em; }
html body #app #t-tools button.tl-back::before { content: none; }
#t-tools .tl-back .tl-chev { transform: scaleX(-1); width: 10px; height: 18px; color: currentColor; }
html body #app #t-tools > h1.tl-hubh { font: 700 2.125rem/1.12 var(--sans); letter-spacing: -.02em; margin: 2px 0 6px; }
/* the parts of a small hub, as a segmented control under a tool's title */
#t-tools .tl-seg { display: flex; gap: 2px; padding: 2px; margin: 6px 0 14px; border-radius: 10px; background: var(--ui-fill); max-width: 560px; }
html body #app #t-tools .tl-seg button { min-height: 32px; margin: 0; flex: 1 1 auto; min-width: 0; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--ink); font: 500 .875rem/1.3 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #app #t-tools .tl-seg button.on { background: var(--ds-surface); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
[data-theme=dark] body #app #t-tools .tl-seg button.on { background: #48484A; box-shadow: none; }
/* a computer: the hubs (and a hub's sections) two across */
@media (min-width: 1024px) {
  #t-tools .tl-hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  #t-tools .tl-hubs > .tl-sh { grid-column: 1 / -1; }
  #t-tools .tl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  #t-tools .tl-cols > .tl-sec:not(:has(> .tl-sh)) { padding-top: 0; }
  #t-tools .tl-recent { grid-template-columns: repeat(4, minmax(0, 120px)); justify-content: start; padding: 14px 16px 12px; gap: 16px; }
  #t-tools > .tl-q, #t-tools .tl-results, #t-tools .tl-recsec, #t-tools .tl-qp { max-width: calc(50% - 12px); } /* Recent and Plan in 60 Seconds line up with the search box and the first column */
}
@media (prefers-contrast: more) { #t-tools :is(.tl-group, .tl-recent) { box-shadow: inset 0 0 0 1px var(--ui-sep); } }
/* Home's countdown "i": See Wedding Progress (it lives there, not in a hub) */
html body #hm-rpop button.hm-rgo { display: block; margin: 8px 0 0; padding: 8px 0; min-height: 44px; border: 0; background: none; color: var(--ui-tint); font: 600 .9375rem/1.3 var(--sans); text-align: left; box-shadow: none; }

/* ==========================================================================
   24. Console (/admin): compact pages. Overrides sections 14, 20 and 21 for
   the console only; the layout itself is owner.css.
   ========================================================================== */
/* page header: the bar above already names the section, so no eyebrow; a smaller title, less air above it */
html body.own .opanel > .eyebrow:not(.mono), html body.own .opanel .eyebrow:has(+ h1):not(.mono) { display: none; }
@media (min-width: 700px) {
  html body.own .opanel { padding-top: 24px; }
  html body #o-main .opanel > h1 { font-size: 1.875rem; line-height: 1.15; margin: 0 0 16px; }
  html body #o-main .opanel > h1 em { color: inherit; }
}
/* cards: the content sits inside the card's padding (it was flush with the card's edge); a quiet headline, not a second page title */
html body #o-main .ocard { padding: 14px 16px; }
html body #o-main .ocard .oh2, html body.own .opanel .ocard > h2 { font: 600 1.0625rem/1.3 var(--sans) !important; letter-spacing: -.01em; padding: 0; margin: 0 0 10px; }
html body #o-main .ocard > summary .oh2, html body #o-main .ocard .ovx-hd .oh2 { margin: 0; }
html body.own .vt { font: 600 1rem/1.3 var(--sans); letter-spacing: -.01em; }
html body #o-main .ocard:has(> .otodo) { padding: 8px 0; }
html body #o-main .ocard:has(> .otodo) > .oh2 { padding: 6px 16px 2px; }
/* a table in a card runs to the card's edges; its first and last columns line up with the card's text */
html body #o-main .ocard > .otable { margin-left: -16px; margin-right: -16px; }
html body.own .ocard > .otable :is(th, td):first-child { padding-left: 16px !important; }
html body.own .ocard > .otable :is(th, td):last-child { padding-right: 16px !important; }
html body #o-main .oh2 { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
/* stats: one quiet row of numbers; labels wrap to two lines at most, numbers never cut */
html body.own .ostats > :is(div, .ovx-tile) { background: var(--card); border: 0; box-shadow: none; border-radius: var(--r-group); min-height: 0; padding: 10px 12px; }
html body.own .ostats b { font: 600 1.1875rem/1.2 var(--sans); letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--ink); overflow: visible; text-overflow: clip; }
html body.own .ostats span { font: 500 .75rem/1.3 var(--sans); color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* list rows and headings in the console's own system font */
html body.own :is(.orow h3, .ovn, .adm-card h3, .dir-card h3) { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
/* card and section headings in the system font (the shared rules above say "body .own", which the console's body itself never matches) */
html body.own .opanel :is(h2, h3):not(.vt):not(.oh2) { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
html body.own #o-adm article.row > h2 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the Logs search: a sans placeholder (the query itself stays monospaced) */
#o-lq::placeholder { font-family: var(--sans); letter-spacing: -.01em; }
@media (max-width: 699px) { html body.own .opanel { padding-top: 12px; } html body.own .opanel .opact.ocompact { margin-bottom: 8px; } }
/* phones: rows of choice chips scroll sideways in one line instead of wrapping into a block */
@media (max-width: 699px) {
  html body.own :is(.vjump, .smn-tabs) { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; scroll-padding: 0 16px; }
  html body.own :is(.vjump, .smn-tabs)::-webkit-scrollbar { display: none; }
  html body.own :is(.vjump, .smn-tabs) > * { flex: none; min-height: 44px !important; padding: 0 14px !important; font-size: .875rem !important; display: inline-flex; align-items: center; }
  /* tiles (the Overview's Next Up, Settings, the Brand Studio): one grouped list of rows (icon, name, one line), not a grid of cards whose names wrap */
  html body #o-main .hm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); border-radius: var(--r-group); overflow: hidden; }
  html body #o-main .hm-grid .hm-tile:not([data-c=up]) { flex-direction: row !important; align-items: center !important; gap: 12px !important; min-height: 56px !important; padding: 8px 36px 8px 16px !important; border-radius: 0 !important; background: var(--card) !important; box-shadow: none !important; position: relative; }
  html body #o-main .hm-grid .hm-tile + .hm-tile::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--ui-sep); }
  html body #o-main .hm-tile .hm-ic { width: 30px !important; height: 30px !important; flex: none; border-radius: 8px; }
  html body #o-main .hm-tile .hm-ic svg { width: 18px; height: 18px; }
  html body #o-main .hm-tile .hm-tx { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; flex: 1 1 auto; gap: 1px; }
  html body #o-main .hm-tile .hm-tt { font: 500 1rem/1.25 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #o-main .hm-tile .hm-ts { font-size: .8125rem; line-height: 1.3; }
}

/* computers: a table's title column wraps instead of pushing the last columns out of the card */
@media (min-width: 700px) {
  html body.own .osticky td.pt { white-space: normal; min-width: 12rem; }
  html body.own .osticky :is(th, td) { padding-left: .6rem; padding-right: .6rem; }
  /* Newsletters: the audience and the date wrap too, so Edit, Duplicate and Delete stay inside the card */
  html body.own #o-nll td:is(:nth-child(3), :nth-child(10)) { white-space: normal; min-width: 7rem; }
  html body.own #o-nll td.pt { min-width: 10rem; }
}
@media (max-width: 699px) {
  /* list rows: the chevron sits in the middle of the row, not at the top */
  html body #o-main .hm-grid .hm-tile:not([data-c=up])::after { top: 50%; margin-top: -4px; }
  /* Reviews: the stars on their own small line, the title under them */
  html body.own .orev.opc:not(.osheet) .ostars { display: block; font-size: .8125rem; line-height: 1.3; }
  /* Team: each member is a row inside the card's padding; the role menu fits "Support agent"; the extra addresses field is labeled */
  html body #o-main .ocard > .otable.oteam { margin-left: 0; margin-right: 0; }
  html body.own .oteam tr { grid-template-columns: minmax(0, 1fr) minmax(0, 10.5rem) !important; }
  html body.own .ocard > .otable.oteam :is(th, td) { padding: 0 !important; }
  html body.own .oteam td:nth-child(3)::before { content: "Other addresses"; display: block; font-size: .8125rem; color: var(--mute); margin: 4px 0 4px; }
}

/* ==========================================================================
   25. Portal (/portal): compact pages. Overrides section 13 for the planner
   portal only; the layout itself is partner.css.
   ========================================================================== */
/* page header: the tab bar names the section, so no eyebrow above the title; a smaller title */
html body #pp-main > .eyebrow, html body #pp-main > * > .eyebrow:first-child, html body #pp-main .eyebrow:has(+ h1) { display: none; }
html body #pp-main h1:not(.sr) { font-size: 1.75rem; line-height: 1.15; margin: 4px 0 12px; }
html body #pp-main h1 em { color: inherit; font-style: normal; }
@media (min-width: 700px) { html body #pp-main h1:not(.sr) { font-size: 2rem; margin: 8px 0 16px; } }
/* a view switch (Messages: Inbox, History...; Leads: Board, List...) is a segmented control, one line; on a phone it scrolls sideways */
html body #pp-main .pm-views { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--ui-fill); max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; }
html body #pp-main .pm-views::-webkit-scrollbar { display: none; }
html body #pp-main .pm-views > :is(a, button) { flex: none; min-height: 32px !important; padding: 0 14px !important; border-radius: var(--r-pill) !important; background: transparent !important; color: var(--ink) !important; border: 0 !important; box-shadow: none !important; font: 500 .875rem/1 var(--sans) !important; display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
html body #pp-main .pm-views > [aria-pressed=true] { background: var(--ui-elev) !important; font-weight: 600 !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04) !important; }
[data-theme=dark] body #pp-main .pm-views > [aria-pressed=true] { background: #48484A !important; }
/* two stats share the row in halves (the shared rule sizes four columns) */
html body #pp-main .hm-stats.n2 { grid-template-columns: 1fr 1fr; }
html body #pp-main .hm-stats .hm-stat { text-align: left; align-items: flex-start; justify-content: flex-start; }
/* a row of actions: one line */
html body #pp-main .pm-acts { gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
html body #pp-main .pm-acts > .btn:not(.p) { min-height: 40px; }
/* cards: a quiet headline */
html body #pp-main .card > h2:first-child, html body #pp-main .pp-form > h2 { font: 600 1.125rem/1.3 var(--sans) !important; letter-spacing: -.01em; margin: 0 0 8px; }
@media (max-width: 699px) {
  html body #pp-main .pm-views { display: flex; margin-left: 0; margin-right: 0; }
  /* other choice chips (filters) scroll in one line, not a block of rows */
  html body #pp-main .pp-chips:not(.pm-views) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; }
  html body #pp-main .pp-chips:not(.pm-views)::-webkit-scrollbar { display: none; }
  html body #pp-main .pp-chips:not(.pm-views) > * { flex: none; min-height: 44px; }
  html body #pp-main .smn-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; }
  html body #pp-main .smn-tabs > * { flex: none; }
  /* a phone: the views switcher (Leads, Messages) and Filters are thumb-sized, 44px */
  html body #pp-main .pm-views > :is(a, button) { min-height: 44px !important; padding: 0 16px !important; }
  html body #pp-main .ld-more > summary { min-height: 44px !important; } /* wins over the 36px pill below */
}
/* Leads: Filters is a small pill that opens the filters, not a bare heading */
html body #pp-main .ld-more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--ui-fill); color: var(--ink); font: 500 .875rem/1 var(--sans); list-style: none; cursor: pointer; }
html body #pp-main .ld-more > summary::-webkit-details-marker { display: none; }
html body #pp-main .ld-more > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
html body #pp-main .ld-more[open] > summary::after { transform: translateY(1px) rotate(225deg); }
/* an empty list says so inside the card's padding, across the whole row */
html body #pp-main .pp-cards > p.mute { grid-column: 1 / -1; margin: 0; padding: 14px 16px; }
@media (min-width: 700px) {
  /* settings pages: every card in the column is the same width (they were 640, 720, 760 and full width in turn) */
  html body #pp-main :is(.card, .sga-card):not(.pp-card):not(.pp-cards *):not(.card *) { max-width: 760px; }
  /* Credits: the two packs share the card in halves, with a line between them, not three columns with one left empty */
  html body #pp-main .pp-cards:has(> .pp-form) { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
  html body #pp-main .pp-cards:has(> p.mute:only-child) { max-width: 760px; }
  html body #pp-main .pp-cards > .pp-form + .pp-form::before { top: 16px; bottom: 16px; left: 0; right: auto; width: .5px; height: auto; }
}
/* ---------- 24. Density on a phone: compact headers, one-line rows, tighter sections (Guests, Budget, Checklist, Timeline) ---------- */
/* summary numbers shrink to fit their tile (never "$97,..."); a money strip reads number + one short line ("Planned · $53,000 left") */
.hm-stats .hm-stat { container-type: inline-size; }
html body .hm-stats .hm-stat .hm-sn { overflow: visible; text-overflow: clip; font-size: clamp(15px, 15cqi, 22px) !important; }
html body .hm-stats.big .hm-stat .hm-sn { font-size: clamp(17px, 13.5cqi, 28px) !important; }
.hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) { flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; justify-content: flex-start; column-gap: 0; }
/* the payment due next: a list row (what and when on the left, the amount on the right, a chevron) */
html body #app .hm-stats.big .hm-stat[data-stat=due] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 1px; min-height: 0; padding: 10px 36px 10px 16px; }
html body .hm-stats.big .hm-stat[data-stat=due] .hm-sn { grid-column: 2; grid-row: 1 / 3; font-size: 1.0625rem !important; font-weight: 600 !important; }
.hm-stats.big .hm-stat[data-stat=due] .hm-sl { grid-column: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-stats.big .hm-stat[data-stat=due] .hm-sl:first-of-type { color: var(--ink); font-size: .9375rem; font-weight: 500; }
.hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sn { flex: 0 0 100%; margin-bottom: 2px; }
.hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sl + .hm-sl::before { content: "\00a0·\00a0"; }
.hm-stats:not(.big) .hm-stat:has(> .hm-sl + .hm-sl) { flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; justify-content: flex-start; column-gap: 4px; }
.hm-stats:not(.big) .hm-stat:has(> .hm-sl + .hm-sl) .hm-sn { flex: 0 0 100%; }
/* three plain counts (the Checklist) stay three across; only money goes 2 + 1 */
.hm-stats.n3:not(.big) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-stats.n3:not(.big) .hm-stat:nth-child(3) { grid-column: auto; }
.hm-stats.n3:not(.big) .hm-stat:nth-child(3)::before { left: 0; right: auto; top: 14px; bottom: 14px; width: .5px; height: auto; }

/* the section tabs (Budget | Plan | Browse | What-Ifs, All Tools | Checklist | Timeline): one gray track, one raised white thumb */
html body #app .subnav .seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 2px; border-radius: 9px; background: var(--ui-fill) !important; box-shadow: none !important; border: 0; overflow: visible; }
html body #app .subnav .seg > button { min-height: 32px !important; height: 32px; padding: 0 12px !important; border-radius: 7px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--ink) !important; font: 500 .8125rem/1 var(--sans) !important; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #app .subnav .seg > button[hidden] { display: none; }
html body #app .subnav .seg > button.on { background: #FFFFFF !important; font-weight: 600 !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04) !important; }
html[data-theme=dark] body #app .subnav .seg > button.on { background: #48484A !important; box-shadow: none !important; }
html body #app .subnav:not([data-g=budget]) [data-sg=budget], html body #app .subnav:not([data-g=tools]) [data-sg=tools] { display: none !important; }
@media (max-width: 859px) {
  html body #app .subnav { padding-top: 4px; gap: 8px; }
  html body #app .subnav .seg { display: grid; width: 100%; }
  html body #app .subnav .seg > button { padding: 0 6px !important; }
}

@media (max-width: 859px) {
  /* sections: one rhythm, no stacked gaps */
  html body #app :is(#t-guests, #t-budget, #t-check, #t-time) > .sec { margin-top: 20px; padding-top: 0; padding-bottom: 0; }
  html body #app :is(#t-guests, #t-budget, #t-check, #t-time) > .sec:has(> .eyebrow) { margin-top: 24px; }
  html body #app :is(#t-guests, #t-budget, #t-check, #t-time) > h1 { margin-bottom: 12px; }
  html body #app :is(#t-guests, #t-budget, #t-check) .hm-stats { margin: 0 0 12px; }

  /* ----- Guests: stats, then search with a round + (Add a Guest), then one row of filter chips (Select at its end), then the list ----- */
  html body #app #t-guests > .sec.cpl-severy:has(> .eyebrow) { margin-top: 0; }
  html body #app #t-guests .cpl-filt { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 8px; padding: 0; overflow: visible; }
  html body #app #t-guests .cpl-filt input[type=search] { grid-column: 1; min-height: 44px; height: 44px; margin: 0; }
  html body #app #t-guests .cpl-filt:not(:has(.cpl-addtop)) input[type=search] { grid-column: 1 / -1; }
  html body #app #t-guests .cpl-filt .cpl-addtop { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border-radius: 50%;
    font: 400 28px/1 var(--sans); letter-spacing: 0; }
  html body #app #t-guests .cpl-filt .cpl-addtop > span:first-child { margin-top: -2px; }
  #t-guests .cpl-filt .cpl-addl { display: none; }
  #t-guests .cpl-fchips { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: -4px -16px 0; padding: 0 11px; }
  #t-guests .cpl-fchips::-webkit-scrollbar { display: none; }
  /* a chip: a 34px pill drawn inside a 44px target (the transparent border is part of the tap); its width is its words, so a choice never pushes the row around */
  html body #app #t-guests .cpl-fchips select { flex: none; width: auto; max-width: none; min-width: 0; height: 44px; min-height: 44px !important; margin: 0; padding: 0 28px 0 12px !important;
    border: 5px solid transparent !important; background-clip: padding-box; border-radius: 999px !important; background-color: var(--ui-fill) !important; background-position: right 11px center !important;
    color: var(--ink); font: 500 16px/1 var(--sans) !important; letter-spacing: -.015em; text-overflow: clip; box-shadow: none !important; } /* 16px: iOS never zooms the page when a picker opens */
  html body #app #t-guests .cpl-fchips select:is([data-on], :has(option:checked:not([value=""]))) { background-color: var(--ui-tinted) !important; color: var(--ui-tint); }
  html body #app #t-guests .cpl-fchips > .tag { flex: none; }
  html body #app #t-guests .cpl-fchips .cpl-fsel { flex: none; margin-left: auto; padding: 0 4px 0 8px; min-height: 44px; font-size: 15px; }
  html body #app #t-guests .cpl-selrow { margin: 0 0 4px; }

  /* ----- a household: one compact row; a tap opens its replies per event and its actions under it ----- */
  html body #app #t-guests .cpl-tbl tbody tr { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; padding: 0 16px !important; }
  html body #app #t-guests .cpl-tbl tbody tr + tr::before { left: 68px; }
  html body #app #t-guests .cpl-tbl td.cpl-gn { grid-column: 1 / -1; position: relative; min-height: 0; margin: 0; padding: 11px 30px 11px 52px; }
  html body #app #t-guests .cpl-tbl td.cpl-gn::before { top: 50%; margin-top: -18px; }
  html body #app #t-guests .cpl-tbl td.cpl-gn:has(.cpl-linkrow)::before { top: 11px; margin-top: 0; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > b { order: -2; flex: 1 1 6.5rem; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: 600 1.0625rem/1.3 var(--sans); }   /* a long name takes a second line beside its reply, never "Vikram Bhatna…" */
  html body #app #t-guests .cpl-tbl tr.cpl-gxo td.cpl-gn > b { -webkit-line-clamp: unset; }
  /* New From Your Link, B-list, an address reminder, its own tags: small chips under the details line, only when it has any */
  html body #app #t-guests .cpl-tbl td.cpl-gn { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: 0 8px; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > :is(.mute.s, .cpl-linkrow) { flex: 0 0 100%; min-width: 0; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s { order: 1; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .tag { order: 2; flex: none; max-width: 100%; margin-top: 4px; padding: 2px 8px; font-size: .75rem !important; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .cpl-linkrow { order: 3; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s { margin-top: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .875rem; line-height: 1.3; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s :is(.tag, span) { white-space: nowrap; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s .tag { display: inline; padding: 0; background: none !important; color: inherit !important; font: inherit !important; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s .tag::before { display: none; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo td.cpl-gn > .mute.s { white-space: normal; }
  html body #app #t-guests .cpl-tbl td.cpl-gn:has(.cpl-gck) { padding-left: 52px; }
  html body #app #t-guests .cpl-tbl td.cpl-gn .cpl-gck { position: absolute; left: -4px; top: 50%; margin-top: -22px; }
  /* its reply, on the name's line: a dot and a word. In the row's flow, so the name and the details never run under it;
     where the two cannot share a line (a narrow phone, large text) it drops under the name */
  #t-guests .cpl-gst { position: relative; order: -1; flex: none; display: inline-flex; align-items: center; gap: 6px; font: 500 .9375rem/1 var(--sans); color: var(--mute); white-space: nowrap; pointer-events: none; z-index: 1; }
  html body #app #t-guests .cpl-selon td.cpl-gn { padding-right: 0; }
  #t-guests .cpl-gst::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--ds-ink-3); }
  #t-guests .cpl-gst.g { color: var(--ds-good-ink); } #t-guests .cpl-gst.g::before { background: var(--ds-good); border: 0; }
  #t-guests .cpl-gst.y { color: var(--ds-warn-ink); } #t-guests .cpl-gst.y::before { background: var(--ds-warn); border: 0; }
  #t-guests .cpl-gst.r { color: var(--ds-bad-ink); } #t-guests .cpl-gst.r::before { background: var(--ds-bad); border: 0; }
  /* the tap target: the whole row, with a chevron that turns when it is open */
  html body #app #t-guests .cpl-tbl button.cpl-gx { position: absolute; inset: 0 -16px 0 -16px; display: block; width: auto; height: auto; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; color: var(--ph); cursor: pointer; z-index: 0; }
  html body #app #t-guests .cpl-tbl button.cpl-gx::after { content: ""; position: absolute; left: auto; bottom: auto; right: 20px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .25s var(--ui-ease); }
  html body #app #t-guests .cpl-tbl button.cpl-gx[aria-expanded=true]::after { transform: rotate(45deg); margin-top: -7px; }
  html body #app #t-guests .cpl-tbl button.cpl-gx:active { transform: none; background: var(--ui-fill) !important; opacity: 1; }
  html body #app #t-guests .cpl-tbl button.cpl-gx:focus-visible { outline-offset: -3px !important; }
  #t-guests td.cpl-gn:has(.cpl-linkrow) button.cpl-gx { bottom: auto; height: 64px; }
  #t-guests td.cpl-gn .cpl-linkrow { position: relative; z-index: 1; margin-top: 8px; }
  /* closed: only the row; open: the replies three across, then the actions in one line */
  html body #app #t-guests .cpl-tbl tr:not(.cpl-gxo) > td:not(.cpl-gn) { display: none !important; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo { background: color-mix(in srgb, var(--ui-fill) 35%, transparent) !important; padding-bottom: 8px !important; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo > td[data-l] { padding: 0 0 6px; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo > td.cpl-act { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 0 4px; margin: 0 -8px; padding: 0; border: 0; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo > td.cpl-act .cpl-addr-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 2px 8px 0; }
  html body #app #t-guests .cpl-tbl tr.cpl-gxo > td.cpl-act > :is(button, .sp-more) { flex: none !important; min-width: 0 !important; }
  /* a long list keeps a steady scroll bar: rows not drawn yet are guessed at their real height */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) tbody > tr:not(.cpl-gxo) { contain-intrinsic-size: auto 64px !important; }

  /* ----- Budget: the total as money, compact vendor rows that open in place ----- */
  html body #app label.cpl-btot { flex-wrap: nowrap; white-space: nowrap; margin-top: 8px; min-height: 48px; }
  html body #app label.cpl-btot .cpl-money { flex: 1 1 auto; min-width: 0; }
  html body #app label.cpl-btot .cpl-money input { width: 100%; min-height: 44px !important; text-align: right; font: 500 1.0625rem/1.2 var(--sans) !important; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
  html body #app #t-budget .cpl-cq { display: flex; flex-direction: row !important; text-align: left; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; margin-bottom: 12px; }
  html body #app #t-budget .cpl-cq > div:first-child { display: none; } /* the button says it */
  html body #app #t-budget .cpl-cq { padding: 0; background: none !important; }
  html body #app #t-budget .cpl-cq .row { flex: 1 1 auto; flex-wrap: nowrap; gap: 8px; margin: 0; }
  html body #app #t-budget .cpl-cq .row button { flex: 1 1 auto; min-height: 44px !important; padding: 8px 14px !important; font-size: .9375rem !important; }
  html body #app #t-budget .cpl-cq button.p { background: var(--ui-tinted) !important; color: var(--ui-tint) !important; }
  html body #app #t-budget .cpl-bt tbody { background: var(--card); border-radius: var(--r-card); }
  html body #app #t-budget .cpl-bt tbody tr { padding: 0 16px !important; gap: 0 8px; }
  html body #app #t-budget .cpl-bt tbody tr + tr::before { left: 16px; }
  html body #app #t-budget .cpl-bt td:first-child { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 60px; padding: 10px 26px 10px 0 !important; }
  html body #app #t-budget .cpl-bt td:first-child > b { grid-column: 1; grid-row: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 1.0625rem/1.3 var(--sans); letter-spacing: -.015em; }
  html body #app #t-budget .cpl-bt td:first-child > .cpl-bar { display: none; }
  html body #app #t-budget .cpl-bt td:first-child > .cpl-bmeta { grid-column: 1; grid-row: 2; display: block; margin: 1px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .875rem; line-height: 1.3; }
  html body #app #t-budget .cpl-bt tr.open td:first-child > .cpl-bmeta { display: block; }
  #t-budget .cpl-bamt { grid-column: 2; grid-row: 1 / 3; display: grid; justify-items: end; gap: 6px; font-variant-numeric: tabular-nums; }
  #t-budget .cpl-bamt > b { font: 500 1.0625rem/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink); }
  #t-budget .cpl-bpd { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--ui-fill); overflow: hidden; }
  #t-budget .cpl-bpd > i { display: block; height: 100%; border-radius: 2px; background: var(--ds-good); }
  /* the row is the tap: Edit becomes a full-row target with a chevron (its name stays for screen readers) */
  html body #app #t-budget .cpl-bt button.cpl-bmore { position: absolute; inset: 0 -16px 0 -16px; display: block; width: auto !important; max-width: none; justify-self: stretch; align-self: stretch; height: auto; min-height: 44px; margin: 0; padding: 0 !important; border-radius: 0; background: transparent !important; color: transparent !important; font-size: 0 !important; z-index: 1; }
  html body #app #t-budget .cpl-bt button.cpl-bmore::after { content: ""; position: absolute; left: auto; bottom: auto; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid var(--ph); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .25s var(--ui-ease); }
  html body #app #t-budget .cpl-bt button.cpl-bmore[aria-expanded=true]::after { transform: rotate(45deg); margin-top: -7px; }
  html body #app #t-budget .cpl-bt button.cpl-bmore:active { transform: none; opacity: 1; background: var(--ui-fill) !important; }
  html body #app #t-budget .cpl-bt button.cpl-bmore:focus-visible { outline-offset: -3px !important; }
  html body #app #t-budget .cpl-bt tr:not(.open) > td:not(:first-child) { display: none !important; }
  html body #app #t-budget .cpl-bt tr.open { padding-bottom: 8px !important; }
  html body #app #t-budget .cpl-bt tr.open > td:not(:first-child) { padding-bottom: 8px; }
  html body #app #t-budget .cpl-bt tr.open :is(input, select) { background-color: var(--ui-fill) !important; box-shadow: none !important; }
  /* Delete sits at the end of the open line, not over its amount */
  html body #app #t-budget .cpl-bt tr.open > td:last-child { position: static; grid-column: 1 / -1; display: flex !important; justify-content: flex-end; padding: 0 !important; }
  html body #app #t-budget .cpl-bt tr.open > td:last-child .cpl-bdel { min-height: 44px; padding: 0 14px; } /* Delete, in words: an × means close everywhere else */
  html body #app #t-budget form[data-form=bitem] { margin-top: 12px !important; flex-wrap: nowrap; gap: 8px; }
  html body #app #t-budget form[data-form=bitem] input { flex: 1 1 auto; min-width: 0 !important; }
  html body #app #t-budget form[data-form=bitem] button { flex: none; }
}
@media (min-width: 860px) { #t-guests .cpl-gst, #t-guests .cpl-gx, #t-budget .cpl-bamt { display: none; } }
@media (min-width: 860px) {
  #t-guests .cpl-filt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
  #t-guests .cpl-filt input[type=search] { flex: 2 1 16rem; }
  #t-guests .cpl-fchips { display: contents; }
  #t-guests .cpl-fchips select { flex: 1 1 9rem; width: auto; }
  #t-guests .cpl-filt .cpl-addtop { order: 9; flex: none; margin: 0; }
  #t-guests .cpl-fchips .cpl-fsel { flex: none; }
  /* a reply: the longest word (Waiting) never reaches the chevron */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) select.cpl-r { width: 100%; min-width: 0; padding: 6px 30px 6px 12px; background-position: right 11px center; font-size: .9375rem; text-overflow: ellipsis; }
}
/* the table itself (1280 and wider): events share what the name and actions leave, five fit with every header whole */
@media (min-width: 1280px) {
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) th:first-child, html body #app #t-guests .cpl-tbl:not(.cpl-bt) td:first-child { width: 24%; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) th:last-child, html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act { width: 216px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) :is(th, td):not(:first-child):not(:last-child) { padding-left: 6px; padding-right: 6px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) th { letter-spacing: .04em; overflow-wrap: normal; white-space: normal; line-height: 1.25; vertical-align: bottom; } /* a long event name wraps to a second line instead of being cut off */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) th:not(:first-child):not(:last-child) { padding-left: 12px; }
  /* a household in the table: one line of actions (Send Invite, WhatsApp as its icon, More with Add Kids, Edit and Delete), the address pill above it */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act { white-space: nowrap; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .cpl-addr-actions { justify-content: flex-end; margin: 0 0 6px; white-space: normal; }
  /* the address links under the pill are plain tinted links on one line each, never a stack of big gray buttons taller than the row */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .cpl-addr-actions { gap: 0 12px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .cpl-addr-actions .tag { margin-bottom: 2px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .cpl-addr-btn { min-height: 28px; padding: 2px 0; border: 0 !important; border-radius: 6px; background: none !important; box-shadow: none !important; color: var(--ui-tint) !important; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .cpl-addr-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act > :is(button, .sp-more) { vertical-align: middle; margin: 0 0 0 4px; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act > button:not(.wa-b) { min-height: 36px; padding: 6px 14px; white-space: nowrap; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .wa-b { width: 36px; min-width: 36px; min-height: 36px; padding: 0; border-radius: 50%; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) td.cpl-act .wa-b > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* its name stays for screen readers and the tooltip */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-more { display: inline-flex; position: relative; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-mbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ui-fill); color: var(--ink); font-size: 0; } /* "More for <family>" stays its name */
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-mbtn::before { content: ""; width: 16px; height: 4px; background: currentColor; -webkit-mask: radial-gradient(circle, #000 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; mask: radial-gradient(circle, #000 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-mbtn[aria-expanded=true] { background: var(--ui-tinted); color: var(--ui-tint); }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-mm { display: none; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-more.open .sp-mm { display: grid; position: absolute; top: calc(100% + 6px); right: 0; bottom: auto; left: auto; z-index: 20; min-width: 180px; gap: 2px; text-align: left; white-space: nowrap; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) .sp-more.open .sp-mm button { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; }
  html body #app #t-guests .cpl-tbl:not(.cpl-bt) tr.sp-mopen { position: relative; z-index: 4; } /* its menu opens over the rows below and the sticky header */
}
@media (max-width: 859px) {
  /* ----- Checklist: a task is one row (box, words, its date under them), the add form in three short rows ----- */
  html body #app #t-check .card:has(> .li) { padding: 0 16px; }
  html body #app #t-check .li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-height: 48px; padding: 0; border-bottom: .5px solid var(--ui-sep); }
  html body #app #t-check .li:last-child { border-bottom: 0; }
  html body #app #t-check .li > label { align-items: center; min-height: 48px; padding: 10px 0; box-sizing: border-box; gap: 12px; font-size: 1.0625rem; line-height: 1.3; } /* the whole row height is the tap target (the label was 28px) */
  html body #app #t-check .li > label > input[type=checkbox] { margin: 0; flex: none; align-self: flex-start; margin-top: 4px; }
  html body #app #t-check .li > .row { margin: 0; gap: 4px; flex-wrap: nowrap; align-self: center; }
  html body #app #t-check .li > .row > .tag { padding: 3px 8px; font-size: .75rem !important; white-space: nowrap; }
  html body #app #t-check .li > .row > .tag:not(.r):not(.g) { background: none !important; padding: 3px 0; color: var(--mute) !important; }
  html body #app #t-check .li > .row > button.lnk { min-height: 32px; padding: 0 4px; }
  html body #app #t-check form[data-form=task] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  html body #app #t-check form[data-form=task] > input[name=title] { grid-column: 1 / -1; min-width: 0 !important; }
  html body #app #t-check form[data-form=task] > :is(select, label, input) { width: 100%; min-width: 0; margin: 0; }
  html body #app #t-check form[data-form=task] select { padding-right: 34px !important; text-overflow: ellipsis; }
  html body #app #t-check form[data-form=task] > label { grid-column: 1 / -1; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 0 0 4px; white-space: nowrap; font-size: .9375rem; }
  html body #app #t-check form[data-form=task] > label input { width: 100%; }
  html body #app #t-check form[data-form=task] > button[type=submit] { grid-column: 1 / -1; min-height: 44px; }
  html body #app #t-check form[data-form=task] > select[name=when] { grid-row: 2; grid-column: 1; }
  html body #app #t-check form[data-form=task] > select[name=ev] { grid-row: 2; grid-column: 2; }
  html body #app #t-check form[data-form=task]:not(:has(select[name=ev])) > select[name=when] { grid-column: 1 / -1; }

  /* ----- Timeline: event chips that show which one is open, compact moments, the add form in two rows ----- */
  html body #app #t-time > .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0; margin: 0 -16px; padding: 0 11px; }
  html body #app #t-time > .chips::-webkit-scrollbar { display: none; }
  html body #app #t-time > .chips > button { flex: none; height: 44px; min-height: 44px !important; padding: 0 16px !important; border: 5px solid transparent !important; background-clip: padding-box !important;
    background-color: var(--ui-fill) !important; color: var(--ink) !important; font: 500 .9375rem/1 var(--sans) !important; box-shadow: none !important; }
  html body #app #t-time > .chips > button.on { background-color: var(--ui-btn) !important; color: var(--ui-on-btn) !important; font-weight: 600 !important; }
  html body #app #t-time > .sec { margin-top: 16px; }
  html body #app #t-time > .sec > .row.sp { align-items: center; gap: 8px 12px; }
  html body #app #t-time > .sec > .row.sp h2 { font: 700 1.375rem/1.2 var(--sans); letter-spacing: -.01em; }
  html body #app #t-time > .sec > .row.sp > .row button { min-height: 44px !important; padding: 6px 14px !important; font-size: .9375rem !important; }
  html body #app #t-time .cpl-acts { margin-top: 8px; }
  html body #app #t-time .cpl-tl { margin: 12px 0; padding-left: 14px; gap: 8px; }
  /* a moment: its time and Remove on one line, what happens under it, who and the staff note side by side */
  html body #app #t-time .cpl-tl li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 6px 6px 8px; border: 0; box-shadow: none; border-radius: var(--r-card); background: var(--card); }
  html body #app #t-time .cpl-tl li > input[data-tf=at] { grid-column: 1; grid-row: 1; width: 8.5rem; }
  html body #app #t-time .cpl-tl li > .sq { grid-column: 2; grid-row: 1; width: 40px; min-height: 40px; border: 0 !important; background: none !important; color: var(--mute) !important; }
  html body #app #t-time .cpl-tl li > .cpl-tlb { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body #app #t-time .cpl-tl li > .cpl-tlb > input[data-tf=title] { grid-column: 1 / -1; }
  html body #app #t-time .cpl-tl li > .cpl-nowtag { grid-column: 1 / -1; justify-self: start; }
  html body #app #t-time .cpl-tl li::before { left: -21px; top: 22px; width: 10px; height: 10px; }
  html body #app #t-time .cpl-tl li :is(input) { min-height: 40px; padding: 8px 10px; font-size: 16px; }
  html body #app #t-time .cpl-tl .cpl-tlb { gap: 4px; }
  html body #app #t-time form.cpl-tladd { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  html body #app #t-time form.cpl-tladd > * { width: 100%; min-width: 0 !important; margin: 0; }
  html body #app #t-time form.cpl-tladd > button { width: auto; justify-self: stretch; }
}
/* Budget summary: paid against planned, one thin bar across the card under the two numbers */
.hm-stats .cpl-bpbar { grid-column: 1 / -1; height: 4px; margin: 0 16px 12px; border-radius: 2px; background: var(--ui-fill); overflow: hidden; }
.hm-stats .cpl-bpbar > i { display: block; height: 100%; border-radius: inherit; background: var(--ds-good); }
.hm-stats.n3 .cpl-bpbar + .hm-stat { grid-column: 1 / -1; }
.hm-stats .cpl-bpbar + .hm-stat::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; bottom: auto; width: auto; height: .5px; background: var(--ui-sep); }
/* Plan: the estimated total in the system font (not the display serif); Print and Export as two quiet buttons, not a second primary */
html body #app #t-plan .big-n { font: 700 2.125rem/1.12 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
html body #app #t-plan .pl-share > button { min-height: 36px; padding: 0 14px; font-size: .9375rem; font-weight: 500; background: var(--ui-fill) !important; color: var(--ui-tint) !important; box-shadow: none !important; }
/* steppers (guests per event, the plan bar's head count): one iOS-style capsule, − and + inside it, no separate circles */
html body #app .step:has(> button.sq) { display: inline-flex; align-items: center; gap: 0; }
html body .hm-stats .cpl-bpbar { align-self: start; min-height: 0 !important; padding: 0; }
html body #app .step > .mute.s { margin-right: 8px; }
html body #app .step > button.sq, :root body #app .step > button.sq { width: 44px !important; min-width: 44px !important; height: 44px; min-height: 44px !important; padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0 !important; background: var(--ui-fill) !important; box-shadow: none !important; color: var(--ink) !important; font: 500 1.25rem/1 var(--sans) !important; }
html body #app .step > button.sq:first-of-type { border-radius: 22px 0 0 22px !important; }
html body #app .step > button.sq:last-of-type { border-radius: 0 22px 22px 0 !important; }
html body #app .step > input[type=number] { width: 52px !important; min-width: 0; height: 44px; min-height: 44px !important; margin: 0; padding: 0 2px !important; border: 0 !important; border-radius: 0 !important; background: var(--ui-fill) !important; box-shadow: none !important; text-align: center; font: 600 1rem/1 var(--sans) !important; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
html body #app .step > input[type=number]::-webkit-inner-spin-button, html body #app .step > input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body #app .step > input[type=number]:focus-visible { outline-offset: -2px !important; }
@media (max-width: 859px) {
  /* Budget | Plan | Browse | What-Ifs (and All Tools | Checklist | Timeline) is the first thing under the header and the one bar that stays */
  html body #app > main > .subnav:not([hidden]) { position: sticky; top: calc(var(--hdr-h, calc(58px + var(--sa-t, 0px))) - 1px); /* right under the bar, however tall the notch makes it (ui.js measures it) */ z-index: 15; margin: 0 -16px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 96%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
  html body #app > main > .subnav:not([hidden]) ~ .pg:not(#t-home, [hidden]) { padding-top: 4px; }
  /* the plan controls under it, in the page: what-if and event on one row, the head count and the running total on the next */
  html body #app > main > #tool { position: static; z-index: auto; margin: 0 -16px; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important; box-shadow: none !important; }
  html body #app > main > #tool > .trow { display: grid; grid-template-columns: 44px 52px 44px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px 0; padding: 4px 16px 8px; }
  html body #app > main > #tool :is(.tl, .tl > .step) { display: contents; }
  html body #app > main > #tool select#scn { grid-row: 1; grid-column: 1 / 5; margin: 0 8px 0 0; min-width: 0; width: auto; }
  html body #app > main > #tool select#evs { grid-row: 1; grid-column: 5; margin: 0; min-width: 0; width: auto; }
  html body #app > main > #tool [data-a=g-] { grid-row: 2; grid-column: 1; }
  html body #app > main > #tool #gn { grid-row: 2; grid-column: 2; }
  html body #app > main > #tool [data-a="g+"] { grid-row: 2; grid-column: 3; }
  html body #app > main > #tool select { min-height: 40px !important; height: 40px; font-size: .9375rem; border: 0 !important; border-radius: var(--r-field, 10px) !important; background-color: var(--ui-fill) !important; box-shadow: none !important; }
  html body #app > main > #tool .step > button.sq, html body #app > main > #tool .step > input[type=number] { height: 40px; min-height: 40px !important; }
  html body #app > main > #tool .step > button.sq:first-of-type { border-radius: 20px 0 0 20px !important; }
  html body #app > main > #tool .step > button.sq:last-of-type { border-radius: 0 20px 20px 0 !important; }
  html body #app > main > #tool .tt { grid-row: 2; grid-column: 4 / 6; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; justify-self: end; max-width: 100%; text-align: right; }
  html body #app > main > #tool .tt #hp { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
  html body #app > main > #tool .tt .tot { font: 600 1.0625rem/1.2 var(--sans) !important; font-variant-numeric: tabular-nums; }
}
/* What-Ifs: New What-If lives once, beside Print Comparison on the page (not again in the sub-tab bar) */
html body #app .subnav .snew { display: none !important; }

/* ---------- Checkboxes: one square, rounded style everywhere, light and dark (iOS drew the native one as a circle) ---------- */
html body input[type=checkbox]:not([role=switch]):not(.ckp input):not(.mn-tick input) { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 22px; height: 22px; min-width: 22px; min-height: 0; max-height: 22px; margin: 0; padding: 0;
  border: 1.5px solid var(--ds-ink-3, #8A827A); border-radius: 6px; background: var(--ds-surface, #fff) center / 100% no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s; }
html body input[type=checkbox]:not([role=switch]):not(.ckp input):not(.mn-tick input):checked { border-color: var(--ds-plum); background-color: var(--ds-plum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme=dark] body input[type=checkbox]:not([role=switch]):not(.ckp input):not(.mn-tick input) { background-color: #2C2C2E; border-color: #8C857C; }
[data-theme=dark] body input[type=checkbox]:not([role=switch]):not(.ckp input):not(.mn-tick input):checked { border-color: #C9A6D6; background-color: #C9A6D6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%232A1430' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html body input[type=checkbox]:not([role=switch]):disabled { opacity: .5; cursor: default; }

/* ---------- App Icon choice (Account, Appearance; public/native.js): icons on the card, no gray pill behind each, labels that fit ---------- */
/* (.sp-ai is also the home page's Budget Analyzer card, .spotc.sp-ai in site.css: the icon grid must not reach it) */
html body .sp-ai:not(.spotc) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
html body .sp-ai button { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 44px !important; height: auto !important;
  padding: 6px 0 !important; border: 0 !important; border-radius: 12px !important; background: none !important; box-shadow: none !important; color: var(--mute) !important;
  font: 500 .75rem/1.2 var(--sans) !important; letter-spacing: 0; white-space: nowrap; }
html body .sp-ai button:active { transform: scale(.96); background: none !important; }
html body .sp-ai img { width: min(56px, 100%); height: auto; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 .5px var(--ui-sep); }
html body .sp-ai button.on { color: var(--ink) !important; font-weight: 600 !important; }
html body .sp-ai button.on img { box-shadow: 0 0 0 2px var(--ui-group, var(--card)), 0 0 0 4px var(--ui-tint, var(--plum)); }
html body .sp-ai-h { font: 600 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; }
/* More account settings: Appearance sits flush in the open card (no card-in-card padding), even gaps between its parts */
html body .sga-advanced-body #t-appear { margin: 0; padding: 0; }
html body .sga-advanced-body #t-appear > .card { margin: 0 !important; padding: 4px 0 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
html body .sga-advanced-body #t-appear .cpl-h { margin: 0 0 10px !important; }
html body .sga-advanced-body #t-appear .sp-appicon { margin-top: 18px; }
html body .sga-advanced-body > * + * { margin-top: 20px !important; }
html body .sga-advanced > summary + .sga-advanced-body { padding-top: 4px; }
/* Save the Date scenes: the seconds picker is wide enough for "3.5 s" and its arrow, never overlapping */
html body #app .sd-row select { flex: none; width: auto !important; min-width: 6.25rem; padding-left: 14px !important; padding-right: 2.25rem !important; background-position: right 12px center !important; font-variant-numeric: tabular-nums; }
/* Guests on a phone: the three filters share the row (iOS sizes a picker to its longest option, which pushed the last one off screen);
   a guest's details wrap to a second line instead of stopping at "2 …" */
@media (max-width: 859px) {
  html body #app #t-guests .cpl-fchips { flex-wrap: wrap !important; overflow: visible !important; row-gap: 0; }
  html body #app #t-guests .cpl-fchips select { flex: 1 1 30% !important; min-width: 0 !important; width: 0 !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 24px 0 11px !important; background-position: right 9px center !important; }
  html body #app #t-guests .cpl-fchips .cpl-fsel { flex: 0 0 100%; justify-content: flex-start; min-height: 36px !important; padding: 0 6px !important; text-align: left; }
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
}
/* Console Logs, Custom range: From and To side by side, the "UTC days" note under them */
html body.own .olcustom:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; align-items: end; }
html body.own .olcustom > label.f { margin: 0; min-width: 0; }
html body.own .olcustom > label.f input { width: 100%; min-width: 0; }
html body.own .olcustom > .mute.s { grid-column: 1 / -1; margin: 2px 0 0; }
/* People (partner and family): Invite Someone is the first thing under the title; the people are one grouped list of rows */
html body #app #t-people .pp-inv { margin: 8px 0 16px; }
html body #app #t-people .pp-inv > summary.pp-invb { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ui-btn); color: var(--ui-on-btn); font: 600 1rem/1 var(--sans); cursor: pointer; }
html body #app #t-people .pp-inv > summary.pp-invb::-webkit-details-marker { display: none; }
html body #app #t-people .pp-inv > summary.pp-invb::after { display: none !important; }
html body #app #t-people .pp-inv[open] > summary.pp-invb { background: var(--ui-tinted); color: var(--ui-tint); }
html body #app #t-people .pp-inv > form.card { margin-top: 12px; }
html body #app #t-people .sp-people { display: block !important; background: var(--ui-group, var(--card)); border-radius: var(--r-card, 14px); overflow: hidden; gap: 0; }
html body #app #t-people .sp-people > .card { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 14px 16px !important; position: relative; }
html body #app #t-people .sp-people > .card + .card::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--ui-sep); }
html body #app #t-people .sp-people .cpl-acts { margin-top: 2px; gap: 0 18px; }
html body #app #t-people .sp-people .cpl-acts .lnk { min-height: 44px; font-size: .9375rem; } /* 44px targets on touch (they were 36) */
/* Guests, Select: a picked row is a quiet plum tint across the whole row; the bar of actions is a raised sheet with readable buttons */
html body #app #t-guests .cpl-selon tr.cpl-picked { background: var(--ui-tinted) !important; }
html body #app #t-guests .cpl-selon tr.cpl-picked > td { background: transparent !important; } /* the tint is see-through: once on the row, never again on its cells (it doubled into a darker band) */
html body #app .cpl-gbar { background: var(--ui-elev, var(--card)) !important; color: var(--ink) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 -1px 0 var(--ui-sep), 0 18px 48px -12px rgba(0, 0, 0, .35) !important; border-radius: var(--r-sheet, 16px) !important; padding: 14px 16px !important; }
html[data-theme=dark] body #app .cpl-gbar { background: #2C2C2E !important; }
html body #app .cpl-gbar .cpl-gbn { color: var(--mute) !important; opacity: 1 !important; font-size: .875rem; }
html body #app .cpl-gbar .cpl-gbh b { color: var(--ink); font: 600 1.0625rem/1.2 var(--sans); }
html body #app .cpl-gbar button.lnk { color: var(--ui-tint) !important; text-decoration: none !important; font-weight: 600; }
html body #app .cpl-gbar button:not(.lnk):not(.wa-b) { background: var(--ui-tinted) !important; color: var(--ui-tint) !important; border: 0 !important; box-shadow: none !important; font-weight: 600; opacity: 1; }
html body #app .cpl-gbar button.p:not(.lnk) { background: var(--ui-btn) !important; color: var(--ui-on-btn) !important; }
html body #app .cpl-gbar button:disabled { opacity: .45; }
/* Send on WhatsApp in the bar: a full-width pill with a readable label (it kept the old dark bar's white text, so only its icon showed) */
html body #app .cpl-gbar button.wa-b { flex: 1 1 100%; min-height: 44px; border: 0 !important; border-radius: var(--r-pill, 999px); background: rgba(37, 211, 102, .14) !important; color: var(--ink) !important; font-weight: 600; box-shadow: none !important; }
html body #app .cpl-gbar button.wa-b .wa-ic { color: #128C4A; }
html[data-theme=dark] body #app .cpl-gbar button.wa-b { background: rgba(91, 217, 138, .16) !important; }
html[data-theme=dark] body #app .cpl-gbar button.wa-b .wa-ic { color: #5BD98A; }
/* People: the invite button sits clear of the fields above it, full width on a phone */
html body #app #t-people .pp-inv form > button[type=submit] { margin-top: 16px; }
@media (max-width: 859px) { html body #app #t-people .pp-inv form > button[type=submit] { width: 100%; } }
/* Guests on a phone: even spacing between blocks; the folded parts (Invitation Message, WhatsApp Groups, Collect Guest Info) are white rows
   with the same shape and a 10px gap, never gray pills; the add-an-event chips and Add to Calendar sit close under the events */
@media (max-width: 859px) {
  html body #app #t-guests > .sp-fold { margin: 0 0 10px !important; padding: 0 !important; }
  html body #app #t-guests .sp-fold > button.sp-foldh { min-height: 60px; margin: 0 !important; padding: 10px 16px !important; border: 0 !important; border-radius: var(--r-card, 14px) !important;
    background: var(--ui-group, var(--card)) !important; color: var(--ink) !important; box-shadow: none !important; font: inherit; }
  html body #app #t-guests .sp-fold > button.sp-foldh b { font: 600 1.0625rem/1.25 var(--sans); }
  html body #app #t-guests .sp-fold > button.sp-foldh .mute { font-size: .9375rem; }
  html body #app #t-guests .sp-fold > button.sp-foldh i { color: var(--mute); font-size: 1.3rem; }
  html body #app #t-guests .sp-fold.card, html body #app #t-guests .sp-fold.cpl-collect { background: none !important; box-shadow: none !important; border: 0 !important; }
  html body #app #t-guests .cpl-sev .chips { margin: 10px -16px 0; padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  html body #app #t-guests .cpl-sev .chips::-webkit-scrollbar { display: none; }
  html body #app #t-guests .cpl-sev .chips > button { flex: none; min-height: 44px !important; padding: 0 14px !important; font-size: .9375rem !important; }
  html body #app #t-guests .cpl-sev .cpl-acts { margin: 6px 0 0 !important; }
  html body #app #t-guests > .sec, html body #app #t-guests > section { margin-top: 0; margin-bottom: 18px; }
}
/* Budget summary: two money figures share the card half and half (without a payment due there are only two, which fell to quarter
   columns); each figure, its label and its detail on their own lines, no dot to strand at a line end */
html body .hm-stats.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
html body #app .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-auto-flow: row !important; align-content: start !important; justify-items: start !important; gap: 2px !important; padding: 14px 16px !important; min-width: 0; }
html body #app .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) > * { grid-column: 1 !important; grid-row: auto !important; }
html body .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sn { margin: 0 0 2px; white-space: nowrap; font-size: 1.5rem !important; }
html body .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sl + .hm-sl::before { content: none !important; }
html body .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html body .hm-stats.big .hm-stat:is([data-stat=planned], [data-stat=paid]) .hm-sl:first-of-type { color: var(--ink); font-weight: 500; }

/* ---------- 23. Review Shaadi Planning (public/rateus.js): the ask card, the review sheet ---------- */
.rtu-ask{display:flex;justify-content:center;padding:12px 16px 0}
.rtu-ask .rtu-in{width:min(640px,100%);box-sizing:border-box;background:var(--ui-group);border-radius:var(--r-card);padding:16px;display:grid;gap:6px;justify-items:start;box-shadow:0 1px 2px rgba(30,20,10,.06)}
.rtu-ask b{font-weight:600;font-size:1.0625rem}.rtu-ask .s{margin:0;color:var(--mute)}
.rtu-tap{display:flex;gap:4px;margin:2px 0}
html body .rtu-tap button{min-width:44px;min-height:44px!important;border:0!important;background:none!important;box-shadow:none!important;font-size:32px!important;line-height:1;color:var(--ds-ink-3)!important;cursor:pointer;border-radius:var(--r-field)!important;padding:0 2px!important;transition:transform .1s ease-out}
html body .rtu-tap button.rtu-lit,html body .rtu-tap button:focus-visible{color:var(--ds-gold)!important}
html body .rtu-tap button:active{transform:scale(.92)}
.rtu-row,.rtu-acts,.rtu-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html body .rtu-plain{min-height:44px;border:0!important;background:none!important;box-shadow:none!important;color:var(--ui-tint)!important;font:inherit;font-weight:500!important;padding:0 10px!important;border-radius:var(--r-pill)!important;cursor:pointer}
html body .rtu-plain:hover{background:var(--ui-tinted)!important}
html body .rtu-del{color:var(--ds-bad-ink)!important}
html body .rtu-p,html body html body .rtu-out{min-height:44px;border:0;border-radius:var(--r-pill);background:var(--ui-btn);color:var(--ui-on-btn);font:inherit;font-weight:600;padding:0 22px;cursor:pointer;display:inline-flex;align-items:center;text-decoration:none}
.rtu-out{background:var(--ui-tinted);color:var(--ui-tint)}
html body .rtu-p:active,html body .rtu-out:active{transform:scale(.97)}html body .rtu-p:disabled{opacity:.6}
.rtu-dlg{border:0;padding:0;margin:auto;width:min(560px,calc(100% - 32px));max-height:min(90vh,820px);border-radius:var(--r-sheet);background:var(--ui-elev);color:var(--ink);box-shadow:0 24px 60px rgba(20,8,26,.28)}
.rtu-dlg::backdrop{background:rgba(20,12,24,.45)}
@media (max-width:599px){.rtu-dlg{width:100%;max-width:100%;margin:auto 0 0;border-radius:var(--r-sheet) var(--r-sheet) 0 0;max-height:92vh;padding-bottom:env(safe-area-inset-bottom)}}
.rtu-form{display:grid;gap:12px;padding:20px}
.rtu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;z-index:1;margin:-20px -20px 0;padding:16px 20px 8px;background:var(--ui-elev)}
.rtu-head h2{font-family:var(--serif);font-weight:400;font-size:1.6rem;letter-spacing:-.015em;margin:0}.rtu-head h2 em{font-style:italic}
html body .rtu-x{min-width:44px;min-height:44px;border:0;border-radius:50%;background:var(--ui-fill);color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.rtu-form p{margin:0}.rtu-v{color:var(--ds-good-ink)!important}
.rtu-form .f{display:grid;gap:4px;font-size:.9375rem;font-weight:500}
html body .rtu-form .f :is(input,html body select,html body textarea){font:inherit;font-weight:400;font-size:1rem;border:1px solid var(--ui-sep);background:var(--ui-field);color:var(--ink);border-radius:var(--r-field);padding:10px 12px;min-height:44px;width:100%;box-sizing:border-box}
.rtu-form .f textarea{resize:vertical;min-height:120px}
.rtu-form .f :is(input,select,textarea):focus-visible{outline:2px solid var(--ui-tint);outline-offset:1px}
html body .rtu-form .chk{display:flex;gap:10px;align-items:flex-start;font-size:.9375rem;min-height:32px}
html body .rtu-form .chk input{width:20px;height:20px;flex:none;margin:2px 0 0;accent-color:var(--ui-btn)}
.rtu-g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width:420px){.rtu-g2{grid-template-columns:1fr}}
.rtu-stars{border:0;margin:0;padding:0;display:flex;gap:2px}
.rtu-stars label{position:relative;cursor:pointer}
html body .rtu-stars input{position:absolute;opacity:0;width:44px;height:44px;margin:0;cursor:pointer}
html body .rtu-stars label>span[aria-hidden]{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:32px;color:var(--ds-ink-3)}
html body .rtu-stars label.on>span[aria-hidden]{color:var(--ds-gold)}
.rtu-stars input:focus-visible+span{outline:2px solid var(--ui-tint);border-radius:var(--r-field)}
.rtu-st{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rtu-st .tag{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:var(--r-pill);font-size:.8125rem;font-weight:600;background:var(--ds-warn-bg);color:var(--ds-warn-ink)}
.rtu-st .tag.g{background:var(--ds-good-bg);color:var(--ds-good-ink)}.rtu-st .tag.r{background:var(--ds-bad-bg);color:var(--ds-bad-ink)}
.rtu-msg.bad{color:var(--ds-bad-ink)}
.rtu-dlg .sr,.rtu-stars .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.rtu-tap button,.rtu-p,.rtu-out{transition:none}.rtu-tap button:active,.rtu-p:active,.rtu-out:active{transform:none}}

/* ---------- The save bar (tools.js drawBar): one raised bar, the place to save a tool's changes ----------
   Ink in light mode, the raised #2C2C2E in dark (the design system: elevation is a lighter surface), never inverted to ivory. Its own buttons, never the
   shared pill tints (plum on ink, lavender on ivory: unreadable): Save is the one filled button, Discard and Done a quiet fill. Saved is the same
   bar with a green tick, said once (the toast that would repeat it stays away). Errors keep the red bar. While typing in the app it rides just
   above the keyboard (native.css, native.js) and drops its sentence, so the field stays in view. */
html body #app .tl-savebar { background: #1E1B18 !important; color: #FFF8EE !important; border: 0 !important; border-radius: 18px;
  box-shadow: 0 12px 32px -12px rgba(20, 10, 0, .5) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-theme=dark] body #app .tl-savebar { background: #2C2C2E !important; color: #F5F1EA !important; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .14), 0 12px 32px -10px rgba(0, 0, 0, .9) !important; }
html body #app .tl-savebar.bad { background: #A82C22 !important; color: #FFFFFF !important; }
html body #app .tl-savebar > span b { color: inherit !important; }
html body #app .tl-savebar :is(button, a.btn) { min-height: 44px !important; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
  font: 600 1rem/1.2 var(--sans) !important; letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
html body #app .tl-savebar button.p { background: #FFF8EE !important; color: #1E1B18 !important; }
html[data-theme=dark] body #app .tl-savebar button.p { background: #C9A6D6 !important; color: #2A1430 !important; }
html body #app .tl-savebar :is(button:not(.p), a.btn) { background: rgba(255, 255, 255, .14) !important; color: #FFF8EE !important; }
html[data-theme=dark] body #app .tl-savebar :is(button:not(.p), a.btn) { background: rgba(118, 118, 128, .3) !important; color: #F5F1EA !important; }
html body #app .tl-savebar :is(button, a.btn):disabled { opacity: .6; }
html body #app .tl-savebar.ok > span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
html body #app .tl-savebar.ok > span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: #2E7D4F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
body:has(#t-tools .tl-savebar.ok) #sp-toast { display: none !important; } /* "Saved" once, in the bar */
@media (max-width: 859px) { body.native.kb #app .tl-savebar > span { display: none; } body.native.kb #app .tl-savebar { padding: 8px !important; } }
@media (prefers-contrast: more) { html body #app .tl-savebar { box-shadow: 0 0 0 2px var(--ink) !important; } }

/* A date that looks wrong (datecheck.js): one short line under the field, the warning color with its icon; it never blocks a save */
.dv-msg { display: flex; gap: 6px; align-items: flex-start; margin: 6px 2px 0; font: 500 13px/1.35 var(--sans); color: var(--ds-warn-ink); }
.dv-msg::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--ds-warn-ink); color: var(--ui-group); font: 700 11px/1 var(--sans); }
#app input[aria-invalid=true] { box-shadow: inset 0 0 0 1.5px var(--ds-bad) !important; }

/* ---------- Tool lists on phones: one line per row, and a row opens as a bottom sheet (public/tools.js rowSum, OPENROW) ---------- */
#app .tl-sum { display: none; }
@media (min-width: 601px) { .tl-scrim { display: none; } }
@media (max-width: 600px) {
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row]:not(.tl-open) { display: block !important; padding: 0 !important; }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row]:not(.tl-open) > td:not(.tl-sum) { display: none !important; }
  html body #app .cpl-tbl.tl-tbl tbody tr + tr::before { left: 16px; }
  html body #app .cpl-tbl.tl-tbl td.tl-sum { display: block; padding: 0; order: -1; grid-column: 1 / -1; }
  #app .tl-sumr { display: flex; align-items: center; gap: 12px; padding-left: 16px; min-height: 56px; }
  #app .tl-sumc { flex: none; display: grid; place-items: center; width: 28px; min-height: 44px; margin: 0; }
  #app .tl-sumc input { width: 22px; height: 22px; margin: 0; accent-color: var(--ui-btn); }
  html body #app .tl-sumb { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; justify-content: stretch; text-align: left !important; padding: 10px 40px 10px 0 !important; min-height: 56px; margin: 0;
    background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--ink) !important; font: inherit; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  html body #app .tl-sumb::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ph); border-top: 2px solid var(--ph); transform: translateY(-50%) rotate(45deg); }
  html body #app .tl-sumb:active { transform: none; opacity: .6; }
  #app .tl-sumt { max-width: 100%; font: 600 17px/1.3 var(--sans); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #app .tl-sumt.done { color: var(--mute); text-decoration: line-through; }
  #app .tl-sums { max-width: 100%; font-size: 15px; line-height: 1.3; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #app .tl-done { display: none; }
  /* the sheet: the row itself, fixed to the bottom over a dimmed page, with a grabber and Done */
  html body #app .cpl-tbl.tl-tbl tbody tr.tl-open { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 0 16px calc(20px + env(safe-area-inset-bottom)) !important;
    background: var(--ui-elev) !important; border-radius: var(--r-sheet) var(--r-sheet) 0 0 !important; box-shadow: 0 -8px 32px rgba(0, 0, 0, .2) !important; }
  html body #app .cpl-tbl.tl-tbl tbody tr.tl-open.tl-in { animation: tl-up var(--ui-dur) var(--ui-ease); }
  html body #app .cpl-tbl.tl-tbl tbody tr.tl-open::before { display: none; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td.tl-sum { position: sticky; top: 0; z-index: 1; margin: 0 -16px; padding: 18px 16px 6px; background: var(--ui-elev); }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td.tl-sum::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--ui-fill); }
  #app tr.tl-open .tl-sumr { padding-left: 0; min-height: 44px; }
  #app tr.tl-open :is(.tl-sumc, .tl-sums) { display: none; }
  html body #app tr.tl-open .tl-sumb { pointer-events: none; padding: 0 !important; min-height: 44px; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open :is(input:not([type=checkbox]), select, textarea) { background-color: var(--ui-fill) !important; border: 0 !important; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td[data-l0] { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td[data-l0]::before { content: attr(data-l0); align-self: flex-start; font: 500 12px/1.2 var(--sans); color: var(--mute); }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td.cpl-act { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 4px; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td.cpl-act .sq { width: 100%; min-height: 44px; border: 0 !important; border-radius: var(--r-field) !important; background: var(--ui-fill) !important; color: var(--ds-bad-ink) !important; font: 600 17px/1 var(--sans); font-size: 0 !important; }
  html body #app .cpl-tbl.tl-tbl tr.tl-open td.cpl-act .sq::after { content: "Delete"; font-size: 17px; }
  html body #app tr.tl-open .tl-sumb::after { display: none; }
  #app tr.tl-open .tl-sumt { font-size: 20px; text-decoration: none; color: var(--ink); }
  html body #app tr.tl-open .tl-done { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 4px 0 12px !important; margin: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--ui-tint) !important; font: 600 17px/1 var(--sans); }
  .tl-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .4); }
  .tl-scrim.tl-in { animation: tl-fade .2s ease-out; }
}
@keyframes tl-up { from { transform: translateY(100%); } }
@keyframes tl-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body #app .cpl-tbl.tl-tbl tbody tr.tl-open.tl-in { animation: tl-fade .2s ease-out; } }
@media (prefers-contrast: more) { html body #app .cpl-tbl.tl-tbl tbody tr.tl-open { border-top: 1px solid var(--ink) !important; } }

/* ---------- Messages, laid out like Gmail (public/cmail.js): search and Compose, the wedding inbox address, folders, rows, a reading pane ---------- */
#cm-root .cm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 12px; }
#cm-root .cm-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--ui-fill); color: var(--mute); }
#cm-root .cm-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html body #app #cm-root .cm-search input { flex: 1; min-width: 0; min-height: 42px; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font-size: 16px; color: var(--ink); }
html body #app #cm-root .cm-search input:focus-visible { outline: none; } #cm-root .cm-search:focus-within { box-shadow: 0 0 0 2px var(--ui-tint); }
#cm-root .cm-acts0 { gap: 8px; flex-wrap: wrap; }
#cm-root .cm-addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 14px; margin: 0 0 12px; border-radius: var(--r-card); background: var(--card, var(--surface)); }
#cm-root .cm-addrl { display: flex; align-items: center; gap: 10px; min-width: 0; }
#cm-root .cm-addrl > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ui-tint); stroke-width: 1.7; stroke-linejoin: round; }
#cm-root .cm-addrl > span { display: grid; min-width: 0; }
#cm-root .cm-addr code { font: 500 15px/1.35 var(--sans); word-break: normal; color: var(--ink); background: none; padding: 0; overflow-wrap: anywhere; }
#cm-root .cm-addrb { gap: 4px 14px; flex-wrap: wrap; }
#cm-root .cm-folders { margin: 0 0 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#cm-root .cm-folders::-webkit-scrollbar { display: none; }
#cm-root .cm-folders > button { flex: none; }
#cm-root .cm-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--ui-btn); color: var(--ui-on-btn); font: 600 12px/1 var(--sans); }
#cm-root .cm-cnt:empty { display: none; }
#cm-root .cm-rows { list-style: none; margin: 0; padding: 0; border-radius: var(--r-card); background: var(--card, var(--surface)); overflow: hidden; }
#cm-root .cm-row { position: relative; display: flex; align-items: stretch; }
#cm-root .cm-row + .cm-row::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: .5px; background: var(--ui-sep); }
#cm-root .cm-row.on { background: var(--ui-tinted); }
html body #app #cm-root .cm-open { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px 12px 16px !important; margin: 0; min-height: 72px; text-align: left; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--ink) !important; font: inherit; cursor: pointer; }
#cm-root .cm-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 16px/1 var(--sans); }
#cm-root .cm-av.t0 { background: var(--plum-soft, var(--ui-tinted)); color: var(--ui-tint); } #cm-root .cm-av.t1 { background: var(--green-bg); color: var(--green); } #cm-root .cm-av.t2 { background: var(--blue-bg); color: var(--blue); }
#cm-root .cm-av.t3 { background: var(--yellow-bg); color: var(--yellow); } #cm-root .cm-av.t4 { background: var(--red-bg); color: var(--red); }
#cm-root .cm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
#cm-root .cm-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
#cm-root .cm-from { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; }
#cm-root .cm-n { flex: none; color: var(--mute); font-size: 13px; }
#cm-root .cm-time { flex: none; margin-left: auto; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
#cm-root .cm-l2 { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
#cm-root .cm-subj { color: var(--ink); } #cm-root .cm-prev { color: var(--mute); }
#cm-root .cm-row.unread .cm-from, #cm-root .cm-row.unread .cm-subj, #cm-root .cm-row.unread .cm-time { font-weight: 700; color: var(--ink); }
#cm-root .cm-row.unread .cm-time { color: var(--ui-tint); }
#cm-root .cm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#cm-root .cm-tags .tag { font-size: 12px; padding: 1px 8px; display: inline-flex; align-items: center; gap: 4px; }
#cm-root .cm-tags .tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
html body #app #cm-root .cm-star { flex: none; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0 !important; margin: 0; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--ph) !important; }
#cm-root .cm-row > .cm-star { align-self: flex-start; margin-top: 12px; margin-right: 6px; }
#cm-root .cm-star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
html body #app #cm-root .cm-star.on { color: var(--ds-gold) !important; } #cm-root .cm-star.on svg { fill: currentColor; }
:root[data-theme=dark] #cm-root .cm-star.on { color: var(--ds-gold-on-dark) !important; }
#cm-root .cm-empty { padding: 28px 16px; text-align: center; border-radius: var(--r-card); background: var(--card, var(--surface)); }
#cm-root .cm-empty p { margin: 0; }
html body #app #cm-root .cm-back { display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 0 !important; min-height: 44px; color: var(--ui-tint); font-weight: 500; background: none !important; border: 0 !important; }
#cm-root .cm-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the conversation */
#cm-root .cm-ttop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
#cm-root .cm-tacts { gap: 4px; }
html body #app #cm-root .cm-ib { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px !important; border-radius: 999px !important; background: var(--ui-fill) !important; border: 0 !important; color: var(--ink) !important; font: 500 14px/1 var(--sans); box-shadow: none !important; }
#cm-root .cm-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#cm-root .cm-tstar.on { color: var(--ds-gold) !important; } :root[data-theme=dark] #cm-root .cm-tstar.on { color: var(--ds-gold-on-dark) !important; } #cm-root .cm-tstar.on svg { fill: currentColor; }
@media (max-width: 600px) { #cm-root .cm-ib span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } html body #app #cm-root .cm-ib { width: 44px; min-height: 44px; justify-content: center; padding: 0 !important; } }
#cm-root .cm-h { font: 600 22px/1.25 var(--sans); letter-spacing: -.015em; margin: 4px 0 2px; overflow-wrap: anywhere; }
#cm-root .cm-sub { margin: 0 0 14px; overflow-wrap: anywhere; }
#cm-root .cm-m { padding: 14px 16px; margin: 0 0 10px; border-radius: var(--r-card); background: var(--card, var(--surface)); }
#cm-root .cm-m > header { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; }
#cm-root .cm-mw { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
#cm-root .cm-m time { flex: none; white-space: nowrap; }
#cm-root .cm-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
#cm-root .cm-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#cm-root .cm-file { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-field); background: var(--ui-fill); color: var(--ink); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
#cm-root .cm-inv { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; margin: 0 0 10px; border-radius: var(--r-field); background: var(--ui-tinted); }
#cm-root .cm-inv.off { background: var(--ui-fill); }
#cm-root .cm-invi svg { width: 26px; height: 26px; fill: none; stroke: var(--ui-tint); stroke-width: 1.7; stroke-linejoin: round; }
#cm-root .cm-invt { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
#cm-root .cm-invx { color: var(--ds-bad-ink); }
#cm-root .cm-reply { margin: 6px 0 0; padding: 12px; border-radius: var(--r-card); background: var(--card, var(--surface)); display: grid; gap: 10px; }
#cm-root .cm-reply .f { margin: 0; }
#cm-root .cm-file.off { color: var(--mute, var(--ink)); }
#cm-root .cm-file .s { margin-left: 6px; }
#cm-root .cm-att { align-items: center; gap: 8px; }
#cm-root .cm-att > .btn { flex: 0 0 auto; width: auto; }
#cm-root .cm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#cm-root .cm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--r-field); background: var(--ui-fill); overflow-wrap: anywhere; }
#cm-root .cm-dhint { display: none; }
@media (hover: hover) and (pointer: fine) { #cm-root .cm-dhint { display: inline; } }
#cm-root form.cm-drop { outline: 2px dashed var(--accent, currentColor); outline-offset: 4px; }
/* a computer: the list and the reading pane side by side */
@media (min-width: 1024px) {
  #cm-root .cm-split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
  #cm-root .cm-lcol { position: sticky; top: 76px; max-height: calc(100dvh - 96px); overflow-y: auto; border-radius: var(--r-card); }
  #cm-root .cm-pane { min-width: 0; }
  #cm-root .cm-pick { padding: 80px 16px; }
}
#cm-root .cm-fromrow { display: grid; gap: 4px; margin: 0 0 4px; } #cm-root .cm-fromv { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-field); background: var(--ui-fill); overflow-wrap: anywhere; }
#cm-root .cm-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-field); background: var(--ds-warn-bg); color: var(--ds-warn-ink); }

/* ---------- Plan in 60 Seconds: Home's card (public/couple.js qpCard; the sheet styles itself in public/quickplan.js) ---------- */
#app .qp-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center; margin: 0 0 16px; padding: 18px 18px 16px; border-radius: var(--r-card);
  color: #FFFFFF; background: radial-gradient(120% 140% at 100% 0%, rgba(227,161,74,.38), transparent 55%), linear-gradient(140deg, #4A2655, var(--ds-plum-deep)); }
#app .qp-card::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); pointer-events: none; }
#app .qp-cic { width: 44px; height: 44px; border-radius: 22%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #F3C98A; }
#app .qp-cic svg { width: 24px; height: 24px; }
#app .qp-card .qp-ct h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; color: #FFFFFF; }
#app .qp-card .qp-ct p { margin: 2px 0 0; font-size: .9375rem; color: rgba(255,255,255,.86); }
#app .qp-cb { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
html body #app .qp-card button.qp-go { background: #FFFFFF !important; color: var(--ds-plum) !important; min-height: 44px; padding: 10px 26px; font-size: 1rem; font-weight: 600; }
html body #app .qp-card button.qp-no { background: transparent !important; color: rgba(255,255,255,.9) !important; font-weight: 500; }
html[data-theme=dark] #app .qp-card { color: var(--ink); background: radial-gradient(120% 140% at 100% 0%, rgba(201,166,214,.22), transparent 55%), linear-gradient(140deg, #2C2C2E, #1C1C1E); }
html[data-theme=dark] #app .qp-card .qp-ct h2 { color: var(--ink); } html[data-theme=dark] #app .qp-card .qp-ct p { color: var(--ds-ink-2); }
html[data-theme=dark] #app .qp-cic { background: rgba(201,166,214,.16); color: var(--ds-gold-on-dark); }
html[data-theme=dark] body #app .qp-card button.qp-go { background: var(--ui-btn) !important; color: var(--ui-on-btn) !important; }
html[data-theme=dark] body #app .qp-card button.qp-no { color: var(--ui-tint) !important; }
@media (prefers-contrast: more) { #app .qp-card { box-shadow: inset 0 0 0 1px currentColor; } }

/* ---------- Tool lists on tablets and computers (public/tools.js table(): hotels, questions guests ask, Our People, the menu...) ----------
   Each row is a card of labeled fields that share the width the card really has (the tools column can be narrow on a wide window, next to the
   website's side panel or a browser panel), so no heading overlaps the next and no field is squeezed until its words are cut off. The first
   field (the row's name) and longer text take the full width; the rest sit as many to a line as fit; remove ends the row. Phones keep the
   one-line summary that opens as a sheet (above). */
@media (min-width: 601px) {
  html body #app .tw:has(> .cpl-tbl.tl-tbl) { overflow: visible; }
  html body #app .cpl-tbl.tl-tbl, html body #app .cpl-tbl.tl-tbl tbody { display: block; width: 100%; table-layout: auto; }
  html body #app .cpl-tbl.tl-tbl thead { display: none; }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 12px 14px; align-items: start; padding: 16px 18px; }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row] + tr[data-row] { border-top: 1px solid var(--line); }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row] > td { display: grid; gap: 4px; align-content: start; min-width: 0; width: auto; padding: 0; border: 0; white-space: normal; text-align: left; }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row] > td.tl-sum { display: none; }
  html body #app .cpl-tbl.tl-tbl td[data-l]::before, html body #app .cpl-tbl.tl-tbl td[data-l0]::before { content: attr(data-l); font: 500 .78rem/1.3 var(--sans); color: var(--mute); }
  html body #app .cpl-tbl.tl-tbl td[data-l0]::before { content: attr(data-l0); }
  html body #app .cpl-tbl.tl-tbl tbody tr[data-row] > td:first-child, html body #app .cpl-tbl.tl-tbl tbody tr[data-row] > td:has(> textarea), html body #app .cpl-tbl.tl-tbl tbody tr[data-row] > td.cpl-act { grid-column: 1 / -1; }
  html body #app .cpl-tbl.tl-tbl input:not([type=checkbox]), html body #app .cpl-tbl.tl-tbl select, html body #app .cpl-tbl.tl-tbl textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 44px; }
  html body #app .cpl-tbl.tl-tbl td:first-child input { min-width: 0; }
  html body #app .cpl-tbl.tl-tbl input[type=number] { width: 100%; }
  html body #app .cpl-tbl.tl-tbl .chk { min-height: 44px; }
  html body #app .cpl-tbl.tl-tbl td.cpl-act { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: -4px; }
  html body #app .cpl-tbl.tl-tbl td.cpl-act .sq { min-width: 44px; min-height: 44px; }
}

/* Tools: a section's heading is inset to line up with the words inside a card (a table, .tw) only when a card follows it. Over plain fields,
   words and buttons it starts where they start, so nothing looks out of line. Two rows of buttons never touch. */
html body #app #t-tools .sec > .eyebrow:not(:has(+ .tw)) { padding-left: 0; padding-right: 0; }
html body #app .row.wr + .row.wr { margin-top: 10px; }
/* A choice beside a button (Tone, Language) is never narrower than its words and its arrow */
html body #app .row.wr > select { min-width: 8.5rem; }

/* Tools: Recent and Plan in 60 Seconds are two groups, with the same space between them as between any two groups */
#t-tools .tl-recsec { margin-bottom: 20px; }

/* Menus (select): the words never run under the arrow. Room for the arrow on the right; a long choice ends in an ellipsis before it. */
html body #app select:not([multiple]):not([size]) { padding-right: 2.25rem; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* Phones and tablets: the small title that appears in the bar on scroll sits in the space left of the search, bell and menu buttons (centered
   there, cut with an ellipsis when long), and right of Back when the bar has one, so it never runs under a button. */
@media (max-width: 859px) {
  .ui-ctitle { left: 16px; right: 172px; transform: translateY(-40%); text-align: center; overflow: hidden; text-overflow: ellipsis; }
  html.ui-collapsed .ui-ctitle { transform: translateY(-50%); }
  html.ui-hasback .ui-ctitle { left: 112px; }
}

/* Choice chips (.ckp: which events a price covers, and the like): each as wide as its words, wrapping as whole chips, never a word cut in two */
html body #app .ckp { display: flex; flex-wrap: wrap; }
html body #app .ckp .chk { flex: 0 1 auto; max-width: 100%; }
html body #app .ckp .chk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* A label inside a card lines up with the card's own words: the card already has the side padding (the 16px inset is for a label above a group) */
html body #app .card > .eyebrow { padding-left: 0; padding-right: 0; }
/* Number tiles three across on a phone (.grid.three, .cpl-two): a one-word label (Performances, Anniversary, Documents) fits its tile, and a longer one wraps instead of being cut */
@media (max-width: 599px) {
  html body #app :is(.grid.three, .cpl-two) > .card > .eyebrow { font-size: .6875rem; letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; }
}

/* Compact controls keep their size and take a full 44px tap: an unseen area around each segment of the planner's sub-navigation and the
   designs' Light / Dark filter, a 44px "i" on the console, and a floor on the Logs chips and the website's Add to Calendar.
   (The Desk's pages stay one compact 36-40px segmented control on a phone: tests/tabbar.browser.mjs.) */
html body #app .subnav .seg > button, .dz .dz-tone > button { position: relative; }
html body #app .subnav .seg > button::after, .dz .dz-tone > button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
@media (max-width: 699px) { .own .oinfo-d > summary { width: 44px; height: 44px; margin: -12px -8px; } }
.own .olchips > button { min-width: 44px; }

/* The review question sits at the top of Home only: it never pushes the guest list, the budget or a tool down the screen */
html body #app main:has(> #t-home[hidden]) > .rtu-ask { display: none; }

/* The planner portal on a phone: the meeting-notes chips, the manual's link-to-this-section marks and the "why" under Messages History are 44px taps;
   a long address in a manual paragraph wraps instead of running off the screen */
@media (max-width: 699px) {
  html body #pp-main .mn-setup .chips button { min-height: 44px; }
  html body #pp-main .smn-anc { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px -8px -10px .25rem; }
  html body #pp-main .pm-why > summary { padding: 12px 0; }
}
.smn :is(p, li, dd) { overflow-wrap: break-word; }

/* Budget on a computer: an amount never breaks across two lines in the By Ceremony legend, and the By Vendor table's ten columns give the three
   money columns room for six figures and their headings (Estimate, Actual, Paid), with Add a Quote clear of the remove button */
html body #app .stk-l b { white-space: nowrap; flex: none; }
html body #app .stk-l span { min-width: 0; }
@media (min-width: 1180px) {
  html body #app #t-budget .cpl-bt th { font-size: .75rem; letter-spacing: .03em; padding-left: .45rem; padding-right: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #app #t-budget .cpl-bt th:nth-child(1) { width: 11.5%; } html body #app #t-budget .cpl-bt th:nth-child(2) { width: 11%; } html body #app #t-budget .cpl-bt th:nth-child(3) { width: 12.5%; }
  html body #app #t-budget .cpl-bt th:nth-child(4) { width: 11%; } html body #app #t-budget .cpl-bt th:nth-child(5) { width: 11.5%; } html body #app #t-budget .cpl-bt th:nth-child(n+6):nth-child(-n+8) { width: 8.5%; }
  html body #app #t-budget .cpl-bt td select { padding-left: .5rem !important; padding-right: 1.35rem !important; background-position: right .4rem center !important; }
  html body #app #t-budget .cpl-bt th:nth-child(9) { width: 11.5%; } html body #app #t-budget .cpl-bt th:nth-child(10) { width: 5%; }
  html body #app #t-budget .cpl-bt td :is(button, .btn):not(.sq) { padding-left: .55rem; padding-right: .55rem; font-size: .8125rem; white-space: normal; overflow-wrap: break-word; }
  html body #app #t-budget .cpl-bt td:last-child { padding-left: 0; padding-right: .3rem; text-align: right; }
  html body #app #t-budget .cpl-bt td input[inputmode], html body #app #t-budget .cpl-bt td input[type=number] { padding-left: .45rem; padding-right: .35rem; font-variant-numeric: tabular-nums; }
}

/* The console's What Happened feed: the time column fits a date ("Oct 26") as well as "19h", so it never runs into the dot beside it */
.own .ofeed li > a, .own .ofeed li > .ofr { grid-template-columns: 3.2rem 8px minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 699px) { .own .ofeed li > a, .own .ofeed li > .ofr { grid-template-columns: 3rem 8px minmax(6rem, 1fr) auto; } }
@media (max-width: 359px) { .own .ofeed li > a, .own .ofeed li > .ofr { grid-template-columns: 3rem 8px minmax(0, 1fr); } }
/* the portal's meeting-notes buttons (Record, Upload a Recording, Paste Notes) and Messages History's "why" are full 44px taps on a phone */
@media (max-width: 699px) { html body #pp-main #cl-mn button { min-height: 44px; } html body #pp-main .pm-why > summary { padding: 13px 0; } }

/* The console: numbers in tables, counts and times use the app's own font with even-width digits (the design system: tabular figures);
   the typewriter face stays for codes, addresses, setting names and raw log lines */
.own :is(td.n, th.n, .cnt, .ocnt, .ofn, .ofw, .oamt, .omini dd) { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* The console's small "more" lines (Add a Request, History, Notes, redeemed codes): the chevron every other fold uses, and a 44px tap */
.own details > summary.s { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--body); }
.own details > summary.s::-webkit-details-marker { display: none; }
.own details > summary.s::after { content: ""; display: inline-block; flex: none; box-sizing: border-box; width: 7px; height: 7px; margin: -3px 0 0 10px; border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); transition: transform .2s var(--ui-ease); }
.own details[open] > summary.s::after { transform: translateY(3px) rotate(225deg); }
@media (prefers-reduced-motion: reduce) { .own details > summary.s::after { transition: none; } }

/* ---------- The console on a computer (1024px and up): every page down the left, under its section's name ----------
   One sidebar replaces the two rows of tabs (the section row and the page row), so all of the console is in view at once and each page's
   count sits beside its name. The top bar keeps the logo, the search, the bell and the account. Below 1024px (a tablet, the Mac app's
   smallest window) the two rows stay; a phone keeps its bottom bar. owner.js sets body.oside and --ohd-h (the top bar's height). */
.osubs .osh { display: none; }
@media (min-width: 1024px) {
  body.own.oside { --oside-w: 208px; padding-left: var(--oside-w); }
  body.own.oside #o-main.owrap { padding-left: 24px; padding-right: 24px; }
  body.own.oside .ohd { margin-left: calc(-1 * var(--oside-w)); --ohp: 24px; grid-template-columns: auto minmax(0, 1fr); }
  body.own.oside .ohd > .owho { grid-column: 2; justify-self: end; }
  body.own.oside .ohd .osecs { display: none; }
  body.own.oside .ohd .osubs, body.own.oside .ohd .osubs.one { position: absolute; grid-area: auto; z-index: 30; left: 0; top: 100%; height: calc(100vh - var(--ohd-h, 64px)); height: calc(100dvh - var(--ohd-h, 64px)); width: var(--oside-w); box-sizing: border-box; margin: 0; padding: 4px 12px 24px; /* under the sticky top bar, which is what it is placed against (the bar's blur makes it the frame for anything fixed inside it) */
    display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-height: 0; max-width: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    border: 0; border-right: .5px solid var(--ui-sep); background: var(--ui-bg); -webkit-mask-image: none; mask-image: none; }
  body.own.oside .ohd .osubs .osh { display: block; flex: none; margin: 14px 12px 3px; font: 500 .75rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
  body.own.oside .ohd .osubs .osh:first-child { margin-top: 10px; }
  body.own.oside .ohd .osubs.ofold-admin a[data-sec="admin"]:not([aria-current="page"]) { display: none !important; }
  body.own.oside .ohd .osubs button.osh-t { display: flex !important; align-items: center; justify-content: flex-start; gap: 6px; width: calc(100% - 24px); min-height: 32px !important; padding: 0 !important; margin: 14px 12px 3px !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 6px; cursor: pointer; text-align: left; }
  body.own.oside .ohd .osubs button.osh-t::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
  body.own.oside .ohd .osubs button.osh-t[aria-expanded="true"]::after { transform: rotate(45deg); }
  body.own.oside .ohd .osubs button.osh-t:hover { color: var(--ink); }
  body.own.oside .ohd .osubs button.osh-t:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  body.own.oside .ohd .osubs a, body.own.oside .ohd .osubs a[hidden] { display: flex !important; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 12px;
    border: 0 !important; border-radius: 9px; background: none; color: var(--ink); font: 500 .875rem/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
  body.own.oside .ohd .osubs a:hover { background: var(--ui-fill); }
  body.own.oside .ohd .osubs a[aria-current=page] { background: var(--ui-tinted); color: var(--ui-tint); font-weight: 600; }
  body.own.oside .ohd .osubs a:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
  /* Ask Anything: the sidebar's first row, under Find, drawn like a page row */
  :root body.own.oside .ohd .osubs button.oaskb { display: flex; flex: none; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 36px !important; margin: 4px 0 8px; padding: 0 12px !important;
    border: 0 !important; border-radius: 9px !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; font: 500 .875rem/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
  body.own.oside .ohd .osubs button.oaskb:hover { background: var(--ui-fill) !important; }
  body.own.oside .ohd .osubs button.oaskb:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
  body.own.oside .ohd .osubs button.oaskb .oic { color: var(--ui-tint); }
  body.own.oside .ohd .osubs .ocnt { margin: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; line-height: 1; font-size: .75rem; }
  body.own.oside .ohd .osubs .ocnt:empty { display: none; }
}
@media (min-width: 1024px) and (prefers-contrast: more) { body.own.oside .ohd .osubs { border-right: 1px solid var(--ink); } }

/* The sidebar, laid out like a hosting dashboard's (owner.js): Find at the top, a line icon by every page, sections that fold under a
   chevron, a rule above System, and Collapse at the foot that narrows it to a rail of icons. Outside the computer layout none of it shows. */
.osubs :is(.ofind, .oic, .orail-b, .ofind-none) { display: none; }
/* Recent (public/side.js recents): the pages this person opens most, as the first group under Find; only in the computer's sidebar, never while
   finding or on the collapsed rail (the phone has it at the top of More) */
.osubs .orecent { display: none; }
@media (min-width: 1024px) {
  body.own.oside:not(.oside-rail) .ohd .osubs:not(.ofinding) .orecent:not([hidden]) { display: flex; flex: none; flex-direction: column; gap: 2px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: .5px solid var(--ui-sep); }
  body.own.oside .ohd .osubs .orecent .osh { margin-top: 4px; }
}
@media (min-width: 1024px) {
  body.own.oside { --oside-w: 240px; }
  body.own.oside .ohd .osubs { padding: 0 10px 0; gap: 2px; }
  /* Find: a field with the F key shown at its end; it stays at the top while the list scrolls */
  body.own.oside .ohd .osubs .ofind { display: flex; position: sticky; top: 0; z-index: 2; flex: none; align-items: center; gap: 8px; margin: 0 -10px 6px; padding: 12px 10px 8px; background: var(--ui-bg); }
  body.own.oside .ohd .osubs .ofind .oic { position: absolute; left: 22px; color: var(--mute); pointer-events: none; }
  body.own.oside .ohd .osubs .ofind input { flex: 1; min-width: 0; height: 36px; min-height: 36px; margin: 0; padding: 0 34px 0 36px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ui-field); color: var(--ink); font: 500 .875rem/1 var(--sans); box-shadow: none; -webkit-appearance: none; appearance: none; }
  body.own.oside .ohd .osubs .ofind input::-webkit-search-cancel-button { display: none; }
  body.own.oside .ohd .osubs .ofind input::placeholder { color: var(--mute); opacity: 1; }
  body.own.oside .ohd .osubs .ofind input:focus { outline: 2px solid var(--ui-tint); outline-offset: 0; border-color: transparent; }
  body.own.oside .ohd .osubs .ofind kbd { position: absolute; right: 18px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; border: .5px solid var(--ui-sep); border-radius: 5px; background: var(--ui-group); color: var(--mute); font: 600 .6875rem/1 var(--sans); pointer-events: none; }
  body.own.oside .ohd .osubs .ofind:focus-within kbd { display: none; }
  /* a page: its icon, its name, its count */
  body.own.oside .ohd .osubs .oic { display: inline-flex; flex: none; order: -1; width: 18px; height: 18px; color: var(--mute); }
  body.own.oside .ohd .osubs .oic svg { width: 100%; height: 100%; }
  body.own.oside .ohd .osubs a, body.own.oside .ohd .osubs a[hidden] { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--mute); }
  body.own.oside .ohd .osubs a:hover { color: var(--ink); }
  body.own.oside .ohd .osubs a:hover .oic { color: var(--ink); }
  body.own.oside .ohd .osubs a[aria-current=page] { background: var(--ui-fill); color: var(--ink); }
  body.own.oside .ohd .osubs a[aria-current=page] .oic { color: var(--ui-tint); }
  body.own.oside .ohd .osubs a .ocnt { margin-left: auto; }
  /* a section's name folds its pages; System sits under a rule, apart from the everyday pages */
  body.own.oside .ohd .osubs button.osh-t { justify-content: space-between; width: calc(100% - 20px); margin: 6px 10px 0 !important; color: var(--mute); }
  body.own.oside .ohd .osubs button.osh-t::after { transform: rotate(45deg); margin-right: 3px; }
  body.own.oside .ohd .osubs button.osh-t[aria-expanded="false"]::after { transform: rotate(-45deg); }
  body.own.oside .ohd .osubs .osh[data-sec="admin"] { position: relative; margin-top: 22px !important; }
  body.own.oside .ohd .osubs .osh[data-sec="admin"]::before { content: ''; position: absolute; left: -10px; right: -10px; top: -11px; border-top: .5px solid var(--ui-sep); }
  body.own.oside .ohd .osubs .ofind + .osh { margin-top: 2px !important; }
  body.own.oside .ohd .osubs a.ofolded:not([aria-current=page]) { display: none !important; }
  /* finding: every match shows, folded or not; the rest step aside */
  body.own.oside .ohd .osubs.ofinding a.ofolded { display: flex !important; }
  body.own.oside .ohd .osubs a.omiss, body.own.oside .ohd .osubs.ofinding a.omiss, body.own.oside .ohd .osubs .osh.omiss { display: none !important; }
  body.own.oside .ohd .osubs .ofind-none:not([hidden]) { display: block; margin: 8px 10px; color: var(--mute); font-size: .875rem; }
  /* Collapse, at the foot */
  body.own.oside .ohd .osubs .orail-b { display: flex; position: sticky; bottom: 0; z-index: 2; flex: none; align-items: center; justify-content: flex-start; gap: 10px; margin: auto -10px 0; padding: 0 20px; min-height: 48px; border: 0; border-top: .5px solid var(--ui-sep); border-radius: 0; background: var(--ui-bg); color: var(--mute); font: 500 .875rem/1 var(--sans); cursor: pointer; box-shadow: none; text-align: left; }
  body.own.oside .ohd .osubs .orail-b:hover { color: var(--ink); }
  body.own.oside .ohd .osubs .orail-b:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
  body.own.oside .ohd .osubs .orail-b .oic { order: 0; }
  body.own.oside .ohd .osubs .ofind-none + .orail-b, body.own.oside .ohd .osubs a + .orail-b { margin-top: auto; }
  /* the rail: icons only, each name in its tooltip; a count becomes a small badge on the icon */
  body.own.oside.oside-rail { --oside-w: 64px; }
  body.own.oside.oside-rail .ohd .osubs { padding: 0 8px; scrollbar-width: none; }
  body.own.oside.oside-rail .ohd .osubs .ofind, body.own.oside.oside-rail .ohd .osubs .osh, body.own.oside.oside-rail .ohd .osubs .ofind-none { display: none !important; }
  body.own.oside.oside-rail .ohd .osubs a { position: relative; justify-content: center; padding: 0; min-height: 40px; font-size: 0; }
  body.own.oside.oside-rail .ohd .osubs a:first-of-type { margin-top: 12px; }
  body.own.oside.oside-rail .ohd .osubs a .oic { width: 20px; height: 20px; }
  body.own.oside.oside-rail .ohd .osubs a .ocnt { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .625rem; }
  body.own.oside.oside-rail .ohd .osubs a.ofolded:not([aria-current=page]) { display: flex !important; }
  body.own.oside.oside-rail .ohd .osubs .orail-b { justify-content: center; padding: 0; margin: auto -8px 0; font-size: 0; }
  body.own.oside.oside-rail .ohd .osubs .orail-b .oic { transform: scaleX(-1); }
}

/* beside the sidebar on a laptop the wide lists (Weddings, Email) keep every column in view: a little less space between columns */
@media (min-width: 1024px) and (max-width: 1439px) { body.own.oside .otable :is(th, td) { padding-left: .35rem; padding-right: .35rem; } }

/* The console on a wide screen: the page starts right beside the sidebar and grows with the window up to 1560px, in place of a 1200px column
   centered in the space that is left (which left a wide empty band between the sidebar and the page on a big monitor) */
@media (min-width: 1024px) { body.own.oside #o-main.owrap { max-width: 1560px; margin-left: 0; margin-right: auto; } }
/* a card that holds a list (Today, Destination Interest): its other lines keep the card's side padding, like its heading */
html body #o-main .ocard:has(> .otodo) > :is(p, h3, h4) { padding-left: 16px; padding-right: 16px; }

/* ---------- The planner portal on a computer (1024px and up): the same sidebar as the console ----------
   Every page down the left in groups (the work, Business, Account, Support), each count beside its name, in place of the row of tabs.
   Below 1024px the row of tabs stays (the business tools are on Home's tiles there); a phone keeps its bottom bar. partner.js sets body.pp-side
   and writes the group names (.pp-sh) and the business tools' own lines (.pp-sd). */
#pp-tabs .pp-sh, #pp-tabs .pp-sd { display: none; }
@media (min-width: 1024px) {
  body.pp-side:not(.pp-landing):not(.pp-signin):not(.pp-embed) { --ppside-w: 208px; padding-left: var(--ppside-w); }
  body.pp-side:not(.pp-landing):not(.pp-signin):not(.pp-embed) .pp-wrap { max-width: 1320px; margin-left: 0; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  body.pp-side nav.sptb#pp-tabs:not([hidden]) { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--ppside-w); box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: calc(var(--sa-t, 0px) + 14px) 12px 24px; border: 0; border-right: .5px solid var(--ui-sep); background: var(--ui-bg); }
  body.pp-side nav.sptb#pp-tabs .sptb-row { display: flex; flex-direction: column; align-items: stretch; gap: 1px; max-width: none; margin: 0; padding: 0; }
  body.pp-side nav.sptb#pp-tabs .pp-sh { display: block; flex: none; margin: 14px 12px 3px; font: 500 .75rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
  body.pp-side nav.sptb#pp-tabs a, body.pp-side nav.sptb#pp-tabs a.pp-ovf, body.pp-side nav.sptb#pp-tabs a.pp-sd { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 0 12px;
    border: 0; border-radius: 9px; background: none; color: var(--ink); font: 500 .875rem/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; text-decoration: none; }
  body.pp-side nav.sptb#pp-tabs :is(a.pp-ph, button.pp-ph, [data-tb=more]) { display: none; }
  body.pp-side nav.sptb#pp-tabs a:hover { background: var(--ui-fill); }
  body.pp-side nav.sptb#pp-tabs a[aria-current=page] { background: var(--sptb-pill, var(--ui-tinted)); color: var(--sptb-ic, var(--ui-tint)); font-weight: 600; } /* the planner's own brand color when Branding has one, as on the phone's bar */
  body.pp-side nav.sptb#pp-tabs a:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
  body.pp-side nav.sptb#pp-tabs .sptb-n { display: inline-flex; position: static; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; box-shadow: none; font: 600 .75rem/1 var(--sans); font-variant-numeric: tabular-nums; }
  body.pp-side nav.sptb#pp-tabs .sptb-n:empty:not(.dot) { display: none; }
  body.pp-side nav.sptb#pp-tabs .sptb-n.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; }
}
@media (min-width: 1024px) and (prefers-contrast: more) { body.pp-side nav.sptb#pp-tabs:not([hidden]) { border-right: 1px solid var(--ink); } }
/* The portal's sidebar, as the console's (public/side.js): Find at the top (press F), a line icon by every page, the groups fold under a chevron,
   Collapse at the foot narrows it to a rail of icons. None of it shows below 1024px (the row of tabs, the phone's bar). */
#pp-tabs :is(.ofind, .orail-b, .ofind-none) { display: none; }
@media (min-width: 1024px) {
  body.pp-side:not(.pp-landing):not(.pp-signin):not(.pp-embed) { --ppside-w: 240px; }
  body.pp-side nav.sptb#pp-tabs:not([hidden]) { display: flex; flex-direction: column; padding: var(--sa-t, 0px) 10px 0; }
  body.pp-side nav.sptb#pp-tabs .sptb-row { flex: 1 0 auto; gap: 2px; }
  body.pp-side nav.sptb#pp-tabs .ofind { display: flex; position: sticky; top: 0; z-index: 2; flex: none; align-items: center; margin: 0 -10px 6px; padding: 12px 10px 8px; background: var(--ui-bg); }
  body.pp-side nav.sptb#pp-tabs .ofind .oic { position: absolute; left: 22px; display: inline-flex; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
  body.pp-side nav.sptb#pp-tabs .ofind .oic svg { display: block; width: 100%; height: 100%; }
  body.pp-side nav.sptb#pp-tabs .ofind input { flex: 1; min-width: 0; height: 36px; margin: 0; padding: 0 34px 0 36px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ui-field); color: var(--ink); font: 500 .875rem/1 var(--sans); box-shadow: none; -webkit-appearance: none; appearance: none; }
  body.pp-side nav.sptb#pp-tabs .ofind input::-webkit-search-cancel-button { display: none; }
  body.pp-side nav.sptb#pp-tabs .ofind input::placeholder { color: var(--mute); opacity: 1; }
  body.pp-side nav.sptb#pp-tabs .ofind input:focus { outline: 2px solid var(--ui-tint); outline-offset: 0; border-color: transparent; }
  body.pp-side nav.sptb#pp-tabs .ofind kbd { position: absolute; right: 18px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; border: .5px solid var(--ui-sep); border-radius: 5px; background: var(--ui-group); color: var(--mute); font: 600 .6875rem/1 var(--sans); pointer-events: none; }
  body.pp-side nav.sptb#pp-tabs .ofind:focus-within kbd { display: none; }
  /* a page: its icon, its name, its count */
  body.pp-side nav.sptb#pp-tabs a, body.pp-side nav.sptb#pp-tabs a.pp-ovf, body.pp-side nav.sptb#pp-tabs a.pp-sd { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--mute); }
  body.pp-side nav.sptb#pp-tabs a svg { display: block; flex: none; width: 18px; height: 18px; color: var(--mute); }
  body.pp-side nav.sptb#pp-tabs a svg path { stroke-width: 1.6; }
  body.pp-side nav.sptb#pp-tabs a .sptb-l { max-height: none; overflow: visible; font: inherit; color: inherit; }
  body.pp-side nav.sptb#pp-tabs a:hover, body.pp-side nav.sptb#pp-tabs a:hover svg { color: var(--ink); }
  body.pp-side nav.sptb#pp-tabs a[aria-current=page] { background: var(--ui-fill); color: var(--ink); }
  body.pp-side nav.sptb#pp-tabs a[aria-current=page] svg { color: var(--sptb-ic, var(--ui-tint)); }
  body.pp-side nav.sptb#pp-tabs a .sptb-n { margin-left: auto; }
  /* a group's name folds its pages */
  body.pp-side nav.sptb#pp-tabs button.pp-sh { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 20px); margin: 6px 10px 0; padding: 0; border: 0; border-radius: 6px; background: none; box-shadow: none; cursor: pointer; text-align: left; font: 500 .75rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
  body.pp-side nav.sptb#pp-tabs button.pp-sh::after { content: ''; width: 6px; height: 6px; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
  body.pp-side nav.sptb#pp-tabs button.pp-sh[aria-expanded="false"]::after { transform: rotate(-45deg); }
  body.pp-side nav.sptb#pp-tabs button.pp-sh:hover { color: var(--ink); }
  body.pp-side nav.sptb#pp-tabs button.pp-sh:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: 2px; }
  body.pp-side nav.sptb#pp-tabs a.ofolded:not([aria-current=page]) { display: none; }
  body.pp-side nav.sptb#pp-tabs .ofinding a.ofolded { display: flex; }
  body.pp-side nav.sptb#pp-tabs :is(a.omiss, .pp-sh.omiss) { display: none; }
  body.pp-side nav.sptb#pp-tabs .ofind-none:not([hidden]) { display: block; margin: 8px 10px; color: var(--mute); font-size: .875rem; }
  /* Collapse, at the foot */
  body.pp-side nav.sptb#pp-tabs .orail-b { display: flex; position: sticky; bottom: 0; z-index: 2; flex: none; align-items: center; justify-content: flex-start; gap: 10px; width: auto; margin: auto -10px 0; padding: 0 20px; min-height: 48px; border: 0; border-top: .5px solid var(--ui-sep); border-radius: 0; background: var(--ui-bg); color: var(--mute); font: 500 .875rem/1 var(--sans); cursor: pointer; box-shadow: none; }
  body.pp-side nav.sptb#pp-tabs .orail-b .oic { display: inline-flex; width: 18px; height: 18px; }
  body.pp-side nav.sptb#pp-tabs .orail-b .oic svg { display: block; width: 100%; height: 100%; }
  body.pp-side nav.sptb#pp-tabs .orail-b:hover { color: var(--ink); }
  body.pp-side nav.sptb#pp-tabs .orail-b:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
  /* the rail: icons only, each name in its tooltip; a count becomes a small badge on the icon */
  body.pp-side.pp-rail:not(.pp-landing):not(.pp-signin):not(.pp-embed) { --ppside-w: 64px; }
  body.pp-side.pp-rail nav.sptb#pp-tabs:not([hidden]) { padding: var(--sa-t, 0px) 8px 0; scrollbar-width: none; }
  body.pp-side.pp-rail nav.sptb#pp-tabs :is(.ofind, .pp-sh, .ofind-none, .sptb-l) { display: none !important; }
  body.pp-side.pp-rail nav.sptb#pp-tabs a { position: relative; justify-content: center; padding: 0; min-height: 40px; }
  body.pp-side.pp-rail nav.sptb#pp-tabs a:first-of-type { margin-top: 12px; }
  body.pp-side.pp-rail nav.sptb#pp-tabs a svg { width: 20px; height: 20px; }
  body.pp-side.pp-rail nav.sptb#pp-tabs a .sptb-n { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .625rem; }
  body.pp-side.pp-rail nav.sptb#pp-tabs a.ofolded:not([aria-current=page]) { display: flex; }
  body.pp-side.pp-rail nav.sptb#pp-tabs .orail-b { justify-content: center; padding: 0; margin: auto -8px 0; font-size: 0; }
  body.pp-side.pp-rail nav.sptb#pp-tabs .orail-b .oic { transform: scaleX(-1); }
}
/* More on a phone: every page as the sidebar lists them, a plain list with line icons, the counts and the open page in a soft pill */
.pp-sheet .pp-grp.pp-flat { display: grid; gap: 2px; margin-top: 6px; background: none; border: 0; border-radius: 0; overflow: visible; }
.pp-sheet .pp-grp-h + .pp-grp.pp-flat { margin-top: 0; }
.pp-sheet .pp-flat .pp-li { min-height: 48px; padding: 0 12px; border-radius: 10px; box-shadow: none; }
.pp-sheet .pp-flat .pp-li + .pp-li { box-shadow: none; }
.pp-sheet .pp-flat .pp-li svg { color: var(--mute); }
.pp-sheet .pp-flat .pp-li:hover, .pp-sheet .pp-flat .pp-li[aria-current=page] { background: var(--ui-fill); }
.pp-sheet .pp-flat .pp-li[aria-current=page] { font-weight: 600; }
.pp-sheet .pp-flat .pp-li[aria-current=page] svg { color: var(--sptb-ic, var(--ui-tint)); }
.pp-sheet .pp-flat .pp-li-n { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 600 .75rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.pp-sheet .pp-grp-h { margin: 18px 12px 4px; }

/* Easier to read on a phone (the owner approved the before and after): Home, the Guest List and the guest's RSVP page. Sizes and layout only. */

/* ---- Home */
html body #app :is(.hm, .tiles) .hm-tile .hm-ts { font: 400 .875rem/1.35 var(--sans) !important; }   /* the line under each tile name: 13px to 14px, still one line */
html body #app .hm-hero .hk { letter-spacing: .06em; }

/* ---- Guest List */
@media (max-width: 859px) {
  html body #app #t-guests .cpl-tbl td.cpl-gn > .mute.s { text-wrap: pretty; }
  html body #app #t-guests .cpl-gst { font-weight: 600; font-size: .875rem; padding: 5px 10px; border-radius: 999px; background: rgba(120,110,100,.12); }   /* the reply as a badge on its own tint */
  html body #app #t-guests .cpl-gst.g { background: var(--green-bg, #E9F2EC); }
  html body #app #t-guests .cpl-gst.y { background: #FAF0E0; }
  html body #app #t-guests .cpl-gst.r { background: #FAE9E7; }
  [data-theme=dark] body #app #t-guests .cpl-gst { background: rgba(118,118,128,.24); }
  [data-theme=dark] body #app #t-guests .cpl-gst.g { background: #16291D; }
  [data-theme=dark] body #app #t-guests .cpl-gst.y { background: #33290F; }
  [data-theme=dark] body #app #t-guests .cpl-gst.r { background: #3A1D1B; }
}

/* ---- The guest's RSVP page: nothing a guest must read is under 15px */
body.rv #rvf label.f, body.rv #rvstf label.f, body.rv .rvqf legend { font-size: .9375rem; color: var(--body, #1E1B18); }
body.rv .rvev > p.mute.s { font-size: .9375rem; line-height: 1.45; color: var(--mute); }
body.rv .rvst > span { font-size: .9375rem; }
body.rv .rvlinks .rvdir, body.rv .rvlinks button.rvcal { font-size: .9375rem; }
body.rv .rvseg span { font-size: .9375rem; white-space: nowrap; padding-inline: .3rem; letter-spacing: -.01em; }   /* "Joyfully yes" stays on one line */
html.tr-on body.rv .rvseg span { white-space: normal; }   /* translated (public/translate.js): a longer answer wraps inside its button, never over the next one */
body.rv .rvseg input:checked + span::before { margin-right: .3rem; }
body.rv .rvk { font-size: .8125rem; letter-spacing: .14em; }
body.rv .rvp { font-size: .875rem; }
body.rv .rvdl { font-size: 1.0625rem; font-weight: 600; }
body.rv .rvall { border-color: transparent; background: rgba(17,17,17,.07); }                 /* a quiet second button: Send My RSVP is the one dark button */
[data-theme=dark] body.rv .rvall { background: rgba(201,163,217,.16); border-color: transparent; }
body.rv .rvev h3 { font-size: 1.5rem; }

/* ---------- Budget: Split and Payments (public/couple.js splitPanel, whoPaysCard; the math in public/split.js) ---------- */
#app #t-budget .cpl-spbtn { display: block; max-width: 100%; margin-top: 4px; font-size: .875rem; text-align: left; white-space: normal; } /* under the payer, never beside it (#app .cpl-sl is inline-flex, which pushed it over the Status column) */
#t-budget .cpl-splab { display: block; font-weight: 500; }
#t-budget .cpl-pdsum { font-variant-numeric: tabular-nums; }
#t-budget tr.cpl-bx > td { padding: 0 12px 16px !important; background: transparent; text-align: left; }
#t-budget .cpl-split, #t-budget .cpl-split :is(p, h3) { text-align: left; }
#t-budget .cpl-split { display: grid; gap: 10px; max-width: 760px; padding: 16px; border-radius: var(--r-card); background: var(--ui-fill); }
#t-budget .cpl-sph, #t-budget .cpl-whop .cpl-sph { margin: 6px 0 0; font: 600 .9375rem/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
#t-budget .cpl-split .seg { justify-self: start; }
#t-budget .cpl-spparts, #t-budget .cpl-pays { display: grid; gap: 8px; }
#t-budget .cpl-sprow, #t-budget .cpl-payrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#t-budget .cpl-sprow select { flex: 1 1 12rem; min-width: 0; }
#t-budget .cpl-payrow input[type=date] { flex: 0 1 10rem; }
#t-budget .cpl-payrow select { flex: 1 1 10rem; min-width: 0; }
#t-budget .cpl-payrow input[data-sx=pay-how] { flex: 1 1 10rem; min-width: 0; }
#t-budget .cpl-spv { display: inline-flex; align-items: center; gap: 4px; flex: 0 1 8rem; }
#t-budget .cpl-spv input { width: 100%; min-width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
#t-budget .cpl-split :is(input, select) { background-color: var(--card) !important; min-height: 44px; }
#t-budget .cpl-split > button:not(.lnk) { justify-self: start; }
#t-budget .cpl-split .warn, #t-budget .cpl-whop .warn { color: var(--ds-warn-ink); }
#t-budget .cpl-settle { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
#t-budget .cpl-settle li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
#t-budget .cpl-settle .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
  html body #app #t-budget .cpl-bt tr.cpl-bx { display: block; padding: 0 0 12px !important; }
  html body #app #t-budget .cpl-bt tr.cpl-bx::before { display: none; }
  html body #app #t-budget .cpl-bt tr.cpl-bx > td:first-child { display: block !important; min-height: 0; padding: 0 !important; }
  #t-budget .cpl-split { padding: 12px; }
  /* a split part: who, then the share, then remove, on one line */
  #t-budget .cpl-sprow { flex-wrap: nowrap; }
  #t-budget .cpl-sprow select { flex: 1 1 0; }
  #t-budget .cpl-sprow .cpl-spv { flex: 0 0 5.5rem; }
  #t-budget .cpl-sprow .cpl-spv input { min-width: 0; }
  /* a payment: date and amount, then who and how, remove at the end of the first line */
  #t-budget .cpl-payrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "at amt del" "who who who" "how how how"; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  #t-budget .cpl-payrow > input[type=date] { grid-area: at; min-width: 0; }
  #t-budget .cpl-payrow > .cpl-spv { grid-area: amt; }
  #t-budget .cpl-payrow > .cpl-spv input { min-width: 0; }
  #t-budget .cpl-payrow > select { grid-area: who; }
  #t-budget .cpl-payrow > input[data-sx=pay-how] { grid-area: how; }
  #t-budget .cpl-payrow > button { grid-area: del; }
}

/* ===== Budget: Who Pays and a line's Split and Payments, as grouped lists (public/couple.js whoPaysCard, splitPanel) =====
   Who Pays: one row per person, their share on the right in the body font, a thin bar (the share's size, filled by what is paid) and
   "paid / to go" under it; Settle Up as "From → To" with the amount at the end. The split panel: one rounded group per list (who and how
   much; the payments), thin lines between rows, $ and % inside their fields, a quiet × that keeps its 48px target, and the paid bar. */
html body #t-budget .cpl-whop { padding: 4px 16px 12px; }
html body #t-budget .wp-list { list-style: none; margin: 0; padding: 0; }
html body #t-budget .wp-row { display: grid; gap: 6px; padding: 12px 0; }
html body #t-budget .wp-row + .wp-row { border-top: 1px solid var(--line); }
html body #t-budget .wp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html body #t-budget .wp-name { font: 500 1rem/1.3 var(--sans); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
html body #t-budget :is(.wp-amt, .cpl-settle .n) { font: 600 1rem/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
html body #t-budget .wp-bar { display: block; height: 6px; border-radius: 999px; background: var(--ui-fill); overflow: hidden; }
html body #t-budget .wp-bar > i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--accent) 30%, transparent); transition: width .5s var(--ease, ease); }
html body #t-budget .wp-bar > i > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
html body #t-budget .wp-sub { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }
html body #t-budget .wp-done { color: var(--ds-ok-ink, var(--mute)); font-weight: 600; }
html body #t-budget .wp-settle { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
html body #t-budget .wp-settle .cpl-settle { margin: 2px 0; gap: 0; }
html body #t-budget .wp-settle .cpl-settle li { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ui-fill); }
html body #t-budget .wp-settle .cpl-settle li + li { margin-top: 6px; }
html body #t-budget .wp-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; font-size: .9375rem; color: var(--ink); }
html body #t-budget .wp-who b { font-weight: 600; }
html body #t-budget .wp-pays { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read aloud ("pays"); the arrow shows it */
html body #t-budget .wp-arr { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
html body #t-budget .cpl-whop .cpl-acts { margin-top: 8px !important; }

html body #t-budget .cpl-split { gap: 12px; }
html body #t-budget .cpl-split .cpl-grp { display: block; gap: 0; background: var(--card); border-radius: 12px; overflow: hidden; }
html body #t-budget .cpl-grp > .row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; padding: 6px 4px 6px 12px; border-bottom: 0; }
html body #t-budget .cpl-grp > .row + .row, html body #t-budget .cpl-grp > .cpl-addrow { border-top: 1px solid var(--line); }
html body #t-budget .cpl-grp :is(input, select) { background-color: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 44px; padding-left: 0; padding-right: 4px; }
html body #t-budget .cpl-grp select { flex: 1 1 0; min-width: 0; font-weight: 500; }
html body #t-budget .cpl-grp :is(input, select):focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; border-radius: 8px; }
html body #t-budget .cpl-spv { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; padding: 0 10px; border-radius: 10px; background: var(--ui-fill); }
html body #t-budget .cpl-spv input { width: 5.5rem; min-width: 0; padding: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
html body #t-budget .cpl-aff { color: var(--mute); font-weight: 500; font-size: .9375rem; }
html body #t-budget .cpl-pre .cpl-aff { order: -1; }
html body #t-budget .cpl-pre input { width: 7rem; }
html body #t-budget button.cpl-del, html body #app #t-budget button.cpl-del { flex: none; display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mute); }
html body #t-budget button.cpl-del:hover { background: var(--ui-fill); color: var(--ink); }
html body #t-budget button.cpl-del svg { width: 18px; height: 18px; }
html body #t-budget .cpl-grp > button.cpl-addrow { display: flex; width: 100%; justify-content: flex-start; min-height: 48px; padding: 0 12px; border-radius: 0; background: transparent; color: var(--ui-tint); font-weight: 600; text-decoration: none; }
html body #t-budget .cpl-grp > button.cpl-addrow:hover { background: var(--ui-fill); }
html body #t-budget .cpl-shares { margin: 0; }
html body #t-budget .cpl-shares b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
html body #t-budget .cpl-sep { color: var(--mute); }
html body #t-budget .cpl-payrow input[type=date] { flex: 0 0 9.5rem; }
html body #t-budget .cpl-payrow input[data-sx=pay-how] { flex: 1 1 8rem; min-width: 0; color: var(--ink); }
html body #t-budget .cpl-payrow select { flex: 1 1 9rem; }
html body #t-budget .cpl-split > button.cpl-addpay { justify-self: start; }
html body #t-budget .cpl-paid { display: grid; gap: 6px; }
html body #t-budget .cpl-paid p { margin: 0; }
html body #t-budget .cpl-paid b { color: var(--ink); font-weight: 600; }
html body #t-budget .cpl-pbar { display: block; height: 6px; border-radius: 999px; background: var(--card); overflow: hidden; }
html body #t-budget .cpl-pbar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s var(--ease, ease); }
/* phones: a payment is two lines in its row (who and how much; when and how), the × at the end of the first */
@media (max-width: 859px) {
  html body #t-budget .cpl-pays > .cpl-payrow { display: grid; grid-template-columns: minmax(0, 1fr) 7.25rem 44px; grid-template-areas: "who amt del" "at how how"; column-gap: 8px; row-gap: 0; padding: 6px 4px 8px 12px; border-bottom: 0; }
  html body #t-budget .cpl-pays > .cpl-payrow > select { grid-area: who; }
  html body #t-budget .cpl-pays > .cpl-payrow > .cpl-spv { grid-area: amt; }
  html body #t-budget .cpl-pays > .cpl-payrow > input[type=date] { grid-area: at; color: var(--mute); font-size: .875rem; min-height: 36px; }
  html body #t-budget .cpl-pays > .cpl-payrow > input[data-sx=pay-how] { grid-area: how; font-size: .875rem; min-height: 36px; }
  html body #t-budget .cpl-pays > .cpl-payrow > button { grid-area: del; }
  html body #t-budget .cpl-pays > .cpl-payrow > .cpl-spv { min-width: 0; }
  html body #t-budget .cpl-pre input { width: 100%; flex: 1 1 0; }
  html body #t-budget .cpl-spparts > .cpl-sprow .cpl-spv input { width: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { html body #t-budget :is(.wp-bar > i, .cpl-pbar i) { transition: none; } }

/* ===== Console: links that act are buttons =====
   One small pill, the console's own secondary button, for every action link in a console page (a chart's "see more", Show As a Table, the links under a page, the
   back links, a fold's summary), so nothing reads as a bare text link next to the buttons. Names in a table or a list stay links. */
html body.own .opanel :is(a.vmore, .vtab > summary, p.s:not(.mute) > a:only-child, p.s:not(.mute):has(> a + a) > a, a.obback, .oback > a, li a.s, .onote p > a:only-child, details:not([class]) > summary.s) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: 44px; min-height: 44px !important; padding: 0 16px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink) !important; box-shadow: none;
  font: 500 .84rem/1.2 var(--sans); letter-spacing: 0; text-decoration: none !important; white-space: nowrap; cursor: pointer; list-style: none;
  transition: background-color .15s, transform .1s ease-out; -webkit-tap-highlight-color: transparent; }
html body.own .opanel :is(.vtab > summary, details:not([class]) > summary.s)::-webkit-details-marker { display: none; }
html body.own .opanel :is(a.vmore, .vtab > summary, p.s:not(.mute) > a, a.obback, .oback > a, li a.s, .onote p > a:only-child, details:not([class]) > summary.s):active { transform: scale(.97); }
html body.own .opanel :is(a.vmore, .vtab > summary, p.s:not(.mute) > a, a.obback, .oback > a, li a.s, .onote p > a:only-child, details:not([class]) > summary.s):focus-visible { outline: 2px solid var(--ui-tint); outline-offset: 2px; }
@media (hover: hover) { html body.own .opanel :is(a.vmore, .vtab > summary, p.s:not(.mute) > a:only-child, p.s:not(.mute):has(> a + a) > a, a.obback, .oback > a, li a.s, .onote p > a:only-child, details:not([class]) > summary.s):hover { background: var(--soft); } }
/* the back link of a sub-page shows on a computer only, on the sub-page only (as before) */
html body.own .opanel a.obback { display: none !important; }
@media (min-width: 700px) { html body.own .opanel:not([data-sub=""]) a.obback { display: inline-flex !important; margin: 0 0 12px; } }
/* the row of links under a page: pills side by side, no separators between them */
html body.own .opanel p.s:not(.mute):has(> a + a) { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; margin: 16px 0 0; }
html body.own .opanel p.s:not(.mute):has(> a:only-child) { margin: 16px 0 0; }
html body.own .opanel :is(a.obback, .oback:not(.odk-x) > a)::before { content: ''; width: 7px; height: 7px; border-left: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
html body.own .opanel li a.s { display: flex !important; width: max-content !important; max-width: 100%; margin-top: 8px; } /* under its line, never mid-sentence */
/* a chart card: its table toggle and its "see more" share one row at the foot */
html body.own .vcard { display: flex; flex-direction: column; }
html body.own .vcard > :first-child { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
html body.own .vcard .vtab { margin-top: auto; padding-top: 12px; }
html body.own .vcard > a.vmore { align-self: flex-start; margin-top: 8px; }
html body.own .vcard { position: relative; }
html body.own .vcard:has(.vtab:not([open])) > a.vmore { position: absolute; right: var(--vcard-pad, 16px); bottom: var(--vcard-pad, 14px); margin: 0; }
html body.own .oovhd > a.vmore { margin: 0; }
/* a pill at the end of a line of text (Destination Interest's Open Room Blocks, a Room Blocks row's View and Download): it sits beside the words, a gap away */
html body.own .opanel .odest .odest-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
html body.own .opanel .odest .odest-open > b { margin-right: -6px; }
html body.own .opanel :is(p, dd, [id=o-aiout]) > a.vmore { vertical-align: middle; margin: 4px 0 4px 8px; }
html body.own .opanel :is(p.odest-open, dd) > a.vmore:first-child, html body.own .opanel p.odest-open > a.vmore { margin-left: 0; }
/* drawn marks, no text glyphs: a table's sort arrow, a chip's remove, the review stars */
body.own .oarr { display: inline-block; width: 0; height: 0; margin-left: 5px; border: 4px solid transparent; vertical-align: middle; opacity: 0; }
body.own .oarr.up { border-bottom-color: currentColor; border-top-width: 0; opacity: 1; }
body.own .oarr.dn { border-top-color: currentColor; border-bottom-width: 0; opacity: 1; }
html body.own button.ox { position: relative; width: 36px; min-width: 36px; padding: 0 !important; }
html body.own button.ox::before, html body.own button.ox::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.75px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
html body.own button.ox::after { transform: translate(-50%, -50%) rotate(-45deg); }
body.own .ostars { display: inline-flex; gap: 1px; vertical-align: -2px; letter-spacing: 0; }
body.own .ostars > span { display: inline-flex; gap: 1px; }
body.own .oib-back::before { content: ''; width: 11px; height: 11px; border-left: 2.25px solid currentColor; border-bottom: 2.25px solid currentColor; border-radius: 1px; transform: rotate(45deg); margin-left: 6px; }

/* ---------- 31. Home on a phone: Next Up is a grouped list under two tiles ----------
   Guests and Budget, the two places with a meter, stay tiles side by side at the top (the couple's Home; one alone takes the row).
   Every other place is a row (icon, name, its one or two lines, a chevron), the way Settings and the console's Overview list theirs.
   The portal has neither tile, so it is all rows. Tablets and computers keep the grid. */
@media (max-width: 639px) {
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; border-radius: var(--r-group); overflow: hidden; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:is([data-tile=guests], [data-tile=budget]) { order: -1; margin-bottom: 12px; border-radius: var(--r-group); }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid:not(:has(> [data-tile=budget])) > [data-tile=guests], html body :is(#app #t-home, #pp-main) .hm > .hm-grid:not(:has(> [data-tile=guests])) > [data-tile=budget] { grid-column: 1 / -1; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; grid-column: 1 / -1;
    min-height: 60px !important; height: auto !important; aspect-ratio: auto !important; padding: 10px 38px 10px 16px !important; border-radius: 0 !important; background: var(--card) !important; text-align: left !important; scale: none !important; transform: none !important; filter: none !important; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])):first-child, html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:is([data-tile=guests], [data-tile=budget]) + .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) { border-radius: var(--r-group) var(--r-group) 0 0 !important; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget]))::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: var(--ui-sep); }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])):first-child::before, html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:is([data-tile=guests], [data-tile=budget]) + .hm-tile:not(:is([data-tile=guests], [data-tile=budget]))::before { content: none; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) > svg { width: 18px; height: 18px; padding: 6px; border-radius: 8px; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) .hm-tx { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; width: auto; min-width: 0; gap: 1px; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) .hm-tt { font: 500 1.0625rem/1.25 var(--sans) !important; letter-spacing: -.01em !important; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])) .hm-bar { flex: none; width: 44px; margin: 0; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget]))::after { top: 50%; right: 16px; margin: -4px 0 0; width: 7px; height: 7px; border: solid var(--ph); border-width: 2px 2px 0 0; flex: none; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])):is(:active, [data-press]) { background: color-mix(in srgb, var(--ink) 6%, var(--card)) !important; }
  html body :is(#app #t-home, #pp-main) .hm > .hm-grid > .hm-tile:not(:is([data-tile=guests], [data-tile=budget])):focus-visible { outline-offset: -3px; }
}
/* a computer: every tile's name sits on the same line, whatever is under it */
@media (min-width: 1024px) { #app .hm .hm-grid > .hm-tile:not([data-c=up]) { align-content: start; } }
/* the bell's panel: Mark All Read is a full 44px target on a touch screen, like the close beside it */
@media (pointer: coarse) { .npanel .nhead button:not(.sq) { min-height: 44px; } }

/* ---------- 32. Five screens, quieter ----------
   Seating Chart: one action row (Auto-Seat Everyone, Add a Table, More); the rest opens from More on a phone (tools.js, .sp-more). */
@media (max-width: 859px) {
  html body #app .st-acts { flex-wrap: wrap; align-items: center; gap: 8px; }
  html body #app .st-acts > button.p { flex: 1 1 auto; min-width: 0; }
  html body #app .st-acts > .lnk { flex: none; }
  html body #app .st-acts .sp-mbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--ui-fill); color: var(--ink); font: 500 .9375rem/1 var(--sans); }
  html body #app .st-acts .sp-more:not(.open) .sp-mm { display: none; }
  html body #app .st-acts .sp-more.open .sp-mm { display: grid; }
  html body #app .st-acts .sp-more.open .sp-mm button { justify-content: flex-start; width: 100%; padding: 0 12px; text-align: left; color: var(--ink) !important; font-weight: 400; }
  /* Guest List: Add a Guest beside the search is the quiet gray circle; the round + in the tab bar stays the one filled button */
  html body #app #t-guests .cpl-filt .cpl-addtop { background: var(--ui-fill) !important; color: var(--ui-tint) !important; box-shadow: none !important; }
  /* with a fourth filter, it and Select share the second row (three to a row, Select at the right) */
  html body #app #t-guests .cpl-fchips:has(select:nth-of-type(4)) select { flex: 0 0 33.333% !important; }
  html body #app #t-guests .cpl-fchips:has(select:nth-of-type(4)) .cpl-fsel { flex: 1 1 auto; justify-content: flex-end; min-height: 44px !important; padding: 0 8px !important; text-align: right; }
  /* Vendor Directory: the search on top, category and city side by side under it */
  html body #app form[data-xform=vsearch] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html body #app form[data-xform=vsearch] > :is(label:first-child, button) { grid-column: 1 / -1; }
}
/* Search: a result's mark is a small plain glyph, not a tile on every row */
.sp-pal .pal-ic { width: 24px; height: 24px; border-radius: 0; background: none; color: var(--mute); }
.sp-pal .pal-ic svg { width: 18px; height: 18px; }
/* Calendar, Upcoming: every row sits on the card surface; its kind is the bar at the left and the color of its time, not a filled row */
#app .cal-rows .cal-row { background: var(--card); }
/* the vendor's listing on a phone: Appearance sits at the right of its line, clear of the round Help button at the left */
@media (max-width: 859px) { .vs-foot .lnk[data-theme-cycle] { margin-left: auto; } }

/* More on a phone (console-phone.js): every page listed as the sidebar lists them on a computer: a line icon, the name, the count; the open
   page in a soft pill; System under a rule. The bottom bar and the search in the top bar stay as they are. */
dialog.onav .onav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
dialog.onav .onav-list a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink); font: 500 1rem/1.25 var(--sans); letter-spacing: -.01em; text-decoration: none; }
dialog.onav .onav-list a:active, dialog.onav .onav-list a:hover { background: var(--ui-fill); }
dialog.onav .onav-list a[aria-current=page] { background: var(--ui-fill); font-weight: 600; }
dialog.onav .onav-list a:focus-visible { outline: 2px solid var(--ui-tint); outline-offset: -2px; }
dialog.onav .onav-list .oic { display: inline-flex; flex: none; width: 22px; height: 22px; color: var(--mute); }
dialog.onav .onav-list .oic svg { width: 100%; height: 100%; }
dialog.onav .onav-list a[aria-current=page] .oic { color: var(--ui-tint); }
dialog.onav .onav-list .ogt { flex: 1; min-width: 0; }
dialog.onav .onav-list .ocnt { margin-left: auto; }
dialog.onav .onav-sec { margin: 18px 12px 4px; font-size: .75rem; letter-spacing: .06em; }
dialog.onav .onav-sec[data-sys] { margin-top: 28px; padding-top: 16px; border-top: .5px solid var(--ui-sep); margin-left: 0; margin-right: 0; padding-left: 12px; }
/* the Desk beside the 240px sidebar: the queue a little narrower, so an open ticket keeps 600px and more at 1280 */
@media (min-width: 1100px) { body.own.oside .odk { grid-template-columns: minmax(320px, min(470px, 28vw)) minmax(0, 1fr); } }
dialog.onav:focus{outline:none} /* the sheet itself takes focus on a touch screen (console-phone.js menu): no ring around the whole sheet */

/* Ask Anything outside the sidebar: a pill at the start of the tablet's page row; hidden where AI is off */
:root body.own:not(.oside) .ohd .osubs button.oaskb { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 32px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important;
  background: var(--ui-fill) !important; box-shadow: none !important; color: var(--ink) !important; font: 500 13px/1 var(--sans); }
body.own .ohd .osubs button.oaskb .oic svg { width: 18px; height: 18px; display: block; }
body.no-ai .ohd .osubs button.oaskb, body.no-ai dialog.onav .onav-ask { display: none !important; }
dialog.onav .onav-ask { margin-top: 12px; }
dialog.onav .onav-ask .oic { color: var(--ui-tint); }

/* ---------- 4b. Actions are buttons, never underlined text (DESIGN.md, Components, Buttons) ----------
   Every action written as text (.lnk, and the one-off classes pages grew: Change, Resend Code, Use Another Account, Add to Calendar,
   Cancel, Give as a Gift, See More...) is a small tinted pill: plum at 12% with plum text (dark: lavender on lavender at 14%), 44px on
   touch, never underlined, on hover either. A list of places (the traditions, Set Up For, vendor kinds) is a row of outline chips.
   Text links stay only where they sit inside a sentence (a consent or legal line, a note such as the site's Preview), in the site's
   footer, and a name in a list or table, which is not underlined (its row is what says it opens): hover tints it instead. */
html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .lnk-gift, .mk-link, .own .vmore, .pp-lsite a, a.pp-lteam) {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px !important; margin: 0;
  border: 0 !important; border-radius: 999px !important; background: var(--ui-tinted) !important; color: var(--ui-tint) !important;
  font: 600 .9375rem/1.2 inherit; letter-spacing: 0; text-decoration: none !important; box-shadow: none !important; cursor: pointer; white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere;
  transition: background-color .15s, transform .1s; }
html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .lnk-gift, .mk-link, .own .vmore, .pp-lsite a, a.pp-lteam):hover { background: color-mix(in srgb, var(--ui-tint) 20%, transparent) !important; text-decoration: none !important; }
html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .lnk-gift, .own .vmore, .pp-lsite a, a.pp-lteam):active { transform: scale(.97); }
html body :is(button.lnk, .sgn-link, .blnk):disabled { opacity: .45; cursor: default; transform: none; }
@media (pointer: coarse) { html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .lnk-gift, .own .vmore, .pp-lsite a, a.pp-lteam) { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .lnk-gift, .own .vmore):active { transform: none; } }
html body .mk-link { min-height: 32px; padding: 0 12px !important; font-size: .82rem; cursor: default; } /* a sample button drawn inside a feature card */
html body #app .cpl-gbar button.lnk { background: rgba(255,255,255,.16) !important; color: var(--on-ink, #fff) !important; } /* on the plum guest bar */
/* Remove and Delete (.lnk-del): the same pill in red, confirmed in a dialog as before (DESIGN.md: destructive = red) */
html body :is(button.lnk, a.lnk).lnk-del { background: color-mix(in srgb, var(--red, #B42318) 10%, transparent) !important; color: var(--red, #B42318) !important; }
html body :is(button.lnk, a.lnk).lnk-del:hover { background: color-mix(in srgb, var(--red, #B42318) 18%, transparent) !important; }
/* a name or title that opens its row stays text (no pill, no underline): the console's row titles */
html body :is(.orow h3 .lnk, .lnk.lnk-name, .otable td:first-child button.lnk:not(.lnk-del)) { display: inline !important; min-height: 0; padding: 0 !important; background: none !important; border-radius: 0 !important; color: var(--ink) !important; font: inherit; white-space: normal; }
html body :is(.orow h3 .lnk, .lnk.lnk-name, .otable td:first-child button.lnk:not(.lnk-del)):hover { background: none !important; color: var(--ui-tint) !important; }
/* the extra actions under a console card on a phone: pills too, not underlined text */
@media (max-width: 699px) { html body .own .opact > :is(button, a.btn):not(.p):nth-child(n+3) { background: var(--ui-tinted) !important; color: var(--ui-tint) !important; border: 0 !important; border-radius: 999px; padding: 0 16px; text-decoration: none !important; min-height: 44px; } }
/* lists of places: outline chips */
html body :is(.tchips a, .madefor a, .dirband .chips a) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px !important; border-radius: 999px !important; text-decoration: none !important; border: 1px solid var(--line-strong, rgba(60,50,40,.22)) !important; background: transparent; }
html body .tchips a { border-color: rgba(255,255,255,.4) !important; }
html body :is(.tchips a, .madefor a, .dirband .chips a):hover { background: color-mix(in srgb, currentColor 10%, transparent) !important; text-decoration: none !important; }
html body :is(.tchips, .madefor, .dirband .chips) { gap: 8px !important; }
/* names in lists: tinted on hover, never underlined */
html body :is(.otk h3 a, .ofeed li > a .ofl, .odcsat a, .inc-rt b, .olv li > a .olv-t b, .pro-wl b, .ld-card h3 a, a.pp-me, .dg-start, .rvdir, .cpl-next li button b, .cpl-addr-btn, .msign, .devgo) { text-decoration: none !important; }
html body :is(.otk h3 a, .ld-card h3 a, a.pp-me, .dg-start, .rvdir, .cpl-addr-btn, .msign):hover, html body :is(.ofeed li > a, .olv li > a, .inc-rt, .pro-wl, .cpl-next li button, .devlink):hover :is(.ofl, .olv-t b, b, .devgo) { color: var(--ui-tint) !important; text-decoration: none !important; }
/* the wedding website and the RSVP page (guests): the same pills, drawn in the couple's theme (its text color at 10%), never plum */
html body :is(.wlink:not(.wamx .wlink), .wlinkb, .rvdir, .rv .rvedit .lnk, .rvlinks .lnk) { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px !important; margin: .25rem .35rem 0 0;
  border: 0 !important; border-radius: 999px !important; background: color-mix(in srgb, currentColor 9%, transparent) !important; color: var(--text, var(--ink, #2B1433)) !important;
  font-weight: 600; font-size: .88rem; text-decoration: none !important; white-space: normal; max-width: 100%; overflow-wrap: anywhere; cursor: pointer; }
html body :is(.wlink:not(.wamx .wlink), .wlinkb, .rvdir, .rv .rvedit .lnk, .rvlinks .lnk):hover { background: color-mix(in srgb, currentColor 16%, transparent) !important; text-decoration: none !important; }
@media (pointer: coarse) { html body :is(.wlink:not(.wamx .wlink), .wlinkb, .rvdir, .rv .rvedit .lnk, .rvlinks .lnk) { min-height: 44px; } }
/* hidden stays hidden: the pills above set display with !important */
html body :is(button.lnk, a.lnk, .sgn-link, .blnk, .wlinkb, .wlink, .lnk-gift, .mk-link, .own .vmore, .pp-lsite a, a.pp-lteam, .rvdir, .tchips a, .madefor a, .dirband .chips a)[hidden] { display: none !important; }
/* rows of text actions were spaced for words; as pills they wrap with an 8px gap (Guests' Use in My Plan, Copy Caterer Counts, Export CSV) */
html body #app .cpl-acts { gap: 8px !important; }
@media (max-width: 859px) { html body #app #t-guests .cpl-acts { flex-wrap: wrap !important; justify-content: flex-start !important; } }
