/* Version 3, card (D3). Loaded by templates/v3/base.html only when v3 is on. Every rule is scoped:
   under body.v3, or on a v3- class. followap.css is one global namespace; a bare class here can break today's pages.

   The People list and the client card of prototype v2.1 (Redesign_Prototype_v2.1.html), its rules ported one to one
   with the v3- prefix: .row is .v3-row, .hero is .v3-hero, .card is .v3-card. Colour and shape are followap.css's
   :root tokens; the motion tokens are core.css's. No new colour. */

/* ── the screen: the prototype's .screen and .wrap (until the shell's own main carries them, docs/13-v3/notes-card.md) */
body.v3 main.wrap:has(> .v3-screen){max-width:none;padding:calc(14px + env(safe-area-inset-top)) 18px calc(118px + env(safe-area-inset-bottom))}
body.v3 main.wrap:has(> .v3-screen.v3-cardscr){padding-top:0}
/* followap.css caps main's children at 1240px on the desk; the prototype's screen runs to its .wrap's 1640px (at 1920) */
body.v3 main.wrap > .v3-screen{max-width:none}
body.v3 .v3-screen{font-size:15px;line-height:1.45;letter-spacing:-.011em;color:var(--ink)}
body.v3 .v3-wrap{max-width:1640px;margin:0 auto}
body.v3 :where(.v3-screen, .v3-sheet) :where(button){background:none;border:0;cursor:pointer;text-align:inherit;font:inherit;color:inherit;letter-spacing:inherit;padding:0}
body.v3 :where(.v3-screen, .v3-sheet) :where(button:active){transform:none}
body.v3 :where(.v3-screen, .v3-sheet) :where(a){color:inherit;text-decoration:none}
body.v3 .v3-tnum{font-variant-numeric:tabular-nums}
body.v3 .v3-muted{color:var(--grey)}
body.v3 .v3-dim{color:var(--grey-d)}
body.v3 .v3-fine{font-size:12.5px;color:var(--grey);line-height:1.45}

/* ── the screen's head: the avatar (phone) and the title ─────────────────────────────────────────────────────────── */
body.v3 .v3-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
body.v3 .v3-hd .r{display:flex;gap:8px;align-items:center;margin-left:auto}
body.v3 .v3-me{width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--white);display:grid;place-items:center;font-weight:750;font-size:15px;flex:none}
body.v3 .v3-screen .v3-h1{font-size:32px;line-height:1.05;font-weight:800;letter-spacing:-.04em;margin-top:10px}

/* ── shared pieces (the prototype's .card, .pill, .chip, .st, .seg, .sw, .field, .kv, .tag, .link, .ico, .empty) ─── */
body.v3 .v3-card{background:var(--white);border-radius:var(--r);padding:18px;box-shadow:0 1px 0 var(--line-soft),0 10px 28px -22px color-mix(in srgb,var(--ink) 40%,transparent)}
body.v3 .v3-card h4{font-size:15px;font-weight:700;letter-spacing:-.015em;margin-bottom:10px;line-height:1.45}
body.v3 .v3-card+.v3-card{margin-top:10px}
body.v3 .v3-pill{height:40px;padding:0 16px;border-radius:99px;background:var(--ink);color:var(--white);font-weight:650;font-size:14.5px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:0;cursor:pointer;text-decoration:none}
body.v3 .v3-pill.light{background:var(--sunken);color:var(--ink)}
body.v3 .v3-pill.line{background:var(--white);color:var(--ink);border:1px solid var(--line)}
body.v3 .v3-pill.ghost{background:transparent;color:var(--grey-d);padding:0 10px}
body.v3 .v3-pill.green{background:var(--green);color:var(--ink)}
body.v3 .v3-pill.big{height:52px;font-size:16px;padding:0 22px}
body.v3 .v3-pill.sm{height:34px;font-size:13.5px;padding:0 12px}
body.v3 .v3-pill.full{width:100%}
body.v3 .v3-pill[disabled],body.v3 .v3-pill.busy{opacity:.45;pointer-events:none}
body.v3 .v3-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
body.v3 .v3-chips::-webkit-scrollbar{display:none}
body.v3 .v3-chips.wrapc{flex-wrap:wrap;overflow:visible}
body.v3 .v3-chip{height:34px;padding:0 13px;border-radius:99px;background:var(--white);border:1px solid var(--line);font-weight:600;font-size:13.5px;color:var(--ink);
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:none;cursor:pointer;line-height:1.45}
body.v3 .v3-chip .c{color:var(--grey);font-weight:550}
body.v3 .v3-chip.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
body.v3 .v3-chip.on .c{color:color-mix(in srgb,var(--white) 60%,transparent)}
body.v3 .v3-chip .dt{width:8px;height:8px;border-radius:50%;background:var(--c,var(--grey))}
body.v3 .v3-st{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:99px;font-size:12px;font-weight:650;
  background:var(--sunken);color:var(--grey-d);white-space:nowrap;--c:var(--grey)}
