/* 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;
  /* Relationship strength's score ring (views.js strength): the bands' colours are model.js STRENGTH_BANDS (the same here) */
  --ring-track: #e8e8e8; --ring-none: #b8b8b8; --ring-ink: #0f0f0f; --ring-none-ink: #767676;
  --band-verystrong: #2e8f45; --band-strong: #86ab35; --band-warm: #d99a1e; --band-weak: #cc4b37;
  --avatar: var(--neutral); --avatar-ink: var(--ink);
  /* A person's initials in one of eight soft colours (views.js tone): no magenta (attention) and no gold (AI). */
  --tone-0: #bfe6d9; --tone-0-ink: #0b5e48; --tone-1: #c9dbf5; --tone-1-ink: #1d4f91; --tone-2: #d4d2f5; --tone-2-ink: #3d3a8f; --tone-3: #e2cdf2; --tone-3-ink: #5f2b84;
  --tone-4: #d5dce5; --tone-4-ink: #334155; --tone-5: #d2e7c3; --tone-5-ink: #3f6212; --tone-6: #f3d2bf; --tone-6-ink: #8a3b17; --tone-7: #c4e4f1; --tone-7-ink: #0c5a75;
  --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;
    --ring-track: #34343d; --ring-none: #5c5c66; --ring-ink: #f1f2f6; --ring-none-ink: #a3a7b5;
    --tone-0: #14382e; --tone-0-ink: #8fe3c8; --tone-1: #182c48; --tone-1-ink: #a9c8f2; --tone-2: #25244d; --tone-2-ink: #c3c0f5; --tone-3: #321f44; --tone-3-ink: #dcb8f0;
    --tone-4: #272c35; --tone-4-ink: #cbd5e1; --tone-5: #223318; --tone-5-ink: #bfe0a0; --tone-6: #3d2418; --tone-6-ink: #f1b994; --tone-7: #11323f; --tone-7-ink: #9fd9ee;
    --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;
  --ring-track: #34343d; --ring-none: #5c5c66; --ring-ink: #f1f2f6; --ring-none-ink: #a3a7b5;
  --tone-0: #14382e; --tone-0-ink: #8fe3c8; --tone-1: #182c48; --tone-1-ink: #a9c8f2; --tone-2: #25244d; --tone-2-ink: #c3c0f5; --tone-3: #321f44; --tone-3-ink: #dcb8f0;
  --tone-4: #272c35; --tone-4-ink: #cbd5e1; --tone-5: #223318; --tone-5-ink: #bfe0a0; --tone-6: #3d2418; --tone-6-ink: #f1b994; --tone-7: #11323f; --tone-7-ink: #9fd9ee;
  --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); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; } } /* stands still beside its words, as Help's does */
.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.tone-0 { background: var(--tone-0); color: var(--tone-0-ink); }
.avatar.tone-1 { background: var(--tone-1); color: var(--tone-1-ink); }
.avatar.tone-2 { background: var(--tone-2); color: var(--tone-2-ink); }
.avatar.tone-3 { background: var(--tone-3); color: var(--tone-3-ink); }
.avatar.tone-4 { background: var(--tone-4); color: var(--tone-4-ink); }
.avatar.tone-5 { background: var(--tone-5); color: var(--tone-5-ink); }
.avatar.tone-6 { background: var(--tone-6); color: var(--tone-6-ink); }
.avatar.tone-7 { background: var(--tone-7); color: var(--tone-7-ink); }
.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. */
/* Relationship strength: the score ring (views.js strength). Small in lists and rows, big on a contact's or company's page. */
.ring { display: inline-block; flex: none; vertical-align: middle; overflow: visible; }
.ring .ring-track { stroke: var(--ring-track); }
.ring.lv-none .ring-track { stroke: var(--ring-none); }
.ring text { fill: var(--ring-ink); font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring.big text { font-size: 18px; }
.ring.lv-none text { fill: var(--ring-none-ink); }
.ring-block { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ring-block > b { font-size: 16px; font-weight: 700; }
.s-verystrong { background: var(--band-verystrong); } .s-strong { background: var(--band-strong); } .s-warm { background: var(--band-warm); } .s-weak { background: var(--band-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); }
/* On a phone or a touch screen every field has 16 px text: an iPhone zooms the page in when a field with smaller text is
   tapped (docs/design-principles.md 4.8). "!important" because many forms set a size of their own. */
@media (max-width: 640px), (pointer: coarse) { input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea { font-size: 16px !important; } }
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; }
/* LinkedIn connections (linkedin.js): whose file and the file side by side, the button under them. */
#enrich-linkedin { margin-bottom: 18px; }
.li-upload { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 12px 16px; align-items: end; max-width: 820px; }
.li-upload label > span { display: block; font-weight: 600; margin-bottom: 4px; }
.li-upload label > span small { font-weight: 400; }
.li-upload select, .li-upload input[type=file] { width: 100%; }
.li-upload p { grid-column: 1 / -1; margin: 0; }
.li-files { margin-top: 10px; }
@media (max-width: 640px) { .li-upload { grid-template-columns: 1fr; } }
.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; }
.review-bar label.tick-every { margin: 0; font-weight: 500; white-space: nowrap; }
.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 { 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; }
/* Who opened and clicked (0.110): on a contact, a company and a campaign. A click in the colour of what goes well. */
.camp-clicked { color: var(--primary); font-weight: 600; }
.camp-list li { align-items: flex-start; }
.camp-list a { display: grid; gap: 1px; min-width: 0; text-decoration: none; color: var(--ink); }
.camp-list a small, .camp-links { color: var(--muted); font-size: 12px; }
.camp-did { flex: none; text-align: right; font-size: 13px; }
.camp-links { display: block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Firm settings: the pictures switch, set apart from the connection on the same card. */
.ems-pictures { border-top: 1px solid var(--hair); }
/* Connecting the email marketing system: only the fields of the system chosen in the form (views-admin.js emsCard). */
.ems-form:has(option[value="doppler"]:checked) [data-ems-for]:not([data-ems-for~="doppler"]),
.ems-form:has(option[value="mailchimp"]:checked) [data-ems-for]:not([data-ems-for~="mailchimp"]) { display: none; }
.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); }

/* 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); }
@media (prefers-reduced-motion: reduce) { details.facet > summary::before { transition: none; } }
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; }
/* The country look-up (views.js facetLookup): its matches open in the panel itself, under the box, so nothing cuts them off. */
.flookup-list { margin: -2px 0 6px; padding: 3px 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); }
.flookup-opt { display: flex; align-items: center; gap: 8px; padding: 4px 8px; cursor: pointer; font-size: 14px; }
.flookup-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flookup-opt small { color: var(--muted); font-variant-numeric: tabular-nums; }
.flookup-opt.zero { color: var(--muted); }
.flookup-opt:hover, .flookup-opt.on { background: var(--hover); }
.flookup-opt.on { box-shadow: inset 2px 0 0 var(--primary); }
.flookup-none { margin: 3px 8px; font-size: 13px; }
.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-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 .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; }
/* A More menu beside a page title (a marketing list, 0.112), on a phone: it hangs from the left of the buttons' row,
   not from the button, so it stays on screen. */
@media (max-width: 640px) {
  .title-row .actions:has(> details.more) { position: relative; }
  .title-row .actions > details.more { position: static; }
  .title-row .actions > details.more .more-panel { left: 0; right: auto; max-width: calc(100vw - 32px); }
}
.person-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } /* 0.54: the profile on the left */
.rel-way { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.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; }
  .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(--primary-soft); color: var(--chip-ink); border-color: var(--primary); } /* 0.142.1: was white on light grey */
.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; }
/* 0.147: tick several and mark them still correct at once */
.outdated-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0; border: 0; }
table.outdated th.sel, table.outdated td.sel { width: 28px; padding-right: 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; margin-left: auto; 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); }
.page-tools .help-link:not(.add-link) { color: var(--magenta); } /* the ? in magenta beside the teal + (Steven, 26 Nov 2026) */
.page-tools .help-link:not(.add-link):hover, .page-tools .help-link:not(.add-link):focus-visible, .page-tools .help-link.on { color: var(--magenta); border-color: var(--magenta); }
/* 0.134: the + (Add) left of the ?, on every page; on Contacts, Companies, Opportunities and Coaching the row holds only these two. */
.page-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.page-tools .help-link { margin-left: 0; }
.add-link { color: var(--primary); }
.add-link svg { stroke-width: 2.2; }
details.add-menu[open] > .add-link { border-color: var(--primary); background: var(--bg); }
.add-panel { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: 200px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); z-index: 30; }
@media (max-width: 860px) { .menu-panel.add-panel { position: absolute; margin-top: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); } } /* the name menu's panel sits in the flow on a phone; this one floats */
@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 ---------- */
.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); }
.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) {
  .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); }
}


