/* A to Z CRM — redesigned interface. System typography, quiet surfaces, brand navy as the single accent. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #fafafc; --side: rgba(242, 242, 246, .86);
  --ink: #1d1d1f; --ink-2: #3a3a3c; --ink-3: #6e6e73; --ink-4: #8e8e93;
  --hair: rgba(0, 0, 0, .09); --hair-2: rgba(0, 0, 0, .055); --fill: rgba(0, 0, 0, .045); --fill-2: rgba(0, 0, 0, .07);
  --accent: #012354; --accent-solid: #012354; --accent-tint: rgba(1, 35, 84, .075); --accent-ring: rgba(1, 35, 84, .22); --link: #0b4a9e;
  --red: #c4171f; --orange: #b45309; --green: #1f7a3a;
  --warn-bg: #fff7e6; --warn-line: #f1dfb2; --warn-ink: #6b4b00; --err-bg: #fdeeee; --err-line: #f3c8c8; --err-ink: #8a1c1c;
  --r-lg: 14px; --r-md: 10px; --r-sm: 8px;
  --shadow: 0 .5px 1px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .2), 0 2px 10px rgba(0, 0, 0, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tone-strength: 15%; --tone-ink: 0%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113; --surface: #1c1c1e; --surface-2: #232326; --side: rgba(26, 26, 29, .9);
    --ink: #f5f5f7; --ink-2: #d1d1d6; --ink-3: #a1a1a6; --ink-4: #7c7c82;
    --hair: rgba(255, 255, 255, .1); --hair-2: rgba(255, 255, 255, .065); --fill: rgba(255, 255, 255, .07); --fill-2: rgba(255, 255, 255, .1);
    --accent: #8db4ef; --accent-solid: #2d5fa8; --accent-tint: rgba(141, 180, 239, .14); --accent-ring: rgba(141, 180, 239, .35); --link: #8db4ef;
    --red: #ff6b6b; --orange: #f0a04b; --green: #5cc27a;
    --warn-bg: #2b2414; --warn-line: #4a3c17; --warn-ink: #f0d58a; --err-bg: #2e1617; --err-line: #5a2426; --err-ink: #ffb3b3;
    --shadow: 0 0 0 .5px rgba(255, 255, 255, .06); --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);
    --tone-strength: 24%; --tone-ink: 45%;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faint { color: var(--ink-4); }
.quiet { color: var(--ink-3); }
.footnote { margin-top: 12px; font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.only-narrow { display: none !important; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: inline; } }

/* Frame & sidebar */
.frame { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px 10px; background: var(--side); border-right: 1px solid var(--hair); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; color: var(--ink-2); font-weight: 650; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand span { padding-left: 10px; border-left: 1px solid var(--hair); }
.side-search { margin: 0 2px 6px; }
.side-search .search-field { max-width: none; background: var(--fill); border-color: transparent; height: 32px; }
.nav-group { padding-top: 12px; }
.nav-heading { padding: 0 10px 4px; font-size: 11px; font-weight: 600; color: var(--ink-4); letter-spacing: .01em; }
.nav-item { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; }
.nav-item:hover { background: var(--fill); text-decoration: none; }
.nav-item .i { color: var(--ink-3); }
.nav-item.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.nav-item.on .i { color: var(--accent); }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; font-weight: 500; }
.nav-dot { width: 9px; height: 9px; margin: 0 3.5px; border-radius: 50%; background: var(--role); flex: none; }
.side-foot { margin-top: auto; padding-top: 14px; }
.pending { margin: 0 8px 8px; padding: 7px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 6px 8px; border-top: 1px solid var(--hair); }
.me-text { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; font-weight: 550; }
.me-text .faint { font-size: 11.5px; font-weight: 400; }
.side-links { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 4px 10px 2px; font-size: 12px; }
.side-links a { color: var(--ink-3); }
.scrim { display: none; }
.main { min-width: 0; }
.content { max-width: 1240px; margin: 0 auto; padding: 34px 40px 96px; outline: none; }
.topbar { position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--hair); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.topbar-title { opacity: 0; transition: opacity .2s; }
body.scrolled .topbar-title { opacity: 1; }
.topbar-title { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons & controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 980px; border: 1px solid transparent; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background-color .15s, box-shadow .15s, opacity .15s; }
.btn.primary { background: var(--accent-solid); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent-solid) 88%, #fff); }
.btn.secondary { background: var(--surface); border-color: var(--hair); color: var(--ink); box-shadow: var(--shadow); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.tinted { background: var(--accent-tint); color: var(--accent); }
.btn.tinted:hover { background: color-mix(in srgb, var(--accent-tint) 100%, var(--accent-tint)); filter: brightness(.97); }
.btn.plain { background: transparent; color: var(--accent); padding: 0 8px; }
.btn.plain:hover { background: var(--accent-tint); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.btn.plain.sm { padding: 0 8px; }
.btn.wide { width: 100%; height: 38px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn .i { width: 15px; height: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--fill); }
.icon-btn .i { width: 19px; height: 19px; }
.search-field { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 420px; height: 34px; padding: 0 10px; gap: 7px; background: var(--surface); border: 1px solid var(--hair); border-radius: 9px; color: var(--ink-4); box-shadow: var(--shadow); }
.search-field:focus-within { box-shadow: 0 0 0 3px var(--accent-ring); border-color: transparent; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: var(--ink-4); }
.menu select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 12px; border-radius: 9px; border: 1px solid var(--hair); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; box-shadow: var(--shadow); font-size: 13.5px; cursor: pointer; }
.segmented { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill-2); gap: 2px; flex-wrap: wrap; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 7px; color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.segmented a:hover { color: var(--ink); text-decoration: none; }
.segmented a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
.segmented .i { width: 15px; height: 15px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.toolbar-menus { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .segmented { margin-left: auto; }
.toolbar-apply { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Page heading */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-titles { min-width: 0; flex: 1 1 420px; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; overflow-wrap: anywhere; }
.lede { margin-top: 6px; max-width: 68ch; font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.eyebrow { margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 2px; margin: -6px 0 14px -4px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.crumb .i { width: 18px; height: 18px; }

/* Avatars, chips, pills */
.avatar { --t: #5b6b85; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--t) var(--tone-strength), var(--surface)); color: color-mix(in srgb, var(--t), #fff var(--tone-ink)); font-size: 12.5px; font-weight: 650; letter-spacing: .02em; }
.avatar.org { border-radius: 9px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.lg.org { border-radius: 14px; }
.avatar.xl { width: 84px; height: 84px; font-size: 29px; }
.avatar.xl.org { border-radius: 20px; }
.tone-0 { --t: #2f5fa7; } .tone-1 { --t: #23804a; } .tone-2 { --t: #b45a14; } .tone-3 { --t: #7b48a8; } .tone-4 { --t: #b3336b; } .tone-5 { --t: #187c78; } .tone-6 { --t: #8a6a00; } .tone-7 { --t: #5b6170; }
.role-investor { --role: #5150c9; } .role-medspa-owner { --role: #c02a6c; } .role-sales-target { --role: #b26a00; } .role-customer { --role: #1f7a3a; }
.role-partner { --role: #0f7e7b; } .role-adviser { --role: #8241a8; } .role-connector { --role: #1660b8; } .role-keep-in-touch { --role: #6b6b72; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
:where(.chip) { --role: #8e8e93; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 980px; border: 0; background: color-mix(in srgb, var(--role) 12%, transparent); color: color-mix(in srgb, var(--role), var(--ink) 25%); font-size: 12px; font-weight: 550; white-space: nowrap; }
.chip.tag { background: var(--fill); color: var(--ink-3); font-weight: 500; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--role); }
.chip .via { font-weight: 400; color: var(--ink-4); margin-left: 2px; }
.chip .via::before { content: "· "; }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 980px; background: var(--fill-2); color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.stage { background: var(--accent-tint); color: var(--accent); }
.pill.legacy, .pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.ai { background: color-mix(in srgb, #8241a8 13%, transparent); color: color-mix(in srgb, #8241a8, var(--ink) 20%); }
.pill.status-confirmed { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pill.status-hypothesis, .pill.status-disputed { background: var(--warn-bg); color: var(--warn-ink); }
.due.overdue { color: var(--red); font-weight: 600; }
.due.soon { color: var(--orange); font-weight: 600; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.table thead th { padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--hair); white-space: nowrap; background: var(--surface); }
.table td, .table tbody th { padding: 11px 16px; border-bottom: 1px solid var(--hair-2); vertical-align: middle; font-weight: 400; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: var(--surface-2); }
.contacts-table { min-width: 860px; }
.contacts-table tbody th { width: 34%; }
.name-cell { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.name-cell:hover { text-decoration: none; }
.name-cell:hover .name { color: var(--accent); }
.name-text { display: flex; flex-direction: column; min-width: 0; }
.name { font-weight: 600; overflow-wrap: anywhere; }
.sub { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.clamp { max-width: 320px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
td.clamp { display: table-cell; }
.opp-table { min-width: 820px; table-layout: fixed; }
.opp-table th:nth-child(1) { width: 32%; } .opp-table th:nth-child(2) { width: 14%; } .opp-table th:nth-child(3) { width: 12%; }
.opp-table th:nth-child(4) { width: 12%; } .opp-table th:nth-child(5) { width: 20%; } .opp-table th:nth-child(6) { width: 10%; }
.opp-table td, .opp-table tbody th { overflow-wrap: anywhere; }
.opp-title { font-weight: 600; color: var(--ink); margin-right: 8px; }
.group-title { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.012em; }
.group-title .count { font-size: 14px; font-weight: 500; color: var(--ink-4); }
.group:first-of-type .group-title { margin-top: 4px; }

/* Grid of contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.contact-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.card-name { margin-top: 12px; font-size: 15px; font-weight: 650; }
.card-note { margin: 3px 0 10px; min-height: 2.9em; font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contact-card .chips { justify-content: center; }
.card-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* Role overview */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-bottom: 20px; }
:where(.stat) { --role: var(--accent); }
.stat { display: flex; flex-direction: column; gap: 1px; padding: 11px 14px 12px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--shadow); color: var(--ink); }
.stat:hover { text-decoration: none; border-color: color-mix(in srgb, var(--role) 45%, transparent); }
.stat.on { border-color: var(--role); box-shadow: 0 0 0 1px var(--role); background: color-mix(in srgb, var(--role) 6%, var(--surface)); }
.stat-n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.stat-l .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--role); }
.stat-h { font-size: 11px; color: var(--ink-4); }
.matrix { min-width: 1120px; }
.matrix tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 250px; }
.matrix tbody tr:hover th { background: var(--surface-2); }
.matrix .role-col { text-align: center; font-size: 11.5px; white-space: normal; line-height: 1.25; min-width: 78px; }
.matrix .role-col .dot { display: block; width: 7px; height: 7px; margin: 0 auto 5px; border-radius: 50%; background: var(--role); }
.matrix td.hit, .matrix td.miss { text-align: center; }
.mark { display: inline-flex; color: var(--role); }
.mark .i { width: 21px; height: 21px; stroke-width: 1.9; }
.mark-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.matrix .via { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-4); overflow-wrap: anywhere; }
.matrix td.miss::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--hair); }
.owner-cell { white-space: nowrap; color: var(--ink-2); }
.legend { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.legend summary { cursor: pointer; color: var(--accent); font-weight: 500; width: fit-content; }
.legend p { margin: 10px 0; max-width: 72ch; }
.legend dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; margin: 0; }
.legend dt { font-weight: 600; color: var(--ink-2); }
.legend dd { margin: 0; }

/* Cards & detail pages */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card.flush { padding: 4px 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 28px; }
.card-head h2 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-actions { display: flex; gap: 2px; }
.sub-head { margin: 16px 0 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 20px; }
.profile h1 { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.022em; }
.profile .eyebrow { margin-bottom: 2px; }
.profile-note { margin-top: 4px; color: var(--ink-3); font-size: 15px; }
.profile .chips { margin-top: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-self: start; padding-top: 8px; }
.summary { max-width: 78ch; margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.detail-grid.even { grid-template-columns: 1fr 1fr; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair-2); }
.facts > div:first-child { border-top: 0; }
.facts.wide > div { grid-template-columns: 180px minmax(0, 1fr); }
.prose + .facts { margin-top: 14px; border-top: 1px solid var(--hair-2); }
.facts dt { color: var(--ink-3); font-size: 13px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { display: inline-flex; align-items: center; gap: 4px; }
.facts .i { width: 13px; height: 13px; }
.card > .chips { margin-top: 12px; }
.rows li a, .rows.plain li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair-2); color: var(--ink); }
.rows li:first-child a, .rows.plain li:first-child { border-top: 0; }
.rows li a:hover { text-decoration: none; }
.rows li a:hover .row-title { color: var(--accent); }
.row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.row-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; overflow-wrap: anywhere; color: var(--ink); }
.row-title .i { color: var(--ink-4); }
.row-sub { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-4); font-size: 12px; white-space: nowrap; }
.rows .i, .row-meta .i { width: 14px; height: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 13px; font-weight: 500; }
.text-link .i { width: 14px; height: 14px; }
.summaries li { padding: 12px 0; border-top: 1px solid var(--hair-2); }
.summaries li:first-child { border-top: 0; padding-top: 2px; }
.summaries p:first-child { line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .i { width: 13px; height: 13px; }
.meta a { display: inline-flex; align-items: center; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--hair-2); }
.timeline li:first-child { border-top: 0; padding-top: 2px; }
.timeline .when { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline a { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.timeline a:hover { text-decoration: none; }
.timeline a:hover .row-title { color: var(--accent); }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 13px; line-height: 1.5; }
.banner .i { width: 17px; height: 17px; margin-top: 1px; }
.banner a { color: inherit; text-decoration: underline; display: inline-flex; align-items: center; gap: 3px; }
.banner.error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.code { padding: 9px 11px; margin: 4px 0 14px; border-radius: 8px; background: var(--fill); font: 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.revision { border-top: 1px solid var(--hair-2); }
.revision summary { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; cursor: pointer; font-weight: 550; }
.revision pre { margin: 0 0 12px; padding: 12px; border-radius: 8px; background: var(--fill); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Popover menu */
.menu-pop { position: relative; }
.menu-pop > summary { list-style: none; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 248px; padding: 5px; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; box-shadow: var(--shadow-lg); }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 13.5px; text-align: left; cursor: pointer; }
.pop button:hover, .pop a:hover { background: var(--accent-tint); text-decoration: none; }
.pop .i { color: var(--ink-3); }

/* Follow-ups */
.tasks li.task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.tasks li.task:first-child { border-top: 0; }
.card.flush .tasks li.task { padding: 14px 20px; }
.check { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.6px solid var(--ink-4); background: transparent; padding: 0; display: grid; place-items: center; }
button.check { cursor: pointer; border-color: var(--accent); }
button.check:hover { background: var(--accent-tint); }
button.check:hover::after { content: ""; width: 8px; height: 4.5px; border: solid var(--accent); border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.check.state-suggested { border-style: dashed; border-color: var(--accent); }
.check.state-done { background: var(--green); border-color: var(--green); }
.check.state-done::after { content: ""; width: 8px; height: 4.5px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.check.state-dismissed { border-style: dotted; }
.task.state-done .task-title, .task.state-dismissed .task-title { color: var(--ink-3); }
.task-title { font-weight: 600; color: var(--ink); }
.task-body p:not(.meta) { margin-top: 3px; color: var(--ink-2); }
.state-label { font-weight: 600; }
.task-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

/* Review & connections */
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.status-strip > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 980px; background: var(--surface); border: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); }
.status.on .dot { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.status.paused .dot { background: var(--orange); }
.changes li { padding: 12px 0; border-top: 1px solid var(--hair-2); }
.changes li:first-child { border-top: 0; }
.changes p:not(.meta) { margin-top: 3px; color: var(--ink-2); }
.changes .btn { margin-top: 8px; margin-left: -8px; }
.provider { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.providers .provider:first-child { border-top: 0; }
.provider h3 { font-size: 14px; font-weight: 600; }
.provider-actions, .button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button-row { margin: 12px 0 2px; }
.account .card-head { align-items: flex-start; margin-bottom: 12px; }

/* Empty, loading, pager, toast */
.empty { text-align: center; padding: 64px 20px; }
.empty-icon { width: 42px; height: 42px; stroke-width: 1.3; color: var(--ink-4); margin-bottom: 10px; }
.empty h3 { font-size: 17px; font-weight: 650; }
.empty p { max-width: 46ch; margin: 6px auto 16px; color: var(--ink-3); }
.skeleton { display: grid; gap: 14px; padding-top: 8px; }
.skeleton span { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--fill) 0%, var(--fill-2) 50%, var(--fill) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton span:first-child { height: 30px; width: 40%; }
.skeleton span:nth-child(2) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager-buttons { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; max-width: min(520px, calc(100vw - 32px)); padding: 10px 18px; border-radius: 980px; background: rgba(29, 29, 31, .94); color: #fff; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a4221b; }

/* Sheets & forms */
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
.sheet.wide { width: min(760px, calc(100vw - 24px)); }
.sheet::backdrop { background: rgba(0, 0, 0, .32); backdrop-filter: blur(2px); }
.sheet[open] { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.sheet-head h2 { font-size: 17px; font-weight: 650; }
.sheet-body { padding: 18px 22px 0; }
.sheet-note { margin-bottom: 16px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.sheet-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; margin: 8px -22px 0; padding: 12px 22px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--hair); }
.sheet-body > .footnote + .sheet-foot, .sheet-body > p + .sheet-foot { margin-top: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .link-search, .signin input { width: 100%; min-height: 36px; padding: 7px 11px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: var(--surface); color: var(--ink); outline: 0; transition: box-shadow .15s, border-color .15s; }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .link-search:focus, .signin input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field small { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.ref-field input { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.tag-suggest .chip { cursor: pointer; }
.tag-suggest .chip:hover { background: color-mix(in srgb, var(--role) 20%, transparent); }
.disclosure { border-top: 1px solid var(--hair); padding: 12px 0; }
.disclosure > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.disclosure[open] > summary { margin-bottom: 12px; }
.link-search { margin-bottom: 8px; }
.checklist { max-height: 220px; overflow: auto; padding: 4px 10px; border: 1px solid var(--hair); border-radius: 9px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--accent-solid); }
.form-error { min-height: 1em; color: var(--red); font-size: 13px; }
.form-error:empty { display: none; }

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card { width: min(380px, 100%); padding: 36px 32px 30px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); }
.signin-card img { height: 30px; width: auto; }
.signin-card h1 { margin: 18px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.signin-card .lede { margin-bottom: 22px; }
.signin-card .form-error { margin-bottom: 10px; }

/* Narrow screens */
@media (max-width: 1100px) {
  .content { padding: 28px 28px 90px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { order: -1; }
  .profile { grid-template-columns: auto minmax(0, 1fr); }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 0; }
}
@media (max-width: 860px) {
  .only-narrow { display: flex !important; }
  .frame { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%; background: var(--surface); transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .3); }
  .content { padding: 20px 16px 90px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1, .profile h1 { font-size: 26px; }
  .detail-grid.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .toolbar .segmented { margin-left: 0; }
  .search-field { max-width: none; flex-basis: 100%; }
  .toolbar-menus { width: 100%; }
  .toolbar-menus .menu { flex: 1 1 0; min-width: 0; }
  .toolbar-menus select { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .profile { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; }
  .avatar.xl { width: 68px; height: 68px; font-size: 24px; }
  .facts > div, .facts.wide > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-card { padding: 18px 10px 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tasks li.task { grid-template-columns: 22px minmax(0, 1fr); }
  .task-controls { grid-column: 2; justify-content: flex-start; margin-left: -8px; }
  /* Tables become stacked rows */
  .table-wrap { overflow: visible; }
  .contacts-table, .opp-table, .matrix { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr { display: block; }
  .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 13px 16px; border-bottom: 1px solid var(--hair-2); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td, .table tbody th { display: block; padding: 0; border: 0 !important; background: transparent !important; }
  .table tbody th { flex-basis: 100%; width: auto !important; min-width: 0 !important; position: static; }
  .contacts-table td[data-label="Roles"] { flex-basis: 100%; padding-left: 46px; }
  .contacts-table td[data-label="Owner"], .contacts-table td[data-label="Next contact"] { font-size: 12.5px; color: var(--ink-3); padding-left: 46px; }
  .contacts-table td[data-label="Next contact"] { padding-left: 0; }
  .contacts-table td[data-label="Next contact"] { margin-left: -6px; }
  .contacts-table td[data-label="Next contact"]::before { content: "· "; }
  .contacts-table td.is-empty { display: none; }
  .contacts-table td[data-label="Next step"], .opp-table td[data-label="Updated"] { display: none; }
  .opp-table td { font-size: 12.5px; color: var(--ink-3); }
  .opp-table td[data-label]::before { content: attr(data-label) " "; color: var(--ink-4); }
  .opp-table td[data-label="Next step"] { flex-basis: 100%; -webkit-line-clamp: 3; display: -webkit-box; }
  .matrix td.miss { display: none; }
  .matrix td.hit { display: inline-flex; padding-left: 0; }
  .matrix tbody th + td.hit, .matrix td.hit:first-of-type { margin-left: 46px; }
  .mark { align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 4px; border-radius: 980px; background: color-mix(in srgb, var(--role) 12%, transparent); color: color-mix(in srgb, var(--role), var(--ink) 25%); font-size: 12px; font-weight: 550; }
  .mark .i { width: 15px; height: 15px; }
  .mark-label { position: static; width: auto; height: auto; clip: auto; }
  .matrix .via { display: none; }
  .owner-cell { flex-basis: 100%; padding-left: 46px !important; font-size: 12.5px; color: var(--ink-3); }
  .owner-cell::before { content: "Owner: "; color: var(--ink-4); }
  .other-cell { display: none !important; }
  .sheet, .sheet.wide { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .sheet[open] { animation: slideup .25s ease-out; }
  .sheet-body { padding: 16px 16px 0; }
  .sheet-foot { margin: 8px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .sheet-foot .btn { flex: 1; height: 40px; }
}
@keyframes slideup { from { transform: translateY(40px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Additions: last contact, bulk edit, follow-up links, tidy-up screens, duplicates, pipeline board, search palette */
.last { white-space: nowrap; }
.last.cooling { color: var(--orange); }
.last.stale { color: var(--red); }
.last.never { color: var(--ink-4); }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.kbd-hint { flex: none; height: 20px; padding: 0 6px; border: 1px solid var(--hair); border-radius: 5px; background: var(--surface); color: var(--ink-4); font-size: 11px; cursor: pointer; }
.kbd-hint:hover { color: var(--ink-2); }
.pick { width: 36px; padding-right: 0 !important; }
.pick input, .tidy-row > input, .tidy-head input { width: 16px; height: 16px; accent-color: var(--accent-solid); cursor: pointer; }
.contacts-table { min-width: 980px; }
.bulk-bar { position: sticky; bottom: 18px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 14px auto 0; padding: 8px 10px 8px 16px; border-radius: 980px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--hair); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bulk-bar[hidden] { display: none; }
.bulk-count { font-weight: 600; font-size: 13px; margin-right: 4px; }
.bulk-bar select { height: 30px; font-size: 12.5px; }
.who { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.link-banner { text-decoration: none !important; }
.link-banner p { display: inline-flex; align-items: center; gap: 4px; }
.toolbar .segmented + .segmented { margin-left: 0; }
.toolbar .segmented:last-child { margin-left: auto; }
.tidy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--hair-2); }
.tidy-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.tidy-head .count { color: var(--ink-4); font-weight: 500; }
.tag-group .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--role); }
.tag-group { margin-bottom: 16px; }
.tidy-row { display: grid; grid-template-columns: 22px minmax(200px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--hair-2); }
.tidy-row:first-child { border-top: 0; }
.tag-group .tidy-row { grid-template-columns: 22px minmax(200px, 1.3fr) minmax(0, 1.4fr) auto; }
.tidy-hint { font-size: 13px; color: var(--ink-2); }
.tidy-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--hair-2); }
.tidy-foot.sticky { position: sticky; bottom: 0; z-index: 5; border: 1px solid var(--hair); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tidy-foot .form-error { margin-right: auto; }
.dup-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.dup-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); }
.dup-card:hover { text-decoration: none; border-color: var(--accent); }
.dup-card > .i { margin-left: auto; color: var(--ink-4); flex: none; }
.dup-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dup-text .sub { white-space: normal; max-width: none; }
.dup-text .chips { margin-top: 4px; }
.board { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.lane { background: var(--fill); border-radius: var(--r-lg); padding: 10px; min-height: 120px; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.lane-head .count { margin-left: auto; font-weight: 500; color: var(--ink-4); font-size: 12px; }
.deal { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px; margin-bottom: 8px; }
.deal .opp-title { display: block; margin: 0; line-height: 1.35; }
.deal .meta { margin-top: 6px; }
.deal-next { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.stage-menu select { height: 26px; font-size: 12px; padding: 0 24px 0 8px; background-position: right 4px center; max-width: 150px; }
.palette { width: min(620px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette::backdrop { background: rgba(0, 0, 0, .28); }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); color: var(--ink-4); }
.palette-field .i { width: 19px; height: 19px; }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.palette-field kbd { font: 11px var(--font); color: var(--ink-4); border: 1px solid var(--hair); border-radius: 5px; padding: 2px 6px; }
.palette-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.palette-list [role=option] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.palette-list [role=option] .i { color: var(--ink-3); }
.palette-list [role=option][aria-selected=true], .palette-list [role=option]:hover { background: var(--accent-tint); }
.palette-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.palette-sub { font-size: 12px; color: var(--ink-4); }
.palette-empty { padding: 18px 12px; color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 860px) {
  .tidy-row, .tag-group .tidy-row { grid-template-columns: 22px minmax(0, 1fr); }
  .tidy-row > :not(input):not(.name-cell) { grid-column: 2; }
  .tidy-row .menu select { width: 100%; }
  .toolbar .segmented:last-child { margin-left: 0; }
  .board { grid-auto-columns: minmax(78vw, 1fr); scroll-snap-type: x mandatory; }
  .lane { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .pick { display: none !important; }
  .contacts-table { min-width: 0; }
  .contacts-table td.last { font-size: 12.5px; padding-left: 46px; }
  .contacts-table td.last::before { content: "Last contact "; color: var(--ink-4); }
  .contacts-table td[data-label="Owner"] { flex-basis: 100%; }
  .contacts-table td[data-label="Next contact"] { margin-left: 0; padding-left: 46px; }
  .contacts-table td[data-label="Next contact"]::before { content: "Next "; color: var(--ink-4); }
  .palette { margin-top: 8px; }
}

/* Task board */
.kboard { position: relative; display: grid; grid-template-columns: repeat(4, minmax(205px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kcol { display: flex; flex-direction: column; min-height: 220px; padding: 10px; border-radius: var(--r-lg); background: var(--fill); border: 1.5px solid transparent; transition: border-color .12s, background-color .12s; }
.kcol.over { border-color: var(--accent); background: var(--accent-tint); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.kcol-head h2 { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.kcol-head .count { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.kcol-head .icon-btn { margin-left: auto; }
.kcol-hint { margin: -2px 4px 8px; font-size: 11.5px; color: var(--ink-4); }
.kcol-cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kcol-empty { padding: 18px 8px; text-align: center; border: 1.5px dashed var(--hair); border-radius: var(--r-md); color: var(--ink-4); font-size: 12px; }
.kboard:not(.is-dragging) .kcol-empty { border-color: transparent; }
.kcard { position: relative; padding: 11px 12px 10px 14px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--shadow); cursor: grab; }
.kcard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.kcard.prio-high::before { background: var(--red); }
.kcard.prio-medium::before { background: var(--orange); }
.kcard.prio-low::before { background: var(--ink-4); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .45; }
.kcard[data-col="done"] .kcard-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair); }
.kcard-top { display: flex; align-items: flex-start; gap: 6px; }
.kcard-title { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.kcard-text { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard-who { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; }
.kcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 9px; font-size: 12px; }
.kcard-foot .due { display: inline-flex; align-items: center; gap: 3px; }
.kcard-foot .i { width: 13px; height: 13px; }
.kcard-owner { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--ink-3); }
.kcard .menu-pop .pop { position: fixed; top: 0; right: auto; left: 0; z-index: 40; min-width: 210px; }
.kcard .pop .btn.plain { width: 100%; justify-content: flex-start; height: auto; padding: 8px 10px; color: var(--ink); font-weight: 400; }
.pill.prio-high { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.pill.prio-medium { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.pill.prio-low { background: var(--fill-2); color: var(--ink-3); }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn.sm .i { width: 16px; height: 16px; }
.menu-pop > summary.icon-btn { display: inline-grid; }
.static { min-height: 36px; display: flex; align-items: center; margin: 0; }
@media (max-width: 860px) {
  .kboard { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(82vw, 1fr); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .kcard { cursor: default; }
}
.kcard .menu-pop > summary { opacity: 0; transition: opacity .12s; }
.kcard:hover .menu-pop > summary, .kcard .menu-pop[open] > summary, .kcard .menu-pop > summary:focus-visible { opacity: 1; }
@media (hover: none) { .kcard .menu-pop > summary { opacity: .8; } }

/* Notifications */
.side-top .bell { margin-left: auto; }
.bell { position: relative; }
.bell-count { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--side); }
.bell-count[hidden] { display: none; }
.topbar-actions { display: inline-flex; align-items: center; }
.topbar .bell-count { box-shadow: 0 0 0 2px var(--bg); }
.inbox { position: fixed; inset: 10px 10px 10px auto; width: min(400px, calc(100vw - 20px)); height: auto; max-height: none; margin: 0; padding: 0; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; overscroll-behavior: contain; }
.inbox::backdrop { background: rgba(0, 0, 0, .12); }
.inbox[open] { animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(16px); opacity: 0; } }
.inbox-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 12px 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.inbox-head h2 { font-size: 17px; font-weight: 650; }
.inbox-actions { display: inline-flex; align-items: center; gap: 2px; }
.inbox-permission { margin: 12px 14px 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-tint); font-size: 13px; color: var(--ink-2); }
.inbox-permission .btn { margin-top: 8px; background: var(--surface); }
.inbox-list { padding: 6px; }
.inbox-list li > button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 11px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; color: var(--ink); }
.inbox-list li > button:hover { background: var(--fill); }
.inbox-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); }
.inbox-icon.kind-assigned { background: var(--accent-tint); color: var(--accent); }
.inbox-icon.kind-due { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.inbox-icon.kind-overdue { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.inbox-icon.kind-completed { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.inbox-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.inbox-title { font-weight: 600; overflow-wrap: anywhere; }
.inbox-list li:not(.unread) .inbox-title { font-weight: 500; color: var(--ink-2); }
.inbox-detail { font-size: 13px; color: var(--ink-2); }
.inbox-time { font-size: 12px; color: var(--ink-4); }
.unread-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #0a84ff; }
.inbox-more { padding: 2px 0 12px; text-align: center; }
.inbox-empty { padding: 48px 20px; text-align: center; color: var(--ink-3); }
.inbox-empty p + p { margin-top: 6px; font-size: 13px; }
@media (max-width: 700px) { .inbox { inset: 0; width: 100vw; max-width: none; border-radius: 0; border: 0; } }

/* Google sign-in */
.btn.google { gap: 10px; background: #fff; border-color: color-mix(in srgb, #1d1d1f 20%, transparent); color: #1f1f1f; box-shadow: var(--shadow); }
.btn.google:hover { background: #f7f8f8; }
.google-mark { width: 18px; height: 18px; flex: none; }
.signin-error { margin-top: 12px; }
.signin-card .footnote { text-align: center; }
.signin-password { margin-top: 18px; border-top: 1px solid var(--hair); font-size: 13px; }
.signin-password > summary { font-weight: 500; color: var(--ink-3); }

/* Task tree */
.tree-tools { display: flex; justify-content: flex-end; gap: 2px; margin: -8px 0 6px; }
.ttree { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.ttree.in-card { border: 0; border-radius: 0; margin: 0 -8px; background: transparent; }
.trow { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) 96px 64px 96px 24px 26px; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 12px; border-top: 1px solid var(--hair-2); font-size: 13.5px; }
.ttree .trow:first-child { border-top: 0; }
.trow[hidden] { display: none; }
.trow:hover { background: var(--surface-2); }
.trow.depth-1 { padding-left: 34px; }
.trow.depth-2 { padding-left: 56px; }
.trow.is-context .ttitle a, .trow.is-context .tstate { color: var(--ink-4); font-weight: 400; }
.ttree.in-card .trow { padding-left: 8px; }
.ttree.in-card .trow.depth-2 { padding-left: 30px; }
.tree-toggle { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; }
.tree-toggle:hover { background: var(--fill); }
.tree-toggle .i { width: 14px; height: 14px; transition: transform .12s; }
.tree-toggle[aria-expanded=true] .i { transform: rotate(90deg); }
.tree-toggle.spacer { cursor: default; background: none; }
.tstate { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tdot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-4); }
.col-doing .tdot { border-color: #0a84ff; background: #0a84ff; }
.col-todo .tdot { border-color: var(--ink-3); }
.col-done .tdot { border-color: var(--green); background: var(--green); }
.col-suggested .tdot { border-style: dashed; }
.col-done .ttitle a { color: var(--ink-3); }
.ttitle { display: flex; flex-direction: column; min-width: 0; }
.ttitle a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.tcontacts { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tprogress, .sub-summary { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
progress { appearance: none; -webkit-appearance: none; width: 46px; height: 4px; border: 0; border-radius: 2px; overflow: hidden; background: var(--fill-2); }
progress::-webkit-progress-bar { background: var(--fill-2); }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.sub-summary { margin-bottom: 8px; }
.sub-summary progress { width: 120px; }
.tdue { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.task-menu .pop { position: fixed; top: 0; right: auto; left: 0; z-index: 40; min-width: 210px; }
.trow .task-menu > summary { opacity: 0; transition: opacity .12s; }
.trow:hover .task-menu > summary, .trow .task-menu[open] > summary, .trow .task-menu > summary:focus-visible { opacity: 1; }
@media (hover: none) { .trow .task-menu > summary { opacity: .8; } }
.kcard-parent { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subcount { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.task-path { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: -14px 0 18px; font-size: 13px; color: var(--ink-3); }
.task-path a { color: var(--ink-3); }
.crumb-sep { color: var(--ink-4); }
@media (max-width: 760px) {
  .trow { grid-template-columns: 22px minmax(0, 1fr) auto 26px; grid-template-areas: "toggle title owner menu" ". state state ."; row-gap: 2px; }
  .trow > .tree-toggle { grid-area: toggle; } .trow > .ttitle { grid-area: title; } .trow > .towner { grid-area: owner; } .trow > .task-menu { grid-area: menu; }
  .trow > .tstate { grid-area: state; }
  .trow > .tprogress, .trow > .tprio, .trow > .tdue { display: none; }
  .trow.depth-1 { padding-left: 24px; } .trow.depth-2 { padding-left: 36px; }
}

/* Work-portal refinements: neutral surfaces, hairlines instead of shadows, color only where it carries meaning. */
:root { --shadow: none; --r-lg: 12px; --bg: #f5f5f7; --side: #ececef; }
@media (prefers-color-scheme: dark) { :root { --shadow: none; --bg: #161618; --side: #1e1e20; --surface: #232325; --surface-2: #2a2a2c; } }
body { font-size: 13.5px; }
.frame { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { padding: 12px 8px 8px; border-right: 1px solid var(--hair-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { padding: 4px 8px 10px; font-size: 13.5px; font-weight: 600; }
.brand img { height: 18px; }
.nav-group { padding-top: 14px; }
.nav-heading { display: flex; align-items: center; gap: 4px; padding: 0 8px 3px; font-size: 11px; font-weight: 600; color: var(--ink-4); }
.nav-item { height: 28px; padding: 0 8px; gap: 8px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.nav-item .i { width: 15px; height: 15px; }
.nav-item.on { background: var(--fill-2); color: var(--ink); font-weight: 500; }
.nav-item.on .i { color: var(--accent); }
.nav-dot { width: 7px; height: 7px; margin: 0 4px; }
.nav-fold > summary { list-style: none; cursor: pointer; border-radius: 6px; }
.nav-fold > summary::-webkit-details-marker { display: none; }
.nav-fold > summary .i { width: 11px; height: 11px; stroke-width: 2.2; transition: transform .12s; }
.nav-fold[open] > summary .i { transform: rotate(90deg); }
.nav-fold > summary:hover { color: var(--ink-2); }
.me { border-top: 1px solid var(--hair-2); }
.side-links { gap: 2px 10px; font-size: 11.5px; }
.content { max-width: 1320px; padding: 26px 32px 80px; }
.page-head { align-items: center; margin-bottom: 18px; }
.page-head h1, .profile h1 { font-size: 22px; font-weight: 600; letter-spacing: -.016em; line-height: 1.2; }
.lede { margin-top: 2px; font-size: 13px; }
.eyebrow { font-size: 11.5px; font-weight: 500; }
.btn { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 500; transition: background-color .12s; }
.btn.sm { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
.btn.secondary { background: var(--surface); }
.btn.tinted { background: var(--fill-2); color: var(--ink); }
.btn.plain { color: var(--ink-2); }
.btn.plain:hover { background: var(--fill); }
.btn.wide { height: 34px; border-radius: 8px; }
.btn .i { width: 14px; height: 14px; }
.search-field, .menu select { height: 28px; border-radius: 7px; font-size: 13px; }
.search-field { flex-basis: 220px; max-width: 300px; }
.side-search .search-field { height: 28px; background: var(--fill-2); }
.toolbar { gap: 8px; margin-bottom: 14px; }
.segmented { padding: 1px; border-radius: 7px; background: var(--fill-2); gap: 0; }
.segmented a { height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); }
.segmented a.on { font-weight: 500; box-shadow: 0 .5px 2px rgba(0, 0, 0, .14); }
.segmented .i { width: 13px; height: 13px; }
/* Avatars and role labels stay neutral, so status and deadlines are what stands out. */
.avatar { background: var(--fill-2); color: var(--ink-2); font-weight: 600; width: 30px; height: 30px; font-size: 11px; }
.avatar.xs { width: 20px; height: 20px; font-size: 8.5px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.chips { gap: 3px 10px; }
.chip { height: auto; padding: 0; gap: 5px; background: none; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.chip.tag { background: none; color: var(--ink-3); font-weight: 400; }
.chip .via { font-size: 11px; }
.tag-suggest .chip { padding: 3px 8px; background: var(--fill); border-radius: 6px; }
.tag-suggest .chip:hover { background: var(--fill-2); }
.pill { height: auto; padding: 0; background: none !important; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pill.prio-high { color: var(--red); } .pill.prio-medium { color: var(--orange); } .pill.prio-low { color: var(--ink-3); font-weight: 400; }
.pill.stage { color: var(--ink-2); } .pill.legacy, .pill.warn { color: var(--warn-ink); } .pill.ai { color: var(--ink-3); }
.table-wrap, .card, .ttree, .contact-card, .stat { border-color: var(--hair-2); }
.card { padding: 16px 18px; margin-bottom: 12px; }
.card-head { margin-bottom: 6px; }
.card-head h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.table thead th { padding: 8px 14px; font-size: 11.5px; font-weight: 500; color: var(--ink-4); border-bottom-color: var(--hair-2); }
.table td, .table tbody th { padding: 9px 14px; }
.name { font-weight: 500; }
.opp-title, .row-title, .task-title { font-weight: 500; }
.group-title { font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
.group-title .count { font-size: 12px; }
.stats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { padding: 9px 12px 10px; border-radius: 9px; }
.stat-n { font-size: 19px; font-weight: 600; }
.stat-l { font-size: 12px; font-weight: 400; }
.stat.on { box-shadow: none; border-color: var(--accent); background: var(--surface); }
.mark { color: var(--ink-2); }
.mark .i { width: 18px; height: 18px; stroke-width: 1.7; }
.banner { padding: 9px 12px; margin-bottom: 12px; font-size: 12.5px; }
.status-strip > span { padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--ink-3); }
.status-strip { gap: 4px 16px; }
.profile { gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.profile-note { font-size: 13px; }
.summary { font-size: 13.5px; margin-bottom: 16px; }
.prose { font-size: 13.5px; }
.detail-grid { gap: 12px; }
/* Task board */
.kboard { gap: 10px; }
.kcol { padding: 0; min-height: 160px; background: none; border: 0; border-radius: 10px; }
.kcol.over { outline: 2px solid var(--accent-ring); outline-offset: 2px; background: none; }
.kcol-head { padding: 0 4px 6px; min-height: 28px; }
.kcol-head h2 { font-size: 12.5px; font-weight: 600; }
.kcol-empty { padding: 16px 8px; }
.kboard:not(.is-dragging) .kcol-empty { visibility: hidden; }
.kcard { padding: 10px 11px; border-color: var(--hair-2); border-radius: 9px; }
.kcard::before { display: none; }
.kcard-title { font-weight: 500; font-size: 13px; }
.kcard-text { font-size: 12px; color: var(--ink-3); -webkit-line-clamp: 2; }
.kcard-who { font-size: 11.5px; }
.who { color: var(--ink-3); }
.kcard-foot { margin-top: 7px; font-size: 11.5px; }
.kcard-foot .pill, .kcard-foot .subcount { font-size: 11.5px; }
.ttree { border-radius: 10px; }
.trow { min-height: 38px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.ttitle a { font-weight: 400; }
.trow.depth-0 .ttitle a { font-weight: 500; }
.tree-tools { margin: -6px 0 4px; }
/* Sheets and menus */
.sheet { border-radius: 12px; }
.sheet-head { padding: 8px 8px 8px 18px; }
.sheet-head h2 { font-size: 14px; font-weight: 600; }
.sheet-body { padding: 14px 18px 0; }
.sheet-foot { margin: 8px -18px 0; padding: 10px 18px 12px; }
.sheet-note { font-size: 12.5px; }
.field { margin-bottom: 12px; gap: 4px; }
.field > span { font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea, .link-search, .signin input { min-height: 30px; padding: 5px 9px; border-radius: 6px; font-size: 13px; }
.pop { padding: 4px; border-radius: 9px; min-width: 200px; }
.pop button, .pop a { padding: 5px 8px; border-radius: 5px; font-size: 13px; gap: 8px; }
.pop .i { width: 14px; height: 14px; }
.signin-card { padding: 30px 28px 24px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .1); }
.signin-card h1 { font-size: 20px; font-weight: 600; margin-top: 14px; }
.btn.google { box-shadow: none; }
.toast { border-radius: 9px; padding: 8px 14px; font-size: 13px; }
@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 16px 14px 80px; }
  .sidebar { background: var(--side); }
}
@media (max-width: 700px) {
  .search-field { max-width: none; flex-basis: 100%; }
  .contacts-table td[data-label="Roles"] { padding-left: 42px; }
  .contacts-table td.last, .contacts-table td[data-label="Owner"], .contacts-table td[data-label="Next contact"] { padding-left: 42px; }
}
.toolbar .segmented:first-child { margin-left: 0; }
.trow { grid-template-columns: 22px minmax(0, 1fr) 92px 96px 60px 92px 24px 26px; }
@media (max-width: 760px) { .trow { grid-template-columns: 22px minmax(0, 1fr) auto 26px; } }
.table .due { white-space: nowrap; }
.task-notes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair-2); color: var(--ink-2); }
.task-links { margin: 2px 4px; }
.task-links a { color: var(--ink-3); }