body.v3 .v3-st::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c)}
body.v3 .v3-st.amber{--c:var(--amber);background:color-mix(in srgb,var(--amber) 12%,var(--white));color:var(--ink)}
body.v3 .v3-st.green{--c:var(--green);background:color-mix(in srgb,var(--green) 14%,var(--white));color:var(--ink)}
body.v3 .v3-st.ink{--c:var(--ink)}
body.v3 .v3-ico{flex:none;width:40px;height:40px;border-radius:50%;background:var(--sunken);display:grid;place-items:center;color:var(--ink)}
body.v3 .v3-ico.g{background:color-mix(in srgb,var(--green) 18%,var(--white))}
body.v3 .v3-kv{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:14.5px}
body.v3 .v3-kv:first-of-type{border-top:0;padding-top:0}
body.v3 .v3-kv>span:first-child{color:var(--grey);flex:none;max-width:60%}
body.v3 .v3-kv>:last-child{text-align:right;min-width:0;overflow-wrap:anywhere}
body.v3 a.v3-kv{min-height:20px}
body.v3 .v3-tags{display:flex;flex-wrap:wrap;gap:6px}
body.v3 .v3-tag{height:30px;padding:0 12px;border-radius:99px;background:var(--sunken);font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
body.v3 .v3-tag .x{color:var(--grey);font-weight:600;display:inline-grid;place-items:center;min-width:24px;height:44px;margin:-7px -8px -7px -4px}   /* drawn in the 30px tag, tapped as 44px */
/* the switch: drawn 46x28 as the prototype's, tapped as 46x44 (the phone's 44px rule) */
body.v3 .v3-sw{position:relative;width:46px;height:44px;margin:-8px 0;background:none;flex:none;border:0;cursor:pointer;padding:0;transition:opacity var(--dur-fast)}
body.v3 .v3-sw::before{content:"";position:absolute;left:0;right:0;top:8px;height:28px;border-radius:14px;background:var(--never);transition:background var(--dur-fast)}
body.v3 .v3-sw::after{content:"";position:absolute;top:11px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--white);transition:transform var(--dur-base) var(--spring-bouncy);box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 25%,transparent)}
body.v3 .v3-sw.on::before{background:var(--green)}
body.v3 .v3-sw.on::after{transform:translateX(18px)}
body.v3 .v3-sw[disabled]{opacity:.45;cursor:default}
body.v3 .v3-field{width:100%;height:50px;border:1px solid var(--line);border-radius:14px;background:var(--sunken);padding:0 14px;font-size:16px;outline:0;color:var(--ink);box-shadow:none;font-family:inherit;letter-spacing:inherit}
body.v3 .v3-field:focus{border-color:var(--line);box-shadow:none}
body.v3 textarea.v3-field{height:auto;min-height:130px;padding:14px;line-height:1.45;resize:none;display:inline-block}
body.v3 select.v3-field{background-image:none;padding-right:14px}
body.v3 .v3-flabel{font-size:13px;font-weight:650;color:var(--grey-d);margin:14px 0 6px;display:block}
body.v3 .v3-link{display:inline-flex;align-items:center;gap:4px;font-weight:650;font-size:14.5px;margin-top:12px;color:var(--ink);cursor:pointer}
body.v3 .v3-empty{text-align:center;padding:26px 18px;color:var(--grey-d)}
body.v3 .v3-empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}
body.v3 .v3-seg{position:relative;display:grid;grid-template-columns:repeat(var(--n,4),1fr);background:color-mix(in srgb,var(--ink) 6%,transparent);border-radius:14px;padding:4px;height:44px}
body.v3 .v3-seg>button,body.v3 .v3-seg>a{position:relative;z-index:1;font-weight:650;font-size:14px;color:var(--grey-d);text-align:center;border-radius:10px;white-space:nowrap;
  display:grid;place-items:center;background:none;border:0;cursor:pointer;line-height:1.45}
