/* ============================================================
   Alpha Portal 2.0 — the design system shared by the client
   portal, the gallery and the studio (admin) app.

   Apple-native idiom: SF Pro via the system stack, one accent
   (Ranger Red) spent on actions, Montserrat only for uppercase
   labels, grouped inset lists on a bone ground, glass bars and
   sheets, and slow Liquid Glass lens transitions between screens.
   Light and dark follow the device.
   ============================================================ */

:root {
  --bg: #f3f1ec; --surface: #ffffff; --surface-2: #f8f6f2; --ink: #151416; --ink-2: #6f6a64; --ink-3: #a39d95;
  --hair: rgba(21,20,22,.10); --hair-2: rgba(21,20,22,.18); --fill: rgba(21,20,22,.06); --fill-2: rgba(21,20,22,.11);
  --accent: #a8291f; --accent-ink: #ffffff; --accent-soft: rgba(168,41,31,.10);
  --gilt: #9a7638; --gilt-soft: rgba(185,143,78,.16);
  --ok: #2f9e6b; --ok-soft: rgba(47,158,107,.14); --warn: #b7801a; --warn-soft: rgba(201,138,30,.16);
  --zillow: #006AFF;
  --glass: rgba(243,241,236,.74); --glass-strong: rgba(250,249,246,.88); --glass-edge: rgba(255,255,255,.65);
  --shadow: 0 1px 2px rgba(21,20,22,.05), 0 10px 30px rgba(21,20,22,.07);
  --float: 0 2px 6px rgba(21,20,22,.10), 0 18px 40px rgba(21,20,22,.14);
  --scrim: linear-gradient(to top, rgba(0,0,0,.74) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 68%);
  --spec: rgba(255,255,255,.62); --spec-2: rgba(255,255,255,.18);
  --seg-thumb: #ffffff; --drop: rgba(255,255,255,.62); --grab: rgba(21,20,22,.28); --rim-cool: rgba(110,200,255,.16); --rim-warm: rgba(255,140,210,.12); --rim-a: .8;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --label: "Montserrat", var(--font);
  --ease: cubic-bezier(.32,.72,0,1);
  --press: .18s var(--ease);
  --lux: cubic-bezier(.42,0,.1,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1b1a1a; --surface-2: #262423; --ink: #f2efe9; --ink-2: rgba(242,239,233,.60); --ink-3: rgba(242,239,233,.36);
    --hair: rgba(242,239,233,.11); --hair-2: rgba(242,239,233,.20); --fill: rgba(242,239,233,.08); --fill-2: rgba(242,239,233,.14);
    --accent: #e35b50; --accent-ink: #ffffff; --accent-soft: rgba(227,91,80,.16);
    --gilt: #d9b47c; --gilt-soft: rgba(217,180,124,.14);
    --ok: #3fbf80; --ok-soft: rgba(63,191,128,.16); --warn: #e0a63a; --warn-soft: rgba(224,166,58,.16);
    --glass: rgba(10,10,10,.62); --glass-strong: rgba(18,18,18,.86); --glass-edge: rgba(255,255,255,.10);
    --shadow: none; --float: 0 10px 40px rgba(0,0,0,.6);
    --spec: rgba(255,255,255,.26); --spec-2: rgba(255,255,255,.08);
    --seg-thumb: rgba(242,239,233,.16); --drop: rgba(242,239,233,.14); --grab: rgba(242,239,233,.32); --rim-cool: rgba(110,200,255,.40); --rim-warm: rgba(255,140,210,.32); --rim-a: .95;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1b1a1a; --surface-2: #262423; --ink: #f2efe9; --ink-2: rgba(242,239,233,.60); --ink-3: rgba(242,239,233,.36);
  --hair: rgba(242,239,233,.11); --hair-2: rgba(242,239,233,.20); --fill: rgba(242,239,233,.08); --fill-2: rgba(242,239,233,.14);
  --accent: #e35b50; --accent-ink: #ffffff; --accent-soft: rgba(227,91,80,.16);
  --gilt: #d9b47c; --gilt-soft: rgba(217,180,124,.14);
  --ok: #3fbf80; --ok-soft: rgba(63,191,128,.16); --warn: #e0a63a; --warn-soft: rgba(224,166,58,.16);
  --glass: rgba(10,10,10,.62); --glass-strong: rgba(18,18,18,.86); --glass-edge: rgba(255,255,255,.10);
  --shadow: none; --float: 0 10px 40px rgba(0,0,0,.6);
  --spec: rgba(255,255,255,.26); --spec-2: rgba(255,255,255,.08);
  --seg-thumb: rgba(242,239,233,.16); --drop: rgba(242,239,233,.14); --grab: rgba(242,239,233,.32); --rim-cool: rgba(110,200,255,.40); --rim-warm: rgba(255,140,210,.32); --rim-a: .95;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent-soft); }