/* Reference IDs (0.144, refs.js): a small grey code in the Insights library, the ⓘ and the coach's digest page. */
.ref-id { font: 500 11px/1 'Roboto Mono', ui-monospace, monospace; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.tip .tip-ref { display: block; margin-top: 6px; font-size: 11px; opacity: .75; }
/* 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; }
.gs-fold { margin: 0; flex: none; align-self: flex-start; }
@media (max-width: 520px) { .gs-head { flex-wrap: wrap; } .gs-title { flex: 1 1 0; } .gs-fold { order: 3; width: 100%; } }
@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; }

/* The firm's own logo (0.111, firm-logo.js): first, with Tyde's smaller beside it. The menu: the firm's logo, Tyde's
   underneath; a phone and the signed-out strip: side by side; the sign-in page: Tyde's in the box (.signin-tyde). */
.firm-logo { display: inline-flex; align-items: center; flex: none; }
.firm-logo img, .brand .firm-logo img { display: block; width: auto; height: 46px; max-width: 200px; object-fit: contain; object-position: left center; }
.firm-logo.tile { padding: 6px 10px; background: #ffffff; border-radius: var(--radius-s); }
.firm-logo.tile img, .brand .firm-logo.tile img { height: 34px; }
.brand-tyde { display: inline-flex; align-items: center; }
.brand-tyde img, .brand .brand-tyde img { display: block; width: auto; height: 16px; opacity: 0.8; }
.brand-tyde .beta, .brand .brand-tyde .beta { align-self: center; margin: 0 0 0 6px; padding: 0 5px; font-weight: 600; font-size: 10px; line-height: 14px; color: #ffffff; border: 1px solid var(--head-muted); border-radius: 999px; }
header.side .brand.with-firm { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; height: auto; padding: 22px 24px 18px; }
header.top-strip .brand.with-firm { gap: 14px; }
header.top-strip .brand.with-firm .firm-logo img { height: 34px; }
header.top-strip .brand.with-firm .firm-logo.tile img { height: 26px; }
header.top-strip .brand.with-firm .brand-tyde { padding-left: 14px; border-left: 1px solid var(--head-muted); }
body:has(.signin-bg) .brand.with-firm .brand-tyde { display: none; } /* the sign-in page has Tyde's in the box */
body:has(.signin-bg) .brand.with-firm .firm-logo img { height: 52px; max-width: 260px; }
body:has(.signin-bg) .brand.with-firm .firm-logo.tile img { height: 40px; }
.hero.signin .signin-tyde { display: flex; align-items: center; margin: 0 0 18px; }
.hero.signin .signin-tyde img { display: block; width: auto; height: 26px; }
.hero.signin .signin-tyde .beta { margin-left: 8px; padding: 0 6px; font-weight: 600; font-size: 11px; line-height: 15px; color: #ffffff; border: 1px solid var(--head-muted); border-radius: 999px; }
/* Firm settings: the logo as the menu shows it */
.firm-logo-preview { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 12px 0 8px; padding: 20px 24px 18px; min-width: 200px; background: var(--head); border-radius: var(--radius-s); }
.firm-logo-preview .firm-logo img { height: 40px; }
.firm-logo-preview .firm-logo.tile img { height: 30px; }
@media (max-width: 860px) {
  header.side .brand.with-firm { flex-direction: row; align-items: center; gap: 12px; height: 56px; padding: 0; }
  header.side .brand.with-firm .firm-logo img, header.top-strip .brand.with-firm .firm-logo img { height: 28px; max-width: 150px; }
  header.side .brand.with-firm .firm-logo.tile img, header.top-strip .brand.with-firm .firm-logo.tile img { height: 22px; }
  header.side .brand.with-firm .brand-tyde { padding-left: 12px; border-left: 1px solid var(--head-muted); }
  body:has(.signin-bg) header.top-strip .brand.with-firm { height: 72px; }
  body:has(.signin-bg) .brand.with-firm .firm-logo img { height: 36px; max-width: 200px; }
  body:has(.signin-bg) .brand.with-firm .firm-logo.tile img { height: 28px; }
}

/* The referee mark (0.115): after a contact's name, for someone who is or was a referee in a directory submission.
   An outline icon in the text's own quiet colour, with a count above one; on the contact page it links to Experience. */
.ref-mark { display: inline-flex; align-items: center; gap: 1px; margin-left: 5px; color: var(--muted); vertical-align: -2px; text-decoration: none; font-weight: 400; }
.ref-mark .ico { width: 15px; height: 15px; }
.ref-mark small { font-size: 11px; line-height: 1; }
a.ref-mark:hover { color: var(--primary); }
.biz-name .ref-mark { margin-left: 0; }
.biz-name .ref-mark .ico { width: 20px; height: 20px; }
.biz-name .ref-mark small { font-size: 12px; }

/* Referees of a submission (0.116): the draft's two tabs, the coach's row form, the lawyer's answers (Home and draft),
   and Experience › Referees. */
.draft-tabs { margin: 18px 0 14px; }
.draft-tabs a small { color: var(--muted); margin-left: 2px; }
table.ref-table td, table.ref-season td { vertical-align: top; }
table.ref-table td.wrap, table.ref-season td.wrap { white-space: normal; min-width: 160px; }
table.ref-table td small, table.ref-season td small { display: block; margin-top: 2px; }
table.ref-table td small .badge { margin-right: 4px; }
table.ref-table td.fatigue { width: 220px; min-width: 180px; }
table.ref-table td.fatigue small { white-space: normal; overflow-wrap: anywhere; }
table.ref-table td.ref-status { min-width: 230px; }
.ref-change > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.ref-change > summary::-webkit-details-marker { display: none; }
.ref-change[open] { min-width: 200px; }
.ref-change .ref-edit { flex-direction: column; align-items: stretch; }
.ref-change .ref-edit select { max-width: none; }
tr.muted-row td { opacity: .6; }
.ref-edit, .ref-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ref-answer .btn { margin-top: 0; }
.ref-ask { margin-bottom: 24px; }
.ref-ask li { display: grid; gap: 4px; }
.ref-ask li > span small { display: inline; margin-left: 6px; }
.ref-sugg li small { display: block; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chips .chip.on { outline: 2px solid var(--primary); }
@media (max-width: 720px) {
  /* A referee per block on a phone: name, who asks them, status and answers, fatigue, Change. */
  table.ref-table, table.ref-table tbody, table.ref-table tr, table.ref-table td { display: block; width: auto; min-width: 0; max-width: none; }
  table.ref-table thead { display: none; }
  table.ref-table tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  table.ref-table td { border: 0; padding: 2px 0; }
}

/* Submissions (0.117): where a submission came from, as small file icons; the buttons' icons; adding a referee by look-up. */
table.submissions td.wrap { white-space: normal; min-width: 200px; }
.src-icons { display: inline-flex; gap: 6px; color: var(--muted); }
.src-file { display: inline-flex; align-items: center; color: var(--muted); }
.src-file .ico { width: 18px; height: 18px; }
.src-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; }
.src-list li small { grid-column: 2; }
.title-row .actions .btn .ico { margin-right: 6px; vertical-align: -2px; }
#referees.card { overflow: visible; } /* the look-up's matches open below the card's edge */
.ref-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ref-add .lk { flex: 1 1 280px; }

/* Directory deadlines (0.119): the check of the directories' own pages, and what it found. */
.dl-check { margin: 0 0 6px; }
.dl-check.no-ai { border-left-color: var(--line); } /* gold only where Claude reads */
.dl-check-hint { margin-bottom: 14px; }
.dlc-card { box-shadow: inset 3px 0 0 var(--ai); }
.dlc-card li small { display: block; }
form.inline { display: inline; }

/* Contacts: interactions in a period, in the Filter panel (a colleague, two days, shortcuts) and the list's total column */
.fperiod-body { padding: 2px 14px 10px; display: grid; gap: 6px; font-size: 13px; }
.fperiod-body label { display: grid; gap: 2px; margin: 0; }
.fperiod-body label > span { color: var(--muted); font-size: 12px; }
.fperiod-body select, .fperiod-body input[type="date"] { width: 100%; min-width: 0; box-sizing: border-box; }
.fperiod-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fperiod .fpresets { margin: 0; }
table.contacts td.act.total { font-weight: 600; color: var(--ink); }
/* Enrichment (0.129): "Update by hand" beside Dismiss on a suggestion, and Changes made, the record of what went onto cards. */
table.suggestions td.row-actions { white-space: nowrap; font-size: 13px; }
table.suggestions td.row-actions .link { display: block; padding: 0; text-align: left; }
table.suggestions td.row-actions .link + .link { margin-top: 4px; }
.enrich-changes header .more { margin-left: auto; font-size: 13px; }
.enrich-changes > p { margin: 10px 16px; }
table.changes { min-width: 820px; }
table.changes td { white-space: normal; vertical-align: top; }
table.changes td.when, table.changes td.field { white-space: nowrap; }
table.changes td.who-cell { min-width: 160px; }
table.changes td.who-cell small { display: block; font-size: 12px; }
table.changes .person-link { color: var(--ink); text-decoration: none; }
table.changes td.val { min-width: 110px; max-width: 220px; overflow-wrap: break-word; }
table.changes td.new { font-weight: 600; }
table.changes td.src { font-size: 12px; max-width: 150px; }
table.changes td.src a.url { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; color: var(--muted); }
/* Enrichment (0.131): websites that could not be read, folded into one line that opens to the list. */
.enrich-problems > summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.enrich-problems > summary::-webkit-details-marker { display: none; }
.enrich-problems > summary h2::before { content: '▸\00a0'; color: var(--muted); }
.enrich-problems[open] > summary h2::before { content: '▾\00a0'; }
.enrich-problems > summary h2 { margin: 0; font-size: 16px; }
.enrich-problems > p { margin: 0 16px 12px; }
.enrich-problems td.detail small { display: block; margin-top: 2px; }

/* People and their addresses (0.133): the lock on your own Private contacts, what each address is and how much it was
   used, what a merge brings along, and Used to work here on a company. */
.private-mark { display: inline-flex; align-items: center; margin-left: 5px; color: var(--muted); vertical-align: -2px; font-weight: 400; }
.private-mark .ico { width: 14px; height: 14px; }
.biz-name .private-mark { margin-left: 0; }
.biz-name .private-mark .ico { width: 20px; height: 20px; }
.badge.addr-kind { font-weight: 400; }
.badge.addr-kind.earlier, .badge.addr-kind.other { border-style: dashed; }
.list.emails .addr-use { display: block; margin-top: 2px; color: var(--muted); word-break: normal; }
.merge-brings { color: var(--muted); }
.list.former li { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
.list.former li > small { flex: 1 1 200px; text-align: right; }
@media (max-width: 600px) { .list.former li > small { text-align: left; } }
/* 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; 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-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; }
/* Ask (0.136, src/help-ask.js): the box carries the gold spark; Claude's answer has the thin gold edge of AI-written text */
.help-search.help-ask { position: relative; }
.help-search.help-ask .ai-ico { position: absolute; z-index: 1; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ai); pointer-events: none; }
.help-search.help-ask input[type=search]:not([type=radio]) { padding-left: 34px; border-color: var(--ai-line); } /* outranks 02-pages.css's input rule */
.help-ask-hint { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--ai-ink); }
.help-ask-hint .ai-ico { width: 14px; height: 14px; flex: none; color: var(--ai); }
.help-answer-slot { margin: 14px 0 0; }
.help-answer-wait { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.help-dots { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ai); border-right-color: transparent; animation: help-spin .8s linear infinite; }
@keyframes help-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .help-dots { animation: none; border-right-color: var(--ai); } }
.help-answer { padding: 2px 0 2px 14px; box-shadow: inset 3px 0 0 var(--ai); }
.help-answer-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 600; color: var(--ai-ink); }
.help-answer-head .ai-ico { width: 15px; height: 15px; color: var(--ai); }
.help-answer .doc-body { font-size: 14px; line-height: 1.55; }
.help-answer .doc-body > :first-child { margin-top: 0; }
.help-answer .doc-body p, .help-answer .doc-body ol, .help-answer .doc-body ul { margin: 0 0 8px; }
.help-answer-src { margin: 0 0 6px; }
.help-answer-src a, .help-answer a { color: var(--primary); }
.help-answer.unanswered { box-shadow: inset 3px 0 0 var(--line); }
.help-sec h3, .help-article h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); } /* 0.136: above the 14px text (was 12px, 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: 13px; 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; }
/* The questions asked in Help (0.136.5) */
.help-q-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.help-q-tools .tabs { flex: 1; margin-bottom: 0; }
table.help-q td { vertical-align: top; }
table.help-q tr.unanswered td:nth-child(3) { color: var(--magenta-ink, #b0005f); font-weight: 600; }
.help-results li span, .help-docs li span { display: block; margin: -3px 0 8px; color: var(--muted); font-size: 13px; }
.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; } }
/* Client intelligence (0.113, views-intel.js): one company on one page, like a tear sheet. The header with the logo
   large and a strip of facts (the card's, then Tyde's on a light grey); cards in two columns on a wide screen, one
   under the other on a phone. Where each part comes from is a small label in each card's header: a teal dot for
   Tyde's own data, the gold spark for Claude's. The PDF of the same report is made by Tyde (client-report-pdf.js).
   0.114: what Claude found in public sources has an open teal ring, and each item a small numbered link to its source. */
