/* Tyde: Tyde & Partners house style (the new look, 0.55). A black sidebar, white cards on light grey; teal for everything
   clickable or positive; magenta for attention only (overdue, going cold, errors, confidential, the key-contact star,
   the line under the active tab). Sentence case everywhere; only the sidebar's group labels are in capitals. */

/* Roboto (SIL Open Font License, see /fonts/Roboto-OFL.txt; the files of @fontsource/roboto 5.2.5), served from this site:
   the typeface of the app. */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(/fonts/roboto-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(/fonts/roboto-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/fonts/roboto-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/fonts/roboto-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: Roboto; font-weight: 600; font-display: swap; src: url(/fonts/roboto-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Roboto; font-weight: 600; font-display: swap; src: url(/fonts/roboto-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(/fonts/roboto-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(/fonts/roboto-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }

:root {
  /* Brand: black (the sidebar and text), teal for everything clickable or positive, magenta for attention only */
  --black: #0b0b0f;
  --primary: #007d5e; --primary-dark: #00634a; --primary-soft: #e6f4ef; --primary-mid: #7fc4ad; --primary-ink: #ffffff; /* teal; -ink: text on a teal or magenta fill */
  --on-dark-link: #5fd6b4; --chip-ink: var(--primary-dark);
  --magenta: #e5007e; --magenta-soft: #fde6f2; --magenta-ink: #b0005f; /* -ink: magenta as small text */
  /* Surfaces (Paper): the page, cards, a card's border (--line), hairlines inside a card (--hair), neutral tints */
  --bg: #f3f3f4; --panel: #ffffff; --ink: #0b0b0f; --muted: #55565f; --line: #d9d9de; --hair: #ececee; --field: #d9d9de;
  --hover: #f7f7f8; --neutral: #ececee; --weak: #c6c7ce;
  /* The black surfaces: the sidebar, the name menu, the sign-in page, the Introduction's stages */
  --head: #0b0b0f; --head-ink: #ffffff; --head-muted: #a9aec0; --head-line: #26262f; --side-ink: #e4e4e8;
  /* Meaning */
  --strong: var(--primary); --medium: var(--primary-mid);
  --avatar: var(--neutral); --avatar-ink: var(--ink);
  --info-bg: var(--neutral); --info-ink: var(--ink);
  --err-bg: var(--magenta-soft); --err-ink: var(--magenta-ink);
  --ok-bg: var(--primary-soft); --ok-ink: var(--chip-ink);
  /* Heatmaps (Client pulse): none → busiest */
  --heat-0: #ececee; --heat-1: #cfe9df; --heat-2: #7fc4ad; --heat-3: #2f9a7c; --heat-4: #00634a;
  --radius: 10px; --radius-s: 8px; /* cards and panels; buttons, fields and small tiles. Pills are 999px. */
  --top: 16px; --sticky: 0px; /* where a linked section lands, and where a sticky bar sticks: below the phone's top bar */
  --sans: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: var(--sans); /* nothing is condensed any more (a condensed typeface until 0.55) */
  font-family: var(--sans);
  color-scheme: light;
  accent-color: var(--primary);
}
/* Dark: chosen with the Paper/Dark switch (data-theme on <html>), or following the computer when nothing is chosen.
   Dark neutral surfaces; teal and magenta lighter, so they pass as text. The two blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]) {
    --primary: #25a886; --primary-dark: #3cc09d; --primary-soft: #12302a; --primary-mid: #2b6b58; --primary-ink: #0b0b0f; --chip-ink: #7fe0c2;
    --magenta: #ff4fa3; --magenta-soft: #3b0d25; --magenta-ink: #ff86bf;
    --bg: #111114; --panel: #1b1b20; --ink: #f1f2f6; --muted: #a3a7b5; --line: #34343d; --hair: #28282f; --field: #45454f;
    --hover: #222228; --neutral: #2a2a31; --weak: #45464f;
    --head: #000000; --head-line: #1d1d26;
    --heat-0: #2a2a31; --heat-1: #123a30; --heat-2: #1f6b55; --heat-3: #25a886; --heat-4: #7fe0c2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --primary: #25a886; --primary-dark: #3cc09d; --primary-soft: #12302a; --primary-mid: #2b6b58; --primary-ink: #0b0b0f; --chip-ink: #7fe0c2;
  --magenta: #ff4fa3; --magenta-soft: #3b0d25; --magenta-ink: #ff86bf;
  --bg: #111114; --panel: #1b1b20; --ink: #f1f2f6; --muted: #a3a7b5; --line: #34343d; --hair: #28282f; --field: #45454f;
  --hover: #222228; --neutral: #2a2a31; --weak: #45464f;
  --head: #000000; --head-line: #1d1d26;
  --heat-0: #2a2a31; --heat-1: #123a30; --heat-2: #1f6b55; --heat-3: #25a886; --heat-4: #7fe0c2;
  color-scheme: dark;
}
@media (max-width: 860px) { :root { --top: 72px; --sticky: 56px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* Links: teal, underlined on hover; underlined in running text. Written with :where() so any component's own rule wins. */
:where(a) { color: var(--primary); text-decoration: none; }
:where(a:hover) { text-decoration: underline; }
:where(p a, .prose a, .doc-body a) { text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
main { max-width: 1240px; margin: 0 auto; padding: 20px 24px 72px; }
main.wide { max-width: 1520px; } /* the Contacts and Companies lists (0.42): more room on a large screen */
h1 { font-weight: 600; font-size: 26px; line-height: 1.2; margin: 4px 0 16px; }
h2 { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0; }
h3 { font-weight: 600; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* The shell (0.55): a black sidebar with every page as a link (header.side), the page to its right (.page) with the search
   box above the content (further down: "The search box"). Signed out: a slim black strip (header.top-strip). The list of
   pages is a <details> that arrives open; on a phone the sidebar is a slim bar and its summary, the Menu button, opens
   the list (public/app.js closes it there at the start). */
header.side { position: fixed; inset: 0 auto 0 0; z-index: 6; width: 248px; overflow-y: auto; overscroll-behavior: contain; background: var(--head); color: var(--side-ink); }
header.top-strip { display: flex; align-items: center; min-height: 56px; padding: 0 24px; background: var(--head); }
.has-side .page { margin-left: 248px; }
.brand { display: flex; align-items: center; height: 64px; padding: 0 24px; text-decoration: none; }
header.top-strip .brand { height: 56px; padding: 0; }
.brand img { display: block; height: 30px; width: auto; }
.brand .beta { align-self: flex-start; margin: 16px 0 0 8px; padding: 0 6px; font-weight: 600; font-size: 12px; line-height: 16px; color: #ffffff; border: 1px solid var(--head-muted); border-radius: 999px; }
.side-nav > summary { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 7px 12px; border: 1px solid #45454f; border-radius: var(--radius-s);
  color: #ffffff; font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; user-select: none; }
.side-nav > summary::-webkit-details-marker { display: none; }
.side-nav[open] > summary { background: var(--head-line); }
@media (min-width: 861px) { .side-nav[open] > summary { display: none; } } /* a wide screen: the list is always open */
.side-body { display: flex; flex-direction: column; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); padding: 0 12px 12px; }
.side-group { display: grid; gap: 2px; margin-bottom: 14px; }
.side-label { margin: 6px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--head-muted); }
.side-group > a, .notices-link { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius-s); color: var(--side-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.side-group > a svg, .side-nav > summary svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-group > a:hover, .notices-link:hover { background: var(--head-line); color: #ffffff; }
.side-group > a.on, .notices-link.on { background: #f3f3f4; color: #0b0b0f; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--head-line); }
.side-foot .pill.running { justify-self: start; margin-left: 12px; }
.side-user > summary { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-s); color: var(--side-ink); }
.side-user > summary:hover, .side-user[open] > summary, .side-user > summary.on { background: var(--head-line); color: #ffffff; }
.side-user > summary .avatar { background: #34343f; color: #ffffff; }
.side-who { flex: 1; display: grid; min-width: 0; line-height: 1.25; }
.side-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who small { font-size: 12px; color: var(--head-muted); }
.side-caret { font-size: 12px; color: var(--head-muted); }
@media (max-width: 860px) {
  header.side { position: sticky; inset: 0 auto auto; width: auto; height: 56px; overflow: visible; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
  header.top-strip { padding: 0 16px; }
  .has-side .page { margin-left: 0; }
  .brand { height: 56px; padding: 0; }
  .brand .beta { margin-top: 12px; }
  .side-nav > summary { margin: 0; }
  .side-body { position: absolute; left: 0; right: 0; top: 56px; min-height: 0; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 12px 16px; background: var(--head); border-top: 1px solid var(--head-line); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35); }
  html.js .side-nav:not([data-ready]) > .side-body { display: none; } /* no flash of the open list before app.js closes it */
  .side-foot { margin-top: 4px; }
}
form { margin: 0; display: inline; }

/* Buttons: teal (primary), white with a grey border (.quiet), magenta text (.ghost, .danger) */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--primary-ink); border: 1px solid var(--primary); padding: 8px 16px; border-radius: var(--radius-s);
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.3; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--primary-ink); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.quiet { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--err-ink); border-color: transparent; margin-top: 12px; }
.btn.ghost:hover { background: var(--err-bg); color: var(--err-ink); border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: progress; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
button.link:hover { color: var(--primary); }
button.link.danger { color: var(--err-ink); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.running { background: var(--primary-soft); color: var(--chip-ink); }

/* Messages: ok on a teal tint, information on grey, errors on a magenta tint */
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; flex-wrap: wrap; }
.banner.info { background: var(--info-bg); color: var(--info-ink); }
.banner.error { background: var(--err-bg); color: var(--err-ink); }
.banner.ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.banner .btn.small { margin-left: auto; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.synced { margin: 0 0 4px; font-size: 13px; }

/* Number tiles: white, a grey label, the number */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi b { font-size: 26px; font-weight: 600; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13px; }

/* Cards: white panels; the title on a hairline, its links teal, its buttons small and quiet */
.grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Cards stacked straight under each other on a page (the Experience pages): the usual gap. :where keeps the weight low,
   so a later rule such as .growth-card + .card still wins. */
:where(main) > .card + .card, :where(main) > form:has(> .card) + .card, :where(main) > .card + form:has(> .card) { margin-top: 18px; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; min-height: 48px; }
.card > header a { font-size: 13px; font-weight: 600; }
.card > header small, .card > header .muted { color: var(--muted); }
.card > header .btn { padding: 4px 12px; font-size: 13px; background: var(--panel); color: var(--ink); border-color: var(--line); }
.card > header .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.pad { padding: 14px 16px; margin: 0; }
.prose { padding: 6px 20px 20px; }
.prose h2 { margin: 18px 0 8px; }
.prose ul { padding-left: 18px; }
.prose li { margin: 4px 0; }
.prose table { margin-top: 8px; }
.foot { margin-top: 20px; font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; position: relative; } /* relative: hidden screen-reader text (.sr) in a wide table stays inside, so a phone's page doesn't scroll sideways */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
th a { color: inherit; text-decoration: none; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* People */
.person { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.person b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.person small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.person:hover b { color: var(--primary); }
/* People: a round grey tile with initials. Companies: a rounded square on the teal tint (or their logo, further down). */
.avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--avatar); color: var(--avatar-ink); font-size: 13px; font-weight: 600; }
.avatar.big { width: 72px; height: 72px; font-size: 26px; }
.avatar.co { background: var(--primary-soft); color: var(--chip-ink); border-radius: var(--radius-s); }

/* Strength (0.54): five rising bars, filled up to the score's step; the level and score on hover. */
.strength { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; vertical-align: -2px; }
.strength i { display: block; width: 4px; background: var(--line); }
.strength i:nth-child(1) { height: 4px; } .strength i:nth-child(2) { height: 6.5px; } .strength i:nth-child(3) { height: 9px; }
.strength i:nth-child(4) { height: 11.5px; } .strength i:nth-child(5) { height: 14px; }
.strength.b1 i:nth-child(-n+1), .strength.b2 i:nth-child(-n+2), .strength.b3 i:nth-child(-n+3), .strength.b4 i:nth-child(-n+4), .strength.b5 i { background: var(--primary); }
.strength.big { height: 24px; gap: 3px; vertical-align: -3px; }
.strength.big i { width: 6px; }
.strength.big i:nth-child(1) { height: 7px; } .strength.big i:nth-child(2) { height: 11px; } .strength.big i:nth-child(3) { height: 15.5px; }
.strength.big i:nth-child(4) { height: 20px; } .strength.big i:nth-child(5) { height: 24px; }
.s-strong { background: var(--strong); } .s-medium { background: var(--medium); } .s-weak, .s-none { background: var(--weak); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.list li:last-child { border-bottom: 0; }
.list li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .muted { flex: none; font-size: 13px; }

/* Search, filters, tabs */
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input[type=search], .toolbar select { padding: 9px 12px; font-size: 15px; }
.toolbar input[type=search] { flex: 1; min-width: 220px; }
.tabs { display: flex; gap: 0; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; padding: 9px 14px; color: var(--muted); font-weight: 500; font-size: 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--magenta); }
.tabs small { opacity: 0.75; margin-left: 4px; font-weight: 500; font-size: 13px; }

/* Contact page */
.profile { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.profile h1 { margin: 0; }
.profile p { margin: 4px 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); margin-right: 6px; color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--chip-ink); background: var(--primary-soft); border-color: transparent; }
.badge.warn { color: var(--magenta-ink); background: var(--magenta-soft); border-color: transparent; }


/* Sign-in and empty states */
.hero { max-width: 640px; margin: 56px auto; padding: 44px 44px 40px; background: var(--head); color: var(--head-ink); border-radius: var(--radius); position: relative; }
.hero::before { content: ''; position: absolute; left: 44px; top: 0; width: 56px; height: 4px; background: var(--magenta); }
.hero .eyebrow { display: block; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.hero h1 { font-size: 46px; margin: 0 0 14px; }
.hero p { font-size: 16px; color: #d4d7e2; }
.hero .muted { color: var(--head-muted); }
.hero code { background: #1c1c25; border-color: #2c2c37; color: #fff; }
.hero a:not(.btn) { color: var(--on-dark-link); }
.hero .btn { margin: 8px 0 6px; }
.hero .btn:hover { background: #fff; border-color: #fff; color: var(--black); }
.empty { max-width: 640px; margin: 56px auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.empty p { font-size: 16px; }
.err { text-align: left; white-space: pre-wrap; background: var(--err-bg); color: var(--err-ink); padding: 12px; border-radius: 6px; font-size: 13px; }

/* The name menu (your name at the bottom of the sidebar): a black panel that opens upwards; in the phone's Menu, in place */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; user-select: none; }
details.menu > summary::-webkit-details-marker { display: none; }
/* 0.55.2: a light panel, so it stands out from the black menu behind it (the --head-* names are re-pointed for everything inside). */
.menu-panel { --head: var(--panel); --head-ink: var(--ink); --head-muted: var(--muted); --head-line: var(--line);
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); padding: 6px; z-index: 10; display: grid; align-content: start;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; } /* a long menu scrolls inside itself (0.32.1) */
.menu-user { display: grid; gap: 1px; padding: 6px 10px 10px; border-bottom: 1px solid var(--head-line); margin-bottom: 4px; }
.menu-user small { color: var(--head-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.menu-user .role { justify-self: start; margin-top: 4px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--head-muted); color: var(--head-ink); font-size: 12px; font-weight: 600; }
/* One line per entry with a small icon; the hint is the tooltip (0.49.1). */
.menu-panel > a.mi { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--radius-s); text-decoration: none; color: var(--head-ink); font-size: 14px; font-weight: 500; }
.menu-panel > a.mi svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--head-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-panel > a.mi:hover, .menu-panel > a.mi.on { background: var(--bg); color: var(--ink); }
/* Dark: a step lighter than the cards, so the panel still stands out from the black menu. */
:root[data-theme="dark"] .menu-panel { --head: #2a2a34; --head-line: #41414d; background: #2a2a34; border-color: #4f4f5c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="paper"]) .menu-panel { --head: #2a2a34; --head-line: #41414d; background: #2a2a34; border-color: #4f4f5c; } }
:root[data-theme="dark"] .menu-panel > a.mi:hover, :root[data-theme="dark"] .menu-panel > a.mi.on { background: #3a3a46; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="paper"]) .menu-panel > a.mi:hover, :root:not([data-theme="paper"]) .menu-panel > a.mi.on { background: #3a3a46; } }

.menu-panel > a.mi:hover svg, .menu-panel > a.mi.on svg { stroke: var(--ink); }
.menu-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px 2px; border-top: 1px solid var(--head-line); margin-top: 4px; }
.menu-actions button.link { color: var(--head-muted); }
.menu-actions button.link:hover { color: var(--ink); }
@media (max-width: 860px) { .menu-panel { position: static; max-height: none; margin-top: 4px; box-shadow: none; } }

/* Marketing lists; on the contact page a card of its own (0.43) */
.lists-card .card-body { display: grid; gap: 12px; padding-top: 14px; }
.lists-card .list-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lists-card .chip { margin: 0; padding: 3px 8px; }
.chip.list-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--neutral); color: var(--ink); }
.chip.list-chip form { display: inline-flex; }
.list-chip a { text-decoration: none; color: inherit; }
.list-chip a:hover { color: var(--primary); text-decoration: underline; }
.list-chip button.link { padding: 0 0 0 5px; font-size: 15px; line-height: 1; text-decoration: none; color: var(--muted); }
.list-chip button.link:hover { color: var(--ink); }
form.list-add { display: flex; flex-wrap: wrap; gap: 8px; }
form.list-add select { flex: 1; min-width: 0; }
form.list-add input[data-list-new] { order: 1; flex: 1 0 100%; }
.list-pick { display: flex; gap: 8px; }
.list-pick select { flex: 1; }

/* Sources, admin */
section.connect .btn + .btn { margin-left: 8px; }
td.detail { white-space: normal; max-width: 280px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
table.audit td.detail { max-width: none; min-width: 300px; width: 50%; }
.audit-filter { margin-bottom: 0; align-items: center; border-bottom: 1px solid var(--hair); }
.audit-filter label { display: flex; align-items: center; gap: 8px; }
#audit { scroll-margin-top: var(--top); margin-bottom: 18px; }
#audit .pager { padding: 12px 16px; }
.backup-error { color: var(--magenta-ink); font-weight: 600; }
.auto-backups { margin: 0 -16px; }
#restore .result { margin: 8px 0 0; font-size: 14px; }
td.row-actions { display: table-cell; }
td.row-actions > * { margin-right: 8px; }

/* Contact and company cards */
.card-body { padding: 4px 16px 14px; }
.card-section h3 { font-size: 14px; color: var(--ink); margin: 16px 0 8px; font-weight: 600; }
.card-section dl { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 7px 12px; margin: 0; }
.card-section dt { color: var(--muted); font-size: 14px; }
.card-section dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card-section dd a { color: var(--primary); }
.card-section dd small.sali { display: block; font-size: 12px; margin-top: 2px; }
.pre { white-space: pre-wrap; }
form.card-form { display: grid; gap: 4px; padding: 6px 16px 18px; }
form.card-form fieldset { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
form.card-form legend { font-size: 14px; color: var(--ink); font-weight: 600; padding: 0; margin-bottom: 6px; }
form.card-form label { display: grid; gap: 4px; font-size: 14px; }
form.card-form label > span { color: var(--muted); }
form.card-form input, form.card-form select, form.card-form textarea { width: 100%; font-size: 15px; }
.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.card.narrow { max-width: 640px; }

/* People, import, duplicates */
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--hover); border-bottom: 1px solid var(--hair); }
.bulkbar [data-count] { margin-right: auto; font-size: 14px; font-weight: 600; }
.bulk-form .bulkbar [data-count] { margin-right: 4px; }
.bulk-form .bulkbar .bulk-actions { margin-right: auto; }
.bulkbar input[name=tag] { width: 160px; }
th.sel, td.sel { width: 34px; padding-right: 0; }
form.card { display: block; }
td.reason { white-space: normal; min-width: 180px; max-width: 260px; font-size: 13px; color: var(--muted); }
.marking { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 6px 0 0; font-size: 14px; }
.marking button.link { padding: 0; font-size: 14px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.title-row h1 { margin-bottom: 16px; }
.group-title h1 { margin-bottom: 2px; }
.group-title .sub { margin: 0 0 14px; font-size: 18px; font-weight: 500; color: var(--muted); }
.how-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--neutral); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; }
.chip { display: inline-block; font-size: 13px; font-weight: 500; padding: 1px 9px; margin: 0 4px 2px 0; border-radius: 999px; background: var(--primary-soft); color: var(--chip-ink); text-decoration: none; white-space: nowrap; }
a.chip:hover { background: var(--primary); color: var(--primary-ink); }
td.tags { white-space: normal; max-width: 220px; }
.person .more { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; }
a.co { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
a.co b { font-weight: 600; }
a.co small { color: var(--muted); font-size: 13px; }
a.co:hover b { color: var(--primary); }
.list.emails li > span:first-child { white-space: normal; word-break: break-all; }
.row-actions { display: flex; gap: 10px; flex: none; }
.row-actions button.link { font-size: 13px; padding: 0; }
.inline-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hair); }
#merge .inline-form { border-top: 0; padding-top: 0; }
#ai-tools .inline-form { padding-left: 0; padding-right: 0; border-top: 0; }
#ai-tools code, .ai-key { white-space: normal; word-break: break-all; }
.ai-key { display: block; padding: 8px 10px; font-size: 13px; user-select: all; }
.list.results li { gap: 8px; }
.list.results:empty { display: none; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--field); border-radius: var(--radius-s); padding: 8px 10px; }
input:not([type=radio]):not([type=checkbox]):not([type=file]):focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
input[type=checkbox] { width: 16px; height: 16px; }
.inline-form input { flex: 1; min-width: 0; }
form.details { display: grid; gap: 10px; padding: 14px 16px; }
form.details label, label.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
form.details label input, form.details textarea, label.field input { width: 100%; color: var(--ink); font-size: 15px; }
form.details .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form.details button { justify-self: start; }
label.field { max-width: 420px; margin: 8px 0; }
label.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
table.map td { white-space: normal; }
table.map select { min-width: 200px; max-width: 100%; }
table.map td.ex { color: var(--muted); font-size: 13px; max-width: 260px; overflow-wrap: anywhere; }
#import input[type=file] { margin: 4px 0 12px; }
.skipped { font-size: 13px; color: var(--muted); max-height: 240px; overflow: auto; }
form.card.dup { display: block; margin-bottom: 18px; }
form.card.dup > footer { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--hair); }
form.card.dup td small { white-space: normal; }

@media (max-width: 860px) {
  main { padding: 24px 16px 64px; }
  h1 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  form.details .two { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px 30px; margin: 24px auto; }
  .hero::before { left: 24px; }
  .hero h1 { font-size: 38px; }
}

/* Website enrichment */
.lead { max-width: 820px; }
.enrich-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 18px; }
.review-bar { position: sticky; top: var(--sticky); z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); }
.review-bar > span { margin-right: auto; }
.enrich-group { margin-bottom: 16px; }
.group-tools { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.group-tools label.check { margin: 0; color: var(--muted); font-size: 13px; }
/* The table keeps a readable width and scrolls sideways inside its box (.table-wrap) rather than crushing columns. */
table.suggestions { min-width: 860px; }
table.suggestions td { white-space: normal; vertical-align: top; }
table.suggestions td.who-cell { min-width: 170px; }
table.suggestions td.field { white-space: nowrap; }
table.suggestions .badge { white-space: nowrap; display: inline-block; }
table.suggestions td.who-cell small { display: block; font-size: 12px; }
table.suggestions .person-link { color: var(--ink); text-decoration: none; }
table.suggestions td.val { min-width: 150px; max-width: 300px; overflow-wrap: break-word; }
table.suggestions td.new { font-weight: 600; }
table.suggestions td.new .badge { margin: 2px 0 0 4px; font-weight: 600; }
table.suggestions td.src { font-size: 12px; width: 200px; max-width: 220px; }
/* A long address is shortened with … on one line; the whole address is in the link's title. */
table.suggestions td.src a.url { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
table.suggestions td.src a { color: var(--muted); }
table.suggestions tr.kind-differs td.new, table.suggestions tr.kind-flag td.new { color: var(--muted); }
.clip { font-weight: 400; }
.filter-note { margin: 0 0 14px; }
.web-note { margin-top: 10px; }
.web-note a { color: var(--muted); }
@media (max-width: 860px) { .enrich-top { grid-template-columns: 1fr; } }


/* Campaigns (0.94): the rates that matter with a thin bar, how each did as flames, and one campaign's page. */
.campaigns-table td.n small { margin-left: 4px; }
/* Fixed columns: the name takes what is left and wraps, so the rates and the flames are always in view. */
.campaigns-table { table-layout: fixed; width: 100%; min-width: 960px; }
.campaigns-table col.c-sent { width: 104px; } .campaigns-table col.c-lists { width: 172px; } .campaigns-table col.c-n { width: 84px; }
.campaigns-table col.c-rate { width: 136px; } .campaigns-table col.c-hot { width: 100px; }
.campaigns-table th, .campaigns-table td { padding-left: 10px; padding-right: 10px; vertical-align: top; }
.campaigns-table td.camp-what { white-space: normal; overflow-wrap: break-word; }
.campaigns-table td.camp-what small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaigns-table td.camp-lists { color: var(--muted); font-size: 13px; line-height: 1.35; white-space: normal; }
.campaigns-table td.camp-lists span, .campaigns-table td.camp-lists a.more { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaigns-table td.camp-lists span + span, .campaigns-table td.camp-lists a.more { margin-top: 3px; }
.campaigns-table td.camp-lists a.more { color: var(--primary); }
.camp-rate { display: inline-grid; grid-template-columns: 40px 36px auto; align-items: center; column-gap: 6px; white-space: nowrap; }
.camp-rate b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.camp-rate .meter { width: 36px; }
.camp-rate small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.flames { display: inline-flex; gap: 1px; font-size: 16px; line-height: 1; cursor: default; white-space: nowrap; }
.flames .unlit { filter: grayscale(1); opacity: .22; }
.camp-title .flames { font-size: 22px; }
.camp-kpis { grid-template-columns: repeat(6, 1fr); }
.camp-kpis.four { grid-template-columns: repeat(4, 1fr); }
.camp-kpis .kpi b { font-size: 24px; }
.camp-kpis .kpi em { font-style: normal; font-weight: 600; white-space: nowrap; }
.camp-kpis .kpi em.up { color: var(--chip-ink); }
.camp-kpis .kpi em.down { color: var(--magenta-ink); }
.camp-best { font-size: 16px; line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.camp-best:hover { color: var(--primary); }
/* The email as it was sent: on a quiet stage, at the width of an email, always on white (an email brings its own colours). */
.camp-email { overflow: hidden; }
/* Firm settings: the pictures switch, set apart from the connection on the same card. */
.ems-pictures { border-top: 1px solid var(--hair); }
.camp-stage { background: var(--neutral); padding: 20px 16px; }
.camp-frame { display: block; width: 100%; max-width: 760px; margin: 0 auto; height: 80vh; min-height: 520px; border: 0; background: #fff; border-radius: var(--radius-s); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 900px) { .camp-kpis, .camp-kpis.four { grid-template-columns: repeat(2, 1fr); } .camp-stage { padding: 0; } .camp-frame { border-radius: 0; } }
/* Dashboard: engagement trend */
.section-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.section-head h2 { font-size: 18px; }
.section-head .seg { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-s); overflow: hidden; }
.seg a { padding: 5px 12px; text-decoration: none; font-weight: 500; font-size: 13px; color: var(--muted); }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--primary-soft); color: var(--chip-ink); font-weight: 600; }
.seg a:not(.on):hover { color: var(--ink); }
.grid.halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.trend { margin-bottom: 26px; }
.trend-key { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.trend-key i { display: inline-block; width: 14px; height: 6px; margin-left: 6px; }
.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
/* Every row has the same columns (0.39): no column sized by its text, so the bars line up from row to row. */
.trend-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(56px, 27%) 8.75rem; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--hair); min-height: 58px; box-sizing: border-box; }
.trend-row:last-child { border-bottom: 0; }
.trend-row a.co { min-width: 0; }
.trend-row a.co b, .trend-row a.co small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-bars { display: grid; gap: 3px; padding: 4px 0; cursor: default; }
.tb { display: block; height: 6px; min-width: 3px; max-width: 100%; border-radius: 0 2px 2px 0; }
.tb.zero { min-width: 0; visibility: hidden; }
.tb.before { background: var(--weak); }
.tb.now.up { background: var(--primary); }
.tb.now.down { background: var(--magenta); }
.trend-num { display: grid; justify-items: end; text-align: right; min-width: 0; }
.trend-num b { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.trend-num small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.trend-num small.was { opacity: 0.8; }
.section-head h2 .info { margin-left: 6px; vertical-align: 3px; }
@media (max-width: 860px) { .grid.halves { grid-template-columns: 1fr; } .section-head .seg { margin-left: 0; } }
/* A narrow card (a small laptop or a phone): the bars go under the company name. */
@container (max-width: 520px) {
  .trend-row { grid-template-columns: minmax(0, 1fr) 8rem; row-gap: 6px; }
  .trend-bars { grid-column: 1; grid-row: 2; padding: 0 0 2px 42px; }
  .trend-num { grid-row: 1 / span 2; grid-column: 2; }
}

/* Dashboard sections (0.39): two cards side by side, the same height, the same space between rows of cards. */
.grid.dash-row { align-items: stretch; margin-bottom: 26px; }
.grid.dash-row > :only-child { grid-column: 1 / -1; }
.grid.dash-row > .card { display: flex; flex-direction: column; container-type: inline-size; }
/* A link to a section (#upcoming, back from a note to #past-meetings) lands a little below the top (below the top bar on a phone). */
.section-head, .grid.dash-row > .card { scroll-margin-top: var(--top); }
/* The rows of a card share their columns (subgrid), so names, numbers and buttons line up from row to row. */
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 12px; }
.dash-list > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 6px; padding: 9px 16px; border-bottom: 1px solid var(--hair); min-height: 58px; box-sizing: border-box; }
.dash-list > li:last-child { border-bottom: 0; }
.dash-num { display: grid; justify-items: end; text-align: right; min-width: 0; cursor: default; }
.dash-num b { font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-num small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dash-actions { display: contents; }
.dash-actions form { margin: 0; }
.dash-actions .btn.small { padding: 3px 10px; white-space: nowrap; justify-self: end; }
/* Contacts going cold: who and where | how long it's been quiet | Reconnect | Outdated? */
.dash-list.cold { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.cold-row .reconnect { grid-column: 3; }
.cold-row .cold-outdated { grid-column: 4; }
.cold-row .person b, .cold-row .person small { white-space: nowrap; }
/* Meetings: when | who and their companies | Outlook | note | Not needed */
.dash-list.meetings { grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) auto auto auto; }
.meet-row .open-link { grid-column: 3; }
.meet-row .note { grid-column: 4; justify-self: end; }
.meet-row form { grid-column: 5; }
.meet-when { display: grid; min-width: 0; }
.meet-when b { font-size: 16px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.meet-when small, .meet-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-who { display: grid; min-width: 0; }
.meet-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-who a { color: var(--ink); text-decoration: none; }
.meet-who a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.meet-who .more { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 400; color: var(--muted); }
.meet-row.waiting { box-shadow: inset 3px 0 0 var(--primary); }
.meet-row .logged { color: var(--primary); font-size: 13px; white-space: nowrap; cursor: default; }
.meet-row .open-link { font-size: 13px; }
/* A narrow card (two cards side by side on a small screen, or a phone): the buttons go on a line of their own. */
@container (max-width: 500px) {
  .dash-list.cold { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-list.meetings { grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr); }
  .cold-row .dash-actions, .meet-row .dash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .cold-row .dash-actions { grid-column: 1 / -1; padding-left: 43px; }
  .meet-row .dash-actions { grid-column: 2; }
}
/* Dashboard insights (0.50). Tiles: the comparison and sparkline under the number. */
.kpi-trend { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 13px; line-height: 1.3; }
.kpi-trend > span { flex: 1; min-width: 0; }
.kpi-trend em { font-style: normal; font-weight: 600; white-space: nowrap; }
.kpi-trend em.up { color: var(--chip-ink); }
.kpi-trend em.down { color: var(--magenta-ink); }
.kpi-trend em.flat { color: var(--ink); }
.spark { flex: none; width: 76px; height: 24px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--primary); }
/* Client pulse: client | 12 weekly squares | last contact | colleagues | trend | Plan a call */
.pulse-card { margin-bottom: 26px; scroll-margin-top: var(--top); }
.pulse th, .pulse td { padding: 8px 10px; vertical-align: middle; }
.pulse th:first-child, .pulse td:first-child { padding-left: 16px; }
.pulse th:last-child, .pulse td:last-child { padding-right: 16px; text-align: right; }
.pulse td:first-child { width: 100%; max-width: 0; min-width: 9.5rem; }
.pulse a.co { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.pulse a.co > span { display: grid; min-width: 0; }
.pulse a.co b, .pulse a.co small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse a.co small { color: var(--muted); font-size: 12px; }
.pulse a.co:hover b { color: var(--primary); }
.heat { display: flex; gap: 3px; }
.heat i, .heat-key i { display: block; width: 13px; height: 18px; border-radius: 2px; background: var(--heat-0); }
.heat i.h0, .heat-key i.h0 { box-shadow: inset 0 0 0 1px var(--line); }
.heat .h1, .heat-key .h1 { background: var(--heat-1); }
.heat .h2, .heat-key .h2 { background: var(--heat-2); }
.heat .h3, .heat-key .h3 { background: var(--heat-3); }
.heat .h4, .heat-key .h4 { background: var(--heat-4); }
.heat-key { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.heat-key i { width: 11px; height: 11px; }
.heat-key i:first-of-type { margin-left: 4px; }
.heat-key i:last-of-type { margin-right: 4px; }
.pulse-only { color: var(--magenta-ink); font-weight: 600; cursor: help; }
.pulse-trend { font-weight: 600; cursor: default; }
.pulse-trend.up { color: var(--chip-ink); }
.pulse-trend.steady { color: var(--muted); font-weight: 500; }
.pulse-trend.down, .pulse-trend.cold { color: var(--magenta-ink); }
/* Meetings over time and New to your network */
.big-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; }
.big-stats > div { display: grid; }
.big-stats b { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-stats small { color: var(--muted); font-size: 13px; }
.big-stats .up { color: var(--chip-ink); font-weight: 600; }
.big-stats .down { color: var(--magenta-ink); font-weight: 600; }
.month-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; border-bottom: 1px solid var(--hair); padding: 0 2px; }
.mb-group { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; cursor: default; }
.mb { display: block; width: 42%; max-width: 12px; border-radius: 3px 3px 0 0; }
.mb-group .mb { min-height: 1px; }
.mb.now { background: var(--primary); }
.mb.before { background: var(--weak); }
.mb.now.so-far { background: repeating-linear-gradient(135deg, var(--primary) 0 3px, var(--primary-mid) 3px 6px); }
.trend-key i.mb { width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.month-names { display: flex; gap: 4px; padding: 4px 2px 0; color: var(--muted); font-size: 11px; }
.month-names span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
#meetings-over-time p.small { margin: 12px 0 0; }
.fresh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.fresh-head .big-stats { margin-bottom: 0; }
.week-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.week-bars i { display: block; width: 9px; border-radius: 2px 2px 0 0; background: var(--primary-mid); cursor: default; }
.week-bars i.now { background: var(--primary); }
.dash-list.newcomers { grid-template-columns: minmax(0, 1fr) auto auto; }
.dash-list.newcomers .person small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list.newcomers .person b { overflow-wrap: anywhere; }
.dash-list.newcomers .person b .badge { margin-left: 4px; vertical-align: 1px; }
@container (max-width: 500px) {
  .dash-list.newcomers { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-list.newcomers .dash-actions { display: flex; grid-column: 1 / -1; padding-left: 43px; }
}
@media (max-width: 600px) {
  .month-names span:nth-child(even) { visibility: hidden; }
  /* Narrow tiles: the change and the sparkline on one line, the words under them. */
  .kpi-trend { flex-wrap: wrap; justify-content: space-between; row-gap: 2px; }
  .kpi-trend > span { order: 3; flex-basis: 100%; }
  .kpi-trend .spark { width: 64px; }
}
/* Suggested for you this week (0.51): kind | who and why | action | Not now */
.suggest-card { margin-bottom: 26px; container-type: inline-size; scroll-margin-top: var(--top); }
.dash-list.suggest { grid-template-columns: 10rem minmax(0, 1fr) auto auto; }
.sug-kind { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.sug-kind i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.sug-cold .sug-kind i, .sug-stalled .sug-kind i { background: var(--magenta); }
.sug-note .sug-kind i, .sug-touch .sug-kind i { background: var(--primary); }
.sug-what { display: grid; min-width: 0; }
.sug-what > b { font-weight: 600; }
.sug-what > b a { color: var(--ink); text-decoration: none; }
.sug-what > b a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.sug-what .muted { font-weight: 400; }
.sug-what small { color: var(--muted); font-size: 13px; }
.sug-row .dash-actions form button.link { font-size: 13px; color: var(--muted); white-space: nowrap; }
@container (max-width: 640px) {
  .dash-list.suggest { grid-template-columns: minmax(0, 1fr); }
  .sug-row .dash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
}
/* Your relationships and The firm and its clients (0.52) */
h3.mini { font-weight: 600; font-size: 14px; color: var(--muted); margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
h3.mini.pad-x { margin: 4px 0 6px; padding-top: 0; }
.levels { display: flex; gap: 2px; height: 14px; border-radius: 3px; overflow: hidden; }
.levels i { display: block; min-width: 3px; }
.levels-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 13px; }
.levels-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bar-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 10px; font-size: 14px; }
.bar-list.wide li { grid-template-columns: 7.5rem minmax(0, 1fr) 2.6rem; }
.bar-list b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar { height: 10px; background: var(--hover); border-radius: 3px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 3px; min-width: 0; }
.hbar i.ink { background: var(--ink); } .hbar i.up { background: var(--primary); } .hbar i.down { background: var(--magenta); } .hbar i.quiet { background: var(--weak); }
.ft-list { list-style: none; display: grid; gap: 16px; }
.ft-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ft-top b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ft-bar { position: relative; height: 10px; background: var(--hover); border-radius: 3px; margin: 6px 0 3px; }
.ft-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 3px; }
.ft-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.ft-list small { font-size: 12.5px; }
.cov-chart { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 6px; margin: 12px 0 10px; }
.cov-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; color: var(--muted); text-align: center; }
.cov-x { font-size: 12px; color: var(--muted); padding-top: 4px; }
.cov-plot { position: relative; height: 230px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--hair); margin: 8px 8px 0 0; }
.cov-band { position: absolute; left: 0; bottom: 0; background: var(--magenta-soft); opacity: 0.55; }
.cov-band.x { top: 0; } .cov-band.y { right: 0; }
.cov-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); transform: translate(-50%, 50%); box-shadow: 0 0 0 2px var(--panel); cursor: default; }
.cov-dot.single { background: var(--magenta); }
.trend-key .cov-dot { position: static; display: inline-block; transform: none; width: 9px; height: 9px; margin-left: 8px; box-shadow: none; }
.cov-list { border-top: 1px solid var(--hair); padding: 8px 0; font-size: 14px; }
.cov-list summary { cursor: pointer; }
.cov-list summary b { color: var(--magenta-ink); }
.cov-list ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
/* Settings › Practice areas and industries (0.53) */
.fl-tabs { margin: 0 0 18px; }
.fl-off, #add.card { margin-bottom: 18px; }
.fl-table td { vertical-align: top; }
.fl-table td.wrap { white-space: normal; }
.fl-edit { text-align: right; width: 1%; }
.fl-edit details > summary { list-style: none; display: inline-block; cursor: pointer; }
.fl-edit details > summary::-webkit-details-marker { display: none; }
.fl-forms { display: grid; gap: 12px; margin-top: 10px; min-width: 300px; text-align: left; white-space: normal; }
.fl-form { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--hover); }
.fl-form label { display: grid; gap: 3px; }
.fl-form label > span { font-size: 13px; color: var(--muted); }
.fl-form input, .fl-form select { width: 100%; box-sizing: border-box; }
.fl-form .form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.fl-add { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; border: 0; background: none; padding: 14px 16px; }
.fl-off .inline-form { border-top: 0; padding: 0; flex-wrap: wrap; }
.fl-off .inline-form select { max-width: 260px; }
@media (max-width: 600px) { /* a phone: each entry as a small block instead of a wide table row */
  .fl-table thead { display: none; }
  .fl-table, .fl-table tbody { display: block; }
  .fl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
  .fl-table td { display: block; border: 0; padding: 0; white-space: normal; grid-column: 1; }
  .fl-table td:first-child { font-size: 15px; }
  .fl-table td:not(:first-child):not(.fl-edit) { color: var(--muted); font-size: 13px; }
  .fl-table td.fl-edit { grid-column: 2; grid-row: 1 / span 4; width: auto; }
  .fl-edit details[open] { grid-column: 1 / -1; }
  .fl-forms { min-width: 0; }
}
/* Strongest relationships in half the width: tighter cells, long names cut short; Sent and Received go when it's narrow. */
#strongest { container-type: inline-size; }
#strongest th, #strongest td { padding-left: 7px; padding-right: 7px; }
#strongest th:first-child, #strongest td:first-child { padding-left: 16px; width: 100%; max-width: 0; }
#strongest th:last-child, #strongest td:last-child { padding-right: 16px; }
#strongest .person b, #strongest .person small { white-space: nowrap; }
#strongest .table-wrap { overflow-x: visible; }
@container (max-width: 640px) { #strongest th:nth-child(3), #strongest td:nth-child(3), #strongest th:nth-child(4), #strongest td:nth-child(4) { display: none; } }
/* Contacts going cold: who and where | how long it's been quiet | Reconnect, Outdated? */
.cold-row { grid-template-columns: minmax(0, 1fr) 7.5rem auto; }
.cold-row .person b, .cold-row .person small { white-space: nowrap; }
/* Meetings: when | who and their companies | Outlook, note */
.meet-row { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }
.meet-when { display: grid; min-width: 0; }
.meet-when b { font-size: 16px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.meet-when small, .meet-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-who { display: grid; min-width: 0; }
.meet-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-who a { color: var(--ink); text-decoration: none; }
.meet-who a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.meet-who .more { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 400; color: var(--muted); }
.meet-row.waiting { box-shadow: inset 3px 0 0 var(--primary); }
.meet-row .logged { color: var(--primary); font-size: 13px; white-space: nowrap; cursor: default; }
.meet-row .open-link { font-size: 13px; }
/* A narrow card (two cards side by side on a small screen, or a phone): the actions go on a line of their own. */
@container (max-width: 500px) {
  .cold-row { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .cold-row .dash-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 43px; }
  .meet-row { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .meet-row .dash-actions { grid-column: 2; justify-content: flex-start; }
}


/* Data cleaner */
.cleaner-nav { margin-bottom: 18px; }
.cleaner-section { margin-bottom: 30px; scroll-margin-top: var(--top); }
.merge-group { margin-bottom: 14px; }
.merge-group > footer { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hair); }
.merge-group th.sel, .merge-group td.sel { width: 56px; text-align: center; padding-right: 12px; }
.link-all { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
table.personal td.clue { white-space: normal; min-width: 200px; }
table.personal td.clue small { display: block; font-size: 12px; }
table.personal form.row-link { padding: 0; border: 0; min-width: 300px; }
.link-person { border-top: 1px solid var(--hair); }
#merge-companies .bulkbar { justify-content: space-between; }

/* Personal marks: ★ key, sprout = growth target */
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.marks { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: -2px; }
.marks .m { display: inline-flex; }
.marks .ico { width: 14px; height: 14px; fill: currentColor; }
.marks .growth .ico .stem { fill: none; }
.m.key, .mark-btn.key.on { color: var(--magenta); }
.m.growth, .mark-btn.growth.on { color: var(--primary); }
.mark-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; }
.mark-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--field); border-radius: 6px; background: var(--panel); color: var(--muted);
  font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.mark-btn:hover { color: var(--ink); border-color: var(--ink); }
.mark-btn.on { border-color: currentColor; }
.mark-btn.on .ico { fill: currentColor; }
.mark-btn.on .ico .stem { fill: none; }
.mark-btn.key.on { background: var(--magenta-soft); }
.mark-btn.growth.on { background: var(--primary-soft); }
.btn .ico { width: 14px; height: 14px; }

.menu-version { padding: 10px 10px 2px; margin-top: 4px; border-top: 1px solid var(--head-line); color: var(--head-muted); font-size: 12px; }
.menu-version a { color: var(--head-ink); }
.whats-new h2 { margin-top: 22px; }
.whats-new h2:first-child { margin-top: 10px; }

/* ---------- List filters (Contacts, Companies) ---------- */
details.filters { position: relative; display: flex; }
details.filters > summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: 15px; }
details.filters > summary::-webkit-details-marker { display: none; }
details.filters > summary.on { border-color: var(--primary); }
details.filters[open] > summary { background: var(--bg); }
.filter-pop { position: absolute; right: 0; top: calc(100% + 4px); width: 360px; max-height: min(70vh, 640px); overflow: auto; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); z-index: 20; padding: 6px 0 0; }
.fgroup h4 { margin: 10px 14px 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
details.facet > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 7px 14px; font-weight: 600; }
details.facet > summary::-webkit-details-marker { display: none; }
details.facet > summary::before { content: '›'; display: inline-block; width: 10px; color: var(--muted); transition: transform 0.12s; }
details.facet[open] > summary::before { transform: rotate(90deg); }
details.facet > summary:hover { background: var(--bg); }
details.facet > summary small { margin-left: auto; color: var(--primary); font-weight: 600; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fopts { padding: 2px 14px 10px 32px; display: grid; gap: 1px; max-height: 260px; overflow: auto; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 14px; }
.fopt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fopt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt.zero:not(:has(input:checked)) { opacity: 0.45; }
.fopt.fnoneopt span { font-style: italic; }
.fopt input { accent-color: var(--primary); }
.fnone { margin: 2px 0 4px; font-size: 13px; }
.facet-find { width: 100%; padding: 5px 8px !important; font-size: 13px !important; margin: 2px 0 6px; }
.filter-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 6px; background: var(--panel); border-top: 1px solid var(--hair); }
.filter-actions small { flex-basis: 100%; font-size: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 14px; }
.filter-chips > b { font-size: 15px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border: 1px solid var(--primary); border-radius: 999px; background: var(--primary-soft); color: var(--chip-ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.fchip span { font-weight: 500; color: var(--muted); }
.fchip b { margin-left: 4px; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 15px; line-height: 1; }
.fchip:hover b { background: var(--primary); color: var(--primary-ink); }
.fclear { font-size: 13px; }
.ico.line { stroke-width: 2.2; }
/* One type and the industry, in a column that stays narrow: a company with several types no longer widens the table. */
td.typeind { max-width: 184px; white-space: nowrap; }
/* The Companies list fits a laptop's width: tighter cells, and its one long heading on two lines. */
.companies-table th, .companies-table td { padding-left: 8px; padding-right: 8px; }
.companies-table th.two-line { white-space: normal; min-width: 104px; max-width: 124px; line-height: 1.25; }
td.typeind small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
td.typeind .badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
td.typeind .badge.more { margin-right: 0; cursor: default; }
@media (max-width: 640px) {
  .filter-pop { position: fixed; left: 8px; right: 8px; top: 72px; width: auto; max-height: calc(100vh - 90px); }
}
.fchip.fixed { border-color: var(--line); background: var(--panel); color: var(--ink); padding-right: 10px; }
.fpresets { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 6px; font-size: 13px; }
.fpresets a, .fpresets b { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.fpresets a:hover { border-color: var(--primary); color: var(--primary); }
.fpresets b { background: var(--primary-soft); color: var(--chip-ink); border-color: transparent; font-weight: 600; }
.fmatch { display: flex; align-items: center; gap: 6px; margin: 10px 14px 4px; padding: 8px 10px; background: var(--bg); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.fmatch label { cursor: pointer; }
.fmatch input { position: absolute; opacity: 0; pointer-events: none; }
.fmatch label span { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 12px; }
.fmatch label input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.fmatch label input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.fjoin { font-size: 12px; font-weight: 600; color: var(--muted); }

/* "i" explainers */
.info:not(.banner) { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 1px solid currentColor; border-radius: 50%;
  font: italic 600 12px/1 Georgia, serif; color: var(--muted); cursor: help; vertical-align: 1px; }
.info:not(.banner):hover, .info:not(.banner):focus { color: var(--primary); outline: none; }
.info .tip { display: none; position: absolute; left: -12px; top: calc(100% + 6px); width: 300px; padding: 10px 12px; background: var(--ink); color: var(--panel);
  font: 400 13px/1.45 var(--sans); font-style: normal; text-align: left; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); z-index: 30; cursor: auto; white-space: normal; }
.info .tip a { color: var(--primary-mid); }
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { display: block; }
.filter-pop details.facet > summary { position: relative; }
.filter-pop .info { position: static; }
.filter-pop .info .tip { left: 14px; right: 14px; width: auto; }
.badge.role { border-style: dashed; }
form.card-form .as-label { display: grid; gap: 4px; font-size: 14px; }
form.card-form .as-label > span:first-child { color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 0; }
.checks label { display: inline-flex !important; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.checks input { accent-color: var(--primary); }

/* Pages */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 4px; font-size: 14px; }
.pager .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pager .pages a, .pager .pages b, .pager .gap { min-width: 30px; padding: 3px 8px; text-align: center; border-radius: 6px; text-decoration: none; }
.pager .pages a { color: var(--ink); border: 1px solid var(--line); background: var(--panel); }
.pager .pages a:hover { border-color: var(--primary); color: var(--primary); }
.pager .pages b { background: var(--primary-soft); color: var(--chip-ink); border: 1px solid transparent; }
.pager .gap { color: var(--muted); min-width: 0; padding: 3px 2px; }
.pager .per { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pager .per a, .pager .per b { padding: 0 3px; }
.pager .per b { color: var(--ink); }
.select-matching .link { font-weight: 600; color: var(--primary); }
form.card-form .checks label { display: inline-flex; grid-template-columns: none; width: auto; white-space: nowrap; gap: 6px; }
form.card-form .checks input[type=checkbox] { width: auto; margin: 0; padding: 0; }

/* ---------- Contact page: business-card header, card first, relationship + activity on the side ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.profile-card { overflow: visible; } /* the More menu opens over the page */
.profile-card .more-panel { left: 0; right: auto; max-width: calc(100vw - 32px); }
.bizcard { display: flex; align-items: flex-start; gap: 16px; padding: 18px 18px 10px; }
.bizcard .avatar.big { flex: none; width: 60px; height: 60px; font-size: 24px; }
.biz-main { flex: 1; min-width: 0; }
.biz-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.biz-name h1 { margin: 0; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.biz-role { margin: 4px 0 2px; }
.biz-role a { font-weight: 600; }
.biz-lines { margin: 2px 0 4px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.profile-card .biz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 18px 14px; }
.profile-card .biz-actions:empty { display: none; }
.profile-card .card-body { border-top: 1px solid var(--hair); }
.profile-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 14px; }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; }
.profile-bg { margin-top: 14px; }
.profile-bg h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.biz-lines .sep { margin: 0 8px; }
.mark-toggles { display: inline-flex; gap: 2px; }
.mark-toggles form { display: inline-flex; }
.mark-btn.icon { padding: 5px; border-color: transparent; background: transparent; }
.mark-btn.icon .ico { width: 20px; height: 20px; }
.mark-btn.icon:hover { border-color: var(--line); background: var(--panel); }
.mark-btn.icon.key.on { color: var(--magenta); background: transparent; border-color: transparent; }
.mark-btn.icon.growth.on { color: var(--primary); background: transparent; border-color: transparent; }
details.more { position: relative; flex: none; }
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; right: 0; top: calc(100% + 4px); width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); padding: 6px; z-index: 20; display: grid; }
.more-panel a, .more-panel button.link { display: block; width: 100%; text-align: left; padding: 7px 10px; color: var(--ink); text-decoration: none; font-size: 14px; border-radius: 6px; }
.more-panel a:hover, .more-panel button.link:hover { background: var(--bg); color: var(--ink); }
.more-panel hr { border: 0; border-top: 1px solid var(--hair); margin: 6px 0; }
.more-panel .marking { margin: 4px 10px; font-size: 13px; }
.more-panel .find-web { display: block; margin: 0; }
.more-about { padding: 2px 10px 4px; }
.more-about p { margin: 4px 0; font-size: 12px; line-height: 1.4; }
.person-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } /* 0.54: the profile on the left */
.rel-strength { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0 6px; }
.rel-strength b { font-size: 20px; font-weight: 700; line-height: 1; }
.rel-strength small { color: var(--muted); font-size: 13px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rel-strength .lv-strong { color: var(--strong); } .rel-strength .lv-medium { color: var(--ink); } .rel-strength .lv-weak, .rel-strength .lv-none { color: var(--muted); }
.rel-dates { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.rel-dates b { color: var(--ink); font-weight: 600; }
.rel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0 8px; }
.rel-stats div { border-left: 3px solid var(--line); padding-left: 10px; }
.rel-stats dt { font-size: 12px; color: var(--muted); }
.rel-stats dd { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rel-stats dd small { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; padding: 8px 16px; border-left: 3px solid transparent; font-size: 14px; align-items: start; }
.activity li + li { border-top: 1px solid var(--hair); }
.activity li.meeting { border-left-color: var(--primary); }
.activity li.upcoming { background: var(--primary-soft); }
.activity time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.activity .others { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager.mini { display: flex; justify-content: space-between; margin: 0; padding: 8px 16px; border-top: 1px solid var(--hair); font-size: 13px; }
@media (max-width: 900px) {
  .person-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bizcard { gap: 14px; padding: 14px 14px 8px; }
  .bizcard .avatar.big { width: 56px; height: 56px; font-size: 22px; }
  .biz-name h1 { font-size: 22px; }
  .profile-card .biz-actions { padding: 2px 14px 12px; }
  .biz-lines { flex-direction: column; align-items: flex-start; gap: 2px; }
  .biz-lines .sep { display: none; }
}
th .info { vertical-align: 0; }
.site-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13px; }
.site-status .badge { margin-right: 0; }
.site-status form { display: inline; }
form.card-form label.inline-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: -4px; }
form.card-form label.inline-check input { width: auto; }
.site-status a.review { font-weight: 600; color: var(--magenta-ink); }

/* ---------- Activities (notes, calls, meetings, emails, to-dos), opportunities and the briefing ---------- */
.profile-action { margin-left: auto; align-self: flex-start; }
.profile-actions { margin-left: auto; align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; }
.profile-actions .profile-action { margin-left: 0; }
.link-quiet { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.link-quiet:hover { color: var(--primary); }
.add-activity { border-bottom: 1px solid var(--hair); background: var(--hover); }
.add-activity > summary { list-style: none; cursor: pointer; display: inline-flex; margin: 10px 16px; }
.add-activity > summary::-webkit-details-marker { display: none; }
.add-activity[open] > summary { background: var(--bg); }
.act-form, .done-box form { display: grid; gap: 10px; padding: 0 16px 14px; }
.act-form label, .done-box label:not(.check) { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.act-form input, .act-form select, .act-form textarea, .done-box textarea { width: 100%; color: var(--ink); font-size: 15px; }
.act-form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.act-form p { margin: -4px 0 0; }
/* What kind of activity: a small round mark; meetings on the teal tint */
.dot { flex: none; width: 26px; height: 26px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--neutral); color: var(--ink); }
.dot.meeting { background: var(--primary-soft); color: var(--chip-ink); }
.todos, .history, .opp-list { list-style: none; margin: 0; padding: 0; }
.todos > li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.todos > li:last-child { border-bottom: 0; }
.t-main, .h-main { min-width: 0; }
.t-main b, .h-main b { font-weight: 600; }
.t-main p, .h-main p { margin: 3px 0 0; font-size: 14px; }
.t-main p { color: var(--muted); }
.links { display: block; margin-top: 3px; }
.t-side { display: grid; justify-items: end; gap: 3px; text-align: right; font-size: 13px; }
.t-side .days small { display: block; color: var(--muted); font-weight: 400; }
.t-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.t-actions .link-quiet { margin-top: 5px; }
.done-box { flex: 1; min-width: 0; }
.done-box > summary { list-style: none; cursor: pointer; display: inline-flex; }
.done-box > summary::-webkit-details-marker { display: none; }
.done-box[open] > summary { background: var(--bg); }
.done-box form { padding: 10px 0 0; }
.todos.compact .t-main p { display: none; }
.history > li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); align-items: start; }
.history > li:last-child { border-bottom: 0; }
.h-main small { color: var(--muted); font-size: 13px; }
.h-side { display: grid; justify-items: end; gap: 2px; }
.h-side time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chip.grey { background: var(--hover); color: var(--muted); border: 1px solid var(--line); }
.chip.opp-chip { background: transparent; color: var(--ink); border: 1px dashed var(--field); }
a.chip.grey:hover, a.chip.opp-chip:hover { background: var(--neutral); color: var(--ink); border-color: var(--line); }
.who { font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.by { font-size: 12px; color: var(--magenta-ink); }
.days { font-variant-numeric: tabular-nums; white-space: nowrap; }
.days.late { color: var(--magenta-ink); font-weight: 600; }
.flag { display: inline-flex; align-items: center; gap: 6px; color: var(--magenta-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.flag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); flex: none; }
.flag-line, .more-line { margin: 0; border-top: 1px solid var(--hair); }
.group-h { padding: 8px 16px; background: var(--hover); border-bottom: 1px solid var(--hair); font-weight: 600; font-size: 14px; color: var(--muted); }
.group-h.late { color: var(--magenta-ink); }
.stage { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.stage.won { background: var(--primary-soft); border-color: transparent; color: var(--chip-ink); }
.stage.lost { background: var(--magenta-soft); border-color: transparent; color: var(--magenta-ink); }
.opp-list > li { padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.opp-list > li:last-child { border-bottom: 0; }
.opp-list > li a { text-decoration: none; }
.opp-list > li a:hover b { color: var(--primary); }
.opp-list small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.brief { max-width: 880px; }
.brief-doc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px 30px; }
.brief-doc .eyebrow { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }
.brief-doc h1 { margin: 2px 0 4px; }
.brief-doc h2 { margin: 24px 0 8px; }
.brief-doc table td, .brief-doc table th { white-space: normal; }
.brief-doc ul { margin: 0; padding-left: 18px; }
.brief-doc li { margin: 4px 0; }
.brief-meta { color: var(--muted); margin: 0 0 8px; }
.brief-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .act-form .two { grid-template-columns: 1fr; }
  .todos > li { grid-template-columns: 26px minmax(0, 1fr); }
  .t-side { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 6px 10px; }
  .t-side .days small { display: inline; margin-left: 4px; }
  .brief-doc { padding: 20px 18px 24px; }
  .profile-action { margin-left: 0; }
  .profile-actions { margin-left: 0; }
}
@media print {
  header.side, header.top-strip, .page-search, .no-print, .toolbar, .banner.ok, .banner.error { display: none !important; }
  .has-side .page { margin-left: 0; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  .brief-doc { border: 0; padding: 0; }
}


/* The opportunity form (0.84): parts shown only when they apply (Other, a referral, Lost). */
#opp-form [hidden] { display: none; }

/* Opportunities (0.87): the board, the list and the record page, in the manner of Contacts and Companies.
   Teal is where the pipeline stands and what can be clicked; magenta only where something needs attention. */
.view-seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; }
.view-seg .ico { width: 15px; height: 15px; }
.opp-strip .co-stat-line span.attn { color: var(--magenta-ink); font-weight: 600; }
.opp-strip .co-stat-line .meter { width: 100%; margin-top: 7px; }
.opp-strip .co-stat-line span:last-child { white-space: normal; text-align: right; }
.meter { display: inline-block; width: 44px; height: 4px; border-radius: 999px; background: var(--neutral); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; }
.meter.w1 i { width: 10%; } .meter.w2 i { width: 20%; } .meter.w3 i { width: 30%; } .meter.w4 i { width: 40%; } .meter.w5 i { width: 50%; }
.meter.w6 i { width: 60%; } .meter.w7 i { width: 70%; } .meter.w8 i { width: 80%; } .meter.w9 i { width: 90%; } .meter.w10 i { width: 100%; }
.otag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; background: var(--panel); }
.otag .ico { width: 12px; height: 12px; }
.avatar.xs { width: 22px; height: 22px; font-size: 10.5px; }
.stage { background: var(--primary-soft); border-color: transparent; color: var(--chip-ink); padding: 1px 10px; }
.stage.on_hold { background: var(--neutral); color: var(--muted); }
.stage.won { background: var(--primary); color: var(--primary-ink); }
.stage.lost { background: var(--magenta-soft); color: var(--magenta-ink); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(224px, 1fr); gap: 14px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 22px; scroll-snap-type: x proximity; }
.col { background: var(--hover); border: 1px solid var(--line); border-top: 3px solid var(--primary-mid); border-radius: var(--radius); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.col.p1 { border-top-color: color-mix(in srgb, var(--primary) 28%, var(--line)); } .col.p2 { border-top-color: color-mix(in srgb, var(--primary) 46%, var(--line)); }
.col.p3 { border-top-color: color-mix(in srgb, var(--primary) 64%, var(--line)); } .col.p4 { border-top-color: color-mix(in srgb, var(--primary) 82%, var(--line)); }
.col.p5, .col.p6, .col.p7, .col.p8 { border-top-color: var(--primary); }
.col > header { padding: 12px 14px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.col-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.col-name b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-n { flex: none; min-width: 22px; padding: 0 6px; text-align: center; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); line-height: 18px; }
.col > header small { color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* One column no wider than the stage: a long next step or company name is cut short, it never widens the card (0.88.2). */
.col .cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 10px 12px; align-content: start; flex: 1; min-height: 76px; }
.col-empty { margin: 0; padding: 20px 10px; border: 1px dashed var(--field); border-radius: var(--radius-s); text-align: center; color: var(--muted); font-size: 13px; }
a.opp { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(11, 11, 15, 0.04); transition: border-color 0.12s, box-shadow 0.12s; }
a.opp:hover { border-color: var(--primary); color: inherit; text-decoration: none; box-shadow: 0 3px 10px rgba(11, 11, 15, 0.08); }
a.opp.attn { box-shadow: inset 3px 0 0 var(--magenta), 0 1px 2px rgba(11, 11, 15, 0.04); }
a.opp[draggable="true"] { cursor: grab; }
a.opp.dragging { opacity: 0.45; }
.opp-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.opp-id { min-width: 0; display: grid; gap: 1px; }
.opp-id b { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.opp-id small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-fig { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.opp-fig b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.prob { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.opp-next { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid var(--hair); font-size: 13px; }
.opp-next-t { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; } /* two lines, then cut short */
.opp-next .days { color: var(--muted); font-size: 12.5px; }
.opp-next .days.late { color: var(--magenta-ink); }
.opp-foot { display: flex; align-items: center; gap: 8px; min-height: 22px; color: var(--muted); font-size: 12.5px; }
.opp-close { margin-right: auto; }
.opp-close.late { color: var(--magenta-ink); font-weight: 600; }
.opp-who { display: inline-flex; align-items: center; gap: 4px; }
.col.drop-over { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); background: var(--primary-soft); }
.drop-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: -8px 0 22px; }
.drop-zones[hidden] { display: none; }
.drop-zone { padding: 18px 12px; border: 2px dashed var(--field); border-radius: var(--radius); text-align: center; font-weight: 600; color: var(--muted); background: var(--panel); }
.drop-zone.drop-over { border-color: var(--primary); background: var(--primary-soft); color: var(--chip-ink); }
.drop-zone.lost.drop-over { border-color: var(--magenta); background: var(--magenta-soft); color: var(--magenta-ink); }

.opp-cell { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.opp-cell > span:last-child { min-width: 0; }
.opp-cell b { display: block; font-weight: 600; }
.opp-cell small { display: block; color: var(--muted); font-size: 12.5px; margin: 0; }
.opp-cell:hover b { color: var(--primary); }
.opp-table td { vertical-align: middle; }
.opp-table .o-what { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.opp-table .o-next { max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-table th, .opp-table td { padding-left: 12px; padding-right: 12px; }
.opp-table .o-prob { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.opp-table .o-prob span:last-child { margin-left: 8px; }
.opp-table .o-owner { white-space: nowrap; }
.opp-table .o-owner .avatar { margin-right: 8px; }
@media (max-width: 1500px) { .opp-table .o-owner-name { display: none; } .opp-table .o-owner .avatar { margin-right: 0; } }
.opp-table td.late { color: var(--magenta-ink); font-weight: 600; }
.opp-table .days.late { color: var(--magenta-ink); }
.opp-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.opp-table th a:hover { color: var(--primary); }
.sort-dir { margin-left: 4px; color: var(--primary); }
.opp-rows > li { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.opp-line-end { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.opp-line-end b { font-variant-numeric: tabular-nums; }
.break-table .break-name { display: block; margin-bottom: 5px; }
.break-table .meter { display: block; width: 100%; max-width: 240px; }
.stage-history small { display: inline; margin-left: 6px; }

.opp-profile .mark-row { gap: 6px; }
.stage-track { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.stage-track ol { list-style: none; margin: 0; padding: 0; display: flex; flex: 1 1 460px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage-track li { flex: 1 1 0; min-width: 0; display: flex; }
.stage-track li + li { border-left: 1px solid var(--hair); }
.stage-track li form { display: flex; flex: 1; min-width: 0; }
.step { flex: 1; min-width: 0; display: grid; gap: 1px; align-content: center; padding: 9px 14px; margin: 0; background: none; border: 0; text-align: left; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step small { font-size: 12px; font-weight: 400; color: inherit; opacity: 0.8; }
button.step, button.end { cursor: pointer; }
button.step:hover { background: var(--hover); color: var(--ink); }
.stage-track li.done .step { background: var(--primary-soft); color: var(--chip-ink); }
.stage-track li.now .step { background: var(--primary); color: var(--primary-ink); }
.stage-ends { display: flex; gap: 8px; align-items: stretch; }
.stage-ends form { display: flex; }
.end { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
button.end:hover { border-color: var(--muted); color: var(--ink); }
button.end.won:hover { border-color: var(--primary); color: var(--primary); }
button.end.lost:hover { border-color: var(--magenta); color: var(--magenta-ink); }
.end.now.on_hold { background: var(--neutral); border-color: transparent; color: var(--ink); }
.end.now.won { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.end.now.lost { background: var(--magenta-soft); border-color: transparent; color: var(--magenta-ink); }
.more-panel .share-note { margin: 6px 10px 4px; font-size: 12px; line-height: 1.4; }
form.card-form label.private-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--hover); }
form.card-form label.private-check input[type=checkbox] { width: auto; flex: none; margin-top: 3px; }
form.card-form label.private-check > span { color: var(--ink); }
form.card-form label.private-check small { display: block; }
.stage-order { white-space: nowrap; }
.stage-order form { display: inline; }
@media (max-width: 860px) {
  .board { grid-auto-columns: minmax(82vw, 1fr); }
  .stage-track ol { overflow-x: auto; }
  .stage-track li { flex: 0 0 auto; }
  .stage-ends { flex: 1 1 100%; }
  .stage-ends form, .stage-ends > span { flex: 1; }
  .end { flex: 1; justify-content: center; }
  .view-seg a { padding: 7px 10px; }
}
/* ---------- Coaches: working for a lawyer; Users & roles ---------- */
.as-form { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--head-muted); }
.as-form select { max-width: 200px; padding: 4px 8px; font-size: 14px; background: transparent; color: var(--head-ink); border-color: var(--head-line); font-family: var(--sans); }
.as-form select option { color: var(--ink); background: var(--panel); }
.demo-banner { background: var(--neutral); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; } /* demo mode: quiet, on every page */
.demo-banner .as-in { padding-top: 6px; padding-bottom: 6px; }
.demo-banner .demo-seat { margin-left: auto; color: var(--muted); } /* .as-form is styled for the black menu: here it sits on light grey */
.demo-banner .demo-seat select { padding: 3px 8px; font-size: 14px; color: var(--ink); background: var(--panel); border-color: var(--line); }
.demo-banner .as-in .btn { background: var(--panel); color: var(--ink); border-color: var(--line); }
.demo-banner .as-in .btn:hover { background: var(--hover); color: var(--ink); border-color: var(--weak); }
.as-banner { background: #b0005f; color: #ffffff; } /* working for someone else: it must be noticed */
.as-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-block: 9px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); font-size: 14px; }
.as-in span { flex: 1; min-width: 0; }
.as-in .btn { background: transparent; color: #fff; border-color: #fff; }
.as-in .btn:hover { background: #ffffff; color: #b0005f; border-color: #ffffff; }
table.users td { white-space: normal; }
table.users td small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .as-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.no-m { margin: 0; }
.pad-x { padding: 0 16px 14px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.status.strong { background: var(--primary); color: var(--primary-ink); }
.status.cooling { background: var(--magenta-soft); color: var(--magenta-ink); }
.status.new { border: 1px solid var(--line); color: var(--muted); }
.suggested { font-size: 12px; color: var(--muted); margin-left: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.steps a { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-top: 3px solid var(--line); min-width: 0; }
.steps a + a { border-left: 1px solid var(--hair); }
.steps a.done { border-top-color: var(--primary); }
.steps small { font-weight: 600; color: var(--muted); font-size: 13px; }
.steps b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.steps span { color: var(--muted); font-size: 13px; }
.steps a:hover b { color: var(--primary); }
.progress { height: 8px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); }
.progress.full span { background: var(--magenta); }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th, table.mini td { padding: 5px 6px; border-bottom: 1px solid var(--hair); white-space: normal; text-align: left; }
table.mini th { border-bottom: 1px solid var(--line); font-size: 12px; }
table.mini .n { text-align: right; white-space: nowrap; }
table.mini.scores input { width: 100%; min-width: 180px; }
table.mini.scores select { min-width: 58px; }
.card.wide-ish { max-width: 820px; }
.next { display: grid; gap: 2px; min-width: 180px; }
.next b { font-weight: 600; }
.next small { color: var(--muted); font-size: 13px; }
.next small.late { color: var(--magenta-ink); font-weight: 600; }
.next .who { justify-self: start; }
table.coach td small { display: block; color: var(--muted); font-size: 13px; }
table.coach form { display: inline-flex; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps a + a { border-left: 0; }
}
/* ---------- Technical documentation (Admin ▾ → Documentation): index, documents, packs, live reference ---------- */
.docs-head { margin-bottom: 26px; }
.docs-head .eyebrow, .doc-head .eyebrow, .pack-contents .eyebrow { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.docs-head .lead { font-size: 18px; max-width: 760px; margin: 0 0 12px; }
.docs-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0; }
.docs-section { margin-top: 30px; }
.docs-section > h2, .doc-body h2, .pack-contents h2 { display: flex; align-items: center; gap: 8px; }
.docs-section > h2 { margin-bottom: 12px; }
.fresh { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.fresh.ok { background: var(--primary-soft); color: var(--chip-ink); }
.fresh.due { background: var(--magenta-soft); color: var(--magenta-ink); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pack { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.pack h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; line-height: 1.2; }
.pack h3 a { color: var(--ink); text-decoration: none; }
.pack > p.muted { font-size: 14px; margin: 0 0 10px; }
.pack ol { margin: 0 0 14px; padding-left: 18px; font-size: 14px; }
.pack ol li { margin: 2px 0; }
.pack li.ref small { font-size: 12px; color: var(--primary); font-weight: 600; }
.pack-foot { margin: auto 0 0; display: flex; align-items: center; gap: 10px; }
.doc-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-list > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px; padding: 16px 18px 14px 10px; border-bottom: 1px solid var(--hair); }
.doc-list > li:last-child { border-bottom: 0; }
.doc-list .num { font-weight: 600; font-size: 20px; color: var(--muted); text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.doc-list .t { font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; line-height: 1.2; }
.doc-list p { margin: 4px 0 0; }
.doc-list .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aud-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.aud { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--primary-soft); color: var(--chip-ink); text-decoration: none; white-space: nowrap; }
.aud:hover { background: var(--primary); color: var(--primary-ink); }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ref-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.ref-card b { font-size: 16px; }
.ref-card span { font-size: 14px; }
.ref-card:hover { border-color: var(--primary); color: inherit; }
.doc-history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.doc-history li { padding: 6px 0; border-bottom: 1px solid var(--hair); }
.crumbs { margin: 0 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 880px); gap: 26px; align-items: start; }
.doc-side { position: sticky; top: var(--top); max-height: calc(100vh - var(--top) - 16px); overflow: auto; font-size: 14px; }
.doc-side summary { font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: 8px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 4px 0 4px 12px; text-decoration: none; color: var(--muted); line-height: 1.3; }
.toc a:hover { color: var(--primary); }
.toc ol { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; font-size: 13px; }
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 38px 30px; }
.doc-head h1 { margin: 0 0 8px; }
.doc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.doc-head .toolbar { margin: 0 0 6px; }
.doc-head > p.muted { max-width: 72ch; }
.doc-body { font-size: 16px; line-height: 1.6; }
.doc-body p, .doc-body li { max-width: 76ch; }
.doc-body h2 { font-size: 19px; margin: 34px 0 10px; padding-top: 16px; border-top: 1px solid var(--hair); scroll-margin-top: var(--top); }
.doc-body h3 { font-size: 17px; margin: 24px 0 6px; scroll-margin-top: var(--top); }
.doc-body h4 { font-size: 15px; margin: 18px 0 4px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin: 4px 0; }
.doc-body li > ul, .doc-body li > ol { margin: 4px 0; }
.doc-body a { color: var(--primary); }
.doc-body table { margin: 8px 0 16px; font-size: 14px; }
.doc-body td, .doc-body th { white-space: normal; vertical-align: top; line-height: 1.4; }
.doc-body td code, .doc-body li code, .doc-body p code { white-space: normal; word-break: break-word; }
.doc-body pre.code { background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; overflow-x: auto; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc-body pre.code code { border: 0; padding: 0; background: none; white-space: pre; }
.doc-body hr { border: 0; border-top: 1px solid var(--hair); margin: 24px 0; }
.callout { margin: 14px 0; padding: 10px 16px; background: var(--info-bg); border-radius: var(--radius-s); }
.callout p { margin: 4px 0; }
.callout.warn { background: var(--err-bg); }
.doc-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.doc-pager { display: flex; justify-content: space-between; gap: 12px; max-width: 1146px; margin-top: 16px; }
.doc-pager a { color: var(--primary); text-decoration: none; font-weight: 600; }
.doc-body .two-col { grid-template-columns: 1fr 1fr; }
.doc-body .two-col ul { font-size: 14px; }
.doc-body table.ref td:first-child code { white-space: nowrap; word-break: normal; }
.pd, .role-need { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pd-yes { color: var(--magenta-ink); }
.pd-business { color: var(--primary); }
.pd-no, .pd-unknown { color: var(--muted); }
.role-need.r-public { color: var(--magenta-ink); }
.role-need.r-any { color: var(--muted); }
.role-need.r-editor { color: var(--primary); }
.role-need.r-admin { color: var(--ink); }
.print-band { display: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; align-self: center; }
.lang-switch a { padding: 3px 10px; font-size: 13px; text-decoration: none; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a.on { background: var(--primary-soft); color: var(--chip-ink); font-weight: 600; }
.lang-switch a:not(.on):hover { color: var(--primary); }
.lang-note { margin: 0 0 10px; padding: 6px 12px; font-size: 14px; background: var(--info-bg); border-radius: var(--radius-s); }

.pack-bar { align-items: center; }
.pack-doc { max-width: 920px; }
.cover { background: #0b0b0f; color: #fff; padding: 40px 44px 34px; display: grid; gap: 34px; border-bottom: 6px solid var(--magenta); }
.cover-logo { width: 120px; height: auto; }
.cover .eyebrow { display: block; font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: #ff2e93; }
.cover h1 { font-size: 56px; margin: 6px 0 10px; color: #fff; }
.cover-for { font-family: var(--cond); font-size: 28px; font-weight: 500; margin: 0; color: #5fd6b4; }
.cover-org { font-size: 18px; margin: 10px 0 0; }
.cover-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; font-size: 15px; }
.cover-meta dt { font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.08em; color: #a9aec0; }
.cover-meta dd { margin: 0; }
.cover-note { margin: 0; font-size: 13px; color: #a9aec0; border-top: 1px solid #26262f; padding-top: 12px; }
.pack-contents { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 38px; margin-top: 18px; }
.pack-toc { list-style: none; margin: 10px 0 0; padding: 0; }
.pack-toc li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
.pack-toc a { color: var(--ink); text-decoration: none; }
.pack-toc a span { font-weight: 600; color: var(--muted); margin-right: 8px; }
.pack-toc small { font-size: 12px; color: var(--primary); font-weight: 600; }
.pack-part { margin-top: 18px; scroll-margin-top: var(--top); }

@media (max-width: 960px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .doc-side { position: static; max-height: none; }
  .doc-side details:not([open]) summary { margin: 0; }
  .doc { padding: 22px 18px 24px; }
  .doc-body .two-col { grid-template-columns: 1fr; }
  .cover { padding: 28px 22px; }
  .cover h1 { font-size: 40px; }
  .pack-contents { padding: 20px 18px; }
}

/* Print / Save as PDF: always on white (Paper colours, even in Dark), A4, Tyde band, page numbers. */
@media print {
  :root:not(#print) { --panel: #fff; --bg: #fff; --ink: #0b0b0f; --muted: #55565f; --line: #d9d9de; --hair: #ececee; --neutral: #ececee; --primary: #007d5e; --primary-soft: #e6f4ef;
    --chip-ink: #00634a; --magenta: #e5007e; --magenta-ink: #b0005f; --magenta-soft: #fde6f2; color-scheme: light; }
  @page { size: A4; margin: 16mm 15mm 18mm;
    @bottom-left { content: "Tyde · Tyde & Partners"; font: 8pt Roboto, sans-serif; color: #55565f; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 8pt Roboto, sans-serif; color: #55565f; } }
  /* The cover keeps the margins of every other page: Chrome's print dialog takes the first page's margins for the whole
     document, so a full-bleed cover (margin 0) printed every page without margins or page numbers (0.48.1). */
  @page :first { @bottom-left { content: none; } @bottom-right { content: none; } }
  .crumbs, .doc-side, .doc-pager, .pack-bar { display: none !important; }
  .docs-layout { display: block; }
  .doc, .pack-contents { border: 0; padding: 0; background: none; }
  .doc-body { font-size: 10.5pt; line-height: 1.5; }
  .doc-body p, .doc-body li { max-width: none; }
  .doc-body h2 { font-size: 13pt; margin-top: 18pt; }
  .doc-body h3 { font-size: 13pt; }
  .doc-body table { font-size: 9pt; }
  .doc-body h2, .doc-body h3, .doc-body h4 { break-after: avoid; }
  .doc-body tr, .doc-body pre, .callout, .pack li { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .doc-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 85%; color: #5a6072; word-break: break-all; }
  .print-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0b0b0f; color: #fff; padding: 7px 12px; margin: 0 0 14pt;
    font-family: var(--cond); font-size: 9pt; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 2px solid #e5007e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-band img { height: 16px; width: auto; }
  .cover { break-after: page; height: 262mm; box-sizing: border-box; padding: 22mm 18mm 14mm; grid-template-rows: auto 1fr auto auto; border-bottom-width: 6mm;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover-logo { width: 34mm; }
  .cover-main { align-self: center; }
  .cover h1 { font-size: 40pt; }
  .pack-part { break-before: page; margin: 0; }
  .pack-contents { break-after: page; margin: 0; }
  .aud { background: none; border: 1px solid currentColor; }
  .fresh { display: none; }
  .doc-body th, .doc-body td { padding: 3pt 6pt; }
  .doc-body thead { display: table-header-group; }
  .doc-head h1 { font-size: 24pt; }
  .doc-foot { margin-top: 14pt; }
}
@media print { .doc-body pre.code { font-size: 8pt; line-height: 1.35; overflow: visible; white-space: pre-wrap; } }


/* Demo mode's visitors (views-demo.js): the terms, the guest list, the notes; the export note; nothing to print. */
.demo-terms, .demo-note { max-width: 760px; margin: 24px auto; }
.demo-terms h1, .demo-note h1 { font-size: 26px; margin: 0 0 12px; }
.demo-terms .lead { font-size: 16px; }
.demo-terms ol { padding-left: 20px; display: grid; gap: 10px; margin: 16px 0; }
.demo-terms-actions, .demo-note-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.demo-guest-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.demo-guest-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.demo-guest-form input { min-width: 220px; }
.demo-guest-form select { min-width: 120px; }
.demo-guests td small, .demo-report td small { display: block; color: var(--muted); font-size: 13px; }
.demo-report-kpis .kpi b { font-size: 18px; }
td small.demo-attn, .demo-guests td small.demo-attn { color: var(--magenta-ink); }
.demo-mail { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 12px 0; font-size: 14px; }
.demo-mail dt { color: var(--muted); }
.demo-mail dd { margin: 0; word-break: break-word; }
.demo-mail-body { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.demo-link-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0; }
.demo-link-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); flex: 1 1 260px; }
.demo-note .banner { margin: 12px 0; }
dialog.demo-closed { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-width: 420px; background: var(--panel); color: var(--ink); }
dialog.demo-closed::backdrop { background: rgb(0 0 0 / 35%); }
.demo-noprint { display: none; }
@media print {
  body[data-demo] > *:not(.demo-noprint) { display: none !important; }
  body[data-demo] .demo-noprint { display: block; font: 16px var(--sans); margin: 40px; }
}
/* 0.15: archive and delete */
.banner form { margin-left: auto; }
.banner.archived { justify-content: space-between; }
.more-panel button.link small, .more-panel a small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; margin-top: 1px; }
.more-panel a.danger { color: var(--err-ink); }
.btn.danger { background: var(--panel); border-color: var(--err-ink); color: var(--err-ink); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err-ink); color: var(--err-ink); }
.btn.danger:disabled { opacity: 0.45; cursor: not-allowed; }
.delete-card { max-width: 760px; }
.delete-card code { margin-right: 4px; }
.delete-form label.check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 10px; font-weight: 600; }
.pad-top { margin-top: 12px; }

/* 0.16: Who knows, Private, notices */
.knows { list-style: none; margin: 0; padding: 0; }
.knows li a, .knows li.knows-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) 64px 84px 100px; gap: 10px; align-items: center;
  padding: 8px 16px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.knows li.knows-head { padding-top: 10px; padding-bottom: 6px; align-items: end; font-size: 12px; font-weight: 600;
  color: var(--muted); line-height: 1.2; }
.knows .k-num, .knows .k-last { text-align: right; }
.knows li + li a { border-top: 1px solid var(--hair); }
.knows li a:hover { background: var(--hover); }
.knows li.on a { border-left-color: var(--primary); background: var(--hover); }
.knows li.oneway a { opacity: 0.8; }
.knows .k-who { min-width: 0; }
.knows .k-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knows .k-meta { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.knows .k-meta .sep { margin: 0 6px; }
.k-tag { font-size: 12px; font-weight: 600; }
.k-tag.ok { color: var(--primary); } .k-tag.warn { color: var(--magenta-ink); }
.knows .k-num b, .knows .k-last b { font-size: 17px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.rel-card { container-type: inline-size; }
@container (max-width: 560px) {
  .knows li a, .knows li.knows-head { grid-template-columns: 32px minmax(0, 1fr) 64px 88px; }
  .knows .k-num { display: none; }
}
.badge.private { color: var(--ink); border-style: dashed; }
.chip.by-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip.by-chip a { color: inherit; text-decoration: none; font-weight: 700; }
@media (max-width: 640px) {
  .knows li a, .knows li.knows-head { grid-template-columns: 32px minmax(0, 1fr) 64px; }
  .knows .k-num, .knows .k-last { display: none; }
}
/* The sidebar's link to the notices (it looks like the page links above it); magenta when something needs doing */
.notices-link .count { margin-left: auto; min-width: 20px; background: var(--head-line); color: var(--head-ink); }
.notices-link.on .count { background: #d9d9de; color: #0b0b0f; }
.notices-link.urgent .count { background: var(--magenta); color: #ffffff; }
.notice-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); font-size: 14px; }
.notice-line b { color: var(--magenta-ink); }
.notice-actions { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 900px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.notice.notice-action b { color: var(--magenta-ink); }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
td.mb-state small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
tr.left td { opacity: 0.75; }
details.addr { margin-top: 4px; font-size: 13px; }
details.addr summary { cursor: pointer; color: var(--muted); }
details.addr ul { list-style: none; margin: 4px 0; padding: 0; }
details.addr li { display: flex; gap: 8px; align-items: baseline; }
.list.addresses li { padding: 6px 0; }

/* 0.17: the dashboard greeting */
.welcome { margin: 4px 0 20px; }
.welcome h1 { margin: 0 0 4px; }
.welcome-line { margin: 0; color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.welcome-line .sep { margin: 0 8px; color: var(--field); }
.welcome-line a { font-weight: 500; text-decoration: none; }
.welcome-line a:hover { text-decoration: underline; }
.welcome-line .flag { margin-left: 6px; }
/* The Dashboard's cards (0.57): a unit is one card of the library (Insights); the pinned ones are on the Dashboard. */
.dash-unit { margin-bottom: 26px; min-width: 0; scroll-margin-top: var(--top); }
.dash-unit > .card, .dash-unit > .grid.dash-row, .dash-unit > .kpis { margin-bottom: 0; }
.grid.dash-row > .dash-unit { margin-bottom: 0; display: flex; flex-direction: column; }
.grid.dash-row > .dash-unit > .card { flex: 1; display: flex; flex-direction: column; container-type: inline-size; }
.unit-foot { display: flex; justify-content: flex-end; margin: 4px 2px 0; }
.unit-foot button.link { font-size: 13px; }
.lib-bar { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.lib-about { flex: 1 1 240px; color: var(--muted); }
.lib-count { white-space: nowrap; margin-left: 6px; }
.lib-pin { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; }
.icon-btn.pin-btn { color: var(--primary); }
.pin-btn.on .ico { fill: currentColor; }
.pin-btn.on .ico .stem { fill: none; }
.dash-more { margin: 0 0 6px; }
.dash-none { margin-bottom: 16px; }
.lib-ask { margin-top: 34px; }
.lib-ask textarea { display: block; width: 100%; margin: 12px 0; }
.lib-ask-actions { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.lib-ask-more { margin: 10px 0 0; }
.nav-new { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--magenta); color: var(--primary-ink); }

/* 0.17: "Open in Outlook" on your own emails and meetings */
.open-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 2px 0; }
.open-link .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.open-link:hover { color: var(--primary); }
.open-link:hover span { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .activity li { grid-template-columns: 76px minmax(0, 1fr); } .activity li .open-link { grid-column: 2; } }

/* 0.17: Users & roles, who can sign in */
#access ol { margin: 0 0 10px; padding-left: 20px; }
#access li { margin-bottom: 6px; }
.hero + .banner, .banner + .hero { margin-top: 0; }

.banner.points { background: var(--primary-soft); color: var(--ink); gap: 14px; }
.banner.points .pts { font-weight: 600; }
.banner.points > a:not(.btn) { margin-left: auto; font-size: 14px; color: var(--chip-ink); }
h1 .info { font-size: 13px; vertical-align: 10px; margin-left: 8px; }
/* 0.19: company logos */
.logo-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; display: block; }
.logo-tile.none { background: var(--primary-soft); border-color: transparent; color: var(--chip-ink); font-weight: 600; font-size: 13px; }
.logo-tile.s20 { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; } /* two letters in 20px: the one text under 12px */
.logo-tile.s20 img { padding: 1px; }
.logo-tile.s72 { width: 72px; height: 72px; border-radius: 12px; font-size: 26px; }
.logo-tile.s72 img { padding: 8px; }
a.co.with-mark { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
a.co.with-mark > span { display: flex; flex-direction: column; min-width: 0; }
.trend-row a.co.with-mark > span b, .trend-row a.co.with-mark > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.co b .logo-tile.s20, a.co-inline .logo-tile.s20 { vertical-align: -5px; margin-right: 6px; }
a.co-inline { white-space: nowrap; }
.brief-title { display: flex; align-items: center; gap: 12px; }
.logo-section .logo-row { display: flex; align-items: flex-start; gap: 16px; }
.logo-section .logo-row p { margin: 0 0 8px; }
.logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.logo-actions form { margin: 0; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.logo-hint { margin-top: 6px !important; }
.logo-msg:empty { display: none; }
.logo-msg.err { color: var(--magenta-ink); }
.fchip.fixed .info { margin-left: 6px; }


/* ---------- 0.22: archived companies, out-of-date contacts, quiet sync problems ---------- */
.banner.outdated { justify-content: space-between; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.banner-actions .btn.small, .banner-actions form { margin-left: 0; }
.restore-co { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.restore-co .check { font-size: 13px; }
.archive-co .check { display: flex; gap: 6px; align-items: center; padding: 7px 10px; font-size: 13px; }
.archive-co .check input { width: auto; }
.more-panel button.link small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
form.flag-outdated { flex: none; }
form.card-form .up-to-date { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 12px; background: var(--info-bg); color: var(--info-ink); font-size: 14px; }
form.card-form .up-to-date input { width: auto; }
table.outdated td { vertical-align: top; white-space: normal; } /* cells wrap between words so the table fits its card */
table.outdated td .btn, table.outdated td.lookup a { white-space: nowrap; }
table.outdated td small { display: block; font-size: 12px; }
table.outdated td.lookup { font-size: 13px; }
table.outdated td.fix { min-width: 220px; }
table.outdated td.fix > * { margin: 0 6px 6px 0; }
table.outdated td.fix .fix-buttons { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; border: 0; }
details.moved { display: inline-block; position: relative; }
details.moved > summary { list-style: none; cursor: pointer; }
details.moved > summary::-webkit-details-marker { display: none; }
section.card:has(.outdated-wrap), .outdated-wrap { overflow: visible; } /* the "Moved…" form opens over the rows below */
/* Narrow screens: the table scrolls sideways inside its card instead of widening the page; "Moved…" opens in place. */
@media (max-width: 860px) {
  .outdated-wrap { overflow-x: auto; }
  table.outdated { min-width: 760px; }
  .moved-form { position: static; width: auto; min-width: 240px; margin-top: 6px; }
}
.moved-form input:not([type=hidden]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.moved-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; width: 320px; box-sizing: border-box; padding: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.moved-form small { font-size: 12px; white-space: normal; }
.archive-confirm ul { margin: 8px 0 16px; }
.archive-confirm .check { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; }
.archive-confirm .check input { width: auto; }
.synced .sync-issue { color: var(--magenta-ink); text-decoration: none; }
.synced .sync-issue:hover { text-decoration: underline; }

/* Settings */
.theme-form { display: block; padding: 16px 20px 18px; }
.theme-form fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.theme-form legend { font-weight: 600; margin-bottom: 6px; }
.theme-opt { display: flex; gap: 10px; align-items: flex-start; }
.theme-opt input { width: auto; margin-top: 4px; }
.theme-opt small { display: block; font-size: 13px; }

/* 0.22.1: "For" (coaches) sits in the name menu, under who you are */
.menu-panel .as-form { justify-content: space-between; padding: 8px 10px 12px; border-bottom: 1px solid var(--head-line); margin-bottom: 4px; }
.menu-panel .as-form label { display: inline; }
.menu-panel .as-form select { max-width: 190px; }

/* Experience module (0.23) */
table.matters td.wrap, table.deadlines td.wrap { white-space: normal; min-width: 180px; }
/* Marketing lists: a long description wraps in the name column (two lines at most, the rest on hover),
   so the other columns and the Export button stay in view. */
table.lists-table td.wrap { white-space: normal; min-width: 180px; }
table.lists-table td.wrap small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
table.matters td small, table.deadlines td small { display: block; color: var(--muted); font-size: 13px; white-space: normal; }
table.matters td .badge { margin-top: 4px; }
.card.wide-form { max-width: 820px; }
.matter-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 340px); gap: 18px; align-items: start; }
.matter-layout > .wide-form { grid-column: 1; grid-row: 1; margin: 0; }
.matter-guide { grid-column: 2; grid-row: 1; position: sticky; top: 16px; padding: 14px 16px; font-size: 14px; }
.matter-guide > summary { font-weight: 600; font-size: 15px; cursor: pointer; }
.matter-guide ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
@media (min-width: 1101px) { .matter-guide > summary { list-style: none; cursor: default; pointer-events: none; } .matter-guide > summary::-webkit-details-marker { display: none; } }
@media (max-width: 1100px) { .matter-layout { grid-template-columns: minmax(0, 1fr); } .matter-layout > .wide-form, .matter-guide { grid-column: 1; grid-row: auto; position: static; } }
.conf-ring { flex: none; vertical-align: -3px; margin-right: 6px; }
.conf-ring .seg-g { stroke: #1a9c6b; } .conf-ring .seg-y { stroke: #e0a800; } .conf-ring .seg-r { stroke: #d92d20; }
.conf-level { display: inline-flex; align-items: center; margin-right: 6px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.conf-level .conf-ring { vertical-align: 0; }
td .conf-level { display: flex; margin-top: 4px; }
form.card-form .radio-list { display: grid; gap: 10px; }
form.card-form label.radio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
form.card-form label.radio input { width: auto; margin: 3px 0 0; accent-color: var(--primary); }
form.card-form label.radio > span { display: grid; gap: 1px; color: var(--ink); }
form.card-form label.radio small { font-size: 13px; }
.lk[data-team] > .lk-picked { display: grid; gap: 8px; }
.lk-member { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; align-items: center; }
.lk-member .lk-item { justify-self: start; }
form.card-form label > span .info, form.card-form .as-label > span .info { vertical-align: 1px; }
form.card-form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
form.card-form .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
form.card-form legend small { font-weight: 400; }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list > li { padding: 9px 16px; border-bottom: 1px solid var(--hair); }
.people-list > li:last-child { border-bottom: 0; }
.people-list > li a { text-decoration: none; }
.people-list small { display: block; color: var(--muted); font-size: 13px; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions > li { padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.versions > li:last-child { border-bottom: 0; }
.versions p { margin: 4px 0 0; font-size: 14px; }
.dl { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.dl.soon { background: var(--magenta-ink); color: var(--primary-ink); }
.dl.open { background: var(--primary-soft); color: var(--chip-ink); }
.dl.expected, .dl.unknown { border: 1px dashed var(--line); color: var(--muted); }
.dl.closed { color: var(--muted); }
tr.dl-closed td { color: var(--muted); }
table.users .no-access td { color: var(--muted); }
@media (max-width: 760px) { form.card-form .two, form.card-form .three { grid-template-columns: 1fr; } }
.firm-cell { display: inline-flex; align-items: center; gap: 10px; }

/* 0.24 Submissions: upload and review */
.dup { border-top: 1px solid var(--hair); padding: 16px 20px; }
.dup h3 { margin: 0 0 10px; font-size: 16px; }
.dup h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.dup h4 a { font-size: 14px; }
.dup-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dup-col { border: 1px solid var(--line); padding: 12px; min-width: 0; }
.dup .choices { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.dup .desc .pre { font-size: 13px; }
.signals { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0 8px; font-size: 13px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
/* Profiles on Our people (0.56): biography, where each value came from, what the website says beside a typed value */
.person-profile .bio p { margin: 0 0 10px; line-height: 1.55; overflow-wrap: anywhere; }
.person-profile dl.facts { font-size: 14px; gap: 6px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.person-profile .bio + dl.facts, .person-profile .pad > dl.facts:first-child { margin-top: 0; }
.person-profile .pad > dl.facts:first-child { border-top: 0; padding-top: 0; }
.src-note { display: block; color: var(--muted); font-size: 12px; }
.src-note a { color: inherit; }
.person-profile header > a { margin-left: auto; font-size: 13px; }
.bio-other, .web-says { margin: 6px 0 10px; }
.bio-other > summary, .web-says > summary { cursor: pointer; font-size: 13px; color: var(--primary); }
.web-says > summary { color: var(--magenta-ink); }
.web-says[open], .bio-other[open] { padding: 8px 12px; background: var(--hover); border-radius: var(--radius-s); }
.web-says .bio, .bio-other .bio { margin-top: 8px; }
.edit-profile { border-top: 1px solid var(--hair); }
.edit-profile > summary { list-style: none; cursor: pointer; display: inline-flex; margin: 10px 16px; }
.edit-profile > summary::-webkit-details-marker { display: none; }
.edit-profile[open] > summary { background: var(--bg); }
.edit-profile form.card-form { padding: 0 16px 14px; }
.edit-profile textarea { resize: vertical; line-height: 1.5; }
#firm-website .inline-form { padding: 10px 0; border-top: 0; max-width: 560px; }
#firm-website .pad > form { margin: 8px 0; }
/* "Ask the AI about this" above a record (0.60), and the record a new chat is about */
.ask-ai { margin: -6px 0 8px; text-align: right; font-size: 13px; }
.ai-about { margin: 0 0 8px; font-size: 14px; }
/* Firm knowledge (0.58) */
.know-hits { margin: 0; padding: 4px 16px 12px 36px; }
.know-hits li { margin: 10px 0; }
.know-hits p { margin: 4px 0 0; font-size: 14px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.know-text { white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; max-width: 78ch; }
table.know-docs td.wrap small { display: block; overflow-wrap: anywhere; }
table.know-docs td.wrap small a { color: var(--muted); }
#firm-profile textarea { resize: vertical; line-height: 1.5; }
#firm-profile form.card-form { padding: 0 16px 14px; }
#library .chips { margin: 10px 0 4px; }
#library .chip.on { outline: 2px solid var(--primary); }
#try .inline-form { border-top: 0; }
.warn-text { display: block; color: var(--magenta-ink); font-size: 12px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--hair); z-index: 2; }
ol.numbered { padding-left: 2.2em; }
ol.numbered li { list-style: decimal; }
.upload-msg.err, .review-msg.err { color: var(--magenta-ink); }
.review-form td small, table.submissions td small { display: block; color: var(--muted); }
.review-form td select { max-width: 100%; }

/* Small forms on one line */
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input { min-width: 180px; }

/* Look-up fields (0.64, the matter form): a search box, its matches under it, and what was picked above it. */
.lk { position: relative; display: grid; gap: 6px; }
.lk-picked { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lk-picked:empty { display: none; }
.lk-item { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--primary-soft); color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.lk-remove { font-size: 17px; line-height: 1; padding: 0 4px; color: var(--muted); text-decoration: none; }
.lk-remove:hover { color: var(--ink); }
.lk[data-clients] > .lk-picked { display: grid; gap: 6px; }
.lk-client { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lk-client .lk-primary, .lk-client:first-child .lk-make-primary, .lk-client:only-child .lk-primary { display: none; } /* the first client is the primary one */
.lk-client:first-child:not(:only-child) .lk-primary { display: inline-flex; }
.lk[data-firms] > .lk-picked { display: grid; gap: 8px; }
.lk-firm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.lk-firm .lk-item { justify-self: start; }
.lk-results { list-style: none; margin: 0; padding: 4px; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 300px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }
.lk-results button { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: var(--radius-s); background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.lk-results button:hover, .lk-results button:focus-visible { background: var(--hover); }
.lk-results button[disabled] { opacity: 0.5; cursor: default; }
.lk-results small { font-size: 12px; }
.lk-none { padding: 7px 10px; font-size: 14px; }
.lk-suggest { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lk-add { border-top: 1px solid var(--hair); margin-top: 4px; padding-top: 4px; }
.lk-add button { color: var(--primary-dark); font-weight: 600; }
.lk-new { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--hover); }
.lk-new-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lk-new-similar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.lk-new-similar p { margin: 0; flex-basis: 100%; }
.lk-new-msg { color: var(--magenta-ink); font-size: 13px; }
@media (max-width: 640px) { .lk-firm, .lk-new-fields { grid-template-columns: 1fr; } }
table.draft td small { display: block; color: var(--muted); }
table.draft td.row-actions { white-space: nowrap; }
table.draft td.row-actions form { display: inline-block; margin-right: 6px; }
table.draft td form .btn { margin-top: 4px; }

/* ---------- The search box (0.55): one at the top of every signed-in page, above the content; "/" puts the cursor in it
   (public/app.js). Help is the small "?" beside it (0.38). ---------- */
.page-search { display: flex; align-items: center; gap: 10px; max-width: 1240px; margin: 0 auto; padding: 16px 24px 0; }
.page-search.wide { max-width: 1520px; }
.search-form { position: relative; flex: 1; display: flex; max-width: 560px; }
.search-form svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.page-search .search-form input[type=search] { width: 100%; padding: 8px 40px 8px 38px; font-size: 14px; }
.search-form kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--muted);
  font: 12px/18px var(--sans); pointer-events: none; }
.search-form input:focus + kbd { display: none; }
.help-link { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); text-decoration: none; }
.help-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-link svg circle { fill: currentColor; stroke: none; }
.help-link:hover, .help-link:focus-visible, .help-link.on { color: var(--primary); border-color: var(--primary); }
@media (max-width: 860px) { .page-search { padding: 12px 16px 0; } .search-form kbd { display: none; } }
/* 0.38: a menu entry that holds two pages shows them as tabs (Mailboxes & access; Documentation) */
.entry-tabs { margin-bottom: 18px; }
table.users td.num, table.users th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } /* 0.42: Our people's list is Users & roles */
table.users tr.left td { opacity: 0.7; }
table.users a.u-name { text-decoration: none; }
table.users a.u-name:hover b { color: var(--primary); }
a.rel-co { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
a.rel-co:hover span { color: var(--primary); }

/* 0.29: contacts without an email: the duplicate warning on New contact, the merge offer on Add email, "No email" in lists */
.banner.similar, .banner.merge-offer { align-items: flex-start; }
.banner.similar > div, .banner.merge-offer > div { flex: 1; min-width: 0; }
.banner.similar .btn.small, .banner.merge-offer .btn.small { margin-left: 0; }
.similar-list { list-style: none; margin: 8px 0; padding: 0; }
.similar-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 4px 0; border-top: 1px solid var(--hair); }
.similar-list li:first-child { border-top: 0; }
.merge-offer form.inline { display: inline-block; margin: 6px 8px 0 0; }
.merge-offer small { display: block; }
.person small .no-email, .no-email-note { font-style: italic; }

/* 0.30: the help link on the sign-in page */
.hero .help-line { margin: 18px 0 0; font-size: 14px; }
.hero .help-line a:not(.btn) { color: var(--head-ink); opacity: 0.75; }
.hero .help-line a:hover, .hero .help-line a:focus { opacity: 1; }

/* Matters to and from Excel (0.32): the import review */
table.mio-review td { vertical-align: top; }
table.mio-review td.wrap small { display: block; }
table.mio-review .err-text { color: var(--magenta-ink); font-weight: 600; }
table.mio-review tr.mio-error td, table.mio-review tr.mio-same td { color: var(--muted); }
table.mio-review td.small div + div { margin-top: 2px; }
.mio-cancel { margin-top: 8px; }

/* The AI assistant (0.34) */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ai-main { min-width: 0; }
.ai-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ai-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ai-intro { margin-bottom: 16px; }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ai-examples .btn { text-align: left; white-space: normal; font-family: inherit; font-weight: 500; }
.ai-conversation { display: grid; gap: 14px; margin-bottom: 16px; }
.ai-turn { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.ai-who { font-weight: 700; font-size: 13px; color: var(--muted); padding-top: 3px; }
.ai-q .ai-text { background: var(--neutral); border-radius: var(--radius); padding: 10px 14px; }
.ai-a .ai-text { border-left: 3px solid var(--primary-mid); padding: 2px 0 2px 14px; }
.ai-text > :first-child { margin-top: 0; }
.ai-text > :last-child { margin-bottom: 0; }
.ai-text p, .ai-text ul, .ai-text ol { margin: 0 0 10px; }
.ai-text h3, .ai-text h4 { margin: 14px 0 6px; }
.ai-text .table-wrap { margin: 6px 0 12px; border: 1px solid var(--line); background: var(--panel); }
.ai-text table td, .ai-text table th { white-space: normal; }
.ai-used { margin-top: 6px; }
.ai-dots { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: ai-pulse 1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes ai-pulse { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-dots { animation: none; } }
.ai-ask textarea { width: 100%; font-size: 15px; color: var(--ink); resize: vertical; }
.ai-ask .form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ai-sent { margin-top: 12px; }
.ai-chat-list { list-style: none; margin: 0; padding: 0; }
.ai-chat-list li { display: flex; align-items: stretch; border-bottom: 1px solid var(--hair); }
.ai-chat-list li a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 9px 4px 9px 16px; color: var(--ink); text-decoration: none; }
.ai-chat-list li form { margin: 0; display: flex; }
.ai-chat-del { padding: 0 14px; font-size: 20px; line-height: 1; color: var(--muted); text-decoration: none; }
.ai-chat-del:hover, .ai-chat-del:focus-visible { color: var(--magenta-ink); background: var(--magenta-soft); }
.ai-chat-list li.on { background: var(--primary-soft); }
.ai-chat-list li a span { overflow-wrap: anywhere; }
.ai-chat-list li a:hover, .ai-chat-list li.on a { background: var(--primary-soft); }
.ai-settings { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-top: 12px; }
.ai-settings label { display: grid; gap: 4px; font-size: 14px; min-width: 0; max-width: 100%; }
.ai-settings label:first-child { flex: 1 1 240px; }
.ai-settings select { width: 100%; max-width: 100%; }
.ai-settings input { width: 110px; }
@media (max-width: 860px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-turn { grid-template-columns: 1fr; gap: 4px; }
}

/* Smart Touchpoints (0.35), at the top of Next steps */
.touchpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.touchpoint label { display: flex; align-items: center; gap: 8px; }
.touchpoint .tp-name { font-weight: 700; font-size: 13px; }
.touchpoint small { flex: 1 1 100%; }

/* Marketing lists (0.36): search, category filter, category label */
.list-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.list-filter input[type=search] { flex: 1 1 200px; min-width: 0; }
.list-filter select { max-width: 100%; }
a.list-cat { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 14px; }
a.list-cat:hover { color: var(--primary); text-decoration: underline; }

/* Contact enrichment (0.37) */
.find-web { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
#enrich-auto form { margin: 0 0 12px; }

/* ---------- Contacts list (0.40): Status chip, My priorities, activity columns, selection toolbar ---------- */
.status-chip { display: inline-flex; align-items: center; gap: 2px; }
.status-chip .info { margin-left: 4px; }
button.fchip { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
button.fchip.fixed:hover { border-color: var(--primary); color: var(--primary); }
button.fchip .caret, summary.fchip .caret { width: 14px; height: 14px; stroke-width: 2.4; margin-left: 2px; }
/* View beside Status on Contacts (0.73): the same chip, opening a two-line menu. */
summary.fchip { font-size: 13px; font-weight: 600; }
summary.fchip.fixed:hover, .view-drop[open] > summary.fchip { border-color: var(--primary); color: var(--primary); }
.view-drop .more-panel { left: 0; right: auto; width: 290px; max-width: calc(100vw - 32px); z-index: 15; }
.view-drop .more-panel a[aria-current] { font-weight: 600; background: var(--bg); }
.fchip-x { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 16px; }
.fchip-x:hover { background: var(--neutral); color: var(--ink); text-decoration: none; }
.fgroup + .fgroup { border-top: 1px solid var(--hair); margin-top: 6px; padding-top: 2px; }
.fmatch + .fgroup { border-top: 0; }
.fgroup.flat .fopts { padding-left: 14px; max-height: none; }
.fgroup.flat h4 { display: flex; align-items: center; }
.fopt .fico { display: inline-flex; flex: none; color: var(--ink); }
.fopt .fico .ico { width: 15px; height: 15px; }
.fopt .fico.key .ico, .fopt .fico.growth .ico { fill: currentColor; }
.fopt .fico.growth .ico .stem { fill: none; }
.fopt .fico.key { color: var(--magenta); }
.fopt .fico.growth { color: var(--primary); }
table.contacts .th-ico { display: inline-flex; align-items: center; gap: 4px; }
table.contacts .th-ico .ico { width: 13px; height: 13px; color: var(--muted); }
table.contacts th.n .th-ico { justify-content: flex-end; }
table.contacts td.act { font-variant-numeric: tabular-nums; }
table.contacts td.act.zero { color: var(--muted); opacity: 0.6; }
table.contacts td.act.hi { font-weight: 700; }
table.contacts td.last-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* How recent (0.42): three thin bars of rising height, like a signal; three this month, two in the last three months, one longer. */
/* Long names, addresses and company names (0.42): cut with "…" (the whole text on hover), so the columns fit the screen. */
table.contacts td.c-who { max-width: 290px; }
table.contacts td.c-org { max-width: 230px; }
table.contacts td.c-who .person b, table.contacts td.c-who .person small,
table.contacts td.c-org a.co b, table.contacts td.c-org a.co small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.contacts td.c-org a.co { min-width: 0; }
@media (max-width: 1240px) { /* a smaller window or a zoomed page: narrower names */
  table.contacts td.c-who { max-width: 220px; }
  table.contacts td.c-org { max-width: 170px; }
  table.contacts th, table.contacts td { padding-left: 8px; padding-right: 8px; }
}
.next-meet { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--chip-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.next-meet .ico { width: 13px; height: 13px; }
form.bulk-form { overflow: visible; }
.bulk-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bulk-actions[hidden] { display: none; }
.bulk-more .more-panel { width: 260px; z-index: 15; left: 0; right: auto; }
.bulk-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: var(--primary-soft); border-bottom: 1px solid var(--hair); }
.bulk-step[hidden] { display: none; }
.bulk-step fieldset { border: 0; margin: 0; padding: 0; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.bulk-step fieldset[hidden] { display: none; }
.bulk-step input[name=tag], .bulk-step input[name=company] { width: 220px; }
@media (max-width: 640px) {
  .bulkbar [data-count] { flex-basis: 100%; }
  .bulk-step input[name=tag], .bulk-step input[name=company] { width: 100%; }
}

/* ---------- Contact page (0.40): header actions, relationship first, tabs, Business development, pop-ups ---------- */
.biz-actions form { display: inline-flex; }
.private-toggle .btn .ico { width: 14px; height: 14px; }
.private-toggle .btn.on { background: var(--neutral); }
.biz-role { color: var(--ink); font-size: 16px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.bizcard p.biz-role a { color: var(--ink); font-weight: 500; text-decoration: none; }
.bizcard p.biz-role a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.biz-role .sep { margin: 0 8px; color: var(--muted); }
.li-link { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border: 1px solid currentColor; border-radius: 999px; color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 20px; }
p.biz-lines a.li-link:hover, .co-id a.li-link:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.li-link.li-search { color: var(--muted); font-weight: 500; }
.sug-what > b a.li-link, .sug-what .muted a.li-link { margin-left: 8px; color: var(--primary); font-size: 12px; line-height: 18px; vertical-align: 1px; }
.sug-what > b a.li-link.li-search, .sug-what .muted a.li-link.li-search { color: var(--muted); }
.sug-what > b a.li-link:hover, .sug-what .muted a.li-link:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); text-decoration: none; } /* no profile stored: a search on LinkedIn, quieter */
.more-addr { font-size: 13px; }
.card-tabs { margin: 0; padding: 0 8px; background: var(--hover); align-items: center; }
.card-tabs a { padding: 9px 10px; font-size: 14px; }
.card-tabs > .info { margin-left: auto; margin-right: 8px; }
.tab-panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.rel-summary { padding-bottom: 6px; }
.person-main .rel-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.knows li.yours a { border-left-color: var(--primary); }
.knows li.nobox .k-strength small { font-size: 12px; }
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
dialog.modal::backdrop { background: rgba(11, 11, 15, 0.45); }
dialog.modal > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--hair); }
dialog.modal > header h2 { margin: 0; font-size: 18px; }
.modal-x { background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--ink); }
.modal-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.modal-body .list.emails, .modal-body .list.results { margin: 0; }
.modal-body .inline-form { padding: 0; border-top: 0; }
@media (max-width: 640px) {
  .person-main .rel-stats { grid-template-columns: 1fr 1fr; }
  .card-tabs a { padding: 8px 8px; font-size: 13px; }
}

/* ---------- Company page: the logo as tall as the name block; the numbers as one strip; drop-downs on its form ---------- */
/* The logo tile is square and as tall as the block beside it (name, domains, badges, marks): app.js measures that block
   into --logo; until it has (or without scripts) the tile is 112px. Never wider than a third of the header. */
.co-profile { align-items: flex-start; flex-wrap: nowrap; }
.co-profile .co-id { flex: 1 1 auto; min-width: 0; }
.co-profile h1 { overflow-wrap: anywhere; }
.logo-tile.co-logo { --side: clamp(72px, var(--logo, 112px), 168px); width: var(--side); height: var(--side); border-radius: 12px; font-size: calc(var(--side) * 0.34); }
.logo-tile.co-logo img { padding: 9%; }
.co-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.co-stat { padding: 9px 16px 10px; min-width: 0; }
.co-stat + .co-stat { border-left: 1px solid var(--hair); }
.co-stat p { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.co-stat-head span { color: var(--muted); font-size: 13px; font-weight: 500; }
.co-stat-head b { font-size: 18px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.co-stat-line { color: var(--muted); font-size: 12px; line-height: 1.5; }
.co-stat-line span:last-child { color: var(--ink); white-space: nowrap; }
/* A multi-choice field as a drop-down (company type, industry): a <details> whose summary looks like a select and shows
   what is ticked; the checkboxes open below it, in the form's flow (no card cuts them off), scrolling when long. */
.multi-drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 7px 10px; font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--field); border-radius: var(--radius-s); }
.multi-drop > summary::-webkit-details-marker { display: none; }
.multi-drop > summary::after { content: ""; flex: none; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.multi-drop[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.multi-drop > summary:hover { border-color: var(--primary); }
.multi-drop > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.multi-drop[open] > summary { border-color: var(--primary); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.multi-val { min-width: 0; overflow-wrap: anywhere; }
.multi-val.none { color: var(--muted); }
.multi-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; max-height: 248px; overflow-y: auto; padding: 6px; background: var(--panel);
  border: 1px solid var(--primary); border-top: 0; border-radius: 0 0 var(--radius-s) var(--radius-s); }
form.card-form .multi-panel label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
form.card-form .multi-panel label:hover { background: var(--hover); }
form.card-form .multi-panel label > span { color: var(--ink); }
form.card-form .multi-panel input[type=checkbox] { flex: none; width: 16px; margin: 0; padding: 0; }
@media (max-width: 860px) {
  .co-profile { flex-wrap: wrap; }
  .co-profile .co-id { flex-basis: 0; }
  .co-profile .profile-actions { flex-basis: 100%; }
  .logo-tile.co-logo { --side: clamp(64px, var(--logo, 88px), 96px); }
  .co-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-stat:nth-child(odd) { border-left: 0; }
  .co-stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* The BD plan (0.86): Strategy, Focus lists, Signals (views-bd.js). */
.bd-part { margin: 22px 0 10px; }
.bd-part h2 { margin: 0 0 2px; font-size: 18px; }
.bd-part p { margin: 0; font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
.plan-grid .card { scroll-margin-top: var(--top); }
.field-block { padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.field-block:last-child { border-bottom: 0; }
.field-block > h3 { margin: 0 0 6px; font-size: 14px; }
.field-block p { margin: 0; }
.field-block ul { margin: 0; padding-left: 18px; }
.field-block li { margin: 2px 0; }
.field-block .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field-block .gap { color: var(--muted); font-style: italic; }
.dims { display: grid; gap: 6px; }
.dim { display: grid; grid-template-columns: minmax(130px, 170px) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
form.card-form label.dim { grid-template-columns: minmax(130px, 200px) 90px; color: var(--ink); }
.pips { display: flex; gap: 3px; }
.pips i { width: 18px; height: 8px; background: var(--line); }
.pips i.on { background: var(--primary); }
table.focus td small { display: block; color: var(--muted); font-size: 13px; }
table.focus .next b { display: block; font-weight: 500; }
table.focus .next small.late { color: var(--magenta-ink); }
table.focus .mark-toggles { display: inline-flex; gap: 4px; }
.focus-add { margin-bottom: 14px; }
.focus-add form.card-form { max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.sug-growth .sug-kind i { background: var(--primary); }
/* A signal has two actions and Not now: they sit together at the end of the row. */
.dash-list.suggest.bd-signals { grid-template-columns: 10rem minmax(0, 1fr) auto; }
.dash-list.bd-signals .dash-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
  .dim { grid-template-columns: minmax(110px, 1fr) auto auto; }
}
@container (max-width: 640px) {
  .dash-list.suggest.bd-signals { grid-template-columns: minmax(0, 1fr); }
  .dash-list.bd-signals .dash-actions { justify-content: flex-start; }
}

/* The AI mark (0.89; made quiet in 0.90.1: Steven found yellow rows and buttons off-brand). Everything that is AI carries
   a small gold spark and, where it is a row or a panel, a thin gold edge: gold is an accent, never a fill. Teal stays
   the only filled action colour. --ai: the edge and the spark in the menu; --ai-ink: the gold as text or as a mark on
   white; --ai-line: the outline of an AI button or badge. Not a status colour. */
:root { --ai: #b8891f; --ai-ink: #7a5600; --ai-line: #d9c48a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="paper"]) { --ai: #d9b25a; --ai-ink: #e6c987; --ai-line: #6b5a2a; }
}
:root[data-theme="dark"] { --ai: #d9b25a; --ai-ink: #e6c987; --ai-line: #6b5a2a; }
.ai-ico { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; color: var(--ai-ink); vertical-align: -3px; margin-right: 5px; }
.btn.ai-btn { background: var(--panel); border-color: var(--ai-line); color: var(--ink); }
.btn.ai-btn:hover { background: var(--hover); border-color: var(--ai); color: var(--ink); }
.btn.ai-btn .ai-ico { color: var(--ai-ink); margin-right: 0; }
a.ai-link { color: var(--ai-ink); }
.side a[href="/ai"] svg { color: var(--ai); }
h2 > .ai-ico { width: 18px; height: 18px; }
/* A row Claude wrote: a thin gold edge and the spark, on the same white as every other row. */
.dash-list > li.sug-ai { box-shadow: inset 3px 0 0 var(--ai); }
.sug-ai .sug-kind { color: var(--ai-ink); }
.sug-ai .sug-kind i { display: none; }
.sug-ai .sug-what .muted a { color: inherit; }
.ai-state { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-bottom: 1px solid var(--hair); }
.ai-state > span { display: inline-flex; align-items: flex-start; color: var(--muted); }
.ai-state form { margin: 0; }
.card.intel { border-top: 2px solid var(--ai); }
/* Pause and delete on a signal: two quiet icon buttons. */
.sig-aside { display: inline-flex; gap: 2px; margin: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-s); background: none; color: var(--muted); cursor: pointer; }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--neutral); color: var(--ink); }
.icon-btn.danger:hover, .icon-btn.danger:focus-visible { background: var(--magenta-soft); color: var(--magenta-ink); }

/* The BD plan's Strategy tab (0.90): tinted card headers in Tyde's soft teal, a number badge, answered marks, a progress bar. */
.plan-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; font-size: 14px; }
.plan-progress .bar { flex: 1; max-width: 360px; height: 8px; border-radius: 999px; background: var(--neutral); overflow: hidden; }
.plan-progress .bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.plan-progress b { font-weight: 600; }
.bd-part h2 { padding-left: 10px; border-left: 4px solid var(--primary); }
.plan-card { overflow: hidden; }
.card.plan-card > header.plan-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ok-bg); border-bottom: 1px solid var(--hair); }
.plan-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--ok-ink); font-weight: 700; font-size: 16px; }
.plan-card.complete .plan-n { background: var(--primary); color: var(--primary-ink); }
.plan-title { flex: 1; min-width: 0; }
.plan-title h2 { margin: 0; font-size: 17px; color: var(--ok-ink); }
.plan-title small { display: block; color: var(--ok-ink); font-size: 13px; }
.plan-head .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plan-head .actions form { margin: 0; }
.field-block > h3 { display: flex; align-items: center; gap: 8px; }
.field-block .state { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--weak); box-sizing: border-box; }
.field-block.done .state { border: 0; background: var(--primary); position: relative; }
.field-block.done .state::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 3.5px; height: 7px; border: solid var(--primary-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.coach-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; background: var(--hover); border-top: 1px solid var(--hair); font-size: 14px; }
.coach-cta p { margin: 0; color: var(--muted); flex: 1; min-width: 220px; }
/* What the AI drafted (bd-draft.js): the note above the form, the mark on a field it filled, its reasons. */
.ai-note { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ai); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; scroll-margin-top: var(--top); }
.ai-note p { margin: 0; display: flex; align-items: flex-start; flex: 1; min-width: 240px; }
.ai-note form { margin: 0; }
.badge.ai { background: none; color: var(--ai-ink); border-color: var(--ai-line); display: inline-flex; align-items: center; }
.badge.ai .ai-ico { width: 12px; height: 12px; margin-right: 4px; }
.ai-why { margin-top: 8px; padding: 8px 12px; background: var(--hover); border-left: 3px solid var(--ai); font-size: 13px; }
.ai-why ul { margin: 4px 0 0; padding-left: 18px; }
.focus-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.focus-tools .focus-add { margin-bottom: 0; }
@media (max-width: 700px) {
  .card.plan-card > header.plan-head { flex-wrap: wrap; }
  .plan-head .actions { width: 100%; justify-content: flex-start; }
}

/* Getting started (0.92): the progress block on Home. Teal only; a step reached is a filled tick. */
.getting-started { margin-bottom: 20px; padding: 18px 20px; }
.gs-head { display: flex; align-items: center; gap: 16px; }
.gs-title { flex: 1 1 auto; min-width: 0; }
.gs-title h2 { margin: 0 0 2px; font-size: 18px; }
.gs-ring { width: 64px; height: 64px; flex: none; }
.gs-ring circle { fill: none; stroke-width: 6; }
.gs-ring-bg { stroke: var(--primary-soft); }
.gs-ring-fg { stroke: var(--primary); stroke-linecap: round; }
.gs-ring text { font-size: 17px; font-weight: 700; fill: var(--ink); }
.gs-ring-of { font-size: 11px; font-weight: 500; fill: var(--muted); }
.gs-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.gs-stage h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.gs-stage h3 small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.gs-stage.all h3 small { color: var(--primary); }
.gs-stage ul { list-style: none; margin: 0; padding: 0; }
.gs-stage li { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: 14px; line-height: 1.35; }
.gs-mark { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--field); display: inline-flex; align-items: center; justify-content: center; }
.gs-stage li.done .gs-mark { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.gs-mark .ico { width: 12px; height: 12px; stroke-width: 3; }
.gs-stage li.done { color: var(--muted); }
.gs-stage li.fresh { color: var(--ink); font-weight: 600; }
.gs-n { color: var(--muted); white-space: nowrap; }
.gs-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.gs-stage li form { margin: 2px 0 0; }
.getting-started.complete { padding: 12px 20px; }
.getting-started.complete .gs-ring { width: 44px; height: 44px; }
@media (max-width: 860px) { .gs-stages { grid-template-columns: 1fr; gap: 14px; } }

/* The AI assistant on Home (0.93): a white card with the gold spark and a thin gold edge; the Ask button stays teal. */
.ai-home { margin-bottom: 20px; border-left: 3px solid var(--ai); }
.ai-home header h2 { display: flex; align-items: center; gap: 8px; }
.ai-home header .ai-ico { color: var(--ai-ink); width: 18px; height: 18px; }
.ai-home-ask { display: flex; gap: 10px; padding: 14px 18px 16px; margin: 0; }
.ai-home-ask input { flex: 1 1 auto; min-width: 0; font-size: 15px; }
/* Ask Tyde as Home's third tab (0.107): the spark beside its name; the ⓘ beside the title holds three short parts. */
.entry-tabs a .ai-ico { width: 15px; height: 15px; margin-right: 6px; }
.info.ai-how .tip { width: 340px; }
@media (max-width: 600px) { .info.ai-how .tip { width: 270px; } }
.firm-settings { max-width: 820px; margin-top: 16px; }
@media (max-width: 600px) { .ai-home-ask { flex-direction: column; } }

/* The sign-in page: the wallpaper (a still; app.js fades the loop in over it) behind a dark glass panel. Dark in every theme. */
.signin-bg { position: fixed; inset: 0; z-index: 0; background: #0b2a36 url(/img/signin-waves.jpg) center / cover no-repeat; }
.signin-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s linear; }
.signin-bg video.on { opacity: 1; }
.signin-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 15, 0.55), rgba(11, 11, 15, 0.25) 45%, rgba(11, 11, 15, 0.6)); }
body:has(.signin-bg) header.top-strip { position: relative; z-index: 2; background: transparent; }
.signin-motion { position: fixed; right: 16px; bottom: 16px; z-index: 2; padding: 6px 12px; font: inherit; font-size: 13px; color: #ffffff; background: rgba(11, 11, 15, 0.55); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; cursor: pointer; }
.signin-by { position: fixed; left: 16px; bottom: 16px; z-index: 2; padding: 7px 0; font-size: 13px; color: #ffffff; opacity: 0.8; text-decoration: none; text-shadow: 0 1px 3px rgba(11, 11, 15, 0.7); }
.signin-by:hover, .signin-by:focus-visible { opacity: 1; text-decoration: underline; }
.signin-motion:hover, .signin-motion:focus-visible { background: rgba(11, 11, 15, 0.85); border-color: #ffffff; }
body:has(.signin-bg) .page { position: relative; z-index: 1; }
.hero.signin { max-width: 560px; margin: 12vh auto 0; padding: 44px 44px 36px; background: rgba(11, 11, 15, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12); }
.hero.signin::before { display: none; }
.hero.signin h1 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
.hero.signin p { font-size: 17px; color: #e6e8ee; max-width: 30em; }
/* Microsoft's guideline for a sign-in button: white, a grey edge, square corners, 41 px high, Segoe UI 15 px semibold */
.hero.signin .btn.ms-signin { display: inline-flex; align-items: center; height: 41px; margin: 14px 0 6px; padding: 0 12px; background: #ffffff; border: 1px solid #8c8c8c; border-radius: 0; color: #5e5e5e; font-family: 'Segoe UI', Roboto, sans-serif; font-size: 15px; font-weight: 600; }
.hero.signin .btn.ms-signin img { display: block; margin-right: 12px; }
.hero.signin .btn.ms-signin:hover, .hero.signin .btn.ms-signin:focus-visible { background: #f3f3f3; border-color: #8c8c8c; color: #2f2f2f; }
.hero.signin .help-line { margin: 22px 0 0; font-size: 14px; color: var(--head-muted); }
.hero.signin .help-line a:not(.btn) { color: var(--head-ink); opacity: 1; text-decoration: underline; }
body:has(.signin-bg) header.top-strip { min-height: 88px; }
body:has(.signin-bg) header.top-strip .brand { height: 88px; }
body:has(.signin-bg) .brand img { height: 48px; }
body:has(.signin-bg) .brand .beta { margin-top: 22px; }
@media (max-width: 600px) {
  .hero.signin { margin-top: 6vh; padding: 32px 24px 28px; }
  .hero.signin h1 { font-size: 34px; }
}

/* Coaching (0.99): one line per lawyer. */
.coaching-table td small { display: block; color: var(--muted); font-size: 13px; }
.coaching-table td.num small { display: inline; margin-left: 6px; }
.coaching-table .coach-open button.link { color: var(--primary); font-weight: 600; font-size: inherit; text-decoration: none; padding: 0; text-align: left; }
.coaching-table .coach-open button.link:hover { text-decoration: underline; }
.coaching-table .coach-bar { display: inline-block; width: 84px; height: 6px; border-radius: 999px; background: var(--neutral); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.coaching-table .coach-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.coaching-table .coach-of { color: var(--muted); font-size: 14px; white-space: nowrap; }
.coaching-table td.num small.coach-late { color: var(--magenta-ink); font-weight: 500; }
.coaching-table td.num small.coach-won { color: var(--chip-ink); font-weight: 500; }

/* BD plan, tidier (0.102): a field without an answer is one line with its hint behind the (i); Play AI; what the AI filled in. */
.field-block.unanswered { padding: 9px 16px; }
.field-block.unanswered > h3 { margin: 0; font-weight: 500; color: var(--muted); }
.field-block > h3 .badge.ai { margin-left: auto; font-weight: 500; }
.plan-count { margin-left: 4px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: .75; }
.bd-part h2 { display: flex; align-items: center; gap: 8px; }
.plan-progress { flex-wrap: wrap; margin-bottom: 0; }
.plan-progress small { margin-left: auto; }
.btn.ai-btn.play { display: inline-flex; align-items: center; gap: 6px; }
.btn.ai-btn .play-ico { width: 12px; height: 12px; fill: var(--ai-ink); stroke: var(--ai-ink); }
.btn.working { opacity: .7; cursor: progress; }
form.start-over { margin: 14px 0 0; }
.ai-fill { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 9px 16px; border-bottom: 1px solid var(--hair); box-shadow: inset 3px 0 0 var(--ai); font-size: 14px; }
.ai-fill > span:first-child { display: inline-flex; align-items: flex-start; flex: 1; min-width: 220px; }
.ai-fill b { font-weight: 600; }
.ai-fill-actions { display: inline-flex; align-items: center; gap: 12px; }
.ai-fill form { margin: 0; }
.ai-fill.card { margin-bottom: 14px; border-bottom: 0; scroll-margin-top: var(--top); }
table.mini small.why { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
table.focus td small.focus-why { display: flex; align-items: flex-start; margin-top: 3px; max-width: 46ch; }
.focus-why .ai-ico { width: 13px; height: 13px; margin: 2px 5px 0 0; }
.focus-why b { color: var(--ai-ink); font-weight: 600; }
.focus-tools { align-items: center; }
.focus-tools .add-activity { border-bottom: 0; background: none; }
.focus-tools .add-activity > summary { margin: 0; }
.focus-tools .add-activity[open] { flex-basis: 100%; }
table.focus td small.focus-why { white-space: normal; min-width: 240px; }

/* The BD plan's questionnaire (0.103): statements and choices as pills. */
.card-form.sv h3 { margin: 18px 0 2px; font-size: 15px; }
.card-form.sv h3:first-child { margin-top: 0; }
.sv-q { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.sv-q > p { margin: 0 0 8px; font-weight: 500; }
.sv-q > p small { font-weight: 400; }
.sv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-pills + .sv-pills { margin-top: 8px; }
.card-form .sv-pills label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; margin: 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 13.5px; font-weight: 400; cursor: pointer; }
.card-form .sv-pills label span { margin: 0; font-weight: 400; color: inherit; }
.card-form .sv-pills input { width: auto; margin: 0; accent-color: var(--primary); }
.card-form .sv-pills label:has(input:checked) { border-color: var(--primary); background: var(--ok-bg); color: var(--ok-ink); }
.card-form .sv-pills label:focus-within { outline: 2px solid var(--primary); outline-offset: 1px; }
.sv-goals { display: grid; gap: 6px; max-width: 520px; }
.card-form label.sv-goal { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 12px; margin: 0; }
.card-form label.sv-goal span { margin: 0; font-weight: 400; }
.sv-notes { max-width: 760px; margin: 0 0 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 14px; }
.sv-notes ul { margin: 6px 0 0; padding-left: 18px; }
.sv-notes li b { font-weight: 500; color: var(--muted); }
.field-block.said p { font-size: 14px; }
.field-block.said b { font-weight: 600; }
/* Introduction (0.44, src/views-intro.js + public/intro.js): the first tab of Documentation. Black "stage" boxes open
   and close it; Paper scenes in between, one idea each. Class names start with in- (shared names like .chip are taken).
   Since 0.55 in the app's look: Roboto, sentence case, teal accents; magenta only for what needs attention and the meetings. */
.intro { --info-ink: var(--chip-ink); --in-tile: #15151e; --in-tile2: #1e1e29; --in-ink-soft: #d4d7e2; display: grid; gap: 0; position: relative; }
.in-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.in-logo { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.intro h1, .intro h2, .intro h3 { font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
.intro h2 { font-size: clamp(26px, 3.4vw, 38px); }
.intro h3 { font-size: 19px; line-height: 1.25; }
.intro p { margin: 0; }
.in-eyebrow { font-weight: 600; font-size: 14px; color: var(--muted); }
.in-stage .in-eyebrow { color: var(--head-muted); }
.in-lede { font-size: 17px; color: var(--muted); max-width: 62ch; }
.in-stage { background: var(--head); color: var(--head-ink); border-radius: var(--radius); padding: 48px 44px 30px; position: relative; display: grid; gap: 20px; }
.in-stage .in-lede { color: var(--in-ink-soft); }
.in-stage h1 em, .in-stage h2 em { font-style: normal; color: var(--on-dark-link); }
.in-hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; line-height: 1.05; max-width: 17ch; }
.in-flow { position: relative; margin-top: 6px; border: 1px solid var(--head-line); border-radius: var(--radius); background: var(--in-tile); }
.in-flow canvas { display: block; width: 100%; height: clamp(260px, 34vw, 400px); }
.in-flow-labels { position: absolute; inset: 12px 14px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; pointer-events: none; }
.in-flow-labels span { font-weight: 600; font-size: 13px; color: var(--head-muted); }
.in-flow-labels span:nth-child(2) { text-align: right; }
.in-play { position: absolute; right: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--sans); color: var(--head-muted); background: var(--in-tile); border: 1px solid var(--head-line); border-radius: 6px; padding: 6px 10px 6px 8px; cursor: pointer; }
.in-play::before { content: ''; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.in-play.paused { color: var(--head-ink); border-color: var(--on-dark-link); }
.in-play.paused::before { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--on-dark-link); }
.in-play:hover { color: var(--head-ink); border-color: var(--head-muted); }
.in-legend { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 14px; font-size: 12px; color: var(--head-muted); pointer-events: none; }
.in-legend i { display: inline-block; width: 10px; height: 7px; border-radius: 1px; margin-right: 6px; vertical-align: 1px; background: var(--on-dark-link); }
.in-legend .mt i { background: var(--magenta); width: 8px; height: 8px; border-radius: 50%; }
.in-legend .dt i { width: 14px; height: 10px; border-radius: 2px; background: var(--head-ink); box-shadow: inset 3px 0 0 var(--on-dark-link); }
.in-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--head-line); margin-top: 8px; }
.in-stats div { padding: 18px 18px 6px 0; display: grid; gap: 2px; align-content: start; min-width: 0; }
.in-stats div + div { padding-left: 18px; border-left: 1px solid var(--head-line); }
.in-stats b { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.in-stats div:last-child b { color: var(--on-dark-link); }
.in-stats span { font-size: 14px; color: var(--head-muted); }
.in-note { font-size: 12px; color: var(--head-muted); }

.in-scene { padding: 72px 0; display: grid; gap: 0; }
.in-scene + .in-scene { border-top: 1px solid var(--line); }
.in-head { display: grid; gap: 12px; margin-bottom: 36px; }
.in-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.in-side { display: grid; gap: 12px; min-width: 0; }
.in-tag { font-weight: 600; font-size: 14px; color: var(--muted); }
.in-tyde .in-tag { color: var(--primary); }
.in-pane { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.in-tyde .in-pane { border-color: var(--primary); }
.in-pane h3 { font-size: 19px; margin-bottom: 14px; }
.in-ff { display: grid; gap: 4px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.in-box { height: 36px; border: 1px solid var(--field); border-radius: 6px; background: var(--bg); position: relative; }
.in-caret::after { content: ''; position: absolute; left: 10px; top: 8px; width: 2px; height: 18px; background: var(--ink); animation: in-blink 1.1s steps(1) infinite; }
@keyframes in-blink { 50% { opacity: 0; } }
.in-stale { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.in-stale::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--weak); }
.in-nag { position: absolute; right: -8px; top: -14px; transform: rotate(3deg); background: var(--magenta-soft); color: var(--magenta-ink); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-s); max-width: 220px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.in-card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.in-avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--avatar); color: var(--avatar-ink); display: grid; place-items: center; font-weight: 600; font-size: 19px; flex: none; }
.in-who b { display: block; font-weight: 600; font-size: 20px; line-height: 1.2; }
.in-who > span { color: var(--muted); font-size: 14px; }
.in-co { display: inline-flex; align-items: center; gap: 6px; }

.in-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: center; }
.in-row > span { min-width: 0; overflow-wrap: anywhere; }
.in-row > span:first-child { color: var(--muted); font-size: 13px; }
.in-bar { display: block; height: 8px; background: var(--hover); border-radius: 999px; position: relative; overflow: hidden; }
.in-bar b { position: absolute; inset: 0 auto 0 0; background: var(--primary); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.in-strength { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.in-pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--info-ink); white-space: nowrap; }
.in-pill.in-mid { background: var(--hover); color: var(--muted); border: 1px solid var(--line); }
.in-knows { display: grid; gap: 7px; }
.in-kw { display: grid; grid-template-columns: 36px minmax(0, 1fr) 54px 56px; gap: 8px; align-items: center; font-size: 14px; }
.in-kw b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-kw em { font-style: normal; font-size: 12px; color: var(--muted); }
.in-kw i, .in-kn i { font-style: normal; height: 22px; border-radius: 999px; background: var(--avatar); color: var(--avatar-ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.in-touch { display: flex; gap: 8px; align-items: center; }
.in-touch::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); flex: none; }
.in-opp { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.in-next { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.in-next i { font-style: normal; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--avatar); color: var(--avatar-ink); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.in-next em { font-style: normal; font-size: 12px; color: var(--muted); }
.in-source { margin-top: 14px; font-size: 13px; color: var(--info-ink); display: flex; gap: 8px; align-items: center; }
.in-source::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: in-ping 2s infinite; }
@keyframes in-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.in-fill { transition: opacity .35s ease, transform .35s ease; }
.in-card.playing .in-fill:not(.in) { opacity: 0; transform: translateX(-8px); }
.in-card.playing .in-bar b.reset { width: 0 !important; transition: none; }

.in-track { height: 4px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.in-track::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: in-run 3.2s linear infinite; }
@keyframes in-run { from { left: -22%; } to { left: 100%; } }
.in-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.in-step { padding: 24px 24px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.in-step + .in-step { padding-left: 24px; }
.in-k { font-weight: 600; font-size: 44px; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.in-step p { color: var(--muted); }
.in-sees { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; margin-top: 56px; align-items: center; }
.in-mail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; overflow: hidden; }
.in-hl { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; position: relative; }
.in-hl:last-child { border-bottom: 0; }
.in-hl > span { min-width: 0; overflow-wrap: anywhere; }
.in-hl > span:first-child { color: var(--muted); font-size: 12px; }
.in-hl.ok { background: var(--primary-soft); }
.in-hl .in-mk { font-weight: 600; font-size: 12px; white-space: nowrap; color: var(--magenta-ink); }
.in-hl.ok .in-mk { color: var(--info-ink); }
.in-hl.ok::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 25%, transparent), transparent); transform: translateX(-100%); animation: in-sweep 3.6s ease-in-out infinite; }
.in-hl.ok:nth-child(2)::after { animation-delay: .25s; } .in-hl.ok:nth-child(3)::after { animation-delay: .5s; } .in-hl.ok:nth-child(4)::after { animation-delay: .75s; }
@keyframes in-sweep { 0%, 15% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.in-redact { display: block; height: 12px; border-radius: 1px; background: repeating-linear-gradient(135deg, var(--hover) 0 6px, var(--line) 6px 12px); }
.in-hl.in-body { grid-template-columns: 1fr auto; padding: 16px; }
.in-lines { display: grid; gap: 8px; }
.in-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.in-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--muted); }
.in-checks li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.in-checks li.x::before { content: '✕'; color: var(--magenta); }

.in-score { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.in-score .in-head { margin: 0; }
.in-weights { display: grid; gap: 10px; }
.in-w { display: grid; grid-template-columns: minmax(0, 220px) 1fr 36px; gap: 14px; align-items: center; font-size: 15px; }
.in-w .in-bar { height: 14px; }
.in-w .in-bar.in-mag b { background: var(--magenta); }
.in-n { font-size: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.in-decay { font-size: 14px; color: var(--muted); margin-top: 18px !important; }

.in-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.in-use { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; }
.in-demo { background: var(--head); color: var(--head-ink); padding: 18px; height: 204px; display: grid; align-content: start; gap: 10px; }
.in-txt { padding: 20px 20px 24px; display: grid; gap: 10px; align-content: start; }
.in-txt .in-eyebrow { color: var(--primary); }
.in-txt p { color: var(--muted); font-size: 15px; }
.in-txt ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.in-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.in-chips span { font-size: 12px; padding: 4px 10px; border: 1px solid var(--head-line); border-radius: 999px; color: var(--head-muted); transition: all .3s; }
.in-chips span.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.in-count { font-weight: 600; font-size: 40px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.in-count small { font-weight: 400; font-size: 13px; color: var(--head-muted); margin-left: 6px; }
.in-dq { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.in-dq .in-logo { width: 22px; height: 22px; }
.in-kn { display: grid; grid-template-columns: 36px 64px 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--head-muted); }
.in-kn i { height: 26px; background: var(--head-ink); color: var(--head); }
.in-kn .in-bar { background: var(--head-line); }
.in-kn .in-bar b { background: var(--on-dark-link); transition-duration: 1s; }
.in-cold span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.in-cold { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--head-line); align-items: center; }
.in-cold span:last-child { font-variant-numeric: tabular-nums; color: var(--head-muted); font-size: 13px; }
.in-cold.warn span:last-child { color: var(--magenta); font-weight: 600; }
.in-cold.warn span:first-child::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); margin-left: 8px; vertical-align: 1px; animation: in-pulse 1.6s infinite; }
@keyframes in-pulse { 50% { opacity: .25; } }
.in-trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.in-trust div { padding: 22px 22px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.in-trust div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.in-trust b { font-size: 17px; line-height: 1.25; }
.in-trust p { color: var(--muted); font-size: 15px; }
.in-close { padding-top: 64px; }
.in-close h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 20ch; }
.in-cta { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--head-ink); margin-top: 6px !important; }
.in-contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.intro .in-contact a { font: 600 17px/1 var(--sans); color: var(--on-dark-link); text-decoration: none; padding: 12px 16px; border: 1px solid var(--head-line); border-radius: var(--radius-s); user-select: all; overflow-wrap: anywhere; }
.intro .in-contact a:hover { color: var(--head-ink); border-color: var(--head-muted); }
.in-copy { font: 600 14px/1 var(--sans); padding: 13px 16px; background: var(--primary); color: var(--primary-ink); border: 0; border-radius: var(--radius-s); cursor: pointer; }
.in-copy:hover { background: var(--primary-dark); }

@media (max-width: 860px) {
  .in-versus, .in-sees, .in-score, .in-uses, .in-steps { grid-template-columns: 1fr; }
  .in-stats { grid-template-columns: 1fr 1fr; }
  .in-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .in-stats div:nth-child(n+3) { border-top: 1px solid var(--head-line); }
  .in-step, .in-step + .in-step { padding: 22px 0 0; }
  .in-trust { grid-template-columns: 1fr 1fr; }
  .in-trust div:nth-child(3) { padding-left: 0; border-left: 0; }
  .in-trust div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .in-nag { position: static; transform: none; display: inline-block; max-width: none; margin-bottom: 14px; box-shadow: none; }
  .in-demo { height: auto; min-height: 180px; }
}
@media (max-width: 560px) {
  .in-stage { padding: 40px 18px 24px; }
  .in-scene { padding: 56px 0; }
  .in-stats div { padding: 14px 10px 10px 0; }
  .in-stats div:nth-child(even) { padding-left: 12px; }
  .in-kw { grid-template-columns: 36px minmax(0, 1fr) 44px; }
  .in-kw em { display: none; }
  .in-play { font-size: 0; gap: 0; padding: 7px 8px; }
  .in-legend { gap: 9px; font-size: 12px; left: 10px; right: 46px; flex-wrap: wrap; row-gap: 2px; }
  .in-legend i { margin-right: 4px; }
  .in-flow-labels span { font-size: 12px; }
  .in-row { grid-template-columns: 1fr; gap: 4px; }
  .in-w { grid-template-columns: minmax(0, 1fr) 36px; }
  .in-w .in-bar { grid-column: 1 / -1; grid-row: 2; }
  .in-trust { grid-template-columns: 1fr; }
  .in-trust div, .in-trust div + div { padding: 20px 0 0; border-left: 0; }
  .in-trust div + div { border-top: 1px solid var(--line); margin-top: 20px; }
  .in-hl { grid-template-columns: 56px 1fr; }
  .in-hl .in-mk { grid-column: 2; }
  .in-hl.in-body { grid-template-columns: 1fr; }
  .in-hl.in-body .in-mk { grid-column: 1; }
}
/* Still until public/intro.js starts it (a moment after the picture is in view, or Play): in-moving; still or paused: in-still.
   With "reduce motion" on the computer, the small CSS animations wait for in-moving too. */
@media (prefers-reduced-motion: reduce) {
  .intro:not(.in-moving) *, .intro:not(.in-moving) *::before, .intro:not(.in-moving) *::after { animation: none !important; transition: none !important; }
}
.intro.in-still *, .intro.in-still *::before, .intro.in-still *::after { animation-play-state: paused !important; }
@media print { .in-flow, .in-track, .in-play, .in-copy { display: none; } }
/* end of Introduction (tools/intro-share.mjs copies the styles from the Introduction comment to here) */
/* The Help panel (0.105; src/help.js, public/help.js): it slides in from the right over the page and stays while you
   work, without darkening the page. White card style, teal links; on a phone it takes the whole width. */
.help-panel { position: fixed; inset: 0 0 0 auto; z-index: 20; display: flex; flex-direction: column; width: 400px; max-width: 100vw;
  background: var(--panel); color: var(--ink); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgb(0 0 0 / .12);
  transform: translateX(100%); transition: transform .18s ease-out; }
.help-panel.in { transform: none; }
.help-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .help-panel { transition: none; } }
.help-panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--hair); }
.help-panel > header h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 600; }
.help-full { font-size: 13px; color: var(--muted); }
.help-full:hover, .help-full:focus-visible { color: var(--primary); }
.help-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel);
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.help-close:hover, .help-close:focus-visible { color: var(--primary); border-color: var(--primary); }
.help-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 28px; font-size: 14px; line-height: 1.5; }
.help-scroll:focus { outline: none; }

/* Its contents, in the panel and on the Help page */
.help-search input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--field); border-radius: var(--radius-s); background: var(--panel); color: var(--ink); font: inherit; }
.help-search input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.help-sec { margin: 22px 0 0; }
.help-sec h3, .help-article h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
details.help-sec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
details.help-sec > summary::-webkit-details-marker { display: none; }
details.help-sec > summary::after { content: '▾'; color: var(--muted); font-size: 11px; margin: 0 0 8px; }
details.help-sec[open] > summary::after { content: '▴'; }
details.help-sec > summary h3 { display: inline; }
.help-list { margin: 0; padding: 0; list-style: none; }
.help-list li { border-top: 1px solid var(--hair); }
.help-list li:first-child { border-top: 0; }
.help-list a { display: block; padding: 7px 0; color: var(--primary); text-decoration: none; font-weight: 500; }
.help-list a:hover, .help-list a:focus-visible { text-decoration: underline; }
.help-results li span { display: block; margin: -3px 0 8px; color: var(--muted); font-size: 13px; }
.help-news { margin: 0; padding: 0; list-style: none; }
.help-news li { margin: 0 0 8px; }
.help-news b { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.help-videos { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.help-videos video { display: block; width: 100%; border-radius: var(--radius-s); background: var(--neutral); }
.help-videos span { display: block; margin-top: 4px; font-weight: 500; }
.help-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; }
.help-keys dt { margin: 0; }
.help-keys dd { margin: 0; }
.help-keys kbd { display: inline-block; min-width: 18px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--muted); font: 12px/20px var(--sans); text-align: center; }
.help-back { margin: 14px 0 0; font-size: 13px; }
.help-back a { color: var(--primary); text-decoration: none; }
.help-crumb { margin: 16px 0 -8px; }
.help-crumb a { color: var(--muted); text-decoration: none; }
.help-article h2 { margin: 16px 0 8px; font-size: 20px; font-weight: 600; outline: none; }
.help-article .doc-body { font-size: 14px; line-height: 1.55; }
.help-article .doc-body h4 { font-size: 14px; margin: 16px 0 4px; }
.help-article .doc-body table { font-size: 13px; }
.help-article .doc-body .table-wrap, .help-article .doc-body table { max-width: 100%; overflow-x: auto; display: block; }
.help-article > h3 { margin-top: 20px; }
.help-open { margin-top: 18px; }
.help-page .help-sec:first-child, .help-page .help-search { max-width: 640px; }
@media (max-width: 700px) { .help-panel { width: 100vw; border-left: 0; } }
@media print { .help-panel { display: none !important; } }