/* ===================== the app fills the window ===================== */
.app { position: fixed; inset: 0; background: var(--bg); color: var(--ink); overflow: hidden;
  --safe-top: max(10px, env(safe-area-inset-top)); --safe-bottom: max(18px, env(safe-area-inset-bottom)); --tab-h: 90px; --top-h: 48px; }
.app.wide { --safe-top: 0px; --safe-bottom: 0px; --tab-h: 0px; --top-h: 52px; }
.app.notabs { --tab-h: 0px; }
.nav { position: absolute; inset: 0; }
.wide.studio .nav { left: 240px; }
.wide.client .nav { left: 0; top: 60px; }
.wide.client.notabs .nav { top: 0; }

/* loading veil while the first payload arrives */
.boot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; z-index: 5; background: var(--bg); transition: opacity .5s var(--lux); }
.boot.gone { opacity: 0; pointer-events: none; }
.boot .mark { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--bg); display: grid; place-items: center; margin: 0 auto 14px; }
.boot .mark svg { width: 40px; height: 40px; }
.boot > div { text-align: center; }

/* ---- Liquid Glass transitions: the incoming screen lenses in from where you tapped;
        the outgoing one recedes behind the glass; popping runs the lens in reverse ---- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transform: scale(1); opacity: 1; filter: none; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 1.4s var(--lux), opacity 1.15s var(--lux), filter 1.25s var(--lux), visibility 0s linear 1.4s; will-change: auto; }
.screen.moving { will-change: transform, opacity, filter; }
.screen.pre { transform: scale(1.035); opacity: 0; filter: blur(22px); }
.screen.out { transform: scale(1.035); opacity: 0; filter: blur(22px); pointer-events: none; }
.screen.below { transform: scale(.985); opacity: .5; filter: blur(12px); pointer-events: none; visibility: hidden; }
.screen.fade { opacity: 0; transition: none; }
.screen.dark { background: #000; color: #fff; }

/* ---- the glass material: a refractive rim and a specular pool over a saturated blur ---- */
.lg { position: relative; -webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%); background: var(--glass); box-shadow: var(--float), inset 0 1px 0 var(--spec), inset 0 -1px 0 var(--spec-2); }
.lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: var(--rim-a);
  background: linear-gradient(118deg, var(--spec) 0%, rgba(255,255,255,.05) 30%, var(--rim-cool) 55%, var(--rim-warm) 78%, var(--spec) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(130% 90% at 18% -10%, var(--spec) 0%, rgba(255,255,255,0) 58%); opacity: .34; }
.lg > * { position: relative; z-index: 1; }
.btn, .row.tap, .pcard { transition: transform var(--press), filter .2s, background .2s; }
.tb:active, .btn:active, .pcard:active, .tour:active { filter: brightness(1.08) saturate(1.1); }

/* ===================== top bar ===================== */
.topbar { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--safe-top) + var(--top-h)); padding: var(--safe-top) 10px 0; display: flex; align-items: center; gap: 6px; z-index: 6; transition: background .6s var(--lux), box-shadow .6s var(--lux); }
.topbar .ttl { position: absolute; left: 112px; right: 112px; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: -.01em; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--lux), transform .6s var(--lux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; top: var(--safe-top); height: var(--top-h); line-height: var(--top-h); }
.wide .topbar { padding-left: 32px; padding-right: 32px; }
.wide .topbar .ttl { left: 160px; right: 160px; }
.wide.client .screen[data-root="1"] .topbar { display: none; }
.wide.client .screen[data-root="1"] .content { padding-top: 36px; }
.topbar .sp { flex: 1; }
.tb { height: 36px; min-width: 36px; padding: 0 10px; border: 0; background: var(--fill); color: var(--ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; font-weight: 500; white-space: nowrap; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 var(--spec), inset 0 0 0 .5px var(--glass-edge); transition: transform var(--press), filter .2s, background .35s var(--lux), color .35s var(--lux), box-shadow .35s var(--lux); text-decoration: none; }
.screen.dark .tb { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); }
.tb.back { padding-left: 6px; font-weight: 500; }
.tb.icon { padding: 0; width: 36px; }
.tb svg { width: 20px; height: 20px; }
.tb:active { transform: scale(.94); }
.tb.strong { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tb.busy { opacity: .6; pointer-events: none; }
.on-image .tb { background: rgba(0,0,0,.28); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28); }
.screen.collapsed .topbar { background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(200%); backdrop-filter: blur(24px) saturate(200%); box-shadow: 0 .5px 0 var(--hair), inset 0 -1px 0 var(--spec-2), inset 0 1px 0 var(--spec); }
.lt, .hero .hb { transition: opacity .3s var(--lux); }
.screen.collapsed .lt, .screen.collapsed .hero .hb { opacity: 0; }
.screen.collapsed .topbar .ttl { opacity: 1; transform: none; }
.screen.collapsed .on-image .tb { background: var(--fill); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--glass-edge); }