.ci-hero { padding: 22px 24px 0; margin-bottom: 12px; }
.ci-top { display: flex; gap: 20px; align-items: flex-start; }
.logo-tile.ci-logo { width: 104px; height: 104px; border-radius: 14px; font-size: 34px; }
.logo-tile.ci-logo img { padding: 10%; }
.ci-name { flex: 1; min-width: 0; }
.ci-name h1 { margin: 0 0 2px; font-size: 26px; line-height: 1.2; }
.ci-what { margin: 8px 0; font-size: 15px; max-width: 760px; }
.ci-tags { margin-top: 8px; }
.ci-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ci-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px -24px 0; border-top: 1px solid var(--hair); }
.ci-fact { padding: 11px 16px 12px; min-width: 0; border-left: 1px solid var(--hair); }
.ci-fact:nth-child(4n + 1) { border-left: 0; }
.ci-fact:nth-child(n + 5) { border-top: 1px solid var(--hair); }
.ci-fact.tyde { background: var(--hover); }
.ci-fact > span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.ci-fact > b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ci-fact > b a { font-weight: 600; }
.ci-fact > small { display: block; color: var(--muted); font-size: 12px; }
.ci-state { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; }
.ci-from { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.ci-from.tyde::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.ci-from.ai { color: var(--ai-ink); }
.ci-from .ai-ico { margin-right: 0; width: 14px; height: 14px; }
.ci-from.pub::before { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1.5px solid var(--primary); flex: none; }
.ci-state { align-items: center; }
.ci-state form { display: inline; margin: 0 0 0 -14px; }
.ci-state button.link { font-size: 12px; }
.ci-fact.pub > b { font-size: 15px; }
.ci-src { display: inline-block; min-width: 15px; padding: 0 3px; margin-left: 3px; border-radius: 4px; background: var(--hover); color: var(--muted); font-size: 10.5px;
  font-weight: 600; line-height: 15px; text-align: center; text-decoration: none; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.ci-src:hover { background: var(--primary-soft); color: var(--chip-ink); }
.ci-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 -24px; padding: 10px 24px; border-top: 1px solid var(--hair); font-size: 13px; }
.ci-research { margin-bottom: 16px; }
.ci-research .ai-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ci-research p { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ci-grid { display: grid; gap: 16px; margin-bottom: 16px; align-items: start; }
.ci-grid.ci-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ci-grid.ci-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ci-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
#whitespace, #strategy { margin-bottom: 16px; }
.card.ci-ai { border-left: 3px solid var(--ai); }
.card.ci-ai .ai-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card.ci-ai .ai-text { font-size: 14.5px; line-height: 1.6; }

/* Tables of people and work */
.ci-table { width: 100%; }
.ci-table td small { display: block; font-size: 12px; }
.ci-table tr.ci-group th { padding-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--hover); }
.ci-who { display: flex; gap: 10px; align-items: flex-start; }
.ci-who b { font-weight: 600; }
.ci-who small { color: var(--muted); }
.ci-known { display: grid; gap: 2px; font-size: 13px; }
.ci-known > span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ci-last { white-space: nowrap; }
.ci-sub { margin: 0; padding: 12px 16px 4px; font-size: 13px; font-weight: 600; }
.ci-sub .ci-from { font-size: 13px; font-weight: 600; color: var(--ink); }
.ci-table td form { display: block; margin-top: 4px; }
.ci-needs td, .ci-firms-seen td, #firms .ci-table td:nth-child(2) { white-space: normal; min-width: 120px; }
.ci-fin td, .ci-fin th { padding-left: 10px; padding-right: 10px; }
.ci-unit { margin: 0; padding: 10px 16px 0; font-size: 12px; }

/* The public brief: changes, developments, goals, figures, reports and sources */
.ci-changes, .ci-devs { padding: 4px 16px 14px; display: grid; gap: 8px; font-size: 13px; }
.ci-changes > div, .ci-devs > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ci-changes > div.recent .ci-date { color: var(--magenta-ink); font-weight: 500; }
.ci-date { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci-st.kind { background: var(--neutral); color: var(--ink); font-size: 11px; padding: 0 7px; }
.ci-goals { margin: 0; padding-left: 34px; display: grid; gap: 6px; font-size: 13.5px; }
.ci-goals b { font-weight: 600; }
.ci-list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.ci-reports { padding-left: 34px; font-size: 13.5px; }
.ci-fin-lines { display: grid; gap: 6px; font-size: 13px; }
.ci-fin-lines p { margin: 0; }
.ci-sources { margin: 0; padding-left: 40px; display: grid; gap: 3px; font-size: 13px; }
.ci-sources small { overflow-wrap: anywhere; }
.ci-st.urg-high { background: var(--magenta-soft); color: var(--magenta-ink); }
.ci-st.urg-medium { background: var(--neutral); color: var(--ink); }
.ci-st.urg-low { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Strongest relationships, coverage and gaps */
.ci-rel { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); align-items: start; }
.ci-meta { font-size: 12px; color: var(--muted); }
.ci-score { display: grid; justify-items: end; gap: 2px; }
.ci-score b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ci-attn { color: var(--magenta-ink); font-weight: 500; }
.ci-cov { padding: 12px 16px 14px; display: grid; gap: 7px; }
.ci-cov-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 13px; }
.ci-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.ci-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--neutral); }
.ci-dots i.k { background: var(--primary); }
.ci-dots i.w { background: var(--primary-mid); }
.ci-gaps { padding: 0 16px 14px; display: grid; gap: 6px; font-size: 13px; }
.ci-gaps div { display: flex; gap: 8px; align-items: baseline; }
.ci-gaps div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); flex: none; transform: translateY(-1px); }

