/* 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; }
.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; }
.chip.on .count { background: var(--on-dark); color: var(--olive-deep); }
.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;
}
.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; }
.kd { border-radius: var(--r-md); padding: 14px; background: var(--card-2); 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; }

/* 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; } }
#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(--on-dark);
  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(--on-dark); 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; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 280px minmax(0, 1fr); }
  .three > :last-child { grid-column: 1 / -1; }
}

/* =====================================================================
   PHONE — a different app over the same data (below 760px)
   ===================================================================== */
.phone { --gutter: 16px; padding-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"] { color: var(--on-dark); }
.dock a[aria-current="page"]::before { content: ''; position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--olive); z-index: -1; }
.dock a { 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; }
.p-actionbar { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 92px); 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; }

/* 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.letter { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.ibx-msg.letter.out { background: var(--card-2); align-self: flex-end; }
.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; }
.dock { left: 12px; right: 12px; padding: 8px 10px; border-radius: 32px; background: var(--card); border: 1px solid var(--line); 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; }
.phone { padding-bottom: 130px; }

@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; }
.phone .p-brand .when { white-space: nowrap; }
.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 */
.ibx-att-btn { margin-top: 12px; }
.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) ===== */
.ibx-sortbar { display: flex; align-items: center; gap: 12px; margin: 0 20px 12px; padding: 14px 16px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, .6)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); text-decoration: none; color: var(--ink); }
.ibx-sortbar > svg:first-child { color: var(--accent); }
.ibx-sortbar > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ibx-sortbar span span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.ibx-sortbar > svg:last-child { width: 16px; height: 16px; }
.ibx-f.sortf:not(.on) { color: var(--accent); font-weight: 800; }
.ibx-which { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); background: rgba(255, 255, 255, .5); display: grid; gap: 10px; }
.ibx-which b { font-size: 15px; }
.ibx-which .chip.hint { border-color: var(--accent) !important; color: var(--accent); font-weight: 800; }
.ibx-sort .sort-body { flex: 1; overflow-y: auto; padding: 8px 28px 24px; display: grid; gap: 18px; align-content: start; }
.sort-sugs { display: grid; gap: 10px; }
.sort-sug { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-lg); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: rgba(255, 255, 255, .7); text-align: left; font: inherit; color: var(--ink); }
.sort-sug:hover { border-color: var(--accent); }
.sort-sug > svg { color: var(--accent); }
.sort-sug > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sort-sug > span:nth-child(2) span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.sort-sug .go { padding: 8px 16px; border-radius: var(--pill); background: var(--ink); color: var(--on-dark); font-weight: 800; font-size: 14px; }
.sort-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.sort-remember { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: -8px; }
.sort-foot { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.phone .ibx-sort .sort-body { padding: 8px 16px 24px; }
.ibx-which .chip { max-width: 100%; white-space: normal; text-align: left; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }

/* 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); }
.top-in.gazu { max-width: 1440px; margin: 0 auto; padding: 22px 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.gz-nav, .gz-act { display: flex; align-items: center; gap: 30px; }
.gz-act { justify-content: flex-end; gap: 26px; }
.gz-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none;
  font: 600 15px/1 var(--font); letter-spacing: .12em; 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: 46px; letter-spacing: -.07em; line-height: 1; color: var(--ink); text-decoration: none; }
.gz-add { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--ground);
  font: 700 15px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.gz-add svg { width: 18px; height: 18px; }
@media (max-width: 1600px) { .top-in.gazu { padding: 20px 32px; } .gz-nav { gap: 22px; } .gz-act { gap: 18px; } .gz-link { letter-spacing: .08em; font-size: 14px; } .gz-word { font-size: 40px; } .gz-add { min-height: 46px; padding: 0 20px; font-size: 14px; } }
@media (max-width: 1320px) { .gz-link svg { display: none; } .gz-nav { gap: 16px; } .gz-act { gap: 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; }
.lt-sort.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.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; }
.menu-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 27vw); gap: clamp(28px, 4vw, 64px); align-items: start; }
.menu-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 36px; }
.menu-group > .eyebrow { display: block; margin-bottom: 14px; }
.menu-link { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; color: var(--ink); text-decoration: none;
  font-family: var(--font-display, var(--font)); font-size: clamp(26px, 2.4vw, 38px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.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 { font-size: 24px; } }
@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); }
.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-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.") */
.gz-word { font-weight: 650; font-size: 46px; 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); }
.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); }
.share-grid .share-row .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-grid .share-row .actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.share-grid .share-row .note-form { margin-top: auto; }
.share-grid .share-row .row-between { align-items: flex-start; gap: 10px; }
.share-grid .share-row .mini { border: 0; }
.share-grid .share-row .mini .s { font-size: 14px; }
.share-grid .share-row .actions .btn-ghost { min-height: 0; padding: 4px 0; margin-right: 14px; background: none; border: 0; font-size: 14px; color: var(--ink-2); }
.share-grid .share-row .actions .btn-ghost:hover { color: var(--ink); text-decoration: underline; }
.share-grid .share-row .actions .btn-ghost svg { width: 16px; height: 16px; }
.share-grid .share-row .note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; padding: 0; }
.share-grid .share-row .note-form input { min-width: 0; margin: 0; }
.share-grid .share-row .note-form .btn { min-height: 44px; }
.share-grid .share-notes { margin: 0; }
.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, .ibx.three .ibx-sort .sort-body { 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.three .ibx-f.sortf:not(.on) { color: var(--accent); }
.ibx.three .ibx-sortbar { display: flex; align-items: center; gap: 10px; margin: 12px 16px 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: none; }
.ibx.three .ibx-sortbar > span:first-of-type { flex: 1; }
.ibx.three .ibx-sortbar b { font-weight: 700; }
.ibx.three .ibx-sortbar .go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent); }
.ibx.three .ibx-sortbar svg { width: 16px; height: 16px; }
.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.letter { max-width: 100%; align-self: stretch; border-radius: 16px; }
.ibx.three .ibx-msg.out.letter { background: var(--sunk); }
.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; }
.ibx.three .ibx-att-btn { margin-top: 10px; min-height: 40px; font-size: 14px; }