body.v3 .v3-seg>.on{color:var(--ink)}
body.v3 .v3-seg-ind{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / var(--n,4));border-radius:10px;background:var(--white);
  box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 14%,transparent);will-change:transform}

/* ── People: search, the chips, the rows ─────────────────────────────────────────────────────────────────────────── */
body.v3 .v3-search{height:48px;border-radius:16px;background:var(--white);border:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 14px;margin-top:14px;color:var(--grey)}
body.v3 .v3-search input{flex:1;border:0;outline:0;background:transparent;font-size:16px;color:var(--ink);min-width:0;height:46px;padding:0;border-radius:0;box-shadow:none;-webkit-appearance:none;appearance:none;font-family:inherit}
body.v3 .v3-search input::placeholder{color:var(--grey)}
body.v3 .v3-search input::-webkit-search-cancel-button{-webkit-appearance:none}
body.v3 .v3-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:12px}
body.v3 .v3-row{display:flex;align-items:center;gap:13px;background:var(--white);border-radius:var(--r);padding:13px 15px 13px 18px;position:relative;cursor:pointer;
  box-shadow:0 1px 0 var(--line-soft);color:var(--ink);text-decoration:none;font-size:15px;line-height:1.45;letter-spacing:-.011em}
body.v3 .v3-row::before{content:"";position:absolute;left:0;top:15px;bottom:15px;width:4px;border-radius:0 4px 4px 0;background:var(--c,var(--never));transition:background var(--dur-base) var(--ease-out)}
body.v3 .v3-row.sel{box-shadow:0 0 0 2px var(--ink)}
body.v3 .v3-row[hidden]{display:none}
body.v3 .v3-av{width:44px;height:44px;border-radius:50%;background:var(--sunken);display:grid;place-items:center;font-weight:700;font-size:14.5px;flex:none;letter-spacing:-.01em}
body.v3 .v3-row .nm{font-weight:700;font-size:16px;letter-spacing:-.018em;display:inline-block;transform-origin:0 0}
body.v3 .v3-row .sub{font-size:13.5px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.v3 .v3-row .tx{min-width:0;flex:1}
body.v3 .v3-row .meta{font-size:13px;color:var(--grey);text-align:right;flex:none}
body.v3 .v3-row .meta b{display:block;color:var(--ink);font-size:14px;font-weight:700}
body.v3 .v3-rows .more{height:1px}
body.v3 .v3-rows.busy{opacity:.6;transition:opacity var(--dur-fast)}

/* ── the client card: the hero, the four ways to reach them and More ─────────────────────────────────────────────── */
body.v3 .v3-hero{position:relative;color:var(--white);margin:0 -18px;padding:calc(12px + env(safe-area-inset-top)) 18px 24px}
body.v3 .v3-hero-bg,body.v3 .v3-hero-wash{position:absolute;inset:0;border-radius:0 0 30px 30px;transform-origin:0 0;will-change:transform}
body.v3 .v3-hero-bg{background:var(--ink);background-image:radial-gradient(120% 70% at 100% 0%, color-mix(in srgb,var(--green) 16%,transparent), transparent 60%)}
body.v3 .v3-hero-wash{background:var(--white);opacity:0}
body.v3 .v3-hero-in{position:relative;z-index:1}
body.v3 .v3-htop{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.v3 .v3-cbtn{width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--ink) 6%,transparent);display:grid;place-items:center;flex:none;color:var(--ink)}
body.v3 .v3-hero .v3-cbtn{background:color-mix(in srgb,var(--white) 12%,transparent);color:var(--white)}
body.v3 .v3-hero .v3-kind{display:none;background:color-mix(in srgb,var(--white) 12%,transparent);color:var(--white)}
body.v3 .v3-pane .v3-hero .v3-kind{display:inline-flex}
body.v3 .v3-pane .v3-hero [data-v3-back]{display:none}
body.v3 .v3-hero h1.v3-hname{display:inline-block;font-size:31px;font-weight:800;letter-spacing:-.04em;line-height:1.05;margin-top:16px;transform-origin:0 0;color:var(--white)}
body.v3 .v3-hsub{color:color-mix(in srgb,var(--white) 62%,transparent);font-size:14.5px;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}
body.v3 .v3-hsub b{color:var(--white);font-weight:650}
body.v3 .v3-hsub .nozip{display:block;font-size:13px;color:color-mix(in srgb,var(--white) 50%,transparent)}
body.v3 .v3-reach{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px;color:color-mix(in srgb,var(--white) 74%,transparent)}
body.v3 .v3-reach::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c,var(--green));flex:none}
body.v3 .v3-acts{display:flex;gap:4px;justify-content:space-between;margin-top:20px;max-width:420px}
body.v3 .v3-rb{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:color-mix(in srgb,var(--white) 80%,transparent);min-width:58px;line-height:1.45}
body.v3 .v3-rb i{width:56px;height:56px;border-radius:50%;background:color-mix(in srgb,var(--white) 12%,transparent);display:grid;place-items:center;color:var(--white);font-style:normal}
body.v3 .v3-rb.pri i{background:var(--green);color:var(--ink)}
body.v3 .v3-rb[disabled]{opacity:.35;cursor:default}