/* The white space */
.ci-ws-head { padding-bottom: 6px; }
.ci-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 2px 0 8px; background: var(--neutral); }
.ci-bar i, .ci-legend i { display: block; }
.ci-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.ci-legend span { display: inline-flex; gap: 6px; align-items: center; }
.ci-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ci-bar .now, .ci-legend .now { background: var(--primary); }
.ci-bar .pipeline, .ci-legend .pipeline { background: var(--primary-mid); }
.ci-bar .done, .ci-legend .done { background: var(--primary); opacity: 0.35; } /* lighter teal in both themes */
.ci-bar .none, .ci-legend .none { background: var(--weak); }
.ci-bar .likely, .ci-legend .likely { background: var(--magenta); }
.ci-st { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; white-space: nowrap; margin-right: 4px; }
.ci-st.now, .ci-st.pipeline { background: var(--primary-soft); color: var(--chip-ink); }
.ci-st.done { background: var(--neutral); color: var(--ink); }
.ci-st.likely { background: transparent; color: var(--magenta-ink); box-shadow: inset 0 0 0 1px var(--magenta); }
.ci-st.none { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ci-act { text-align: right; white-space: nowrap; }
.ci-internal { text-align: center; margin-top: 20px; }

@media (max-width: 860px) {
  .ci-hero { padding: 16px 16px 0; }
  .ci-top { flex-wrap: wrap; gap: 14px; }
  .logo-tile.ci-logo { width: 64px; height: 64px; border-radius: 10px; font-size: 22px; }
  .ci-name { flex-basis: calc(100% - 80px); }
  .ci-name h1 { font-size: 21px; }
  .ci-actions { justify-content: flex-start; width: 100%; }
  .ci-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px -16px 0; }
  .ci-fact { border-left: 0; border-top: 1px solid var(--hair); }
  .ci-fact:nth-child(-n + 2) { border-top: 0; }
  .ci-fact:nth-child(even) { border-left: 1px solid var(--hair); }
  .ci-grid.ci-21, .ci-grid.ci-2 { grid-template-columns: minmax(0, 1fr); }
  .ci-act .btn { white-space: normal; }
  .ci-offer { margin: 0 -16px; padding: 10px 16px; }
  .ci-state form { margin-left: 0; }
  /* The tables stack: the first cell on a line of its own, the others two by two (the white space: the work too). */
  .ci-table thead { display: none; }
  .ci-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
  .ci-table td, .ci-table th { padding: 0; border: 0; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .ci-table td:first-child, .ci-table.ci-ws td:nth-child(2), .ci-table tr.ci-group th { grid-column: 1 / -1; }
  .ci-table tr.ci-group { background: var(--hover); padding: 8px 16px; }
}
/* The weekly BD digest (0.122): Coaching → Digests and one digest (views-digest.js). The email itself is drawn by
   public/digest.js inside a shadow root with its own inline styles: nothing here reaches it. */
.dg-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dg-ready { background: var(--primary-soft); color: var(--chip-ink); }
.dg-quiet, .dg-off { background: var(--neutral); color: var(--muted); }
.dg-copied { background: var(--panel); color: var(--chip-ink); border: 1px solid var(--primary-mid); }
.dg-sent { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.dg-late { background: var(--magenta-soft); color: var(--magenta-ink); }
.dg-table td small { display: block; color: var(--muted); }
.dg-row-off td:first-child { color: var(--muted); }
.dg-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.dg-row-actions form { margin: 0; }

.dg-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(280px, 1fr); gap: 20px; align-items: start; }
.dg-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f3f3f4; }
.dg-preview-head { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 14px; }
.dg-preview-head b { font-weight: 500; overflow-wrap: anywhere; }
.dg-preview-body { min-height: 200px; }
.dg-side { display: grid; gap: 16px; position: sticky; top: var(--top); }
.dg-side .card { margin: 0; }
.dg-form { display: grid; gap: 10px; }
.dg-form label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dg-form input, .dg-form textarea, .dg-form select { width: 100%; box-sizing: border-box; }
.dg-form .btn { justify-self: start; }
.dg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.dg-actions form { margin: 0; }
.dg-copy-msg { margin: 8px 0 0; color: var(--primary); min-height: 1em; }
.dg-copy-msg.err { color: var(--magenta-ink); }
.dg-sub { font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.dg-sub:first-child { margin-top: 0; }
.dg-items { list-style: none; margin: 0; padding: 0; }
.dg-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.dg-items li:first-child { border-top: 0; }
.dg-items small { display: block; color: var(--muted); font-size: 12px; }
.dg-items form { margin: 0; }
.dg-ctls { display: flex; gap: 2px; }
.dg-ctl { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.dg-ctl:hover { background: var(--hover); }
.dg-x { color: var(--magenta-ink); }
.dg-add { border: 1px solid var(--primary); color: var(--primary); background: var(--panel); border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.dg-clicked { font-size: 12px; color: var(--chip-ink); background: var(--primary-soft); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.dg-history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.dg-history li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.dg-history a { white-space: nowrap; }
.dg-history span { color: var(--muted); text-align: right; }
/* The lawyer's answers to the questionnaire, for the coach only (0.123). */
.dg-answers { margin: 0; font-size: 14px; }
.dg-answers dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.dg-answers dt:first-child { margin-top: 0; }
.dg-answers dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.mail-logo-preview { display: inline-block; margin: 12px 0 8px; padding: 16px 20px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.mail-logo-preview img { display: block; height: 44px; width: auto; max-width: 240px; }
@media (max-width: 1100px) { .dg-layout { grid-template-columns: minmax(0, 1fr); } .dg-side { position: static; } }
/* Client ranking (0.128, views-ranking.js): a bump chart on Insights. The climber teal, the faller magenta, the rest
   grey; hover follows one line. Two drawings of the chart: the wide one, and a narrow one for a narrow card (a phone). */
.rk-card { padding: 14px 16px 12px; container-type: inline-size; }
.ranking { display: block; width: 100%; height: auto; font-family: var(--sans); overflow: visible; }
.ranking.narrow { display: none; max-width: 520px; }
@container (max-width: 700px) { .ranking.wide { display: none; } .ranking.narrow { display: block; } }
@media (max-width: 700px) { .rk-period { display: none; } }
.ranking text { dominant-baseline: middle; }
.rk-col { stroke: var(--hair); stroke-width: 1; }
.rk-month { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.rk-month.now { font-style: italic; }
.rk-line path { fill: none; stroke: var(--weak); stroke-width: 3; transition: opacity .15s, stroke-width .15s; }
.rk-line .rk-dot { fill: var(--muted); }
.rk-line .rk-face { fill: var(--panel); }
.rk-line .rk-face.logo { fill: #fff; } /* logos are made for a white background, in Dark too (as .logo-tile) */
.rk-line .rk-ring { fill: none; stroke: var(--weak); stroke-width: 2; }
.rk-ini { text-anchor: middle; font-weight: 600; fill: var(--muted); }
.rk-rank { font-size: 14px; font-weight: 700; fill: var(--ink); }
.rk-name { font-size: 14px; fill: var(--ink); }
.rk-type { font-size: 11px; fill: var(--muted); }
.rk-count { font-size: 13px; fill: var(--muted); text-anchor: end; font-variant-numeric: tabular-nums; }
.ranking:hover .rk-line { opacity: .28; }
.ranking .rk-line:hover { opacity: 1; }
.ranking .rk-line:hover path { stroke: var(--ink); stroke-width: 4; }
.ranking .rk-line:hover .rk-ring { stroke: var(--ink); }
.ranking .rk-line:hover .rk-dot:not(.band) { fill: var(--ink); }
.ranking a { cursor: pointer; }
.ranking a:focus-visible .rk-ring, .ranking a:focus-visible .rk-dot { stroke: var(--ink); stroke-width: 3; }
.rk-moved { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 10px 0 0; font-size: 14px; }
.rk-moved .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.rk-moved .up { color: var(--primary-dark); }
.rk-moved .down { color: var(--magenta-ink); }
.rk-moved b { font-weight: 600; }
.rk-key { font-size: 13px; margin-left: auto; }
.rk-phone-only { display: none; }
@media (max-width: 700px) { .rk-key { margin-left: 0; } .rk-wide-only { display: none; } .rk-phone-only { display: inline; } }
@media (prefers-reduced-motion: reduce) { .rk-line path { transition: none; } }

/* 0.144: each of today's top 8 in its own colour (the eight soft tones' ink, in Paper and Dark), and the list. */
.rk-line.tone-0 { --rk: var(--tone-0-ink); }
.rk-line.tone-1 { --rk: var(--tone-1-ink); }
.rk-line.tone-2 { --rk: var(--tone-2-ink); }
.rk-line.tone-3 { --rk: var(--tone-3-ink); }
.rk-line.tone-4 { --rk: var(--tone-4-ink); }
.rk-line.tone-5 { --rk: var(--tone-5-ink); }
.rk-line.tone-6 { --rk: var(--tone-6-ink); }
.rk-line.tone-7 { --rk: var(--tone-7-ink); }
.rk-line path { stroke: var(--rk, var(--weak)); stroke-width: 3; }
.rk-line .rk-dot { fill: var(--panel); stroke: var(--rk, var(--muted)); stroke-width: 2; }
.rk-line .rk-ring { stroke: var(--rk, var(--weak)); stroke-width: 2.5; }
.rk-line .rk-ini, .rk-line .rk-rank { fill: var(--rk, var(--ink)); }
.rk-view { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.rk-view .icon-btn { width: 28px; height: 26px; }
.rk-view .icon-btn.on { background: var(--primary-soft); color: var(--primary-dark); }
.rk-list { width: 100%; border-collapse: collapse; }
.rk-list th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 4px 8px 6px; white-space: nowrap; }
.rk-list td { padding: 8px; border-top: 1px solid var(--hair); vertical-align: middle; }
.rk-list .n { text-align: right; font-variant-numeric: tabular-nums; }
.rk-list .rk-place { width: 36px; font-size: 16px; font-weight: 500; color: var(--ink); }
.rk-co { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.rk-co:hover b { text-decoration: underline; }
.rk-co b { font-weight: 500; white-space: normal; }
.rk-co small { display: block; color: var(--muted); font-size: 12px; }
.rk-move { display: inline-block; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 2px 8px; border-radius: 999px; }
.rk-move.up { color: var(--primary-dark); background: var(--primary-soft); }
.rk-move.down { color: var(--magenta-ink); background: var(--magenta-soft); }
.rk-move.same { color: var(--muted); }
.rk-move.new { color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary); }
.rk-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.rk-bars i { display: block; width: 8px; border-radius: 2px 2px 0 0; background: var(--weak); }
.rk-period ~ .rk-view { margin-left: 4px; }
.rk-bars i.now { background: var(--primary); opacity: .6; }
@container (max-width: 560px) { .rk-bars-col { display: none; } .rk-list th { white-space: normal; } .rk-list td, .rk-list th { padding-left: 4px; padding-right: 4px; } .rk-list .rk-place { width: 24px; } .rk-co { gap: 8px; } }
/* LinkedIn (0.137, views-linkedin.js): the lawyer's LinkedIn page (people met, ideas, the firm's posts, connecting their
   LinkedIn), writing a post, and Marketing → LinkedIn posts. Rows follow Home's lists: a tile or initials, the words,
   one button at the right. LinkedIn's own logo is never drawn: the arrow says the link leaves Tyde. */
.li-lead { max-width: 760px; margin: -4px 0 16px; }
.li-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.li-list { list-style: none; margin: 0; padding: 0; }
.li-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hair); }
.li-row:first-child { border-top: 0; }
.li-row > .btn, .li-row > form { margin-left: auto; flex: none; }
.li-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.li-what b { font-weight: 500; overflow-wrap: anywhere; }
.li-what small { font-size: 13px; line-height: 1.4; }
.li-tile { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 18px; }
.li-out { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; }
.card > header .link.small { margin-left: auto; font-size: 13px; }
.li-member form { margin-top: 6px; }

/* Writing a post: the box at the left, other ideas at the right; one column on a phone. */
.li-write { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.li-write > aside { display: flex; flex-direction: column; gap: 16px; }
.li-editor textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.5; padding: 12px; resize: vertical; min-height: 220px; }
.li-ai { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 12px 0 4px; }
.li-ai label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 200px; }
.li-ai input { width: 100%; box-sizing: border-box; }
.li-msg { min-height: 1.2em; margin: 4px 0 8px; color: var(--muted); }
.li-msg.err { color: var(--magenta-ink); }
.li-form { margin-top: 8px; }
.li-count { text-align: right; margin: 4px 0 10px; }
.li-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.li-add { display: flex; flex-direction: column; gap: 10px; }
.li-add label { display: flex; flex-direction: column; gap: 4px; }
.li-add input { width: 100%; box-sizing: border-box; }
.li-add .btn { align-self: flex-start; }
.li-bd .btn { margin-top: 10px; }
@media (max-width: 760px) {
  .li-write { grid-template-columns: 1fr; }
  .li-grid { grid-template-columns: 1fr; }
  .li-row { flex-wrap: wrap; }
  .li-row > .btn { margin-left: 48px; }
}

/* Your LinkedIn connections, once (0.139): the three steps, the upload, what Tyde does with the file. */
.li-steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.li-points { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.li-read { margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--hair); }
.li-file-nudge { border-top: 1px solid var(--hair); padding-top: 12px; }
.li-inline { white-space: nowrap; }
.li-inline .li-out { width: 12px; height: 12px; vertical-align: -1px; }
/* Activities (0.141; docs/plans/activities-next-scope.md): the statement at the top of the page, the My activities /
   Everyone's activities switch, the activity form (the New activity page and the short form on a contact's, company's
   or opportunity's page) and long descriptions folded in the lists. */

/* The statement: a teal icon tile, the text across the card, the BD plan button under it. */
.acts-statement { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 16px; }
.acts-statement h2 { margin: 2px 0 6px; font-size: 17px; }
.acts-statement p { margin: 0; line-height: 1.55; color: var(--ink); }
.acts-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.acts-ico .ic { width: 26px; height: 26px; }
.acts-bd { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px; border: 1px solid var(--primary); border-radius: var(--radius-s); color: var(--primary); font-size: 14px; font-weight: 500; text-decoration: none; }
.acts-bd:hover { background: var(--primary-soft); }
.acts-bd .ic { width: 16px; height: 16px; }
.acts-scope { align-items: center; }
.acts-scope > b { font-size: 15px; }

/* The form (0.143: one column, lighter): the direction as one switch, the four types of that direction in one row, the
   fields with their labels above, the date with quick choices and Delegate beside it, and at the foot the owner and where
   the activity will show, then Save. The New activity page and the short form on a record page are the same form. */
.act-card { max-width: 760px; }
.act-card .act-form { padding: 20px 24px 22px; }
.act-sub { margin: 0 0 2px; color: var(--muted); }
.act-form { gap: 14px; container-type: inline-size; } /* the short form sits in narrower cards: it follows its own width */
.add-activity .act-form { padding-top: 0; }
.act-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.act-form .act-field { display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.act-form .act-field > span, .act-form .act-label { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.act-form .act-field small { font-size: 12.5px; }
.act-form .act-headline { font-size: 16px; font-weight: 500; }
.act-form textarea { line-height: 1.5; }

/* The direction: two halves of one switch, the one picked in teal. */
.act-dirs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--panel); }
.act-form .act-dir-opt { position: relative; display: block; cursor: pointer; }
.act-form .act-dir-opt + .act-dir-opt { border-left: 1px solid var(--line); }
.act-form .act-dir-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.act-dir-opt > span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; color: var(--ink); }
.act-dir-opt > span > span { display: grid; line-height: 1.25; }
.act-dir-opt b { font-size: 15px; font-weight: 600; }
.act-dir-opt small { font-size: 13px; color: var(--muted); }
.act-dir-opt .ic { flex: none; width: 20px; height: 20px; color: var(--muted); }
.act-dir-opt:hover > span { background: var(--hover); }
.act-dir-opt input:checked + span { background: var(--primary-soft); box-shadow: inset 0 -3px 0 var(--primary); }
.act-dir-opt input:checked + span .ic { color: var(--primary); }
.act-dir-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }

/* The types of the direction picked: pills in one row. */
.act-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.act-form .act-type { position: relative; display: block; cursor: pointer; }
.act-form .act-type input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.act-type > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 14px; line-height: 1.3; }
.act-type .ic { flex: none; width: 17px; height: 17px; color: var(--muted); }
.act-type:hover > span { background: var(--hover); }
.act-type input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--chip-ink); font-weight: 500; }
.act-type input:checked + span .ic { color: var(--primary); }
.act-type input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-form[data-dir=back] .act-type[data-for=ahead], .act-form[data-dir=ahead] .act-type[data-for=back] { display: none; }