/* 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); }
.ibx.three .ibx-sortbar > span { display: inline-flex; flex-direction: row; align-items: center; }
.ibx.three .ibx-sortbar .go { flex: none; white-space: nowrap; }
.ibx.three .ibx-sortbar > svg { flex: none; }
.ibx-sortbar { display: flex; align-items: center; gap: 10px; }
.ibx-sortbar > span { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; }
.ibx-sortbar > span:first-of-type { flex: 1; min-width: 0; }
.ibx-sortbar .go { flex: none; white-space: nowrap; font-weight: 700; color: var(--accent); }
.phone .ibx-sortbar { margin: 12px 16px 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: none; }

/* 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 .ibx-msg.letter, .phone .ibx-msg.letter { max-width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ibx .ibx-msg.letter .ibx-body, .phone .ibx-msg.letter .ibx-body { padding: 0; border: 0; background: none; color: var(--ink); white-space: pre-wrap; }
.ibx .ibx-msg.out.letter, .phone .ibx-msg.out.letter { background: var(--card-2); }
.ibx-ch { display: inline-flex; gap: 4px; margin: 12px 0 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.ibx-ch button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; }
.ibx-ch button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.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%; }
.ibx-ch { align-self: flex-start; width: auto; }

/* 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-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 and the legend are one row each that scroll sideways (no wrapping) */
.phone nav.cal-seg, .phone .cal-tools .cal-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; border-radius: var(--pill); -webkit-overflow-scrolling: touch; }
.phone nav.cal-seg a { padding: 9px 14px; }
.phone nav.cal-seg::-webkit-scrollbar { display: none; }
.phone nav.cal-seg > * { flex: none; white-space: nowrap; }
.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; }
.phone nav.cal-seg { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }

/* 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; }