.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: calc(var(--safe-top) + var(--top-h)) 16px calc(var(--tab-h) + 20px); scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.wide .content { padding: calc(var(--safe-top) + var(--top-h)) 32px 48px; }
.wide .content > .inner { max-width: 1040px; margin: 0 auto; }
.eyebrow { font-family: var(--label); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 12px 0 0; }
.eyebrow.accent { color: var(--accent); }
.lt { font-size: 34px; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 8px 0 16px; text-wrap: balance; }
.wide .lt { font-size: 40px; margin: 8px 0 20px; }
.lt.md { font-size: 22px; margin-top: 0; }
.lt small { display: block; font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 4px; line-height: 1.35; }
h2.sec { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin: 24px 14px 8px; text-transform: none; }
h2.sec:first-child { margin-top: 4px; }
.lt + h2.sec { margin-top: 0; }
h2.sec .r { margin-left: auto; flex: none; color: var(--accent); font-weight: 500; cursor: pointer; text-align: right; }
h2.sec .r.dim { color: var(--ink-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* search capsule */
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--fill); color: var(--ink-3); font-size: 16px; margin: 0 0 16px; }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-3); }

/* segmented (iOS) */
.segc { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); padding: 2px; border-radius: 10px; margin: 0 0 16px; }
.segc button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.segc button.on { color: var(--ink); font-weight: 600; }
.segc .thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n)); background: var(--seg-thumb); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.16), inset 0 0 0 .5px var(--glass-edge); transition: transform .35s var(--ease); transform: translateX(calc(100% * var(--i))); }
.seg { display: inline-flex; background: var(--fill); padding: 2px; border-radius: 9px; gap: 1px; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.seg button.on { background: var(--seg-thumb); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14), inset 0 0 0 .5px var(--glass-edge); }

