/* =============================================================================
   Vantage Auto Group Portal — shared design layer (2026-10-01 redesign, stage 1)
   One stylesheet linked from every staff page AFTER the page's own <style>, so the
   tokens here win. It carries:
     1. the existing portal colour system (cream ground, black bar + gold rule, Vantage red primary) in light + dark
     2. ONE status colour system for every page:
          gray  = not started   (.st-idle)
          blue  = in progress   (.st-progress)
          amber = needs attention (.st-attention)
          red   = overdue / failed (.st-overdue)
          green = done          (.st-done)
        The pages' existing chips keep their class names; they are mapped onto the
        five tokens at the bottom of this file.
     3. the page pattern: .head (title, one-line description, main action top-right),
        .tabs-counts (filter tabs with counts), .empty (friendly empty state),
        .card-list (cards on phones), a maximum page width.
   Source of truth: deploy/portal.css — every page links it; nothing to re-apply.
   ============================================================================= */

/* The colour system is the EXISTING portal's: cream ground, white cards, black bar with the gold rule,
   Vantage red as the primary. Only the five status colours are new (blue = in progress). */
:root{
  --ground:#F3F1EC; --surface:#FFFFFF; --surface-2:#FAF8F4; --border:#E0DBD1; --border-strong:#CBC4B7;
  --ink:#191714; --ink-2:#4A453E; --muted:#7A736A;
  --brand-red:#D51F26; --brand-gold:#C9A24A; --bar:#000000;
  --navy:#000000; --cream:#F3F1EC; --gold:#C9A24A; --gold-soft:#F2E9D6;
  --accent:#D51F26; --accent-ink:#FFFFFF; --accent-soft:#FBE7E8; --accent-line:#F0C4C6;
  --st-idle:#5E6472;      --st-idle-soft:#ECEAE3;
  --st-progress:#2457A8;  --st-progress-soft:#E3EBF8;
  --st-attention:#976714; --st-attention-soft:#F2E9D6;
  --st-overdue:#8C2118;   --st-overdue-soft:#F4E2DF;
  --st-done:#2E7D5B;      --st-done-soft:#E0EFE7;
  --good:var(--st-done); --good-soft:var(--st-done-soft);
  --warn:var(--st-attention); --warn-soft:var(--st-attention-soft);
  --bad:var(--st-overdue); --bad-soft:var(--st-overdue-soft);
  --shadow:0 1px 2px rgba(25,23,20,.05), 0 8px 24px -12px rgba(25,23,20,.18);
  --radius:12px; --radius-sm:8px;
  --display:'Archivo','Helvetica Neue',Helvetica,Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --page-max:1280px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#141310; --surface:#1D1B17; --surface-2:#232019; --border:#332F28; --border-strong:#4A443A;
    --ink:#EFEBE4; --ink-2:#C6C0B6; --muted:#948D82;
    --brand-red:#F0424A; --brand-gold:#D9B86A; --bar:#000000;
    --navy:#0B0B0C; --cream:#141310; --gold:#D9B86A; --gold-soft:#2E2716;
    --accent:#F0424A; --accent-ink:#160C0D; --accent-soft:#3A1B1D; --accent-line:#5C2528;
    --st-idle:#A0A6B4;      --st-idle-soft:#262B35;
    --st-progress:#8FB0F0;  --st-progress-soft:#1C2740;
    --st-attention:#D9A93F; --st-attention-soft:#2E2716;
    --st-overdue:#E8998C;   --st-overdue-soft:#33201C;
    --st-done:#6FC59A;      --st-done-soft:#1B2C24;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"]{
  --ground:#141310; --surface:#1D1B17; --surface-2:#232019; --border:#332F28; --border-strong:#4A443A;
  --ink:#EFEBE4; --ink-2:#C6C0B6; --muted:#948D82;
  --brand-red:#F0424A; --brand-gold:#D9B86A; --bar:#000000;
  --navy:#0B0B0C; --cream:#141310; --gold:#D9B86A; --gold-soft:#2E2716;
  --accent:#F0424A; --accent-ink:#160C0D; --accent-soft:#3A1B1D; --accent-line:#5C2528;
  --st-idle:#A0A6B4;      --st-idle-soft:#262B35;
  --st-progress:#8FB0F0;  --st-progress-soft:#1C2740;
  --st-attention:#D9A93F; --st-attention-soft:#2E2716;
  --st-overdue:#E8998C;   --st-overdue-soft:#33201C;
  --st-done:#6FC59A;      --st-done-soft:#1B2C24;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
}

/* ---------- the bar ---------- */
.topbar{background:var(--bar) !important; border-bottom:2px solid var(--brand-gold) !important}

/* ---------- page width + header ---------- */
.wrap, main.wrap{max-width:var(--page-max)}
.head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:18px}
.head > div:first-child{min-width:0}
.head h1{margin:0; font-size:26px; line-height:1.15; letter-spacing:-.015em; font-weight:700; color:var(--ink)}
.head p{margin:4px 0 0; color:var(--muted); font-size:14px; line-height:1.4}
.head .actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-left:auto}
@media(max-width:600px){ .head h1{font-size:22px} .head .actions{width:100%; margin-left:0} .head .actions .btn{flex:1 1 auto; text-align:center} }

/* ---------- buttons: the primary is Vantage red everywhere (as before) ---------- */
.btn.primary, button.primary, .btn-primary{background:var(--accent); color:var(--accent-ink); border-color:var(--accent)}
.btn.primary:hover, button.primary:hover{filter:brightness(1.12)}
a.btn{text-decoration:none; display:inline-flex; align-items:center; justify-content:center}

/* ---------- status chips: one look, five colours ---------- */
.status-chip, .st-idle, .st-progress, .st-attention, .st-overdue, .st-done{
  display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; letter-spacing:.04em;
  padding:3px 9px; border-radius:999px; white-space:nowrap; line-height:1.4}
.st-idle{background:var(--st-idle-soft); color:var(--st-idle)}
.st-progress{background:var(--st-progress-soft); color:var(--st-progress)}
.st-attention{background:var(--st-attention-soft); color:var(--st-attention)}
.st-overdue{background:var(--st-overdue-soft); color:var(--st-overdue)}
.st-done{background:var(--st-done-soft); color:var(--st-done)}

/* the pages' own chip names → the five statuses (keeps every page's markup as it is) */
.chip.grey, .chip.none, .stg.submitted, .pill.declined, .st.discarded, .st.no_consent{background:var(--st-idle-soft) !important; color:var(--st-idle) !important}
.chip.new, .stg.scheduled, .stg.insured, .stg.approved.insured, .chip.transit, .chip.in_transit{background:var(--st-progress-soft) !important; color:var(--st-progress) !important}
.chip.pending, .chip.wait, .chip.held, .stg.approved, .st.pending{background:var(--st-attention-soft) !important; color:var(--st-attention) !important}
.chip.failed, .chip.overdue, .chip.review, .chip.optout, .stg.cancelled, .stg.dead, .st.failed{background:var(--st-overdue-soft) !important; color:var(--st-overdue) !important}
.chip.sent, .chip.done, .chip.ready, .stg.paid, .stg.delivered, .stg.plated, .pill.sold, .st.sent{background:var(--st-done-soft) !important; color:var(--st-done) !important}
.stg.order{background:var(--brand-gold) !important; color:#1b1500 !important}

/* ---------- filter tabs with counts ("Overdue (4)") ---------- */
.tabs-counts{display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px}
.tabs-counts button, .tabs-counts a{display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border-radius:999px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--ink-2); font-size:13.5px; font-weight:500; cursor:pointer; text-decoration:none}
.tabs-counts [aria-pressed="true"], .tabs-counts [aria-current="page"]{background:var(--accent); color:var(--accent-ink); border-color:var(--accent)}
.tabs-counts .n{font-family:var(--mono); font-size:12px; font-weight:600; padding:0 6px; border-radius:999px; background:rgba(0,0,0,.08)}
.tabs-counts [aria-pressed="true"] .n{background:rgba(255,255,255,.22)}
.tabs-counts .n.hot{background:var(--st-overdue-soft); color:var(--st-overdue)}

