/* Homies — the new agent app. One stylesheet.
   Look (Tovah's references, 2026-09-25): warm off-white ground, white rounded
   cards, olive accent, black pill primary, bold sans headlines, homes as the
   only photography. Floors: no text under 14px; 4.5:1 contrast for text.
   Every color is a token here; nothing below :root uses a hex. */

:root {
  --ground: #F3F0E8;
  --card: #FFFFFF;
  --card-2: #FAF8F2;
  --sunk: #ECE8DD;
  --line: #E2DCCE;
  --ink: #1A1A17;
  --ink-2: #57564E;
  --ink-3: #6E6C62;
  --olive: #5B6043;
  --olive-deep: #3E4230;
  --olive-soft: #E5E6D6;
  --olive-tint: #F0F1E6;
  --on-dark: #FFFFFF;
  --alert: #9E3B26;
  --alert-soft: #F7E4DC;
  --good: #3D6A44;
  --good-soft: #E1EDDF;
  --warn: #8A5A12;
  --warn-soft: #F6EBD3;
  --shadow: 0 1px 2px rgba(40, 36, 20, .05), 0 8px 24px rgba(40, 36, 20, .06);
  --shadow-lift: 0 2px 4px rgba(40, 36, 20, .06), 0 18px 40px rgba(40, 36, 20, .12);
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px; --pill: 999px;
  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --rule: 1px solid var(--ink);
  --hair: 1px solid var(--line);
  --gutter: 32px;
  --max: 1360px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 500 16px/1.45 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.tag svg { width: 16px; height: 16px; }
.av svg { width: 22px; height: 22px; }
.av.xl svg { width: 44px; height: 44px; }
.draft-head svg { width: 16px; height: 16px; color: var(--olive); }
.search svg { color: var(--ink-2); }
.search > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------- type ---------------- */
.display {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em;
  line-height: .92; font-size: clamp(44px, 6.4vw, 88px); margin: 0;
}
.display .soft { color: var(--ink-3); }
.display .accent { color: var(--olive); }
.h1 { font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--olive-deep); }
.btn-olive { background: var(--olive); color: var(--on-dark); }
.btn-olive:hover { background: var(--olive-deep); }
.btn-line { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-soft { background: var(--sunk); color: var(--ink); }
.btn-soft:hover { background: var(--olive-soft); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: var(--sunk); }
.btn-alert { background: var(--alert); color: var(--on-dark); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--on-dark); color: var(--ink); margin-right: -12px; }
.btn-olive .arrow { color: var(--olive); }
.iconbtn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink); flex: none;
}
.iconbtn:hover { border-color: var(--ink-3); }
.iconbtn.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.iconbtn svg, .btn svg { width: 20px; height: 20px; }
.kbd { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid currentColor; font-size: 14px; line-height: 20px; text-align: center; opacity: .75; }

/* ---------------- chips ---------------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips.scroll::-webkit-scrollbar { display: none; }
/* ★ A home already on this tour is not offered again (schedule.js syncTakenHomes). Its own reason
   to be out of the list, so the search filter's `hidden` keeps working beside it. */
.pick-row[data-taken] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.chip[aria-pressed="true"], .chip.on { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.chip .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 700; }
/* ⚠️ was --olive-deep on --on-dark, which asked one token to read on a chip tint AND on the feature
   ink - opposite ends on a dark look, so it could not clear 4.5:1 on both. The count takes the
   feature ground, which is what --on-dark is the ink for. */
.chip.on .count { background: var(--on-dark); color: var(--dark); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--pill); background: var(--olive-soft); color: var(--olive-deep); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tag.alert { background: var(--alert-soft); color: var(--alert); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.plain { background: var(--sunk); color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); display: inline-block; flex: none; }
.dot.alert { background: var(--alert); }

/* ---------------- avatars (people get initials, never a house) ---------------- */
.av {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--olive-soft); color: var(--olive-deep); font-weight: 800; font-size: 16px; letter-spacing: .02em;
}
/* ⚠️⚠️ THE AVATAR DEFENDS ITS OWN CENTRING. `.av` is specificity (0,1,0) and every row that lays out its
   children with `.something > span` is (0,1,1) - so a rule written for the TEXT beside the circle turns
   the circle itself into a flex column and the initials go to the top of it. Reported twice on
   2026-10-22 ("letters should be in the middle", then "letters are not centered" on another card), and
   there are a dozen `> span` rules in these stylesheets, so fixing them one at a time is a game of
   whack-a-mole. `.av.av` is (0,2,0): it outranks any of them, in any file, in any order.
   ⚠️ Only `display` and `place-items` - the things that centre it. Size, colour and the rest stay on
   `.av` above so a look or a size modifier can still change them. */
.av.av { display: inline-grid; place-items: center; }
.av.sm { width: 38px; height: 38px; font-size: 14px; }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.av.xl { width: 112px; height: 112px; font-size: 36px; }
.av.ink { background: var(--ink); color: var(--on-dark); }
.av.partner { background: var(--sunk); color: var(--ink); }

/* ---------------- cards ---------------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 28px; }
.card-soft { background: var(--card-2); border-radius: var(--r-lg); }
.photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sunk); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .corner { position: absolute; top: 12px; left: 12px; }
.photo .corner-r { position: absolute; top: 12px; right: 12px; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); }

/* ---------------- desktop shell ---------------- */
.shell { min-height: 100vh; }
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top-in { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 0; }
.top-row { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--on-dark); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.search {
  flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 8px 0 20px; border-radius: var(--pill); background: var(--card); border: 1.5px solid var(--line);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.search .go { width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: var(--on-dark); display: grid; place-items: center; border: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.badge-wrap { position: relative; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--olive); color: var(--on-dark); font-size: 14px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--ground); }
.nav { display: flex; gap: 4px; margin-top: 14px; border-bottom: 1.5px solid var(--line); }
.nav a {
  position: relative; padding: 12px 16px 16px; text-decoration: none; font-weight: 600; color: var(--ink-2); font-size: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1.5px; height: 3px; border-radius: 3px; background: var(--ink); }
.nav .n { font-size: 14px; font-weight: 800; color: var(--olive); }
.main { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 80px; }

/* ---------------- Today (desktop) ---------------- */
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.progress { display: flex; align-items: center; gap: 14px; }
.bar { width: 220px; height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--olive); border-radius: 5px; transition: width .4s ease; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.next {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; overflow: hidden;
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.next.nophoto { grid-template-columns: 1fr; }
.next, .p-next { scroll-margin-top: 180px; }
.next-media { position: relative; min-height: 100%; background: var(--olive-tint); }
.next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next-media .who { position: absolute; inset: 0; display: grid; place-items: center; }
.next-media .home-chip { position: absolute; left: 16px; right: 16px; bottom: 16px; background: color-mix(in srgb, var(--card) 92%, transparent); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; }
.next-body { padding: 30px 32px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.next-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.next-title { font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.why { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quote {
  border-left: 3px solid var(--olive); padding: 4px 0 4px 16px; margin: 0;
}
.quote .from { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quote blockquote { margin: 6px 0 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.quote.alert { border-color: var(--alert); }
.draft { border-radius: var(--r-md); background: var(--card-2); border: 1.5px solid var(--line); overflow: hidden; }
.draft:focus-within { border-color: var(--olive); }
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); flex-wrap: wrap; }
.draft-head .to { color: var(--ink); }
.draft textarea { display: block; width: 100%; min-height: 150px; border: 0; outline: 0; resize: vertical; background: transparent; padding: 14px 16px; font-size: 16px; line-height: 1.5; }
.draft-tools { display: flex; gap: 8px; padding: 0 12px 12px; flex-wrap: wrap; }
.draft-tools .chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.lint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.options { display: flex; gap: 10px; flex-wrap: wrap; }
.opt { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card); text-align: left; min-width: 180px; }
.opt[aria-pressed="true"] { border-color: var(--olive); background: var(--olive-tint); }
.opt b { font-size: 17px; }
.sale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  min-height: 50px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font-size: 16px; width: 100%; min-width: 0;
}
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--olive); }

.queue { margin-top: 28px; }
.queue-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.qitem {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--card);
  border: 1.5px solid transparent; text-align: left; box-shadow: var(--shadow); min-width: 0;
}
.qitem:hover { border-color: var(--line); transform: translateY(-1px); }
.qitem .t { font-weight: 700; font-size: 16px; line-height: 1.3; }
.qitem .w { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.qitem .k { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 150px; }
.agenda { display: flex; flex-direction: column; }
.agenda-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 0; border-top: 1.5px solid var(--line); text-decoration: none; }
.agenda-row:first-child { border-top: 0; }
.agenda-row .time { font-weight: 800; font-size: 15px; }
.agenda-row .what { font-weight: 600; }
.agenda-row .sub { font-size: 14px; color: var(--ink-2); }
.agenda-row.past { opacity: .55; }
.agenda-row.now .time { color: var(--olive); }
.mini-list { display: flex; flex-direction: column; gap: 12px; }
.mini { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mini .t { font-weight: 600; line-height: 1.25; }
.mini .s { font-size: 14px; color: var(--ink-2); }

.clear { text-align: center; padding: 64px 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.clear .stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.stat { background: var(--card-2); border-radius: var(--r-md); padding: 18px 24px; min-width: 160px; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--ink-2); font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: translateX(-40px) scale(.98); } }
.leaving { animation: out .22s ease forwards; }