/* The date, with quick choices for the direction picked; Delegate to a colleague beside it, for a next step only. */
.act-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.act-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.act-form .act-dates input[type=date] { width: auto; }
.act-pill { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.act-pill:hover { background: var(--hover); }
.act-pill.on { border-color: var(--primary); color: var(--primary); }
.act-form[data-dir=back] .act-pill[data-for=ahead], .act-form[data-dir=ahead] .act-pill[data-for=back] { display: none; }
.act-form .act-delegate { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--ink); cursor: pointer; }
.act-form .act-delegate:hover { background: var(--hover); }
.act-form[data-dir=back] .act-delegate { display: none; }
.act-form[data-dir=back] .act-when { grid-template-columns: 1fr; }
.act-form .act-delegate input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.act-delegate .sw { flex: none; position: relative; width: 34px; height: 20px; margin-top: 1px; border-radius: 999px; background: var(--weak); transition: background 0.15s; }
.act-delegate .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; transition: left 0.15s; }
.act-delegate input:checked + .sw { background: var(--primary); }
.act-delegate input:checked + .sw::after { left: 16px; }
@media (prefers-reduced-motion: reduce) { .act-delegate .sw::after { transition: none; } }
.act-delegate input:focus-visible + .sw { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-delegate b { display: block; font-size: 14px; font-weight: 500; }
.act-delegate small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.act-form [data-delegated][hidden], .act-form [data-company-row][hidden] { display: none; }
.act-form .act-alone { margin: -6px 0 0; }

/* The foot: who owns it and where it will show, then Save. */
.act-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--hair); }
.act-form .act-where { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.act-owner { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--ink); font-weight: 500; }
.act-owner .avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.act-form .act-foot .form-actions { margin: 0; flex: none; }

/* In the lists: who a step was delegated to; a long description folded to its first lines. */
.deleg { font-size: 12px; color: var(--muted); }
.fold .clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.fold > button { margin-top: 2px; }

/* A narrow form (a side card, a phone): the date and Delegate one above the other. */
@container (max-width: 560px) {
  .act-when { grid-template-columns: 1fr; gap: 6px; }
  .act-dir-opt small { display: none; }
  .act-dir-opt > span { min-height: 44px; }
}
@media (max-width: 760px) {
  .act-card .act-form { padding: 16px 14px 18px; }
  .acts-statement { padding: 16px; gap: 12px; }
  .acts-ico { width: 36px; height: 36px; }
}
/* The record layout (0.143): a contact's and a company's page laid out alike, as an opportunity's. Who it is across the
   top with the actions at the right (Log activity in teal, the rest quiet, More last), the figures in one strip with the
   relationship first, the work on the left (next steps, activity, a company's people) and what the firm knows on the
   right (who knows them, the card, opportunities, lists, Experience). */

/* The header: the mark (a person's coloured initials, a company's logo), the name in 28 px with the marks beside it,
   one line of facts, then any badges. */