/* the tabs: Overview · Timeline · Home · Deals */
body.v3 .v3-ctabs{position:sticky;top:0;z-index:5;padding:12px 18px 10px;margin:0 -18px;background:linear-gradient(var(--paper) 80%,transparent)}
body.v3 .v3-panel{margin-top:6px}
body.v3 .v3-pgrid{display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
body.v3 .v3-pgrid>.v3-card+.v3-card{margin-top:0}
body.v3 [data-v3-panel][hidden]{display:none}

/* Overview's cards */
body.v3 .v3-band{display:flex;align-items:baseline;gap:10px}
body.v3 .v3-band b{font-size:26px;font-weight:800;letter-spacing:-.035em}
body.v3 .v3-reasons{margin-top:10px;display:grid;gap:6px}
body.v3 .v3-reasons div{display:flex;gap:8px;font-size:14px;color:var(--grey-d)}
body.v3 .v3-reasons div::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green);margin-top:7px;flex:none}
body.v3 .v3-val{font-size:32px;font-weight:800;letter-spacing:-.04em;line-height:1.05}
body.v3 .v3-gain{color:var(--green);font-weight:650;font-size:14px;margin-top:2px}
body.v3 .v3-src{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:99px;background:var(--sunken);font-size:12px;font-weight:650;color:var(--ink);letter-spacing:-.011em}
body.v3 .v3-src::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}
body.v3 .v3-src.agent::before,body.v3 .v3-src.deal::before{background:var(--amber)}
body.v3 .v3-src.record::before{background:var(--ink)}
body.v3 .v3-range{position:relative;height:30px;margin:12px 0 2px}
body.v3 .v3-range .tr{position:absolute;left:0;right:0;top:12px;height:6px;border-radius:3px;background:color-mix(in srgb,var(--ink) 7%,transparent)}
body.v3 .v3-range .bd{position:absolute;top:12px;height:6px;border-radius:3px;background:color-mix(in srgb,var(--green) 45%,transparent)}
body.v3 .v3-range .mk{position:absolute;top:5px;width:20px;height:20px;margin-left:-10px;border-radius:50%;background:var(--green);border:3px solid var(--white);box-shadow:0 1px 4px color-mix(in srgb,var(--ink) 25%,transparent)}
body.v3 .v3-range-l{display:flex;justify-content:space-between;font-size:13px;color:var(--grey)}
body.v3 .v3-card h4.v3-h4row{display:flex;justify-content:space-between;align-items:center;gap:10px}
body.v3 .v3-askq{border:0}
body.v3 .v3-askq .v3-qrow{display:flex;gap:8px;margin-top:12px}
body.v3 .v3-askq .v3-qrow .v3-pill{flex:1}