/* grouped lists */
.group { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 .5px var(--hair); overflow: hidden; margin: 0 0 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; position: relative; text-align: left; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; }
.row + .row::before, .row + .msg-row::before, .msg-row + .row::before, .msg-row + .msg-row::before { content: ""; position: absolute; left: 60px; right: 0; top: 0; height: .5px; background: var(--hair-2); }
.row.noicon + .row.noicon::before { left: 14px; }
.row:has(.thumb) + .row::before { left: 72px; }
.row.note { align-items: flex-start; }
.row.note .av { margin-top: 1px; }
.row.tap:active { background: var(--fill); }
.row .glyph { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--bg); background: var(--ink); }
.row .glyph svg { width: 19px; height: 19px; }
.row .glyph.red, .row .glyph.blue, .row .glyph.gilt, .row .glyph.ok, .row .glyph.warn, .row .glyph.grey { color: #fff; }
.row .glyph.red { background: var(--accent); } .row .glyph.blue { background: var(--zillow); } .row .glyph.gilt { background: var(--gilt); } .row .glyph.ok { background: var(--ok); } .row .glyph.warn { background: var(--warn); } .row .glyph.grey { background: var(--ink-3); }
.row .glyph.soft { background: var(--fill); color: var(--ink); }
.row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .txt b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .txt span.wrap { white-space: normal; }
/* a floor plan offered in more than one format: a small button per format */
.row.plan2 .fmts { flex: none; display: flex; gap: 6px; }
.row.plan2 .fmts .btn.sm { min-width: 52px; justify-content: center; }
.row.plan2 .txt b { white-space: normal; }   /* a long plan name wraps rather than hides on a narrow phone */
.row .txt em { font-style: normal; font-variant-numeric: tabular-nums; }
.row .txt em.late { color: var(--accent); font-weight: 500; }
.row .txt .sub-ic { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; color: var(--ink-3); }
.row .val .ck { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; flex: none; }
.row .val { font-size: 15px; color: var(--ink-2); flex: none; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.chev { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.row .thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.row .stripe { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.row .stripe.warn { background: var(--warn); } .row .stripe.ok { background: var(--ok); }
.row .txt b.danger { color: var(--accent); }
.row .switch { margin-left: auto; }
.row select.inline { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; color: var(--ink); }

.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--fill-2); letter-spacing: .02em; }
.av.big { width: 64px; height: 64px; font-size: 22px; }
.av.a { background: #e8d9c6; color: #5a3d17; } .av.b { background: #d5dfea; color: #23405c; } .av.c { background: #dfe6d5; color: #2e4a25; } .av.d { background: #ead6d6; color: #5c2323; }
.avs { display: flex; } .avs .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); width: 30px; height: 30px; font-size: 11px; } .avs .av:first-child { margin-left: 0; }

/* pills / status */
.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--label); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px calc(9px - .12em) 5px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.look { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.gilt { background: var(--gilt-soft); color: var(--gilt); }
.pill.blue { background: rgba(0,106,255,.12); color: var(--zillow); }
.pill.white { background: rgba(255,255,255,.92); color: #151416; }
.pill.white.t-look { color: #a8291f; } .pill.white.t-ok { color: #2f9e6b; } .pill.white.t-warn { color: #b7801a; }
.pill.onimg { background: rgba(0,0,0,.35); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pill svg { width: 11px; height: 11px; }
.pill.tint { color: var(--pf); background: var(--pb); }

/* buttons */
.btn { height: 50px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; width: 100%; white-space: nowrap; transition: transform var(--press), filter .2s, background .2s; text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.soft { background: var(--fill-2); color: var(--ink); }
.btn.sq { flex: 0 0 50px; padding: 0; }
.btn.ghost { background: none; color: var(--accent); }
.btn.danger { background: var(--fill-2); color: var(--accent); }
.btn.sm { height: 34px; width: auto; border-radius: 999px; font-size: 14px; padding: 0 12px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn:disabled, .btn.busy { opacity: .55; pointer-events: none; }
.actions { display: flex; gap: 10px; margin: 0 0 18px; }
.actions .btn { flex: 1; padding: 0 14px; min-width: 0; }
.actions.mt { margin: 10px 0 0; }
.card .actions { margin: 0; }
.card .actions .btn.sm { flex: 0 0 auto; }

/* cards */
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 .5px var(--hair); overflow: hidden; }
.card.note { padding: 16px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.card.pad { padding: 14px 16px; }
.hdr { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 14px; }
.hdr .txt { flex: 1; min-width: 0; }
.hdr .txt b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .txt span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fine { text-align: center; font-size: 12px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.4; }
.fine a { color: var(--accent); text-decoration: none; }
.pcard { display: block; text-align: left; border: 0; padding: 0; color: inherit; font: inherit; width: 100%; margin-bottom: 14px; transition: transform var(--press); text-decoration: none; }
.pcard:active { transform: scale(.985); }
.pcard .cov { position: relative; aspect-ratio: 16 / 10; background: var(--fill); }
.pcard .cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .cov.empty { background: linear-gradient(145deg, #34302c 0%, #151416 100%); display: grid; place-items: center; color: rgba(255,255,255,.28); }
.pcard .cov.empty > svg { width: 44px; height: 44px; }
.pcard .cov .ov { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; justify-content: space-between; }
.pcard .body { padding: 13px 14px; display: flex; align-items: center; gap: 12px; }
.pcard .body .txt { flex: 1; min-width: 0; }
.pcard .body b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .body .txt > span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .cov .ring b { color: #fff; }
.wide .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wide .cards .pcard { margin: 0; }

/* progress ring */
.ring { width: 30px; height: 30px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .bg { stroke: rgba(255,255,255,.28); } .ring .fg { stroke: #fff; stroke-linecap: round; }
.ring.inline .bg { stroke: var(--fill-2); } .ring.inline .fg { stroke: var(--ok); }
.ring.inline.look .fg { stroke: var(--accent); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; }
.ring b svg { width: 14px; height: 14px; stroke-width: 2.8; }
.ring.inline b { color: var(--ok); }

/* hero */
.hero { position: relative; margin: calc(-1 * (var(--safe-top) + var(--top-h))) -16px 16px; height: 340px; background: #111; }
.wide .hero { margin: calc(-1 * (var(--safe-top) + var(--top-h))) -32px 24px; height: 380px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.hero .hb { position: absolute; left: 16px; right: 16px; bottom: 20px; color: #fff; z-index: 1; }
.wide .hero .hb { left: 0; right: 0; max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.hero .hb h1 { font-size: 30px; font-weight: 700; letter-spacing: -.022em; margin: 8px 0 4px; line-height: 1.1; text-wrap: balance; }
.wide .hero .hb h1 { font-size: 40px; }
.hero .hb p { margin: 0; font-size: 15px; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* timeline stepper */
.steps { display: flex; align-items: flex-start; margin: 0; padding: 20px 14px 16px; gap: 0; }
.steps li { list-style: none; flex: 1; position: relative; text-align: center; font-size: 11px; color: var(--ink-2); padding-top: 18px; }
.steps li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--fill-2); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 9px; left: 50%; right: -50%; height: 2px; background: var(--fill-2); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink-2); } .steps li.done::before, .steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 600; } .steps li.now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-top { padding: 14px 14px 0; display: block; }
.status-top b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.status-top span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.wide .status-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wide .status-top span { margin-top: 0; }
.dvlist { padding: 4px 14px 12px; }
.dvlist div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-top: .5px solid var(--hair); }
.dvlist div span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* photo grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -16px; }
.wide .grid { grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; }
.grid button { position: relative; border: 0; padding: 0; background: var(--fill); aspect-ratio: 1; overflow: hidden; color: #fff; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease), border-radius .3s var(--ease), opacity .4s; }
.grid img.lazy { opacity: 0; }
.grid button:active img { transform: scale(.96); }
.grid .ck { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); background: rgba(0,0,0,.25); display: none; place-items: center; color: #fff; }
.grid .ck svg { width: 13px; height: 13px; }
.selecting .grid .ck { display: grid; }
.grid button.sel .ck { background: var(--accent); border-color: var(--accent); }
.grid button.sel img { transform: scale(.9); border-radius: 8px; }
.grid .st { position: absolute; left: 6px; top: 6px; }
.grid .st .pill { padding: 3px 7px; font-size: 10px; }
.grid .carb { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.grid .carb svg { width: 100%; height: 100%; }
.grid .play { position: absolute; inset: 0; display: grid; place-items: center; }
.grid .play i { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.grid .play svg { width: 20px; height: 20px; margin-left: 2px; }
.selbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 12px); z-index: 8; display: flex; gap: 10px; align-items: center; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--float), inset 0 0 0 .5px var(--glass-edge); transform: translateY(140%); transition: transform .45s var(--ease); }
.selbar b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selecting .selbar { transform: none; }
.wide .selbar { left: 50%; right: auto; width: max-content; min-width: 420px; bottom: 24px; transform: translate(-50%, 140%); gap: 16px; }
.wide .selecting .selbar { transform: translate(-50%, 0); }

/* viewer */
.viewer { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer::-webkit-scrollbar { display: none; }
.viewer figure { flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; position: relative; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer video { width: 100%; }
.viewer .vlock { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 80px); text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }
.vcap { position: absolute; z-index: 7; pointer-events: none; left: 16px; right: 16px; top: calc(var(--safe-top) + var(--top-h) + 8px); text-align: center; color: rgba(255,255,255,.7); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 14px); z-index: 8; display: flex; gap: 8px; }
.vbar .tb { flex: 1 1 auto; height: 44px; padding: 0 14px; gap: 6px; background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); font-weight: 600; border-radius: 999px; }
.vbar .tb svg { flex: none; }
.vbar .tb.icon { flex: 0 0 44px; width: 44px; padding: 0; }
.vbar .tb.ok { background: var(--ok); }
.wide .vbar { left: 50%; right: auto; transform: translateX(-50%); width: max-content; min-width: 420px; bottom: 24px; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: none; place-items: center; z-index: 7; }
.vnav svg { width: 22px; height: 22px; }
.vnav.prev { left: 16px; } .vnav.next { right: 16px; }
.wide .vnav { display: grid; }

/* film */
.player { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin: 8px 0 14px; box-shadow: var(--float); }
.wide .player { margin-top: 0; }
.player img, .player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player img { opacity: .92; }
.player video { object-fit: contain; }
.player .play { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s; cursor: pointer; }
.player .play i { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; }
.player .play svg { width: 28px; height: 28px; margin-left: 3px; }
.player .vtag { position: absolute; top: 12px; left: 12px; }
.player .lockmsg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }
.player.playing .play, .player.playing .vtag { display: none; }

/* zillow tour tile */
.tour { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 12px; row-gap: 10px; padding: 12px 14px 12px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 .5px var(--hair); border: 0; width: 100%; text-align: left; color: inherit; font: inherit; transition: transform var(--press); }
.tour:active { transform: scale(.985); }
.tour .zl { width: 88px; height: 52px; border-radius: 12px; background: var(--zillow); color: #fff; display: grid; place-items: center; }
.tour .zl svg { width: 60px; height: auto; }
.tour .txt { min-width: 0; }
.tour .txt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .txt span { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .url { grid-column: 1 / -1; display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.tour .cta { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.tour.copied .cta { background: var(--ok-soft); color: var(--ok); }
.tour.locked .zl { opacity: .5; } .tour.locked .cta { background: var(--fill); color: var(--ink-3); }

/* tab bar (floating capsule) */
.tabbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 6px); height: 64px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: var(--float), inset 0 0 0 .5px var(--glass-edge); display: flex; align-items: center; padding: 4px; z-index: 20; transition: transform .45s var(--ease), opacity .3s; }
.app:has(.screen:last-of-type:not(.out) .vbar) .tabbar, .app:has(.screen:last-of-type:not(.out).selecting) .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar button { flex: 1; height: 100%; border: 0; background: none; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2); font-size: 10px; letter-spacing: .01em; font-weight: 500; transition: color .55s var(--lux) .25s; position: relative; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--accent); background: none; }
.tabbar button .n { position: absolute; top: 8px; right: calc(50% - 22px); min-width: 16px; height: 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; padding: 0 4px; font-weight: 600; }
.tabbar .tab-glow { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--drop); box-shadow: inset 0 1px 0 var(--spec), inset 0 -1px 0 var(--spec-2), inset 0 0 0 .5px var(--glass-edge); transition: left .95s cubic-bezier(.3,1.12,.4,1), width .95s cubic-bezier(.3,1.12,.4,1); pointer-events: none; z-index: 0 !important; }
.tabbar .tab-glow.stretch { animation: liquid .95s var(--lux); }
@keyframes liquid { 0% { transform: scale(1, 1); } 45% { transform: scale(1.22, .94); } 100% { transform: scale(1, 1); } }
.wide .tabbar, .notabs .tabbar { display: none; }

/* desktop: client top nav */
.topnav { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; padding: 0 32px; gap: 12px; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 .5px 0 var(--hair); z-index: 30; }
.topnav .logo { margin-right: auto; display: flex; }
.topnav .logo svg { height: 26px; width: auto; color: var(--ink); display: block; }
.topnav .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; }
.topnav .seg button { padding: 6px 16px; }
.topnav .av { width: 32px; height: 32px; font-size: 12px; }
.notabs .topnav { display: none; }

/* desktop: studio sidebar */
.side { position: absolute; top: 0; left: 0; bottom: 0; width: 240px; background: var(--surface-2); box-shadow: .5px 0 0 var(--hair); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; }
.side .who svg { height: 24px; width: auto; color: var(--ink); flex: none; }
.side .who b { font-size: 13px; font-weight: 600; }
.side .who span { display: block; font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .who > span { min-width: 0; }
.side button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; }
.side button svg { width: 19px; height: 19px; color: var(--ink-2); }
.side button.on { background: var(--fill-2); } .side button.on svg { color: var(--accent); }
.side button .n { margin-left: auto; font-size: 11px; line-height: 14px; color: var(--ink-2); background: var(--fill); padding: 2px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.side button .n.hot { background: var(--accent); color: #fff; }
.side .grow { flex: 1; }
.side .foot { font-size: 11px; color: var(--ink-3); padding: 8px 10px; }
.notabs .side { display: none; }
.wide.studio.notabs .nav { left: 0; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.wide .stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow), 0 0 0 .5px var(--hair); display: flex; flex-direction: column; gap: 6px; min-height: 0; border: 0; text-align: left; color: inherit; font: inherit; }
.stat b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat.look b { color: var(--accent); }
.stat.warn b { color: var(--warn); }

/* two-column on desktop */
.wide .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wide .cols > * { min-width: 0; }
.datebox { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1; }
.datebox .d { font-family: var(--label); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.datebox .n { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card.inv { padding: 14px 16px; }
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv-head b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.inv-meta { font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.files { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; }
.wide .files { margin: 0; padding-left: 0; flex-wrap: wrap; overflow: visible; }
.files::-webkit-scrollbar { display: none; }
.files img, .files .add, .files .fx { flex: none; width: 96px; height: 72px; border-radius: 10px; object-fit: cover; }
.files .fx { position: relative; border: 0; padding: 0; background: var(--fill); overflow: hidden; cursor: pointer; }
.files .fx img { width: 100%; height: 100%; }
.files .fx.vid::after { content: "▶"; position: absolute; right: 6px; bottom: 4px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.files .fx.over { outline: 2px solid var(--accent); }
.files .add { display: grid; place-items: center; background: var(--fill); color: var(--ink-2); border: 0; }
.files .add svg { width: 22px; height: 22px; }
.files.drop { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 12px; }

/* form bits */
.field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--fill); font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.field input, .field select { flex: 1; border: 0; background: none; font: inherit; color: inherit; outline: none; min-width: 0; font-size: 16px; }
.field input::placeholder { color: var(--ink-3); }
.field svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.field .unit { font-size: 13px; color: var(--ink-3); }
.field.err { box-shadow: inset 0 0 0 1.5px var(--accent); }
.switch { flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); position: relative; transition: background .25s; border: 0; }
.switch::after { 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,.25); transition: transform .3s var(--ease); }
.switch.on { background: var(--ok); } .switch.on::after { transform: translateX(20px); }
.card.drop { padding: 28px 16px; text-align: center; border: 1.5px dashed var(--hair-2); box-shadow: none; background: var(--surface-2); margin-bottom: 12px; }
.card.drop .drop-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--fill); display: grid; place-items: center; margin: 0 auto 10px; }
.card.drop b { display: block; font-size: 15px; }
.card.drop span { font-size: 13px; color: var(--ink-2); }
textarea.note { width: 100%; min-height: 96px; border: 0; border-radius: 14px; background: var(--fill); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); resize: none; outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chips button { border: 0; background: var(--fill); color: var(--ink); height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chips button.on { background: var(--accent-soft); color: var(--accent); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.kv .field { height: 44px; font-size: 15px; margin: 0; }
.kv .field input { font-size: 15px; }
.kv .field.full { grid-column: 1 / -1; }
.linesum { display: flex; justify-content: space-between; font-size: 15px; padding: 10px 0; border-top: .5px solid var(--hair); }
.linesum b { font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink); font-size: 16px; }
.stepper b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

/* message threads */
.msg-row { display: flex; gap: 12px; padding: 12px 14px; position: relative; }
.msg-row .av { flex: none; }
.msg-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-row .txt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row .txt .on { font-size: 12px; color: var(--ink-3); }
.msg-row .txt p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.msg-row .txt .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.msg-row.us .txt b { color: var(--accent); }
.msg-row .val { align-self: flex-start; margin-top: 2px; flex: none; }
.composer { margin-top: 12px; }
.composer textarea.note { min-height: 84px; margin-bottom: 8px; }
.composer .actions { margin: 0; }

/* first sign-in: the disclosure a client signs once */
.terms { max-height: 260px; overflow-y: auto; padding: 14px 16px; border-radius: 14px; background: var(--fill); font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0 0 16px; }
.terms h5 { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 12px 0 4px; }
.terms h5:first-child { margin-top: 0; }
.terms p { margin: 0 0 6px; }
.agree { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fill); font-size: 13px; line-height: 1.4; color: var(--ink-2); margin: 12px 0 16px; text-align: left; font: inherit; font-size: 13px; width: 100%; border: 0; }
.agree .chk { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--hair-2); background: var(--surface); display: grid; place-items: center; color: #fff; margin-top: 1px; }
.agree.on .chk { background: var(--accent); border-color: var(--accent); }
.agree .chk svg { width: 14px; height: 14px; }
.gate { max-width: 440px; margin: 0 auto; padding-top: 8px; }
.gate h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 6px 0 8px; text-wrap: balance; }
.gate > p { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 0 0 16px; }
.gate .field { margin-bottom: 0; }

/* the studio looking through a client's eyes */
.viewas { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 78px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink); }
.viewas b { font-weight: 600; }
.viewas span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewas .btn.sm { width: auto; flex: none; }
.wide .viewas { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 640px; bottom: 24px; }

/* sheets */
.sheet-layer { position: absolute; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s linear .75s; }
.sheet-layer.open { visibility: visible; transition-delay: 0s; }
.sheet-layer:not(.open) .sheet { transition-duration: .75s, .6s; }
.sheet-layer:not(.open) .backdrop { transition-duration: .6s; }
.wide .sheet-layer:not(.open) .sheet { transition-duration: .7s, .55s, .6s; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.30); -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%); opacity: 0; transition: opacity .9s var(--lux); }
.open .backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--glass-strong); border-radius: 26px 26px 0 0; padding: 10px 20px calc(var(--safe-bottom) + 18px); transform: translateY(105%) scale(.98); filter: blur(8px); transition: transform 1.1s var(--lux), filter .9s var(--lux); max-height: 86%; overflow-y: auto; }
.sheet.lg { box-shadow: 0 -14px 50px rgba(0,0,0,.28), inset 0 1px 0 var(--spec); }
.sheet.lg::after { display: none; }
.sheet.lg::before { inset: 0 0 -2px; }
.open .sheet { transform: translateY(0) scale(1); filter: blur(0); }
.sheet .grab { width: 36px; height: 5px; border-radius: 999px; background: var(--grab); margin: 0 auto 14px; }
.sheet h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.sheet p.lead { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.sheet .group { box-shadow: 0 0 0 .5px var(--hair); background: var(--surface-2); margin-bottom: 0; }
.sheet .group + .group { margin-top: 12px; }
.sheet .btn { margin-top: 8px; }
.sheet :not(.btn) + .btn { margin-top: 16px; }
.sheet .actions { margin-top: 16px; }
.sheet .actions .btn { margin-top: 0; }
.sheet .field { margin-bottom: 0; }
.sheet .field + .field { margin-top: 8px; }
.sheet .fine { font-size: 13px; line-height: 1.3; margin-top: 12px; }
.sheet > :last-child { margin-bottom: 0; }
.sheet .amount { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
.sheet .amount.sm { font-size: 22px; margin: 8px 0 0; }
.sheet .lines { margin: 0; }
.sheet .lines div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; border-top: .5px solid var(--hair); }
.sheet .lines div span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sheet .card.note { text-align: left; }
.sheet textarea.note { margin-top: 12px; }
.wide .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 500px; border-radius: 20px; transform: translate(-50%, -46%) scale(.96); opacity: 0; filter: blur(10px); transition: transform 1s var(--lux), opacity .8s var(--lux), filter .9s var(--lux); padding: 18px 24px 22px; max-height: 84%; }
.wide .open .sheet { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); }
.wide .sheet .grab { display: none; }
.menu .row { min-height: 52px; }
.menu .row b { font-weight: 500; }