.rec-head { align-items: flex-start; flex-wrap: nowrap; gap: 18px; margin: 4px 0 16px; }
.rec-head > .avatar.big { flex: none; width: 64px; height: 64px; font-size: 24px; }
.rec-id { flex: 1 1 auto; min-width: 0; }
.rec-id .biz-name { gap: 8px 10px; }
.rec-id .biz-name h1 { font-size: 28px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.rec-id .biz-role { margin: 6px 0 0; }
.rec-id .biz-lines { margin: 4px 0 0; }
.rec-id .co-sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14px; }
.rec-id .co-sub .sep { margin: 0 8px; }
.rec-status { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rec-id > p.muted.small { margin: 6px 0 0; }
.rec-head .profile-actions { flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rec-head .profile-actions .btn { white-space: nowrap; }

/* The strip: five figures on a contact (four on one's own card and on a company); the ring smaller than on its own. */
.co-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rec-strip { margin-bottom: 18px; }
.rec-strip .co-stat-head > span { display: inline-flex; align-items: center; gap: 4px; }
.rec-strip .co-stat-head > b { white-space: nowrap; }
.rec-ring { margin-top: 4px; }
.rec-ring .ring-block { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-ring .ring.big { width: 42px; height: 42px; }
.rec-ring .ring-block > b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.rec-ring .rel-way { font-size: 12px; color: var(--muted); }
.rec-strip .co-stat-line a { color: var(--primary); font-weight: 500; }
p.co-stat-line.rec-none { display: block; margin-top: 6px; line-height: 1.4; }

/* The two columns: the work wider on the left. A card here lets a look-up hang over its edge, so nothing in it may
   widen its column (min-width: 0 all the way down). */
.rec-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.rec-grid > .stack, .rec-grid > .stack > * { min-width: 0; }

/* A card whose add button sits at the right of its title (Next steps, Activity, Notes): the form opens under the title,
   on a light panel. The card lets a look-up's list of names hang over its edge. */
.rec-card { position: relative; overflow: visible; }
.rec-card:has(> .add-activity) > header { padding-right: 230px; justify-content: flex-start; gap: 10px; } /* the count right after the title */
.rec-card > .add-activity { border-bottom: 0; background: none; scroll-margin-top: 72px; } /* opened from #log or #plan: the card's title stays in view */
.rec-card > .add-activity > summary { position: absolute; top: 9px; right: 14px; margin: 0; }
.rec-card > .add-activity[open] { border-bottom: 1px solid var(--hair); background: var(--hover); padding-top: 16px; }
.rec-card > .add-activity[open] > summary { background: var(--primary-soft); border-color: var(--primary); color: var(--chip-ink); }
.rec-activity > .card-tabs { border-top: 0; }
.rec-touch { border-top: 1px solid var(--hair); }
.rec-touch .touchpoint { border-bottom: 0; padding: 10px 16px; }

/* Next steps in a record card: the date and how far off on one line, so a step takes three lines, not four. */
.rec-card .t-side .days small { display: inline; margin-left: 6px; }

/* A long list folded after its first rows (Next steps): Show all opens the rest in place. */
details.more-rows > summary { list-style: none; cursor: pointer; padding: 10px 16px; border-top: 1px solid var(--hair); color: var(--primary); font-size: 14px; font-weight: 500; }
details.more-rows > summary::-webkit-details-marker { display: none; }
details.more-rows > summary:hover { background: var(--hover); }
details.more-rows[open] > summary { display: none; }
details.more-rows > .todos > li:first-child { border-top: 1px solid var(--hair); }

/* Who knows them in the side column: the strongest six, the rest folded; each row the name, its tags and the last
   contact on a line under it, and the ring. */
.knows.side li a { grid-template-columns: 32px minmax(0, 1fr) 34px; padding: 9px 14px 9px 13px; }
.knows.side .k-num, .knows.side .k-last { display: none; }
.knows.side .k-strength { justify-self: end; }
.knows.side .k-meta { white-space: normal; }
.knows.side li.nobox .k-strength small { display: none; }
.knows-more > summary { list-style: none; cursor: pointer; padding: 10px 16px; border-top: 1px solid var(--hair); color: var(--primary); font-size: 14px; font-weight: 500; }
.knows-more > summary::-webkit-details-marker { display: none; }
.knows-more > summary:hover { background: var(--hover); }
.knows-more[open] > summary { display: none; }
.knows-more .knows li:first-child a { border-top: 1px solid var(--hair); }

/* A company's people: the strongest ten, Show all for the rest; link one more by name. */
.fold-more { border-top: 1px solid var(--hair); }
.fold-more a { font-weight: 500; }
.link-person { align-items: flex-start; }
.link-person .lk { position: relative; flex: 1 1 auto; min-width: 0; }
.link-person .lk-picked:empty { display: none; }
.link-person .btn { flex: none; }

@media (max-width: 860px) {
  .rec-grid { grid-template-columns: 1fr; }
  /* The relationship across the strip, the other figures in pairs under it. */
  .rec-strip .co-stat.rec-rel { grid-column: 1 / -1; }
  .rec-strip .co-stat { border-left: 0; border-top: 1px solid var(--hair); }
  .rec-strip .co-stat.rec-rel { border-top: 0; }
  .rec-strip .co-stat:nth-child(odd):not(.rec-rel) { border-left: 1px solid var(--hair); }
  .rec-ring .ring-block { flex-wrap: nowrap; }
  .co-strip.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-head { flex-wrap: wrap; gap: 14px; }
  .rec-head > .avatar.big { width: 52px; height: 52px; font-size: 20px; }
  .rec-id { flex: 1 1 0; }
  .rec-id .biz-name h1 { font-size: 23px; }
  .rec-head .profile-actions { flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .rec-card:has(> .add-activity) > header { padding-right: 16px; }
  .rec-card > .add-activity > summary { position: static; margin: 10px 16px; }
  .rec-card > .add-activity[open] { padding-top: 0; }
}
/* Campaigns (0.146): tiles with an icon in teal (or magenta for what needs attention), a comparison and a trend line,
   as on Insights; the period switch beside Refresh; an ⓘ beside the rates and Performance. */
.camp-tile small { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.camp-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex: none; }
.camp-ico .ico { width: 16px; height: 16px; }
.camp-tile.attention .camp-ico { background: var(--magenta-soft); color: var(--magenta-ink); }
.camp-tile small .info { margin-left: 0; }
.camp-tile > span .flames { font-size: 13px; vertical-align: -1px; margin-right: 4px; }
.camp-tile .kpi-trend em.flat { color: var(--muted); }
.title-row .actions .camp-period { margin-right: 4px; }
.camp-unrated { display: inline-flex; align-items: center; white-space: nowrap; }
/* Performance holds "Too early to rate" and its ⓘ: wider, the lists a little narrower (02-pages.css set 100 and 172). */
.campaigns-table col.c-hot { width: 136px; } .campaigns-table col.c-lists { width: 150px; }
/* Tips near the right edge open to the left. */
.campaigns-table th:nth-last-child(-n+3) .info .tip, .campaigns-table .camp-unrated .info .tip, .camp-title .info .tip { left: auto; right: -12px; }
.camp-title .actions { align-items: center; }
/* Plan follow-ups (0.146): the menu at the right of Who opened and clicked, the tick box on each row. */
.camp-people > header { justify-content: flex-start; }
.camp-people > header .camp-follow { margin-left: auto; }
.camp-follow .more-panel { width: 320px; z-index: 5; }
.camp-follow .more-panel p { margin: 4px 10px 8px; line-height: 1.4; }
.camp-who th.tick, .camp-who td.tick { width: 32px; padding-right: 0; }
/* Forward to a contact (0.146). */
.camp-email > header .btn { margin-left: auto; }
.camp-fwd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.camp-fwd-actions [data-camp-said] { color: var(--chip-ink); }
.camp-fwd-actions [data-camp-said].err { color: var(--magenta-ink); }
.camp-fwd-log { padding-top: 10px; border-top: 1px solid var(--hair); }
/* On a phone the title's flames and ⓘ sit on the left under the title: its tip opens to the right, within the screen. */
@media (max-width: 640px) {
  .camp-title .actions { position: relative; }
  .camp-title .info { position: static; }
  .camp-title .info .tip { left: 0; right: auto; width: min(300px, calc(100vw - 32px)); }
}
/* Referrals (0.149): the ledger, the form, the card on a company's page. */
.rfl-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rfl-firm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; vertical-align: middle; }
.rfl-firm span { font-weight: 600; }
.rfl-firm:hover span { color: var(--primary); }
.rfl-country { display: block; margin: 2px 0 0 32px; }
.rfl-balance td { vertical-align: middle; }
.rfl-owed { color: var(--magenta-ink); font-weight: 500; }
.rfl-list { list-style: none; margin: 0; padding: 0; }
.rfl-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 16px; border-top: 1px solid var(--line); }
.rfl-list li:first-child { border-top: 0; }
.rfl-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.rfl-main { min-width: 0; }
.rfl-main small { display: block; margin-top: 2px; }
.rfl-main .sep { margin: 0 6px; }
.rfl-main small .rfl-firm span { font-weight: 500; }
.rfl-main .rfl-firm { vertical-align: baseline; }
.rfl-desc { margin: 6px 0 0; color: var(--ink); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rfl-dir { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 1px 6px; margin-right: 6px; border-radius: 4px; background: var(--neutral); color: var(--muted); }
.rfl-dir.in { background: var(--primary-soft); color: var(--chip-ink); }
.rfl-card header .rfl-owed, .rfl-card header .muted { font-size: 13px; }
.rfl-card .co-stat-line { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.rfl-card .co-stat-line b { font-weight: 600; }
.rfl-card .pad { padding-bottom: 8px; }
.rfl-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rfl-value input { max-width: 220px; }
@media (max-width: 640px) {
  .rfl-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .rfl-date { grid-column: 1 / -1; }
  .rfl-balance .rfl-opt { display: none; } /* won and the last date: the ledger fits a phone */
}
/* The directory of law firms (0.150, directory mode): the public pages and the review screen. Its own slim shell
   (no Tyde menu), the same colours, fonts, cards and tables. */
body.dir { display: block; background: var(--bg); }
.dir-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.dir-head { background: var(--head); color: #fff; }
.dir-head .dir-in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.dir-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; letter-spacing: .01em; }
.dir-brand img { display: block; height: 26px; width: auto; }
.dir-brand .beta { display: none; }
.dir-head .dir-search { display: flex; flex: 1 1 260px; max-width: 420px; gap: 6px; }
.dir-head .dir-search input { flex: 1; min-width: 0; height: 36px; border-radius: var(--radius-s); border: 1px solid var(--head-muted); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 12px; }
.dir-head .dir-search input::placeholder { color: rgba(255, 255, 255, .6); }
.dir-head .dir-search .btn { height: 36px; }
.dir-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.dir-nav a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500; }
.dir-nav a:hover, .dir-nav a.on { color: #fff; background: rgba(255, 255, 255, .1); }
.dir-nav .dir-lang { border: 1px solid var(--head-muted); margin-left: 6px; font-size: 13px; }
.dir-main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 48px; }
.dir-main h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.dir-main h1 .badge { vertical-align: middle; font-size: 12px; }
.dir-lead { margin: 0 0 20px; color: var(--muted); font-size: 16px; max-width: 70ch; }
.dir-crumbs { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.dir-crumbs a { color: var(--primary); }
.dir-hero { padding: 24px 0 8px; text-align: left; }
.dir-hero h1 { font-size: 34px; }
.dir-kpis { margin-bottom: 24px; }
.dir-kpi-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dir-kpi-link:hover b { color: var(--primary); }
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.dir-grid .stack { display: grid; gap: 16px; }
.dir-countries { list-style: none; margin: 0; padding: 6px 0; }
.dir-countries li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 16px; }
.dir-countries li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.dir-countries li a:hover { color: var(--primary); }
.dir-countries li small { color: var(--muted); white-space: nowrap; }
.dir-countries.cols { columns: 3; column-gap: 0; padding: 8px 0; }
.dir-countries.cols li { break-inside: avoid; }
.dir-about-short { margin: 8px 0 0; max-width: 70ch; }
.dir-about-short h2 { font-size: 18px; margin: 0 0 6px; }
.dir-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.dir-chips li a { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); text-decoration: none; font-size: 14px; }
.dir-chips li a:hover { border-color: var(--primary); color: var(--primary); }
.dir-chips li a small { color: var(--muted); }
.dir-table td, .dir-table th { white-space: normal; }
.dir-table td.dir-nets { color: var(--muted); font-size: 13px; }
.dir-firm { color: var(--ink); text-decoration: none; }
.dir-firm:hover b { color: var(--primary); }
.dir-firm .badge { margin-left: 6px; }
.dir-list { list-style: none; margin: 0; padding: 4px 0; }
.dir-list li { padding: 8px 16px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.dir-list li:first-child { border-top: 0; }
.dir-list li a { text-decoration: none; }
.dir-offices .dir-office-country a { color: var(--ink); font-weight: 600; }
.dir-offices .dir-office-cities { color: var(--muted); font-size: 14px; }
.dir-offices .dir-office-cities a { color: var(--primary); }
.dir-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dir-note { margin: 16px 0 0; max-width: 80ch; }
.dir-rec-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 0 0 18px; }
.dir-rec-sub { margin: 4px 0 0; color: var(--muted); }
.dir-rec-sub a { color: var(--primary); }
.dir-span { grid-column: 1 / -1; }
.dir-cc { color: var(--muted); font-weight: 500; white-space: nowrap; }
/* The map (0.154) */
body.dir-wide .dir-main { max-width: 1280px; }
.dir-map-head .dir-lead { margin-bottom: 14px; }
.dir-map-card { margin: 0 0 16px; padding: 0; }
.dir-map { position: relative; height: min(72vh, 680px); min-height: 360px; border-radius: inherit; overflow: hidden; }
.dir-map.small { height: 380px; min-height: 0; }
.dir-map.home { height: 460px; min-height: 0; border-radius: 0 0 var(--radius) var(--radius); }
.dir-map .maplibregl-canvas { outline: none; }
.dir-map-count { pointer-events: none; color: #fff; font: 600 12px/1 Roboto, system-ui, sans-serif; text-shadow: 0 0 2px rgba(0, 0, 0, .25); }
.dir-map-pop small { display: block; color: var(--muted); margin-bottom: 4px; }
.dir-map-pop ul { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 4px; max-height: 170px; overflow-y: auto; overscroll-behavior: contain; }
.dir-map-pop a { color: var(--primary); font-weight: 600; text-decoration: none; }
.dir-map-pop a:hover { text-decoration: underline; }
.dir-map .maplibregl-popup-content { background: var(--panel); color: var(--ink); border-radius: var(--radius-s); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); font: 14px/1.4 Roboto, system-ui, sans-serif; padding: 10px 28px 10px 12px; }
.dir-map .maplibregl-popup-tip { border-top-color: var(--panel); border-bottom-color: var(--panel); }
.dir-map .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; }
.dir-map .maplibregl-ctrl-attrib { font-size: 11px; }
.dir-map-msg { position: absolute; inset: auto 12px 12px 12px; margin: 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .dir-map { height: 62vh; } .dir-map.small { height: 260px; } .dir-map.home { height: 320px; } }
.dir-connect-url { margin: 0 0 16px; }
.dir-connect-url code { display: block; margin: 4px 0 8px; font-size: 17px; font-weight: 600; user-select: all; word-break: break-all; color: var(--ink); }
.dir-steps { margin: 0; padding: 12px 16px 14px 36px; display: grid; gap: 8px; line-height: 1.5; }
ul.dir-steps { list-style: disc; }
.dir-ai { margin-top: 12px; }
.dir-chips.pad { padding: 12px 16px; margin: 0; }
.dir-form { padding: 20px; max-width: 640px; display: grid; gap: 14px; }
.dir-form label { display: grid; gap: 6px; font-weight: 500; }
.dir-form label small { font-weight: 400; }
.dir-form textarea, .dir-form input[type=email] { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); color: var(--ink); padding: 8px 10px; font: inherit; }
.dir-kind { border: 0; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.dir-kind legend { font-weight: 500; margin-bottom: 6px; }
.dir-kind label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.dir-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dir-form-actions { display: flex; gap: 10px; }
.dir-prose { max-width: 72ch; }
.dir-prose h2 { font-size: 20px; margin: 28px 0 8px; }
.dir-prose p { line-height: 1.55; }
.dir-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 18px 0 28px; }
.dir-foot p { margin: 4px 0; }
.dir-foot a { color: var(--primary); }
.dir-requests li { flex-direction: column; align-items: stretch; }
.dir-req-text { margin: 6px 0 8px; white-space: pre-line; }
.dir-req-actions { display: flex; gap: 8px; }
.dir-inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
.dir-inline label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.dir-inline input, .dir-inline select { height: 34px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); color: var(--ink); padding: 0 10px; }
.dir-newkey code { user-select: all; word-break: break-all; }
@media (max-width: 760px) {
  .dir-in, .dir-main { padding-left: 16px; padding-right: 16px; }
  .dir-head .dir-in { gap: 10px; }
  .dir-head .dir-search { order: 3; flex-basis: 100%; max-width: none; }
  .dir-nav { margin-left: auto; }
  .dir-grid { grid-template-columns: minmax(0, 1fr); }
  .dir-countries.cols { columns: 1; }
  .dir-hero h1 { font-size: 26px; }
  .dir-kpis { grid-template-columns: repeat(2, 1fr); }
  .dir-main h1 { font-size: 24px; }
}