/* the timeline */
body.v3 .v3-tl{position:relative;padding-left:22px}
body.v3 .v3-tl::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
body.v3 .v3-ev{position:relative;padding:0 0 16px;display:block;color:var(--ink)}
body.v3 .v3-ev:last-child{padding-bottom:0}
body.v3 .v3-ev::before{content:"";position:absolute;left:-22px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--white);border:2px solid var(--c,var(--ink))}
body.v3 .v3-ev .w{font-size:12.5px;color:var(--grey);font-weight:600}
body.v3 .v3-ev .t{font-size:15px;font-weight:650;margin-top:1px}
body.v3 .v3-ev .q{font-size:14px;color:var(--grey-d);margin-top:2px;overflow-wrap:anywhere}
body.v3 .v3-tlhead{font-size:19px;font-weight:750;letter-spacing:-.025em;margin:0 0 12px}

/* the deals and their checklists */
body.v3 .v3-pc .ph{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
body.v3 .v3-pc .pn{font-weight:700;font-size:15.5px;letter-spacing:-.018em}
body.v3 .v3-pc .ps{font-size:13px;color:var(--grey);margin-top:2px}
body.v3 .v3-pc .pb{margin-top:12px}
body.v3 .v3-pc .pf{display:flex;justify-content:space-between;font-size:12.5px;color:var(--grey-d);margin-top:7px;gap:8px}
body.v3 .v3-bar{position:relative;height:8px;border-radius:99px;background:color-mix(in srgb,var(--ink) 7%,transparent);overflow:hidden}
body.v3 .v3-bar>i{position:absolute;inset:0;border-radius:99px;background:var(--ink);transform:translateX(calc((var(--p,0) - 1) * 100%));will-change:transform;display:block}
body.v3 .v3-bar.green>i{background:var(--green)}
body.v3 .v3-ck{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft);width:100%;text-align:left;font-size:14.5px;color:var(--ink);min-height:44px}
body.v3 .v3-ck:first-of-type{border-top:0}
body.v3 .v3-ck .bx{width:24px;height:24px;border-radius:8px;border:2px solid var(--never);display:grid;place-items:center;flex:none;color:var(--white)}
body.v3 .v3-ck.done .bx{background:var(--green);border-color:var(--green);color:var(--ink)}
body.v3 .v3-ck.done .lbl{color:var(--grey);text-decoration:line-through}
body.v3 .v3-ck .when{margin-left:auto;font-size:13px;color:var(--grey)}