/* ---------- empty states ---------- */
.empty{padding:34px 20px; text-align:center; color:var(--muted); background:var(--surface); border:1px dashed var(--border-strong); border-radius:var(--radius)}
.empty b{display:block; color:var(--ink); font-size:16px; margin-bottom:4px}

/* ---------- cards on phones ---------- */
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow)}
.card-list{display:flex; flex-direction:column; gap:10px}
.card-list .card{padding:12px 14px}
@media(max-width:700px){
  .table-to-cards table, .table-to-cards thead{display:none}
}
.sticky-bar{position:sticky; bottom:0; z-index:30; display:flex; gap:10px; align-items:center; padding:10px 14px; margin-top:16px;
  background:var(--surface); border-top:1px solid var(--border); box-shadow:0 -8px 24px -16px rgba(0,0,0,.35)}
.sticky-bar .note{color:var(--muted); font-size:13px; margin-right:auto}

/* reduced motion */
@media (prefers-reduced-motion: reduce){ *{transition:none !important} }

/* ---------- Home dashboard (index.html #view-home) — the existing portal's look ---------- */
.home-head{align-items:flex-end}
.home-date{font-size:13px; color:var(--muted); margin-bottom:2px}
.home-head h1{font-size:30px}
.home-sec{margin:0 0 18px}
.home-sec h2, .home-card h2, .home-month h2{margin:0 0 10px; font-size:15px; font-weight:700; letter-spacing:-.01em}
.home-sec h2 .cnt, .home-card h2 .cnt, .home-card h3 .cnt{font-weight:500; color:var(--muted); font-size:13px; margin-left:4px}
.home-tiles{display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px}
.home-tiles.mw{grid-template-columns:repeat(auto-fill, minmax(220px, 1fr))}   /* My work (2026-10-07): a lone tile stays tile-sized */
.home-tile{display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:var(--radius); border:1px solid var(--border); background:var(--surface); text-decoration:none; color:var(--ink); min-height:92px; transition:transform .12s, box-shadow .12s}
.home-tile:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.home-tile b{font-size:26px; line-height:1.1; font-weight:700}
.home-tile .l{font-weight:600; font-size:13.5px; margin-top:4px} .home-tile .s{font-size:12px; color:var(--muted)}
.home-tile.warn{background:var(--st-attention-soft); border-color:transparent} .home-tile.warn b{color:var(--st-attention)}
.home-tile.bad{background:var(--st-overdue-soft); border-color:transparent} .home-tile.bad b{color:var(--st-overdue)}
.home-tile.info{background:var(--st-progress-soft); border-color:transparent} .home-tile.info b{color:var(--st-progress)}
.home-tile.ok{background:var(--surface); opacity:.85} .home-tile.ok b{color:var(--st-done)}
.home-grid{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:14px; align-items:start}
@media(max-width:900px){ .home-grid{grid-template-columns:1fr} }
.home-col{display:flex; flex-direction:column; gap:14px}
.home-card{padding:14px 16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); min-width:0}
.home-card .ch{display:flex; align-items:baseline; justify-content:space-between; gap:10px; border-bottom:1px solid var(--border); padding-bottom:8px; margin-bottom:6px}
.home-card .ch h2{margin:0} .home-card .ch a{font-size:13px; font-weight:600; color:var(--gold); text-decoration:underline; text-underline-offset:3px}
.home-card .ch a{color:var(--brand-red)}
.home-card h3{margin:12px 0 4px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.home-dl{display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 2px; border-bottom:1px solid var(--border); text-decoration:none; color:inherit}
.home-dl:last-child{border-bottom:0}
.home-dl .when{font-weight:700; font-size:13px; white-space:nowrap} .home-dl .when b{font-weight:500; color:var(--muted)}
.home-dl .hw{min-width:0} .home-dl .hw b{display:block; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis} .home-dl .hw span{display:block; font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.home-dl:hover .hw b{text-decoration:underline; text-underline-offset:3px}
.card-list.slim .home-dl{grid-template-columns:minmax(0,1fr) auto}
.empty.slim{padding:18px 12px}
.home-bars{display:flex; flex-direction:column; gap:7px; padding-top:4px}
.home-bars .bar{display:grid; grid-template-columns:128px 1fr 28px; gap:10px; align-items:center; font-size:13px; color:var(--ink-2); text-decoration:none}
.home-bars .bar i{display:block; height:9px; border-radius:999px; background:var(--surface-2); overflow:hidden; border:1px solid var(--border)}
.home-bars .bar i b{display:block; height:100%; background:var(--brand-red); border-radius:999px; min-width:0}
.home-bars .bar em{font-style:normal; text-align:right; font-weight:700; color:var(--ink)}
.home-bars .bar:hover span{text-decoration:underline; text-underline-offset:3px}
.home-month{background:var(--bar); color:#F6F4F0; border-top:2px solid var(--brand-gold); border-radius:var(--radius); padding:14px 16px}
.home-month h2{color:#F6F4F0}
.home-month .nums{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.home-month .nums b{display:block; font-size:28px; line-height:1.1} .home-month .nums span{font-size:12px; color:rgba(246,244,240,.72)}
@media(max-width:480px){ .home-month .nums{grid-template-columns:1fr 1fr} }
.home-job{padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow)}
.home-job .jt{display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px}
.home-job .jn{font-size:17px; font-weight:700; margin-top:4px} .home-job .jv{color:var(--ink-2); font-size:13.5px} .home-job .ja{font-size:13px; margin-top:4px} .home-job .ja a{color:var(--accent)}
.home-job .jb{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap} .home-job .jb .btn{flex:1 1 auto; text-align:center}
/* home: the manager's rep filter */
.hrf{position:relative}
.hrf-btn .k{color:var(--muted); font-weight:500} .hrf-btn i{font-style:normal; opacity:.6; margin-left:2px}
.hrf-menu{position:absolute; left:0; top:calc(100% + 6px); z-index:35; min-width:240px; max-height:360px; overflow:auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; box-shadow:var(--shadow); padding:6px}
.hrf-opt{display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:7px; font-size:14px; cursor:pointer} .hrf-opt:hover{background:var(--surface-2)} .hrf-opt.on{font-weight:600}
.hrf-sep{height:1px; background:var(--border); margin:4px 6px}
.hrf-foot{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 6px 4px; border-top:1px solid var(--border); margin-top:4px; position:sticky; bottom:-6px; background:var(--surface)} .hrf-foot .sub{font-size:12px; color:var(--muted)}
@media(max-width:600px){ .hrf{width:100%} .hrf-btn{width:100%} .hrf-menu{left:0; right:0} }

/* ---------- Vehicle Log: the guided steps (index.html #view-log) ---------- */
.lprog{margin:0 0 14px}
.lprog .lbar{display:flex; gap:6px; margin-bottom:6px}
.lprog .lbar b{display:block; flex:1; height:6px; border-radius:999px; background:var(--border); cursor:pointer}
.lprog .lbar b.is-done{background:var(--brand-gold)} .lprog .lbar b.is-cur{background:var(--brand-red)}
.lstep-name{font-size:13px; color:var(--muted)} .lstep-name b{color:var(--ink)}
.arrive-cards{display:flex; flex-direction:column; gap:8px}
.arrive-card{display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"car kind" "sub kind"; gap:2px 10px; align-items:center; width:100%; text-align:left;
  padding:11px 13px; border:1px solid var(--border-strong); border-radius:10px; background:var(--surface); cursor:pointer; font:inherit; color:var(--ink)}
.arrive-card:hover{border-color:var(--brand-red)} .arrive-card.on{border-color:var(--brand-red); box-shadow:0 0 0 2px var(--accent-soft)}
.arrive-card .ac-car{grid-area:car; font-weight:700; font-size:15px} .arrive-card .ac-sub{grid-area:sub; font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .arrive-card .ac-kind{grid-area:kind}
.owes{padding:10px 12px; border-radius:9px; background:var(--surface-2); border:1px solid var(--border); font-size:14px; line-height:1.45}
.owes b.pos{color:var(--st-done)} .owes b.neg{color:var(--st-overdue)}
.summary{display:flex; flex-direction:column}
.summary .sr{display:grid; grid-template-columns:140px 1fr; gap:10px; padding:7px 0; border-bottom:1px solid var(--border); font-size:14px}
.summary .sr:last-child{border-bottom:0} .summary .sr span{color:var(--muted)} .summary .sr b{font-weight:600; min-width:0; overflow-wrap:anywhere} .summary .sr .sub{color:var(--muted); font-weight:400}
.summary .mono{font-family:var(--mono); letter-spacing:.04em} .summary .neg{color:var(--st-overdue)}
.log-bar{border-radius:12px 12px 0 0; padding:10px 12px} .log-bar .btn{min-width:110px} .log-bar #btn-submit{min-width:190px}
@media(max-width:480px){ .log-bar .btn{min-width:0; flex:1 1 auto} .log-bar .note{flex-basis:100%; margin:0 0 4px; text-align:center} .summary .sr{grid-template-columns:110px 1fr} }
/* home: the week ahead */
.home-week{margin-top:14px}
.wk-grid{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; padding-top:6px}
.wk-day{min-width:0; border:1px solid var(--border); border-radius:9px; padding:8px 8px 6px; background:var(--surface-2)}
.wk-day.today{border-color:var(--brand-red); background:var(--surface)} .wk-day.wkend{opacity:.85}
.wk-h{display:flex; align-items:baseline; gap:5px; margin-bottom:6px; border-bottom:1px solid var(--border); padding-bottom:5px}
.wk-h b{font-size:13px} .wk-h span{font-size:11.5px; color:var(--muted)} .wk-h em{font-style:normal; margin-left:auto; font-family:var(--mono); font-size:12px; font-weight:600; color:var(--ink-2)}
.wk-day.today .wk-h b{color:var(--brand-red)}
.wk-item{display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:5px; align-items:center; padding:3px 0; font-size:12px; color:var(--ink); text-decoration:none; min-width:0}
.wk-item:hover .wk-n{text-decoration:underline; text-underline-offset:2px}
.wk-dot{width:7px; height:7px; border-radius:50%; background:var(--st-idle)} .wk-dot.t-progress{background:var(--st-progress)} .wk-dot.t-attention{background:var(--st-attention)} .wk-dot.t-overdue{background:var(--st-overdue)} .wk-dot.t-done{background:var(--st-done)}
.wk-t{font-family:var(--mono); font-size:11px; color:var(--muted); white-space:nowrap} .wk-n{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500}
.wk-more{display:block; font-size:11.5px; color:var(--brand-red); text-decoration:none; padding-top:2px} .wk-empty{color:var(--muted); font-size:12px; text-align:center; padding:6px 0}
@media(max-width:900px){ .wk-grid{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media(max-width:600px){ .wk-grid{grid-template-columns:1fr 1fr} .wk-day{padding:8px 10px} }
/* Vehicle Inventory — Trades & Wholesale: owed to Vantage */
.stats.four{grid-template-columns:1fr 1fr 1.2fr 1.8fr}
@media(max-width:1000px){ .stats.four{grid-template-columns:1fr 1fr} .stats.four .owed-by{grid-column:1/-1} }
.stats.six{grid-template-columns:repeat(4,1fr)} .stats.six .owed-by{grid-column:span 3}
@media(max-width:1000px){ .stats.six{grid-template-columns:1fr 1fr} .stats.six .owed-by{grid-column:1/-1} }
.stat.owed-by{gap:6px}
.ob-list{display:flex; flex-direction:column}
.ob-row{display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:baseline; padding:4px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--ink); font-size:13px}
.ob-row:last-child{border-bottom:0} .ob-row:hover .ob-n{text-decoration:underline; text-underline-offset:3px}
.ob-n{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500} .ob-c{font-size:12px; color:var(--muted); white-space:nowrap} .ob-c i{font-style:normal; color:var(--st-attention)}
.ob-a{font-family:var(--mono); font-weight:600; white-space:nowrap}

/* ---------- Home: Helpful links + Team chat cards (2026-10-04, schema part 79) ---------- */
.home-extra{margin-top:14px}
.hl-wifi{display:flex; align-items:center; gap:12px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:6px 0 4px; color:var(--ink-2)}
.hl-wifi .hl-w{flex:1; min-width:0}
.hl-wifi .hl-w b{display:block; font-size:14px; color:var(--ink)}
.hl-wifi .hl-pw{font-family:var(--mono); font-size:13px; letter-spacing:.04em; color:var(--ink-2); word-break:break-all}
.home-card h3.hl-g{margin:14px 0 7px; font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--brand-gold); font-weight:700}
.hl-chips{display:flex; flex-wrap:wrap; gap:7px}
.hl-chip{display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface); color:var(--ink); font-size:13.5px; font-weight:500; text-decoration:none; transition:border-color .12s, background .12s}
.hl-chip:hover{border-color:var(--brand-red); background:var(--accent-soft)}
.hl-chip.missing{border-style:dashed; color:var(--muted); cursor:help}
.hl-b{font-size:10.5px; font-weight:700; background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:0 7px; color:var(--ink-2)}
.hc-row{display:block; padding:11px 2px; border-bottom:1px solid var(--border); text-decoration:none; color:inherit}
.hc-row:last-child{border-bottom:0}
.hc-row .hc-t{display:flex; align-items:center; justify-content:space-between; gap:10px}
.hc-row .hc-t b{font-size:14.5px}
.hc-row .hc-n{font-style:normal; min-width:22px; height:22px; line-height:22px; text-align:center; border-radius:11px; background:var(--bar); color:#F6F4F0; font-size:11.5px; font-weight:700; padding:0 6px}
.hc-row .hc-n.at{background:var(--brand-red)}
.hc-row .hc-p{display:block; font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px}
.hc-row:hover b{text-decoration:underline; text-underline-offset:3px}
.le-ov{position:fixed; inset:0; z-index:1000; background:rgba(10,10,10,.55); display:flex; align-items:flex-start; justify-content:center; padding:4vh 12px; overflow:auto}
.le-box{background:var(--surface); color:var(--ink); border-radius:14px; border-top:3px solid var(--brand-gold); width:min(1040px, 100%); padding:18px 20px 22px; box-shadow:0 30px 70px rgba(0,0,0,.45)}
.le-head{display:flex; align-items:center; justify-content:space-between; gap:10px}
.le-head h2{margin:0; font-size:20px}
.le-box h3{margin:16px 0 8px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--brand-gold)}
.le-box .sub{font-size:12.5px; color:var(--muted); font-weight:500; text-transform:none; letter-spacing:0}
.le-msg{background:var(--st-overdue-soft); color:var(--st-overdue); border-radius:8px; padding:8px 11px; font-size:13.5px; margin:10px 0 0}
.le-row{display:grid; grid-template-columns:150px 1.1fr 1.6fr auto 62px auto auto auto; gap:6px; align-items:center; padding:6px 0; border-bottom:1px solid var(--border)}
.le-row.le-wifi{grid-template-columns:1fr 1fr auto; border:0}
.le-row input[data-f], .le-row.le-wifi input{background:var(--surface-2); border:1px solid var(--border-strong); border-radius:7px; padding:7px 9px; font:inherit; font-size:13px; color:var(--ink); min-width:0}
.le-roles{display:flex; gap:8px}
.le-r{display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-2); white-space:nowrap}
@media(max-width:860px){ .le-row{grid-template-columns:1fr 1fr} .le-row input[data-f="url"]{grid-column:1/-1} .le-roles{grid-column:1/-1} }
/* the bar with five groups (Team added 2026-10-04): the menus keep their width, the live ticker gives way */
@media(min-width:761px){ .topbar .vg-nav{flex-shrink:0} }
@media(min-width:761px) and (max-width:1180px){ .topbar .brandmark{display:none} }

/* ---------- Home: Messages card — direct messages inline with read receipts (2026-10-05) ---------- */
.home-extra{display:flex; flex-direction:column; gap:14px}
.hm-wrap{display:grid; grid-template-columns:290px minmax(0,1fr); gap:0; border:1px solid var(--border); border-radius:10px; overflow:hidden; height:440px; margin-top:6px}
.hm-list{overflow-y:auto; border-right:1px solid var(--border); background:var(--surface-2); padding:8px}
.hm-q{width:100%; box-sizing:border-box; background:var(--surface); border:1px solid var(--border-strong); border-radius:8px; padding:8px 10px; font:inherit; font-size:13.5px; margin-bottom:4px}
.hm-sec{font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--brand-gold); margin:10px 6px 4px}
.hm-row{display:flex; align-items:center; gap:9px; width:100%; box-sizing:border-box; border:0; background:none; text-align:left; padding:7px 8px; border-radius:8px; font:inherit; color:var(--ink); cursor:pointer; text-decoration:none}
.hm-row:hover{background:var(--surface)}
.hm-row.on{background:var(--bar); color:#F6F4F0; box-shadow:inset 3px 0 0 var(--brand-red)}
.hm-row.on .hm-p{color:rgba(246,244,240,.7)}
.hm-row .hm-t{flex:1; min-width:0}
.hm-row .hm-t b{display:block; font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hm-row.unread .hm-t b{font-weight:800}
.hm-p{display:block; font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hm-av{flex:none; width:30px; height:30px; border-radius:50%; background:var(--gold-soft, #F2E9D6); color:var(--ink); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; border:1px solid var(--border)}
.hm-hash{border-radius:8px; font-size:14px}
.hm-go{color:var(--muted); font-size:18px}
.hm-row .hc-n{font-style:normal; min-width:20px; height:20px; line-height:20px; text-align:center; border-radius:10px; background:var(--brand-red); color:#fff; font-size:11px; font-weight:700; padding:0 6px}
.hm-row .hc-n.at{background:var(--brand-gold); color:#1b1500}
.hm-conv{display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--surface)}
.hm-head{display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--border)}
.hm-head b{flex:1; font-size:15px}
.hm-head a{font-size:12.5px; font-weight:600; color:var(--brand-red)}
.hm-back{display:none; border:0; background:none; font-size:22px; cursor:pointer; color:var(--ink); padding:0 4px}
.hm-msgs{flex:1; overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:6px}
.hm-b{display:flex; flex-direction:column; max-width:78%}
.hm-b.me{align-self:flex-end; align-items:flex-end}
.hm-b.them{align-self:flex-start}
.hm-bub{padding:8px 12px; border-radius:14px; font-size:14px; line-height:1.4; white-space:pre-wrap; word-break:break-word}
.hm-b.me .hm-bub{background:var(--bar); color:#F6F4F0; border-bottom-right-radius:4px}
.hm-b.them .hm-bub{background:var(--surface-2); border:1px solid var(--border); border-bottom-left-radius:4px}
.hm-b.me .hm-bub a{color:var(--brand-gold)}
.hm-deal{display:block; margin-top:4px; font-size:12.5px; opacity:.85}
.hm-ts{font-size:10.5px; color:var(--muted); margin-top:2px}
.hm-rc{font-size:11.5px; color:var(--muted); font-weight:600; margin-top:1px}
.hm-rc.read{color:var(--st-progress)}
/* Home DM reactions + emoji picker (2026-10-08, part 113) */
.hm-rx{display:flex; flex-wrap:wrap; gap:3px; margin-top:-6px; position:relative; z-index:1}
.hm-b.me .hm-rx{justify-content:flex-end}
.hm-rx button{display:inline-flex; align-items:center; gap:3px; border:1px solid var(--border-strong); background:var(--surface); border-radius:999px; padding:0 7px 0 5px; font:inherit; font-size:11.5px; font-weight:700; color:var(--ink-2); cursor:pointer; line-height:20px; box-shadow:0 1px 2px rgba(0,0,0,.08)}
.hm-rx button .e{font-size:14px}
.hm-rx button.mine{background:var(--accent-soft); border-color:var(--brand-red); color:var(--brand-red)}
.hm-rb{border:0; background:none; padding:0 0 0 4px; font:inherit; font-size:11px; color:var(--muted); cursor:pointer; opacity:.55}
.hm-b:hover .hm-rb, .hm-rb:focus-visible{opacity:1}
@media(hover:none){ .hm-rb{opacity:.8} }
.hm-bub{user-select:text}
.hm-emo{width:40px; height:40px; flex:none; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); cursor:pointer; font-size:18px; line-height:1; padding:0}
.emo-pop{position:fixed; z-index:1050; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.28); padding:6px; display:grid; grid-template-columns:repeat(8, 36px); gap:2px; max-height:264px; overflow:auto}
.emo-pop.quick{grid-template-columns:repeat(9, 36px); border-radius:999px; padding:4px 8px; overflow:visible}
.emo-pop button{width:36px; height:36px; border:0; background:none; border-radius:8px; font-size:21px; cursor:pointer; line-height:1; padding:0}
.emo-pop button:hover, .emo-pop button:focus-visible{background:var(--surface-2); outline:none}
.emo-pop .more{font-size:17px; color:var(--muted); font-weight:700}
.hm-compose{display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--border); align-items:flex-end}
.hm-compose textarea{flex:1; resize:none; min-height:40px; max-height:120px; box-sizing:border-box; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:10px; padding:9px 11px; font:inherit; font-size:14px; color:var(--ink)}
.hm-empty{margin:auto; text-align:center; color:var(--muted); font-size:13.5px; padding:24px; max-width:320px}
.hm-empty b{display:block; color:var(--ink); font-size:15px; margin-bottom:4px}
.hm-empty.slim{padding:10px}
@media(max-width:760px){
  .hm-wrap{grid-template-columns:1fr; height:auto}
  .hm-list{border-right:0; max-height:420px}
  .hm-conv{display:none; height:460px}
  .hm-card.hm-in .hm-list{display:none}
  .hm-card.hm-in .hm-conv{display:flex}
  .hm-back{display:block}
}

/* ---------- Home: notifications on/off (2026-10-05, moved from Insurance / Client Messaging) ---------- */
.hn-bar{display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:10px 14px}
.hn-bar .hn-ico{flex:none; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent)}
.hn-bar.on{background:var(--surface-2)} .hn-bar.on .hn-ico{background:var(--st-done-soft); color:var(--st-done)}
.hn-bar.warn .hn-ico{background:var(--st-attention-soft); color:var(--st-attention)}
.hn-bar .hn-body{flex:1; min-width:220px; font-size:13.5px; color:var(--ink-2)}
.hn-bar .hn-body b{display:block; color:var(--ink); font-size:14.5px}
.hn-bar .hn-acts{display:flex; gap:8px; flex-wrap:wrap}
.hn-bar .btn.ghost{background:transparent; border-color:transparent; color:var(--ink-2)}
.hn-bar .btn.ghost:hover{color:var(--ink); border-color:var(--border-strong)}
/* /home-extras */

/* ---------- Home: Tasks (2026-10-07, schema part 107) ---------- */
.tk-card{scroll-margin-top:80px}
.tk-ucnt{color:var(--bad); font-weight:700}
.tk-form{display:flex; flex-direction:column; gap:8px; padding:8px 0 12px; border-bottom:1px solid var(--border)}
.tk-f1{display:grid; grid-template-columns:minmax(160px,220px) minmax(0,1fr); gap:8px; align-items:start}
.tk-f2{display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center}
.tk-form select, .tk-form textarea, .tk-form input[type=date]{box-sizing:border-box; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:8px 10px; font:inherit; font-size:14px; color:var(--ink); min-height:40px}
.tk-form textarea{resize:vertical; min-height:40px; max-height:200px; width:100%}
.tk-form select{width:100%}
.tk-form input:disabled{opacity:.45}
.tk-due{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-2); font-weight:600}
.tk-opt{display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--ink-2); cursor:pointer}
.tk-opt input, .tk-showdone input, .tk-check input{width:17px; height:17px; accent-color:var(--brand-red); margin:0}
.tk-opt-u{color:var(--bad)}
.tk-f2 .btn{margin-left:auto}
.tk-tabs{display:flex; align-items:center; gap:4px; padding:10px 0 4px; flex-wrap:wrap}
.tk-tabs [role=tab]{background:transparent; border:1px solid transparent; border-radius:999px; padding:5px 12px; font:inherit; font-size:13px; font-weight:600; color:var(--ink-2); cursor:pointer}
.tk-tabs [role=tab][aria-selected=true]{background:var(--ink); color:var(--surface)}
.tk-tabs [role=tab] .cnt{opacity:.7; margin-left:3px}
.tk-showdone{margin-left:auto; display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); cursor:pointer}
.tk-list{display:flex; flex-direction:column}
.tk-row{display:flex; align-items:flex-start; gap:10px; padding:10px 2px; border-bottom:1px solid var(--border)}
.tk-row:last-child{border-bottom:0}
.tk-row.is-urgent{box-shadow:inset 3px 0 0 var(--brand-red); padding-left:10px}
.tk-check{padding-top:2px; cursor:pointer}
.tk-check .sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
.tk-main{flex:1; min-width:0}
.tk-body{font-size:14px; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere}
.tk-row.is-done .tk-body{text-decoration:line-through; color:var(--muted)}
.tk-meta{display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; margin-top:4px; font-size:12px; color:var(--muted)}
.tk-urgent{background:var(--brand-red); color:#fff; font-weight:700; font-size:11px; letter-spacing:.05em; text-transform:uppercase; padding:2px 7px; border-radius:999px}
.tk-when{font-weight:600; color:var(--ink-2)}
.tk-when.asap{color:var(--st-attention); background:var(--st-attention-soft); padding:1px 7px; border-radius:999px}
.tk-when.today{color:var(--st-attention)}
.tk-when.late{color:var(--bad)}
.tk-when.done{color:var(--good)}
.tk-del{background:transparent; border:0; color:var(--muted); font-size:20px; line-height:1; padding:0 4px; cursor:pointer; border-radius:6px}
.tk-del:hover{color:var(--bad); background:var(--bad-soft)}
.tk-edit{background:transparent; border:1px solid var(--border-strong); color:var(--ink-2); font:inherit; font-size:12px; font-weight:600; padding:3px 9px; cursor:pointer; border-radius:999px; align-self:flex-start; margin-top:1px}
.tk-edit:hover{color:var(--ink); background:var(--surface-2)}
.tk-row.tk-editing{flex-direction:column; align-items:stretch; gap:8px; background:var(--surface-2); border-radius:var(--radius-sm); padding:10px; margin:4px 0; border-bottom:0}
.tk-ehead{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted)}
.tk-editing select, .tk-editing textarea, .tk-editing input[type=date]{box-sizing:border-box; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:8px 10px; font:inherit; font-size:14px; color:var(--ink); min-height:40px}
.tk-editing textarea{resize:vertical; max-height:200px; width:100%}
.tk-editing select{width:100%}
.tk-editing input:disabled{opacity:.45}
.tk-ebtns{margin-left:auto; display:flex; gap:8px}
@media(max-width:640px){
  .tk-f1{grid-template-columns:1fr}
  .tk-ebtns{margin-left:0; flex:1 1 100%}
  .tk-ebtns .btn{flex:1}
  .tk-f2 .btn{margin-left:0; flex:1 1 100%}
}
.tk-opt-r{color:var(--brand-gold, #9a7a2c)}
.tk-due[hidden]{display:none}
.tk-when.rem{color:#7a5a12; background:rgba(201,162,74,.2); padding:1px 7px; border-radius:999px}
.tk-rbtn{background:transparent; border:1px solid var(--border-strong); color:var(--ink-2); font:inherit; font-size:12px; font-weight:600; padding:2px 9px; border-radius:999px; cursor:pointer}
.tk-rbtn:hover{background:var(--surface-2); color:var(--ink)}
.tk-rbtn[aria-expanded=true]{background:var(--ink); color:var(--surface); border-color:var(--ink)}
.tk-rbtn.is-new{border-color:var(--brand-red); color:var(--brand-red)}
.tk-rbtn.is-new[aria-expanded=true]{background:var(--brand-red); color:#fff}
.tk-thread{margin-top:8px; display:flex; flex-direction:column; gap:6px; padding:8px 0 2px 10px; border-left:2px solid var(--border-strong)}
.tk-rep{max-width:100%}
.tk-rh{display:flex; gap:8px; align-items:baseline; font-size:12px; color:var(--muted)}
.tk-rh b{color:var(--ink-2); font-weight:700}
.tk-rb{font-size:14px; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere}
.tk-rep.mine .tk-rh b{color:var(--muted)}
.tk-rform{display:flex; gap:8px; align-items:flex-end; margin-top:2px}
.tk-rform textarea{flex:1; min-width:0; box-sizing:border-box; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:8px 10px; font:inherit; font-size:14px; color:var(--ink); min-height:38px; max-height:160px; resize:vertical}
.tk-rform .btn{flex:none}
/* /home-tasks */

/* ---------- Home: Projects (2026-10-08, schema part 109) ---------- */
.pj-card .ch{align-items:center}
.pj-add{background:transparent; border:0; padding:0; font:inherit; font-size:13px; font-weight:600; color:var(--brand-red); text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.pj-new{display:flex; flex-direction:column; gap:8px; padding:8px 0 12px; border-bottom:1px solid var(--border); margin-bottom:6px}
.pj-new input, .pj-new textarea, .pj-compose textarea{box-sizing:border-box; width:100%; background:var(--surface-2); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:8px 10px; font:inherit; font-size:14px; color:var(--ink); min-height:40px}
.pj-new textarea{resize:vertical; max-height:240px}
.pj-new-b{display:flex; justify-content:flex-end; gap:8px}
.pj-list{display:flex; flex-direction:column}
.pj-item{display:grid; grid-template-columns:1fr auto; gap:2px 12px; text-align:left; width:100%; background:transparent; border:0; border-bottom:1px solid var(--border); padding:10px 2px; font:inherit; color:var(--ink); cursor:pointer}
.pj-item:last-child{border-bottom:0}
.pj-item:hover .pj-t b{color:var(--brand-red)}
.pj-item .pj-t{display:flex; align-items:center; gap:8px; min-width:0; font-size:14px}
.pj-item .pj-t b{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pj-item .pj-m{grid-column:1; font-size:12px; color:var(--muted)}
.pj-item .pj-c{grid-column:2; grid-row:1 / span 2; align-self:center; font-size:12px; color:var(--ink-2); white-space:nowrap}
.pj-item.is-done{opacity:.7}
.pj-fin{display:inline-block; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--good); background:var(--good-soft); padding:1px 7px; border-radius:999px; vertical-align:middle}
.pj-showdone{display:flex; align-items:center; gap:6px; margin-top:8px; font-size:13px; color:var(--muted); cursor:pointer}
.pj-showdone input{width:16px; height:16px; accent-color:var(--brand-red); margin:0}
.pj-head{display:flex; align-items:center; justify-content:space-between; gap:8px; margin:2px 0 8px}
.pj-back{background:transparent; border:0; padding:4px 0; font:inherit; font-size:13px; font-weight:600; color:var(--ink-2); cursor:pointer}
.pj-back:hover{color:var(--ink)}
.pj-acts{display:flex; gap:6px}
.pj-acts .btn.sm{padding:5px 10px; font-size:12.5px; min-height:0}
.pj-delp:hover{color:var(--bad); border-color:var(--bad)}
.pj-top{padding:0 0 10px; border-bottom:1px solid var(--border)}
.home-card h3.pj-title{margin:0 0 3px; font-size:16px; letter-spacing:-.01em; text-transform:none; color:var(--ink)}
.pj-stamp{font-size:12px; color:var(--muted)}
.pj-stamp b{color:var(--ink-2); font-weight:600}
.pj-desc{margin-top:8px; font-size:14px; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere}
.pj-posts{display:flex; flex-direction:column; gap:12px; padding:12px 0; max-height:420px; overflow-y:auto}
.pj-post{display:flex; gap:10px; align-items:flex-start}
.pj-av{flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:var(--gold-soft); color:var(--ink-2); font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center}
.pj-post.mine .pj-av{background:var(--accent-soft); color:var(--brand-red)}
.pj-pb{flex:1; min-width:0}
.pj-ph{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; font-size:13px}
.pj-ph b{color:var(--ink)}
.pj-ph time{font-size:12px; color:var(--muted)}
.pj-ph em{font-size:11px; color:var(--muted)}
.pj-delpost{margin-left:auto; background:transparent; border:0; color:var(--muted); font-size:18px; line-height:1; padding:0 4px; cursor:pointer; border-radius:6px; opacity:.6}
.pj-post:hover .pj-delpost{opacity:1}
.pj-delpost:hover{color:var(--bad); background:var(--bad-soft)}
.pj-body{margin-top:2px; font-size:14px; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere}
.pj-compose{display:flex; gap:8px; align-items:flex-end; border-top:1px solid var(--border); padding-top:10px}
.pj-compose textarea{flex:1; resize:vertical; max-height:200px}
.pj-closed{border-top:1px solid var(--border); padding-top:10px; font-size:13px; color:var(--muted)}
@media(max-width:640px){ .pj-item{grid-template-columns:1fr} .pj-item .pj-c{grid-column:1; grid-row:auto} .pj-posts{max-height:none} }
/* part 114: who's on it + pictures */
.pj-who{border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; background:var(--surface-2)}
.pj-who-h{display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; color:var(--ink)}
.pj-ev{display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ink); cursor:pointer}
.pj-ev input, .pj-pp input{width:16px; height:16px; accent-color:var(--brand-red); margin:0}
.pj-new .pj-q, .pj-editbox .pj-q{min-height:34px; margin-top:8px; padding:6px 10px; font-size:13px; background:var(--surface)}
.pj-ppl{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; max-height:168px; overflow-y:auto}
.pj-pp{display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border:1px solid var(--border-strong); border-radius:999px; background:var(--surface); font-size:13px; color:var(--ink-2); cursor:pointer; user-select:none}
.pj-pp.on{border-color:var(--brand-red); background:var(--accent-soft); color:var(--ink)}
.pj-none{font-size:13px; color:var(--muted)}
.pj-who-note{margin-top:6px; font-size:12px; color:var(--muted)}
.pj-whotag{color:var(--ink-2)}
.pj-whotag.some{color:var(--brand-red); font-weight:600}
.pj-onit{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin-top:4px; font-size:12.5px; color:var(--ink-2)}
.pj-onit small{color:var(--muted); font-size:11px}
.pj-editppl{background:transparent; border:0; padding:0; font:inherit; font-size:12.5px; font-weight:600; color:var(--brand-red); text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.pj-editbox{margin-top:8px; display:flex; flex-direction:column; gap:8px}
.pj-imgs{display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:6px; margin-top:6px; max-width:460px}
.pj-imgs.one{grid-template-columns:minmax(0, 320px)}
.pj-img{display:block; padding:0; border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--surface-2); cursor:zoom-in; aspect-ratio:4 / 3}
.pj-imgs.one .pj-img{aspect-ratio:auto; max-height:260px}
.pj-img img{display:block; width:100%; height:100%; object-fit:cover}
.pj-imgs.one .pj-img img{object-fit:contain; max-height:258px; background:var(--surface-2)}
.pj-imgph{display:flex; align-items:center; justify-content:center; height:100%; min-height:80px; font-size:12px; color:var(--muted)}
.pj-compose{flex-direction:column; align-items:stretch}
.pj-crow{display:flex; gap:8px; align-items:flex-end}
.pj-att{flex:0 0 40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--ink-2); cursor:pointer}
.pj-att:hover{color:var(--brand-red); border-color:var(--brand-red)}
.pj-tray{display:flex; flex-wrap:wrap; gap:6px}
.pj-tr{position:relative; width:64px; height:64px; border-radius:8px; overflow:hidden; border:1px solid var(--border-strong); background:var(--surface-2)}
.pj-tr img{width:100%; height:100%; object-fit:cover; display:block}
.pj-tr button{position:absolute; top:2px; right:2px; width:20px; height:20px; border-radius:50%; border:0; background:rgba(0,0,0,.65); color:#fff; font-size:14px; line-height:20px; padding:0; cursor:pointer}
.pj-card{position:relative}
.pj-dropov{display:none}
.pj-card.pj-dragging .pj-dropov{display:flex; position:absolute; inset:0; z-index:5; align-items:center; justify-content:center; border:2px dashed var(--brand-red); border-radius:inherit; background:color-mix(in srgb, var(--surface) 88%, transparent); pointer-events:none}
.pj-dropov span{font-weight:700; color:var(--brand-red); font-size:14px; padding:0 16px; text-align:center}
.pj-lb{position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.86); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px}
.pj-lb img{max-width:100%; max-height:calc(100vh - 90px); object-fit:contain; border-radius:6px; background:#111}
.pj-lb-b{display:flex; gap:16px; align-items:center}
.pj-lb-b a, .pj-lb-b button{color:#fff; font:inherit; font-size:14px; font-weight:600; background:transparent; border:1px solid rgba(255,255,255,.5); border-radius:6px; padding:6px 14px; cursor:pointer; text-decoration:none}
@media(max-width:640px){ .pj-imgs{max-width:none} .pj-ppl{max-height:200px} }
/* /home-projects */
#home-body > .pj-card{margin-top:14px}

/* Weather bar + NWS alert banner + Today's headlines (2026-10-11) */
.wx-bar{display:flex; align-items:center; gap:10px 22px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--brand-gold); border-radius:var(--radius); padding:10px 14px; margin:0 0 14px; box-shadow:var(--shadow)}
.wx-bar[hidden], .wx-alert[hidden]{display:none}
.wx-now{display:flex; align-items:baseline; gap:8px}
.wx-now b{font-size:28px; line-height:1; letter-spacing:-.02em}
.wx-now span{font-weight:600; color:var(--ink-2)}
.wx-day{display:flex; flex-direction:column; font-size:13px; color:var(--ink-2); line-height:1.35}
.wx-day .wx-rain{color:var(--muted)}
.wx-hours{display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; flex:1 1 260px; min-width:0}
.wx-hours::-webkit-scrollbar{display:none}
.wx-h{flex:none; display:flex; flex-direction:column; align-items:center; min-width:52px; padding:4px 6px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); font-size:12px; line-height:1.3}
.wx-h em{font-style:normal; color:var(--muted); font-size:11px}
.wx-h b{font-size:14px}
.wx-h i{font-style:normal; color:var(--muted); font-size:11px}
.wx-src{font-size:11.5px; color:var(--muted); margin-left:auto; white-space:nowrap}
.wx-src a{color:inherit; text-decoration:underline; text-underline-offset:2px}
@media(max-width:640px){ .wx-src{margin-left:0; width:100%} }
.wx-alert{display:flex; flex-direction:column; gap:8px; margin:0 0 14px}
.wx-al{background:var(--brand-red); color:#fff; border-radius:var(--radius); box-shadow:var(--shadow)}
.wx-al summary{display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; padding:11px 14px; cursor:pointer; list-style:none}
.wx-al summary::-webkit-details-marker{display:none}
.wx-al summary b{font-size:15px}
.wx-al summary span{flex:1; min-width:200px; font-size:13.5px; opacity:.95}
.wx-al summary em{font-style:normal; font-size:12.5px; font-weight:600; border:1px solid rgba(255,255,255,.6); border-radius:6px; padding:3px 10px}
.wx-al[open] summary em{background:rgba(255,255,255,.18)}
.wx-al-b{padding:0 14px 12px; font-size:13.5px; line-height:1.5}
.wx-al-b p{margin:0 0 8px}
.wx-al-b .wx-al-s{font-size:11.5px; opacity:.8; margin:0}
.nh-strip{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:10px 14px 4px; margin:0 0 14px}
.nh-strip[hidden]{display:none}
.nh-h{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.nh-h h2{margin:0; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700}
.nh-h a{font-size:13px; font-weight:600; color:var(--brand-red); text-decoration:none}
.nh-strip .nh-list{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 18px}
.nh-strip .nh-row{border-bottom:0}
.nh-strip .empty.slim{grid-column:1 / -1; padding:10px 0; text-align:left}
@media(max-width:760px){ .nh-strip .nh-list{grid-template-columns:1fr} .nh-strip .nh-row{border-bottom:1px solid var(--border)} .nh-strip .nh-row:last-child{border-bottom:0} }
.nh-row{display:flex; flex-direction:column; gap:2px; padding:9px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--ink)}
.nh-row:last-child{border-bottom:0}
.nh-row b{font-size:14px; font-weight:600; line-height:1.35}
.nh-row:hover b{color:var(--brand-red); text-decoration:underline; text-underline-offset:3px}
.nh-row span{font-size:12px; color:var(--muted)}
.nh-row i{font-style:normal}
/* /weather + headlines */

/* ===== Compact Home (2026-10-11): ~1.5 screens instead of ~4.5 ===== */
.home-top{display:flex; gap:14px; align-items:stretch; margin:0 0 14px}
.home-top > .wx-bar, .home-top > .nh-strip{margin:0; min-width:0}
.home-top > .wx-bar{flex:5 1 0; gap:8px 16px; padding:10px 14px}
.home-top > .nh-strip{flex:7 1 0; padding:10px 14px 6px}
.home-top .wx-src{margin-left:0; width:100%}
.home-top .wx-h{min-width:46px; padding:3px 5px}
.home-top .nh-strip .nh-list{grid-template-columns:1fr; gap:0}
.home-top .nh-row{flex-direction:row; align-items:baseline; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--border)}
.home-top .nh-row:last-child{border-bottom:0}
.home-top .nh-row b{font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0}
.home-top .nh-row span{flex:none; white-space:nowrap}
@media(max-width:900px){ .home-top{flex-direction:column} .home-top > .wx-bar, .home-top > .nh-strip{flex:none} /* 2026-10-12: a 0 flex-basis squashed Today's headlines to a sliver on phones */ .home-top .nh-row{flex-direction:column; gap:1px} .home-top .nh-row b{white-space:normal} }

.home-status{display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px 22px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:10px 14px}
.hs-g h2{margin:0 0 6px; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:700}
.hs-row{display:flex; flex-wrap:wrap; gap:6px}
.hs-i{display:inline-flex; align-items:center; gap:8px; padding:6px 11px; border-radius:8px; text-decoration:none; color:var(--ink); background:var(--surface-2); border:1px solid var(--border); font-size:13px; font-weight:600; line-height:1.2; transition:transform .12s, box-shadow .12s}
a.hs-i:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.hs-i b{font-size:19px; font-weight:700}
.hs-i.warn{background:var(--st-attention-soft); border-color:transparent} .hs-i.warn b{color:var(--st-attention)}
.hs-i.bad{background:var(--st-overdue-soft); border-color:transparent} .hs-i.bad b{color:var(--st-overdue)}
.hs-i.info{background:var(--st-progress-soft); border-color:transparent} .hs-i.info b{color:var(--st-progress)}
.hs-i.ok{font-weight:500; color:var(--muted); padding:5px 9px; font-size:12.5px; gap:6px} .hs-i.ok b{color:var(--st-done); font-size:15px}
.hs-mw{grid-column:1 / -1}
.hs-month .hs-row{flex-wrap:nowrap}
.hs-i.hs-m{background:var(--bar); color:rgba(246,244,240,.8); border-color:transparent; font-weight:500; padding:6px 10px; gap:6px; font-size:12.5px} .hs-i.hs-m b{color:#F6F4F0; font-size:17px}
@media(max-width:1100px){ .home-status{grid-template-columns:1fr} .hs-month .hs-row{flex-wrap:wrap} }

.home-grid3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; margin-top:14px}
@media(max-width:1100px){ .home-grid3{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:760px){ .home-grid3{grid-template-columns:1fr} }
.home-grid3 > .home-card{margin:0}
#home-body .home-grid3 > .pj-card{margin-top:0}
.home-grid3 .tk-list{max-height:430px; overflow-y:auto}
.home-grid3 .tk-form{padding-top:4px}
.home-grid3 .home-card .ch .btn.sm{padding:4px 10px; font-size:12.5px}
.hd-more{display:inline-block; margin-top:6px; font-size:13px; font-weight:600; color:var(--brand-red); text-decoration:none}
.wk-chips{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-top:4px}
.wk-c{display:flex; flex-direction:column; align-items:center; padding:5px 2px; border:1px solid var(--border); border-radius:8px; text-decoration:none; color:var(--ink); line-height:1.2; background:var(--surface-2)}
.wk-c b{font-size:10.5px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em}
.wk-c span{font-size:12px; color:var(--ink-2)}
.wk-c em{font-style:normal; font-weight:700; font-size:15px; margin-top:1px}
.wk-c.none em{color:var(--muted); font-weight:500}
.wk-c.has{background:var(--st-progress-soft); border-color:transparent} .wk-c.has em{color:var(--st-progress)}
.wk-c.today{box-shadow:inset 0 0 0 2px var(--brand-red)}
.home-extra .hx-row{margin-top:0}
/* Messages in a one-third card: one pane at a time (list, or the open conversation with ‹ back) */
.hx-row .hm-wrap{grid-template-columns:1fr; height:auto}
.hx-row .hm-list{border-right:0; max-height:360px}
.hx-row .hm-conv{display:none; height:420px}
.hx-row .hm-card.hm-in .hm-list{display:none}
.hx-row .hm-card.hm-in .hm-conv{display:flex}
.hx-row .hm-back{display:block}
/* Trade Appraisal pop-up */
.hx-modal{position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.5); display:flex; align-items:flex-start; justify-content:center; padding:5vh 16px; overflow-y:auto}
.hx-modal[hidden]{display:none}
.hx-modal-box{position:relative; width:min(660px,100%)}
.hx-modal-box > .home-card{margin:0; padding-top:16px}
.hx-x{position:absolute; top:-14px; right:-14px; z-index:2; width:34px; height:34px; border-radius:50%; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-size:20px; line-height:1; cursor:pointer; box-shadow:var(--shadow)}
body.hx-lock{overflow:hidden}
@media(max-width:640px){ .hx-modal{padding:0} .hx-modal-box{width:100%; min-height:100%} .hx-modal-box > .home-card{border-radius:0; min-height:100vh; padding-top:44px} .hx-x{top:8px; right:10px} }
.home-top > .nh-strip{overflow:hidden}
.home-top .nh-strip .nh-list{grid-template-columns:minmax(0,1fr)}
.home-top .nh-row{min-width:0}
.home-top .nh-row b{flex:1 1 auto}
/* Helpful links in a one-third column: smaller chips, tighter group headings */
.hx-row #home-links h3.hl-g{margin:10px 0 5px; font-size:10.5px}
.hx-row #home-links .hl-chips{gap:5px}
.hx-row #home-links .hl-chip{padding:4px 9px; font-size:12.5px; border-radius:7px}
.hx-row #home-links .hl-wifi{padding:7px 10px; gap:10px}
/* /compact Home */

/* 2026-10-12 Sean's fix list: scope line on Home's deal bars, "My appraisals" (status only) */
.hb-scope{font-size:12px; color:var(--muted); margin:-2px 0 8px} .hb-scope span{color:var(--muted)}
button.hs-i{font:inherit; font-weight:600; cursor:pointer} button.hs-i:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.ta-mine{border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:0 0 12px; background:var(--surface-2)}
.ta-mine h3{margin:0 0 6px; font-size:13px} .ta-mine h3 span{font-weight:500; color:var(--muted); font-size:12px}
.ta-mine-r{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 0; border-top:1px solid var(--border); font-size:13px}
.ta-mine-r:first-of-type{border-top:0}
.ta-mine-r .hw{display:flex; flex-direction:column; min-width:0} .ta-mine-r .hw span{color:var(--muted); font-size:12px}
.ta-mine-v{display:inline-flex; align-items:center; gap:8px; white-space:nowrap} .ta-mine-v b{font-size:14px; font-variant-numeric:tabular-nums}
.ta-mine-n{margin:6px 0 0; font-size:11.5px; color:var(--muted)}

/* 2026-10-12 smarter tasks (Sean's fix list #7): groups, Priority, deal link, Snooze */
.tk-grp h3{margin:12px 0 2px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.tk-grp h3 .cnt{font-weight:600; opacity:.8; margin-left:2px}
.tk-grp-overdue h3{color:var(--bad)} .tk-grp-today h3{color:var(--st-attention)}
.tk-grp:first-child h3{margin-top:6px}
.tk-when.snz{color:var(--st-progress); background:var(--st-progress-soft); padding:1px 7px; border-radius:999px}
.tk-when.sub{font-weight:500; color:var(--muted)}
.tk-when.nod{font-weight:500; color:var(--muted)}
.tk-deal{margin-top:3px; font-size:12.5px; color:var(--ink-2); overflow-wrap:anywhere}
.tk-deal a{color:inherit} .tk-deal a b{color:var(--ink)}
.tk-snz{position:relative; display:inline-block}
.tk-sbtn{background:transparent; border:1px solid var(--border-strong); color:var(--ink-2); font-size:12px; font-weight:600; padding:2px 9px; border-radius:999px}
.tk-sbtn:hover, .tk-snz[open] .tk-sbtn{background:var(--surface-2); color:var(--ink)}
.tk-snz summary{list-style:none; cursor:pointer} .tk-snz summary::-webkit-details-marker{display:none}
.tk-snz-m{position:absolute; z-index:30; left:0; top:calc(100% + 4px); min-width:180px; display:flex; flex-direction:column; gap:2px; padding:6px; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow)}
.tk-snz-m button{background:transparent; border:0; text-align:left; font:inherit; font-size:13px; color:var(--ink); padding:6px 8px; border-radius:6px; cursor:pointer}
.tk-snz-m button:hover{background:var(--surface-2)}
.tk-snz-m label{display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); padding:6px 8px}
.tk-snz-m input{font:inherit; font-size:13px; padding:4px 6px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface-2); color:var(--ink)}
.tk-dpick{position:relative; flex:1 1 220px; min-width:200px}
.tk-dpick input{width:100%; box-sizing:border-box; font:inherit; font-size:13.5px; padding:7px 10px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface-2); color:var(--ink)}
.tk-editing .tk-dpick input{background:var(--surface)}
.tk-dres{position:absolute; z-index:30; left:0; right:0; top:calc(100% + 4px); display:flex; flex-direction:column; padding:4px; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow)}
.tk-dres button{display:flex; flex-direction:column; align-items:flex-start; gap:1px; background:transparent; border:0; text-align:left; font:inherit; padding:6px 8px; border-radius:6px; cursor:pointer; color:var(--ink)}
.tk-dres button:hover, .tk-dres button:focus-visible{background:var(--surface-2)}
.tk-dres button span{font-size:12px; color:var(--muted)}
.tk-dres em{font-size:12.5px; color:var(--muted); padding:6px 8px}
.tk-dchip{display:inline-flex; align-items:center; gap:6px; font-size:13px; background:var(--st-progress-soft); color:var(--ink); padding:4px 6px 4px 10px; border-radius:999px}
.tk-dchip button{background:transparent; border:0; font-size:16px; line-height:1; cursor:pointer; color:var(--muted); padding:0 4px}

/* My month: the split under a count (2026-10-12) */
.hs-i .hs-split{display:block; font-size:11px; font-weight:500; color:var(--muted); margin-top:1px}
.hs-i > span{display:inline-flex; flex-direction:column}
