/* Power Relations System: Codnity's look from codnity.com (CLAUDE.md "Look").
   Black background, dark cards with thin white borders, white text with 60% and 80% white for secondary text,
   DM Sans with ss01 for text, JetBrains Mono for small uppercase labels, Codnity purple for primary buttons
   (pill shaped), power contacts and Level 1, and the unit colors for services. No inline styles: the content
   security policy allows only this file. */

:root {
  --bg: #000; --card: #0D0D0D; --card-2: #141414;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.22);
  --text: #fff; --text-2: rgba(255,255,255,.8); --text-3: rgba(255,255,255,.6); --text-4: rgba(255,255,255,.42);
  --purple: #7027FF; --purple-2: #8A4DFF; --purple-soft: rgba(112,39,255,.1); --purple-line: rgba(112,39,255,.7); --link: #B79CFF;
  --dev: #7027FF; --data: #FFA500; --creative: #0093EA; --talzy: #565AE6;
  --warn: #FFC766; --warn-soft: rgba(255,165,0,.1); --bad: #FF8A8A; --bad-soft: rgba(255,80,80,.1); --ok: #6EE7B7; --ok-soft: rgba(52,211,153,.1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--text); font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-feature-settings: "ss01"; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #DCCFFF; text-decoration: underline; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.small { font-size: 13px; }

/* labels: eyebrows, tags, table heads */
.eyebrow, .tag, th, .mono { font-family: var(--mono); }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.eyebrow.purple { color: #D2BFFF; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--text-2); white-space: nowrap; }
.tag.power { background: var(--purple); color: #fff; }
.tag.stale { background: var(--warn-soft); color: var(--warn); }
.tag.touch { background: rgba(255,255,255,.06); color: var(--warn); }
.tag.private { background: rgba(255,255,255,.05); color: var(--text-2); border: 1px dashed var(--line-3); }
.tag.dev { background: rgba(112,39,255,.2); color: #CDB8FF; } .tag.data { background: rgba(255,165,0,.16); color: #FFC766; }
.tag.creative { background: rgba(0,147,234,.18); color: #7CCBFF; } .tag.talzy { background: rgba(86,90,230,.22); color: #B9BBFF; }
.tag.phase2 { background: transparent; border: 1px solid var(--line-3); color: var(--text-3); }
/* a level (section 5), as a tag: "Level 1 · Power contact", or "L1" where space is tight. Level 1 keeps the purple. */
.grade { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: rgba(255,255,255,.1); color: var(--text-2); }
.grade.l1 { background: var(--purple); color: #fff; }
.grade.l2 { background: rgba(112,39,255,.35); color: #fff; }
.grade.g-none { background: transparent; border: 1px dashed var(--line-3); color: var(--text-3); font-weight: 500; }

/* header and the loop menu */
.top { background: rgba(10,10,10,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand .word { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 7px; }
.brand .sub { font-size: 14px; color: var(--text-3); border-left: 1px solid var(--line-2); padding-left: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; flex: 1 1 auto; }
.nav a { color: var(--text-2); display: inline-flex; align-items: center; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--purple); }
.nav .num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-right: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; background: rgba(255,255,255,.1); color: var(--text); }
.nav a.on .num { background: var(--purple); }
.nav .later { color: var(--text-4); }
.nav .arrow { color: var(--text-4); font-size: 13px; }
.nav .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.nav .round { color: var(--link); font-size: 17px; line-height: 1; border: 0; }
.who a { color: var(--text); }
.who a:hover { text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar.off { background: rgba(255,255,255,.1); }
.banner { background: var(--warn-soft); color: var(--warn); font-size: 12.5px; text-align: center; padding: 6px 16px; }

main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head .lead { max-width: 70ch; color: var(--text-2); font-size: 16px; margin-top: 8px; }

/* cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.purple { background: var(--purple-soft); border-color: var(--purple-line); }
.card.flat { padding: 16px 18px; border-radius: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } h1 { font-size: 32px; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.list { display: flex; flex-direction: column; }
.list > * { padding: 12px 0; border-top: 1px solid var(--line); }
.list > *:first-child { border-top: 0; padding-top: 0; }
.empty { color: var(--text-3); font-size: 14px; }
.note-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.warnbox { background: var(--warn-soft); border: 1px solid rgba(255,165,0,.35); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.badbox { background: var(--bad-soft); border: 1px solid rgba(255,80,80,.35); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.okbox { background: var(--ok-soft); border: 1px solid rgba(52,211,153,.35); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* the loop on Home */
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.step.later { background: transparent; border-style: dashed; }
.step .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 700; background: rgba(255,255,255,.1); }
.step.live .n { background: var(--purple); }
.step .count { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.step .next { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.round-line { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.round-line .r { color: var(--link); font-size: 18px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255,255,255,.025); }
td .name { font-weight: 600; color: var(--text); }
.knowers { display: flex; gap: 4px; flex-wrap: wrap; }
.kn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.05); border-radius: 100px; padding: 2px 8px 2px 3px; }
.kn.l1 { background: rgba(112,39,255,.28); color: var(--text); }

/* forms and buttons */
.btn { font: inherit; font-size: 14.5px; font-weight: 600; min-height: 42px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line-3); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { border-color: rgba(255,255,255,.4); text-decoration: none; color: var(--text); }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--purple-2); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.link { border: 0; padding: 0 4px; color: var(--text-2); text-decoration: underline; font-weight: 500; min-height: 34px; }
.btn:disabled { opacity: .45; cursor: default; }
/* a choice box's buttons carry names: a long one wraps inside its button and never widens the page */
.choicebox .btn { white-space: normal; overflow-wrap: anywhere; text-align: left; max-width: 100%; padding-block: 6px; }
.chip { font: inherit; font-size: 13px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border-radius: 100px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); min-width: 0; }
label.f > span.h { font-size: 12px; color: var(--text-3); }
.inp, select.inp, textarea.inp { width: 100%; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
textarea.inp { min-height: 90px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(112,39,255,.25); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--purple); width: 16px; height: 16px; flex: none; }
.check .h { display: block; font-size: 13px; color: var(--text-3); }
/* the level buttons: the grade page's three levels with Ģirts's sentences and "I don't know them", one under the other;
   in Add a contact a compact three across, one under the other on a phone. The pressed one is the answer picked. */
.levels { display: grid; gap: 10px; }
.level-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-height: 48px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.level-btn:hover { border-color: rgba(255,255,255,.4); }
.level-btn:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.level-btn[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.lv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; align-self: stretch; font-size: 16px; }
.lv-head b { font-weight: 700; }
.level-btn[aria-pressed="true"] .lv-head::after { content: "✓"; margin-left: auto; color: var(--purple-2); font-weight: 700; }
.lv-says { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.level-btn.not-known { justify-content: center; padding-block: 10px; border-style: dashed; background: transparent; }
.level-btn.not-known[aria-pressed="true"] { border-style: solid; }
.levels.compact { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px; }
.levels.compact .level-btn { padding: 10px 12px; gap: 4px; border-radius: 12px; }
.levels.compact .lv-head { font-size: 14px; }
.levels.compact .lv-says { font-size: 12.5px; color: var(--text-3); }
.status { font-size: 13.5px; color: var(--ok); }
.err { color: var(--bad); font-size: 13.5px; min-height: 1em; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1C1C1C; border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 18px; font-size: 14px; z-index: 20; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--purple); }
.bar.w0 > i { width: 0 } .bar.w1 > i { width: 14% } .bar.w2 > i { width: 29% } .bar.w3 > i { width: 43% } .bar.w4 > i { width: 57% } .bar.w5 > i { width: 71% } .bar.w6 > i { width: 86% } .bar.w7 > i { width: 100% }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ticks li { display: flex; gap: 8px; }
.ticks li::before { content: "○"; color: var(--text-4); }
.ticks li.done::before { content: "●"; color: var(--purple-2); }

/* sign-in pages */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 22px; }
.auth .card { width: 100%; max-width: 400px; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-4); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* the notice batch texts */
pre.mailtext { white-space: pre-wrap; font-family: inherit; font-size: 14px; margin: 0; color: var(--text-2); }

/* the public notice page (9.6) */
.notice { max-width: 760px; gap: 18px; }
.notice h1 { font-size: 34px; }
.notice h2 { font-size: 18px; margin-bottom: 6px; }
.notice section { display: flex; flex-direction: column; gap: 8px; }
.notice ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.notice p { color: var(--text-2); }
.notice .lead { font-size: 17px; color: var(--text); }
mark { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; }

/* the staff notice */
.notice-staff ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.notice-staff p { color: var(--text-2); }
.notice-staff p b { color: var(--text); }

/* the AI company profile (4.2, 6.2) */
.statements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text-2); }
sup.src { font-family: var(--mono); font-size: 10px; margin-left: 2px; }
sup.src a { padding: 0 1px; }
.tag.new { background: var(--ok-soft); color: var(--ok); }
.verdict { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.verdict .ok { color: var(--ok); }
.verdict .no { color: var(--bad); }
.sources { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text-2); }
.sources .passage { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
table.facts td:first-child { color: var(--text-3); white-space: nowrap; width: 1%; }
table.facts td:last-child { text-align: right; overflow-wrap: anywhere; }
details summary { cursor: pointer; color: var(--text-2); }
details[open] summary { margin-bottom: 10px; }

/* the top bar on one row at laptop widths: the account folds into a menu; the short step labels stay at every width */
.top-in { flex-wrap: nowrap; }
.nav { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.acct { position: relative; margin-left: auto; flex: none; }
.acct summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.acct summary::-webkit-details-marker { display: none; }
.acct .caret { color: var(--text-3); font-size: 11px; }
.acct .menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; background: #141414; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; z-index: 10; font-size: 14px; }
.acct .menu .btn.link { padding: 0; justify-content: flex-start; min-height: 0; text-align: left; }
@media (max-width: 1360px) { .brand .sub { display: none; } .top-in { gap: 12px 20px; } }
/* below 1120px the menu no longer fits beside Search, Log and the account: it takes its own row under them */
@media (max-width: 1120px) { .top-in { flex-wrap: wrap; } .nav { order: 3; flex-basis: 100%; } }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; padding: 12px 16px; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; white-space: normal; }
  .nav .lbl { display: inline; } .nav .num { margin-right: 6px; }
  .nav { gap: 10px 14px; } .nav .arrow, .nav .sep { display: none; }
  .acct-name { display: none; }
}

/* the route map (7.10): SVG on a wide screen, the ranked list on a narrow one */
svg.routemap { width: 100%; height: auto; }
.rm-head { fill: var(--text-3); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.rm-node { fill: var(--text); font-size: 14px; font-weight: 600; }
.rm-sub { fill: var(--text-3); font-size: 11.5px; }
.rm-fee { fill: var(--link); font-size: 11px; }
.rm-grade { fill: var(--text-2); font-family: var(--mono); font-size: 10.5px; }
.rm-line { stroke: rgba(255,255,255,.28); fill: none; }
.rm-line.best { stroke: var(--purple-2); }
.rm-line.thin { stroke-width: 1; stroke-dasharray: 3 4; }
.rm-narrow { display: none; }
@media (max-width: 760px) { .rm-wide { display: none; } .rm-narrow { display: flex; } }
/* the Fees page's rules (4.13) */
ul.rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

/* pop-ups: a native <dialog> over the page it was opened from; the body scrolls inside, the footer stays */
dialog.modal { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line-2);
  border-radius: 20px; background: var(--card); color: var(--text); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .74); }
html:has(dialog.modal[open]) { overflow: hidden; }
.modal-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 2px 0 4px; }
.modal-head p { margin: 0; }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px; gap: 14px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--card); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .form-grid.four, .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .form-grid.four, .form-grid.three, .form-grid.two-col { grid-template-columns: 1fr; } .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; } }
/* contact types as compact chips: a real checkbox under each */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { position: relative; display: inline-flex; cursor: pointer; }
.tchip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tchip span { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13.5px; color: var(--text-2); }
.tchip input:checked + span { background: rgba(112, 39, 255, .28); border-color: var(--purple); color: var(--text); }
.tchip input:checked + span::before { content: "✓"; margin-right: 6px; font-size: 12px; }
.tchip input:focus-visible + span { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.tchip input:disabled + span { opacity: .4; cursor: not-allowed; }
/* the row a pop-up just added */
tr.flash td { animation: row-flash 2.6s ease-out; }
@keyframes row-flash { from { background: rgba(112, 39, 255, .28); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.flash td { animation: none; background: var(--purple-soft); } }
/* "← Back" first on a detail page's breadcrumb: back to the page you came from, as Esc and the browser's Back */
.crumbs .back { display: inline-flex; align-items: center; margin-right: 12px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--text); font-size: 13px; line-height: 1.2; }
.crumbs .back:hover, .crumbs .back:focus-visible { border-color: var(--line-3); background: rgba(255, 255, 255, .04); }
@media (max-width: 600px) { .crumbs .back { padding: 8px 14px; margin-bottom: 6px; } }
/* phones: a table marked stack-sm becomes one block per row, each cell under its own label */
@media (max-width: 600px) {
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack-sm td { padding: 3px 0; border: 0; }
  table.stack-sm td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
  table.stack-sm td:empty { display: none; }
  /* a cell that is a row (an avatar and a name) stays one, the avatar beside the name */
  table.stack-sm td.row { display: flex; }
  .table-wrap:has(> table.stack-sm) { overflow-x: visible; }
}
/* Home: one row per next step, its link, due day and tags, then its Done or outcome chips */
.stack-tight { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.next-row { align-items: flex-start; }
.next-row .chip { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
/* "We spoke": the day and the How chips open under the button */
.we-spoke > summary { list-style: none; cursor: pointer; }
.we-spoke > summary::-webkit-details-marker { display: none; }
.we-spoke[open] > summary { border-color: var(--purple); }
.we-spoke-pop { margin-top: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2); max-width: 360px; }
.we-spoke-pop .chip { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.touch-row { align-items: flex-start; }
/* the person card: folded sections open on a tap of their heading, the log form under its button */
details.card.fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details.card.fold > summary::-webkit-details-marker { display: none; }
details.card.fold > summary h2::before, details.card.fold > summary h3::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--text-3); font-size: .8em; transition: transform .15s; }
details.card.fold[open] > summary h2::before, details.card.fold[open] > summary h3::before { transform: rotate(90deg); }
details.card.fold:not([open]) { gap: 0; }
details.card.fold > summary:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 4px; border-radius: 8px; }
.log-box > summary { list-style: none; display: inline-flex; }
.log-box > summary::-webkit-details-marker { display: none; }
.log-box > form { padding-top: 4px; }
.contact-line { gap: 6px 16px; }
.person-actions { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { details.card.fold > summary h2::before, details.card.fold > summary h3::before { transition: none; } }

/* Admin: usage per one of ours and per week */
table.usage th.num, table.usage td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.usage td.zero { color: var(--text-4); }
table.usage td, table.usage th { white-space: nowrap; }

/* the company page: annual reports */
table.fin th.num, table.fin td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.fin td { white-space: nowrap; }
table.fin th { white-space: normal; vertical-align: bottom; }
/* "Find in the register": an entry and its Pick button side by side */
.reg-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }

/* the type-ahead picker: a field, and its list of matches under it */
.ta { position: relative; display: block; }
.ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; gap: 2px; max-height: 288px; overflow-y: auto; padding: 6px; background: #141414; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.ta-list[hidden] { display: none; }
.ta-opt { display: block; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px; }
.ta-opt:hover, .ta-opt.active { background: rgba(255,255,255,.08); }
.ta-opt.new { color: var(--link); }
.ta-sub { display: block; color: var(--text-3); font-size: 12px; }
.ta-none { display: block; padding: 8px 10px; color: var(--text-3); font-size: 13px; }

/* the header's Log: by the account menu, at every width */
.top-in .log-btn { margin-left: auto; flex: none; }
.top-in .log-btn + .acct { margin-left: 0; }

/* search: a box over the page, opened from the header, / or Cmd+K */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dialog.modal.search-modal { width: min(640px, calc(100vw - 32px)); margin: 10vh auto auto; max-height: 80dvh; }
.search-head { display: flex; gap: 8px; align-items: center; }
.search-head .inp { flex: 1; min-width: 0; }
.sr-group { display: flex; flex-direction: column; gap: 2px; }
.sr-row { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.sr-row:hover, .sr-row:focus { background: rgba(255,255,255,.08); text-decoration: none; outline: none; }
.sr-title { font-weight: 600; }
.top-in .search-btn { margin-left: auto; flex: none; }
.top-in .search-btn + .log-btn { margin-left: 0; }

/* Around them: two tabs, each its own address (7.8); on a phone they share the row, half each */
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line-2); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-3); font-size: 15px; font-weight: 600; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--purple); }
.tabs .n { font-weight: 400; color: var(--text-3); }
@media (max-width: 480px) { .tabs { display: grid; grid-template-columns: 1fr 1fr; } .tabs a { justify-content: center; text-align: center; padding: 6px 8px; font-size: 14px; } }
/* People around them: each route role first, hop by hop, with its action under it; long words wrap, never the page */
.pa-table td { overflow-wrap: anywhere; }
.pa-table td:first-child { min-width: 170px; }
.pa-table .btn { white-space: normal; text-align: left; }
.route2 { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.route2 + .route2 { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.hop { padding-left: 1.2em; text-indent: -1.2em; overflow-wrap: anywhere; }
/* a plan step's text and its note: a long link wraps rather than widen the page */
.step-text { min-width: 0; overflow-wrap: anywhere; }
.hop > * { text-indent: 0; }
.pa-act { margin-top: 4px; }
.pa-act select.inp { width: auto; max-width: 100%; padding: 6px 10px; font-size: 13.5px; }
.pa-part:empty { display: none; }
.chip .n { opacity: .75; }

/* Your contact lists on My people (4.17): the upload, the sort's progress and the uploads; only their owner sees them */
.up-part:empty { display: none; }
.up-btn { position: relative; }
.up-btn:focus-within { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.up-btn.busy { opacity: .55; pointer-events: none; }
.up-sort { align-items: flex-end; gap: 12px 18px; }
.up-sort-text { flex: 1 1 240px; min-width: 0; }
.up-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.up-counts, .up-how { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.okbox .up-counts { margin-top: 2px; }
/* Reachable through a contact on the person card (4.18), and the counts per company on Around them (7.8): long names
   wrap inside their row, never the page */
.reach-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* a contact's Facebook friends (4.19): the names the uploader checks, each match with its source and the two answers */
.fb-panel { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.fb-panel h3 { margin: 0; }
.fb-name { padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.fb-name:first-child { border-top: 0; }
.fb-match { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.fb-match > div:first-child { flex: 1 1 260px; min-width: 0; }
.fb-match.fb-yes { border-color: rgba(52,211,153,.45); background: var(--ok-soft); }
.fb-match.fb-no { opacity: .6; }
.fb-ans { gap: 6px; flex-wrap: wrap; }
.fb-ticks { gap: 6px 16px; flex-wrap: wrap; }
label.f.fb-find { max-width: 360px; }
/* a contact's Facebook friends lists (4.19): one row per name, as on a table, opened below itself; at phone width the
   numbers go under the name with their words */
.fl-list { border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.fl-list h3 { margin: 0; }
.fl-table { display: flex; flex-direction: column; min-width: 0; }
.fl-head, .fl-row { display: grid; grid-template-columns: 24px minmax(0, 2.2fr) minmax(0, 1.3fr) 92px 92px 70px; gap: 6px 12px; align-items: center; min-width: 0; }
.fl-head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 6px 0; border-bottom: 1px solid var(--line); }
.fl-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fl-row.fl-yes { background: linear-gradient(90deg, var(--ok-soft), transparent 60%); }
.fl-head .num, .fl-row .num { font-family: var(--mono); text-align: right; }
.fl-name { min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fl-go { text-align: right; }
.fl-open { grid-column: 2 / -1; min-width: 0; }
.fl-detail { padding: 6px 0 4px; }
/* a long name in a button wraps rather than running past the card */
.fl-detail .btn.link { white-space: normal; text-align: left; }
.tag.match { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52,211,153,.45); background: var(--ok-soft); }
/* a long match word wraps in its column rather than running over the numbers beside it */
.fl-row .tag { white-space: normal; }
.fl-ups { gap: 8px 24px; align-items: flex-start; }
/* a contacts list: name and title, company and its match, emails and phones */
.ct-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; min-width: 0; }
.ct-row > * { min-width: 0; overflow-wrap: anywhere; }
.ct-name { display: flex; flex-direction: column; gap: 2px; }
.ct-reach { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); }
/* Reach a company: one way in per row, the surest first */
.rp-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.rp-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rp-hits { display: flex; flex-direction: column; gap: 6px; }
.rp-reach { display: flex; flex-wrap: wrap; gap: 2px 12px; }
@media (max-width: 640px) {
  .ct-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ct-row > .ct-co, .ct-row > .ct-reach { grid-column: 1; }
}
@media (max-width: 640px) {
  .fl-head { display: none; }
  .fl-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .fl-row > :nth-child(3) { grid-column: 2; }
  .fl-row .num { grid-column: 2; text-align: left; font-size: 12.5px; color: var(--text-2); }
  .fl-row .num:not(:empty)::after { content: ' ' attr(data-label); font-family: 'DM Sans', system-ui, sans-serif; }
  .fl-go { grid-column: 3; grid-row: 1; }
  .fl-open { grid-column: 1 / -1; }
}
.reach-co { flex: 1 1 160px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.reach-n { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.reach-route { color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.reach-act { gap: 6px 12px; }
.reach-make select.inp { max-width: 360px; }
label.f.reach-day { max-width: 240px; }
.around-line { overflow-wrap: anywhere; }
.around-src > label.f { flex: 1 1 260px; max-width: 460px; }
.around-pick { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 640px; }
details.paths ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
/* a progress bar: sorted of all, or company names matched */
progress.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--purple); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: rgba(255,255,255,.08); border-radius: 6px; }
progress.meter::-webkit-progress-value { background: var(--purple); border-radius: 6px; }
progress.meter::-moz-progress-bar { background: var(--purple); border-radius: 6px; }

/* Sort my contacts (#/my-people/sort): a dense list with one row in focus; 1, 2, 3, 0, S and F act on that row */
.sort-count { font-size: 14px; color: var(--text-2); }
.sort-count b { font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.keys { color: var(--text-3); line-height: 2; }
kbd { display: inline-block; min-width: 1.7em; text-align: center; font-family: var(--mono); font-size: 11px; line-height: 1.6; padding: 0 5px; border: 1px solid var(--line-3); border-bottom-width: 2px; border-radius: 5px; color: var(--text-2); background: var(--card-2); }
.sort-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 10px 12px; border-top: 1px solid var(--line); border-left: 3px solid transparent; scroll-margin: 150px 0 90px; }
.srow:first-child { border-top-color: transparent; }
.srow.on { background: rgba(112, 39, 255, .09); border-left-color: var(--purple); }
.srow:focus { outline: none; }
.srow:focus-visible { box-shadow: inset 0 0 0 1px var(--purple-2); }
.srow.busy { opacity: .45; }
.srow-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.srow.done .srow-main { cursor: default; }
.srow-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.srow-name { font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: 0; padding: 0; text-align: left; overflow-wrap: anywhere; }
button.srow-name { cursor: pointer; }
button.srow-name:hover { text-decoration: underline; }
button.srow-name:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; border-radius: 4px; }
.srow-at { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.srow-why { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text-3); overflow-wrap: anywhere; }
/* a tag with a long company name in it ("close to …") wraps inside the row, never widening the page */
.srow-why .tag { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.srow-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sbtn { font: inherit; font-size: 12.5px; font-weight: 600; min-height: 32px; padding: 0 11px; border-radius: 100px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.sbtn:hover { border-color: rgba(255, 255, 255, .4); color: var(--text); }
.sbtn:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.sbtn.lv { font-family: var(--mono); min-width: 42px; }
.sbtn.lv.l1 { border-color: var(--purple-line); }
.sbtn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.sbtn:disabled { opacity: .45; cursor: default; }
.srow-panel, .srow-ask { grid-column: 1 / -1; min-width: 0; }
.srow-panel { padding: 10px 0 6px; border-top: 1px dashed var(--line-2); }
.srow-ask .btn { white-space: normal; overflow-wrap: anywhere; text-align: left; max-width: 100%; padding-block: 6px; }
.srow-ask ul { margin: 0; padding-left: 18px; }
.sort-last { gap: 6px 8px; }
dl.facts-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
dl.facts-dl dt { color: var(--text-3); }
dl.facts-dl dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
/* with a mouse, the buttons of the rows out of focus step back until you point at them */
@media (hover: hover) and (pointer: fine) { .srow:not(.on):not(.done):not(:hover):not(:focus-within) .srow-acts { opacity: .35; } }
/* a phone: each row's buttons under it, large enough to tap; the keys line goes */
@media (max-width: 760px) {
  .srow { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; }
  .srow-acts { justify-content: flex-start; }
  .sbtn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .keys { display: none; }
}
@media (max-width: 480px) {
  .card.sort-card { padding: 16px 12px; }
  .tabs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  dl.facts-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.facts-dl dd { margin-bottom: 6px; }
}

/* How Around them fills (#/around/how): five steps, purple where PRS runs by itself, green where one of us decides */
.how-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.how-step { border-radius: 18px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.how-step.auto { background: rgba(112,39,255,.14); border: 1px solid rgba(112,39,255,.55); }
.how-step.human { background: var(--card); border: 2px solid rgba(110,231,183,.6); }
.how-step.result { background: var(--card); border: 1px solid var(--line-2); }
.how-step h2 { font-size: 17px; line-height: 1.3; margin: 0; }
.how-head { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #D2BFFF; }
.how-step.human .how-head { color: var(--ok); }
.how-step.result .how-head { color: var(--text-2); }
.how-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); color: #fff; }
.how-step.human .how-n { background: rgba(110,231,183,.3); }
.how-step.result .how-n { background: rgba(255,255,255,.16); }
.how-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.how-items li { font-size: 13.5px; line-height: 1.45; color: var(--text-2); padding-left: 12px; border-left: 2px solid rgba(183,156,255,.55); }
.how-step.human .how-items li { border-left-color: rgba(110,231,183,.5); }
.how-step.result .how-items li { border-left-color: var(--line-3); }
.how-items b { color: #fff; font-weight: 600; }
.how-never { margin: auto 0 0; border-radius: 12px; background: var(--warn-soft); padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--warn); }
.how-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--purple-line); background: var(--purple-soft); margin: 0; }
.how-now a { margin-left: auto; }

/* a client's revenue: the form to set a year wraps on a narrow card */
.rev-form { flex-wrap: wrap; gap: 8px; align-items: center; }