/* toast: the one notification vehicle */
.toast { position: absolute; top: calc(var(--safe-top) + 4px); left: 50%; transform: translate(-50%, -24px); opacity: 0; width: max-content; max-width: calc(100% - 32px); background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: var(--float), 0 0 0 1px var(--hair); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; z-index: 80; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.toast svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--accent); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.live { transform: translate(-50%, 0); opacity: 1; }
.wide.client .toast { top: 72px; }
.wide.studio .toast { top: calc(var(--top-h) + 12px); left: calc(50% + 120px); }

/* sign in */
.signin { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.signin .box { width: 100%; max-width: 360px; text-align: center; }
.signin .mark { width: 84px; height: 84px; border-radius: 22px; background: var(--ink); color: var(--bg); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: var(--float); }
.signin .mark svg { width: 52px; height: 52px; }
.signin h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 8px; }
.signin p { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 0 0 24px; text-wrap: balance; }
.signin .field { text-align: left; }
.signin .fine { margin: 16px 0 0; }
.signin .btn.ghost { height: 40px; font-size: 15px; margin-top: 8px; }

/* partner (retainer) home: months of content */
.month { margin: 0 0 8px; }
.month .mh { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; padding: 14px 2px 10px; text-align: left; }
.month .mh .mt { flex: 1; min-width: 0; }
.month .mh h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.month .mh .mt span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.month .mh .chev { transition: transform .3s var(--ease); }
.month.open .mh .chev { transform: rotate(90deg); }
.month .mb { display: none; }
.month.open .mb { display: block; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 8px; }
.wide .tiles { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 .5px var(--hair); overflow: hidden; }
.tile .cov { position: relative; aspect-ratio: 16 / 10; background: #111; display: block; cursor: pointer; }
.tile .cov img, .tile .cov video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cov video { object-fit: contain; background: #000; }
.tile .cov .st { position: absolute; left: 10px; top: 10px; }
.tile .cov .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tile .cov .play i { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35); }
.tile .cov .play svg { width: 24px; height: 24px; margin-left: 2px; }
.tile .cov.playing .play, .tile .cov.playing .st { display: none; }
.tile .cov .expand { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center; }
.tile .cov .expand svg { width: 16px; height: 16px; }
.tile .body { padding: 12px 14px 14px; }
.tile .body b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .body > span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tile .body .actions { margin: 12px 0 0; }
.tile .body .actions .btn { height: 40px; font-size: 15px; border-radius: 12px; }
.tile .body .revnote { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink-2); font-style: italic; }
.tile .body .okline { display: block; margin-top: 10px; font-size: 13px; color: var(--ok); font-weight: 500; }
.tile .revbox { display: none; margin-top: 10px; }
.tile.reving .revbox { display: block; }
/* a video with more than one cut: the switch sits under its name, the cover names the cut showing */
.tile .body .vswitch { margin-top: 10px; }
.tile .body .vswitch .segc { margin: 0; }
.tile .cov .vtag { position: absolute; right: 10px; top: 10px; }
.tile .cov.playing .vtag { display: none; }
.tile.reving .body > .actions { display: none; }
.meter { height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }

/* studio board rows */
.board-row .val { gap: 6px; }
.lbl { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; background: var(--lb, var(--fill)); color: var(--lf, var(--ink-2)); border: 0; font-family: inherit; }
.lbl.auto { box-shadow: inset 0 0 0 1px var(--lb, var(--hair-2)); background: none; color: var(--ink-2); }
.wide .wrapcols { column-count: 2; column-gap: 24px; }

/* the studio's picker: a small floating menu for label cells */
.pk { position: fixed; z-index: 90; background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-radius: 14px; box-shadow: var(--float), 0 0 0 .5px var(--hair); padding: 6px; max-height: 60vh; overflow-y: auto; min-width: 190px; }
.pk button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 9px; text-align: left; }
.pk button:hover, .pk button:focus { background: var(--fill); outline: none; }
.pk button .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.pk button .ck { margin-left: auto; color: var(--accent); }
.pk .sep { height: .5px; background: var(--hair-2); margin: 4px 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* address suggestions (address-autocomplete.js). Solid, not glass: the list
   floats over the form's own fields, and a blurred 88% surface still let the
   boxes and text underneath show through — the suggestions were unreadable. */
.addr-suggest { position: absolute; left: 0; right: 0; z-index: 60; background: var(--surface); border-radius: 12px; box-shadow: var(--float), 0 0 0 .5px var(--hair-2); max-height: 264px; overflow-y: auto; padding: 4px; }
.addr-opt { display: block; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; border-radius: 9px; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.addr-opt:hover, .addr-opt.on, .addr-opt.is-active, .addr-opt[aria-selected="true"] { background: var(--fill); }  /* .is-active is what the script sets for the arrow keys */
/* The field grid (.kv) is its own stacking layer, so the menu's z-index only
   counts inside it — the chips and cards after the grid painted straight over
   the open menu. While a menu is open its grid outranks everything below. */
.kv:has(.addr-suggest:not([hidden])) { z-index: 100; }
.field:has(> .addr-suggest:not([hidden])) { position: relative; z-index: 100; }
.addr-opt small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }

/* the first paint, before the payload arrives */
.boot .spin { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--fill-2); border-top-color: var(--ink-2); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the client's own selects: one tap at the top of the gallery */
.selectsbar { margin: 0 0 16px; }
.selectsbar .segc { margin: 0; }

/* the view-only share link for an agent's client */
.sharelink { padding:14px 16px; font-size:13px; line-height:1.45; word-break:break-all; -webkit-user-select:all; user-select:all; margin-bottom:12px }