/* ── the sheets' parts (core.css draws the sheet; these are what goes in it) ─────────────────────────────────────── */
body.v3 .v3-sheet .v3-sa .v3-pill{flex:1;height:52px;font-size:15.5px}
body.v3 .v3-tpls{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:14px -20px 0;padding:0 20px;touch-action:pan-x}
body.v3 .v3-tpls::-webkit-scrollbar{display:none}
body.v3 .v3-tpl{flex:none;width:190px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;text-align:left;background:none;color:var(--ink);cursor:pointer}
body.v3 .v3-tpl b{display:block;font-size:14px;line-height:1.45}
body.v3 .v3-tpl span{font-size:12.5px;color:var(--grey);line-height:1.35;display:block;margin-top:2px}
body.v3 .v3-tpl.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
body.v3 .v3-script{background:var(--sunken);border-radius:14px;padding:14px;font-size:15px;line-height:1.55;margin-top:12px;white-space:pre-wrap;max-height:300px;overflow:auto;color:var(--ink)}
body.v3 .v3-qcard{text-align:center;padding:6px 0 4px}
body.v3 .v3-sheet .v3-qcard h3{font-size:24px}
body.v3 .v3-qcard .v3-ico{margin:4px auto 12px;width:52px;height:52px}
body.v3 .v3-qr{width:150px;height:150px;margin:12px auto;display:grid;place-items:center;background:var(--white);padding:8px;border-radius:12px}
body.v3 .v3-qr svg{width:134px;height:134px;display:block}
body.v3 .v3-sheet .v3-sh-sub{font-size:17px;margin-top:18px}
body.v3 .v3-sheet .v3-kv.sw{align-items:center;border:0;margin-top:12px}
body.v3 .v3-sheet .v3-kv.sw.top{margin-top:14px;border-top:1px solid var(--line-soft);padding-top:10px}
body.v3 .v3-sheet .v3-err{font-size:13px;color:var(--amber-t);margin-top:8px;font-weight:600}
body.v3 .v3-sheet .v3-row2{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-top:12px}
body.v3 .v3-sheet .v3-row2.one{grid-template-columns:1fr}
body.v3 .v3-sheet .v3-row2.v3-cityzip{margin-top:0}
body.v3 .v3-sheet [data-v3-bought]{margin-top:8px}
body.v3 .v3-sheet .v3-addrow{display:flex;gap:8px;margin-top:12px}
body.v3 .v3-sheet .v3-addrow .v3-pill{height:50px}
/* the card's functions without JavaScript (?do=more|tag|paid, _card.html): today's plain forms, in the card's own parts */
body.v3 .v3-nojs.v3-addrow,body.v3 .v3-nojs .v3-addrow{display:flex;gap:8px;margin-top:12px}
body.v3 .v3-nojs .v3-pill{height:50px}
body.v3 .v3-nojs .v3-field{flex:1;min-width:0}
body.v3 .v3-nojs textarea.v3-field{min-height:96px}
body.v3 .v3-check{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:6px;font-size:14px;cursor:pointer}
body.v3 .v3-check input{width:20px;height:20px;margin:0;accent-color:var(--green)}
body.v3 .v3-sheet .v3-tags .v3-tag{min-height:30px}
body.v3 .v3-sheet .v3-tag .x{min-width:30px;cursor:pointer}
body.v3 .v3-tags form.v3-tag{margin:0}

/* ── the desk: 900 and wider (the prototype's breakpoint) ────────────────────────────────────────────────────────── */
@media (min-width:900px){
  body.v3 main.wrap:has(> .v3-screen){padding:28px 40px 60px}
  body.v3 main.wrap:has(> .v3-screen.v3-cardscr){padding-top:28px}
  body.v3 .v3-hd .v3-me{display:none}
  body.v3 .v3-screen .v3-h1{font-size:42px}
  body.v3 .v3-split{display:grid;grid-template-columns:minmax(360px,440px) minmax(0,1fr);gap:24px;align-items:start}
  body.v3 .v3-people .v3-split{margin-top:4px}
  body.v3 .v3-split>*{min-width:0}
  body.v3 .v3-split .v3-pane{position:sticky;top:0;height:calc(100dvh - 56px);overflow-y:auto;border-radius:26px;background:var(--paper);scrollbar-width:none;
    box-shadow:0 0 0 1px var(--line-soft);overscroll-behavior:contain}
  body.v3 .v3-split .v3-pane::-webkit-scrollbar{display:none}
  body.v3 .v3-cardscr .v3-wrap{max-width:960px}
  body.v3 .v3-cardscr .v3-hero{margin:0;border-radius:26px;padding:22px 28px 26px}
  body.v3 .v3-cardscr .v3-hero-bg,body.v3 .v3-cardscr .v3-hero-wash{border-radius:26px}
  body.v3 .v3-cardscr .v3-ctabs{margin:0;padding:14px 0 10px}
  body.v3 .v3-cardscr .v3-pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.v3 .v3-cardscr .v3-pgrid .v3-wide{grid-column:1/-1}
  body.v3 .v3-pane .v3-hero{margin:0;border-radius:26px 26px 0 0;padding:22px 28px 26px}
  body.v3 .v3-pane .v3-hero-bg,body.v3 .v3-pane .v3-hero-wash{border-radius:26px 26px 30px 30px}
  body.v3 .v3-pane .v3-ctabs{margin:0;padding:14px 24px 10px}
  body.v3 .v3-pane .v3-panel{padding:0 24px 28px}
  body.v3 .v3-pane .v3-pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.v3 .v3-pane .v3-pgrid .v3-wide{grid-column:1/-1}
  body.v3 .v3-pane-empty{display:grid;place-items:center;text-align:center;color:var(--grey-d);height:100%;padding:40px}
  body.v3 .v3-pane-empty b{display:block;font-size:20px;color:var(--ink);margin-bottom:6px;letter-spacing:-.02em}
  body.v3 .v3-hero h1.v3-hname{font-size:38px}
  body.v3 .v3-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end}
  body.v3 .v3-acts{margin-top:0;gap:14px}
  body.v3 .v3-pane .v3-hero-grid{grid-template-columns:minmax(0,1fr)}
  body.v3 .v3-pane .v3-acts{margin-top:18px}
  body.v3 .v3-pane .v3-hero h1.v3-hname{font-size:36px}
}
@media (min-width:1600px){
  body.v3 main.wrap:has(> .v3-screen){padding:34px 56px 64px}
  body.v3 .v3-split{grid-template-columns:480px minmax(0,1fr)}
  body.v3 .v3-pane .v3-hero-grid{grid-template-columns:minmax(0,1fr) auto}
  body.v3 .v3-pane .v3-acts{margin-top:0}
}
@media (max-width:899px){
  body.v3 .v3-split .v3-pane{display:none}
}
@media (prefers-reduced-motion: reduce){
  body.v3 .v3-sw::after{transition:none}
}