/* ---------------- pages: shared ---------------- */
.page-head .display { font-size: clamp(40px, 4.6vw, 64px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.split { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none;
  border: 1.5px solid transparent; min-width: 0;
}
.row:hover { background: var(--card-2); }
.row[aria-current="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.row .main-t { flex: 1; min-width: 0; display: block; }
.row .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.row .line { display: block; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 14px; color: var(--ink-2); text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row.unread .name, .row.unread .line { color: var(--ink); }
.row.unread .line { font-weight: 600; }

/* conversation */
.convo { display: flex; flex-direction: column; min-height: 70vh; }
.convo-head { display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-bottom: 1.5px solid var(--line); }
.convo-body { flex: 1; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 6px; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg .meta { font-size: 14px; color: var(--ink-2); font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bubble { padding: 14px 18px; border-radius: 20px; background: var(--card-2); border: 1.5px solid var(--line); white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.msg.out .bubble { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.msg .subject { font-weight: 700; }
.msg.flagged .bubble { border-color: var(--alert); background: var(--alert-soft); }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; }
.req-card { border-radius: var(--r-md); background: var(--olive-tint); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.composer { border-top: 1.5px solid var(--line); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.composer .ai { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--olive); }
.composer textarea { width: 100%; min-height: 110px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--card-2); padding: 14px 16px; resize: vertical; font-size: 16px; line-height: 1.5; }
.composer textarea:focus { outline: 0; border-color: var(--olive); }
.channel-tabs { display: inline-flex; background: var(--sunk); border-radius: var(--pill); padding: 4px; gap: 4px; }
.channel-tabs button { border: 0; background: transparent; border-radius: var(--pill); padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.channel-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* people */
.person-hero { display: flex; gap: 18px; align-items: center; }
.person-hero .h1 { font-size: 28px; }
.fact b { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.fact span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.fact b { font-weight: 600; word-break: break-word; }
.three { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1.5px solid var(--line); }
.tl:first-child { border-top: 0; }
.tl-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; }
.tl-ico svg { width: 18px; height: 18px; }
.tl .when { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.tl .body { white-space: pre-wrap; line-height: 1.45; }
.tl .body.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }

/* deals */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--sunk); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.col-head b { font-size: 16px; }
.col-head span { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.dcard { background: var(--card); border-radius: var(--r-md); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.dcard:hover { box-shadow: var(--shadow-lift); }
.dcard .photo { height: 120px; border-radius: 0; }
.dcard .in { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dcard .who { display: flex; align-items: center; gap: 10px; }
.dcard .price { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.dates-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
/* ⚠️ a plain card by default (2026-10-28): `--card-2` is tinted in most looks, so every key date
   read as "filled in with colour" and the three states below had nothing to stand out from. */
.kd { border-radius: var(--r-md); padding: 14px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kd .l { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.kd .d { font-weight: 800; font-size: 18px; }
.kd .s { font-size: 14px; font-weight: 600; }
.kd.done { background: var(--good-soft); border-color: transparent; }
.kd.done .s { color: var(--good); }
.kd.soon { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.kd.soon .l { color: var(--on-dark); opacity: .85; }
.kd.late { background: var(--alert-soft); border-color: transparent; }
.checklist { display: flex; flex-direction: column; }
.check { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1.5px solid var(--line); }
.check:first-child { border-top: 0; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--card); display: grid; place-items: center; flex: none; padding: 0; }
.tick[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }
.tick svg { width: 16px; height: 16px; }
.check .t { flex: 1; min-width: 0; }
.check .t b { font-weight: 600; }
.check.done .t b { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.who-tag { font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* homes */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hcard { background: var(--card); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.hcard .photo { aspect-ratio: 4 / 3; }
.hcard .in { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.hcard .price { font-weight: 800; font-size: 22px; letter-spacing: -0.025em; }
.hcard .specs { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .main-p { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs .photo { aspect-ratio: 4 / 3; border-radius: var(--r-sm); border: 2px solid transparent; padding: 0; }
.thumbs .photo[aria-pressed="true"] { border-color: var(--ink); }
.big-price { font-weight: 800; font-size: 44px; letter-spacing: -0.04em; margin: 0; }
.spec-row { display: flex; gap: 10px; flex-wrap: wrap; }
.spec { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 16px; background: var(--card); font-weight: 700; }
.spec span { display: block; font-size: 14px; color: var(--ink-2); font-weight: 600; }
/* the home page head (v402, Tovah 2026-10-03): chips · two-tone address · price + Record price drop · fact tiles · one action row */
.home-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-chips .tag { white-space: nowrap; }
.home-addr { text-transform: none; letter-spacing: -0.03em; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; overflow-wrap: anywhere; }
.home-addr .soft { display: block; margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.home-price { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.home-price b { font-size: 44px; }
.home-facts { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.fact span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fact b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
/* ★ A fact whose value is an EMAIL (Tovah, 2026-10-05: "make this look better"). At 22px/800 a long
   address broke mid-word across two lines inside a small bordered box and swamped the label beside
   it. Its own size, its own wrapping, and it never sets the height of the row it shares. */
.fact.fact-email b { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.35; word-break: normal; overflow-wrap: break-word; }
.fact.fact-email { justify-content: flex-start; }
.home-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.phone .home-addr { font-size: 30px; }
.phone .home-price { flex-direction: column; align-items: stretch; }
.phone .home-price .btn { width: 100%; }
.phone .home-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.phone .fact { padding: 12px 10px; }
.phone .home-actions > .btn { flex: 1; }

/* calendar */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day { background: var(--card); border-radius: var(--r-md); padding: 14px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.day.today { outline: 2.5px solid var(--olive); }
.day-h { display: flex; justify-content: space-between; align-items: baseline; }
.day-h b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.day-h span { font-size: 14px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.ev { border-radius: var(--r-sm); padding: 8px 10px; background: var(--olive-tint); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; display: block; }
.ev.task { background: var(--sunk); }
.ev.key { background: var(--ink); color: var(--on-dark); }
.ev.done { opacity: .5; text-decoration: line-through; }
.ev b { display: block; font-weight: 800; }

/* open houses */
.visit { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1.5px solid var(--line); }
.visit:first-child { border-top: 0; }

/* sheet / modal */
#layer:not([hidden]) { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(26, 26, 23, .38); padding: 24px; animation: fade .15s ease; }
.sheet { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--card); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-lift); animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.sheet .stack { display: flex; flex-direction: column; gap: 14px; }
@keyframes fade { from { opacity: 0; } }
/* ★★★ 2026-10-30 (Tovah, on Champagne: "champane some words dont show up on this look", with a
   screenshot of a cream pill holding no words at all). MEASURED on the live page: the toast was
   rgb(234,227,216) type on rgb(234,227,216) ground - 1.0:1, the text perfectly invisible.
   `--on-dark` is NOT "type on an ink fill". look.js sets it to `onFeature`: the type that reads on
   `--dark`/`--feature`, the dark feature-card colour. On a dark look `--ink` IS the cream text
   colour, so filling with ink and typing with on-dark paints cream on cream.
   ⚠️ `--ground`, not `--on-ink`. `--on-ink` is computed by the OLD engine (src/lib/appearance.js)
   and look.js - the one this app actually runs - never sets it, so a rule leaning on it is leaning
   on the other engine happening to be loaded. `--ground` is look.js's own, and it is already what
   the one control that always rendered correctly uses (`.gz-add`). Light look: cream on near-black.
   Dark look: near-black on cream. 15.24:1 on Champagne, measured after the fix. */
#toast:not([hidden]) {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--ground);
  padding: 12px 12px 12px 22px; border-radius: var(--pill); font-weight: 600; box-shadow: var(--shadow-lift); animation: rise .25s ease;
  max-width: calc(100vw - 32px);
}
#toast button { background: var(--ground); color: var(--ink); border: 0; border-radius: var(--pill); padding: 8px 16px; font-weight: 800; }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kpi b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.kpi span { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack-md { display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link { font-weight: 700; text-decoration: none; color: var(--olive); background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }

@media (max-width: 1180px) {
  .today-grid { grid-template-columns: 1fr; }
  /* ⚠️ `minmax(0, 1fr)`, not `1fr`. A bare `1fr` is `minmax(auto, 1fr)`, so each column grows to its
     content's min-width and the pair overflows the box: measured at 1140px, two 190px columns inside a
     341px sidebar, a card hanging 62px past its own parent and 14px past the page. The same
     min-width: auto trap as the masthead above, in a different grid. */
  .side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* the Today/report .three tiles only: the Messages page is .ibx.three and keeps its own three columns */
  .three:not(.ibx) { grid-template-columns: 280px minmax(0, 1fr); }
  .three:not(.ibx) > :last-child { grid-column: 1 / -1; }
}

/* =====================================================================
   PHONE — a different app over the same data (below 760px)
   ===================================================================== */
.phone { --gutter: 16px; padding-bottom: calc(env(safe-area-inset-bottom) + 120px); }
.phone .p-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top) + 12px) 16px 10px; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.phone .p-top .t { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.phone .p-main { padding: 6px 16px 24px; }
.phone .display { font-size: 46px; }
.phone .h1 { font-size: 30px; }
.dock {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 14px); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 8px;
  background: var(--card); border-radius: 30px; box-shadow: var(--shadow-lift);
}
.dock a, .dock button { flex: 1; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); text-decoration: none; border: 0; background: transparent; position: relative; }
.dock a svg, .dock button svg { width: 24px; height: 24px; }
.dock a[aria-current="page"], .dock button[aria-current="page"] { color: var(--on-dark); }
.dock a[aria-current="page"]::before, .dock button[aria-current="page"]::before { content: ''; position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--olive); z-index: -1; }
.dock a, .dock button { isolation: isolate; }
.dock .plus { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--on-dark); }
.dock .badge { top: 4px; right: calc(50% - 26px); border-color: var(--card); }
.p-next { border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: var(--shadow); animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.p-next .photo { height: 190px; border-radius: 0; }
.p-next .in { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.p-next .next-title { font-size: 28px; }
.p-next .quote blockquote { font-size: 17px; }
.p-next .draft textarea { min-height: 170px; }
/* ⚠️ Sits above the dock, so it tracks the dock's height (2026-10-22: the dock is flush to the bottom
   and owns the safe area, so this clears the bar itself, not the bar plus a gap). */
.p-actionbar { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 108px); z-index: 25; display: flex; gap: 10px; }
.p-actionbar .btn-ink { flex: 1; }
.p-actionbar .iconbtn { width: 58px; height: 58px; box-shadow: var(--shadow); }
.phone .qlist { grid-template-columns: 1fr; }
.phone .split, .phone .three, .phone .today-grid, .phone .home-hero, .phone .grid-2, .phone .grid-3 { grid-template-columns: 1fr; }
.phone .facts { grid-template-columns: 1fr 1fr; }
.phone .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; }
.phone .col { scroll-snap-align: start; }
.phone .week { grid-template-columns: 1fr; }
.phone .day { min-height: 0; }
.phone .sale-grid { grid-template-columns: 1fr; }
.phone .msg { max-width: 90%; }
.phone .convo-body { max-height: none; overflow: visible; }
.phone .convo-body, .phone .convo-head { padding-left: 16px; padding-right: 16px; }
.phone .composer { position: sticky; bottom: 0; background: var(--card); padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
.phone .card-pad { padding: 20px; }
.phone #toast:not([hidden]) { bottom: calc(env(safe-area-inset-bottom) + 170px); }
.phone .page-head { margin-bottom: 18px; }
.phone .next-media { display: none; }
.phone .side { grid-template-columns: 1fr; position: static; }
.phone #layer:not([hidden]) { align-items: end; padding: 0; }
.phone .sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px); max-height: 88vh; }
.phone .hcard .photo { aspect-ratio: 16 / 10; }
.phone .dates-strip { grid-auto-columns: 42%; }


/* =====================================================================
   AERO STEP (Tovah, 2026-09-25: "how do we make the app LOOK better" → "Go full Aero Step").
   Cream + white + olive only. Bold uppercase two-tone sans headlines. The app sits on one
   big white rounded sheet. Photos lead with frosted chips floating on them. Hairlines, not
   shadows. Olive pill buttons with a round arrow. Calm neutral boxes everywhere.
   Every text pair measured ≥ 4.5:1.
   ===================================================================== */
:root {
  --ground: #E9E7E1; --sheet: #F6F5F1; --card: #FFFFFF; --card-2: #F4F3EF; --sunk: #ECEAE4; --line: #E3E0D8;
  --ink: #1C1C1A; --ink-2: #55554F; --ink-3: #64645D;
  --olive: #5B5C3E; --olive-deep: #3F4029; --olive-soft: #E6E6D8; --olive-tint: #F1F1E8;
  --alert: #9A3B26; --alert-soft: #F5E3DD;
  /* the box colors, kept calm: all near-neutral, olive-leaning */
  --sage: #E6E7DA; --sand: #EFEDE6; --blush: #F3E6E0; --sky: #E7EBEA; --lilac: #EDEAE8; --butter: #F1EEDD;
  --serif: var(--font);
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 30, 20, .04);
  --shadow-lift: 0 16px 40px rgba(30, 30, 20, .12);
}
body { background: var(--ground); }

/* the sheet: header + page on one big white rounded card */
.shell { max-width: calc(var(--max) + 64px); margin: 16px auto 32px; background: var(--sheet); border-radius: 40px; overflow: clip; }
.top { position: sticky; background: color-mix(in srgb, var(--sheet) 92%, transparent); }
.top-in { padding-top: 20px; }
.nav { border-bottom: 1px solid var(--line); gap: 2px; }
.nav a { font-size: 15px; }
.nav a[aria-current="page"]::after { background: var(--olive); height: 2.5px; }
.main { padding-top: 28px; }
.brand { font-family: var(--font); font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { background: var(--olive); border-radius: 50%; }
.search { background: var(--card); border: 1px solid var(--line); }
.search .go, .iconbtn.dark { background: var(--olive); border-color: var(--olive); }
.av.ink { background: var(--olive); }

/* type: heavy uppercase, two tones */
.display, .h1, .h2, .next-title, .p-name, .price, .big-price, .kpi b, .stat b, .p-big, .cw-h b { font-family: var(--font); }
.display { font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: .95; }
.display .soft { font-style: normal; font-weight: 800; color: var(--ink-3); }
.page-head .display, .cal-head .display { font-size: clamp(34px, 3.8vw, 52px); }
.h1 { font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.h3 { font-weight: 800; }
.next-title { font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.p-name { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.big-price, .kpi b, .stat b, .p-big, .price { font-weight: 800; letter-spacing: -0.03em; }
.eyebrow { letter-spacing: .08em; }
.quote blockquote { font-family: var(--font); font-style: normal; font-weight: 600; font-size: 19px; }

/* buttons: olive pills, the round arrow, hairline outlines */
.btn-ink { background: var(--olive); }
.btn-ink:hover { background: var(--olive-deep); }
.btn-line { border-width: 1px; }
.btn-soft { background: var(--card-2); border: 1px solid var(--line); }
.chip { border-width: 1px; background: var(--card); }
.chip[aria-pressed="true"], .chip.on { background: var(--olive); border-color: var(--olive); }
.iconbtn { border-width: 1px; }
.tag { background: var(--olive-soft); color: var(--olive-deep); }

/* cards: white, hairline, no heavy shadows */
.card, .row, .qitem, .hcard, .dcard, .p-hero, .cal-month, .cw-day { box-shadow: none; border: 1px solid var(--line); }
.page-head, .today-head, .cal-head { background: transparent; padding: 6px 2px 0; border-radius: 0; }
.col { background: var(--card-2) !important; border: 1px solid var(--line); }
.side .card:nth-child(n) { background: var(--card); }
.next .next-body, .p-next .in { background: var(--card); }
.qitem[class*="k-"] { background: var(--card); }
.qitem .tag, .next .tag.plain { background: var(--olive-soft); color: var(--olive-deep); }
.quote { background: var(--card-2); }
.draft { border-width: 1px; }
.hcard .photo, .dcard .photo { background: var(--card-2); }
.hcard { padding: 10px; }
.hcard .photo { border-radius: calc(var(--r-lg) - 8px); }

/* section header pattern: small uppercase title · "See all →" */
.section-t .h2, .queue-head .h2 { font-size: 16px; }
.see-all { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.see-all:hover { color: var(--olive); }

/* ---------- Today: the photo hero with floating frosted chips ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 380px; margin-bottom: 26px; background: var(--card-2); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 245, 241, .96) 0%, rgba(246, 245, 241, .86) 34%, rgba(246, 245, 241, 0) 62%); }
.hero-in { position: relative; z-index: 1; padding: 34px 38px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; min-height: 380px; justify-content: center; }
.hero .display { font-size: clamp(48px, 5.4vw, 76px); }
.hero .lede { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 380px; }
.hero .actions { margin-top: 4px; }
.pill-eyebrow { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.glass-stack { position: absolute; z-index: 1; right: 22px; top: 22px; display: flex; flex-direction: column; gap: 10px; width: 230px; }
.glass { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .7); text-decoration: none; color: var(--ink); }
.glass .gi { width: 36px; height: 36px; border-radius: 50%; background: var(--olive-soft); display: grid; place-items: center; flex: none; color: var(--olive-deep); }
.glass b { display: block; font-size: 14px; line-height: 1.2; }
.glass span { font-size: 14px; color: var(--ink-2); }
.glass-foot { position: absolute; z-index: 1; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--pill); background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-foot .avs { display: flex; }
.glass-foot .av { width: 32px; height: 32px; font-size: 14px; border: 2px solid var(--card); margin-left: -8px; }
.glass-foot .av:first-child { margin-left: 0; }
.glass-foot b { font-size: 14px; }
.phone .hero { min-height: 0; }
.phone .hero::after { background: linear-gradient(180deg, rgba(246, 245, 241, .2) 0%, rgba(246, 245, 241, .96) 55%); }
.phone .hero-in { min-height: 0; padding: 150px 20px 22px; }
.phone .glass-stack, .phone .glass-foot { display: none; }
.phone .shell, .phone { background: var(--sheet); }
@media (max-width: 1100px) { .glass-stack { display: none; } }

/* phone dock in olive */
.dock a[aria-current="page"]::before { background: var(--olive); }
.dock .plus { background: var(--olive); }
.basis { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 16px 12px; font-size: 14px; color: var(--ink-2); border-top: 1.5px dashed var(--line); }
.basis b { color: var(--ink); font-weight: 700; }
.basis svg { width: 16px; height: 16px; margin-top: 2px; }

.hero .bar { background: rgba(255, 255, 255, .9); border: 1px solid var(--line); }
.hero .progress { background: rgba(255,255,255,.7); align-self: flex-start; padding: 8px 14px; border-radius: var(--pill); }

/* =====================================================================
   CLEAN PASS (Tovah, 2026-09-25: "Most of them are hideous. I want more spacing, cleaner lines").
   One system for every page:
   · a page opens with ONE bold title and a quiet subtitle (the giant two-line grey heads are for Today's hero only)
   · white cards on the sheet; INSIDE a card, rows are separated by hairlines — no gray boxes in boxes
   · more air: 40px between sections, 32px inside cards, 18–20px per row
   · 1px hairlines everywhere, lighter inputs, quieter tags
   ===================================================================== */
:root { --gap: 28px; --pad: 32px; }
.main { padding: 40px 48px 96px; }
.stack-lg { gap: 36px; }
.stack-md { gap: 18px; }
.grid-2 { gap: var(--gap); }
.grid-3 { gap: 20px; }
.card-pad { padding: var(--pad); }
.section-t { margin-bottom: 18px; }
.h2 { font-size: 15px; letter-spacing: .06em; }
body { line-height: 1.5; }

/* page heads: one title + a quiet line under it */
.page-head { align-items: flex-end; margin-bottom: 32px; padding: 0; border: 0; }
.page-head .display, .cal-head .display { font-size: clamp(34px, 3.4vw, 46px); line-height: 1; }
.page-head .display .soft, .cal-head .display .soft { display: block; margin-top: 12px; font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.cal-head { padding: 0; margin-bottom: 24px; }

/* inside a card: plain rows with hairlines, not boxes */
.card .tl, .card .check, .card .visit, .card .agenda-row, .card .mini, .card .share-row, .card .sync-row {
  background: transparent; border-radius: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.card .tl:last-child, .card .check:last-child, .card .visit:last-child, .card .agenda-row:last-child, .card .mini:last-child { border-bottom: 0; padding-bottom: 0; }
.card .tl:first-child, .card .check:first-child, .card .visit:first-child, .card .agenda-row:first-child, .card .mini:first-child { padding-top: 4px; }
.card .fact { background: transparent; padding: 0; border-radius: 0; }
.mini-list, .checklist, .timeline, .agenda { gap: 0; }
.tl-ico { background: var(--card-2); border: 1px solid var(--line); }
.side .card { padding: 26px 26px 20px; }
.side .card .agenda-row { padding: 14px 0; }

/* lists of people / conversations: ONE card, rows divided by hairlines */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); gap: 0; overflow: hidden; }
.list > .row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 22px; background: transparent; }
.list > .row:last-child { border-bottom: 0; }
.list > .row:hover { background: var(--card-2); }
.list > .row[aria-current="true"] { background: var(--olive-tint); box-shadow: inset 3px 0 0 var(--olive); }
.row .line { margin-top: 2px; }
.row .meta { gap: 8px; }
.grid-2 > .row.card { padding: 20px 22px; }

/* forms: lighter, calmer */
.field input, .field textarea, .field select, .composer textarea, .p-note textarea, textarea {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.field input, .field select { min-height: 48px; }
.field span { font-weight: 600; }
.field input:focus, .field textarea:focus, .field select:focus, textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-tint); outline: 0; }
/* the look's accent rings every type box (Tovah, 2026-09-29: "accent colors should surround the type boxes");
   stronger, with a soft halo, while typing. Disabled and invalid boxes keep their own rules (settings.css) */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(:disabled), .field textarea, .field select, .composer textarea, .p-note textarea {
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus, .field textarea:focus, .field select:focus, .composer textarea:focus, .p-note textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: 0;
}

/* tags + chips: quieter */
.tag { font-weight: 600; padding: 4px 11px; }
.tag.plain { background: var(--card-2); border: 1px solid var(--line); }
.chips { gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; font-weight: 600; }

/* cards breathe */
.card { border-radius: var(--r-lg); }
.today-grid { gap: 32px; }
.side { gap: 24px; }
.qlist { gap: 16px; }
.qitem { padding: 20px; gap: 12px; }
.home-grid { gap: 24px; }
.hcard .in { padding: 14px 8px 8px; gap: 4px; }
.board { gap: 18px; }
.col { padding: 16px; gap: 14px; border-radius: var(--r-lg); }
.dcard .in { padding: 16px; }
.split { gap: 32px; }
.three { gap: 28px; }
.convo-head { padding: 22px 28px; }
.convo-body { padding: 26px 28px; gap: 20px; }
.composer { padding: 20px 24px 24px; }
.bubble { border-radius: 18px; padding: 14px 18px; }
.kd { padding: 16px; }
.dates-strip { gap: 12px; }
.spec-row { gap: 10px; }
.spec { padding: 10px 16px; border: 1px solid var(--line); background: var(--card); }
.phone .main, .phone .p-main { padding: 8px 18px 28px; }
.page-head .display br, .cal-head .display br { display: none; }
/* phone: the move card is ONE column (it also carries .next for the keyboard/scroll hooks) */
.phone .next { display: block; grid-template-columns: none; }
.phone .p-name { font-size: 30px; }
.phone .p-hero .av.xl { width: 72px; height: 72px; font-size: 24px; }
.phone .p-hero-actions { width: 100%; }
.phone .chips > *, .phone .cal-seg > *, .phone .actions > .btn { flex: none; }
.phone .main > *, .phone .p-main > * { min-width: 0; }
.phone { overflow-x: clip; }

/* ============ Inbox: three panels (2026-09-25 rebuild) ============ */
.main:has(.ibx) { padding-top: 24px; padding-bottom: 32px; }
.ibx { display: grid; grid-template-columns: 360px minmax(0, 1fr) 300px; height: calc(100vh - 190px); min-height: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ibx-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--card-2); }
.ibx-list-head { padding: 22px 20px 14px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.ibx-title { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.ibx-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); }
.ibx-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.ibx-search svg { width: 16px; height: 16px; color: var(--ink-2); }
.ibx-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ibx-f { border: 0; background: transparent; padding: 7px 11px; border-radius: var(--pill); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; flex: none; }
.ibx-f span { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.ibx-f.on { background: var(--olive); color: var(--on-dark); }
.ibx-f.on span { color: var(--on-dark); opacity: .85; }
.ibx-rows { overflow-y: auto; flex: 1; }
.ibx-row { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ibx-row:hover { background: var(--card); }
.ibx-row[aria-current="true"] { background: var(--card); box-shadow: inset 3px 0 0 var(--olive); }
.ibx-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ibx-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ibx-row-top b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx-row-top time { flex: none; font-size: 14px; color: var(--ink-2); }
.ibx-row-text { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.ibx-row-text .you { color: var(--ink-3); }
.ibx-row.unread .ibx-row-top b { font-weight: 800; }
.ibx-row.unread .ibx-row-text { color: var(--ink); }
.ibx-row-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.ibx-row-meta .ch { display: inline-flex; align-items: center; gap: 5px; }
.ibx-row-meta svg { width: 14px; height: 14px; }
.ibx-draft { display: inline-flex; align-items: center; gap: 4px; color: var(--olive); font-weight: 700; }
.ibx-row-meta .dot { margin-left: auto; }

.ibx-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ibx-thread-head { display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.ibx-thread-head .grow { flex: 1; min-width: 0; }
.ibx-name { font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.ibx-msgs { flex: 1; overflow-y: auto; padding: 28px 30px; display: flex; flex-direction: column; gap: 22px; max-height: none; }
.ibx-msg { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
.ibx-msg header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.ibx-msg header b { font-weight: 700; }
.ibx-msg header span { color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; }
.ibx-msg header svg { width: 14px; height: 14px; }
.ibx-msg h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ibx-body { white-space: pre-wrap; line-height: 1.6; font-size: 16px; }
.ibx-msg.chat .ibx-body { padding: 12px 16px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); align-self: flex-start; }
.ibx-msg.chat.out { align-self: flex-end; align-items: flex-end; }
.ibx-msg.chat.out .ibx-body { background: var(--olive); color: var(--on-dark); border-color: var(--olive); }
.ibx-msg.flagged { border-color: var(--alert); }
.ibx-files { display: flex; gap: 8px; flex-wrap: wrap; }
.ibx-files small { color: var(--ink-3); margin-left: 4px; }
.ibx-ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-sm); background: var(--olive-tint); font-size: 15px; }
.ibx-ask svg { width: 16px; height: 16px; color: var(--olive); }
.ibx-compose { border-top: 1px solid var(--line); padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.ibx-compose-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.ibx-compose .ai { display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-weight: 700; font-size: 14px; }
.ibx-compose textarea { width: 100%; min-height: 110px; max-height: 38vh; resize: vertical; padding: 14px 16px; font-size: 16px; line-height: 1.55; background: var(--card-2); }
.ibx-compose-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ibx-tones { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ibx-tones .chip { min-height: 34px; padding: 0 12px; font-size: 14px; }

.ibx-ctx { border-left: 1px solid var(--line); overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 22px; background: var(--card); }
.ibx-ctx-who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ibx-ctx-who b { font-size: 17px; font-weight: 800; margin-top: 6px; }
.ibx-ctx-contact { color: var(--ink-2); overflow-wrap: anywhere; }
.ibx-ctx-who .btn { margin-top: 8px; min-height: 40px; }
.ibx-deal { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); }
.ibx-deal .photo { height: 110px; }
.ibx-deal .in { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.ibx-deal b { font-size: 15px; }
.ibx-ctx section { display: flex; flex-direction: column; gap: 8px; }
.ibx-ctx .h2 { font-size: 14px; margin: 0; }
.ibx-ctx-item { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); }
.ibx-ctx-item span { font-size: 14px; color: var(--olive); font-weight: 700; }
.ibx-empty { display: grid; place-items: center; color: var(--ink-2); grid-column: 2 / 4; }
@media (max-width: 1240px) { .ibx { grid-template-columns: 320px minmax(0, 1fr); } .ibx-ctx { display: none; } }
/* phone: the list, or one conversation, full width */
.phone .ibx-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); min-height: 0; }
.phone .ibx-thread { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.phone .ibx-msgs { padding: 20px 16px; overflow: visible; }
.phone .ibx-thread-head { padding: 14px 16px; }
.phone .ibx-compose { padding: 14px 16px 18px; }
.phone .ibx-tones { margin-left: 0; }

.basis-ref { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer; }
.basis-ref:hover { color: var(--olive); text-decoration-color: var(--olive); }
.ref-from { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ref-body { white-space: pre-wrap; line-height: 1.6; font-size: 16px; }

.tag.block { background: var(--ink); color: var(--on-dark); }
.tag.block svg { width: 14px; height: 14px; }
.qitem .tag.block { background: var(--ink); color: var(--on-dark); white-space: normal; }

/* ---- the calm move card (2026-09-25 "looks crowded") ---- */
.next-body { padding: 36px 40px 32px; gap: 16px; }
.next-top { gap: 12px; }
.next-title { font-size: 30px; line-height: 1.08; margin: 2px 0 0; }
.next-why { margin: -4px 0 4px; color: var(--ink-2); font-size: 16px; }
.next-why a { color: var(--ink); font-weight: 600; text-decoration: none; }
.next-why a:hover { color: var(--olive); }
.next-quote { margin: 4px 0 6px; padding-left: 16px; border-left: 2px solid var(--line); }
.next-quote blockquote { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.next-quote figcaption { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.draft.calm { background: transparent; border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 8px; }
.draft-label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.draft-label svg { width: 15px; height: 15px; color: var(--olive); }
.draft.calm textarea { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2); padding: 16px 18px; font-size: 16px; line-height: 1.55; min-height: 0; }
.draft-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.draft-foot .basis { padding: 0; border: 0; flex: 1; min-width: 240px; }
.tones { display: flex; gap: 14px; }
.tone { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tone:hover { color: var(--olive); }
.next-actions { margin-top: 6px; }
.next-media .home-chip { font-size: 14px; }
.phone .next-body, .phone .p-next .in { padding: 22px 20px; }

button.attach { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
button.attach:hover { border-color: var(--olive); }
button.attach small, .attach.saved small { color: var(--olive); font-weight: 700; margin-left: 4px; }
.attach.saved { background: var(--good-soft); border-color: transparent; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; accent-color: var(--olive); }

/* =====================================================================
   THE DASHBOARD LOOK (Tovah, 2026-09-25: "this is the style i want").
   Cream ground, white rounded tiles, black feature cards with an accent glow, one accent
   (red · blue · olive — Settings → Look), huge sentence-case greeting with the name in the
   accent, numbered sections ("• 01 / YOUR BUSINESS"), round ↗ links. Every text pair ≥ 4.5:1.
   ===================================================================== */
:root {
  --ground: #F2EFE9; --sheet: #F2EFE9; --card: #FFFFFF; --card-2: #F7F5F0; --sunk: #EAE6DE; --line: #E4DFD5;
  --ink: #141413; --ink-2: #55534D; --ink-3: #5F5D56;
  --dark: #141413; --dark-2: #232321; --dark-line: #34332F; --on-dark-2: #BDBAB2;
  --accent: #B3261E; --accent-lift: #F0766B;
  --sw-red: #B3261E; --sw-blue: #2F5E8C; --sw-olive: #5B5C3E;
}
:root[data-accent="blue"] { --accent: #2F5E8C; --accent-lift: #8DB5DC; }
:root[data-accent="olive"] { --accent: #5B5C3E; --accent-lift: #BFC291; }
:root { --olive: var(--accent); --olive-deep: color-mix(in srgb, var(--accent) 75%, black); --olive-soft: color-mix(in srgb, var(--accent) 14%, white); --olive-tint: color-mix(in srgb, var(--accent) 7%, white); }
body { background: var(--ground); }
.shell { max-width: none; margin: 0; background: transparent; border-radius: 0; overflow: visible; }
.main { max-width: 1440px; margin: 0 auto; padding: 36px 48px 96px; }

/* ---------- masthead: icons · wordmark · actions ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 0; }
.top-in.mast { max-width: 1440px; margin: 0 auto; padding: 18px 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.mast-nav, .mast-act, .p-act { display: flex; align-items: center; gap: 8px; }
.mast-act { justify-content: flex-end; }
.mast-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mast-ic:hover { border-color: var(--ink-3); }
.mast-ic[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.mast-ic.ink { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.mast-ic .badge, .dock-it .badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--on-dark); font-size: 14px; font-weight: 800; line-height: 22px; text-align: center; border: 2px solid var(--ground); box-sizing: content-box; }
.mast-brand, .p-brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.mast-brand .word { font-weight: 800; font-size: 34px; letter-spacing: -0.05em; }
.mast-brand .when, .p-brand .when { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn-accent { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.btn-accent:hover { background: var(--olive-deep); }
.circ { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; flex: none; text-decoration: none; color: inherit; }
.circ svg { transform: rotate(-45deg); width: 18px; height: 18px; }

/* ---------- Today: greeting + Next up ---------- */
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 32px; align-items: stretch; margin-bottom: 56px; }
.greet { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.greet-h { margin: 0; font-weight: 800; font-size: clamp(52px, 6.6vw, 104px); line-height: .92; letter-spacing: -0.055em; }
.greet-h em { font-style: normal; color: var(--accent); }
.greet-d { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.greet .actions { margin-top: 10px; }
.next-up { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); text-decoration: none; min-height: 220px; overflow: hidden; isolation: isolate; }
.next-up::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .45; z-index: -1; }
.next-up .circ { position: absolute; top: 22px; right: 22px; color: var(--on-dark); border-color: var(--dark-line); background: var(--dark-2); }
.nu-k, .sec-t { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.next-up .dot { background: var(--accent-lift); }
.nu-tag { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent-lift); }
.nu-t { font-size: 26px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
.nu-s { font-size: 15px; color: var(--on-dark-2); font-weight: 600; }

/* ---------- numbered sections ---------- */
.sec { margin-bottom: 56px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sec-meta { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.sec-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.sec-link .circ { width: 36px; height: 36px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi-tile { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 22px; background: var(--card); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.kpi-tile:hover { border-color: var(--ink-3); }
.kpi-tile b { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.kpi-tile span { font-size: 16px; font-weight: 600; color: var(--ink-2); }

/* ---------- black cards ---------- */
.dark-card, .ch-card.dark { position: relative; background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.dark-card::before, .ch-card.dark::before { content: ''; position: absolute; left: 30%; top: -120px; width: 420px; height: 260px; border-radius: 50%; background: var(--accent); filter: blur(110px); opacity: .32; z-index: -1; }
.year-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; padding: 32px 36px; margin-bottom: 16px; align-items: end; }
.yc-stats { display: grid; gap: 22px; }
.yc-stats > div { display: flex; flex-direction: column; gap: 4px; }
.yc-stats .k { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.yc-stats b { font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.yc-stats > div:first-child b { font-size: 64px; }
.yc-stats .s { font-size: 15px; font-weight: 600; color: var(--on-dark-2); }
.ch-line svg { width: 100%; height: 190px; display: block; }
.ch-line .stroke { fill: none; stroke: var(--accent-lift); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ch-line .area { fill: var(--accent); opacity: .35; }
.ch-x { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--on-dark-2); }

/* ---------- chart cards ---------- */
.ch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ch-stack { display: grid; gap: 14px; }
.ch-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ch-card.dark { border-color: var(--dark); }
.ch-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-card h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ch-card.dark .circ { color: var(--on-dark); border-color: var(--dark-line); }
.ch-split { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; }
.ch-donut { position: relative; width: 150px; height: 150px; }
.ch-donut svg { width: 150px; height: 150px; transform: none; }
.ch-donut circle { fill: none; stroke-width: 5.2; }
.ch-donut .track { stroke: var(--sunk); }
.ch-card.dark .ch-donut .track { stroke: var(--dark-2); }
.ch-donut .sl, .ch-legend .dot { stroke: var(--accent); background: var(--accent); opacity: calc(1 - var(--i) / var(--n) * .78); }
.ch-card.dark .ch-donut .sl, .ch-card.dark .ch-legend .dot { stroke: var(--accent-lift); background: var(--accent-lift); }
.ch-donut .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ch-donut .mid b { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ch-donut .mid span { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ch-card.dark .ch-donut .mid span { color: var(--on-dark-2); }
.ch-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ch-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.ch-legend li > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-legend .pc { color: var(--ink-2); min-width: 38px; text-align: right; }
.ch-card.dark .ch-legend .pc { color: var(--on-dark-2); }
.ch-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ch-hbars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; }
.ch-hbars .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-hbars .bar { height: 12px; border-radius: 6px; background: var(--dark-2); overflow: hidden; }
.ch-hbars .bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent-lift); }
.ch-hbars b { text-align: right; }
.ch-vbars { display: flex; align-items: stretch; gap: 8px; height: 190px; }
.ch-vbars .vcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ch-vbars .vcol b { font-size: 14px; min-height: 20px; }
.ch-vbars .bar { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; border-radius: 8px; background: var(--card-2); overflow: hidden; }
.ch-vbars .bar i { display: block; width: 100%; border-radius: 8px; background: var(--ink); }
.ch-vbars .vcol.now .bar i { background: var(--accent); }
.ch-vbars .l { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ch-gauge svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.ch-gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.ch-gauge .track { stroke: var(--dark-2); }
.ch-gauge .val { stroke: var(--accent-lift); }
.gauge-n { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-top: -8px; }
.gauge-n b { font-size: 40px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.gauge-n span { font-size: 15px; font-weight: 600; color: var(--on-dark-2); }

/* the move queue sits on white tiles too */
.today-grid { gap: 20px; }
.card.next { border: 1px solid var(--line); box-shadow: none; }
.next .tag.block, .qitem .tag.block { background: var(--ink); color: var(--on-dark); }

/* ---------- Settings → Look ---------- */
.look-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.look-sw { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 12px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--card); font-weight: 700; }
.look-sw[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.look-sw .sw { width: 30px; height: 30px; border-radius: 50%; }
.sw-red { background: var(--sw-red); } .sw-blue { background: var(--sw-blue); } .sw-olive { background: var(--sw-olive); }

/* ---------- phone ---------- */
.phone .p-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 16px 12px; }
.p-brand { align-items: flex-start; }
.p-brand .word { font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.p-act .mast-ic { width: 44px; height: 44px; }
.phone .dash-hero, .phone .greet { display: block; }
.phone .greet-h { font-size: 44px; text-transform: uppercase; letter-spacing: -0.04em; line-height: .95; }
.phone .greet-h br { display: none; }
.phone .greet .actions { margin: 18px 0 18px; flex-wrap: nowrap; }
.phone .greet .actions .btn { flex: 1; padding: 0 14px; }
.phone .next-up { min-height: 170px; margin-bottom: 36px; padding: 22px; }
.phone .nu-t { font-size: 22px; padding-right: 40px; }
.phone .sec { margin-bottom: 40px; }
.phone .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
.phone .kpi-tile { padding: 20px; }
.phone .kpi-tile b { font-size: 44px; }
.phone .year-card { grid-template-columns: 1fr; padding: 24px 22px; gap: 20px; }
.phone .yc-stats { grid-template-columns: 1fr 1fr; }
.phone .yc-stats > div:first-child b { font-size: 40px; }
.phone .yc-stats b { font-size: 32px; }
.phone .ch-line svg { height: 140px; }
.phone .ch-x span:nth-child(even) { visibility: hidden; }
.phone .ch-card { padding: 22px 20px; }
.phone .ch-split { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.phone .ch-donut, .phone .ch-donut svg { width: 120px; height: 120px; }
.phone .ch-donut .mid b { font-size: 28px; }
.phone .sec-link { font-size: 15px; }
/* ★★ FLUSH TO THE BOTTOM (Tovah, 2026-10-22: "on mobile. I want the bottom bar all the way at the
   bottom like onlinegamercllub"). It was a floating pill inset 12px from each side with 14px of ground
   showing underneath it.
   ⚠️ `bottom: 0` and the safe area goes into the PADDING instead. On a phone with a home indicator,
   `bottom: env(safe-area-inset-bottom)` leaves a strip of page visible below the bar, which is the gap
   she is pointing at; padding puts the bar's own background behind the indicator and keeps the icons
   above it.
   ⚠️ The top corners stay round and the bottom ones square: a bar that meets the edge of the screen has
   no bottom corners to round. */
.dock { left: 0; right: 0; bottom: 0; padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px);
  border-radius: 24px 24px 0 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0;
  align-items: flex-end; }
.dock .dock-it { flex: 1; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 0; color: var(--ink); text-decoration: none; background: transparent; }
.dock .dock-it::before { display: none; }
.dock-it .ring { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.dock-it .lab { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.dock-it[aria-current="page"] .ring { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.dock-it[aria-current="page"] .lab { color: var(--ink); }
.dock .dock-plus { flex: none; width: 60px; height: 60px; margin-bottom: 4px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-dark); }
.dock .dock-plus svg { width: 26px; height: 26px; }
/* ⚠️ The page has to clear the bar, and the bar now owns the safe area as padding - so the page's own
   clearance has to add it back, or the last card sits under the home indicator on a tall phone. */
.phone { padding-bottom: calc(env(safe-area-inset-bottom) + 124px); }

@media (max-width: 1180px) {
  .ch-row { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mast-brand .when { display: none; }
}
.phone .greet-h { font-size: 38px; }
/* ★ the date line breathes under the wordmark, and the page starts 20px below the masthead (Tovah, 2026-10-03) */
.phone .p-brand .when { white-space: nowrap; margin-top: 10px; }
.phone .p-main { padding-top: 20px; }
.phone .tag.block { white-space: normal; max-width: 100%; }
.ch-vbars .bar { position: relative; display: block; }
.ch-vbars .bar i { position: absolute; left: 0; right: 0; bottom: 0; }
.queue-more { margin-top: 14px; }
.ch-gauge svg { height: auto; }
.ch-vbars { gap: 6px; }
/* the hand-off's attachment slot */
.attach-slot { display: flex; align-items: center; gap: 14px; margin: 12px 14px 0; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line); background: var(--card); cursor: pointer; position: relative; }
.attach-slot > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attach-slot b { font-weight: 800; }
.attach-slot .muted { font-size: 14px; }
.attach-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-slot.on { border-style: solid; border-color: var(--ink); }
.attach-slot.need { border-color: var(--accent); }
.attach-slot svg { color: var(--accent); }

/* ===== crisp charts (Tovah, 2026-09-25: "make these charts crisper") ===== */
:root { --accent-deep: color-mix(in srgb, var(--accent) 72%, black); --glow: color-mix(in srgb, var(--accent) 38%, transparent); --text-glow: 0 0 22px color-mix(in srgb, var(--on-dark) 28%, transparent); }
.dark-card, .ch-card.dark { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--dark)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), 0 12px 44px var(--glow); }
.dark-card::before, .ch-card.dark::before { opacity: .18; }
.sec-link, .ch-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: inherit; text-decoration: none; white-space: nowrap; }
.sec-link:hover, .ch-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sec-link .arr svg, .ch-link .arr svg { width: 16px; height: 16px; transform: rotate(-45deg); }

/* the year card: three numbers across, the line underneath */
.year-card { display: block; padding: 30px 32px 24px; }
.yc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 8px; }
.yc-stats .k { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; }
.yc-stats .k .dot { width: 5px; height: 5px; background: var(--on-dark-2); }
.yc-stats b, .yc-stats > div:first-child b { font-size: 46px; text-shadow: var(--text-glow); }
.ch-plot { position: relative; }
.ch-line svg { height: 210px; overflow: visible; }
.ch-line .stroke { stroke: var(--accent); stroke-width: 2.5; }
.ch-line .area { fill: url(#yc-fill); opacity: 1; }
.ch-line .g0 { stop-color: var(--accent); stop-opacity: .42; }
.ch-line .g1 { stop-color: var(--accent); stop-opacity: 0; }
.ch-line .drop { stroke: color-mix(in srgb, var(--on-dark) 14%, transparent); stroke-width: 1; }
.ch-line .end { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--on-dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--on-dark) 18%, transparent), 0 0 18px var(--on-dark); }
.ch-x { margin-top: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* cards */
.ch-card { gap: 22px; padding: 24px 26px 26px; }
.ch-card h3 { font-size: 21px; }
.ch-card header { align-items: baseline; }

/* donuts: thick ring, centered, legend underneath with squares */
.ch-donut, .ch-donut svg { width: 188px; height: 188px; margin: 0 auto; }
.ch-donut circle { stroke-width: 7.4; }
.ch-donut .sl, .ch-card.dark .ch-donut .sl { stroke: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 13%), black); opacity: 1; }
.ch-card.dark .ch-donut .sl { stroke: color-mix(in srgb, var(--accent-lift) calc(100% - var(--i) * 22%), var(--accent-deep)); }
.ch-donut .mid b { font-size: 40px; }
.ch-legend { gap: 12px; }
.ch-legend li { grid-template-columns: 12px minmax(0, 1fr) auto 44px; }
.ch-legend .sq { width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 13%), black); }
.ch-card.dark .ch-legend .sq { background: color-mix(in srgb, var(--accent-lift) calc(100% - var(--i) * 22%), var(--accent-deep)); }
.ch-legend b { text-align: right; }

/* horizontal bars: thin, accent on a dark track */
.ch-hbars { gap: 18px; margin-top: 6px; }
.ch-hbars li { grid-template-columns: 116px minmax(0, 1fr) 30px; }
.ch-hbars .bar { height: 7px; border-radius: 4px; background: var(--dark-2); }
.ch-hbars .bar i { background: var(--accent); border-radius: 4px; }

/* vertical bars: solid, no track, number riding on top */
.ch-vbars { height: 200px; gap: 10px; align-items: stretch; }
.ch-vbars .vcol { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ch-vbars .bar { position: relative; flex: 1; width: 100%; max-width: none; background: none; border-radius: 0; overflow: visible; display: block; }
.ch-vbars .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 7px 7px 3px 3px; background: var(--accent-deep); }
.ch-vbars .vcol.now .bar i { background: var(--accent); }
.ch-vbars .bar b { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 6px); text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); min-height: 0; }
.ch-vbars .vcol.now .bar b { color: var(--ink); }
.ch-vbars .l { text-align: center; font-size: 14px; font-weight: 600; }

/* gauge: thin arc, number inside */
.ch-gauge { position: relative; max-width: 260px; margin: 8px auto 0; width: 100%; }
.ch-gauge svg { max-width: none; }
.ch-gauge path { stroke-width: 6; }
.ch-gauge .val { stroke: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }
.ch-gauge .gauge-n { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; }
.ch-gauge .gauge-n b { font-size: 38px; text-shadow: var(--text-glow); }
.gauge-s { margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--on-dark-2); line-height: 1.45; }

/* phone */
.phone .year-card { padding: 26px 20px 20px; }
.phone .yc-stats { grid-template-columns: 1fr 1fr; text-align: center; }
.phone .yc-stats > div { align-items: center; }
.phone .yc-stats .lead { grid-column: 1 / -1; }
.phone .yc-stats b { font-size: 32px; }
.phone .yc-stats .lead b { font-size: 46px; }
.phone .ch-line svg { height: 170px; }
.phone .ch-donut, .phone .ch-donut svg { width: 170px; height: 170px; }
.phone .ch-card header { flex-wrap: wrap; }
.dark-card, .ch-card.dark { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 10px 30px color-mix(in srgb, var(--accent) 16%, transparent); }
.ch-line .stroke { stroke: color-mix(in srgb, var(--accent) 65%, var(--accent-lift)); stroke-width: 3; }
.ch-vbars { flex: 1; min-height: 200px; height: auto; }
.ch-hbars { flex: 1; align-content: space-evenly; }
.ch-donut .sl, .ch-card.dark .ch-donut .sl { stroke: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 8%), black); }
.ch-legend .sq { background: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 8%), black); }
.dash-hero { grid-template-columns: 1fr; margin-bottom: 44px; }

/* ---------- lead inbox (inbound_leads) ---------- */
.li-addr { display: grid; gap: 10px; margin-bottom: 20px; }
.li-k { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.li-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.li-mail { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; word-break: break-all; }
.li-list { display: grid; }
.li-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.li-item:first-child { padding-top: 0; }
.li-item:last-child { border-bottom: 0; padding-bottom: 0; }
.li-src { display: inline-flex; align-items: center; gap: 8px; }
.li-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.li-main > b { font-size: 17px; }
.li-out { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.phone .li-item { grid-template-columns: 1fr; gap: 10px; }
.phone .li-out { align-items: flex-start; }
.ibx-lead-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.ibx-lead-link:hover { color: var(--ink); text-decoration: underline; }
.ibx-ask .due-q, .ibx-ctx-item .due-q { font-style: normal; color: var(--ink-2); }
.tour-note { display: flex; gap: 12px; align-items: flex-start; margin: 12px 14px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--olive-tint); border: 1px solid var(--line); }
.tour-note > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tour-note svg { color: var(--accent); margin-top: 2px; }
.tour-note b { font-weight: 800; }
.tour-note .stop { font-size: 15px; color: var(--ink-2); }
.ibx-compose .tour-note { margin: 0 0 12px; }
/* attachments: one button on the message, one modal for the files */
.att-list { display: grid; }
.att-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.att-row:last-child { border-bottom: 0; }
.att-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.att-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .att-row { grid-template-columns: auto minmax(0, 1fr); }
.phone .att-row .actions { grid-column: 1 / -1; }
.ibx-ask.quiet { background: var(--card-2); border: 1px dashed var(--line); }

/* ===== Inbox, calmer (2026-09-25: "this whole thing looks crowded") ===== */
.ibx.two { grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 170px); }
.ibx.two .ibx-thread { display: flex; flex-direction: column; min-height: 0; }
.ibx.two .ibx-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.ibx.two .ibx-msg { max-width: 720px; }
.ibx.two .ibx-thread-head { padding: 18px 28px; }
.ibx-lead-link { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ibx-lead-link:hover { color: var(--ink); }
.ibx.two .ibx-row { padding: 16px 20px; gap: 12px; }
.ibx.two .ibx-row-meta { margin-top: 4px; }
.ibx.two .ibx-compose { padding: 16px 28px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.ibx.two .ibx-compose.has-draft { background: var(--card-2); }
.ibx-compose-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ibx-compose-top .ai { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 15px; }
.small-tabs button { padding: 6px 14px; font-size: 14px; }
.tour-line { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; color: var(--ink-2); }
.tour-line svg { color: var(--accent); width: 16px; height: 16px; }
.tour-line b { color: var(--ink); }
.ibx.two .ibx-compose textarea { min-height: 96px; max-height: 220px; resize: vertical; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); padding: 14px 16px; font-size: 16px; line-height: 1.5; width: 100%; }
.ibx.two .ibx-compose-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.phone .ibx-basis { white-space: normal; }
.ibx-basis { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx-basis .basis-ref { font-size: 14px; }
.ibx.two .ibx-tones { display: inline-flex; gap: 14px; }
.ibx.two .ibx-tones .tone { background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ibx.two .ibx-tones .tone:hover { color: var(--ink); text-decoration: underline; }
.sheet .ibx-ctx { display: block; border: 0; padding: 0; width: auto; }
.ibx.two .ibx-filters { flex-wrap: wrap; row-gap: 8px; overflow: visible; }

/* ===== Inbox uses the whole screen (2026-09-25: the dead space around it, the reply box "way too small") ===== */
.main:has(.ibx.two) { max-width: none; padding: 8px 24px 16px; }
.ibx.two { height: calc(100vh - 112px); min-height: 620px; grid-template-columns: 360px minmax(0, 1fr); }
.ibx.two .ibx-msgs { padding: 24px 32px; }
.ibx.two .ibx-msg { max-width: min(880px, 100%); }
.ibx.two .ibx-compose { padding: 16px 32px 20px; }
.ibx.two .ibx-compose textarea { min-height: clamp(180px, 34vh, 360px); max-height: 60vh; }

/* Incoming calls must sit above the app dock and sheets on both surfaces. */
.call-banner { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 85; width: min(520px, calc(100vw - 24px)); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); box-shadow: 0 8px 32px rgba(0, 0, 0, .25); }
.call-banner-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.call-banner-who > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.call-banner .call-av { flex-shrink: 0; }
.call-banner-name { font-size: 16px; font-weight: 700; }
.call-banner-sub { font-size: 14px; color: var(--on-dark-2); }
.call-banner-actions { display: flex; gap: 8px; margin-left: auto; }
.call-banner-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--on-dark-2); border-radius: var(--r-lg); font-size: 16px; font-weight: 700; cursor: pointer; }
.call-banner [data-call-decline] { background: transparent; color: var(--on-dark); }
.call-banner [data-call-answer] { background: var(--on-dark); color: var(--dark); }

/* ===== the in-app call screen (src/lib/call.js) in the new look ===== */
.call-layer { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 18px; padding: 28px; color: var(--on-dark); background: radial-gradient(900px 600px at 20% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), var(--dark); }
.call-layer svg.ico { width: 22px; height: 22px; }
.call-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.call-who { display: flex; align-items: center; gap: 14px; }
.call-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: 18px; }
.call-av.lg { width: 120px; height: 120px; font-size: 44px; }
.call-name { font-weight: 800; font-size: 20px; }
.call-sub, .call-timer, .call-wait, .call-line { color: var(--on-dark-2); font-size: 15px; font-weight: 600; }
.call-timer { font-size: 18px; font-variant-numeric: tabular-nums; }
.call-stage { position: relative; flex: 1; min-height: 0; border-radius: var(--r-xl); overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.call-tile { display: grid; place-items: center; }
.call-remote { position: absolute; inset: 0; align-content: center; gap: 14px; text-align: center; }
.call-remote video, .call-local video { width: 100%; height: 100%; object-fit: cover; }
.call-local { position: absolute; right: 18px; bottom: 18px; width: 220px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.call-local.off video { visibility: hidden; }
.call-stage.audio .call-local { display: none; }
.call-line { text-align: center; }
.call-bar { display: flex; justify-content: center; gap: 16px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; padding: 14px 12px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .1); color: var(--on-dark); font-weight: 700; font-size: 14px; }
.call-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .24); }
.call-btn.call-end { background: var(--alert); border-color: var(--alert); }
.phone .call-layer { padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px); }
.phone .call-local { width: 110px; right: 12px; bottom: 12px; }

/* ===== Inbox: three equal columns, calm (2026-09-25) ===== */
.ibx.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(100vh - 112px); min-height: 620px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.main:has(.ibx.three) { max-width: none; padding: 8px 24px 16px; }
.ibx.three > * { min-width: 0; min-height: 0; }
.ibx.three .ibx-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ibx.three .ibx-list-head { padding: 24px 28px 16px; display: grid; gap: 14px; }
.ibx.three .ibx-rows { flex: 1; overflow-y: auto; }
.ibx.three .ibx-row { padding: 18px 28px; }
.ibx.three .ibx-filters { flex-wrap: wrap; row-gap: 8px; }
.ibx.three .ibx-thread { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.ibx.three .ibx-thread-head { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.ibx.three .ibx-msgs { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.ibx.three .ibx-msg { max-width: 100%; }
.ibx.three .ibx-reply { display: flex; flex-direction: column; background: rgba(255, 255, 255, .28); }
.ibx-reply-head { padding: 28px 28px 8px; font-size: 18px; font-weight: 800; }
.ibx.three .ibx-compose { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 28px 24px; border-top: 0; background: transparent !important; }
.ibx.three .ibx-compose textarea { flex: 1; min-height: 240px; max-height: none; resize: none; }
.ibx.three .ibx-compose-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.ibx.three .ibx-compose-bar .ibx-tones { grid-column: 1 / -1; order: -1; justify-content: flex-start; gap: 18px; }
.ibx.three .ibx-basis { white-space: normal; }
.ibx.three .tour-line { flex-wrap: wrap; align-items: flex-start; }
.ibx.three .ibx-thread-head .actions .btn { padding: 0 16px; }
@media (max-width: 1280px) { .ibx.three { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); } }
.ibx.three .ibx-reply { height: 100%; min-height: 0; }
.ibx.three .ibx-reply > .ibx-compose { flex: 1 1 auto; min-height: 0; background: transparent !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ibx.three .ibx-compose textarea { flex: 1 1 auto; height: auto; }
.ibx.three .ibx-thread-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.ibx.three .ibx-thread-head .grow { min-width: 0; }
.ibx.three .ibx-thread-head .ibx-name { font-size: 18px; }
.ibx.three .ibx-thread-head .actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 10px; }
.ibx.three .ibx-thread-head .iconbtn { width: 44px; height: 44px; }

/* ===== Details modal (the person's context), clean (2026-09-25 "messed up") ===== */
.sheet .ibx-ctx { display: grid; gap: 22px; padding: 0; background: transparent !important; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; height: auto; }
.sheet .ibx-ctx-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av name btn" "av role btn" "av contact btn"; gap: 2px 16px; align-items: center; text-align: left; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.sheet .ibx-ctx-who .av { grid-area: av; width: 64px; height: 64px; font-size: 22px; }
.sheet .ibx-ctx-who > b { grid-area: name; font-size: 20px; }
.sheet .ibx-ctx-who > .muted { grid-area: role; }
.sheet .ibx-ctx-who .ibx-ctx-contact { grid-area: contact; color: var(--ink-2); }
.sheet .ibx-ctx-who .btn { grid-area: btn; align-self: center; }
.sheet .ibx-deal { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .5); text-decoration: none; color: inherit; }
.sheet .ibx-deal .photo { width: 120px; height: 84px; border-radius: var(--r-md); overflow: hidden; }
.sheet .ibx-deal .photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet .ibx-deal .in { display: grid; gap: 3px; }
.sheet .ibx-ctx section { display: grid; gap: 0; }
.sheet .ibx-ctx section h2 { margin: 0 0 6px; font-size: 14px; letter-spacing: .08em; }
.sheet .ibx-ctx-item { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; color: inherit; }
.sheet .ibx-ctx-item:last-child { border-bottom: 0; }
.sheet .ibx-ctx-item span { flex: none; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.phone .sheet .ibx-ctx-who { grid-template-areas: "av name" "av role" "av contact" "btn btn"; grid-template-columns: auto minmax(0, 1fr); }
.phone .sheet .ibx-ctx-who .btn { justify-self: start; margin-top: 10px; }

/* ===== sorting email + "Which deal?" (2026-09-25) ===== */

/* Homes filters: one wrapping row of calm pills; a chosen filter wears the accent */
.home-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.home-filters .hf-q { flex: 1 1 240px; max-width: 340px; margin: 0; }
.home-filters select { height: 46px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); max-width: 220px; }
.home-filters select.on { border-color: var(--accent, var(--olive)); box-shadow: inset 0 0 0 1px var(--accent, var(--olive)); }
.phone .home-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px; scrollbar-width: none; }
.phone .home-filters .hf-q { flex: 0 0 220px; }
.phone .home-filters select { flex: none; }

/* a proposed tour: its own button, booked only on purpose */
.tour-line, .tour-note { flex-wrap: wrap; }
.tour-line .btn, .tour-note .btn { margin-left: auto; min-height: 44px; }

/* the Undo tab (lib/undo.js): the bar empties over the 5-second window */
#toast { overflow: hidden; }
#toast .toast-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent, var(--olive)); transform-origin: left; animation-name: undo-window; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes undo-window { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #toast .toast-bar { animation: none; } }

/* an ask opens its source message, with the asked-in words marked */
.ask-open { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: block; width: 100%; }
.ask-open:hover b, .ask-open:focus-visible b { text-decoration: underline; }
.ask-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent, var(--olive)); }
.ask-link svg { width: 16px; height: 16px; }
mark.ask-mark { background: color-mix(in srgb, var(--accent, var(--olive)) 16%, transparent); color: inherit; border-radius: 4px; padding: 1px 3px; font-weight: 700; }

/* a document's name read from the file (0119): a one-tap suggestion, never used on its own */
.att-suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-suggest .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.att-suggest svg { width: 16px; height: 16px; color: var(--accent, var(--olive)); }

/* the subscription banner (live, read-only state; 0136) */
.billing-bar { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 16px; background: var(--alert-soft); color: var(--ink); font-size: 14px; }
.billing-bar a { font-weight: 700; color: var(--alert); }

/* =====================================================================
   STUDIO AGAIN (Tovah, 2026-09-28, her 09-21 screenshot): the GAZU masthead, the dashboard Today,
   and the 17 saved looks (lib/look.js sets every token below from the chosen look).
   ===================================================================== */
.top { background: var(--ground); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
/* ⚠️⚠️ MEASURED 2026-10-22, on production, at 1680px: the three columns needed 1643px of content and
   the row is 1440px. The nav's last link ran 49px UNDER the wordmark and the first action ran 106px
   under it - Tovah: "homies agent is covering the top bar", with HOMES and ASK both behind it. It also
   overlapped at 1440 (actions by 17px), so this was never only a wide-screen problem.
   ★ THREE causes, and all three had to go:
     1. `.gz-word { font-size: 46px }` is declared AGAIN further down this file (the display-face block),
        so `@media (max-width: 1600px) { .gz-word { font-size: 40px } }` lost on source order and had
        been dead for as long as both have existed. A later rule of equal specificity beats a media
        query; the query is not a tiebreaker.
     2. The row is `max-width: 1440px`, so it STOPS GROWING at 1440 - while the "large" styling kept
        waiting for a viewport of 1601+ that buys it no room at all. There is no width at which the
        large row fits, which is why the whole 1600px step is now simply the desktop default.
     3. `.gz-kind` ("agent" / "tc", 2026-10-20) added 160px to a row that already fit with nothing to
        spare, and the comment next to it claimed it was "smaller than the mark" without ever setting a
        size. It is set now.
   ★ Result, measured the same way: +46px of slack at 1320 and +77px from 1440 to 1920, with a real gap
   on both sides of the wordmark at every one of them. tools/tests/lib/mastwidth.mjs holds the rules. */
.top-in.gazu { max-width: 1440px; margin: 0 auto; padding: 20px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.gz-nav, .gz-act { display: flex; align-items: center; gap: 22px; }
.gz-act { justify-content: flex-end; gap: 18px; }
.gz-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none;
  font: 600 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gz-link svg { width: 18px; height: 18px; }
.gz-link[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); }
.gz-link:hover { color: var(--accent); }
.gz-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 14px; letter-spacing: 0; }
.gz-word { font-family: var(--font-display, var(--font)); font-weight: 900; font-size: 40px; letter-spacing: -.07em; line-height: 1; color: var(--ink); text-decoration: none; }
.gz-add { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--ground);
  font: 700 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.gz-add svg { width: 18px; height: 18px; }

@media (max-width: 1320px) { .gz-link svg { display: none; } .gz-nav { gap: 16px; } .gz-act { gap: 14px; } }

/* ⚠️⚠️ THE MASTHEAD BETWEEN THE PHONE AND THE DESKTOP. Measured 2026-10-20: the three columns need
   1121px of content (nav 437 + wordmark 204 + actions 400 + gaps and padding), the phone layout only
   takes over at 759px, and NOTHING handled the band between - so every agent on an iPad in landscape
   (1024) or a half-screen laptop window had the masthead running off the right edge, with Add and
   MENU past the edge of the screen. At 760px it overflowed by 361px. It has been like that since the
   Studio masthead shipped on 2026-09-28; nobody looked because desktops get tested at 1280+ and
   phones at 390.
   ★ The root cause is the one in this repo's own notes: a grid child defaults to `min-width: auto`, so
   it refuses to shrink below its content and pushes the whole row wide instead. `min-width: 0` lets
   the row fit and the NAV scroll inside its own column, which keeps every control reachable rather
   than hiding any of them. */
.top-in.gazu > * { min-width: 0; }
@media (max-width: 1200px) {
  .top-in.gazu { padding: 18px 20px; gap: 12px; }
  .gz-word { font-size: 30px; }
  /* the nav scrolls in its own column instead of shoving Add and Menu off the screen */
  .gz-nav { gap: 14px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .gz-nav::-webkit-scrollbar { width: 0; height: 0; }
  .gz-act { gap: 12px; }
  .gz-add { padding: 0 14px; }
}

.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 32px; align-items: start; margin: 28px 0 56px; }
.greet-h { font-family: var(--font-display, var(--font)); font-weight: 800; text-transform: none; font-size: clamp(56px, 6.2vw, 96px); letter-spacing: -.055em; line-height: .98; margin: 0; color: var(--ink); }
.greet-h em { font-style: normal; color: var(--ink-3); }
.greet-d { font-size: 22px; color: var(--ink-2); margin: 18px 0 20px; }
.greet .btn-accent { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.greet .btn-line { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.nextup { position: relative; background: var(--dark); color: var(--on-dark); border-radius: 28px; padding: 28px 28px 30px; min-height: 200px; }
.nextup .k { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 8px; }
.nextup .k .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.nextup .nu-t { font-family: var(--font-display, var(--font)); font-weight: 800; font-size: 28px; letter-spacing: -.035em; line-height: 1.12; margin: 16px 48px 12px 0; }
.nextup .nu-s { margin: 0; font-size: 17px; color: var(--on-dark-2); }
.nextup .nu-go { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--on-dark); color: var(--dark); }
.nextup .nu-go svg { width: 18px; height: 18px; }

.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.wk-day { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 18px 16px; border-radius: 22px; background: var(--card); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.wk-day:hover { border-color: var(--line); }
.wk-day.is-today { background: var(--dark); color: var(--on-dark); }
.wk-h { display: flex; flex-direction: column; gap: 2px; }
.wk-h b { font-size: 17px; }
.wk-h span { font-size: 14px; color: var(--ink-2); }
.wk-day.is-today .wk-h span, .wk-day.is-today li span { color: var(--on-dark-2); }
.wk-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wk-day li { font-size: 14px; line-height: 1.3; font-weight: 600; }
.wk-day li span { display: block; font-weight: 500; color: var(--ink-2); }
.wk-day li.more { color: var(--ink-2); font-weight: 500; }
.wk-free { margin: 0; font-size: 14px; color: var(--ink-2); }
.wk-day.is-today .wk-free { color: var(--on-dark-2); }

.horizon { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.horizon-card { padding: 28px 30px; border-radius: 28px; }
.hz-h { font-family: var(--font-display, var(--font)); font-weight: 800; font-size: 30px; letter-spacing: -.035em; margin: 0 0 18px; }
.hz-sub { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); margin: 24px 0 8px; }
.hz-list { display: flex; flex-direction: column; }
.hz-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--dark-line); color: var(--on-dark); text-decoration: none; }
.hz-row .t { display: block; font-weight: 700; font-size: 17px; }
.hz-row .s { display: block; font-size: 14px; color: var(--on-dark-2); }
.hz-row .w { font-weight: 700; white-space: nowrap; }

.motion { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.motion-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: var(--card); color: var(--ink); text-decoration: none; }
.motion-card .t { display: block; font-weight: 700; }
.motion-card .s { display: block; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1100px) { .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); } .motion { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-hero, .horizon { grid-template-columns: 1fr; } }

/* Settings → Look: the 17 saved looks, each shown in its own colors */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.look-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; border: 2px solid transparent; background: var(--lk-bg); color: var(--lk-ink); text-align: left; cursor: pointer; }
.look-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ground) inset; }
.lk-sw { display: flex; gap: 6px; }
.lk-sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--lk-card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lk-ink) 18%, transparent); }
.lk-sw i:nth-child(2) { background: var(--lk-ink); }
.lk-sw i:nth-child(3) { background: var(--lk-acc); }
.lk-n { font-weight: 700; font-size: 15px; }

/* phone Today (≤ the phone query): two-by-two numbers, NEXT UP under the greeting */
.phone .greet-h { font-size: clamp(38px, 11vw, 52px); text-transform: none; letter-spacing: -.05em; line-height: 1; overflow-wrap: anywhere; }
.phone .greet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone .greet .actions .btn { min-width: 0; padding: 0 14px; }
.p-brand .word { font-family: var(--font-display, var(--font)); font-weight: 900; font-size: 34px; letter-spacing: -.07em; text-transform: none; color: var(--ink); }
.phone .year-card, .phone .nextup, .phone .kpis, .phone .horizon-card { min-width: 0; max-width: 100%; }
.phone .nextup { margin: 20px 0 8px; min-height: 0; }
.phone .nextup .nu-t { font-size: 24px; }
.phone .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone .horizon-card { padding: 22px; }
.phone .hz-h { font-size: 24px; }

/* People → Leads as a table (2026-09-28) */
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lt-src select { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
.lt-wrap { background: var(--card); border-radius: 24px; overflow-x: auto; border: 1px solid var(--line); }
.lead-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lead-table th, .lead-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lead-table thead th { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; background: var(--card-2); }
.lead-table tbody tr:last-child > * { border-bottom: 0; }
.lead-table tbody tr:hover { background: var(--card-2); }
.lead-table tbody th { font-weight: 500; }
.lt-sort { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
/* ⚠️ No UNDERLINE on the sorted column (Tovah, 2026-10-19: "remove the underline, it doesnt click
   to anything"). An underline reads as a link, and the one place this is used is a table header.
   The active column is marked by its caret (.lt-dir) instead. */
.lt-sort.on { color: var(--ink); }
.lt-sort { display: inline-flex; align-items: center; gap: 4px; }
.lt-dir { display: inline-grid; place-items: center; }
.lt-dir svg { width: 14px; height: 14px; }
.lt-dir.desc { transform: rotate(180deg); }
.lt-who { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.lt-who b { display: block; }
.lt-who span span, .lt-sub { display: block; font-size: 14px; color: var(--ink-2); }
.lt-new { color: var(--accent); }
.lt-check input { width: 20px; height: 20px; }

/* The Menu: the 09-20 Studio menu (full screen, big numbered links in groups, a tall photo) */
#menu-layer { position: fixed; inset: 0; z-index: 90; background: var(--ground); overflow: auto; }
html.menu-open { overflow: hidden; }
.menu-sheet { max-width: 1440px; margin: 0 auto; padding: 22px 48px 56px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.menu-x { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
/* ⚠️ min() on the photo: the sheet caps at 1440px but 27vw does not, so on a wide screen the photo
   kept taking width the index had already lost - the columns got NARROWER as the screen got wider. */
.menu-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, min(27vw, 380px)); gap: clamp(28px, 4vw, 64px); align-items: start; }
/* Two columns, not three: at three, six of the twenty entries needed more room than the column had
   (measured 2026-10-08, "Change the look" wanted 365px of a 249px column) and bled under the photo. */
.menu-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; }
.menu-group { container-type: inline-size; }
.menu-group > .eyebrow { display: block; margin-bottom: 14px; }
/* ★ One line per entry (Tovah, 2026-10-05: "all of the two word numbers should be one row except
   #11, leave stage checklists as two lines"). nowrap USED to hold that line, and it held it by
   letting the words run off the column and under the photo instead (Tovah, 2026-10-08: "cut off on
   demo" - six of the twenty entries, "Change the look" wanting 365px of a 249px column).
   What holds it now is the type being sized to the column it has to fit in: 100cqi divided by how
   wide this look's heading face sets a line (--menu-em, measured per face in HEADING_EM). Every
   entry therefore fits on one line without being told to, and "Stage checklists" - the one entry
   longer than the table's worst - still takes its two. Below the 18px floor the line wraps rather
   than shrinks, because unreadable type is worse than two lines. */
.menu-link { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; color: var(--ink); text-decoration: none;
  white-space: normal; font-family: var(--font-display, var(--font)); font-size: max(18px, min(clamp(22px, 1.95vw, 31px), calc((100cqi - 64px) / var(--menu-em, 16)))); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
/* ⚠️ Some menu entries are <button> (Feedback, Take the tour, Change the look) because they fire an
   action rather than go to a url. Without this they wear the browser's button chrome and sit in the
   list in little grey boxes while every link beside them is bare (Tovah, 2026-10-05). */
button.menu-link { width: 100%; background: none; border: 0; border-radius: 0; box-shadow: none;
  text-align: left; cursor: pointer; font: inherit; font-family: var(--font-display, var(--font));
  white-space: normal; font-size: max(18px, min(clamp(22px, 1.95vw, 31px), calc((100cqi - 64px) / var(--menu-em, 16)))); font-weight: 700; letter-spacing: -.045em; line-height: 1.15;
  color: var(--ink); -webkit-appearance: none; appearance: none; }
.menu-link em { flex: none; width: 24px; font-style: normal; font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.menu-link sup { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.menu-link:hover { color: var(--ink-2); }
.menu-link.on { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-photo { position: sticky; top: 18px; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 16; max-height: calc(100vh - 140px); background: var(--sunk); }
.menu-photo img, .menu-photo picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.menu-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.menu-photo { position: relative; }
.menu-foot { margin-top: 48px; font-size: 14px; }
@media (max-width: 900px) { .menu-sheet { padding: 16px 16px 40px; } .menu-body { grid-template-columns: 1fr; } .menu-photo { display: none; } .menu-index { grid-template-columns: 1fr 1fr; gap: 28px 18px; } .menu-link, button.menu-link { font-size: max(18px, min(24px, calc((100cqi - 64px) / var(--menu-em, 16)))); } }
@media (max-width: 480px) { .menu-index { grid-template-columns: 1fr; } }
.menu-link.on em { text-decoration: none; display: inline-block; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Up next cards (2026-09-28: one quiet line on top, two-line title, who/when at the bottom) */
.qlist .qitem { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 176px; padding: 20px; text-align: left; border-radius: 22px; }
.qitem .q-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qitem .q-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); line-height: 1.25; }
.qitem .q-kind.block { color: var(--accent); }
.qitem .q-kind svg { width: 16px; height: 16px; flex: none; }
.qitem .t { font-size: 17px; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qitem .w { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* the week on Today (2026-09-28 redesign) */
.wk { gap: 14px; }
.wk-day { min-height: 250px; padding: 18px; gap: 14px; }
.wk-h { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: end; }
.wk-dow { grid-column: 1; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wk-num { grid-column: 1; font-family: var(--font-display, var(--font)); font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wk-count { grid-column: 2; grid-row: 1 / span 2; align-self: start; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 700; }
.wk-day ul { gap: 10px; }
.wk-it { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid var(--line); }
.wk-it.wk-event { border-left-color: var(--ink); }
.wk-it.wk-key { border-left-color: var(--accent); }
.wk-it.wk-tour { border-left-color: var(--ink-3); }
/* ★ 0280: a showing on HER listing, booked by another agent. The accent, because it is a state
   somebody else put on her day rather than something she scheduled. */
.wk-it.wk-showing { border-left-color: var(--accent); }
.wk-t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.wk-x { font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-more { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-left: 13px; }
.wk-free { margin: auto 0 0; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.wk-day.is-today .wk-dow, .wk-day.is-today .wk-t, .wk-day.is-today .wk-more, .wk-day.is-today .wk-free { color: var(--on-dark-2); }
.wk-day.is-today .wk-count { background: var(--dark-2); color: var(--on-dark); }
.wk-day.is-today .wk-it { border-left-color: var(--dark-line); }
.wk-day.is-today .wk-it.wk-event { border-left-color: var(--on-dark); }
.wk-day.is-today .wk-it.wk-key { border-left-color: var(--accent-lift); }
.wk-h .wk-num { font-size: 40px; font-weight: 800; }
.wk-day .wk-it .wk-x { display: -webkit-box; font-weight: 700; color: inherit; }
.wk-day .wk-it .wk-t { display: block; font-weight: 600; }
.wk-day:not(.is-today) .wk-it .wk-t { color: var(--ink-2); }
.qitem .q-kind { flex: 1; min-width: 0; letter-spacing: 0; text-transform: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.qitem .q-kind svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.qitem .q-kind { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Calendar → Day (2026-09-28 redesign): one timeline card */
.dv { padding: 0; overflow: hidden; }
.dv-allday { display: flex; gap: 18px; align-items: flex-start; padding: 22px 28px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.dv-k { flex: none; width: 110px; padding-top: 9px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.dv-chip .ci svg { width: 16px; height: 16px; }
.dv-list { padding: 8px 28px; }
.dv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.dv-row:last-child { border-bottom: 0; }
.dv-row:hover .dv-body b { text-decoration: underline; text-underline-offset: 3px; }
.dv-time { display: flex; flex-direction: column; gap: 2px; }
.dv-time b { font-size: 17px; }
.dv-time span { font-size: 14px; color: var(--ink-2); }
.dv-body { display: flex; align-items: flex-start; gap: 12px; padding-left: 16px; border-left: 3px solid var(--ink); }
.dv-body b { display: block; font-size: 17px; line-height: 1.3; }
.dv-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.dv-body .ci { margin-top: 2px; }
.dv-body.k-key { border-left-color: var(--accent); }
.dv-body.k-task { border-left-color: var(--line); }
.dv-body.k-tour, .dv-body.k-video { border-left-color: var(--ink-3); }
.dv-body.k-showing { border-left-color: var(--accent); }
.dv-body.k-busy { border-left-style: dashed; border-left-color: var(--ink-3); }
.dv-body.k-busy b { color: var(--ink-2); font-weight: 600; }
.dv-row.past, .dv-chip.past { opacity: .55; }
.dv-now { position: relative; display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.dv-now::after { content: ''; flex: 1; height: 2px; background: var(--accent); border-radius: 2px; }
.dv-now span { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.dv-empty { margin: 18px 0; color: var(--ink-2); font-size: 16px; }
.dv-foot { padding: 16px 28px 24px; border-top: 1px solid var(--line); }
.phone .dv-allday { flex-direction: column; gap: 10px; padding: 18px; }
.phone .dv-list { padding: 4px 18px; }
.phone .dv-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.phone .dv-foot { padding: 14px 18px 18px; }
.dv { margin-top: 24px; }

/* Calendar → Week: the Today week cards (2026-09-28) */
.wk-cal { margin-top: 24px; align-items: stretch; }
.wk-cal .wk-day { min-height: 420px; }
.wk-cal .wk-h { text-decoration: none; color: inherit; }
.wk-open { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.wk-open:hover .wk-x { text-decoration: underline; text-underline-offset: 3px; }
.wk-it.wk-busy { border-left-style: dashed; border-left-color: var(--ink-3); }
.wk-it.wk-busy .wk-x { font-weight: 600; color: var(--ink-2); }
.wk-it.past, .wk-day.is-past { opacity: .6; }
.wk-add { margin-top: auto; align-self: flex-start; width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--line); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wk-day.is-today .wk-add { border-color: var(--dark-line); color: var(--on-dark); }

/* =====================================================================
   THE LOOKS, TREATED EXACTLY AS THE OLD STUDIO DID (Tovah, 2026-09-28: "can you truly look how the looks were
   done before and match exactly"). Source: src/styles/studio.css + experience.css at 8d394d7, driven by the same
   applyAppearance tokens (--font-display, --display-tracking, --heading-scale, --display-fit, data-display,
   data-flourish, --font-flourish …) that lib/look.js now sets.
   ===================================================================== */
/* the look's display face on every headline and big number, at the old weights */
:is(.greet-h, .gz-word, .nextup .nu-t, .kpi-tile b, .yc-stats b, .ch-card h3, .hz-h, .menu-link, .display, .h1, .h2) { font-family: var(--font-display, var(--font)); }
.greet-h { font-weight: 700; font-size: calc(clamp(44px, 5.4vw, 84px) * var(--heading-scale, 1) * var(--display-fit, 1)); letter-spacing: -.06em; line-height: .98; }
.greet-h em { color: var(--accent); }                               /* the name is the accent ("Taylor.") */
/* ⚠️ 40px, not 46: THIS is the declaration that wins (see the masthead block above), so the size has
   to be right here or the row overlaps itself. */
.gz-word { font-weight: 650; font-size: 40px; letter-spacing: -.065em; }
.nextup .nu-t { font-weight: 600; font-size: 24px; letter-spacing: -.04em; line-height: 1.15; }
.kpi-tile b { font-weight: 600; font-size: 44px; letter-spacing: -.055em; line-height: 1; }
.yc-stats b { font-weight: 600; font-size: 52px; letter-spacing: -.055em; line-height: 1; }
.ch-card h3 { font-size: 22px; letter-spacing: -.04em; }
.menu-link { font-weight: 600; }
.gz-link[aria-current="page"]::after { background: var(--accent); }  /* the lit tab wears the accent */
/* a one-weight display face keeps its own tracking; a caps look sets the big headlines in capitals */
html[data-display] :is(.greet-h, .gz-word, .nextup .nu-t, .kpi-tile b, .yc-stats b, .ch-card h3, .hz-h, .menu-link, .display, .h1, .h2) { letter-spacing: var(--display-tracking); }
html[data-display=caps] :is(.greet-h, .gz-word, .menu-link, .ch-card h3) { text-transform: uppercase; }
/* accent words in a script: the second half of the greeting only, never in capitals */
html[data-flourish] .greet-h em { font-family: var(--font-flourish); font-weight: 400; font-style: var(--flourish-style, normal); letter-spacing: 0; text-transform: none; font-size: var(--flourish-size, 1.18em); line-height: var(--flourish-line, .8); }
.greet-h { padding-bottom: .12em; margin-bottom: -.12em; }
@media (max-width: 860px) { .phone .greet-h { font-size: calc(clamp(38px, 11vw, 52px) * var(--heading-scale, 1) * max(var(--display-fit, 1), .8)); } }

/* Calendar → Month (2026-09-28 redesign) */
.cal-month { margin-top: 24px; border-radius: 24px; overflow: hidden; }
.cm-h { text-align: left; padding: 14px 14px 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cm-cell { display: flex; flex-direction: column; gap: 6px; min-height: 138px; padding: 10px; }
.cm-cell.out { background: var(--card-2); }
.cm-cell.out .cm-num, .cm-cell.out .mi { opacity: .45; }
.cm-num { align-self: flex-start; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.cm-cell.is-today .cm-num { background: var(--ink); color: var(--ground); }
.cm-num:hover { background: var(--sunk); }
.cm-items { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mi { display: flex; align-items: baseline; gap: 6px; width: 100%; min-width: 0; padding: 4px 8px; border: 0; border-left: 3px solid var(--line); border-radius: 6px; background: var(--card-2); color: var(--ink); text-align: left; font: 600 14px/1.3 var(--font); text-decoration: none; cursor: pointer; }
.mi:hover { background: var(--sunk); }
.mi-event { border-left-color: var(--ink); }
.mi-key { border-left-color: var(--accent); }
.mi-tour { border-left-color: var(--ink-3); }
/* ★ 2026-10-19: a connected Apple or Google calendar shows on the month too. A DASHED edge and muted
   type, matching the day view's .k-busy, because it is not Homies' work: it is time she is not free.
   ⚠️ No title, here as everywhere (Apple sends none, Google's is not ours to show). */
.mi-busy { border-left-style: dashed; border-left-color: var(--ink-3); color: var(--ink-2); }
.mi-busy .mi-t { font-weight: 600; }
.mi-t { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.mi-x { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi.past { opacity: .5; }
.cm-more { padding: 2px 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.cm-more:hover { color: var(--ink); text-decoration: underline; }
.cal-month .cm-h { text-align: left; justify-self: stretch; }
.cal-month .cm-cell .cm-num { align-self: flex-start; justify-self: start; margin: 0; }
/* the cards pop as they did (09-21 "outline the white ones … a glowing rim around the black ones, matching the
   graph line"): a charcoal hairline on light cards, the lifted-accent rim and glow on dark ones */
.main { --rim: color-mix(in srgb, var(--accent) 45%, #fff); }
:is(.kpi-tile, .ch-card:not(.dark)) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
:is(.dark-card, .ch-card.dark) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rim) 80%, transparent),
              0 0 0 1px color-mix(in srgb, var(--rim) 35%, transparent),
              0 0 34px -6px color-mix(in srgb, var(--rim) 85%, transparent);
}

/* Home page: Shared with under the photo, clients as cards side by side (2026-09-28) */
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.share-grid .share-row { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
/* one client's card (Tovah, 2026-10-03): name + chip on one line, one stamp, bubbles, one button row, one composer */
.share-head { display: flex; align-items: center; gap: 10px; }
.share-head .share-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.share-head .share-name { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.share-head .tag { margin-left: auto; flex-shrink: 0; }
.share-stamp { margin: -4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.share-thread { display: flex; flex-direction: column; gap: 8px; }
.share-thread .msg { max-width: 88%; }
.share-thread .bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; }
.share-thread .bubble .meta { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.share-thread .msg.out .bubble { background: var(--olive-tint); border-color: var(--olive-soft); color: var(--ink); }
.share-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.share-actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.share-actions .btn-ghost { color: var(--ink-2); }
.share-actions .btn-ghost:hover { color: var(--ink); }
.share-row .share-composer { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: auto 0 0; }
.share-row .share-composer input { flex: 1 1 0; min-width: 0; min-height: 44px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--card-2); font-size: 16px; }
.share-row .share-composer input:focus { outline: 0; border-color: var(--olive); background: var(--card); }
.share-row .share-composer .btn { min-height: 44px; padding: 0 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.share-row .share-composer .form-err { flex-basis: 100%; margin: 6px 0 0; }
.phone .share-actions > .btn { flex: 1 1 100%; }
.menu-link[data-appearance-open] { border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }

/* =====================================================================
   MESSAGES (Tovah, 2026-09-28: "we really need this page to look better" + archive; and "i cant scroll at all
   on this page": the page-wide `.three { align-items: start }` let every column grow to its content inside the
   fixed-height box, so nothing could scroll). Each column scrolls on its own; calm rows, one tab row.
   ===================================================================== */
.main:has(.ibx.three) { max-width: none; padding: 16px 24px 20px; }
.ibx.three { align-items: stretch; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 124px); min-height: 520px; background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.ibx.three > * { min-width: 0; min-height: 0; overflow: hidden; }
.ibx.three .ibx-list, .ibx.three .ibx-thread, .ibx.three .ibx-reply { display: flex; flex-direction: column; min-height: 0; }
.ibx.three .ibx-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ibx.three .ibx-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ibx.three .ibx-reply > .ibx-compose { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@media (max-width: 1100px) { .ibx.three { height: auto; grid-template-rows: auto; } .ibx.three > * { overflow: visible; } .ibx.three .ibx-rows, .ibx.three .ibx-msgs { max-height: 70vh; } }

/* the list */
.ibx.three .ibx-list { background: var(--card); }
.ibx.three .ibx-list-head { padding: 22px 22px 12px; gap: 14px; border-bottom: 1px solid var(--line); }
.ibx-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ibx.three .ibx-title { font-family: var(--font-display, var(--font)); font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0; text-transform: none; }
.ibx-lead-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.ibx-lead-link:hover { color: var(--ink); }
.ibx-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); }
.ibx-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.ibx.three .ibx-filters { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px 2px; }
.ibx.three .ibx-filters::-webkit-scrollbar { display: none; }
.ibx.three .ibx-f { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; }
.ibx.three .ibx-f span { color: var(--ink-3); font-weight: 600; }
.ibx.three .ibx-f:hover { color: var(--ink); background: var(--card-2); }
.ibx.three .ibx-f.on { background: var(--ink); color: var(--ground); }
.ibx.three .ibx-f.on span { color: inherit; opacity: .75; }
.ibx-bulk { padding: 6px 16px 2px; }
.ibx-bulk-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.ibx-bulk-btn:hover { background: var(--card-2); color: var(--ink); }
.ibx-bulk-btn.armed { background: var(--ink); color: var(--ground); }
.ibx-bulk-btn svg { width: 16px; height: 16px; }

.ibx-row-wrap { position: relative; border-bottom: 1px solid var(--line); }
.ibx-row-wrap[hidden] { display: none; }
.ibx.three .ibx-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 22px; border: 0; background: none; color: var(--ink); text-decoration: none; }
.ibx-row-wrap:hover .ibx-row, .ibx-row-wrap.on .ibx-row { background: var(--card-2); }
.ibx-row-wrap.on::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.ibx.three .ibx-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ibx.three .ibx-row-top b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx.three .ibx-row.unread .ibx-row-top b { font-weight: 800; }
.ibx.three .ibx-row-top time { flex: none; font-size: 14px; color: var(--ink-3); }
.ibx.three .ibx-row-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ibx.three .ibx-row.unread .ibx-row-text { color: var(--ink); }
.ibx.three .ibx-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ibx.three .ibx-row-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.ibx.three .ibx-draft { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.ibx.three .ibx-draft svg { width: 14px; height: 14px; }
.ibx-row-act { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.ibx-row-act svg { width: 16px; height: 16px; }
.ibx-row-wrap:hover .ibx-row-act, .ibx-row-act:focus-visible { opacity: 1; }
.ibx-row-act:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
@media (hover: none) { .ibx-row-act { opacity: 1; top: 16px; transform: none; width: 32px; height: 32px; } .ibx-row-wrap .ibx-row-top time { margin-right: 40px; } }

/* the thread */
.ibx.three .ibx-thread { background: var(--card); border-right: 1px solid var(--line); }
.ibx.three .ibx-thread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ibx.three .ibx-thread-head .grow { flex: 1 1 180px; min-width: 0; }
.ibx.three .ibx-thread-head .ibx-name { font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; }
.ibx.three .ibx-thread-head .actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ibx.three .ibx-thread-head .actions .btn, .ibx.three .ibx-thread-head .actions .iconbtn { min-height: 40px; height: 40px; padding: 0 14px; font-size: 14px; }
.ibx.three .ibx-thread-head .actions .iconbtn { width: 40px; padding: 0; }
.ibx.three .ibx-msgs { padding: 22px 24px; gap: 14px; background: var(--card-2); }
.ibx.three .ibx-msg { max-width: 88%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: none; }
.ibx.three .ibx-msg.in { align-self: flex-start; border-bottom-left-radius: 6px; }
.ibx.three .ibx-msg.out { align-self: flex-end; background: var(--sunk); border-color: transparent; border-bottom-right-radius: 6px; }
.ibx.three .ibx-msg > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; font-size: 14px; }
.ibx.three .ibx-msg > header b { font-weight: 700; }
.ibx.three .ibx-msg > header span { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.ibx.three .ibx-msg > header svg { width: 14px; height: 14px; }
.ibx.three .ibx-msg h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ibx.three .ibx-body { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* the reply */
.ibx.three .ibx-reply { background: var(--card); }
.ibx.three .ibx-reply-head { padding: 18px 24px 4px; font-size: 16px; }
.ibx.three .ibx-reply > .ibx-compose { display: flex; flex-direction: column; gap: 12px; padding: 10px 24px 22px; }
.ibx.three .ibx-compose textarea { flex: 0 0 auto; min-height: 140px; max-height: 45vh; height: auto; field-sizing: content; resize: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); font-size: 15px; line-height: 1.5; }
.ibx.three .ibx-compose textarea:focus { outline: none; border-color: var(--ink-3); background: var(--card); }
.ibx.three .ibx-compose-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ibx.three .ibx-compose-bar .btn-ink { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.ibx.three .ibx-compose-bar .btn-ghost { min-height: 40px; padding: 0 6px; font-size: 14px; color: var(--ink-2); }
.ibx-empty { display: grid; place-items: center; color: var(--ink-3); font-size: 15px; }

/* phone */
.phone .ibx-row-wrap { background: var(--card); }
.phone .ibx-list .ibx-filters { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.phone .ibx-f { flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px var(--font); }
.phone .ibx-f.on { background: var(--ink); color: var(--ground); }
.phone .ibx-msg.out { margin-left: auto; background: var(--sunk); }

/* Messages thread (2026-09-28, "do both"): a portal message is ONE bubble (no card around it), an email is ONE card */
.ibx .ibx-msg.chat, .phone .ibx-msg.chat { max-width: 78%; padding: 0; border: 0; background: none; box-shadow: none; }
.ibx .ibx-msg.chat > header, .phone .ibx-msg.chat > header { margin: 0 4px 4px; font-size: 14px; }
.ibx .ibx-msg.chat.out > header, .phone .ibx-msg.chat.out > header { justify-content: flex-end; }
.ibx .ibx-msg.chat .ibx-body, .phone .ibx-msg.chat .ibx-body { padding: 12px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.ibx .ibx-msg.chat.in .ibx-body, .phone .ibx-msg.chat.in .ibx-body { border-bottom-left-radius: 6px; }
.ibx .ibx-msg.chat.out .ibx-body, .phone .ibx-msg.chat.out .ibx-body { background: var(--dark); border-color: var(--dark); color: var(--on-dark); border-bottom-right-radius: 6px; }
.ibx .ibx-msg.chat.in, .phone .ibx-msg.chat.in { align-self: flex-start; margin-right: auto; }
.ibx .ibx-msg.chat.out, .phone .ibx-msg.chat.out { align-self: flex-end; margin-left: auto; }
.ibx.three .ibx-msg.chat, .ibx.two .ibx-msg.chat, .ibx.three .ibx-msg.chat.out, .ibx.two .ibx-msg.chat.out { padding: 0; border: 0; background: none; max-width: 78%; }

/* Messages list: every conversation (and every email to sort) is its own card with room around it (2026-09-28) */
.ibx .ibx-rows { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 16px; }
.ibx .ibx-rows > .ibx-row-wrap, .ibx .ibx-rows > a, .ibx .ibx-rows > .ibx-row { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.ibx .ibx-rows .ibx-row-wrap .ibx-row { border: 0; border-radius: 0; background: none; }
.ibx .ibx-rows > .ibx-row-wrap.on, .ibx .ibx-rows > a[aria-current="true"], .ibx .ibx-rows > .ibx-row[aria-current="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.ibx .ibx-row { padding: 14px 16px; }
.ibx .ibx-row-top b { font-size: 16px; }
.ibx .ibx-row-text { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.ibx .ibx-row.unread .ibx-row-top b { font-weight: 800; }
.ibx .ibx-row:hover { background: var(--card-2); }
.ibx .ibx-rows > * { flex-shrink: 0; }
.share-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }   /* one client = the full width of the box (2026-09-29) */

/* ---- Phone fixes (Tovah, 2026-09-29) + month icons ---- */
/* People: Soft leads · Past client · + New on ONE row on a phone */
.phone .pp-head-act { flex-wrap: nowrap; gap: 8px; width: 100%; }
.phone .pp-head-act .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.phone .pp-head-act .btn svg { width: 16px; height: 16px; }
.phone .pp-long { display: none; }
/* Calendar Month: the kind icon on every chip */
.mi .ci { flex: none; display: inline-grid; place-items: center; }
.mi .ci svg { width: 14px; height: 14px; }
.mi { align-items: center; }
/* Calendar Month on a phone: icon + time under it; the whole day opens its Day view */
.phone .cal-month { margin-left: -8px; margin-right: -8px; }
.phone .cm-cell { min-height: 92px; padding: 5px 3px; gap: 4px; }
.phone .cm-h { padding: 10px 4px 8px; font-size: 14px; letter-spacing: .02em; text-align: center; }
.phone .cal-month .cm-cell .cm-num { align-self: center; justify-self: center; min-width: 28px; height: 28px; font-size: 14px; }
.cm-items-p { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 40px; color: var(--ink); text-decoration: none; }
.mi-p { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; padding: 3px 0; border-radius: 6px; background: var(--card-2); border-top: 2px solid var(--line); }
.mi-p.mi-busy { border-top-style: dashed; }
.mi-p.mi-event { border-top-color: var(--ink); }
.mi-p.mi-key { border-top-color: var(--accent); }
.mi-p.mi-tour, .mi-p.mi-video { border-top-color: var(--ink-3); }
.mi-p .ci svg { width: 14px; height: 14px; }
.mi-p .mi-t { font-size: 14px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.mi-p.past { opacity: .5; }
.cm-items-p .cm-more { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0; }
/* Calendar on a phone: the view switch is a two-row grid (schedule.css); the legend is one row that scrolls sideways */
.phone nav.cal-seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: 100%; box-sizing: border-box; border-radius: 22px; }
.phone nav.cal-seg a { grid-column: span 2; justify-content: center; min-height: 44px; padding: 8px 6px; box-sizing: border-box; min-width: 0; }
.phone nav.cal-seg a:nth-child(n + 4) { grid-column: span 3; }
.phone .cal-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 14px; }
.phone .cal-legend::-webkit-scrollbar { display: none; }
.phone .cal-legend .leg { flex: none; }
/* Messages thread header on a phone: back + avatar + name on one line, the actions in a row under it */
.phone .ibx-thread-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 14px 16px; }
.phone .ibx-thread-head .grow { min-width: 0; }
.phone .ibx-thread-head .ibx-name { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.phone .ibx-thread-head .grow .muted { display: block; overflow-wrap: anywhere; }
.phone .ibx-thread-head .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; position: static; }
.phone .ibx-thread-head .actions .btn, .phone .ibx-thread-head .actions .iconbtn { min-height: 40px; height: 40px; font-size: 14px; }
.phone .ibx-thread-head .actions .iconbtn { width: 40px; padding: 0; }
.phone .ibx-thread-head .actions .btn { padding: 0 14px; }

/* Document sheets (2026-09-29): a styled file button over a hidden input, and the name pick-list */
.filepick > span:first-child, .docname > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.filepick-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--card-2); cursor: pointer; }
.filepick-box:hover, .filepick input:focus-visible + .filepick-box { border-color: var(--ink); }
.filepick-btn { pointer-events: none; min-height: 44px; gap: 8px; }
.filepick-btn svg { width: 18px; height: 18px; }
.filepick-name { font-size: 14px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.filepick.picked .filepick-name { color: var(--ink); font-weight: 600; }
.docname select, .docname .docname-new, .docname .docname-filter { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: 500 16px/1.2 var(--font); }
.docname .docname-filter { margin-bottom: 8px; min-height: 42px; font-size: 15px; background: var(--card-2); }
.docname .docname-new { margin-top: 8px; }
.docname-near { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.docname-use { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Ask Homies (2026-09-29): a calm chat page. Their question on the right in ink, Homies on the left in a card. */
.ask-page { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 220px); }
.ask-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.ask-head .display { font-size: clamp(40px, 5vw, 64px); margin: 0; }
.ask-head .muted { margin: 0; flex: 1 1 280px; font-size: 16px; }
.ask-log { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ask-msg { max-width: 88%; border-radius: 20px; padding: 14px 18px; font-size: 16px; line-height: 1.45; }
.ask-msg p { margin: 0; }
.ask-msg.out { align-self: flex-end; background: var(--dark); color: var(--on-dark); border-bottom-right-radius: 6px; }
.ask-msg.in { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; width: 100%; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ask-msg.in.err { border-color: var(--alert); }
.ask-msg.thinking p { color: var(--ink-2); }
.ask-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card-2); color: var(--ink); text-decoration: none; }
.ask-item b { font-size: 15px; }
.ask-item span { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.ask-item svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.ask-item:hover { background: var(--sunk); }
.ask-sec { display: flex; flex-direction: column; gap: 6px; }
.ask-sec h3 { margin: 6px 0 2px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ask-why, .ask-cites { margin: 0; font-size: 14px; color: var(--ink-2); }
.ask-cites a { color: var(--ink); }
.ask-topic-t { font-weight: 700; font-size: 17px; }
.ask-topic ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ask-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ask-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ask-chips .chip { flex: none; }
.ask-form { position: sticky; bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ask-form input { min-width: 0; border: 0; background: none; padding: 0 12px; font: 500 16px/1 var(--font); color: var(--ink); outline: none; }
.phone .ask-form { bottom: 96px; }
.phone .ask-msg { max-width: 94%; }
.ibx-none { margin: 24px auto; color: var(--ink-2); font-size: 15px; text-align: center; }

/* "Homies updated · Reload" (src/lib/version.js): the only reload is the person's click */
#version-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10000;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: var(--card);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); font-size: 15px; font-weight: 600; max-width: calc(100vw - 32px); }
#version-bar button { border: 0; cursor: pointer; border-radius: 999px; padding: 9px 18px; font: inherit; background: var(--accent); color: var(--card); }

/* video calls on desktop (Tovah, 2026-09-29): the other person's whole picture, never cropped to the stage's shape;
   your own picture without your initial on top of it */
.call-layer { box-sizing: border-box; height: 100dvh; overflow: hidden; }
body.on-call { overflow: hidden; }
.call-head, .call-line, .call-bar { flex-shrink: 0; }
.call-who { min-width: 0; }
.call-name { overflow-wrap: anywhere; }
.call-tile { min-width: 0; min-height: 0; }
/* Video intrinsic dimensions must never size the grid or the picture-in-picture tile. */
.call-remote video, .call-local video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.call-remote video { object-fit: contain; background: #111; }
.call-local { width: clamp(120px, 18vw, 200px); height: auto; max-height: calc(100% - 24px); aspect-ratio: 4 / 3; box-shadow: 0 4px 20px rgb(0 0 0 / .3); }
.call-local video { object-fit: cover; }
.call-stage.video { background: #000; }
.call-local .call-av { position: absolute; }
.call-local:has(video) .call-av, .call-remote.has-video > .call-av, .call-remote.has-video > .call-wait { display: none; }
.call-local video { transform: scaleX(-1); }   /* a mirror, like every video app */
@media (max-width: 600px) {
  .call-layer, .phone .call-layer { gap: 12px; padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px); }
  .call-local, .phone .call-local { width: clamp(80px, 24vw, 110px); aspect-ratio: 3 / 4; right: 10px; bottom: 10px; border-radius: 14px; }
  .call-head { gap: 10px; }
  .call-who { gap: 10px; }
  .call-head .call-av { width: 38px; height: 38px; flex-shrink: 0; }
  .call-name { font-size: 18px; }
  .call-btn { min-width: 64px; padding: 10px; }
  .call-line { font-size: 14px; }
}

/* See a client's portal (views/client-view.js): a framed, read-only preview in the portal's own look */
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cv-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cv-tag svg { width: 18px; height: 18px; }
.cv-frame { border: 1.5px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--ground); color: var(--ink); isolation: isolate; }
.cv-frame .pt-top { position: static; }
.cv-frame .pt-dock, .cv-frame .dock { position: static; }
.cv-frame button, .cv-frame form, .cv-frame input, .cv-frame textarea, .cv-frame select, .cv-frame label { pointer-events: none; }

/* The loading screen: the "Welcome Home" house (assets/brand/welcome-home.webp, transparent) on the look's own ground */
.boot-load { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: var(--ground); }
.boot-load img { height: min(260px, 38vh); width: auto; }


/* Today's list on every load (lib/daily-list.js, 2026-09-30) */
.sheet.sheet-daily { max-width: 460px; }
.dl { position: relative; display: grid; gap: 10px; padding: 8px 6px 4px; }
.dl-x { position: absolute; right: 0; top: 0; }
.dl-h { margin: 8px 0 0; text-align: center; font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.01em; display: flex; justify-content: center; align-items: center; gap: 8px; }
.dl-heart svg { width: 26px; height: 26px; color: var(--accent); }
.dl-sub { margin: 0 0 8px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dl-list { display: grid; gap: 2px; margin-bottom: 8px; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 4px 6px; border-radius: 12px; }
.dl-row:hover { background: var(--card-2); }
.dl-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--card); cursor: pointer; }
.dl-box svg { width: 15px; height: 15px; opacity: 0; color: var(--card); }
.dl-box[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.dl-box[aria-pressed="true"] svg { opacity: 1; }
.dl-box[aria-pressed="true"] + .dl-t { text-decoration: line-through; color: var(--ink-3); }
.dl-t { flex: 1; display: grid; gap: 2px; padding: 8px 0; border: 0; background: none; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; min-width: 0; }
.dl-t small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dl-more { margin: 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.dl-later { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 10px; cursor: pointer; }

/* Saved Ask conversations, beside the chat on desktop and below it on phones. */
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; max-width: 1200px; margin: 0 auto; }
.ask-layout .ask-page { min-width: 0; width: 100%; }
.ask-history { border-left: 1px solid var(--line); padding-left: 24px; min-width: 0; }
.ask-history h2 { font-size: 20px; margin: 8px 0 12px; }
.ask-history > p { font-size: 14px; }
.ask-history-item { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; padding: 14px; margin-bottom: 8px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.ask-history-item b { font-size: 14px; overflow-wrap: anywhere; }
.ask-history-item span { font-size: 14px; color: var(--ink-2); }
.ask-history-item:hover, .ask-history-item.selected { background: var(--card); border-color: var(--line); }
@media (max-width: 760px) { .ask-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .ask-history { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; } }

.ibx.three .ibx-reply { overflow-y: auto; }
.ibx.three .ibx-reply > .ibx-compose { flex: 1 0 auto; overflow-y: visible; }

.tl-open { display: flex; gap: 14px; width: 100%; min-width: 0; border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tl-open > div { min-width: 0; flex: 1; }
.tl-open:hover .when { text-decoration: underline; }

/* The clickable row spans the timeline, not the old 40px icon grid column. */
.p-timeline .tl { display: block; }
.p-timeline .tl-open { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: start; gap: 12px; border-radius: 12px; padding: 10px 0; }
.p-timeline .tl-open:hover { background: var(--card-2); }
.p-timeline .tl-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tl-content { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.tl-sender { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tl-meta time, .tl-channel { font-size: 14px; color: var(--ink-2); }
.tl-meta time { flex-shrink: 0; }
.tl-subject { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tl-preview { color: var(--ink-2); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-chevron { align-self: center; color: var(--ink-2); }
.tl-chevron svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .p-timeline .tl-open { grid-template-columns: 32px minmax(0, 1fr) 14px; gap: 10px; } .p-timeline .tl-ico { width: 32px; height: 32px; } .p-timeline .section-t { flex-wrap: wrap; gap: 10px; } }


/* ★ The lead pages' top row: the way back to People, then the three tabs (2026-10-22). ⚠️ The switch
   keeps its own `margin-bottom`, so the row is laid out on the baseline it already had. */
.leads-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.leads-top .lead-up { align-self: center; margin-bottom: 20px; }
.people-deals-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.people-deals-switch a { padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.people-deals-switch a[aria-current="page"] { background: var(--accent); color: var(--on-accent, #fff); }
.people-deals-switch a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Messages: a conversation sidebar and one wide chat with an inline composer. */
.main:has(.ibx.two) { padding: 16px 24px 20px; }
.ibx.two { grid-template-columns: clamp(260px, 27vw, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: stretch; height: calc(100dvh - 124px); min-height: 420px; }
.ibx.two > * { min-width: 0; min-height: 0; overflow: hidden; }
.ibx.two .ibx-rows, .ibx.two .ibx-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ibx.two .ibx-list { background: var(--card); }
.ibx.two .ibx-head-row { flex-wrap: wrap; }
.ibx.two .ibx-title { font-size: 26px; text-transform: none; }
.ibx.two .ibx-thread-head { flex-wrap: wrap; padding: 16px 24px; }
.ibx.two .ibx-thread-head .grow { flex: 1 1 160px; }
.ibx.two .ibx-thread-head .actions { flex-wrap: wrap; }
.ibx.two .ibx-msgs { background: var(--card-2); padding: 24px; }
.ibx.two .ibx-compose { flex: 0 0 auto; padding: 14px 24px 18px; max-height: 45%; overflow-y: auto; }
.ibx.two .ibx-compose textarea { min-height: 72px; height: 88px; max-height: 180px; resize: vertical; border-radius: 20px; }
.ibx.two .ibx-basis { white-space: normal; }
@media (min-width: 760px) and (max-width: 1000px) {
  .main:has(.ibx.two) { padding: 12px; }
  .ibx.two { grid-template-columns: 260px minmax(0, 1fr); }
  .ibx.two .ibx-thread-head, .ibx.two .ibx-msgs, .ibx.two .ibx-compose { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .shell:has(.ibx.two) .top-in.gazu { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 24px; }
  .shell:has(.ibx.two) .gz-word { grid-column: 2; grid-row: 1; font-size: 32px; }
  .shell:has(.ibx.two) .gz-act { grid-column: 1 / -1; justify-content: flex-end; }
  .ibx.two { height: calc(100dvh - 174px); }
}

/* Accent controls need their own foreground, distinct from feature-card text. */
.btn-ink, .btn-olive, .chip.on, .chip[aria-pressed="true"], .team-unread { color: var(--on-accent, #fff); }

/* Offer picker: native filename and keyboard access, styled to match the workspace. */
.offer-upload { display: grid; gap: 18px; justify-items: start; }
.offer-file { width: 100%; min-width: 0; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--card-2); gap: 12px; }
.offer-file .offer-file-heading { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; }
.offer-file-heading svg { width: 24px; height: 24px; color: var(--accent); }
.offer-file .offer-file-hint { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.offer-file input[type="file"] { width: 100%; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; }
.offer-file input::file-selector-button { margin-right: 14px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.offer-file input::file-selector-button:hover { border-color: var(--accent); }
.offer-file:focus-within { border-color: var(--accent); }
@media(max-width: 600px) { .offer-file { padding: 16px; } .offer-upload > .btn { width: 100%; } }

/* Individual message filter pills, with equal spacing and readable counts. */
.ibx .ibx-list .ibx-filters, .phone .ibx-list .ibx-filters { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ibx .ibx-list .ibx-f, .phone .ibx-list .ibx-f { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: 600 14px/1.2 var(--font); }
.ibx .ibx-list .ibx-f.on, .phone .ibx-list .ibx-f.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ibx .ibx-list .ibx-f span, .phone .ibx-list .ibx-f span { color: inherit; margin: 0; opacity: 1; }

/* Keep all four filters together; smaller screens can swipe without shrinking labels. */
@media (min-width: 1000px) {
  .ibx.two { grid-template-columns: 390px minmax(0, 1fr); }
  .ibx.two .ibx-list-head { padding-inline: 16px; }
}
.phone .ibx-list { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.phone .ibx-list-head { padding: 20px 16px 16px; gap: 14px; }
.phone .ibx-list .ibx-title { font-size: 26px; text-transform: none; }
.phone .ibx-list .ibx-search { min-height: 44px; }
.phone .ibx-list .ibx-f { min-height: 44px; }
.phone .ibx-list .ibx-row { padding: 16px; gap: 12px; }
.phone .ibx-list .ibx-row-top { gap: 8px; }
.phone .ibx-list .ibx-row-top time { font-size: 14px; }

/* Sheets are mounted outside .phone, so size contact details by viewport. */
@media (max-width: 600px) {
  .sheet:has(.ibx-ctx) { padding: 20px; max-height: calc(100dvh - 32px); }
  .sheet:has(.ibx-ctx) .sheet-head { align-items: flex-start; }
  .sheet:has(.ibx-ctx) .sheet-head h2 { min-width: 0; font-size: 18px; line-height: 1.3; }
  .sheet:has(.ibx-ctx) .sheet-head .iconbtn { flex: 0 0 auto; }
  .sheet .ibx-ctx-who { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "av name" "av role" "contact contact" "btn btn"; gap: 8px 12px; }
  .sheet .ibx-ctx-who .av { width: 48px; height: 48px; font-size: 18px; align-self: start; }
  .sheet .ibx-ctx-who > b { font-size: 20px; line-height: 1.3; }
  .sheet .ibx-ctx-contact { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
  .sheet .ibx-ctx-who .btn { width: 100%; margin-top: 4px; }
  .sheet .ibx-deal { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .sheet .ibx-deal .photo { width: 80px; height: 80px; }
  .sheet .ibx-deal .in { padding: 0; }
  .sheet .ibx-ctx-item { flex-direction: column; gap: 4px; }
}
body:has(#layer:not([hidden]) .ibx-ctx) { overflow: hidden; }
body:has(#layer:not([hidden]) .ibx-ctx) #setup-card { visibility: hidden; }
@media (max-width: 600px) {
  #layer:not([hidden]):has(.ibx-ctx) { padding: 16px; }
  .sheet:has(.ibx-ctx) { box-sizing: border-box; overscroll-behavior: contain; }
}

/* Keep lead handoff alongside the contact actions on phones. */
@media (max-width: 600px) {
  .p-hero-actions:has([data-act="team-hand-open"]) { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .p-hero-actions:has([data-act="team-hand-open"]) > .btn { min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 14px; gap: 6px; }
  .p-hero-actions [data-act="team-hand-open"] { flex: 1 1 auto; white-space: normal; line-height: 1.2; }
  .p-hero-actions:has([data-act="team-hand-open"]) svg { flex-shrink: 0; width: 18px; height: 18px; }
}

@media (max-width: 600px) {
  .p-contact .p-contact-item { display: block; overflow-wrap: anywhere; }
  .p-contact .p-contact-separator { display: none; }
}

@media (max-width: 600px) {
  .deal-checklist .section-t { flex-direction: column; align-items: stretch; gap: 14px; }
  .deal-checklist .section-t .actions { display: flex; flex-wrap: wrap; min-width: 0; gap: 8px; }
  .deal-checklist .section-t .btn { min-width: 0; max-width: 100%; white-space: normal; line-height: 1.35; }
  .deal-checklist .section-t [data-ask] { flex: 1 1 100%; justify-content: flex-start; }
  .deal-checklist .section-t .btn svg { flex-shrink: 0; }
}
/* Give the phone composer room above navigation and keep setup out of its way. */
.phone .ask-page { min-height: calc(100dvh - 280px); gap: 20px; }
.phone .ask-head .display { font-size: 32px; }
.phone .ask-head { align-items: center; justify-content: space-between; }
.phone .ask-form { bottom: calc(116px + env(safe-area-inset-bottom)); border-radius: 24px; padding: 10px; gap: 8px; margin-top: 12px; z-index: 20; }
.phone .ask-form input { width: 100%; min-height: 48px; padding: 0 8px; box-sizing: border-box; }
.phone .ask-form .btn { min-height: 48px; padding: 10px 16px; font-size: 16px; }
body:has(.phone .ask-page) #setup-card { visibility: hidden; }

/* Keep response metadata readable and reserve a separate arrow column. */
.phone .ask-item { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 12px; align-items: center; }
.phone .ask-item > b { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.phone .ask-item > span { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
.phone .ask-item > svg { grid-column: 2; grid-row: 1 / span 2; }

/* Calendar controls and all-day cards stay readable on phones. */
.dv-chip-text { min-width: 0; }
.dv-chip-who::before { content: ' · '; }
.phone .cal-head { padding: 0; gap: 16px; }
.phone .cal-title { width: 100%; }
.phone .cal-head .display { font-size: 30px; }
.phone .cal-head .display .soft { margin-top: 6px; font-size: 18px; }
.phone .dv-chips { width: 100%; min-width: 0; }
.phone .dv-chip { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 16px; align-items: flex-start; text-align: left; line-height: 1.4; }
.phone .dv-chip .ci { flex: none; margin-top: 2px; }
.phone .dv-chip-text { overflow-wrap: anywhere; }
.phone .dv-chip-who { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.phone .dv-chip-who::before { content: none; }

/* Mobile calendar sheets: equal-height type choices and full-width fields. */
@media (max-width: 600px) {
  .sched-form { min-width: 0; }
  .sched-form > .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sched-form .field { min-width: 0; }
  .sched-form .field > input, .sched-form .field > select { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; font-size: 16px; padding: 12px; border-radius: 14px; }
  .sched-form input[type="date"], .sched-form input[type="time"] { appearance: none; -webkit-appearance: none; }
  .sched-form input::-webkit-date-and-time-value { text-align: left; }
}
/* While a calendar sheet is open the setup bubble (lib/onboarding.js #setup-card, z-index 60 like #layer) sat over its
   Add button on the phone (Tovah, 2026-10-03). Hidden at every width, not only under 600px. */
body:has(#layer:not([hidden]) .sched-form) #setup-card { visibility: hidden; }
/* the pinned submit (areas/schedule.css .sched-foot) over the phone sheet's padding: 20px sides, the dock's safe area below */
.phone .sched-foot { margin: 4px -20px calc(-1 * (env(safe-area-inset-bottom) + 24px)); padding: 12px 20px calc(env(safe-area-inset-bottom) + 16px); }

/* The leads table on a phone: the source column wrapped onto two lines and ran off the edge
   ("Instagram", "Realtor.co…"), and every row was two lines tall for it (Tovah, 2026-10-04:
   "can this look better at all"). On a phone the source stops being a column and rides under the
   email as a quiet chip, so nothing truncates and a row is a row. */
@media (max-width: 600px) {
  .lead-table th:last-child, .lead-table td:last-child { display: none; }
  .lead-table th, .lead-table td { padding: 12px 14px; }
  .lead-table td:first-child { padding-right: 8px; }
  .lt-src { display: inline-flex; align-items: center; min-height: 26px; margin-top: 6px; padding: 0 10px; border-radius: var(--pill); background: var(--card-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
}
@media (min-width: 601px) { .lt-src { display: none; } }

/* ---- Feedback in the dock (0207): only while their 7 day trial runs, with what is left of it ---- */
.dock-fb { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.dock-fb .dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.dock-left { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.1; margin-bottom: 2px; white-space: nowrap; }

/* ---- Feedback: a messenger (0207) ---- */
.fb-intro { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 44rem; margin: 0 0 20px; }
.fb-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.fb-row { display: flex; }
.fb-row.mine { justify-content: flex-end; }
.fb-bub { max-width: min(32rem, 82%); padding: 12px 14px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); }
.fb-row.mine .fb-bub { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.fb-bub p { margin: 0; font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.fb-when { display: block; margin-top: 6px; font-size: 14px; opacity: .72; }
.fb-att { display: block; max-width: 100%; border-radius: 12px; margin-bottom: 8px; background: var(--sunk); }
.fb-compose { position: sticky; bottom: 0; background: var(--ground); padding-top: 14px; }
.fb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.fb-clip { cursor: pointer; }
.fb-chosen { font-size: 14px; color: var(--ink-2); }
.fb-chosen.on { font-weight: 700; color: var(--ink); }

/* ---- The card wall (0210): the whole page until Stripe has their card ----
   It is the first thing a new agent ever sees, so it carries the mark, says the three numbers that
   matter and nothing else, and sits in a card rather than floating on the ground. */
.cardwall { min-height: 100dvh; display: grid; place-content: center; gap: 18px; padding: 32px 16px; }
.cw-card { width: min(30rem, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 40px 34px 32px; text-align: center; box-shadow: var(--shadow); }
.cw-word { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.045em; margin-bottom: 26px; }
.cw-card h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.cw-lede { font-size: 17px; line-height: 1.45; color: var(--ink-2); margin: 0 0 26px; }
.cw-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none;
  margin: 0 0 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cw-facts li { padding: 0 8px; }
.cw-facts li + li { border-left: 1px solid var(--line); }
.cw-facts b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 7px; }
.cw-facts span { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.cw-card .btn { width: 100%; }
.cw-err { color: var(--warn, #9A2B2B); font-size: 15px; min-height: 1.2em; margin: 12px 0 0; }
.cw-fine { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.cw-out { text-align: center; margin: 0; font-size: 14px; }
.cw-out a { color: var(--ink-2); }
@media (max-width: 430px) {
  .cw-card { padding: 30px 20px 26px; }
  .cw-card h1 { font-size: 29px; }
  .cw-facts { grid-template-columns: 1fr; gap: 16px; padding: 18px 0; }
  .cw-facts li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .cw-facts span br { display: none; }
}

/* ---------- Affiliates (0214; Tovah, 2026-10-05: "can we make this page look better and fun?") ----
   It was four grey $0s and a link box. The money is the hero now: one big number on a dark card, the
   rest beneath it in words. Before anything has happened the hero is what they WOULD make, because a
   row of four zeros tells them nothing and reads as a broken page. */
.aff-card { padding: 0; overflow: hidden; }
.aff-hero { padding: 28px 24px 24px; background: var(--dark); color: var(--on-dark); display: grid; gap: 6px; }
.aff-hero .eyebrow { color: var(--on-dark-2); }
.aff-big { font-family: var(--font-display, var(--font)); font-size: clamp(44px, 7vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.aff-sub { font-size: 15px; color: var(--on-dark-2); max-width: 46ch; }
.aff-linkrow { display: flex; gap: 10px; align-items: center; margin: 18px 24px 0; }
.aff-linkrow input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--card-2); font: inherit; font-size: 15px; color: var(--ink); }
.aff-linkrow .btn { flex: none; }
/* The QR an affiliate holds up for somebody to scan (Tovah, 2026-10-28).
   ⚠️ White behind it, always, whatever look or colour scheme is on. The SVG paints its own white
   square so a dark card cannot eat the quiet zone, and the box here matches that. A code on a
   coloured background is a code that half the scanners refuse. */
.aff-qr { display: grid; justify-items: center; gap: 12px; margin: 18px 24px 0; }
.aff-qr-art { width: 200px; max-width: 100%; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line, #e4e0da); }
.aff-qr-art svg { display: block; width: 100%; height: auto; }
.aff-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 24px 24px; }
.aff-nums > div { display: grid; gap: 2px; }
.aff-nums .num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.aff-nums span { font-size: 14px; color: var(--ink-2); }
.aff-steps { list-style: none; margin: 20px 24px 24px; padding: 0; display: grid; gap: 14px; }
.aff-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.aff-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-tint, var(--sunk)); color: var(--ink); font-size: 14px; font-weight: 800; }
@media (max-width: 759px) {
  .aff-hero { padding: 22px 16px 18px; }
  .aff-linkrow { margin: 14px 16px 0; flex-wrap: wrap; }
  .aff-linkrow input { width: 100%; flex: 1 1 100%; }
  .aff-nums { grid-template-columns: 1fr 1fr; margin: 16px 16px 20px; }
  .aff-steps { margin: 16px 16px 20px; }
}

/* ★ 0222: a transaction coordinator is the third voice in a client thread, so their line says
   who they are. Not a colour of its own: the name plus the role is what the reader needs. */
.ibx-who { margin-left: 8px; font-size: 14px; font-weight: 500; opacity: .72; }

/* ─── A coordinator's income (0232) ─────────────────────────────────────────
   Tovah: "an income tab as well because they get paid per transaction" / "flat fee".
   ⚠️ Tokens from this file only. `--accent` and `--good` exist here; on the coordinator
   surface they do not, which is how .tc-when.late silently drew nothing earlier today
   (tools/tests/lib/css-tokens.mjs). ⚠️ Nothing under 14px.
   ─────────────────────────────────────────────────────────────────────────── */
.inc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--hair); border-radius: var(--r-xl); background: var(--card);
  margin-bottom: 8px; }
.inc-row .grow { flex: 1; min-width: 0; }
.inc-row .doc-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.inc-row .doc-name:hover { text-decoration: underline; }
.inc-row .doc-meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.inc-fee { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.inc-row.is-paid .inc-fee { color: var(--good); }
.inc-row.is-paid .doc-name { color: var(--ink-2); }

/* the same tick the coordinator workspace uses, so the two apps feel like one product */
.inc-row .tc-tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid var(--line); background: var(--card); cursor: pointer; position: relative; }
.inc-row .tc-tick.on { background: var(--good); border-color: var(--good); }
.inc-row .tc-tick.on::after { content: ''; position: absolute; left: 5px; top: 2px; width: 6px; height: 11px;
  border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* the three counts above the list, matching the coordinator workspace */
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 20px; }
.tc-stat { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-xl); padding: 16px 18px; }
.tc-stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--ink); }
.tc-stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) {
  .tc-stats { gap: 8px; }
  .tc-stat { padding: 12px 10px; }
  .tc-stat b { font-size: 22px; }
}

/* ─── A coordinator's Today (2026-10-20) ────────────────────────────────────
   Tovah: "let's make the transaction coordinator dashboard very easy to use."
   Three counts, then what is late, then what closes. No chart, no volume, no
   commission. ⚠️ Tokens from this file only; nothing under 14px.
   ─────────────────────────────────────────────────────────────────────────── */
.co-whose { margin: 0 0 18px; font-size: 14px; color: var(--ink-3); }


/* ★★ 2026-10-23 (Tovah): "make this look better". `.co-row` was a flex row built for a full-width
   panel - a 76px date column, the text, and "4d overdue · Open ↗" on the end - and v540 put it in a
   card half that width, so the text wrapped to three lines with a lonely date beside it. It is the
   agent's `.dtask` row now, and `.co-row`/`.co-when`/`.co-what`/`.co-open` are gone with the panels
   they were drawn for. */
/* ⚠️ `.dtask.co-item`, not `.co-item`: `.dtask` sets a three-column grid with a 22px tick column and
   lives LATER in this file, so at equal specificity it won and the date column computed to 0px - the
   same trap as `.av.av` earlier today. Two classes is (0,2,0) and does not depend on the order. */
.dtask.co-item { grid-template-columns: minmax(0, 1fr) auto; width: 100%; text-align: left;
  background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit;
  text-decoration: none; font: inherit; cursor: pointer; }
.dtask.co-item:hover .dtask-main b { text-decoration: underline; }
/* ⚠️ the overdue count sits UNDER the date rather than in a third column: "Oct 19" then "4d late"
   is what fits the width this card actually has. */
.dtask.co-item .dtask-w { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.co-late { font-style: normal; font-size: 14px; font-weight: 700; color: var(--alert); }
/* what KIND of thing it is, when it is worth saying - a document, a contract deadline, or somebody
   else to chase. ⚠️ "Assigned to Your workspace" used to print here on every row of a coordinator's
   own work, which is a sentence about the page it is already on. */
.co-kind { color: var(--ink-3); }
/* the groups inside the queue: a heading per band, so "2 overdue" is never buried in a list of ten */
.co-group + .co-group { margin-top: 16px; }
.co-group .eyebrow { display: block; margin-bottom: 2px; }
.co-group .eyebrow .num { font-weight: 700; color: var(--ink); }

.co-deal { display: block; padding: 16px 18px; margin-bottom: 10px; border: 1px solid var(--hair);
  border-radius: var(--r-xl); background: var(--card); color: inherit; text-decoration: none; }
.co-deal:hover { border-color: var(--ink-3); }
.co-deal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-deal-top b { font-size: 17px; font-weight: 600; color: var(--ink); }
.co-deal-when { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.co-deal-meta { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-3); }
.co-deal-next { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.co-deal-next i { font-style: normal; font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-3); margin-right: 8px; }
.co-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.co-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; }
.co-bar i { display: block; height: 100%; background: var(--good); }
.co-prog small { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

.co-fees { margin: 0; font-size: 34px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.co-fees span { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--ink-3); }

@media (max-width: 640px) {
}

/* Coordinator desk: the work queue and follow-through stay visible together. */
.co-note { font-size:15px; line-height:1.5; color:var(--ink-3); margin:0 0 16px; }
.co-desk .co-item:focus-visible, .co-desk a:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.co-empty { font-size:15px; line-height:1.6; color:var(--ink-3); padding:12px 0; margin:0; }
/* ★★★ 2026-11-19: a coordinator whose agent has shared nothing. Olive, never --alert: this is a
   state the app is correctly in, and the one thing it must not look like is an error. */
.co-waiting { border-left:4px solid var(--olive); background:var(--olive-tint); margin-bottom:18px; }
.co-waiting-h { margin:0 0 8px; font-size:20px; line-height:1.2; }
.co-waiting p { margin:0; font-size:16px; line-height:1.55; }
.co-waiting-s { margin-top:8px !important; color:var(--ink-2); }
.co-desk .co-deal-top { flex-wrap:wrap; }
/* ★★ 2026-11-21 (Tovah: "tc layout is too long"). The coordinator desk ran 4,400px tall and two
   thirds of it was nothing:
   1. Transactions is a TWO-stage board for a coordinator (In offer, Under contract), but it was
      drawn into the agent's four-column row, so half the board was empty gutter.
   2. `.dgrid-2`'s row stretched Transactions to whatever Your work measured - a 400px board held
      open to 2,900px of white.
   3. Your work is a QUEUE. 28 items is a real day's worth, and the right answer for a queue is to
      scroll it, not to make the page as tall as the backlog.
   ⚠️ The cap is wide-screen only: on a phone the two cards are already stacked full-width and a
   scroller inside a scroller is the worse thing. */
.co-desk .dp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the week's list, under its bars: the same row the queue draws, with air above it */
.co-wk { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.co-wk .co-group + .co-group { margin-top: 14px; }
.co-wk .dp-all { margin-top: 12px; }
@media (min-width: 1201px) {
  .co-desk .dgrid-2 { align-items: start; }
  /* and the summary row stops stretching its short cards into blank slabs */
  .co-desk .dgrid-3 { align-items: start; }
  /* the week's list scrolls so the card sits beside Closings rather than towering over it */
  .co-desk .co-wk { max-height: 430px; overflow-y: auto; }
  .co-desk .co-queue { max-height: calc(100vh - 230px); min-height: 420px; overflow-y: auto; }
}
@media (max-width:640px) {
}
.co-desk .greet { margin-bottom:12px; }
.co-desk .greet-h { font-size:clamp(24px, 3vw, 40px); line-height:1.15; }
@media (max-width:640px) {
  .co-desk .greet-h { font-size:24px; }
  .co-desk .co-note { margin-bottom:8px; }
}

/* The agents a coordinator works for. ⚠️ `.card` carries no bottom margin here, so the cards sat
   flush against each other with one hairline between them (Tovah: "need more padding between the
   agents"). */
.ag-card { margin-bottom: 16px; }
.ag-card:last-of-type { margin-bottom: 0; }

/* An agent waiting on an answer, on the coordinator's Agents page. */
.ag-waiting { margin-bottom: 24px; }
.ag-waiting .eyebrow { margin-bottom: 10px; }
.ag-card.is-invite { border-color: var(--accent); }
/* ★ 0278: a coordinator's own forwarding address for ONE agent, on their Agents card. Selectable
   in a tap, wraps rather than widening the card on a phone, and 14px because nothing goes under. */
.ag-inbox { display: inline-block; margin-top: 4px; font-size: 14px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all;
  user-select: all; padding: 3px 8px; border-radius: 6px; background: var(--olive-soft);
  border: 1px solid var(--line); color: var(--ink); }
.ag-answer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ag-answer .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .ag-answer .btn { flex: 1 1 auto; } }

/* ★ "at the top, write homies. Agent." — the wordmark names the app you are in (lib/tenant.js
   appKind). Lighter and smaller than the mark itself so it reads as a qualifier, not a second brand. */
/* ⚠️ The font-size is what this comment promised and never set: at full size the qualifier added 160px
   to a row that had no spare pixels, and put HOMES and ASK underneath the wordmark. */
.gz-word .gz-kind, .p-brand .gz-kind { font-weight: 500; font-size: 0.62em; opacity: 0.55; letter-spacing: -0.01em; }

/* The coordinator's week ahead: how much lands on which day, and which days close.
   ⚠️ Deliberately NOT lib/charts.js — its `.ch-bar*` styles live in src/styles/agent.css, which /app
   never loads, so those bars would have drawn as bare numbers with no bar. */
.co-week-bars { display: flex; align-items: flex-end; gap: 10px; }
.co-wb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co-wb-n { font-size: 14px; font-weight: 700; color: var(--ink-3); min-height: 18px; }
.co-wb-track { width: 100%; height: 96px; display: flex; align-items: flex-end; background: var(--card-2); border-radius: 8px; overflow: hidden; }
.co-wb-track i { width: 100%; background: var(--ink-3); border-radius: 8px 8px 0 0; }
.co-wb.is-today .co-wb-track i { background: var(--accent); }
.co-wb.is-today .co-wb-n { color: var(--ink); }
.co-wb-l { font-size: 14px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.co-wb.has-close .co-wb-l { color: var(--ink); font-weight: 700; }
.co-wb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .co-week-bars { gap: 6px; } .co-wb-track { height: 72px; } }

/* Offer requests: what an agent handed over, and whether it has been picked up. */
.or-list { display: grid; gap: 16px; }
.or-card.is-new { border-color: var(--accent); }
.or-note { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.or-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.or-note.or-quiet { color: var(--ink-3); }
.or-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.or-seen { margin-top: 28px; }
.or-seen .eyebrow { margin-bottom: 10px; }
@media (max-width: 480px) { .or-act .btn { flex: 1 1 auto; } }

/* The lock: a blurred skeleton and one prompt. ⚠️ The skeleton is decorative — the real page is never
   rendered under it (a CSS filter is not a boundary). */
.lk-wrap { position: relative; }
.lk-under { display: grid; gap: 18px; filter: blur(5px); opacity: 0.5; pointer-events: none; user-select: none; }
.lk-under span { display: block; height: 72px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); }
.lk-card { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: min(520px, calc(100% - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); }
.lk-card .eyebrow { margin-bottom: 8px; }
.lk-why { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; }
.lk-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 640px) { .lk-card { top: 16px; padding: 22px 18px; } .lk-act .btn { flex: 1 1 auto; } }

/* ======================================================================
   THE AGENT'S DASHBOARD (Tovah, 2026-10-22, with a mockup: "we'd like the
   dashboard like this instead"). views/today-agent.js.

   ⚠️ NOT ONE HEX HERE. Her mockup is pink because the look she drew it in is
   pink; the look's tokens carry that, so this page comes out in whichever look
   the agent picked and the next one does too.
   ⚠️ Every grid child is minmax(0, 1fr), never a bare 1fr - a bare `1fr` is
   `minmax(auto, 1fr)`, the column grows to its content's min-width, and the row
   pushes the page wide. That is the same trap that put HOMES under the wordmark
   on 2026-10-22 and Menu off an iPad on 2026-10-20.
   ====================================================================== */

/* ★★ 2026-10-22 (Tovah): "if clicking its a new build have them type in the address". A new build has
   no listing link to paste, so Confirm deal details refused it outright. The address field is born
   hidden and appears when the box is ticked. ⚠️ `:has()` on the FORM, not a sibling selector: the
   checkbox lives inside its own `<label>`, so `~` can never reach out of it. */
.deal-nb-addr { display: none; }
form:has(input[name="newBuild"]:checked) .deal-nb-addr { display: grid; }

/* ---------- the quote, where Next up used to be ---------- */
.dquote { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
.dq-k { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent, var(--olive)); }
.dq-k svg { width: 16px; height: 16px; }
.dq-t { margin: 0; font-size: 20px; line-height: 1.35; font-style: italic; color: var(--ink); }

/* ---------- the five tiles ---------- */
.dt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.dt-tile { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.dt-tile:hover { box-shadow: var(--shadow-lift); }
.dt-tile.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.dt-k { display: block; font-size: 14px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); padding-right: 40px; }
.dt-tile.dark .dt-k { color: var(--on-dark-2); }
.dt-tile b { display: block; margin: 10px 0 4px; font-size: 42px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.dt-s { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dt-tile.dark .dt-s { color: var(--on-dark-2); }
.dt-s.warn { color: var(--alert); }
.dt-go { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--sunk);
  display: grid; place-items: center; color: var(--ink); }
.dt-tile.dark .dt-go { background: var(--on-dark); color: var(--dark); }
.dt-go svg { width: 15px; height: 15px; }

/* ---------- the two card rows ---------- */
/* ★ 2026-10-22 (Tovah): "make calendar and income snap shot the height of the lead sources. looks
   funny with blank space". `align-items: start` let every card be its own height, so a short Calendar
   sat in a row beside a tall donut with a gap under it.
   ⚠️ Equal height is only half of it - a stretched card with its content clustered at the top is the
   same blank space with a border round it. So each card is a column: the heading stays put, the body
   takes the slack, and the footer link sits on the bottom edge. */
.dgrid { display: grid; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.dgrid > .card { display: flex; flex-direction: column; }
.dgrid > .card > .section-t { flex: none; }
/* the body of each card grows into whatever the tallest one in the row leaves */
.dcal-grid, .dtask-list, .dp-row { flex: 1 1 auto; }
/* ⚠️ the month grid grows by its ROWS, never by stretching the cells into ovals */
.dcal-grid { align-content: start; }
.dgrid > .card > .sec-link { margin-top: auto; padding-top: 12px; }
/* ⚠️ The bottom three are a summary row, not three pages: her mockup's are half the height mine were. */
.dgrid-3 > .card { padding: 20px 22px; }
.dgrid-3 > .card > .section-t { margin-bottom: 10px; }
.dgrid-2 { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.dgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgrid-1 { grid-template-columns: minmax(0, 1fr); }
.dgrid .card { margin: 0; }

/* ---------- deals pipeline ---------- */
.dp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dp-col { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px; }
/* ★ the column's own hairline in the accent, which is what the mockup's colored tops are */
.dp-col { border-top: 3px solid var(--accent, var(--olive)); }
.dp-leads { border-top-color: var(--line); }
.dp-col > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dp-h { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dp-col > header .num { font-size: 15px; font-weight: 800; }
.dp-empty { margin: 0; font-size: 14px; color: var(--ink-3); }
.dp-all { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 700;
  color: var(--ink); text-decoration: none; }
.dp-all svg { width: 14px; height: 14px; }
.dp-lead { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink); min-width: 0; }
/* ⚠️ BY CLASS, never `> span` (Tovah, 2026-10-22: "letters should be in the middle"). `.dp-lead > span`
   is specificity (0,1,1) and `.av` is (0,1,0), so it beat the avatar's own `display: inline-grid;
   place-items: center` and turned the circle into a flex COLUMN - the initials went to the top of it.
   An element selector that happens to match a shared component is how a rule written for one child
   silently restyles another. */
.dp-lead-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-lead b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-deal { display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.dp-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: var(--sunk); }
.dp-noimg { background: var(--sunk); }
.dp-price { display: block; margin: 10px 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.dp-who { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-where { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ⚠️ The state is a key date's own name ("Inspection period ends"), which does not fit one line in a
   quarter-width column - clipped it read "Inspection period end…". It wraps to two and stops. */
.dp-state { margin-top: 8px; display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.dp-state .dot { margin-top: 4px; }
.dp-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--olive)); flex: none; }

/* ---------- today's tasks ---------- */
/* ⚠️ `align-content: start`. The list grows to fill a stretched card, and without this the grid shares
   the slack BETWEEN the rows - her screenshot had three tasks with a hand's width of nothing between
   each of them. The rows sit at the top; the card's own height is what takes the slack. */
.dtask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.dtask { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--line); }
.dtask-list > li:first-child { border-top: 0; }
.dtask-tick { width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--line); border-radius: 50%;
  background: none; cursor: pointer; flex: none; }
.dtask-tick:hover { border-color: var(--ink); }
/* ★ A birthday or a home anniversary (2026-10-22). ⚠️ No tick: there is nothing to mark done, and a
   checkbox that cannot be checked is the dead control this app keeps being reported for. */
.dtask-ico { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sunk); color: var(--ink); flex: none; }
.dtask-ico svg { width: 13px; height: 13px; }
.dtask.occasion .dtask-main b { font-weight: 600; }
.dtask-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dtask-main b { font-size: 15px; font-weight: 700; }
.dtask-sub { font-size: 14px; color: var(--ink-2); }
.dtask-w { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.dtask.late .dtask-w { color: var(--alert); }

/* ---------- calendar: a compact month (2026-10-22, "make the calendar a month view. same size") ----
   ⚠️ Sized to fit the SAME card as the list it replaced: 7 columns, a header row and six week rows at
   ~32px, which lands within a few pixels of where the day list ended. views/calendar.js's own
   `.cal-month` is 44px cells with item chips inside them and is four times this. */
.dcal-m { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-size: 15px; }
.dcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dcal-dow { display: grid; place-items: center; height: 22px; font-size: 14px; font-weight: 800;
  letter-spacing: .04em; color: var(--ink-2); }
.dcal-day { position: relative; display: grid; place-items: center; align-content: center; gap: 2px;
  min-height: 32px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14px; }
.dcal-day:hover { background: var(--sunk); }
.dcal-day b { font-weight: 600; line-height: 1; }
.dcal-day.past { color: var(--ink-3); }
/* ★ today is the one filled cell, the way the calendar page marks it */
.dcal-day.is-today { background: var(--ink); color: var(--on-dark); }
.dcal-day.is-today b { font-weight: 800; }
/* ⚠️ A dot, not a count: at this size a number beside a number is unreadable, and the card's job is
   "which days have something on them". The accent for anything, the ink for a key date. */
.dcal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent, var(--olive)); }
.dcal-dot.key { background: var(--ink); }
.dcal-day.is-today .dcal-dot, .dcal-day.is-today .dcal-dot.key { background: var(--on-dark); }
.dcal-pad { min-height: 32px; }

/* ---------- income ---------- */
.dinc-big { display: block; margin-top: 2px; font-size: 34px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.dinc-of { margin: 5px 0 12px; font-size: 15px; color: var(--ink-2); }
/* ⚠️ The percentage sits AT THE END of the bar, on its line - under it, it cost a row of height and
   read as a caption (her mockup, 2026-10-22). */
.dinc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.dinc-bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent, var(--olive));
  box-shadow: inset calc(-1 * var(--rest, 0px)) 0 0 var(--sunk); }
.dinc-bar .num { font-size: 14px; font-weight: 700; color: var(--ink-2); }
/* ⚠️ Right under the bar. Pushed to the bottom of a stretched card they left a hole in the middle of
   it, which is the "blank space" again one card over. */
.dinc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.dinc-fig { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dinc-fig + .dinc-fig { padding-left: 10px; border-left: 1px solid var(--line); }
.dinc-fig b { font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.dinc-fig span { font-size: 14px; font-weight: 600; }
.dinc-fig .muted { font-weight: 500; }

/* ---------- lead sources ----------
   ⚠️ The slices are mixed the SAME way the legend squares are (.ch-legend .sq), so the ring and the
   list cannot disagree about which share is which. `.ch-donut .sl`'s own rule grades on
   `var(--i) / var(--n)` and nothing has ever set `--n`, so that calc is invalid and every slice there
   comes out at full opacity - this card does not rely on it. */
/* ★ "make leads small like that" (2026-10-22): a 128px ring with a 28px number and LEADS in spaced
   capitals filled the card and set the height of the whole row. Her mockup's is a quiet dial.
   ⚠️ 14px is the floor (tools/tests/lib/fontfloor.mjs), so the label cannot shrink - it reads smaller
   because it loses the capitals and the tracking, not because it loses size. */
.dsrc .ch-donut, .dsrc .ch-donut svg { width: 96px; height: 96px; }
.dsrc .ch-donut circle { stroke-width: 6.2; }
.dsrc .ch-donut .mid span { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dsrc .ch-donut .sl { stroke: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 13%), black); opacity: 1; }
.dsrc .ch-donut .mid b { font-size: 22px; letter-spacing: -.03em; }
.dsrc { display: flex; flex-direction: column; gap: 10px; }
/* ⚠️ the ring does not stretch with the card - it centres in the room it is given */
.dsrc .ch-donut { flex: none; align-self: center; }
.dsrc .ch-legend { flex: 1 1 auto; align-content: start; }
.dsrc .ch-legend { gap: 6px; }
.dsrc .ch-legend li { grid-template-columns: 11px minmax(0, 1fr) auto; font-size: 14px; }

/* ---------- the band where the five tiles stop fitting ---------- */
@media (max-width: 1200px) {
  .dt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dgrid-2, .dgrid-3 { grid-template-columns: minmax(0, 1fr); }
  .dp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dt-tile b { font-size: 34px; }
  .dinc-figs { grid-template-columns: minmax(0, 1fr); }
  .dinc-fig + .dinc-fig { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* ---------- THE SAME DASHBOARD ON A PHONE ----------
   ★ Tovah, 2026-10-22: "mobile is still old dashboard". It was a different page - `phoneToday`, with
   the four KPI tiles and the year card - which is how a phone ends up a version behind the moment the
   computer's page is redrawn. One page, laid out twice here.
   ⚠️ `.phone` is the wrapper the phone shell puts on, so these win over the 760px block above by
   specificity rather than by order, whatever width the window happens to be. */
.phone .dt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
/* the headline tile takes the width, the way the dark one does in her mockup */
.phone .dt-tiles > .dt-tile:first-child { grid-column: 1 / -1; }
.phone .dt-tile { padding: 16px 18px 14px; border-radius: var(--r-md); }
.phone .dt-tile b { font-size: 32px; margin: 8px 0 2px; }
.phone .dt-go { top: 12px; right: 12px; width: 28px; height: 28px; }
.phone .dgrid, .phone .dgrid-2, .phone .dgrid-3 { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
/* ★ 2026-10-22 (Tovah): "need more padding between" (Leads → Deals pipeline), then "here too" (the
   card above Tasks, and Tasks → Calendar). On a phone `leadsCard`, the pipeline and the tasks are bare
   siblings in the markup - there is no `.dgrid` wrapper holding a gap for them - so two cards sat a
   hairline apart while the gaps inside a `.dgrid` were fine.
   ⚠️ Scoped to the dashboard's own cards. `.card` is every card in the app and must not move. */
.phone .dp, .phone .dtasks { margin-bottom: 22px; }
/* ★ The pipeline is a BOARD on a phone: four stacked columns is a page and a half of scrolling, and
   the thing she wants is to see across her stages. One column at a time, snapped. */
.phone .dp-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; align-items: start; }
.phone .dp-row::-webkit-scrollbar { width: 0; height: 0; }
/* ⚠️ `align-items: start` above and `margin-top: 0` here: a flex row stretches its children to the
   tallest, so a column with one deal in it grew to match a column with three and pinned its "+N more"
   to the bottom of all that nothing (her screenshot, 2026-10-22). */
.phone .dp-col { flex: 0 0 82%; scroll-snap-align: start; }
.phone .dp-col .dp-all { margin-top: 10px; }
/* ★ Leads is its own card on a phone, so the pipeline is the DEALS to swipe through */
.phone .dp-leadcard { display: flex; flex-direction: column; gap: 10px; }
.phone .dp-leadcard .dp-all { margin-top: 2px; }
.phone .dcal-grid { gap: 3px; }
.phone .dcal-day, .phone .dcal-pad { min-height: 38px; }
/* ★ 2026-10-22 (Tovah): "move the inspirational quote down not enough padding above, too much belwp".
   `.phone .dash-hero` is `display: block`, so the grid `gap` that separates the greeting from the quote
   on a computer does nothing here and the card sat right under her name - while the hero's own
   `margin-bottom` (44px) left a hole beneath it. The space moves from under the quote to above it. */
.phone .dquote { padding: 20px 22px; border-radius: var(--r-lg); margin-top: 30px; }
.phone .dash-hero { margin-bottom: 24px; }
.phone .dq-t { font-size: 18px; }
.phone .dinc-big { font-size: 34px; }
.phone .dsrc { align-items: center; }
.phone .dsrc .ch-legend { width: 100%; }

/* ---------- the expense form ----------
   ★★★ 2026-10-30 (Tovah, on a call with Morgan: "money tab fucked up"). These four lines were
   written for the OLD markup - one flat flex ROW of bare inputs with .exp-amt and .exp-date on
   them. The form is `stack-md exp-form` now, holding `.grid-2` rows of `label.field`, and
   `.field` is itself `display:flex; flex-direction:column`. So `flex: 1 1 180px` on the note
   input stopped meaning "180px wide, may grow" and started meaning **180px TALL**: a giant empty
   box with the placeholder floating in it, and "How much?" stranded at the top of the stretched
   row beside it. .exp-amt and .exp-date have not existed in any view for weeks.
   ⚠️ A flex shorthand's basis follows the CONTAINER's direction. Moving markup from a row to a
   column silently turns a width into a height, and nothing fails - it just looks wrong.
   The current markup lays itself out: stack-md stacks, grid-2 pairs, .field stacks its label on
   its control. The form needs no rules of its own. */