/* 0.155: the team signs in from the footer; a firm's edit page */
.dir-team-line { margin-top: 6px; font-size: 12px; }
.dir-team-line a, .dir-team-line .link { color: inherit; opacity: .75; }
.dir-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.dir-inline-form .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.dir-edit .card { margin-bottom: 16px; }
.dir-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.dir-form-grid label, .dir-block { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dir-form-grid input, .dir-block textarea { width: 100%; }
.dir-block textarea { min-height: 160px; }
.dir-edit-table td { vertical-align: middle; }
.dir-edit-table input:not([type=radio]):not([type=checkbox]), .dir-edit-table select { width: 100%; min-width: 120px; }
.dir-edit-table tr.dir-edit-new td { background: var(--bg); }
.dir-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.dir-edit-mem { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dir-danger header h2 { color: var(--magenta-ink); }
.dir-danger .dir-inline { flex-wrap: wrap; }
.dir-rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dir-inline label.dir-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); white-space: normal; }
.dir-danger .dir-inline label:not(.dir-check) { flex: 1 1 260px; max-width: 420px; }
.dir-danger .dir-inline input:not([type=checkbox]) { width: 100%; }
.dir-inline label.dir-check { flex: 1 1 100%; }
.dir-check input[type=checkbox] { width: auto; height: auto; flex: none; margin: 0; }
.dir-team-line .dir-inline-form { display: inline; }

.dir-kpi-ico small { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 4px; }
.dir-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex: none; }
.dir-ico .ico { width: 20px; height: 20px; }

/* Atlas's mark beside Tyde's (0.156): a thin rule, then the globe in white with the three firms in teal. */
.dir-brand-rule { width: 1px; height: 24px; background: var(--head-muted); opacity: .45; }
.dir-atlas { display: block; width: 30px; height: 30px; color: #fff; }
.dir-atlas-net { stroke: #25a886; }
.dir-atlas-node { fill: #25a886; stroke: var(--head); stroke-width: 1.4; }

/* The finder (0.156): one white bar of segments (a label with its icon above the field), the teal button at its end;
   two rows at tablet width, one segment a row on a phone. Fields are borderless inside their segment; the segment
   shows the focus. */
.dir-find { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(11, 11, 15, .05), 0 6px 18px rgba(11, 11, 15, .05); padding: 6px; margin: 0 0 20px; }
.dir-find.home { margin: 18px 0 26px; }
.dir-find-seg { display: grid; gap: 3px; align-content: center; min-width: 0; padding: 8px 14px; border-radius: var(--radius-s); cursor: pointer; position: relative; }
.dir-find-seg + .dir-find-seg::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--hair); }
.dir-find-seg:hover { background: var(--bg); }
.dir-find-seg:hover::before, .dir-find-seg:hover + .dir-find-seg::before, .dir-find-seg:focus-within::before, .dir-find-seg:focus-within + .dir-find-seg::before { background: transparent; }
.dir-find-seg:focus-within { background: var(--panel); box-shadow: inset 0 0 0 2px var(--primary); }
.dir-find-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-find-l .ico { width: 15px; height: 15px; color: var(--primary); flex: none; }
.dir-find .dir-find-seg input:not([type=hidden]):not([type=radio]):not([type=checkbox]), .dir-find .dir-find-seg select { width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px 0; font-size: 15px; color: var(--ink); border-radius: 0; height: auto; }
.dir-find .dir-find-seg input:not([type=hidden]):not([type=radio]):not([type=checkbox]):focus, .dir-find .dir-find-seg select:focus { outline: none; box-shadow: none; }
.dir-find-sel { position: relative; display: block; }
.dir-find select { appearance: none; -webkit-appearance: none; padding-right: 22px; cursor: pointer; text-overflow: ellipsis; }
.dir-find select option, .dir-find select optgroup { color: var(--ink); background: var(--panel); }
.dir-find-chev { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dir-find-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: 6px; padding: 0 22px; min-height: 52px; font-size: 15px; white-space: nowrap; }
.dir-find-go .ico { width: 18px; height: 18px; }
.dir-find-chips { margin: -8px 0 16px; }
.dir-find-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--chip-ink); font-size: 14px; }
.dir-find-chip a { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; text-decoration: none; font-size: 16px; line-height: 1; }
.dir-find-chip a:hover { background: var(--panel); }
.dir-find-clear { margin-left: 8px; font-size: 14px; color: var(--primary); }
@media (max-width: 1000px) {
  .dir-find { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4px; }
  .dir-find-seg.q { grid-column: 1 / -1; }
  .dir-find-seg.q + .dir-find-seg::before { display: none; }
  .dir-find-go { grid-column: 1 / -1; margin: 4px 0 0; min-height: 46px; }
}
@media (max-width: 640px) {
  .dir-find { grid-template-columns: minmax(0, 1fr); }
  .dir-find-seg + .dir-find-seg::before { display: block; left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .dir-find-seg.q + .dir-find-seg::before { display: block; }
}

/* Claiming a firm's profile (0.157): the verified mark, the pop-up, the code, the corner card. */
.dir-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dir-verified { display: inline-flex; vertical-align: -3px; color: var(--primary); }
.dir-verified .ico { width: 17px; height: 17px; }
.dir-verified-line { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--primary); }
.dir-verified-line .ico { width: 18px; height: 18px; flex: none; }
.dir-verified-line.no { color: var(--muted); font-weight: 400; }
.dir-you-manage { margin: -6px 0 16px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--primary-soft); color: var(--chip-ink); font-size: 14px; }
.dir-claim-dialog { width: min(540px, calc(100% - 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 48px rgba(11, 11, 15, .25); }
.dir-claim-dialog::backdrop { background: rgba(11, 11, 15, .45); }
.dir-claim-in { padding: 22px 24px 24px; }
.dir-claim-in h2 { margin: 0 0 4px; font-size: 20px; }
.dir-claim-in > p { margin: 0 0 16px; }
.dir-claim-card { max-width: 560px; padding: 22px 24px; }
.dir-claim-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dir-claim-form [data-claim-error][hidden] { display: none; }
.dir-claim-form[hidden] { display: none; }
.dir-claim-form > label:not(.dir-check), .dir-claim-two > label { display: grid; gap: 6px; font-weight: 500; }
.dir-claim-form input:not([type=checkbox]):not([type=hidden]), .dir-claim-form select { width: 100%; box-sizing: border-box; }
.dir-claim-form p { margin: 0; }
.dir-claim-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.dir-claim-countries { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--hair); border-radius: var(--radius-s); display: grid; gap: 8px; }
.dir-claim-countries legend { padding: 0 4px; font-weight: 500; }
.dir-claim-countries .dir-check { font-size: 14px; }
.dir-claim-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; padding-left: 4px; }
.dir-claim-list[hidden] { display: none; }
.dir-claim-tick { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.45; white-space: normal; }
.dir-claim-tick input { margin-top: 3px; flex: none; }
.dir-claim-form input.dir-code-input:not([type=checkbox]):not([type=hidden]) { width: 11ch; font-size: 26px !important; letter-spacing: .28em; text-align: center; font-variant-numeric: tabular-nums; }
.dir-claiming { justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hair); }
.dir-nudge { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(320px, calc(100% - 32px)); box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: 0 10px 30px rgba(11, 11, 15, .18); opacity: 0; transform: translateY(12px); }
.dir-nudge.in { opacity: 1; transform: none; }
.dir-nudge p { margin: 0 22px 12px 0; font-size: 14px; line-height: 1.45; }
.dir-nudge-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.dir-nudge-x:hover { background: var(--bg); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .dir-nudge { transition: opacity .25s ease, transform .25s ease; } }
@media (prefers-reduced-motion: reduce) { .dir-nudge { transform: none; } }
@media (max-width: 640px) { .dir-claim-two { grid-template-columns: minmax(0, 1fr); } .dir-claim-in { padding: 18px 16px 20px; } }