/* ── round 2: the address spot (contacts/address.py). The hero's address, a tap edits it; without a usable one a quiet
   Add address, never a guess or an error colour. An invisible 44px hit edge around the line. ────────────────────────── */
body.v3 .v3-hsub .v3-addr{position:relative;display:inline-flex;align-items:center;gap:5px;color:inherit;cursor:pointer;text-decoration:none}
body.v3 .v3-hsub .v3-addr::before{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
body.v3 .v3-hsub .v3-addr.add{color:color-mix(in srgb,var(--white) 50%,transparent)}
body.v3 .v3-hsub .v3-addr.add svg{width:13px;height:13px;opacity:.8}
@media (hover:hover){body.v3 .v3-hsub .v3-addr:hover{color:var(--white)}}
body.v3 .v3-sheet .v3-onfile,body.v3 .v3-addrform [data-v3-onfile]{margin-top:6px;overflow-wrap:anywhere}
body.v3 .v3-sheet .v3-row2.v3-addr3{grid-template-columns:1.3fr .55fr .9fr}
/* People's foot: how many have no address, and Fill in (Setup › Addresses). Quiet: grey, centred, under the rows. */
body.v3 .v3-noaddr{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;margin-top:12px;font-size:13.5px;color:var(--grey-d);text-align:center}
body.v3 .v3-noaddr b{color:var(--ink);font-weight:650}
body.v3 .v3-addrform .v3-cityzip3{display:grid;grid-template-columns:1.3fr .55fr .9fr;gap:10px}

/* A deal card's head (the spacing round, 16 October 2026): when the name and the stage do not fit side by side, the
   stage goes under the name instead of running out of the card. */
body.v3 .v3-pc .ph{flex-wrap:wrap}
body.v3 .v3-pc .ph > div{min-width:0}
/* the desk's side pane, stuck at the top of the page as it scrolls: 1px down, so its hairline edge is never trimmed */
@media (min-width:900px){ body.v3 .v3-split .v3-pane{top:1px} }
/* The value tile in a narrow column (the desk's side pane at 1200; the spacing round): its source pill keeps to one line
   and goes under the heading when there is no room beside it, and the figure scales down to the tile instead of
   running out of it (at its full 32px wherever it fits). */
body.v3 .v3-card h4.v3-h4row{flex-wrap:wrap;row-gap:6px}
body.v3 .v3-src{white-space:nowrap}
body.v3 .v3-card[data-v3-value]{container-type:inline-size}
body.v3 .v3-card[data-v3-value] .v3-val{font-size:min(32px, 15.5cqi)}
