@charset "UTF-8";
/* Threshold dashboard polish (Nov 2026). Loads after theme.css and refines the warm-editorial look:
   real hierarchy (what needs you first), quiet depth, tighter rhythm, calmer status colors, and motion
   that helps rather than decorates. Rules use #app so they win over theme.css's broad !important resets. */

:root {
  --p-shadow: 0 1px 2px rgba(34, 29, 23, .04), 0 10px 30px -18px rgba(34, 29, 23, .18);
  --p-shadow-hover: 0 2px 4px rgba(34, 29, 23, .05), 0 18px 40px -16px rgba(34, 29, 23, .24);
  --p-radius: 0;
  --p-green: var(--accent, #3F6B50);
  --p-green-soft: #E7EFE9;
  --p-red: #B42318;
  --p-red-soft: #FBEAE7;
  --p-amber: #8A5A12;
  --p-amber-soft: #F8EDD6;
  --p-ink: #1C1C1C;
  --p-muted: #6D6D6D;
  --p-line: #E2E2E2;
}

/* ---------- rhythm ---------- */
#app .wrap.body-wrap { padding-top: 24px !important; }
#app .masthead-in { padding-block: 14px 22px !important; }
#app .hello { gap: 4px !important; }
#app .hello .eyebrow { font-size: 12px !important; color: var(--p-muted) !important; }
#app .hello h1 { font-size: 32px !important; line-height: 1.1 !important; }
#app .hello .sub { font-size: 14.5px !important; }
#app .tabs { margin-top: 6px !important; }
#app .tab { padding: 10px 12px !important; font-size: 14px !important; }
#app .tab .badge { background: var(--p-red) !important; color: #fff !important; font-size: 10.5px !important; min-width: 17px !important; height: 17px !important; }

/* ---------- cards: quiet depth, one radius ---------- */
#app .bt, #app .box, #app .start, #app .needs { border-radius: 0 !important; border: 1px solid var(--p-line) !important; background: #FFFFFF !important; box-shadow: var(--p-shadow) !important; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease !important; }
#app button.bt:hover, #app .bt-list:hover { transform: translateY(-2px) !important; box-shadow: var(--p-shadow-hover) !important; border-color: #D4D4D4 !important; }
#app button.bt:active { transform: translateY(0) !important; box-shadow: var(--p-shadow) !important; }
#app .bento { gap: 14px !important; }
#app .bt { padding: 18px 20px !important; }
#app .bt-list { padding: 16px 18px 8px !important; }
#app .bt-head { margin-bottom: 4px !important; align-items: center !important; }
#app .bt-head h3 { font-size: 17px !important; }
#app .bt-link { font-size: 12.5px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600 !important; color: var(--p-green) !important; }
#app .bt-link:hover { color: var(--p-ink) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Needs you: the first thing on the page ---------- */
#app .needs { grid-column: span 3; padding: 16px 18px 10px !important; border-left: 3px solid var(--p-red) !important; }
#app .needs.clear { border-left-color: var(--p-green) !important; padding-bottom: 16px !important; }
#app .needs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
#app .needs-head h3 { margin: 0 !important; font-size: 17px !important; display: flex; align-items: center; gap: 10px; }
#app .needs-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-red); box-shadow: 0 0 0 0 rgba(180, 35, 24, .5); animation: needping 2s infinite; }
#app .needs.clear .needs-head .dot { background: var(--p-green); animation: none; }
@keyframes needping { 70% { box-shadow: 0 0 0 7px rgba(180, 35, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); } }
#app .needs p { margin: 0 !important; color: var(--p-muted) !important; font-size: 14px !important; }
#app .needs .row { padding: 10px 2px !important; }
#app .needs .row-when { color: var(--p-red) !important; }
#app .needs .row .btn.small { padding: 6px 12px !important; font-size: 13px !important; }

/* ---------- KPI tiles ---------- */
#app .bt-kpi { min-height: 118px !important; gap: 2px !important; }
#app .bt-kpi small { font-size: 12px !important; font-weight: 600 !important; color: var(--p-muted) !important; }
#app .bt-kpi b { font-size: 34px !important; line-height: 1.05 !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em !important; }
#app .bt-kpi > span { font-size: 13px !important; color: var(--p-muted) !important; }
#app .bt-kpi::after { top: 16px !important; right: 18px !important; color: #C4C4C4 !important; font-size: 15px; }
#app .bt-kpi:hover::after { color: var(--p-ink) !important; }

/* ---------- Today tile ---------- */
#app .bt-next { background: #FFFFFF !important; gap: 4px !important; }
#app .bt-label { font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--p-muted) !important; }
#app .bt-when { font-size: 24px !important; margin-top: 8px !important; font-weight: 600 !important; }
#app .bt-next-title { font-size: 16px !important; font-weight: 600 !important; }
#app .bt-prog { margin: 10px 0 4px !important; height: 4px !important; border-radius: 0 !important; }
#app .bt-prog i { background: var(--p-green) !important; border-radius: 0; }
#app .bt-after li { font-size: 13px !important; }

/* ---------- Lists: deadlines and deals ---------- */
#app .rows { margin-top: 2px; }
#app .row { padding: 11px 6px !important; border-radius: 0 !important; border-top: 1px solid var(--p-line) !important; transition: background .15s ease; gap: 12px !important; }
#app .row:first-child { border-top: 0 !important; }
#app .row:hover { background: #F2F2F2 !important; }
#app .row:focus-visible { outline: 2px solid var(--p-green) !important; outline-offset: -2px; }
#app .row-date { width: 44px !important; }
#app .row-date b { font-size: 20px !important; line-height: 1 !important; font-variant-numeric: lining-nums tabular-nums; }
#app .row-date small { font-size: 10.5px !important; color: var(--p-muted) !important; font-weight: 600 !important; }
#app .row-date.late { position: relative; }
#app .row-date.late b { color: var(--p-red) !important; }
#app .row-title { font-size: 14.5px !important; font-weight: 600 !important; }
#app .row-main small { font-size: 12.5px !important; }
#app .row-when { font-size: 12.5px !important; font-weight: 600 !important; padding: 4px 9px; border-radius: 0; background: #EFEFEF; color: var(--p-muted) !important; }
#app .row-when.late { background: var(--p-red-soft); color: var(--p-red) !important; }
#app .row-when.soon { background: var(--p-amber-soft); color: var(--p-amber) !important; }
#app .row-when.ok { background: var(--p-green-soft); color: var(--p-green) !important; }

/* deal rows: photo, progress, next step, status */
#app .row .swatch { width: 60px !important; height: 44px !important; border-radius: 0 !important; }
#app .row-deal { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
#app .row-deal .segs { gap: 3px; margin-top: 1px; }
#app .row-deal .segs span { height: 4px !important; border-radius: 0 !important; background: #E4E4E4 !important; }
#app .row-deal .segs span.done { background: var(--p-green) !important; }
#app .row-deal .segs span.now { background: #C8A96B !important; box-shadow: none !important; }
#app .row-deal .row-next { font-size: 12.5px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .row-deal .row-next b { color: var(--p-ink); font-weight: 600; }
#app .deal-state { border-radius: 0 !important; font: 600 11.5px/1 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; padding: 5px 10px !important; }
#app .deal-state.pending { background: var(--p-green-soft) !important; color: var(--p-green) !important; }
#app .deal-state.live { background: #EEF3FB !important; color: #2F5A9E !important; }
#app .deal-state.urgent, #app .deal-state.check { background: var(--p-red-soft) !important; color: var(--p-red) !important; }
#app .deal-state.soon { background: var(--p-amber-soft) !important; color: var(--p-amber) !important; }
#app .deal-state.ready { background: var(--p-green-soft) !important; color: var(--p-green) !important; }

/* ---------- Assistant tile: calmer, shorter, and useful when quiet ---------- */
#app .bt-ai { grid-column: span 4 !important; min-height: 0 !important; padding: 18px 20px !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; grid-template-areas: "live asks" "num asks" "sub asks" "stats link" !important; background: #FFFFFF !important; color: var(--p-ink) !important; }
#app .bt-ai .a-live { font-size: 12px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600 !important; color: #1F6B41 !important; }
#app .bt-ai-num { font-size: 30px !important; margin-top: 6px !important; }
#app .bt-ai-sub { font-size: 14px !important; margin-top: 2px !important; }
#app .bt-ai-stats { margin-top: 12px !important; gap: 6px !important; }
#app .bt-ai-stats button { font-size: 12.5px !important; padding: 6px 11px !important; border: 1px solid var(--p-line) !important; border-radius: 0 !important; background: #F6F6F6 !important; color: var(--p-muted) !important; }
#app .bt-ai-stats b { font-size: 14px !important; color: var(--p-ink) !important; margin-right: 5px !important; }
#app .bt-ask { font-size: 14.5px !important; padding: 12px 14px !important; border-radius: 0 !important; background: #F6F6F6 !important; border: 1px solid var(--p-line) !important; color: var(--p-ink) !important; }
#app .bt-ask.clear { font-size: 13.5px !important; color: var(--p-muted) !important; }
#app .bt-ai .bt-link { color: var(--p-green) !important; }

/* ---------- Start panel: compact once anything is in ---------- */
#app .start { padding: 22px 22px 16px !important; }
#app .start-head { margin-bottom: 16px !important; }
#app .start-head h2 { font-size: 24px !important; margin: 6px 0 4px !important; }
#app .start-head p { font-size: 14px !important; }
#app .sc { border-radius: 0 !important; padding: 16px 18px !important; }
#app .sc-art { height: 96px !important; margin: 8px 0 10px !important; }
#app .sc h3 { font-size: 17px !important; }
#app .sc p { font-size: 13px !important; margin-bottom: 12px !important; }
#app .sc-cta { padding: 10px 14px !important; }
#app .start-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px !important; margin: 0 0 14px; border-radius: 0; border: 1px solid var(--p-line); background: #FFFFFF; box-shadow: var(--p-shadow); }
#app .start-mini-meter { width: 72px; height: 5px; border-radius: 0; background: #E6E6E6; overflow: hidden; flex: none; }
#app .start-mini-meter i { display: block; height: 100%; background: var(--p-green); transition: width .6s ease; }
#app .start-mini b { font-weight: 600; font-size: 14px; }
#app .start-mini span.note { font-size: 13px; }
#app .start-mini .gap { flex: 1; }
#app .start-mini label { position: relative; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--p-green); padding: 7px 12px; border: 1px solid var(--p-line); border-radius: 0; background: #fff; }
#app .start-mini label:hover { border-color: var(--p-green); }
#app .start-mini label input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------- Buttons ---------- */
#app .btn:not(.ghost):not(.link) { box-shadow: 0 1px 2px rgba(34, 29, 23, .12), inset 0 1px 0 rgba(255, 255, 255, .12) !important; }
#app .btn:not(.ghost):not(.link):hover { filter: brightness(1.05) !important; }
#app .btn:active { transform: translateY(1px) !important; }


/* ---------- Type: IBM Plex Sans throughout (user's pick) ---------- */
:root, #app, #modal-root { --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --head: var(--sans); --serif: var(--sans); --caps: var(--sans); }
:is(#app, #modal-root) h1, :is(#app, #modal-root) h2, :is(#app, #modal-root) h3, :is(#app, #modal-root) h4 { font-family: var(--head) !important; letter-spacing: -0.02em !important; }
:is(#app, #modal-root) h1 { font-weight: 700 !important; }
:is(#app, #modal-root) h2, :is(#app, #modal-root) h3 { font-weight: 600 !important; }
#app .page-head h1, #app .hello h1 { font-size: clamp(26px, 3vw, 32px) !important; line-height: 1.15 !important; }
#app .brand b { font-family: var(--head) !important; font-weight: 700 !important; letter-spacing: -0.01em !important; }
#app .eyebrow, #app .stat small, #app .fact small, #app .dow, #app .dhead small, #app .ctag { font-family: var(--sans) !important; letter-spacing: .04em !important; text-transform: none !important; font-weight: 500 !important; font-size: 12px !important; }
#app .stat b, #app .fact b, #app .bt-kpi b, #app .bt-kpi .num, #app .bt-ai-num, #app .bt-when, #app .proof-num, #app .yr-val, #app .ptable td.num, #app .ptable b, #app .card .addr, #app .month-nav b, #app .row-date b, #app .cgroup-head .addr, #app .stats.hero .stat b { font-family: var(--head) !important; letter-spacing: -0.015em !important; font-variant-numeric: tabular-nums lining-nums; }
#app .stats.hero .stat b { font-size: 30px !important; font-weight: 700 !important; }
#app .fact b { font-size: 22px !important; font-weight: 600 !important; }
#app, #modal-root { font-variant-numeric: lining-nums; }

/* ---------- Calendar: the familiar grid ---------- */
#app .cal-bar { margin: 12px 0 12px; }
#app .month-nav { gap: 6px; }
#app .month-nav .nav-btn { width: 34px; height: 34px; padding: 0 !important; border-radius: 0 !important; display: grid; place-items: center; font-size: 22px; line-height: 1; }
#app .month-nav .today-btn { height: 34px; padding: 0 12px !important; font-size: 13px; font-weight: 500; border-radius: 0 !important; margin-right: 4px; }
#app .month-nav .today-btn:disabled { opacity: .45; }
#app .month-nav b { font-family: var(--head) !important; font-size: 20px !important; font-weight: 600 !important; margin-left: 8px !important; }
#app .seg { background: #EEEEEE !important; border-radius: 0 !important; padding: 3px !important; }
#app .seg button { border-radius: 0 !important; padding: 6px 14px !important; font-size: 13px !important; }
#app .seg button.on { font-weight: 600 !important; }
#app .cal { gap: 0 !important; background: #fff !important; border-radius: 0 !important; box-shadow: var(--p-shadow); }
#app .cal > :nth-child(7n) { border-right: 0 !important; }
#app .dow { background: #fff !important; padding: 10px 6px 8px; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--muted); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--sans) !important; }
#app .day { background: #fff !important; min-height: 112px; padding: 6px 6px 8px; gap: 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#app .cal > .day:nth-last-child(-n+7) { border-bottom: 0; }
#app .day.blank { background: #FFFFFF !important; }
#app .day .num { font-size: 12px; font-weight: 500; width: 24px; height: 24px; color: var(--ink); margin-bottom: 2px; }
#app .day.past .num { color: var(--muted); }
#app .day.today { background: #F7FAF7 !important; }
#app .day.today .num { background: var(--p-green) !important; color: #fff !important; font-weight: 600; }
#app .ev { border-radius: 0; padding: 2px 6px 2px 5px; font-size: 12px; line-height: 1.35; gap: 5px; background: color-mix(in srgb, var(--c) 13%, #fff); border-left: 3px solid var(--c); color: var(--ink); }
#app .ev:hover { background: color-mix(in srgb, var(--c) 24%, #fff); filter: none; }
#app .ev .evdot { display: none; }
#app .ev.deadline-ev { --c: var(--ink); background: var(--ink); border-left-color: var(--ink); color: #fff; font-weight: 500; }
#app .ev.deadline-ev.late { background: var(--p-red); border-left-color: var(--p-red); }
#app .ev.deadline-ev.done { background: #EEEEEE; border-left-color: #CACACA; color: var(--muted); text-decoration: line-through; }
#app .more { font-size: 11px; font-weight: 500; color: var(--muted); padding: 1px 6px; }
#app .type-key { margin: 12px 2px 0; font-size: 12px; gap: 4px 14px; }
#app .type-key i { width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
/* week and day */
#app .tgrid-wrap { border-radius: 0 !important; box-shadow: var(--p-shadow); }
#app .dhead { padding: 8px 6px 10px; gap: 2px; }
#app .dhead small { letter-spacing: .06em !important; font-weight: 600 !important; font-size: 11px !important; text-transform: uppercase !important; }
#app .dhead b { font-family: var(--head) !important; font-size: 19px; width: 32px; height: 32px; font-weight: 600; }
#app .dhead.today b { background: var(--p-green) !important; color: #fff !important; }
#app .dhead:hover { background: #F6F6F6; }
#app .tcol.today { background-color: #F7FAF7; }
#app .slot:hover { background: rgba(63, 107, 80, .07); }
#app .evb { border-radius: 0; box-shadow: none; }
#app .deadline { border-radius: 0; background: var(--ink); }
#app .deadline.done { background: #EEEEEE; color: var(--muted); }
#app .gutter .hr span { font-size: 11px; }
/* phone-calendar setup, folded under the grid */
#app .cal-setup { margin-top: 24px; }
#app .cal-setup > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 0; box-shadow: var(--p-shadow); font-size: 14px; }
#app .cal-setup > summary::-webkit-details-marker { display: none; }
#app .cal-setup > summary b { font-weight: 600; }
#app .cal-setup > summary .note { flex: 1 1 260px; margin: 0; }
#app .cal-setup > summary .btn { margin-left: auto; }
#app .cal-setup[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
#app .cal-setup .if-open, #app .cal-setup[open] .if-closed { display: none; }
#app .cal-setup[open] .if-open { display: inline; }
#app .cal-setup .cal-connect { margin: 0; border-radius: 0; border-top: 0; background: #FFFFFF; padding: 22px 22px 20px; }
#app .cal-connect-head h2 { font-size: 24px !important; }
#app .cal-steps li, #app .cal-paste { border-radius: 0; box-shadow: none; }
#app .cal-linked, #app .feed-box { margin-top: 24px; border-radius: 0; }

/* ---------- Performance ---------- */
#app .stats.hero { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { #app .stats.hero { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
#app .stat { border-radius: 0 !important; padding: 16px 18px !important; box-shadow: var(--p-shadow); gap: 2px; }
#app .stat::before { display: none; }
#app .stat:hover { transform: none; box-shadow: var(--p-shadow); }
#app .stat small { margin-bottom: 4px; }
#app .stat span { font-size: 13px; color: var(--muted) !important; }
#app .plan-link { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--p-green); }
#app .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
#app .fact { border-radius: 0 !important; padding: 12px 14px !important; box-shadow: var(--p-shadow); }
#app .fact small { margin-bottom: 2px; }
#app .fact .note { display: block; margin-top: 2px; font-size: 12px; }
#app .box { border-radius: 0 !important; box-shadow: var(--p-shadow); }
#app .box-head { align-items: baseline; }
#app .box h3 { font-size: 17px !important; }
#app .ptable { font-size: 13.5px; }
#app .ptable th { font-size: 11px; letter-spacing: .06em; font-weight: 600; color: var(--muted); padding: 8px 8px; }
#app .ptable td { padding: 10px 8px; }
#app .ptable td small { font-size: 12px; margin-top: 1px; }
#app .yr-table td:first-child { white-space: nowrap; min-width: 150px; }
#app .yr-table td:first-child .btn.link { padding: 0; font-weight: 600; text-decoration: none; }
#app .yr-table tr.on td { background: #F7FAF7; }
#app .yr-table tr.total td { border-top: 2px solid var(--line); }
#app .yr-bars .yr-val { font-family: var(--head) !important; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
#app .yr-gross { background: #E6E6E6 !important; border-radius: 0; }
#app .yr-take { background: var(--p-green) !important; border-radius: 0; }
#app .yr.on .yr-take { background: var(--ink) !important; }
#app .split-key i, #app .type-key i { border-radius: 50%; }
#app .dbar span { background: var(--p-green); }
#app .chip { border-radius: 0 !important; padding: 6px 12px; font-size: 13px; }
#app .chip.on { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff; }
#app .chip.on span { color: rgba(255,255,255,.65); }
#app .t-rank li { padding: 7px 0; font-size: 14px; }
#app .chart .bar { fill: var(--p-green); }

/* ---------- Contacts ---------- */
#app .cgroups { gap: 14px; }
#app .cgroup { border-radius: 0 !important; box-shadow: var(--p-shadow); }
#app .cgroup-head { padding: 12px 16px; gap: 12px; background: #FFFFFF !important; }
#app .cgroup-head .addr { font-size: 18px !important; font-weight: 600; }
#app .cgroup-head small { font-size: 13px; color: var(--muted); }
#app .cgroup-head .thumb { width: 56px; height: 42px; border-radius: 0; overflow: hidden; flex: none; }
#app .cgroup-head .deal-state.live { background: var(--p-green-soft); color: var(--p-green); }
#app .cgroup-head .deal-state.pending { background: #F2F2F2; color: var(--ink); }
#app .cgroup-head .row-when { font-size: 13px; }
#app .crow { padding: 11px 16px; gap: 8px 16px; }
#app .crow.client { background: #FFFFFF; }
#app .crow .person { display: flex; align-items: center; gap: 12px; }
#app .initials { width: 36px; height: 36px; font-size: 13px; background: #EDEDED; color: var(--ink); }
#app .crow.client .initials { background: var(--p-green-soft); color: var(--p-green); }
#app .pname { font-weight: 600; font-size: 14px; }
#app .crow small { font-size: 12.5px; color: var(--muted); }
#app .ctag { background: var(--p-green-soft) !important; color: var(--p-green) !important; letter-spacing: .04em !important; font-size: 11px !important; padding: 2px 7px; }
#app .clink { color: var(--ink); font-size: 13.5px; font-weight: 500; }
#app .clink:hover { color: var(--p-green); }
#app .clinks .btn.link { font-size: 13px; }
#app .clinks .note { font-size: 13px; }
#app .contact-drop { border-radius: 0; }

/* ---------- Dialogs: deal detail, new event, settings ---------- */
#modal-root .overlay { background: rgba(28, 26, 23, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 24px 16px; }
#modal-root .dialog { border-radius: 0 !important; background: #fff !important; box-shadow: 0 24px 64px rgba(20, 17, 13, .28), 0 0 0 1px rgba(20, 17, 13, .06) !important; border: 0 !important; }
#modal-root .dialog-head { height: 190px; }
#modal-root .dialog-head .pill { top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-size: 11px; letter-spacing: .04em; text-transform: none; font-weight: 600; padding: 4px 9px; }
#modal-root .dialog-head .rider { left: auto; right: 60px; top: 12px; bottom: auto; background: var(--p-green) !important; color: #fff !important; font-size: 11.5px !important; font-weight: 600; letter-spacing: .03em; border-radius: 0; padding: 5px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
#modal-root .dialog-head .rider.sold { background: var(--p-ink, #1A1A1A) !important; }
#modal-root .close { width: 36px; height: 36px; border-radius: 50% !important; background: rgba(255,255,255,.94) !important; border: 0 !important; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
#modal-root .dialog-body { padding: 22px 24px 24px; gap: 16px; }
#modal-root .dialog-body h2 { font-size: 26px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; }
#modal-root .dialog-body > div:first-child .note { font-size: 14px !important; margin-top: 2px; }
#modal-root .sum-bar { border-radius: 0 !important; padding: 12px 14px !important; background: #F7F8F6 !important; border: 1px solid var(--line) !important; }
#modal-root .sum-bar b { font-size: 14px; }
#modal-root .sum-bar .note { font-size: 12.5px; }
#modal-root .sum-btn { background: var(--p-green) !important; color: #fff !important; border-radius: 0 !important; }
#modal-root .facts { gap: 10px; }
#modal-root .fact { border-radius: 0 !important; padding: 10px 12px !important; box-shadow: none; background: #FFFFFF !important; }
#modal-root .fact b { font-size: 20px !important; }
#modal-root .flag { border-radius: 0 !important; background: var(--p-amber-soft, #FBF3E2) !important; border-color: #D2D2D2 !important; color: #6B4E12 !important; font-size: 13.5px; padding: 10px 12px; }
#modal-root .box { border-radius: 0 !important; box-shadow: none; padding: 16px 18px; }
#modal-root .box h3 { font-size: 15px !important; margin-bottom: 10px; }
#modal-root .steps { gap: 0; }
#modal-root .step { grid-template-columns: 22px 1fr auto; gap: 10px 12px; padding: 9px 6px; margin: 0 -6px; border-radius: 0; border-top: 1px solid var(--line); }
#modal-root .step:first-child { border-top: 0; }
#modal-root .step:hover { background: #FFFFFF; }
#modal-root .step input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--p-green); border-radius: 0; }
#modal-root .step .label { font-size: 14px; font-weight: 500; }
#modal-root .step .src { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
#modal-root .step .src.unsure { color: #9A6A12; }
#modal-root .step input[type=date] { border-radius: 0 !important; border: 1px solid var(--line) !important; background: #fff !important; padding: 5px 8px; font-size: 13px; font-family: var(--sans); color: var(--ink); }
#modal-root .step input[type=date]:focus { outline: none; border-color: var(--p-green) !important; box-shadow: 0 0 0 3px rgba(63,107,80,.15); }
#modal-root .step .right .btn.small { font-size: 12px; padding: 4px 10px; }
#modal-root .box > .note { font-size: 12.5px; margin: 12px 0 0; }
#modal-root .person { padding: 8px 0; border-top: 1px solid var(--line); }
#modal-root .person:first-child { border-top: 0; }
#modal-root .initials { width: 34px; height: 34px; font-size: 12.5px; background: #EDEDED; color: var(--ink); }
#modal-root .person-top { font-weight: 600; font-size: 14px; }
#modal-root .person small { font-size: 12.5px; }
#modal-root .clink { font-size: 13px; color: var(--ink); }
#modal-root [data-action="delete"] { color: var(--p-red) !important; border-color: transparent !important; }
#modal-root [data-action="delete"]:hover { background: #FBEAE7 !important; }
#modal-root [data-action="delete-yes"] { background: var(--p-red) !important; border-radius: 0 !important; }
/* forms in dialogs */
#modal-root .field label { font-size: 13px; font-weight: 500; color: var(--ink); }
#modal-root .field input, #modal-root .field select, #modal-root textarea, #modal-root .cal-paste input { border-radius: 0 !important; border: 1px solid var(--line) !important; background: #fff !important; height: 40px; font-size: 14px; font-family: var(--sans) !important; }
#modal-root textarea { height: auto; padding: 10px 12px; }
#modal-root .field input:focus, #modal-root .field select:focus, #modal-root textarea:focus { outline: none; border-color: var(--p-green) !important; box-shadow: 0 0 0 3px rgba(63,107,80,.15) !important; }
#modal-root .tchip { border-radius: 0 !important; padding: 6px 11px; font-size: 13px; border-color: var(--line); }
#modal-root .tchip.on { border-color: var(--c); font-weight: 600; }
#modal-root .dialog .btn { border-radius: 0 !important; }
#modal-root .row-end { margin-top: 4px; }
#modal-root .eyebrow { margin-bottom: 2px; }
#modal-root .chip { border-radius: 0 !important; }

/* ---------- Assistant ---------- */
#app .ai-hero { padding: 18px 0 22px; gap: 28px; align-items: flex-start; }
#app .ai-say { padding-top: 10px; }
#app .ai-say h1 { font-size: clamp(28px, 3.4vw, 36px) !important; font-weight: 700 !important; letter-spacing: -0.02em !important; margin: 6px 0 8px !important; }
#app .ai-say h1 i { color: var(--p-green); font-style: normal; }
#app .ai-say p { font-size: 15px; max-width: 520px; }
#app .a-live { letter-spacing: .04em; font-size: 12px; text-transform: none; font-weight: 500; }
#app .ai-asks li { border-radius: 0; border-left-width: 3px; box-shadow: var(--p-shadow); }
#app .ai-ask-q { font-style: normal; font-size: 18px !important; font-weight: 600; }
#app .ai-next { border-radius: 0; }
#app .ai-next b { font-size: 24px !important; font-weight: 600 !important; }
#app .ai-next small { letter-spacing: .04em; text-transform: none; font-size: 12px; font-weight: 500; }
#app .a-card { border-radius: 0; border-top: 1px solid var(--line); box-shadow: var(--p-shadow); }
#app .a-head h3 { font-size: 20px !important; }
#app .a-nums { border-radius: 0; overflow: hidden; }
#app .a-nums b { font-size: 26px !important; font-weight: 600 !important; }
#app .a-nums small { letter-spacing: .04em; text-transform: none; font-size: 12px; font-weight: 500; }
#app .a-tag { letter-spacing: .03em; text-transform: none; font-size: 11px; border-radius: 0; }
#app .a-text { border-radius: 0; }
#app .sc-stats li { font-size: 13px; }
#app .cr-bub { border-radius: 0; }
#app .ask-fab { border-radius: 0; }
#app .ask-fab kbd { border-radius: 0; }

/* ---------- First run: the three upload cards ---------- */
#app .start { border-radius: 0 !important; padding: 28px 28px 22px; box-shadow: var(--p-shadow); }
#app .start-head { margin-bottom: 20px; }
#app .start-head h2 { font-size: 24px !important; margin: 8px 0 6px; }
#app .start-head p { font-size: 14px; }
#app .start-eyebrow { letter-spacing: .04em; text-transform: none; font-size: 12px; font-weight: 500; }
#app .sc { border-radius: 0; padding: 18px 18px 16px; box-shadow: none; }
#app .sc:hover, #app .sc:focus-within { transform: none; box-shadow: var(--p-shadow); }
#app .sc-num { font-family: var(--head) !important; font-size: 18px; font-weight: 700; color: var(--p-green); }
#app .sc-kind { letter-spacing: .03em; text-transform: none; font-size: 11px; font-weight: 500; border-radius: 0; }
#app .sc h3 { font-size: 17px !important; }
#app .sc p { font-size: 13.5px; margin-bottom: 14px; }
#app .sc-art { height: 110px; margin: 8px 0 12px; border-radius: 0; }
#app .sc-cta { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; border-radius: 0; background: var(--p-green) !important; box-shadow: none; padding: 10px 14px; }
#app .sc:hover .sc-cta { background: #35603F !important; }
#app .sc-or { font-size: 12px; }
#app .sc-how { margin-top: 10px; font-size: 13px; }
#app .sc-how summary { border-radius: 0; }
#app .sc-donetag { border-radius: 0; padding: 10px 14px; }
#app .start-name input { border-radius: 0; border-color: var(--line); background: #fff; }
#app .start-name input:focus { border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(63,107,80,.15); }
#app .start-ghost { border-radius: 0; height: 40px; }
#app .start-help summary { color: var(--p-green); }

/* ---------- Team ---------- */
#app .tm-box { border-radius: 0 !important; box-shadow: var(--p-shadow); }
#app .tm-pick select { border-radius: 0; }
#app .tm-table th { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
#app .tm-table td { font-size: 13.5px; }
#app .tm-health { border-radius: 0; font-size: 11.5px; }
#app .tm-table.tm-lead { min-width: 680px; table-layout: auto; }
#app .tm-table.tm-lead th { background: #F7F7F7; padding: 9px 10px; border-bottom: 1px solid var(--line); }
#app .tm-table.tm-lead th:first-child { border-radius: 0; } #app .tm-table.tm-lead th:last-child { border-radius: 0; }
#app .tm-table.tm-lead td { padding: 11px 10px; white-space: nowrap; }
#app .tm-table.tm-lead th.num, #app .tm-table.tm-lead td.num { text-align: right; font-variant-numeric: tabular-nums; }
#app .tm-table.tm-lead td.num { font-family: var(--head); font-weight: 500; }
#app .tm-table.tm-lead td.tm-who { width: 100%; }
#app .tm-vol { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 6px; }
#app .tm-trend { font-size: 11px; font-weight: 600; margin: 0; padding: 1px 5px; border-radius: 0; }
#app .tm-trend.up { background: var(--p-green-soft); } #app .tm-trend.down { background: #FBEAE7; }
#app .tm-dl-col { text-align: right; }
#app .tm-health { white-space: nowrap; }
#app .tm-click:hover td { background: #FFFFFF; }
#app .tm-rank { width: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
#app .tm-who { white-space: nowrap; }
#app .tm-who b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
#app .tm-who-tags { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
#app .tm-who-tags .note { font-size: 12px; }
#app .tm-top { display: inline-block; margin: 0; padding: 1px 6px; border-radius: 0; background: var(--p-green-soft) !important; color: var(--p-green) !important; font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: 0; }
#app .tm-att li button { border-radius: 0; padding: 8px 10px; font-size: 13.5px; }
#app .tm-dl-date { font-family: var(--head) !important; font-variant-numeric: tabular-nums; }
#app .tm-bar { height: 8px; }
#app .tm-bar i, #app .tm-bar span { background: var(--p-green); }
#app .tm-search { border-radius: 0 !important; }
#app .tm-invite input { border-radius: 0 !important; }

/* ---------- Ask Threshold panel ---------- */
.ask-panel { border-radius: 0 !important; box-shadow: 0 24px 64px rgba(20,17,13,.28), 0 0 0 1px rgba(20,17,13,.06) !important; font-family: var(--sans) !important; }
.ask-panel header b { font-family: var(--sans) !important; font-size: 16px !important; font-weight: 600 !important; }
.ask-chips button { border-radius: 0 !important; font-size: 13px; background: #F7F7F7; }
.ask-chips button:hover { border-color: var(--p-green); }
.ask-form input { border-radius: 0 !important; font-family: var(--sans); }
.ask-form input:focus { outline: none; border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(63,107,80,.15); }
.ask-form button { border-radius: 0 !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 600; font-size: 13px; background: var(--p-green) !important; }
.ask-q { border-radius: 0; }
.ask-card { border-radius: 0; }
.ask-card:hover { border-color: var(--p-green); }
.ask-tag { letter-spacing: .03em; text-transform: none; color: var(--p-green); }
#modal-root .ai-step, #modal-root .how-step { border-radius: 0; }

/* ---------- Scheduled text: one dropdown, any mix of clients ---------- */
#app .sched-dd { position: relative; }
#app .sched-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 400 15px var(--sans); color: var(--ink); padding: 11px 36px 11px 12px; border: 1.5px solid var(--line); border-radius: 0; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .sched-dd > summary::-webkit-details-marker { display: none; }
#app .sched-dd > summary::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
#app .sched-dd[open] > summary { border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(63,107,80,.15); }
#app .sched-dd[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
#app .sched-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 0; box-shadow: 0 12px 32px rgba(20,17,13,.14); padding: 6px; }
#app .sched-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; cursor: pointer; font-weight: 400; }
#app .sched-opt:hover { background: #F6F6F6; }
#app .sched-opt.on { background: var(--p-green-soft); }
#app .sched-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--p-green); flex: none; }
#app .sched-opt span { display: flex; flex-direction: column; min-width: 0; }
#app .sched-opt b { font-size: 14px; font-weight: 600; }
#app .sched-opt small { font-size: 12px; color: var(--muted); }
#app .sched-opt.all { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }

/* ---------- Sharper corners: buttons and the bare stats grid ---------- */
#app .btn, #modal-root .btn, #app .chip, #app .seg, #app .seg button, #app .cr-switch, #app .cr-switch button, #app .tchip, #modal-root .tchip, #app input, #app select, #app textarea, #modal-root input, #modal-root select, #modal-root textarea { border-radius: 0 !important; }
#app .stats, #app .stats.hero, #app .kpis, #app .facts { border: 0 !important; background: none !important; padding: 0 !important; border-radius: 0 !important; }
#app .deal-state, #app .row-when, #app .ctag, #app .tm-health, #app .tm-top, #app .pill, #app .a-tag, #app .manual-tag { border-radius: 0 !important; }

/* ---------- Commission plan: one clean field per number ---------- */
#app .plan { border-radius: 0 !important; border: 1px solid var(--line) !important; box-shadow: var(--p-shadow); padding: 20px 22px; margin: 20px 0 0; }
#app .plan-head h3 { font-size: 17px !important; margin: 4px 0 2px; }
#app .plan-head .note { font-size: 13.5px; }
#app .plan-fields { gap: 12px 16px; margin-top: 14px; }
#app .plan-f { font-size: 12.5px; }
#app .plan-f > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink); }
#app .plan-in { padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
#app .plan-in:focus-within { border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(63,107,80,.15); }
#app .plan-in input:not([type=checkbox]):not([type=radio]):not([type=color]) { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 9px 0; font: 500 16px/1.2 var(--sans) !important; color: var(--ink); font-variant-numeric: tabular-nums; }
#app .plan-in input:not([type=checkbox]):not([type=radio]):not([type=color]):focus { outline: none; box-shadow: none !important; border: 0 !important; }
#app .plan-in { padding: 0 12px 0 12px; }
#app .plan-in em:first-child { margin-right: 6px; }
#app .plan-in em { font: 500 14px var(--sans); color: var(--muted); }
#app .plan-f small { color: var(--muted); }
#app .plan-min { border-radius: 0; }
#app .plan-link { color: var(--p-green); }
#app .plan-link:hover { color: var(--ink); }

/* ---------- Square corners everywhere (user preference). Circles stay circles. ---------- */
#app .bt, #app .box, #app .stat, #app .card, #app .pcard, #app .cgroup, #app .fact, #app .sc, #app .start, #app .sum-bar, #app .cal, #app .tgrid-wrap, #app section.bt, #app .bt-kpi, #app .needs, #app .start-mini, #app .plan, #app .sched, #app .sched-form, #app .a-card, #app .tm-box, #app .cal-connect, #app .cal-setup > summary, #app .feed-box, #app .cal-linked, #app .ai-next, #app .ai-asks li, #app .drop, #app .contact-drop, #app .empty, #app .t-mapbox, #app .a-nums, #app .ask-fab,
#modal-root .dialog, #modal-root .box, #modal-root .fact, #modal-root .sum-bar, #modal-root .flag, .ask-panel, .ask-card, .ask-q, .ask-a, .ask-chips button { border-radius: 0 !important; }
#app .btn, #modal-root .btn, .btn, #app .chip, #app .seg, #app .seg button, #app .cr-switch, #app .cr-switch button, #app .tchip, #modal-root .tchip, #app .sc-cta, #app .sc-kind, #app .sc-donetag, #app .start-ghost, #app .linkish, #app .deal-state, #app .row-when, #app .ctag, #app .tm-health, #app .tm-top, #app .tm-trend, #app .pill, #app .a-tag, #app .manual-tag, #app .rider, #app .ev, #app .evb, #app .deadline, #app .more, #app .row-date, #app .thumb, #app .cover, #app .card-photo, #app .card-dl, #app .initials, #app .sched-opt, #app .sched-dd > summary, #app .sched-menu, #app .plan-in, #app .tm-table.tm-lead th, #app .day .num, #app .a-text, #app .cr-bub, #app .ask-fab kbd, #app .sc-art, #app .sc-how summary, #app .start-name input, #app .start-mini label, #modal-root .step, #modal-root .dialog-head .pill, #modal-root .dialog-head .rider, #modal-root .chip, #modal-root .person-x { border-radius: 0 !important; }
:is(#app, #modal-root) input:not([type=checkbox]):not([type=radio]):not([type=color]), :is(#app, #modal-root) select, :is(#app, #modal-root) textarea, #app .search input { border-radius: 0 !important; }
#app .start-mini-meter, #app .start-mini-meter i, #app .dbar, #app .dbar span, #app .split, #app .tm-bar, #app .tm-bar i, #app .yr-gross, #app .yr-take, #app .bar, #app .t-track, #app .t-track i, #app .segs i, #app .segs span, #app .meter, #app .meter i { border-radius: 0 !important; }
/* keep these round: avatars, dots, the today marker, the close button */
#app .initials, #modal-root .initials, #app .dot, #app .needs-head .dot, #app .evdot, #app .a-dot, #app .day.today .num, #app .dhead b, #modal-root .close, #app .avatar, #app .tchip i, #app .type-key i, #app .split-key i, #app .ask-dot, #app .cal-linked-dot, #app .cal-n, #app .sc-check { border-radius: 50% !important; }

/* ---------- Client texting consent notes ---------- */
#app .consent-note, #modal-root .consent-note { display: block; flex-basis: 100%; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Close account ---------- */
#modal-root .data-close { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#modal-root .data-close-ask { color: var(--muted) !important; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
#modal-root .data-close-ask:hover { color: var(--p-red) !important; }
#modal-root .data-del { background: var(--p-red) !important; color: #fff !important; }

/* ---------- Needs you: which side are you on? ---------- */
#app .needs .row.needs-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: default; }
#app .needs-side-open { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
#app .needs-side-open .row-main small { color: var(--p-red); }
#app .needs-side-btns { display: flex; gap: 6px; flex: none; }
#app .needs-side-btns .btn { font-size: 12.5px; padding: 6px 10px; }

/* ---------- Weekly client updates card (Assistant tab) ---------- */
#app .ap-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--muted); box-shadow: var(--p-shadow); padding: 18px 20px; margin: 0 0 18px; }
#app .ap-card.on { border-left-color: var(--p-green); }
#app .ap-head { display: flex; align-items: center; gap: 10px; }
#app .ap-head h3 { margin: 0; font-size: 17px !important; }
#app .ap-dot { width: 9px; height: 9px; border-radius: 50% !important; background: #B2B2B2; flex: none; }
#app .ap-card.on .ap-dot { background: var(--p-green); }
#app .ap-list { margin: 12px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
#app .ap-list b { font-weight: 600; }
#app .ap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
#app .ap-confirm { padding: 12px 14px; background: var(--p-green-soft); border: 1px solid #CFE2D4; font-size: 14px; }
#app .ap-confirm p { margin: 0 0 10px; }
#app .ap-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* This week's updates, editable the night before */
#app .wk { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
#app .wk-head { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
#app .wk-item { border: 1px solid var(--line); background: #FCFBF8; padding: 12px 14px; display: grid; gap: 6px; }
#app .wk-item.held { background: #F6F6F6; }
#app .wk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#app .wk-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #3F6B50; }
#app .wk-tag.off { color: #8C6A2E; }
#app .wk-body { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #333; white-space: pre-line; }
#app .wk-body.struck { text-decoration: line-through; color: var(--muted); }
#app .wk-text { min-height: 110px; font-size: 14px; line-height: 1.5; }
#app .wk-count { justify-self: end; }
#app .wk-btns { margin-top: 2px; }
#app .a-live.off span { background: #B2B2B2 !important; animation: none !important; box-shadow: none !important; }

/* ---------- Motion ---------- */
/* Pages switch instantly: no slide-in on tab change (user preference). */
#app .page, #app .page > *, #app .bento > *, #app .masthead .hello, #app .masthead .page-head { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #app .needs-head .dot { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  #app .needs { grid-column: span 2; }
  #app .bt-ai { grid-column: span 2 !important; grid-template-columns: 1fr !important; grid-template-areas: "live" "num" "sub" "stats" "asks" "link" !important; }
}
@media (max-width: 640px) {
  #modal-root .overlay { padding: 0; }
  #modal-root .dialog { border-radius: 0 !important; min-height: 100%; }
  #modal-root .dialog-head { height: 150px; }
  #modal-root .dialog-body { padding: 18px 16px 24px; }
  #modal-root .step { grid-template-columns: 22px 1fr; }
  #modal-root .step .right { grid-column: 2; flex-direction: row; align-items: center; }
  #app .ev { border-left: 0; }
  #app .day { min-height: 64px; }
  #app .month-nav b { font-size: 16px !important; }
  #app .cal-bar { gap: 8px; }
  #app .seg { width: 100%; display: flex; } #app .seg button { flex: 1; }
  #app .bento { gap: 10px !important; }
  #app .bt { padding: 14px 14px !important; }
  #app .bt-kpi { min-height: 96px !important; }
  #app .bt-kpi b { font-size: 28px !important; }
  #app .hello h1 { font-size: 28px !important; }
  #app .row .swatch { width: 48px !important; height: 36px !important; }
  #app .row-deal .row-next { display: none; }
  #app .start-mini .gap { display: none; }
}

/* ---------- Deadline rows: mark done without opening the deal ---------- */
#app .row-step { display: flex !important; align-items: center !important; gap: 10px !important; padding: 0 6px 0 8px !important; }
#app .row-step .row-open { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 11px 0; }
#app .row-step .row-open:focus-visible { outline: 2px solid var(--p-green); outline-offset: 2px; border-radius: 0; }
#app .row-check { appearance: none !important; -webkit-appearance: none !important; width: 20px !important; height: 20px !important; flex: none; margin: 0 !important; border: 1.5px solid #C4C4C4 !important; border-radius: 0 !important; background: #fff !important; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; }
#app .row-check:hover { border-color: var(--p-green) !important; transform: scale(1.06); }
#app .row-check:checked { background: var(--p-green) !important; border-color: var(--p-green) !important; }
#app .row-check:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
#app .row-check:focus-visible { outline: 2px solid var(--p-green) !important; outline-offset: 2px; }
#app .row-step.done .row-title { color: var(--p-muted) !important; text-decoration: line-through; }
#app .row-step.done .row-date b { color: var(--p-muted) !important; }

/* ---------- Deals page: cards that read at a glance ---------- */
#app .deal-search { margin-bottom: 12px; }
#app .deal-search input { height: 44px !important; }
#app .chips { gap: 6px !important; margin-bottom: 14px !important; }
#app .chip { font-size: 13.5px !important; padding: 6px 12px !important; border-radius: 0 !important; }
#app .chip.on { background: var(--p-ink) !important; color: #fff !important; border-color: var(--p-ink) !important; }
#app .chip.on span { color: #D2D2D2 !important; }
#app .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 16px !important; }
#app .card { border-radius: 0 !important; border: 1px solid var(--p-line) !important; background: #FFFFFF !important; box-shadow: var(--p-shadow) !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important; }
#app .card:hover { transform: translateY(-3px) !important; box-shadow: var(--p-shadow-hover) !important; border-color: #D4D4D4 !important; }
#app .card .tile { height: 150px !important; border-radius: 0 !important; }
#app .card-body { padding: 14px 16px 16px !important; gap: 9px !important; }
#app .card .addr { font-size: 19px !important; }
#app .card .meta { font-size: 13px !important; }
#app .card .meta b { font-size: 14px !important; }
#app .card .segs { gap: 3px !important; }
#app .card .segs span { height: 4px !important; border-radius: 0 !important; background: #E4E4E4 !important; }
#app .card .segs span.done { background: var(--p-green) !important; }
#app .card .segs span.now { background: #C8A96B !important; box-shadow: none !important; }
#app .card-steps { font-size: 12.5px; color: var(--p-muted); margin-top: -3px; }
#app .card .next { background: #F2F2F2 !important; border-radius: 0 !important; padding: 9px 12px !important; font-size: 13.5px !important; }
#app .card .next .when { font-weight: 600 !important; }
#app .card .next .when.st-urgent, #app .card .next .when.st-check { color: var(--p-red) !important; }
#app .card .next .when.st-soon { color: var(--p-amber) !important; }
#app .card .next .when.st-ready { color: var(--p-green) !important; }
#app .tile .pill { top: 10px !important; left: 10px !important; border-radius: 0 !important; padding: 5px 10px 5px 8px !important; font: 600 11.5px/1 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; background: rgba(255, 253, 249, .96) !important; color: var(--p-ink) !important; box-shadow: 0 1px 3px rgba(34, 29, 23, .18) !important; gap: 6px !important; }
#app .tile .pill .dot { width: 7px; height: 7px; background: var(--p-green); }
#app .tile .pill.st-urgent .dot, #app .tile .pill.st-check .dot { background: var(--p-red); }
#app .tile .pill.st-soon .dot { background: #C9962F; }
#app .tile .pill.st-calm .dot { background: #8A96A3; }
#app .tile .pill.sample { left: auto !important; right: 10px !important; }
#app .rider { background: var(--p-green) !important; color: #fff !important; font-size: 11.5px !important; border-radius: 0 !important; }
#app .rider.sold { background: var(--p-ink) !important; }
#app .card-dl, #app .card-photo { opacity: .0; transition: opacity .2s ease, transform .2s ease !important; font-size: 12px !important; padding: 6px 10px !important; border-radius: 0 !important; background: rgba(255, 253, 249, .96) !important; box-shadow: 0 1px 3px rgba(34, 29, 23, .18) !important; }
#app .card-wrap:hover > .card-dl, #app .card-wrap:hover > .card-photo, #app .card-wrap:focus-within > .card-dl, #app .card-wrap:focus-within > .card-photo { opacity: 1; }
@media (hover: none) { #app .card-dl, #app .card-photo { opacity: 1; } }
#app .section-head .note { font-size: 13px !important; }
#app .kpis { gap: 12px !important; }
#app .fact { border-radius: 0 !important; padding: 12px 14px !important; box-shadow: var(--p-shadow) !important; }
#app .fact small { font-size: 12px !important; font-weight: 600 !important; color: var(--p-muted) !important; }
#app .fact b { font-size: 24px !important; }
#app .empty { border-radius: 0 !important; }
#app .card-photo { left: auto !important; right: 12px !important; top: 44px !important; }

/* Texting consent: the agent confirms the client agreed before a cell number is saved. */
#app .consent-check, #modal-root .consent-check { display: flex; gap: 8px; align-items: flex-start; flex-basis: 100%; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 4px; cursor: pointer; }
#app .consent-check input, #modal-root .consent-check input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--p-green, #3F6B50); }
#app .consent-check span, #modal-root .consent-check span { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* Listings: what a listing still needs, rows in the listings window that open the listing, and the edit window's form. */
#app .needs-info, #modal-root .needs-info { color: #9A5B12; font-weight: 600; }
#modal-root .linkish-row { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
#modal-root .linkish-row:hover .row-title { text-decoration: underline; }
#modal-root #listing-edit-form { align-items: start; }
#modal-root #listing-edit-form .wide { grid-column: 1 / -1; }
#modal-root #listing-edit-form textarea { width: 100%; }
/* Dashboard texts card: latest reply, last text sent, next scheduled. */
#app .tx-card .tx-rows { margin: 10px 0 6px; }
#app .tx-card .tx-row { width: 100%; text-align: left; }
#app .tx-card .tx-icon { width: 30px; flex: none; display: grid; place-items: center; font-size: 16px; }
#app .tx-card .row-main small { white-space: normal; }
#app .tx-card .tx-deadlines { margin: 6px 0 0; }
#app .needs.clear .needs-head .dot.tx-new { background: var(--p-red); animation: needping 2s infinite; }
#app .tx-card .row-when { color: var(--muted, #6B6257) !important; background: none !important; font-weight: 500 !important; white-space: nowrap; }
/* Customize weekly updates */
#app .apc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
#app .apc h4 { margin: 8px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
#app .apc > .note { margin: 0; font-size: 13.5px; }
#app .apc-when { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; font-size: 14px; }
#app .apc-when label { display: grid; gap: 4px; }
#app .apc-when label span { font-size: 12px; color: var(--muted); }
#app .apc-when select { padding: 6px 8px; border: 1px solid var(--line); background: #fff; font: inherit; }
#app .apc-when .apc-check { display: flex; align-items: center; gap: 6px; }
#app .apc-when .apc-check span { font-size: 14px; color: var(--ink); }
#app .apc-list { display: grid; gap: 8px; }
#app .apc-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); background: #FCFBF8; padding: 10px 12px; }
#app .apc-row.off { background: #F6F6F6; }
#app .apc-row.off .apc-who b { color: var(--muted); }
#app .apc-who { display: grid; gap: 4px; min-width: 0; }
#app .apc-who small { color: var(--muted); font-size: 12.5px; }
#app .apc-sw { position: relative; display: inline-block; width: 38px; height: 22px; margin-top: 2px; cursor: pointer; }
#app .apc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
#app .apc-sw span { position: absolute; inset: 0; background: #C9C9C9; border-radius: 999px !important; transition: background .15s; pointer-events: none; }
#app .apc-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50% !important; transition: transform .15s; }
#app .apc-sw input:checked + span { background: var(--p-green); }
#app .apc-sw input:checked + span::after { transform: translateX(16px); }
#app .apc-sw input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#app .apc-sw input:disabled + span { opacity: .5; }
#app .apc-card { border: 1px solid var(--line); background: #FCFBF8; padding: 12px 14px; display: grid; gap: 8px; }
#app .apc-ed { display: grid; gap: 8px; }
#app .apc-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#app .apc-ph small { color: var(--muted); font-size: 12.5px; }
#app .apc-help { flex-basis: 100%; }
#app .apc-ai { display: grid; gap: 6px; padding: 10px; background: #fff; border: 1px dashed var(--line); }
#app .apc-ai .note { margin: 0; font-size: 13px; }
#app .apc-ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
#app .apc-ask-row input { flex: 1 1 220px; padding: 7px 9px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
#app .apc .cr-ex, #app .wk .cr-ex { display: flex; flex-wrap: wrap; gap: 6px; }
#app .apc-sign { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#app .apc-radio { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: #FCFBF8; padding: 10px 12px; cursor: pointer; }
#app .apc-radio.on { border-color: var(--p-green); background: var(--p-green-soft); }
#app .apc-radio input { margin-top: 3px; }
#app .apc-radio span { display: grid; gap: 2px; }
#app .apc-radio small { color: var(--muted); font-size: 12.5px; }
/* "Let Trysten set me up": the agent's box in her profile, and the owner's bar while inside her dashboard */
#setup-bar { position: sticky; top: 0; z-index: 9000; display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 10px 16px; background: #7A4B00; color: #fff; font: 500 14px/1.4 system-ui, sans-serif; }
#setup-bar .btn { background: #fff; color: #7A4B00; border-color: #fff; flex: none; text-decoration: none; }
.setup-mode .tm-profile { display: none; }
.setup-box.on { border-left: 3px solid #B26B00; }
/* The clients-added note: heading, text and button stacked (a .flag is a row by default, which squeezed them) */
.flag.setup-pending { display: block; }
.setup-box .btn:disabled { opacity: .45; cursor: not-allowed; }
.setup-log { margin-top: 10px; font-size: 13px; }
.setup-log summary { cursor: pointer; font-weight: 600; }
.setup-log ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.setup-log li span { color: var(--muted); margin-right: 6px; }
.setup-log small { color: var(--muted); }
#setup-bar.ended { background: #8E1B1B; }
.setup-files { display: grid; gap: 8px; margin: 0 0 12px; }
.setup-kind { border: 1px solid var(--line); background: #FCFBF8; padding: 10px 12px; display: grid; gap: 4px; }
.setup-kind.ok { border-left: 3px solid var(--p-green); }
.setup-kind-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.setup-sent { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.setup-sent li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.setup-sent li span { min-width: 0; overflow-wrap: anywhere; }
.setup-sent small { color: #3F6B50; font-weight: 600; }
.setup-inbox { margin-bottom: 18px; }
.setup-inbox h3 { margin: 0 0 8px; }
/* Setup mode: "Don't text" is hers to set; the ticks aren't shown to the owner */
.setup-mode .consent-check { display: none; }