/* 0.160: the verified badge (a magenta rosette with a white check), logos, the profile, the foot's links, more magenta.
   Steven: "the equivalent of the Twitter blue check mark", "I'm missing a bit of the magenta". Teal stays the colour of
   what is clicked; magenta marks what should catch the eye: the badge, the invitation to claim, one firm of the mark. */
.dir-verified { color: var(--magenta); vertical-align: -4px; }
.dir-badge { display: block; width: 18px; height: 18px; flex: none; }
.dir-badge-bg { fill: var(--magenta); stroke: var(--magenta); stroke-width: 1.2; stroke-linejoin: round; }
.dir-badge-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
h1 .dir-verified { vertical-align: -2px; margin-left: 2px; }
h1 .dir-badge { width: 24px; height: 24px; }
.dir-verified-line { color: var(--magenta-ink); }
.dir-verified-line .dir-badge { width: 18px; height: 18px; }
.dir-map-pop .dir-verified { vertical-align: -3px; }
.dir-map-pop .dir-badge { width: 15px; height: 15px; }
.dir-atlas-hot { fill: var(--magenta); }
.btn.dir-claim-btn { background: var(--magenta-soft); border-color: var(--magenta); color: var(--magenta-ink); }
.btn.dir-claim-btn:hover { background: var(--magenta); border-color: var(--magenta); color: var(--primary-ink); }
.dir-nudge { border-left-color: var(--magenta); }

/* Logos: on a white tile in both themes, so a dark logo stays readable. */
.dir-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; background: #fff; border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
.dir-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.dir-logo.small { width: 24px; height: 24px; padding: 2px; border-radius: 5px; }
.dir-logo.big { width: 72px; height: 72px; padding: 6px; border-radius: 10px; }
.dir-logo.big.empty { background: var(--bg); color: var(--muted); font-size: 28px; font-weight: 600; }
.dir-firm.with-logo { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-firm.with-logo .badge { margin-left: 0; }
.dir-rec-head.with-logo { justify-content: flex-start; }
.dir-rec-head .dir-rec-main { flex: 1 1 320px; min-width: 0; }
.dir-rec-head .dir-rec-actions { margin-left: auto; }

/* The firm's own words and its contact person. */
.dir-profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 16px; }
.dir-profile.with-contact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dir-description p { margin: 0 0 10px; line-height: 1.6; }
.dir-description p:last-child { margin-bottom: 0; }
.dir-contact .pad { display: grid; gap: 12px; justify-items: start; }
.dir-contact-name { margin: 0; line-height: 1.5; }

/* The edit page's logo card. */
.dir-logo-card { margin-bottom: 16px; }
.dir-logo-edit { display: flex; gap: 18px; align-items: flex-start; }
.dir-logo-edit p { margin: 8px 0 0; }
.dir-logo-pick { position: relative; overflow: hidden; cursor: pointer; }
.dir-logo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dir-logo-msg.err { color: var(--magenta-ink); }
.dir-logo-edit .dir-inline-form { display: inline; margin-left: 10px; }
.dir-form-grid.one { grid-template-columns: minmax(0, 1fr); }

/* The foot's links (the top menu keeps only Use with AI, About and the language). */
.dir-foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.dir-foot-nav a { text-decoration: none; }
.dir-foot-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .dir-profile.with-contact { grid-template-columns: minmax(0, 1fr); } .dir-logo.big { width: 56px; height: 56px; } }
/* My profile and colleagues' photos (0.151, docs/plans/my-profile-and-photos-scope.md). A photo sits where the coloured
   initials sat, at the same size; My profile is a page of its own (who you are, your work, biography, background,
   networks, beyond work); Our people is the firm's people as cards with their photos, for everyone. */

/* A colleague's photo in any avatar (xs 20–22 px, 32 px, big, huge). */
.avatar.photo { background: var(--neutral); overflow: hidden; padding: 0; }
.avatar.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.side-user > summary .avatar.photo { background: #34343f; }
.avatar.huge { width: 96px; height: 96px; font-size: 34px; }

/* My profile: the photo, who it is and what to do about the photo; how complete it is at the right. */
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(200px, 280px); gap: 20px; align-items: start; margin: 4px 0 14px; }
.pf-id h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.pf-src { margin: 6px 0 0; }
.pf-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.pf-photo-actions form { margin: 0; }
.pf-choose { position: relative; cursor: pointer; }
.pf-choose:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.pf-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pf-photo-msg.err { color: var(--err-ink); }
.pf-meter { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; }
.pf-meter .bar { display: block; height: 8px; border-radius: 999px; background: var(--neutral); overflow: hidden; }
.pf-meter .bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; }
.pf-meter .bar i.w1 { width: 10%; } .pf-meter .bar i.w2 { width: 20%; } .pf-meter .bar i.w3 { width: 30%; } .pf-meter .bar i.w4 { width: 40%; }
.pf-meter .bar i.w5 { width: 50%; } .pf-meter .bar i.w6 { width: 60%; } .pf-meter .bar i.w7 { width: 70%; } .pf-meter .bar i.w8 { width: 80%; }
.pf-meter .bar i.w9 { width: 90%; } .pf-meter .bar i.w10 { width: 100%; }
.pf-done { color: var(--ok-ink); }
.pf-lead { max-width: 760px; }

/* The sections: two columns on a wide screen, one below. */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pf-grid #pf-bio { grid-row: span 2; }
.pf-sec .pad { display: grid; gap: 14px; }
.pf-field { display: grid; gap: 4px; }
.pf-field > label, .pf-field > .as-label { display: grid; gap: 4px; }
.pf-field > label > span, .pf-field > .as-label > span { font-weight: 600; font-size: 14px; }
.pf-field input:not([type="checkbox"]):not([type="hidden"]), .pf-field textarea { width: 100%; }
.pf-field small.muted { font-size: 13px; }
.pf-field .checks { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 220px; overflow: auto; }
.pf-note { margin: 0; }
.pf-save { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); display: flex; align-items: center; gap: 16px; }

/* A colleague's page in Our people: the photo beside the name. */
.pp-head { display: flex; gap: 18px; align-items: center; margin: 4px 0 16px; }
.pp-head .title-row { margin: 0; }
.pp-interests { margin: 6px 0 0; }

/* Our people: the cards. */
.pp-links { margin-left: auto; display: flex; gap: 8px; }
.pp-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.pp-filters input[type="search"] { flex: 1 1 240px; max-width: 360px; }
.pp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pp-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; }
.pp-card:hover { border-color: var(--primary); }
.pp-card .avatar.big { width: 64px; height: 64px; font-size: 22px; }
.pp-who { display: grid; gap: 3px; min-width: 0; }
.pp-who b { color: var(--primary); overflow-wrap: anywhere; }
.pp-who > .badge { justify-self: start; }
.pp-who small { color: var(--muted); }
.pp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

@media (max-width: 900px) {
  .pf-head { grid-template-columns: auto minmax(0, 1fr); }
  .pf-meter { grid-column: 1 / -1; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-grid #pf-bio { grid-row: auto; }
}
@media (max-width: 560px) {
  .avatar.huge { width: 72px; height: 72px; font-size: 26px; }
  .pf-head { gap: 14px; }
  .pf-id h1 { font-size: 24px; }
  .pp-head { align-items: flex-start; gap: 14px; }
  .pp-links { margin-left: 0; }
}
/* Atlas: people and moves (0.161, directory mode): the Key people card, Recent changes and Moves, the forms that keep
   them. Built on 18-directory.css (cards, lists, the form grid). */
.dir-one { margin-bottom: 16px; }

/* Key people on the firm's page: name and role, then title and office, the links at the right. */
.dir-people-list .dir-person { align-items: flex-start; }
.dir-person-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.dir-person-name .badge { margin-left: 6px; vertical-align: 1px; }
.dir-person-role { font-size: 14px; color: var(--ink); }
.dir-person-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.dir-people-foot { margin: 0; border-top: 1px solid var(--hair); }

/* Changes in a list: the date in a narrow column, the sentence beside it. */
.dir-moves .dir-move { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.dir-move time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dir-move-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.45; }
.dir-move-main > span:first-of-type a { text-decoration: none; font-weight: 600; }
.dir-move-link { font-size: 12px; font-weight: 600; text-transform: none; color: var(--primary); text-decoration: none; }
.dir-move-link:hover { text-decoration: underline; }
.dir-move-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dir-move-tags .badge { margin-right: 0; }

/* The Moves page: its filters on one row, wrapping. */
form.card.dir-moves-filter { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 16px; }
.dir-moves-filter select { width: auto; min-width: 150px; max-width: 100%; }
.dir-moves-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dir-moves-filter .dir-moves-q { flex: 1 1 200px; }
.dir-moves-filter .dir-moves-q input { width: 100%; }
.dir-pager { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0 24px; }
.dir-pager a:only-child { margin-left: auto; }

/* A change's own page. */
.dir-move-page h1 { line-height: 1.3; }
.dir-move-page h1 a { text-decoration: none; }
.dir-move-page .card { margin-bottom: 16px; }
.dir-move-page .dir-list li form { display: inline-flex; gap: 8px; align-items: center; }

/* Keeping key people: one folded card per person, the add form below. */
.dir-person-edit { margin-bottom: 12px; }
.dir-person-edit > summary { padding: 14px 16px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dir-person-edit[open] > summary { border-bottom: 1px solid var(--hair); }
.dir-check-note { background: var(--magenta-soft); border-bottom: 1px solid var(--hair); }
.dir-check-note p { margin: 0 0 8px; color: var(--ink); }
.dir-form-grid .dir-span2 { grid-column: 1 / -1; }
.dir-form-grid label.dir-check { flex-direction: row; color: var(--ink); white-space: normal; }

/* Announcing a change: the kinds as a list of choices, then the people two by two. */
.dir-kinds { border: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
.dir-kind-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 8px; cursor: pointer; }
.dir-kind-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.dir-kind-opt input { margin-top: 3px; }
.dir-kind-opt span { display: flex; flex-direction: column; gap: 2px; }
.dir-announce-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; margin-bottom: 10px; }
.dir-announce-person label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dir-announce-person input { width: 100%; }
.dir-edit details > summary { cursor: pointer; margin: 4px 0 10px; color: var(--primary); }

@media (max-width: 640px) {
  .dir-moves .dir-move { grid-template-columns: minmax(0, 1fr); }
  .dir-announce-person { grid-template-columns: minmax(0, 1fr); }
  .dir-moves-filter label { flex: 1 1 100%; }
  .dir-moves-filter select { width: 100%; }
}
