/* Nimbus's own look: playful, but crisp.
   An off-white page, black ink, bold grotesque headlines with a gray second
   line, bento tiles in a few bright flat colors, and a crew of blob workers
   (crew.js) who do the jobs. Primary actions are chunky: black outline and a
   hard offset shadow. Everything else stays clean and quiet. Datum appears
   only as a small credit. */
:root {
  --page: #F4F2ED;
  --card: #FFFFFF;
  --ink: #111111;
  --on-ink: #fff;
  --body: #3A3936;
  --muted: #8B8984;
  --line: #E6E3DC;
  --line-strong: #CFCBC2;
  --yellow: #FFD02E;
  --blue: #6E9BFF;
  --lime: #C6F36B;
  --pink: #FF5C93;
  --purple: #8B6CFF;
  --green: #12B76A;
  --red: #E5484D;
  --red-wash: #FDECEC;
  --radius: 20px;
  --head: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, monospace;
  --hard: 3px 3px 0 var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
/* The app keeps room for the scroll bar, so a short page and a long one sit in
   the same place (Conner, 2026-10-29: Jobs and Skills seemed to change width). */
html:has(.frame) { scrollbar-gutter: stable; }
body { margin: 0; background: var(--page); color: var(--body); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
h1 { font-size: 40px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 4px 0 8px; }
.dim { color: #A8A6A0; }
h2 { font-size: 13px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); margin: 28px 0 10px; }
.sub { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.small { font-size: 13px; color: var(--muted); }
.strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.err { color: var(--red); }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: var(--ink); margin: 8px 0; }

/* ---- the frame: a black rail beside the page ---- */
.frame { display: flex; min-height: 100vh; }
.stage { flex: 1; min-width: 0; }
.stage main { max-width: 1180px; margin: 0 auto; padding: 36px 28px 12px; }
.stage footer { max-width: 1180px; margin: 24px auto 0; padding: 18px 28px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.rail {
  position: sticky; top: 0; height: 100vh; flex: none; width: 76px; padding: 14px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--ink); transition: width 0.18s ease;
}
.rail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rail-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font: 800 20px var(--head);
}
.rail-name { display: none; color: #fff; font: 800 17px var(--head); white-space: nowrap; letter-spacing: -0.02em; }
.rail-tabs, .rail-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rail-foot { margin-top: auto; }
.rail-btn {
  position: relative; width: 48px; height: 48px; padding: 0; border: none; border-radius: 14px; box-shadow: none;
  background: transparent; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.rail-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.rail-btn.on { background: #fff; color: var(--ink); }
.rail-toggle { color: rgba(255, 255, 255, 0.45); margin-bottom: 6px; }
.ico, .ico svg { width: 22px; height: 22px; display: block; }
.rail-label {
  position: absolute; left: 58px; top: 50%; transform: translateY(-50%); z-index: 5; pointer-events: none;
  white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--on-ink); background: var(--ink);
  padding: 6px 10px; border-radius: 10px; opacity: 0; transition: opacity 0.12s ease;
}
.rail-btn:hover .rail-label { opacity: 1; }
.rail-badge {
  position: absolute; top: 3px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
.rail-sample { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 3px 7px; border-radius: 6px; }
.rail.open { width: 256px; align-items: stretch; padding: 14px 12px; }
.rail.open .rail-head { padding: 0 4px; margin-bottom: 10px; }
.rail.open .rail-name { display: block; }
.rail.open .rail-tabs, .rail.open .rail-foot { align-items: stretch; }
.rail.open .rail-btn { width: 100%; height: 46px; justify-content: flex-start; gap: 12px; padding: 0 12px; }
.rail.open .rail-label { position: static; transform: none; opacity: 1; background: none; padding: 0; font-size: 14px; color: inherit; }
.rail.open .rail-badge { position: static; margin-left: auto; }
/* Your team on a plan that lets nobody else in (2026-10-22): a small lock. */
.rail-locked > .ico { opacity: 0.45; }
.rail.open .rail-locked > .rail-label { opacity: 0.45; }
.rail-lock { position: absolute; bottom: 2px; right: 2px; display: flex; }
.rail-lock .ico, .rail-lock .ico svg { width: 20px; height: 20px; color: #fff; }
/* Selected, the row is white: the lock goes gray so it still shows. */
.rail-btn.on .rail-lock .ico, .rail-btn.on .rail-lock .ico svg { color: #8B8984; }
.more-row .more-lock .ico, .more-row .more-lock .ico svg { width: 15px; height: 15px; }
.rail.open .rail-lock { position: static; margin-left: auto; }
.more-lock { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: var(--muted); }
.rail.open .rail-sample { align-self: flex-start; margin-left: 12px; }
.rail-more, .back-more { display: none; }
.rail-group { display: none; margin: 12px 12px 2px; color: rgba(255, 255, 255, 0.4); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rail.open .rail-group { display: block; }
.rail-div { width: 32px; height: 1px; margin: 4px auto; background: rgba(255, 255, 255, 0.16); }
.rail.open .rail-div { width: auto; margin: 4px 12px; }

/* ---- controls: crisp, with one chunky primary ---- */
button {
  font: 600 14px var(--sans); padding: 9px 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
button:hover { background: #FAF9F6; }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--yellow); border: 2px solid var(--ink); box-shadow: var(--hard); }
button.primary:hover { background: #000000; }
button.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.link-btn, .link-btn:hover { border: none; background: none; color: var(--muted); padding: 6px 4px; box-shadow: none; }
.link-btn:hover { color: var(--ink); }
button.chip, .chip { border: 1.5px solid var(--line-strong); background: var(--card); color: var(--body); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
input, textarea {
  font: inherit; width: 100%; padding: 11px 14px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #B5B2AB; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 208, 46, 0.6); }
button:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
textarea { min-height: 120px; margin: 10px 0; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; }
.inline { display: flex; gap: 8px; margin-top: 8px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row { display: block; margin: 8px 0; color: var(--ink); }
.toolbar { display: flex; justify-content: flex-end; margin: 8px 0; }

/* ---- surfaces ---- */
.box, .scroll, .cx-card, .bubble, .cc, .wz-review, .ld-card { background: var(--card); border-radius: var(--radius); }
.box { padding: 18px; margin: 12px 0; }
.note { padding: 12px 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); box-shadow: var(--hard); border-radius: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #F0EEE8; color: var(--body); }
.pill.ok { background: #E3F9EC; color: #0A7A45; }
.pill.wait { background: #EAF1FD; color: #2A55B8; }
.pill.held { background: var(--red-wash); color: var(--red); }
.pill.off { background: #F0EEE8; color: var(--muted); }
.receipt { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font: 11px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td { text-align: left; padding: 12px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.empty { color: var(--muted); font-size: 14px; margin: 8px 0; }
.more { margin-top: 6px; }

/* ---- the work board ---- */
.board-banner { margin: 0 0 22px; border-radius: 24px; overflow: hidden; }
.board-banner .ht-img { aspect-ratio: 1800 / 420; object-fit: cover; }
.pair {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 10px 0 14px;
  background: var(--card); border-radius: 24px;
}
.pair-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pair-text b { color: var(--ink); font: 700 17px var(--head); letter-spacing: -0.01em; }
.pair-text span { font-size: 14px; color: var(--muted); }
.crew-report { color: var(--body) !important; }
.pair-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); flex: none; }
.pair.on .pair-dot { background: var(--green); }
.pair.off .pair-dot { background: var(--yellow); }
.pair.off { background: #EAF1FD; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.tile { border-radius: 22px; padding: 16px 16px 14px; background: var(--card); min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; }
.tile-n { font: 800 44px/1 var(--head); color: var(--ink); letter-spacing: -0.04em; }
.tile-l { font-size: 13px; font-weight: 600; color: var(--body); }
.tiles .tile:nth-child(1) { background: var(--blue); }
.tiles .tile:nth-child(2) { background: var(--yellow); }
.tiles .tile:nth-child(4) { background: var(--lime); }
.tiles .tile:nth-child(1) .tile-n, .tiles .tile:nth-child(1) .tile-l { color: #0B1B4D; }

.newjob { margin: 0 0 6px; }
.newjob button { width: 100%; border: 2px dashed var(--line-strong); background: transparent; color: var(--muted); padding: 14px; border-radius: 18px; }
.newjob button:hover { border-color: var(--ink); color: var(--ink); }
.composer textarea { min-height: 80px; }

.lane { margin: 22px 0 0; }
.lane-head { display: flex; align-items: center; gap: 8px; }
.lane-head h2 { margin: 0; }
.count { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--card); border-radius: 999px; padding: 1px 9px; }
.lane-review .count { background: var(--yellow); }

.job { background: var(--card); border-radius: 22px; margin: 10px 0; padding: 0 18px 16px; }
.job-held { box-shadow: inset 0 0 0 2px var(--red-wash); }
.job-done { background: rgba(255, 255, 255, 0.6); }
.job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; border: none; background: none; padding: 16px 0 10px; text-align: left; box-shadow: none; }
.job-head:hover { background: none; }
.job-title { font: 700 17px var(--head); color: var(--ink); margin-right: auto; letter-spacing: -0.01em; }
.job-when { font-size: 13px; color: var(--muted); }
.text { white-space: pre-wrap; color: var(--ink); margin: 10px 0; font-size: 16px; }
.track { display: flex; gap: 4px; margin: 0 0 12px; }
.step { flex: 1; height: 6px; border-radius: 3px; background: #EFECE6; }
.step.on { background: var(--ink); }
.step.now { background: var(--yellow); }
.job-working .step.now { animation: working 1.4s ease-in-out infinite; }
.step.bad { background: var(--red); }
@keyframes working { 50% { opacity: 0.35; } }
.timeline { list-style: none; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 4px 0; color: var(--ink); }
.timeline .who { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.timeline .t-ai .who { color: #C2410C; }
.timeline .t-datum .who { color: #0A7A45; }
.timeline .bad .who, .timeline .bad .what { color: var(--red); }
.timeline .at { font-size: 12px; color: var(--muted); }
.post-images { margin: 12px 0 4px; display: grid; gap: 8px; }
.post-image-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.post-image { flex: none; width: 84px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: none; }
.post-image:hover { border-color: var(--ink); background: none; }
.ht-img { display: block; width: 100%; height: auto; background: #EDEBE5; }
.ht-loading { aspect-ratio: 3 / 2; opacity: 0.5; }
.ht-failed { display: none; }

/* ---- workers (crew.js) ---- */
.wk { display: inline-block; width: var(--wk, 64px); height: var(--wk, 64px); flex: none; }
.wk svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wk-eyes { transform-origin: 50% 44%; transform-box: view-box; animation: wk-blink 5s infinite; }
.wk-working .wk-eyes { animation: wk-look 2.6s ease-in-out infinite, wk-blink 5s infinite; }
.wk-waiting .wk-eyes { translate: 0 -3px; }
@keyframes wk-blink { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 0.1; } }
@keyframes wk-look { 0%, 100% { translate: 0 0; } 30% { translate: -5px 1px; } 65% { translate: 5px 1px; } }
.pair .wk { margin: -4px 0; }
@media (prefers-reduced-motion: reduce) { .wk-eyes, .wk-working .wk-eyes { animation: none; } }

/* ---- connections ---- */
.cx-hero { background: var(--ink); color: var(--on-ink); border-radius: 24px; padding: 20px 18px 8px; margin: 4px 0 18px; }
.cx-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
h2.cx-title { color: #fff; font: 800 24px var(--head); text-transform: none; letter-spacing: -0.02em; margin: 4px 0; }
.cx-sub { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 0 0 12px; }
.cx-hero .cx-card { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cx-hero .cx-name { color: #fff; }
.cx-hero .cx-about { color: rgba(255, 255, 255, 0.7); }
.cx-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; }
.cx-head h2 { margin: 0; }
.cx-search { margin: 0 0 10px; }
.cx-ask-search.link-btn { color: var(--ink); text-decoration: underline; padding: 0; font: inherit; }
.cx-ask-go { text-decoration: none; font-size: 18px; }
.cx-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.cx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.cx-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; min-width: 0; }
.cx-icon { --c: #4A5A68; flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font: 800 19px var(--head); }
.cx-body { flex: 1; min-width: 0; }
.cx-name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.cx-tick { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 9px; }
.cx-about { font-size: 13px; color: var(--body); margin-top: 2px; }
.cx-by { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cx-need { color: #C2410C; font-weight: 800; }
.cx-btn { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
span.cx-btn.on { background: #E3F9EC; color: #0A7A45; font-size: 15px; font-weight: 800; }
.cx-check { flex: none; padding: 6px 10px; font-size: 13px; }

/* ---- chat ---- */
.chat { margin-top: 8px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 86%; }
.msg-you { align-self: flex-end; align-items: flex-end; }
.msg-ai { align-self: flex-start; }
.bubble { padding: 11px 15px; white-space: pre-wrap; color: var(--ink); border-radius: 20px 20px 20px 6px; }
.msg-you .bubble { background: var(--ink); color: var(--on-ink); border-radius: 20px 20px 6px 20px; }
.msg-err .bubble { color: var(--red); }
.typing { color: var(--muted); }
.cc { padding: 14px 16px; }
.cc-kind { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cc-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.cc-list dt { color: var(--muted); font-size: 13px; }
.cc-list dd { margin: 0; color: var(--ink); font-size: 14px; }
.cc-rule { margin: 0; color: var(--ink); font-weight: 700; }
.cc-done { margin-top: 8px; font-size: 13px; font-weight: 800; color: #0A7A45; }
.cc-said { margin-top: 8px; font-weight: 700; }
.cc-no { color: var(--red); }
.cc-plain { font-weight: 500; color: var(--body); }
.cc-choices { flex-wrap: wrap; }
.cc-steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; color: var(--body); display: flex; flex-direction: column; gap: 4px; }
.cc-steps li.done { color: var(--muted); text-decoration: line-through; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.chat-compose textarea { min-height: 50px; margin: 0; }
.chat-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #EAF1FD; border-radius: 18px; padding: 12px 16px; margin: 8px 0 16px; color: var(--ink); }

/* ---- guided setup: full screen, one thing at a time ---- */
.fx { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--page); overflow: hidden; }
.fx-bar { flex: none; height: 6px; background: #E9E6DF; }
.fx-fill { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.3s ease; }
.fx-top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 20px; height: 62px; color: var(--ink); }
.fx-top .mark { display: flex; align-items: center; gap: 10px; font: 800 17px var(--head); letter-spacing: -0.02em; }
.fx-top .mark::before { content: "L"; width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fx-part { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fx-part b { color: var(--ink); }
.fx-exit { justify-self: end; border: none; background: none; color: var(--muted); padding: 6px 4px; box-shadow: none; }
.fx-exit:hover { color: var(--ink); background: none; }
.fx-main { flex: 1; overflow-y: auto; display: flex; padding: 12px 16px 24px; }
.fx-body { width: 100%; max-width: 620px; margin: auto; padding: 34px 34px 30px; background: var(--card); border-radius: 30px; }
.fx h1 { font-size: 36px; }
.fx .wz-lead { font-size: 17px; color: var(--body); margin: 0 0 22px; }
.fx-body > input { font-size: 19px; padding: 15px 16px; border-width: 2px; border-color: var(--ink); }
.fx-err { color: var(--red); font-weight: 700; margin: 10px 0 0; }
.fx-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.fx-links:empty { display: none; }
.fx-foot { flex: none; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--page); }
.fx-foot-in { max-width: 620px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fx-back { border: none; background: none; color: var(--muted); padding: 12px 4px; font-size: 15px; box-shadow: none; }
.fx-back:hover { color: var(--ink); background: none; }
.fx-go { display: flex; align-items: center; gap: 14px; }
.fx-hint { font-size: 13px; color: var(--muted); }
.fx-next { padding: 14px 30px; font-size: 16px; }
.fx-done .fx-body { text-align: center; }

.wz-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wz-lead { font-size: 16px; color: var(--body); margin: 0 0 16px; }
.wz-saved { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.wz-saved b { color: var(--ink); }
.wz-options { display: grid; gap: 8px; margin: 4px 0 8px; }
.wz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 16px; font-size: 16px; font-weight: 600;
  border: 2px solid var(--line); background: var(--card); border-radius: 16px;
}
.wz-opt:hover { border-color: var(--ink); background: var(--card); }
.wz-opt.on { border-color: var(--ink); background: #EAF1FD; box-shadow: var(--hard); }
.wz-radio, .wz-box { flex: none; width: 20px; height: 20px; border: 2px solid var(--line-strong); background: var(--card); }
.wz-radio { border-radius: 50%; }
.wz-box { border-radius: 6px; }
.wz-opt.on .wz-radio { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--card); background: var(--ink); }
.wz-opt.on .wz-box { border-color: var(--ink); background: var(--ink); }
.wz-rule { align-items: flex-start; }
.wz-rule .wz-box { margin-top: 3px; }
.wz-rule-k { color: var(--muted); font-weight: 500; }
.wz-rec { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.wz-own { margin-top: 16px; }
.wz-outline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wz-outline li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); font-weight: 600; background: var(--page); border-radius: 14px; }
.wz-outline b { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wz-review { border: 2px solid var(--line); }
.wz-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.wz-row:first-child { border-top: none; }
.wz-val { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.wz-src { font-size: 13px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; font-weight: 400; }
.wz-src q { font-style: italic; }
.wz-opt .wz-src { display: block; }
.wz-check { margin: 0 auto 10px; }
.wz-log { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.wz-log li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.wz-l-dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; position: relative; }
.wz-l-doing .wz-l-dot, .wz-l-look .wz-l-dot { border: 3px solid #EAE7E0; border-top-color: var(--ink); animation: wz-spin 0.8s linear infinite; }
.wz-l-done .wz-l-dot { background: var(--green); }
.wz-l-done .wz-l-dot::after, .wz-l-warn .wz-l-dot::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.wz-l-done .wz-l-dot::after { content: "✓"; color: #fff; }
.wz-l-warn .wz-l-dot { background: var(--yellow); }
.wz-l-warn .wz-l-dot::after { content: "!"; color: var(--ink); }
.wz-l-t { display: block; font-weight: 700; }
.wz-l-d { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.wz-l-look { color: var(--purple) !important; font-weight: 700; }
.wz-spin { margin-bottom: 12px; }
.wz-found { display: grid; gap: 10px; }
.wz-find { padding: 13px 15px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; }
.wz-find.off { background: var(--page); }
.wz-find.off .wz-val { color: var(--muted); text-decoration: line-through; }
.wz-find-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wz-find-acts { display: flex; gap: 6px; }
.wz-find input { margin: 4px 0; font-size: 17px; padding: 10px 12px; }
.wz-in { animation: wz-in 0.35s ease-out; }
@keyframes wz-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes wz-spin { to { transform: rotate(360deg); } }
.wz-link {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 8px; padding: 10px 14px; text-align: left; font-size: 16px;
  border: 2px dashed var(--line-strong); background: var(--card); border-radius: 16px;
}
.wz-link:hover { border-color: var(--ink); background: var(--card); }
.wz-link .cx-icon, .wz-linked .cx-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
.wz-plus { margin-left: auto; font-size: 22px; font-weight: 400; color: var(--muted); }
.wz-linked { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.wz-linked input { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; }
.wz-linked-card { padding: 10px 12px; background: #E3F9EC; border-radius: 16px; }
.wz-linked-url { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wz-linked-url b { color: var(--ink); overflow-wrap: anywhere; font-size: 15px; }
.wz-gmail { background: #EA4335; }
.wz-linkedin { background: #0A66C2; }
.wz-facebook { background: #1877F2; }
.wz-metricool { background: #5B3FD6; }
.wz-gm { margin-top: 14px; border: 2px solid var(--line); border-radius: 18px; }
.wz-tog { flex: none; width: 48px; height: 30px; padding: 3px; border-radius: 999px; background: var(--line-strong); border: none; display: flex; align-items: center; box-shadow: none; }
.wz-tog:hover { background: var(--line-strong); }
.wz-tog span { width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.wz-tog.on, .wz-tog.on:hover { background: var(--green); }
.wz-tog.on span { transform: translateX(18px); }
.wz-photos { margin-top: 18px; }
.wz-photos-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.wz-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wz-photo { display: flex; flex-direction: column; gap: 6px; }
.wz-photo-pick { padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: none; box-shadow: none; }
.wz-photo.banner .wz-photo-pick { border-color: var(--ink); box-shadow: var(--hard); }
.wz-photo.off .wz-photo-pick { opacity: 0.25; }
.wz-star { font-size: 12px; padding: 4px 10px; border-radius: 999px; align-self: flex-start; border: 1.5px solid var(--line-strong); color: var(--muted); }
.wz-star.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* ---- the landing page ---- */
.ld { background: var(--page); min-height: 100vh; }
.ld-nav {
  position: sticky; top: 14px; z-index: 10; max-width: 1180px; margin: 14px auto 0; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; padding: 8px 8px 8px 20px; background: rgba(255, 255, 255, 0.86); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ld-links { display: flex; gap: 22px; }
.ld-links a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 600; }
.ld-links a:hover { color: var(--ink); }
.ld-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font: 800 19px var(--head); letter-spacing: -0.02em; }
.ld-brand-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ld-nav-end { justify-self: end; }
.ld-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--yellow); border: 2px solid var(--ink); box-shadow: var(--hard); color: var(--ink); font-size: 15px; font-weight: 700;
}
.ld-pill:hover { background: #000000; }
.ld-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ld-pill-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ld-pill-sm { font-size: 14px; padding: 5px 5px 5px 16px; box-shadow: 2px 2px 0 var(--ink); }
.ld-pill-sm .ld-pill-arrow { width: 26px; height: 26px; }
.ld-ghost, .ld-ghost:hover { border: none; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding: 8px 6px; font-weight: 600; box-shadow: none; }
.ld-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ld-cta-center { justify-content: center; }

/* hero: the crew floats around the headline */
.ld-hero { position: relative; max-width: 1180px; margin: 0 auto; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; overflow: hidden; }
.ld-hero-c { position: relative; z-index: 2; max-width: 680px; }
.ld-word { margin: 0; font: 800 clamp(56px, 9vw, 120px)/0.92 var(--head); letter-spacing: -0.05em; color: var(--ink); }
.ld-blurb { color: var(--body); font-size: 19px; margin: 22px auto 28px; max-width: 520px; }
.ld-msg { color: var(--red); font-size: 14px; }
.ld-switch { margin: 10px 0 0; text-align: center; }
.ld-link, .ld-link:hover { border: none; background: none; box-shadow: none; padding: 4px; font-size: 13px; color: var(--muted, #666); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ld-float { position: absolute; left: var(--x); top: var(--y); z-index: 1; animation: ld-bob 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ld-bob { 50% { translate: 0 -12px; rotate: var(--r, 4deg); } }
@media (prefers-reduced-motion: reduce) { .ld-float { animation: none; } }

.ld-sec { max-width: 1180px; margin: 0 auto; padding: 90px 20px 0; }
.ld-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ld-h2 { font: 800 clamp(34px, 4.6vw, 56px)/1.02 var(--head); letter-spacing: -0.04em; color: var(--ink); text-transform: none; margin: 0 0 28px; max-width: 760px; }
.ld-p { color: var(--body); font-size: 18px; max-width: 560px; margin: -8px 0 26px; }
.ld-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ld-card { padding: 26px; border-radius: 26px; min-height: 220px; display: flex; flex-direction: column; }
.ld-card h3 { font: 800 24px/1.1 var(--head); letter-spacing: -0.02em; margin: auto 0 8px; }
.ld-card p { color: var(--body); margin: 0; font-size: 15px; }
.ld-how .ld-card:nth-child(1) { background: var(--blue); }
.ld-how .ld-card:nth-child(2) { background: var(--yellow); }
.ld-how .ld-card:nth-child(3) { background: var(--lime); }
.ld-n { font: 800 14px var(--mono); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.65); display: flex; align-items: center; justify-content: center; }
.ld-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ld-demo { padding: 24px; border-radius: 28px; background: var(--card); display: grid; gap: 12px; }
.ld-demo-top { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; }
.ld-demo .wz-log { margin: 0; }

/* the crew: tap the workers you want */
.ld-crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ld-worker {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left;
  padding: 20px; border-radius: 26px; background: var(--card); border: 2px solid transparent; box-shadow: none; min-height: 200px;
}
.ld-worker:hover { border-color: var(--ink); background: var(--card); }
.ld-worker.on { border-color: var(--ink); box-shadow: var(--hard); }
.ld-worker .wk { transition: transform 0.2s ease; }
.ld-worker:hover .wk { transform: rotate(-6deg) scale(1.06); }
.ld-wname { font: 800 20px var(--head); color: var(--ink); letter-spacing: -0.02em; }
.ld-does { font-size: 14px; color: var(--body); font-weight: 500; }
.ld-status { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #F0EEE8; color: var(--muted); }
.ld-status.open { background: var(--lime); color: var(--ink); }
.ld-pick { position: absolute; bottom: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 800; color: transparent; }
.ld-worker.on .ld-pick { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ld-crew-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 14px 14px 14px 20px; border-radius: 22px; background: var(--ink); color: var(--on-ink); }
.ld-crew-bar b { font: 800 18px var(--head); }
.ld-crew-faces { display: flex; align-items: center; gap: 4px; }

.ld-end { max-width: 1180px; margin: 100px auto 0; padding: 70px 24px; border-radius: 32px; text-align: center; background: var(--ink); color: var(--on-ink); }
.ld-end-h { color: #fff; font: 800 clamp(36px, 5vw, 64px)/1 var(--head); letter-spacing: -0.04em; text-transform: none; margin: 0 0 12px; }
.ld-end p { color: rgba(255, 255, 255, 0.75); margin: 0 0 26px; }
.ld-end .ld-ghost { color: #fff; }
.ld-end-faces { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.ld-foot { max-width: 1180px; margin: 0 auto; padding: 28px 20px 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.ld-foot b { color: var(--ink); }

/* ---- phones ---- */
@media (max-width: 760px) {
  .frame { display: block; }
  .stage main { padding: 24px 16px 8px; }
  .stage footer { padding: 16px 16px 24px; }
  h1 { font-size: 32px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 96px; }
  .tile-n { font-size: 36px; }
  .pair { flex-wrap: wrap; }
  .pair button { width: 100%; }
  .split, .inline { flex-direction: column; align-items: stretch; }
  .cx-grid { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 100%; }
  .fx-top { grid-template-columns: 1fr auto; }
  .fx-top .mark { display: none; }
  .fx-body { padding: 26px 20px; border-radius: 24px; }
  .fx h1 { font-size: 28px; }
  .fx .wz-lead { font-size: 16px; }
  .fx-hint { display: none; }
  .fx-go, .fx-next { flex: 1; }
  .ld-nav { grid-template-columns: 1fr auto; padding-left: 16px; margin: 10px 10px 0; }
  .ld-links { display: none; }
  .ld-brand { justify-self: start; }
  .ld-three, .ld-split { grid-template-columns: minmax(0, 1fr); }
  .ld-card { min-height: 170px; }
  .ld-sec { padding-top: 70px; }
  .ld-hero { min-height: 88svh; }
  .ld-blurb { font-size: 17px; }
  .ld-end { margin: 70px 12px 0; }
}
.ld-crew-faces-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .ld-float { scale: 0.62; transform-origin: center; } .ld-hero-c { padding: 0 6px; } }

/* ---- the cloud (crew.js): Nimbus itself ---- */
.cl { display: inline-block; flex: none; width: var(--cl, 96px); height: calc(var(--cl, 96px) * 1.22); }
.cl svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cl-body { transform-box: view-box; transform-origin: 50% 50%; animation: cl-float 4.2s ease-in-out infinite; }
.cl-shadow { transform-box: fill-box; transform-origin: center; animation: cl-shadow 4.2s ease-in-out infinite; }
.cl-eyes { transform-box: view-box; transform-origin: 50% 49%; animation: cl-blink 5s infinite; }
.cl-working .cl-body, .cl-working .cl-shadow { animation-duration: 1.8s; }
.cl-working .cl-eyes { animation: cl-look 2.4s ease-in-out infinite, cl-blink 5s infinite; }
.cl-thinking .cl-eyes { translate: 4px -4px; }
.cl-waiting .cl-eyes { translate: 0 -5px; }
.cl-happy .cl-eyes, .cl-asleep .cl-eyes, .cl-worried .cl-eyes { animation: none; }
.cl-asleep .cl-body, .cl-asleep .cl-shadow { animation-duration: 7s; }
.cl-flat .cl-body { animation: none; }
@keyframes cl-float { 50% { translate: 0 -5px; } }
@keyframes cl-shadow { 50% { scale: 0.72 1; opacity: 0.08; } }
@keyframes cl-blink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 0.08; } }
@keyframes cl-look { 0%, 100% { translate: 0 0; } 30% { translate: -5px 1px; } 65% { translate: 5px 1px; } }
@media (prefers-reduced-motion: reduce) { .cl-body, .cl-shadow, .cl-eyes { animation: none !important; } }

/* the cloud at the top of the board, saying what it's doing */
.cloud-head { position: relative; display: flex; align-items: flex-end; gap: 18px; margin: 0 0 22px; padding: 22px 22px 18px; border-radius: 28px; background: var(--card); overflow: hidden; }
.cloud-head.has-photo { min-height: 220px; padding-top: 70px; }
.cloud-photo { position: absolute; inset: 0; }
.cloud-photo .ht-img { width: 100%; height: 100%; object-fit: cover; }
.cloud-head > .cl, .cloud-say { position: relative; z-index: 1; }
.cloud-say { flex: 1; min-width: 0; padding: 14px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 22px 22px 22px 6px; box-shadow: var(--hard); margin-bottom: 26px; }
.cloud-say b { display: block; font: 800 20px/1.2 var(--head); color: var(--ink); letter-spacing: -0.02em; }
.cloud-say span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; }
.cloud-say button { margin-top: 12px; }
.cloud-head.has-photo .cloud-say { max-width: 520px; }
@media (max-width: 760px) {
  .cloud-head { padding: 16px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .cloud-head.has-photo { padding-top: 40px; }
  .cloud-say { margin-bottom: 0; width: 100%; }
  .cloud-say b { font-size: 18px; }
}

/* landing, cloud edition */
.ld-hero-cloud { display: flex; justify-content: center; margin-bottom: 18px; }
.ld-brand .cl { margin-right: 2px; }
.ld-job {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 22px; padding-top: 58px; border-radius: 26px; background: var(--job, var(--card)); border: 2px solid transparent; box-shadow: none; min-height: 190px;
}
.ld-job:hover { border-color: var(--ink); background: var(--job, var(--card)); }
.ld-job.on { border-color: var(--ink); box-shadow: var(--hard); }
.ld-job .ld-status { top: 18px; left: 20px; right: auto; background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.ld-job .ld-status.open { background: var(--ink); color: var(--on-ink); }
.ld-job .ld-wname { font-size: 24px; }
.ld-job .ld-does { color: var(--ink); opacity: 0.75; }
.ld-job .ld-pick { top: 16px; bottom: auto; background: rgba(255, 255, 255, 0.7); border-color: transparent; }
.ld-job.on .ld-pick { background: var(--ink); color: var(--on-ink); }
.ld-end-faces { margin-bottom: 18px; }
.fx-top .mark::before { content: none; }
.rail-mark { background: #fff; }
.cloud-photo { opacity: 0.22; }

/* ===============================================================   SKY BLUE, NO CHUNK (2026-10-18). The yellow and hard offset shadows read
   too much like chipp.ai. The accent is now the halftone sky's blue, primary
   actions are plain black pills, and nothing has an offset shadow. The sky
   (halftone.js withSky) sits behind the cloud in a few framed panels.
   ====================================================================== */
:root {
  --sky: #4F7FE0;
  --sky-wash: #EAF1FD;
  --sky-soft: #DCE7FB;
  --yellow: var(--sky);
  --lime: var(--sky-soft);
  --blue: var(--sky);
  --hard: none;
}
button.primary, .fx-next:not(.primary), .ld-pill { background: var(--ink); color: var(--on-ink); border: 2px solid var(--ink); box-shadow: none; }
button.primary:hover, .ld-pill:hover { background: #2A2A2A; border-color: #2A2A2A; }
button.primary:active, .ld-pill:active { transform: scale(0.98); box-shadow: none; }
.ld-pill-arrow { background: #fff; color: var(--ink); }
.rail-badge { background: var(--sky); color: #fff; }
.rail-mark { background: #fff; }
.rail-sample { background: var(--sky-soft); }
.note, .cloud-say { box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08); }
.cloud-say { border-width: 1.5px; }
.wz-opt.on { background: var(--sky-wash); border-color: var(--sky); box-shadow: none; }
.wz-opt.on .wz-radio { border-color: var(--sky); background: var(--sky); }
.wz-opt.on .wz-box { border-color: var(--sky); background: var(--sky); }
.wz-rec { background: var(--sky); color: #fff; }
.wz-star.on { background: var(--sky); color: #fff; border-color: var(--sky); }
.wz-photo.banner .wz-photo-pick { border-color: var(--sky); box-shadow: none; }
.wz-l-warn .wz-l-dot { background: var(--sky-soft); }
.lane-review .count { background: var(--sky); color: #fff; }
.step.now { background: var(--sky); }
.pair.off { background: var(--sky-wash); }
input:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(79, 127, 224, 0.3); }
.ld-worker.on, .ld-job.on { box-shadow: none; }
.ld-job.on { border-color: var(--ink); }
.ld-job .ld-status.open { background: var(--ink); }

/* bento tiles in the sky's blues */
.tiles .tile:nth-child(1) { background: var(--sky); }
.tiles .tile:nth-child(1) .tile-n, .tiles .tile:nth-child(1) .tile-l { color: #fff; }
.tiles .tile:nth-child(2) { background: var(--sky-soft); }
.tiles .tile:nth-child(4) { background: var(--card); }
.ld-how .ld-card:nth-child(1) { background: var(--sky); }
.ld-how .ld-card:nth-child(1) h3, .ld-how .ld-card:nth-child(1) p { color: #fff; }
.ld-how .ld-card:nth-child(2) { background: var(--sky-soft); }
.ld-how .ld-card:nth-child(3) { background: var(--card); }

/* the sky panels */
.sky { background-color: #FFFFFF; background-size: cover; background-position: center bottom; }
.ld-hero.sky { max-width: none; margin: 14px; border-radius: 32px; min-height: calc(100svh - 28px); }
.ld-hero.sky .ld-hero-c { background: rgba(255, 255, 255, 0.92); border-radius: 30px; padding: 30px 34px 32px; }
.ld-hero.sky .ld-hero-cloud { margin-top: -110px; }
.ld .ld-nav { position: absolute; left: 0; right: 0; top: 0; margin: 28px 28px 0; }
.ld { position: relative; }
.cloud-head.sky { min-height: 210px; padding-top: 64px; }
.cloud-head.sky .cloud-photo { display: none; }
.fx-welcome .fx-body, .fx-done .fx-body { position: relative; }
.fx-welcome .fx-main.sky, .fx-done .fx-main.sky { border-radius: 0; }
.ld-end.sky { color: var(--ink); }
.ld-end.sky .ld-end-h { color: var(--ink); }
.ld-end.sky > * { position: relative; }
.ld-end.sky .ld-end-c { background: rgba(255, 255, 255, 0.92); border-radius: 28px; padding: 28px; max-width: 640px; margin: 0 auto; }
.ld-end.sky p { color: var(--body); }
.ld-end.sky .ld-ghost { color: var(--ink); }
@media (max-width: 760px) {
  .ld-hero.sky { margin: 8px; border-radius: 24px; }
  .ld-hero.sky .ld-hero-c { padding: 24px 18px; }
  .ld-hero.sky .ld-hero-cloud { margin-top: -80px; }
  .ld .ld-nav { margin: 16px 16px 0; }
}

/* the plain hero (Conner: "sooooo clean"): off-white, the cloud, the words */
.ld .ld-nav { position: sticky; left: auto; right: auto; top: 14px; margin: 14px auto 0; }
.ld-hero-c { max-width: 980px; }
.ld-end { background: var(--card); color: var(--ink); }
.ld-end-h { color: var(--ink); }
.ld-end p { color: var(--body); }
.ld-end .ld-ghost { color: var(--ink); }
@media (max-width: 760px) { .ld .ld-nav { margin: 10px 10px 0; } }

/* ======================================================================
   SOFTER (2026-10-18, Conner: fun with the cloud blue, but "not so in your
   face"). A paler, finer sky; soft blue tints instead of solid blue; lighter
   headings inside the app; a quieter speech bubble. The landing hero stays.
   ====================================================================== */
.tiles .tile:nth-child(1) { background: var(--sky-soft); }
.tiles .tile:nth-child(1) .tile-n, .tiles .tile:nth-child(1) .tile-l { color: var(--ink); }
.tiles .tile:nth-child(2) { background: var(--sky-wash); }
.tile-n { font-weight: 600; }
.stage h1 { font-weight: 600; letter-spacing: -0.03em; }
.job-title, .pair-text b { font-weight: 600; }
.cloud-say { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06); }
.cloud-say b { font-weight: 600; }
.lane-review .count, .rail-badge { background: var(--sky-soft); color: #1F3F87; }
.step.now { background: #9DB9EE; }
.ld-how .ld-card:nth-child(1) { background: var(--sky-soft); }
.ld-how .ld-card:nth-child(1) h3, .ld-how .ld-card:nth-child(1) p { color: var(--ink); }
.ld-h2 { font-weight: 600; }
.ld-card h3, .ld-wname { font-weight: 600; }
.fx h1 { font-weight: 600; }

/* the hero cloud, changing moods, and "Meet your cloud" */
.ld-hero-top { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 18px; }
.ld-hero-cloud { border: none; background: none; padding: 0; box-shadow: none; cursor: pointer; min-height: 205px; display: flex; align-items: flex-end; }
.ld-hero-cloud:hover { background: none; }
.ld-hero-cloud .cl { animation: ld-pop 0.35s ease-out; }
@keyframes ld-pop { from { scale: 0.85; opacity: 0.4; } to { scale: 1; opacity: 1; } }
.ld-mood-word { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-height: 18px; }
.ld-moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-mood { background: var(--card); border-radius: 26px; padding: 28px 16px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ld-mood .cl { margin-bottom: 12px; }
.ld-mood b { font: 600 20px var(--head); color: var(--ink); letter-spacing: -0.01em; }
.ld-mood span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .ld-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ld-hero-cloud { min-height: 150px; } }
@media (prefers-reduced-motion: reduce) { .ld-hero-cloud .cl { animation: none; } }

/* the cloud morphing from one mood and job to the next */
.cl-body { transition: fill 0.9s ease; }
.cl-face { transform-box: view-box; transform-origin: 50% 50%; transition: opacity 0.45s ease, transform 0.45s ease; }
.cl-face.cl-in { opacity: 0; transform: translateY(4px) scale(0.92); }
.cl-face.cl-out { opacity: 0; transform: translateY(-3px) scale(1.04); }
.ld-hero-cloud .cl { animation: none; }
.ld-mood-word { transition: opacity 0.26s ease, transform 0.26s ease; }
.ld-mood-word.fading { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .cl-body, .cl-face, .ld-mood-word { transition: none; } }

/* phones: the whole hero fits one screen, button included */
@media (max-width: 760px) {
  .ld-hero { min-height: calc(100svh - 72px); padding: 12px 18px 20px; align-items: center; }
  .ld-hero-top { margin-bottom: 10px; gap: 2px; }
  .ld-hero-cloud { min-height: 0; }
  .ld-hero-cloud .cl { --cl: 130px !important; }
  .ld-word { font-size: clamp(34px, 10.4vw, 52px); letter-spacing: -0.045em; }
  .ld-blurb { font-size: 15px; line-height: 1.45; margin: 14px auto 18px; }
  .ld-mood-word { font-size: 11px; }
  .ld-pill { font-size: 15px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .ld-hero-cloud .cl { --cl: 100px !important; }
  .ld-blurb { margin: 10px auto 14px; }
}

/* the jobs: bold, solid, white type (Conner: no muted pastels) */
.ld-job { background: var(--job); color: #fff; border: 3px solid transparent; }
.ld-job .ld-wname, .ld-job .ld-does { color: #fff; opacity: 1; }
.ld-job .ld-does { opacity: 0.88; }
.ld-job .ld-status { background: rgba(255, 255, 255, 0.22); color: #fff; }
.ld-job .ld-status.open { background: #fff; color: var(--ink); }
.ld-job .ld-pick { background: rgba(255, 255, 255, 0.22); border: 2px solid rgba(255, 255, 255, 0.6); }
.ld-job.on { border-color: var(--ink); box-shadow: none; }
.ld-job.on .ld-pick { background: #fff; border-color: #fff; color: var(--ink); }
.ld-job:hover { border-color: transparent; background: var(--job); }
.ld-job.on:hover { border-color: var(--ink); }
@media (hover: hover) { .ld-job:hover { border-color: var(--ink); } }
@media (max-width: 760px) { .ld-job { min-height: 0; padding: 20px; padding-top: 56px; } .ld-job .ld-wname { font-size: 22px; } }

/* crisp: flat color, clean edges, no shadows (Conner, 2026-10-18) */
.cloud-say, .note, .ld-nav, .fx-body, .ld-crew-cta { box-shadow: none; }
.cloud-say { border: 1px solid var(--line); }
.cl { height: calc(var(--cl, 96px) * 1.02); }
.cl.cl-shadowed { height: calc(var(--cl, 96px) * 1.22); }
.cl svg { overflow: visible; }

/* no pastels: bold solid or plain white */
.tiles .tile { background: var(--card); }
.tiles .tile:nth-child(1) { background: #1570EF; }
.tiles .tile:nth-child(1) .tile-n, .tiles .tile:nth-child(1) .tile-l { color: #fff; }
.tiles .tile:nth-child(2), .tiles .tile:nth-child(4) { background: var(--card); }
.ld-how .ld-card:nth-child(1) { background: #1570EF; }
.ld-how .ld-card:nth-child(2) { background: #FF2E93; }
.ld-how .ld-card:nth-child(3) { background: #12B76A; }
.ld-how .ld-card h3, .ld-how .ld-card p, .ld-how .ld-card:nth-child(1) h3, .ld-how .ld-card:nth-child(1) p { color: #fff; }
.ld-how .ld-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.lane-review .count, .rail-badge { background: #1570EF; color: #fff; }
.pair.off, .chat-offer { background: var(--card); border: 1px solid var(--line); }
.wz-opt.on { background: #1570EF; border-color: #1570EF; color: #fff; }
.wz-opt.on .wz-radio, .wz-opt.on .wz-box { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 4px #1570EF; }
.wz-opt.on .wz-box { box-shadow: none; }
.wz-opt.on .wz-src, .wz-opt.on .wz-rule-k { color: rgba(255, 255, 255, 0.8); }
.wz-rec { background: #12B76A; color: #fff; }
.fx .wz-opt.on .wz-rec { background: #fff; color: #1570EF; }
.wz-linked-card { background: var(--card); border: 1px solid var(--line); }

/* the floor line under the cloud: its own color, breathing with the float */
.cl-shadow { opacity: 1; transition: fill 0.9s ease; }
@keyframes cl-shadow { 50% { scale: 0.7 1; opacity: 0.55; } }

/* ======================================================================
   THE CLOUD IS BOLD; EVERYTHING ELSE BARELY (Conner, 2026-10-18). Cards are
   white; the full-color cloud is their icon; color elsewhere is a small
   touch (a tinted label, a border), never a fill.
   ====================================================================== */
.ld-job { background: var(--card); color: var(--ink); border: 2px solid transparent; padding: 22px; min-height: 0; gap: 10px; }
.ld-job:hover { background: var(--card); }
.ld-job-head { display: flex; align-items: center; gap: 12px; }
.ld-job .ld-wname { color: var(--ink); font-size: 22px; }
.ld-job .ld-does { color: var(--body); opacity: 1; }
.ld-job .ld-status { position: static; align-self: flex-start; margin-top: 4px; background: color-mix(in srgb, var(--job) 10%, #fff); color: var(--job); }
.ld-job .ld-status.open { background: var(--job); color: #fff; }
.ld-job .ld-pick { top: 22px; right: 22px; bottom: auto; background: var(--card); border: 2px solid var(--line-strong); color: transparent; }
.ld-job.on { border-color: var(--job); box-shadow: none; }
.ld-job.on .ld-pick { background: var(--job); border-color: var(--job); color: #fff; }
.ld-job.on:hover { border-color: var(--job); }
@media (hover: hover) { .ld-job:hover { border-color: var(--line-strong); } .ld-job.on:hover { border-color: var(--job); } }

.ld-how .ld-card, .ld-how .ld-card:nth-child(1), .ld-how .ld-card:nth-child(2), .ld-how .ld-card:nth-child(3) { background: var(--card); }
.ld-how .ld-card h3, .ld-how .ld-card p, .ld-how .ld-card:nth-child(1) h3, .ld-how .ld-card:nth-child(1) p { color: var(--ink); }
.ld-how .ld-card p { color: var(--body); }
.ld-how .ld-card h3 { margin-top: 28px; }
.ld-card .cl { align-self: flex-start; }
@media (max-width: 760px) { .ld-job { padding: 20px; } .ld-how .ld-card h3 { margin-top: 18px; } }

/* the app: color as a touch, not a fill */
.tiles .tile, .tiles .tile:nth-child(1) { background: var(--card); }
.tiles .tile:nth-child(1) .tile-n { color: #1570EF; }
.tiles .tile:nth-child(1) .tile-l { color: var(--body); }
.wz-opt.on { background: var(--card); border-color: #1570EF; color: var(--ink); }
.wz-opt.on .wz-radio { border-color: #1570EF; background: #1570EF; box-shadow: inset 0 0 0 4px #fff; }
.wz-opt.on .wz-box { border-color: #1570EF; background: #1570EF; }
.wz-opt.on .wz-src, .wz-opt.on .wz-rule-k { color: var(--muted); }
.fx .wz-opt.on .wz-rec { background: #1570EF; color: #fff; }
.cloud-say .cloud-name { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* picked jobs: no outline, the filled check says it */
.ld-job, .ld-job.on, .ld-job:hover, .ld-job.on:hover { border-color: transparent; }
@media (hover: hover) { .ld-job:hover, .ld-job.on:hover { border-color: transparent; } }

/* the logo: the cloud over its line, standing still */
.ld-brand .cl, .rail-mark .cl, .fx-top .mark .cl { flex: none; }
.ld-brand .cl-body, .ld-brand .cl-shadow, .ld-brand .cl-eyes,
.rail-mark .cl-body, .rail-mark .cl-shadow, .rail-mark .cl-eyes,
.fx-top .mark .cl-body, .fx-top .mark .cl-shadow, .fx-top .mark .cl-eyes { animation: none; }
/* The cloud and its line, centered together in the square (Conner,
   2026-10-23). The drawing has room above the cloud, so it lifts a little. */
.rail-mark .cl { margin-top: 0; transform: translateY(-6%); }
/* The logo's line is pink, like the app icon (Conner, 2026-10-23). */
.rail-mark .cl-shadow { fill: #FF2E93; }

/* ---- all of Nimbus's jobs at a glance ---- */
.jobs { margin: 6px 0 8px; }
.jobs .lane-head { margin-bottom: 10px; }
.jobs-all { margin-left: auto; font-size: 13px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.jc {
  display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 18px; border-radius: 22px;
  background: var(--card); border: 2px solid transparent; box-shadow: none; font-weight: 400;
}
.jc:hover { background: var(--card); }
@media (hover: hover) { .jc:hover { border-color: var(--line-strong); } }
.jc.on, .jc.on:hover { border-color: var(--ink); }
.jc-head { display: flex; align-items: center; gap: 12px; }
.jc-name { display: flex; flex-direction: column; min-width: 0; }
.jc-name b { font: 600 19px var(--head); color: var(--ink); letter-spacing: -0.01em; }
.jc-status { font-size: 13px; color: var(--muted); }
.jc-status.hot { color: var(--ink); font-weight: 600; }
.jc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.jc-stat { display: flex; flex-direction: column; }
.jc-stat b { font: 600 26px/1.1 var(--head); color: var(--ink); }
.jc-stat span { font-size: 12px; color: var(--muted); }
.jobs-more { margin-top: 14px; display: grid; gap: 8px; }
.jobs-more-row { display: flex; gap: 8px; flex-wrap: wrap; }
.jm { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); }
.jm-soon { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.job-head .cl { flex: none; }
.tiles { display: none; }
@media (max-width: 760px) {
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .jobs-more-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .jm { flex: none; }
}
@media (max-width: 760px) {
  .jobs-grid { gap: 8px; }
  .jc { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
  .jc-head { flex: 1; min-width: 0; }
  .jc-head .cl { --cl: 40px !important; }
  .jc .jc-stats { display: flex; border: none; padding: 0; gap: 0; }
  .jc .jc-stat:not(:first-child) { display: none; }
  .jc .jc-stat { align-items: flex-end; text-align: right; }
  .jc .jc-stat b { font-size: 24px; }
  .jc .jc-stat span { font-size: 11px; }
}
.jobs-more-row { scrollbar-width: none; }
.jobs-more-row::-webkit-scrollbar { display: none; }

/* ---- the dashboard's top, as one piece ---- */
.dash-head { display: flex; align-items: center; gap: 20px; margin: 0 0 22px; padding: 22px 24px; background: var(--card); border-radius: 26px; }
.dash-head .cl { flex: none; }
.dash-say { flex: 1; min-width: 0; }
.dash-biz { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dash-head h1 { font-size: 30px; line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.025em; }
.dash-more { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.dash-head .primary { margin-top: 14px; }
.jobs { margin-top: 0; }
@media (max-width: 760px) {
  .dash-head { gap: 14px; padding: 18px; align-items: flex-start; border-radius: 22px; }
  .dash-head .cl { --cl: 64px !important; margin-top: 2px; }
  .dash-head h1 { font-size: 24px; }
  .dash-more { font-size: 13px; }
  .dash-head .primary { width: 100%; }
}

/* ---- toolbar: Home, a slot per job, More ---- */
.rail-job .cl { --cl: 26px !important; }
.rail-btn.rail-job.on { background: #fff; }
.page-title { font-size: 34px; margin: 0 0 18px; }
.back-link { margin: -6px 0 4px -4px; font-size: 14px; }

/* a job's own page */
.job-page-head { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; padding: 22px 24px; background: var(--card); border-radius: 26px; }
.job-page-head .cl { flex: none; }
.job-page-say { flex: 1; min-width: 0; }
.job-page-say h1 { margin: 0; font-size: 30px; font-weight: 600; }
.job-page-say .jc-status { margin: 2px 0 12px; font-size: 14px; }
.job-page-say .jc-stats { padding-top: 12px; }

/* More */
.more-list { display: grid; gap: 8px; }
.more-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: none; text-align: left; box-shadow: none; font-weight: 400; }
.more-row:hover { background: var(--card); }
.more-row .ico, .more-row .ico svg { width: 24px; height: 24px; color: var(--ink); }
.more-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.more-text b { font: 600 17px var(--head); color: var(--ink); }
.more-text span { font-size: 13px; color: var(--muted); }
.more-go { font-size: 24px; color: var(--muted); }
@media (max-width: 760px) {
  .job-page-head { gap: 14px; padding: 18px; align-items: flex-start; }
  .job-page-head .cl { --cl: 64px !important; }
  .job-page-say h1 { font-size: 26px; }
  .page-title { font-size: 28px; }
}
.home-greet { margin: 0 0 2px; font-size: 15px; color: var(--muted); font-weight: 500; }
.home-title { margin-bottom: 20px; }
.rail-btn .cl { --cl: 26px !important; }
/* The cloud is drawn a little bigger than the 22px icons; let it overhang
   both sides so its label starts where every other label does. */
.rail-btn .cl { margin: 0 -2px; }

/* ---- easy: text first, one obvious yes ---- */
.job-closed { padding-bottom: 0; }
.job-closed .job-head { padding-bottom: 14px; }
.job .text { font-size: 17px; line-height: 1.5; }
.actions.decide { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.actions.decide .primary { padding: 13px 16px; font-size: 16px; }
.checked { margin: 10px 0 0; font-size: 13px; color: #0A7A45; font-weight: 600; }
.why { margin: 4px 0 10px; font-size: 14px; color: var(--red); }
.details-toggle { display: block; margin-top: 8px; font-size: 13px; padding-left: 0; }
.approve-all { margin-left: auto; padding: 6px 14px; font-size: 13px; border-radius: 999px; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.approve-all:hover { background: #2A2A2A; }
.jobs-more { margin-top: 26px; }

/* ---- one chat for everything ---- */
.ask-bar { display: flex; align-items: center; gap: 10px; margin: -6px 0 22px; padding: 8px 8px 8px 14px; background: var(--card); border-radius: 999px; }
.ask-bar .cl { flex: none; }
.ask-input { border: none; padding: 10px 4px; font-size: 16px; background: transparent; }
.ask-input:focus { box-shadow: none; }
.ask-go { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 18px; }
.cc-job-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cc-job-head .cc-kind { margin: 0; color: var(--ink); }

/* loading: Nimbus at work, nothing else */
/* First load: a muted wireframe of the app (2026-10-28). */
.loader { min-height: 100vh; min-height: 100svh; display: flex; }
.wf-rail { flex: none; width: 76px; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; background: #111111; }
.wf-rail i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.wf-rail i:first-child { background: rgba(255, 255, 255, 0.2); margin-bottom: 8px; }
.wf-bar { display: none; height: 56px; background: #111111; }
.wf-main { flex: 1; min-width: 0; max-width: 1180px; margin: 0 auto; padding: 36px 28px 12px; }
.wf-main p { margin: 18px 0 26px; font-size: 13px; color: var(--muted); }
.wf-b { background: var(--line); border-radius: 8px; animation: wf-breathe 1.6s ease-in-out infinite; }
@keyframes wf-breathe { 50% { opacity: 0.5; } }
.wf-title { width: 240px; max-width: 70%; height: 32px; margin-bottom: 12px; }
.wf-sub { width: 380px; max-width: 90%; height: 14px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.wf-wide { grid-column: 1 / -1; }
.wf-h { width: 55%; height: 14px; margin-bottom: 16px; }
.wf-wide .wf-h { width: 25%; }
.wf-l { height: 10px; margin-bottom: 10px; }
.wf-l:last-child { margin-bottom: 0; }
.wf-l.w100 { width: 100%; } .wf-l.w90 { width: 90%; } .wf-l.w80 { width: 80%; } .wf-l.w70 { width: 70%; } .wf-l.w65 { width: 65%; } .wf-l.w60 { width: 60%; }
@media (max-width: 760px) {
  .loader { flex-direction: column; }
  .wf-rail, .wf-more { display: none; }
  .wf-bar { display: block; }
  .wf-main { width: 100%; box-sizing: border-box; padding: 24px 16px 8px; }
  .wf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .wf-b { animation: none; } }
.home-greet { margin: 0 0 4px; font-size: 34px; font-weight: 600; color: var(--ink); }
.home-biz { margin: 0 0 20px; font-size: 15px; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .home-greet { font-size: 30px; } }

/* Closing section: the black Nimbus with each job's cloud around it */
.ld-ring { position: relative; width: min(340px, 100%); height: 210px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; gap: 0; }
.ld-ring-c { position: absolute; translate: -50% -50%; }
.ld-ring-c .cl-body { animation-delay: var(--d, 0s); }

/* A link that looks like the black pill button */
.button-link { display: inline-block; margin-top: 10px; background: var(--ink, #111); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; }

/* The reading log's "looking for…" line: plain, not purple (Conner, 2026-10-18).
   A step that stopped when a read failed shows a quiet gray dot, no spinner. */
.wz-l-look { color: var(--body) !important; font-weight: 600; }
.wz-l-stopped .wz-l-dot { background: #D9D5CC; }
.wz-l-stopped .wz-l-t { color: var(--muted); }

/* Paste a social link copied in the Facebook or LinkedIn app */
.wz-paste { padding: 8px 14px; font-size: 13px; }
.wz-copy-hint { margin: 6px 4px 10px; color: var(--muted); }

/* What Nimbus found: quiet rows in one list, not a stack of boxes
   (Conner, 2026-10-18). Tap a row to change it or see the quote. */
.wz-found { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 14px; }
.wz-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; text-align: left; width: 100%; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 13px 16px; color: var(--ink); font: inherit; cursor: pointer; }
.wz-row:first-child { border-top: 0; }
.wz-row-k { grid-column: 1; font-size: 12px; font-weight: 600; color: var(--muted); }
.wz-row-v { grid-column: 1; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wz-row-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: 20px; }
.wz-row.off .wz-row-v { color: var(--muted); }
.wz-row.open { display: block; cursor: default; background: var(--page); }
.wz-row.open input, .wz-row.open textarea { display: block; width: 100%; margin: 6px 0 8px; font: 500 15px/1.4 inherit; font-family: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); resize: vertical; }
.wz-row-src { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.wz-row-src q { font-style: normal; color: var(--body); }
.wz-row-off { color: var(--muted); margin: 6px 0 8px; }
.wz-row-acts { display: flex; justify-content: space-between; align-items: center; }
.wz-row-done { padding: 8px 16px; font-size: 13px; }
.wz-row.wz-in { animation: wz-row-in 0.4s ease-out both; }
@keyframes wz-row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wz-hint { font-size: 13px; color: var(--muted); margin: 8px 4px 0; }
/* The reading log, folded to one line once it's done */
.wz-sum { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 4px 0; font: 600 14px/1.3 inherit; font-family: inherit; color: var(--body); cursor: pointer; text-align: left; }
.wz-sum .wz-l-dot { background: var(--green); position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.wz-sum .wz-l-dot::after { content: "✓"; color: #fff; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.wz-sum-more { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: underline; }
.wz-rrow { grid-template-columns: auto 1fr; }
.wz-rrow .wz-rcheck { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 1px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.wz-rrow:not(.off) .wz-rcheck { background: var(--ink); border-color: var(--ink); }
.wz-rrow .wz-row-v, .wz-rrow .wz-row-k { grid-column: 2; }
.wz-rrow .wz-row-k { font-weight: 500; margin-top: 2px; }
.wz-rrow.off .wz-row-v { color: var(--muted); text-decoration: line-through; }
.wz-sub { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 0; }
.wz-thinking { display: flex; align-items: center; gap: 10px; color: var(--body); font-weight: 600; margin: 6px 0 12px; }
.wz-thinking .wz-l-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #EAE7E0; border-top-color: var(--ink); animation: wz-spin 0.8s linear infinite; }

/* Reading, calmly (Conner, 2026-10-18): one cloud, one status line that
   eases from step to step, a slim bar, and a quiet count. Nothing grows. */
.wz-calm { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 4px 8px; }
.wz-calm h1 { margin: 14px 0 18px; font-size: 26px; overflow-wrap: anywhere; }
.wz-bar { width: 100%; max-width: 320px; height: 6px; border-radius: 999px; background: #ECE8E0; overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 12%; border-radius: 999px; background: var(--ink); transition: width 1.2s cubic-bezier(.22,.61,.36,1); }
.wz-status { margin: 16px 0 4px; min-height: 22px; font-size: 16px; font-weight: 500; color: var(--body); transition: opacity .26s ease, transform .26s ease; }
.wz-status.fading { opacity: 0; transform: translateY(3px); }
.wz-count { margin: 0; min-height: 18px; font-size: 13px; color: var(--muted); }
/* The answers arrive together, a beat apart, without moving the page */
.wz-found .wz-in:nth-child(2) { animation-delay: .07s; } .wz-found .wz-in:nth-child(3) { animation-delay: .14s; }
.wz-found .wz-in:nth-child(4) { animation-delay: .21s; } .wz-found .wz-in:nth-child(5) { animation-delay: .28s; }
.wz-found .wz-in:nth-child(6) { animation-delay: .35s; } .wz-found .wz-in:nth-child(n+7) { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .wz-bar span, .wz-status { transition: none; } }
/* While reading, Nimbus looks down at the progress bar and its eyes follow the fill */
.cl-watching .cl-eyes { animation: cl-blink 5s infinite !important; translate: var(--eye-x, -7px) 4px; transition: translate 1.2s cubic-bezier(.22,.61,.36,1); }
/* Photos: a small row you can swipe, not a stack of full-width images */
.wz-photo-grid { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.wz-photo { flex: none; width: 116px; scroll-snap-align: start; }
.wz-photo .wz-photo-pick img, .wz-photo .wz-photo-pick canvas { display: block; width: 116px; height: 84px; object-fit: cover; }
.wz-photo.banner .wz-photo-pick { border-color: var(--ink); box-shadow: none; }
.wz-star, .wz-star.on { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); }
.wz-star.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
/* Choices: black, not blue */
.wz-opt.on { border-color: var(--ink) !important; background: var(--card) !important; color: var(--ink) !important; }
.wz-opt .wz-rec, .wz-rec { background: #EFECE6 !important; color: var(--body) !important; }
.wz-hello h1 { margin: 16px 0 10px; }
.wz-hello .wz-lead { margin: 0 0 10px; }
.wz-opt.on .wz-radio { border-color: var(--ink) !important; background: var(--ink) !important; box-shadow: inset 0 0 0 4px var(--card); }
.wz-opt.on .wz-box { border-color: var(--ink) !important; background: var(--ink) !important; }
.wz-opt .wz-box, .wz-opt .wz-radio { border-width: 1.5px; border-color: #CFCAC0; }
/* Choices and rules read as one quiet list, like what Nimbus found */
.wz-options { gap: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wz-options .wz-opt { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 14px 16px; font-weight: 500; margin: 0; }
.wz-options .wz-opt:first-child { border-top: 0 !important; }
.wz-options .wz-opt.on { font-weight: 600; }
/* Where you post: a row per network */
.wz-netrow { grid-template-columns: auto 1fr auto; align-items: center; }
.wz-netrow .cx-icon { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; margin-right: 2px; }
.wz-netrow .wz-row-v { grid-column: 2; grid-row: 1; font-weight: 600; }
.wz-netrow .wz-row-k { grid-column: 2; grid-row: 2; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-netrow .wz-row-go, .wz-netrow .wz-add, .wz-netrow .wz-tog { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.wz-netrow.off .wz-row-v { color: var(--ink); }
.wz-add { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.wz-paste-line { display: flex; gap: 8px; align-items: center; }
.wz-paste-line input { flex: 1; margin: 6px 0 8px !important; }
.wz-row-acts > div { display: flex; gap: 12px; align-items: center; }
.wz-tog.on { background: var(--ink) !important; }
.wz-opt .wz-box { position: relative; }
.wz-opt.on .wz-box::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
/* Where Nimbus posts */
.wz-post-row { display: block; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.wz-chip { font: 600 13px/1 inherit; font-family: inherit; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.wz-chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.wz-add-quiet { background: none; color: var(--ink); border: 1px solid var(--line); }
/* No zoom: no double-tap zoom, and fields at 16px so iPhone doesn't zoom into them */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
input, textarea, select { font-size: max(16px, 1em); }
.wz-finish { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.wz-soon { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: #EFECE6; white-space: nowrap; }

/* The hero wears the closing ring too: the crew round the big cloud. */
.ld-hero-ring { width: min(560px, 100%); height: 250px; margin: 0 auto 4px; }
.ld-hero-ring .ld-hero-cloud { margin: 0; min-height: 0; align-items: center; }
@media (max-width: 760px) {
  .ld-hero-ring { height: 200px; }
  .ld-hero-ring .ld-ring-c { --cl: 40px !important; }
}
@media (max-width: 420px) {
  .ld-hero-ring { height: 170px; }
  .ld-hero-ring .ld-ring-c { --cl: 34px !important; }
}

/* THE FIRST SCREEN FITS THE SCREEN (Conner's laptop, 2026-10-19): with the
   crew ring the hero ran past the fold and hid "Get started". On wider
   screens everything in it now scales with the window's height too. */
@media (min-width: 761px) {
  .ld-hero { padding: 24px 20px; }
  .ld-hero-ring { height: clamp(150px, 27vh, 250px); }
  .ld-hero-ring .ld-hero-cloud .cl { --cl: clamp(104px, 19vh, 184px) !important; }
  .ld-hero-ring .ld-ring-c { --cl: clamp(34px, 5.6vh, 50px) !important; }
  .ld-hero-top { margin-bottom: clamp(8px, 2vh, 18px); }
  .ld-word { font-size: clamp(48px, min(9vw, 12.5vh), 120px); }
  .ld-blurb { margin: clamp(12px, 2.4vh, 22px) auto clamp(16px, 3vh, 28px); }
}

/* The sample's way in: pinned to the top of the stage at every width. */
.sample-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--ink); color: var(--on-ink); font-size: 14px;
}
/* An admin seeing Nimbus as another plan (2026-10-22). */
.view-as { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.view-as-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: var(--yellow); color: var(--ink); font-size: 14px; }
.view-as-bar button { padding: 6px 14px; white-space: nowrap; }
/* Usage (admin only): a row per workspace, quiet ones flagged in yellow. */
.us-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.us-tile { background: var(--card); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.us-tile b { font-size: 24px; }
.us-tile.us-warn { background: var(--yellow); color: var(--ink); }
.us-tile.us-warn .small { color: var(--ink); }
.us-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.us-row { background: var(--card); border-radius: var(--radius); border: 1px solid transparent; }
.us-row.us-quiet { border-color: var(--yellow); }
.us-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; width: 100%; padding: 12px 16px; background: none; border: 0; border-radius: var(--radius); text-align: left; color: inherit; font: inherit; cursor: pointer; }
.us-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.us-flag { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.us-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.us-detail { padding: 4px 16px 14px; border-top: 1px solid var(--line); }
.us-line { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.us-line > span:last-child { text-align: right; }
.us-members { padding-top: 6px; }
@media (max-width: 520px) { .us-tile b { font-size: 20px; } .us-line { flex-direction: column; gap: 2px; } .us-line > span:last-child { text-align: left; } }
.sample-bar .sample-home { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sample-bar .sample-text { flex: 1; min-width: 0; }
.sample-bar button.sample-go { background: #fff; color: var(--ink); border-color: #fff; padding: 8px 16px; white-space: nowrap; }
.sample-bar button.sample-go:hover { background: #E8E6E1; border-color: #E8E6E1; }
@media (max-width: 760px) {
  .sample-bar { gap: 10px; padding: 10px 12px; font-size: 13px; }
  /* The way back to the landing page stays on phones too. */
  .sample-bar .sample-home { padding: 6px 2px; }
  .sample-bar .sample-more { display: none; }
}

/* Setup's "You already use Datum": a space per row, its purpose under it. */
.wz-place { align-items: flex-start; text-align: left; }
.wz-place-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wz-place-s { font-size: 13px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- landing: what it does, and pricing (2026-10-20) ---- */
.ld-does-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ld-does-grid .ld-card h3 { margin-top: 18px; }
.ld-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ld-plan { min-height: 0; gap: 10px; }
.ld-plan h3 { margin: 0; }
.ld-price { font: 800 34px/1 var(--head); letter-spacing: -0.02em; }
.ld-price span { font: 500 15px var(--sans); color: var(--muted); letter-spacing: 0; }
.ld-plan ul { margin: 4px 0 8px; padding-left: 18px; color: var(--body); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.ld-plan-go { margin-top: auto; align-self: flex-start; text-decoration: none; }
a.ld-plan-go { padding: 10px 18px; }
.ld-plans-note { margin-top: 18px; max-width: 680px; }
@media (max-width: 1000px) { .ld-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ld-does-grid, .ld-plans { grid-template-columns: minmax(0, 1fr); } }

/* ---- Home: the chat, with the cloud floating over the bar (2026-10-20) ---- */
.dash { min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dash-top { width: 100%; max-width: 760px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; min-height: 36px; }
.dash-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.dash-yes.dash-nimbus b { background: none; color: inherit; min-width: 0; height: auto; display: inline; font-size: 14px; border-radius: 0; }
.dash-nimbus .dash-nimbus-more { font-weight: 500; color: var(--muted); }
.dash-nimbus .dash-gear { font-size: 15px; color: var(--muted); }
.dash-offer { margin-top: 14px; }
.dash-offer .dash-offer-go { justify-content: flex-start; margin-top: 10px; }
.dash-yes, .dash-yes:hover { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 14px 6px 7px; color: var(--ink); font-weight: 600; font-size: 14px; border: 1px solid var(--line); box-shadow: none; }
.dash-yes b { background: var(--ink); color: var(--on-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.dash-mid { flex: 1; width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.dash-cloud { animation: ld-bob 6s ease-in-out infinite; }
.dash-say { font: 800 34px/1.1 var(--head); letter-spacing: -0.02em; text-align: center; margin: 4px 0 0; color: var(--ink); }
.dash-sub { color: var(--muted); margin: 0; text-align: center; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.dash-chip, .dash-chip:hover { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--sans); color: var(--body); box-shadow: none; }
.dash-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.dash-chip.on, .dash-chip.on:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.dash-checkin { max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; text-align: left; }
.dash-checkin p { margin: 0; color: var(--body); line-height: 1.45; }
.dash-checkin p + p { margin-top: 8px; }
.dash-bar { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 26px; padding: 8px 8px 8px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); position: sticky; bottom: 14px; box-sizing: border-box; }
.dash-bar .chat-input { flex: 1; border: none; outline: none; resize: none; font: 500 16px var(--sans); padding: 8px 0; background: none; min-height: 24px; max-height: 160px; box-shadow: none; }
.dash-send, .dash-send:hover { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--ink); color: var(--on-ink); border: none; font-size: 18px; padding: 0; box-shadow: none; }
.dash-note { color: var(--muted); font-size: 12px; margin: -4px 0 0; text-align: center; }
.dash.talking .dash-mid { flex: 0; flex-direction: row; gap: 10px; }
.dash-msgs { width: 100%; max-width: 760px; flex: 1; justify-content: flex-end; padding-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .dash-cloud { animation: none; } }
@media (max-width: 760px) { .dash-say { font-size: 28px; } .dash { min-height: calc(100vh - 120px); } }

/* ---- Your profile ---- */
.pf-head-wrap { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.pf-head { display: flex; align-items: center; gap: 16px; }
.pf-head h1 { font: 800 34px/1.1 var(--head); margin: 0; letter-spacing: -0.02em; }
.pf-head p { margin: 4px 0 0; color: var(--muted); }
.pf-knows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-k, .pf-k:hover { background: var(--card); border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; text-align: left; box-shadow: none; color: var(--ink); }
.pf-k b { font: 800 26px var(--head); }
.pf-k span { grid-column: 1 / -1; color: var(--muted); font-size: 14px; font-weight: 500; }
@media (max-width: 760px) { .pf-knows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-head h1 { font-size: 28px; } }
.dash h1.dash-say { margin: 2px 0 -2px; }
@media (max-width: 760px) {
  .dash-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .dash-top { font-size: 13px; }
  .dash-yes { white-space: nowrap; flex: none; }
  .dash-yes .dash-yes-long { display: none; }
  .dash-nimbus .dash-nimbus-more { display: none; }
}
.dash-bar .chat-input { overflow: hidden; line-height: 1.4; height: 24px; }
/* Home fixes for phones (2026-10-20): an older .dash-say rule stretched the
   greeting; the bar only sticks once you're talking, so it never covers the
   suggested questions; the box is tall enough for its text. */
.dash .dash-say { flex: none; min-width: 0; }
.dash:not(.talking) .dash-bar { position: relative; bottom: auto; top: auto; }
.dash-bar .chat-input { height: 40px; min-height: 40px; box-sizing: border-box; padding: 8px 0; line-height: 24px; }
@media (max-width: 760px) {
  .dash { min-height: 0; gap: 12px; }
  .dash:not(.talking) .dash-mid { flex: none; padding: 8px 0 4px; }
  .dash-cloud .cl { --cl: 120px !important; }
  .dash.talking .dash-cloud .cl { --cl: 48px !important; }
  .dash-chip { font-size: 13px; padding: 7px 12px; }
}

/* ---- Settings: Nimbus's colors ---- */
.colors-box { display: flex; flex-direction: column; gap: 2px; }
.colors-box .st-title { margin-bottom: 8px; }
.colors-box .crow { border-top: 1px solid var(--line); }
.colors-box .crow-head, .colors-box .crow-head:hover { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: none; background: none; box-shadow: none; text-align: left; font: inherit; color: inherit; border-radius: 0; }
.colors-box button.crow-head { cursor: pointer; }
.colors-box .crow-head b { flex: 1; font-size: 14px; }
.colors-box .crow-head .small { margin-left: auto; }
.st-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.colors-box .sw { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 2px 12px 40px; }
.colors-box .sw button, .colors-box .sw button:hover { width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0; box-shadow: none; }
.colors-box .sw button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.colors-box .sw button.taken { opacity: 0.35; }
.colors-box > button { align-self: flex-start; margin-top: 8px; }

/* ---- Your profile: everything in it (2026-10-20) ---- */
.pf-map { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.pf-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-map-head h2 { margin: 0; text-transform: capitalize; }
.pf-search { max-width: 320px; width: 100%; }
/* Every search box (search.js searchBox): a magnifier, the words, an × */
.nb-search { position: relative; display: flex; align-items: center; width: 100%; box-sizing: border-box; }
.nb-search input { width: 100%; box-sizing: border-box; border-radius: 999px; padding: 9px 36px 9px 36px; border: 1px solid var(--line-strong); background: var(--card); font: 500 15px var(--sans); color: var(--ink); }
.nb-search input:focus { outline: none; border-color: var(--ink); }
.nb-search input::-webkit-search-cancel-button { display: none; }
.nb-search-ico { position: absolute; left: 12px; font-size: 22px; line-height: 1; color: var(--muted); pointer-events: none; }
.nb-search-x, .nb-search-x:hover { position: absolute; right: 6px; width: 26px; height: 26px; padding: 0; border: none; border-radius: 999px; background: var(--line); box-shadow: none; color: var(--body); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.nb-search-x:hover { background: var(--line-strong); }
mark { background: #FFE58A; color: inherit; border-radius: 3px; padding: 0 1px; }
/* Your profile search results (profile.js search) */
.pf-hits-h { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pf-hit { display: flex; flex-direction: column; gap: 2px; }
.pf-hit-where { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: capitalize; }
.pf-hit-go { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pf-space-hit .pf-row-t { text-transform: capitalize; }
.pf-hits-more { align-self: flex-start; }
.pf-none { padding: 18px 2px; }
.pf-spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pf-space, .pf-space:hover { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; box-shadow: none; color: var(--ink); }
.pf-space:hover { border-color: var(--line-strong); }
.pf-space b { font-size: 16px; text-transform: capitalize; }
.pf-space-p { color: var(--body); font-size: 13px; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-space-c { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }
.pf-subs { margin-bottom: 4px; }
.pf-space-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-space-title > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-space-title h2 { margin: 0; font: 800 32px/1.1 var(--head); letter-spacing: -0.02em; color: var(--ink); text-transform: none; overflow-wrap: anywhere; }
.pf-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); text-transform: capitalize; }
.pf-group { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 10px 0 0; font-family: var(--sans); }
.pf-rows { display: flex; flex-direction: column; gap: 6px; }
.pf-row, .pf-row:hover { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: 22px 1fr; align-items: start; column-gap: 10px; text-align: left; box-shadow: none; color: var(--ink); font: 500 15px var(--sans); }
.pf-row .cl { margin-top: 2px; }
.pf-row-more { grid-column: 2; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
.pf-partial { margin-top: 22px; }
.pf-stale { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .pf-search { max-width: none; } }
.pf-hidden { margin-left: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.pf-knows { gap: 8px; }
@media (min-width: 761px) { .pf-knows .pf-k, .pf-knows .pf-k:hover { padding: 12px 12px; column-gap: 8px; } }


/* ---- Your profile: Check my apps (2026-10-20) ---- */
.sg-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.sg-bar .small { margin: 0; }
.sg-card .job-head { display: flex; align-items: center; gap: 10px; }
.sg-card .text { margin: 8px 0 4px; }
.sg-why { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .sg-why .small { margin: 0; color: var(--ink); }

/* Your profile inside a space: how fresh each fact is, what waits for the
   owner's OK, which apps work there, and inherited rules (2026-10-20) */
.pf-row, .pf-row:hover { grid-template-columns: 22px 1fr auto; }
.pf-row .pf-row-more { grid-column: 2 / -1; }
.pf-fresh { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; align-self: center; }
.pf-fresh.new { background: #E7F7EE; color: #137A43; }
.pf-fresh.mid { background: #FFF6DB; color: #8A6100; }
.pf-fresh.old { background: var(--red-wash); color: #B4232A; }
.pf-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-key { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pf-wait, .pf-wait:hover { border: 2px solid var(--ink); text-align: left; }
.pf-decide { display: flex; gap: 6px; align-self: center; }
.pf-decide button { padding: 5px 12px; font-size: 13px; border-radius: 999px; }
.pf-inherited { opacity: 0.72; }
.pf-from { font-size: 12px; color: var(--muted); white-space: nowrap; align-self: center; }
.pf-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.pf-apps b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; }
.pf-app { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 13px; }
.pf-app i { font-style: normal; color: var(--muted); font-weight: 500; }

/* Phones: the profile counts sit in a short grid */
@media (max-width: 760px) {
  .pf-knows { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pf-k, .pf-k:hover { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 2px; border-radius: 14px; row-gap: 2px; }
  .pf-k .cl { --cl: 18px !important; }
  .pf-k b { font-size: 17px; }
  .pf-k span { font-size: 11px; }
}

/* The Your profile cloud, poked: it squishes, jumps and looks surprised */
.pf-poke, .pf-poke:hover { border: none; background: none; box-shadow: none; padding: 0; cursor: pointer; flex: none; }
.pf-poke.poked { animation: pf-poke 0.6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pf-poke { 0% { transform: none; } 18% { transform: scale(1.18, 0.78) translateY(6px); } 45% { transform: scale(0.9, 1.12) translateY(-10px) rotate(-6deg); } 70% { transform: scale(1.04, 0.96) rotate(3deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pf-poke.poked { animation: none; } }

/* The map at the top of Your profile: a card of dots for each space */
.pf-mapkey { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--muted); }
.pf-mapkey > span { display: inline-flex; align-items: center; gap: 5px; }
.pf-mapcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pf-mapcard, .pf-mapcard:hover { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; box-shadow: none; color: var(--ink); cursor: pointer; }
.pf-mapcard:hover { border-color: var(--line-strong); }
.pf-mapcard-h { display: flex; align-items: center; gap: 10px; }
.pf-mapcard-h b { font: 800 18px var(--head); letter-spacing: -0.01em; text-transform: capitalize; }
.pf-mapcard .pf-space-c { margin: -4px 0 4px 34px; }
.pf-dots { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; font-style: normal; }
.pf-dot-ok { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.pf-map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pf-map-foot b { color: var(--ink); }
.pf-old { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--red-wash); color: #B4232A; }
@media (max-width: 760px) { .pf-mapcards { grid-template-columns: minmax(0, 1fr); } }

/* Big spaces: smaller dots, so every record still fits at a glance */
.pf-dots.tiny { gap: 2px; }
.pf-dots.tiny .pf-dot { width: 4px; height: 4px; }
.pf-dots.tiny .pf-dot-ok { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Home: a more compact message box (2026-10-21). Text stays 16px so phones
   don't zoom in when it's tapped. */
.dash-bar { padding: 4px 4px 4px 16px; border-radius: 22px; gap: 8px; }
.dash-bar .chat-input { height: 36px; min-height: 36px; padding: 6px 0; margin: 0; }
/* As the box grows, the send button stays at the bottom, next to the last line. */
.dash-bar { align-items: flex-end; }
.dash-send, .dash-send:hover { width: 36px; height: 36px; font-size: 16px; }

/* Subspaces inside a space's map card */
.pf-mapcard { cursor: default; }
.pf-mapcard-top, .pf-mapcard-top:hover, .pf-mapsub, .pf-mapsub:hover { background: none; border: none; box-shadow: none; padding: 0; text-align: left; color: var(--ink); display: flex; flex-direction: column; gap: 8px; cursor: pointer; width: 100%; }
.pf-mapsub, .pf-mapsub:hover { padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; }
.pf-mapsub-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pf-mapsub-h b { font: 800 15px var(--head); text-transform: capitalize; }
.pf-mapsub-h .pf-space-c { margin: 0; }

/* Your team (2026-10-21) */
.tm-sub { color: var(--muted); margin: -6px 0 14px; }
.tm-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-bottom: 12px; }
.tm-card h2 { font: 800 18px var(--head); margin: 0 0 10px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.tm-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.tm-in { width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: 500 16px var(--sans); background: #fff; color: var(--ink); }
.tm-roles { display: grid; gap: 6px; }
.tm-role, .tm-role:hover { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: none; color: var(--ink); }
.tm-role.on { border: 2px solid var(--ink); }
.tm-role b { display: block; font-size: 14px; }
.tm-role span span { font-size: 13px; color: var(--muted); font-weight: 400; }
.tm-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 2px; box-sizing: border-box; }
.tm-role.on .tm-radio { border: 5px solid var(--ink); }
.tm-go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tm-go button { flex: 1 1 180px; }
.tm-link { margin-top: 12px; background: var(--page); border-radius: 12px; padding: 8px 8px 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tm-link code { font-size: 12px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tm-link button { flex: none; padding: 5px 12px; font-size: 12px; border-radius: 999px; }
.tm-note { margin: 12px 0 0; font-size: 14px; color: var(--body); background: #FFF6DB; border-radius: 12px; padding: 10px 12px; }
.tm-person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tm-person:first-of-type { border-top: none; }
.tm-av { width: 36px; height: 36px; border-radius: 50%; background: var(--page); display: flex; align-items: center; justify-content: center; font: 800 13px var(--head); flex: none; }
.tm-who { min-width: 0; }
.tm-who b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tm-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 4px 2px 9px; text-transform: capitalize; }
.tm-chip i { font-style: normal; color: var(--muted); font-weight: 500; text-transform: none; margin: 0 4px 0 3px; }
.tm-x, .tm-x:hover { border: none; background: none; box-shadow: none; padding: 0 5px; font-size: 15px; line-height: 1; color: var(--muted); }
.tm-x:hover { color: var(--ink); }
.tm-pending { display: inline-block; margin-top: 6px; font-size: 12px; color: #8A6100; background: #FFF6DB; border-radius: 999px; padding: 2px 9px; font-weight: 600; }

.tm-chip.asking { border-color: var(--ink); }
.tm-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.tm-ask span { flex: 1 1 100%; }
.tm-ask button { padding: 6px 14px; font-size: 13px; border-radius: 999px; }
.tm-av-nimbus { background: #fff; border: 1px solid var(--line); }

/* The map packs its cards in columns (2026-10-21): a short card no longer
   stretches to the height of a tall one beside it. */
.pf-mapcards { display: block; columns: 2 340px; column-gap: 12px; }
.pf-mapcard { break-inside: avoid; margin-bottom: 12px; }
div.pf-mapcard-top { cursor: default; }
.pf-mapcard-p { margin: -4px 0 4px 34px; color: var(--body); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Arrange: the owner's own order for their spaces */
.pf-map-tools { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.pf-arrange-go { padding: 8px 16px; border-radius: 999px; font-size: 14px; flex: none; }
.pf-arrange { display: flex; gap: 6px; align-self: flex-end; margin-bottom: -4px; }
.pf-arrange button { width: 36px; height: 32px; padding: 0; border-radius: 10px; font-size: 16px; }
.pf-arrange button:disabled { opacity: 0.3; }
.pf-arrange-note { margin: 0; }
@media (max-width: 760px) { .pf-map-tools { flex-basis: 100%; } .pf-map-tools .pf-search { flex: 1; min-width: 0; } }

/* Spaces show exactly as they're named (Conner, 2026-10-21). */
.pf-map-head h2, .pf-space b, .pf-crumbs, .pf-mapcard-h b, .pf-mapsub-h b { text-transform: none; }

/* Asking Nimbus from Your profile: a Nimbus cloud in the corner, and a
   small chat window beside the page (dragged by its top bar on a computer;
   from the bottom on a phone). */
.pchat-fab, .pchat-fab:hover { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 68px; height: 68px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16); }
.pchat-fab:hover { transform: translateY(-2px); }
.pchat { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 360px; height: min(520px, calc(100vh - 48px)); display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 22px; padding: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); animation: pchat-up 0.2s ease-out; }
@keyframes pchat-up { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pchat.dragging { animation: none; user-select: none; }
.pchat-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; cursor: grab; touch-action: none; border-bottom: 1px solid var(--line); }
.pchat.dragging .pchat-head { cursor: grabbing; }
.pchat-head b { font: 800 16px var(--head); flex: 1; }
.pchat-x, .pchat-x:hover { border: none; background: none; box-shadow: none; font-size: 22px; line-height: 1; padding: 2px 8px; color: var(--muted); }
.pchat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 4px; }
.pchat-hello { flex: 1; margin: 6px 4px; color: var(--muted); font-size: 14px; }
.pchat .pchat-bar { position: relative; top: auto; bottom: auto; max-width: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .pchat { animation: none; } }
@media (max-width: 760px) {
  .pchat-fab, .pchat-fab:hover { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .pchat { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); height: min(62vh, 520px); }
  .pchat-head { cursor: default; }
}

/* The map's two sides (2026-10-21): the owner puts each top space left or
   right, by dragging on a computer or with the arrows. */
.pf-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.pf-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-col .pf-mapcard { margin-bottom: 0; }
.pf-cols.arranging .pf-col { min-height: 90px; padding: 8px; border: 2px dashed var(--line-strong); border-radius: 26px; }
.pf-mapcard.lifted { opacity: 0.4; }
.pf-mapcard.drop-before { box-shadow: 0 -4px 0 var(--ink); }
@media (max-width: 760px) {
  .pf-cols { grid-template-columns: minmax(0, 1fr); }
  .pf-cols.arranging .pf-col { padding: 0; border: none; min-height: 0; }
  .pf-side { display: none; }
}

/* The Nimbus chat cloud stays in the bottom-right corner of the screen
   (Conner, 2026-10-23: it rode up off the corner at the end of the page). */
.pchat-fab-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; justify-content: flex-end; pointer-events: none; }
.pchat-fab-wrap .pchat-fab, .pchat-fab-wrap .pchat-fab:hover { position: static; pointer-events: auto; }
@media (max-width: 760px) { .pchat-fab-wrap { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } .pchat-fab-box { touch-action: manipulation; } }

/* Arrange uses the real, full cards (Conner, 2026-10-21): the arrows sit in
   the card's top corner and the whole card drags on a computer. */
.arranging .pf-mapcard { position: relative; cursor: grab; outline: 2px dashed transparent; }
.arranging .pf-mapcard:hover { outline-color: var(--line-strong); }
.arranging .pf-mapcard .pf-arrange { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; background: var(--card); padding: 2px; border-radius: 12px; }
.arranging .pf-mapsub { cursor: grab; }
.arranging .pf-mapcard-h { padding-right: 132px; }

/* Back one level, inside a space: a clear button that stays at the top. */
.pf-back-bar { position: sticky; top: 10px; z-index: 30; display: flex; margin-bottom: 4px; pointer-events: none; }
.pf-back, .pf-back:hover { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); border: none; font: 700 15px var(--sans); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.pf-back span { font-size: 18px; line-height: 1; }
/* In the sample, the Back button sits below the sticky sample bar. */
body:has(.sample-bar) .pf-back-bar { top: 66px; z-index: 19; }
.pf-more { align-self: flex-start; border-radius: 999px; padding: 8px 16px; font-size: 14px; }

/* A big block of dots starts short, fading out, until Show all. */
.pf-dots.short { max-height: 46px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pf-dots-wrap { display: flex; flex-direction: column; gap: 6px; }
.pf-dots-toggle, .pf-dots-toggle:hover { align-self: flex-start; padding: 4px 12px; font-size: 12px; border-radius: 999px; }
.pf-mapsub { cursor: pointer; }

/* The Nimbus cloud: drag it anywhere (it stays there), and its speech
   bubble with a tip. */
.pchat-fab-box { position: relative; pointer-events: auto; touch-action: none; }
.pchat-fab-box.moved { position: fixed; z-index: 40; }
.pchat-fab-wrap.moved { margin: 0; height: 0; }
.pchat-fab-box.dragging .pchat-fab { cursor: grabbing; transform: scale(1.06); }
.pchat-tip { position: absolute; right: 0; bottom: calc(100% + 12px); width: max-content; max-width: 240px; display: flex; gap: 6px; align-items: flex-start; background: var(--ink); color: var(--on-ink); font-size: 14px; line-height: 1.35; padding: 10px 10px 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); cursor: pointer; animation: pchat-tip-in 0.3s ease-out; }
.pchat-tip-x, .pchat-tip-x:hover { border: none; background: none; box-shadow: none; color: var(--on-ink); opacity: 0.7; padding: 0 2px; font-size: 16px; line-height: 1; }
.pchat-tip-x:hover { opacity: 1; }
@keyframes pchat-tip-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pchat-tip { animation: none; } }
.pchat-fab-box.tip-right .pchat-tip { right: auto; left: 0; border-radius: 16px 16px 16px 4px; }
.pchat-fab-box.tip-below .pchat-tip { bottom: auto; top: calc(100% + 12px); }

/* Save to: which space a new fact goes into. */
.sg-to { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sg-to select { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: 600 14px var(--sans); background: #fff; color: var(--ink); max-width: 100%; }
.sg-hold { flex: 1 1 100%; color: var(--muted); }

/* The chat window starts small and grows with the conversation, up to the
   room it has (Conner, 2026-10-21). */
.pchat { height: auto; max-height: min(520px, calc(100vh - 48px)); }
.pchat-hello { flex: none; margin: 4px 4px 2px; }
.pchat-log { flex: 1 1 auto; }
@media (max-width: 760px) { .pchat { height: auto; max-height: min(62vh, 520px); } }

.cn-sub { color: var(--muted); margin: -6px 0 14px; }
.cn-chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; font-weight: 600; color: var(--ink); }
.cn-name-edit { display: flex; gap: 6px; flex-wrap: wrap; }
.cn-name-in { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: 500 15px var(--sans); min-width: 0; }

/* Save to personal? Change */
p.sg-to { display: block; margin: 4px 0 0; font-size: 14px; color: var(--body); font-weight: 500; }
p.sg-to b { color: var(--ink); }
.sg-change { font-size: 13px; }
.sg-hold { flex: 0 1 auto; }
/* Twice the starting height (Conner, 2026-10-21): it opens about 340px tall
   and still grows with the conversation. */
.pchat { min-height: min(340px, calc(100vh - 48px)); }
.pchat-hello { flex: 1 1 auto; }

/* Where a new fact goes, in the card header: "... Save to personal?" and
   Change on the right. */
.sg-title { flex: 1; min-width: 0; }
.sg-where { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.job-head .sg-change, .cc-where .sg-change { margin-left: auto; font-size: 13px; flex: none; }
.cc-where { display: flex; align-items: baseline; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Profile health: how current the profile is, and what pulls it down. */
.pf-health { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: -6px 0 16px; overflow: hidden; }
/* Your profile: one tap to Waiting for you (app.js) */
.pf-waiting { display: inline-flex; align-items: center; gap: 2px; margin: -6px 0 16px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.pf-waiting:hover { border-color: var(--ink); }
.pf-health-top, .pf-health-top:hover { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: none; background: none; box-shadow: none; text-align: left; color: var(--ink); }
.pf-health-score { font: 800 26px var(--head); letter-spacing: -0.02em; padding: 4px 12px; border-radius: 14px; flex: none; }
.pf-health.good .pf-health-score { background: #E7F7EE; color: #137A43; }
.pf-health.mid .pf-health-score { background: #FFF6DB; color: #8A6100; }
.pf-health.low .pf-health-score { background: var(--red-wash); color: #B4232A; }
.pf-health-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pf-health-text b { font-size: 15px; }
.pf-health-text span { font-size: 13px; color: var(--muted); font-weight: 500; }
.pf-health-more { font-size: 20px; color: var(--muted); flex: none; }
.pf-health-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.pf-health-body p { margin: 0; }
.pf-health-list { display: flex; flex-direction: column; gap: 6px; }
.pf-health-row, .pf-health-row:hover { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 0; border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; font: 400 14px var(--sans); color: var(--ink); text-align: left; }
.pf-health-row b { font-weight: 700; }
.pf-health-chev { color: var(--muted); flex: none; }
.pf-health-how { color: var(--muted); }
.pf-health-all { align-self: flex-start; margin-top: 4px; }
/* One space's old facts, to fix right here (profile.js healthSpace) */
.pf-hfacts { display: flex; flex-direction: column; gap: 8px; padding: 0 0 10px; }
.pf-hfact { background: var(--page); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.pf-hfact-t { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.pf-hfact-age { font-size: 12px; color: var(--muted); }
.pf-hfact-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pf-hfact-btns button, .pf-hfacts-foot button:not(.link-btn) { padding: 5px 12px; font-size: 13px; border-radius: 999px; box-shadow: none; }
.pf-hfact-in { width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: 14px var(--sans); color: var(--ink); background: var(--card); resize: vertical; }
.pf-hfacts-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-add { margin-left: auto; padding: 5px 12px; font-size: 13px; border-radius: 999px; box-shadow: none; }
.pf-editing, .pf-fact-open { cursor: default; }
.pf-edit-body { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 8px; }
.pf-adding { margin-bottom: 8px; border: 1.5px solid var(--ink); }
.pf-row-close { all: unset; cursor: pointer; overflow-wrap: anywhere; }
.pf-fact-open .pf-hfact-btns { margin-top: 8px; }
.pf-hfact-btns .small { color: var(--muted); align-self: center; }
.pf-rule-num { width: 64px; margin: 0 4px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; text-align: center; background: var(--card); color: var(--ink); }
.pf-ask-remove { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink); }
.pf-ask-remove button { padding: 5px 12px; font-size: 13px; border-radius: 999px; box-shadow: none; }
.pf-health-undo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--page); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--body); }

/* Change (or Cancel) right after the "?" */
.job-head .sg-change, .cc-where .sg-change { margin-left: 4px; font-size: 13px; font-weight: 600; vertical-align: baseline; }

/* The five profile counts fill the full width, five equal tiles across
   (Conner, 2026-10-21). */
.pf-knows { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 760px) { .pf-knows { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; } .pf-k span { font-size: 10px; } }

/* ---- Settings ---- */
.st-title { display: flex; flex-direction: column; gap: 2px; }
.st-title b { font-size: 15px; }
.st-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.st-head .st-title { flex: 1; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.st-row > span { color: var(--muted); flex: none; }
.st-row b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.st-row .st-empty { color: var(--muted); font-weight: 400; }
.st-row input { max-width: 60%; flex: 1; }
.st-go { display: flex; gap: 8px; padding-top: 12px; }
.st-out { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px; }

/* ---- Your team: who can do what ---- */
.tm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px 0 14px; }
.tm-top .tm-sub { margin: 0; }
.tm-add-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tm-add-head h2 { margin: 0; }
.tm-add .tm-x { font-size: 22px; }
.tm-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; cursor: pointer; }
.tm-check input { margin-top: 3px; }
.tm-check b { display: block; font-size: 14px; }
.tm-check span span { font-size: 13px; color: var(--muted); }
.tm-levels { display: grid; gap: 6px; }
.tm-level { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.tm-level .tm-in { width: 150px; flex: none; padding: 7px 10px; font-size: 14px; }
.tm-level small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tm-grid-card { padding: 6px 18px; }
.tm-scroll { overflow-x: auto; }
.tm-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-grid th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 8px 8px 0; white-space: nowrap; }
.tm-grid td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.tm-grid .tm-tr-open td { border-top: none; padding-top: 0; }
.tm-name b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tm-name .small, .tm-wait { display: block; font-size: 12px; }
.tm-wait { color: #8A6100; }
.tm-all { color: var(--muted); }
.tm-more { width: 36px; text-align: right; }
.tm-more .tm-x { font-size: 18px; }
.tm-none { color: var(--line-strong); }
.tm-nimbus { display: inline-flex; align-items: center; gap: 6px; }
.tm-alone { margin: 4px 0 12px; }
.tm-up { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-up h2 { margin: 0 0 4px; }
.tm-up p { margin: 0; color: var(--muted); }
.tm-up-go { flex: none; }
.tm-lv { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 3px 9px; white-space: nowrap; background: var(--page); color: var(--ink); }
.tm-lv-attester { background: #E6F0FF; color: #1F3F87; }
.tm-lv-agency { background: #FFF6DB; color: #8A6100; white-space: normal; }
.tm-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.tm-legend-i { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tm-legend-i p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.tm-tr-open .tm-ask span { flex: 1 1 auto; }
.tm-top button { flex: none; white-space: nowrap; }
.tm-name { min-width: 140px; }
@media (max-width: 760px) { .tm-grid-card { padding: 4px 12px; } .tm-sub { font-size: 14px; } }

/* ---- a reply as it's written: soft dots, then words fade in ---- */
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 15px 16px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.3; animation: dot-breathe 1.4s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
/* One line beside the dots saying what Nimbus is doing, fading step to step. */
.typing-dots .chat-step { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 6px; opacity: 1; transition: opacity 0.18s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(340px, 64vw); }
.typing-dots .chat-step:empty { display: none; }
.typing-dots .chat-step.done { color: #0A7A45; }
.typing-dots .chat-step.out { opacity: 0; }
@keyframes dot-breathe { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.w-in { opacity: 0; animation: word-in 0.35s ease forwards; }
@keyframes word-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-dots span, .w-in { animation: none; opacity: 1; } }

/* ---- On its own ---- */
.au-card { padding: 0 18px; }
.au-usage { padding: 16px 18px; margin-bottom: 14px; }
.au-usage-add { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.au-usage-add .small { color: var(--muted); }
.au-usage-out { color: var(--red); }
.au-usage-bar { display: flex; height: 10px; margin-top: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.au-usage-bar i { display: block; height: 100%; }
.au-usage-used { background: var(--blue); }
.au-usage-used.hi { background: var(--yellow); }
.au-usage-extra { background: var(--purple); }
.au-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.au-row:first-child { border-top: none; }
.au-group { border-top: 1px solid var(--line); }
.au-group:first-child { border-top: none; }
.au-group .au-row { border-top: none; }
.au-more { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0 0 14px; }
.au-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.au-opt .au-every { width: auto; }
.au-what { flex: 1; min-width: 0; }
.au-what b { display: block; font-size: 15px; }
.au-what span { font-size: 13px; color: var(--muted); }
.au-every { width: 160px; flex: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 10px; font: 500 14px var(--sans); background: #fff; color: var(--ink); }
.au-every:disabled { opacity: 0.45; }
.au-switch, .au-switch:hover { width: 42px; height: 24px; flex: none; border-radius: 999px; border: none; padding: 0; background: #B9B5AC; position: relative; box-shadow: none; cursor: pointer; transition: background 0.15s ease; }
.au-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.au-switch.on, .au-switch.on:hover { background: #1F9D5C; }
html.dark .au-switch:not(.on) { background: #4A4D55; }
.au-switch.on i { transform: translateX(18px); }
.au-tell { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.au-pause { margin-bottom: 12px; }
.au-pause.on { border-color: var(--ink); }
.au-paused { opacity: 0.55; }
.au-run { flex: none; font-size: 13px; padding: 6px 12px; }
.au-found { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--sky-wash); font-size: 13px; }
.au-found p { margin: 0; }
.au-found-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.au-go, .au-go:hover { border: none; background: none; box-shadow: none; padding: 0; font: 600 13px var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; }
.au-found ul { margin: 6px 0 0; padding-left: 18px; }
.au-tell select { border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font: 500 14px var(--sans); background: #fff; }
.au-last { margin: 12px 2px 0; }
.au-tg { margin-top: 12px; }
.au-tg > span { flex: 1 1 320px; }
.au-tg-go { margin-top: 0; }
.au-on.au-soon { background: var(--line); }
.au-on { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sky-wash); color: var(--ink); }
@media (max-width: 760px) { .au-row { flex-wrap: wrap; } .au-what { flex: 1 1 100%; } .au-every { flex: 1; width: auto; } }
.tm-tr-open .tm-ask .tm-in { width: auto; padding: 6px 10px; font-size: 13px; }
.tm-add-one { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.cn-spaces { grid-column: 1 / -1; display: grid; gap: 6px; padding: 10px 0 4px; }
.cn-space { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cn-acts-in { display: flex; gap: 6px; margin-top: 4px; }
.cn-acts-in button { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
/* ---- Nimbus for Mac: a newer version is out ---- */
.mac-update { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 28px; font-size: 14px; }
.mac-update .button-link { padding: 7px 16px; }

/* Your connections (2026-10-21): built on Your team's table, pills and ⋯ menu. */
.cn-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; }
.cn-view { display: flex; gap: 14px; }
.cn-view .link-btn { color: var(--muted); font-weight: 600; text-decoration: none; padding: 0; }
.cn-view .link-btn.on { color: var(--ink); }
.cn-find { width: 220px; padding: 7px 12px; font-size: 14px; }
.cn-grid .tm-name .small { overflow-wrap: anywhere; }
button.cn-fix { border: none; box-shadow: none; cursor: pointer; }
button.cn-fix:hover { background: #FBE7A6; }
.cn-in .tm-chips { margin-top: 0; }
.cn-aside .tm-name b, .cn-aside .tm-lv-attester { opacity: 0.6; }
.cn-notused td { color: var(--muted); font-size: 13px; }
.cn-grid .tm-tr-open .tm-ask > span { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.cn-pick { margin-top: 4px; }
.cn-pick-q { display: block; font-size: 14px; margin-bottom: 8px; }
.cn-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-name-edit .tm-in { width: auto; flex: 1 1 200px; padding: 7px 10px; font-size: 14px; }
@media (max-width: 600px) {
  .cn-grid thead { display: none; }
  .cn-grid tr.tm-tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); padding: 10px 0; }
  .cn-grid tr.tm-tr td { border-top: none; padding: 2px 0; }
  .cn-grid .tm-more { grid-column: 2; grid-row: 1; }
  .cn-grid .cn-status, .cn-grid .cn-in { grid-column: 1; }
  .cn-grid tr.tm-tr-open, .cn-grid tr.tm-tr-open td { display: block; }
  .cn-bar { flex-wrap: wrap; }
  .cn-find { width: 100%; }
}
.st-out .st-go { padding-top: 0; }

/* Learn Nimbus (2026-10-21): lessons for owners, in the app */
.ln-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ln-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.ln-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font: 800 15px var(--head); }
.ln-card.done .ln-num { background: var(--lime); color: var(--ink); }
.ln-body { min-width: 0; }
.ln-body h2 { font: 800 18px var(--head); margin: 4px 0 6px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ln-done { font: 700 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--page); padding: 3px 9px; border-radius: 999px; }
.ln-body p { margin: 0 0 8px; color: var(--body); line-height: 1.55; }
.ln-go { font-weight: 700; color: var(--ink); padding: 0; }
.ln-qh { font: 800 20px var(--head); margin: 0 0 10px; text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.ln-qs { display: grid; gap: 8px; }
.ln-q { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.ln-q summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ln-q p { margin: 10px 0 0; color: var(--body); }
.cn-old { background: #F1EFE8; color: var(--muted); }
.cn-key { margin: 0 2px 10px; }
.cn-grid .cn-status .tm-lv { white-space: nowrap; }
/* Your AIs, on Your connections (connections.js aisCard) */
.cn-ais { margin: 0 0 26px; }
.cn-ai-sum { padding: 16px 18px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cn-ai-sum-text { display: flex; flex-direction: column; gap: 4px; }
.cn-ai-sum-text b { font: 800 17px var(--head); color: var(--ink); }
.cn-ai-why { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cn-ai-why li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cn-ai-why b { font-size: 14px; color: var(--ink); font-weight: 600; }
.cn-ai-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cn-ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cn-ai-card { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.cn-ai-card > .small { margin: 10px 0 0; }
.cn-ai-head { display: flex; align-items: center; gap: 12px; }
.cn-ai-head > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.cn-ai-head b { font-weight: 600; overflow-wrap: anywhere; }
.cn-ais .cn-ai-ico { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.cn-ais .cn-ai-plain { background: var(--page); color: var(--muted); }
.cn-ai-when { font-size: 13px; color: var(--muted); }
.cn-ai-when.on { color: #0A7A45; font-weight: 600; }
.cn-ai-when.on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.cn-ai-list { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.cn-ai-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.cn-ai-row:first-child { border-top: none; }
.cn-ai-row > span:first-child { overflow-wrap: anywhere; }
.cn-ai-grid + .cn-ai-label, .cn-ai-list + .cn-ai-label { margin-top: 16px; }
.cn-ai-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; padding: 8px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cn-ais .cn-ai-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 1.5px solid transparent; border-radius: 14px; background: transparent; box-shadow: none; font: 500 13px var(--sans); color: var(--body); text-align: center; line-height: 1.25; }
.cn-ais .cn-ai-opt:hover { background: var(--page); }
.cn-ais .cn-ai-opt.on { background: var(--page); border-color: var(--ink); color: var(--ink); font-weight: 600; }
.cn-ai-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cn-ai-panel { padding: 16px 18px 6px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cn-ai-chosen { padding-bottom: 12px; }
.cn-ai-chosen b { font: 800 16px var(--head); color: var(--ink); }
.cn-ai-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--page); color: var(--body); font-size: 14px; }
.cn-ai-steps-list { list-style: none; margin: 0; padding: 0; }
.cn-ai-step { display: grid; grid-template-columns: 30px 1fr auto; column-gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.cn-ai-num { width: 30px; height: 30px; border-radius: 9px; background: var(--page); display: flex; align-items: center; justify-content: center; font: 700 13px var(--sans); color: var(--ink); }
.cn-ai-step-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 4px; font-size: 13.5px; color: var(--muted); }
.cn-ai-step-text b { font-size: 15px; font-weight: 600; color: var(--ink); }
.cn-ai-val { font: 12.5px var(--mono); color: var(--body); overflow-wrap: anywhere; }
.cn-ais a.cn-ai-go { align-self: center; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font: 600 14px var(--sans); text-decoration: none; white-space: nowrap; }
.cn-ais a.cn-ai-go:hover { opacity: 0.88; }
.cn-ais .cn-ai-btn { flex: none; align-self: center; padding: 7px 14px; border-radius: 10px; font: 600 14px var(--sans); white-space: nowrap; }
.cn-ai-box { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--page); min-width: 0; }
.cn-ai-box code { flex: 1; min-width: 0; font: 12.5px/1.5 var(--mono); color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-ai-status { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cn-ai-status > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cn-ai-status b { font-weight: 600; }
.cn-ai-spin { flex: none; width: 22px; height: 22px; margin: 0 4px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink); animation: wz-spin 0.9s linear infinite; }
.cn-ai-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 700; }
@media (max-width: 560px) {
  .cn-ai-step { grid-template-columns: 30px 1fr; }
  .cn-ais a.cn-ai-go, .cn-ais .cn-ai-step > .cn-ai-btn { grid-column: 2; justify-self: start; margin-top: 10px; }
  .cn-ai-box { grid-column: 1 / -1; }
}
/* Your texts, on This Mac (app.js macTexts) */
.mt { display: grid; gap: 10px; }
.mt p { margin: 0; }
.mt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-head button { flex: none; }
.mt-warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FEF7E6; color: #7A4B00; border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.mt-warn .button-link { flex: none; padding: 7px 14px; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--page); border-radius: 999px; padding: 4px 4px 4px 12px; font-size: 14px; }
.mt-chip button { background: transparent; border: 0; color: var(--muted); padding: 2px 8px; font-size: 16px; cursor: pointer; }
.mt-add { display: flex; gap: 8px; align-items: center; }
.mt-add input { flex: 1; min-width: 0; }
.mt .link-btn { justify-self: start; }

/* Your connections tabs (2026-10-22): Your accounts | Library. */
.cn-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.cn-tab { background: none; border: none; box-shadow: none; border-radius: 0; padding: 0 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cn-tab.on { color: var(--ink); border-bottom-color: var(--ink); }
.cn-libsub { margin: 0 0 12px; }
.cn-lead { color: var(--body); margin: -6px 0 14px; max-width: 760px; }
/* Your apps | Your AI, the two pages of Your connections */
.cn-pages { display: inline-flex; background: var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 20px; }
.cn-pages button { border: none; box-shadow: none; background: none; border-radius: 9px; padding: 8px 18px; font-size: 15px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cn-pages button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.cn-pages-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F5B700; color: #3D2A00; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cn-needs { background: #FFF8E1; border: 1px solid #F5D77A; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.cn-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; color: #3D2A00; }
.cn-sum > .tm-ask { flex-basis: 100%; margin: 0; font-weight: 400; }
.cn-remove > span { flex-basis: 100%; }
button.cn-remove-go { background: #B42318; border-color: #B42318; color: #fff; }
/* Connected: one card per app, its accounts underneath (2026-10-23) */
.cn-apps { display: grid; gap: 10px; }
.cn-app { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 6px; }
.cn-app-head { display: flex; align-items: baseline; gap: 4px; padding-bottom: 6px; }
.cn-app-head b { font-size: 16px; color: var(--ink); }
.cn-app-add { margin-left: auto; padding: 5px 10px; font-size: 13px; }
.cn-line { border-top: 1px solid var(--line); padding: 8px 0; }
.cn-line-row { display: flex; align-items: center; gap: 12px; }
.cn-line-text { flex: 1; min-width: 0; font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.cn-line-go { flex: none; display: flex; align-items: center; gap: 6px; }
.cn-line-go button { padding: 6px 12px; font-size: 13px; }
.cn-line-go .tm-x { padding: 6px 8px; }
.cn-line > .tm-ask, .cn-line > .cn-pick { margin: 8px 0 2px; }
.cn-dot { flex: none; width: 104px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cn-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9AA3AB; }
.cn-dot.ok::before { background: #12A150; }
.cn-dot.warn::before { background: #E8A400; }
.cn-dot.bad::before { background: #D92D20; }
.cn-dot.bad { color: #B42318; }
.cn-aside .cn-line-text { color: var(--muted); }
/* By space: Your profile's cards (2026-10-23) */
.cn-byspace { display: grid; gap: 12px; }
button.cn-srow { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
button.cn-srow:hover b { text-decoration: underline; }
.cn-srow .pf-mapsub-h { min-width: 0; }
.cn-srow .pf-space-c { overflow-wrap: anywhere; }
.cn-srow .cn-dot { width: auto; }
.cn-every { font-weight: 700; }
.cn-pick-note { margin: 6px 0 0; color: var(--muted); }
.cn-sline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--body); }
.cn-sline-i { display: inline-flex; align-items: center; gap: 8px; }
.cn-sline-i button { padding: 5px 10px; font-size: 13px; }
.cn-notused { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .cn-line-row { flex-wrap: wrap; gap: 6px 10px; }
  .cn-line-text { flex-basis: calc(100% - 120px); }
  .cn-line-go { width: 100%; }
}
.cn-seg { display: inline-flex; background: var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.cn-seg button { border: none; box-shadow: none; background: none; border-radius: 8px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cn-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.cn-bar .primary { margin-left: auto; }
.cn-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.cn-empty p { margin: 0; }
.cx-go { flex: none; padding: 6px 14px; font-size: 14px; }
.cx-on { flex: none; font-size: 13px; font-weight: 700; color: #0A7A45; background: #E3F9EC; border-radius: 8px; padding: 6px 10px; }
.mt.tm-card { margin-top: 18px; }
.mt-head h2 { margin: 0 0 2px; }
/* iMessage on Your connections (texts.js): the row and Manage */
.im-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #34C759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 4C7 4 3 7.1 3 11c0 2.2 1.3 4.2 3.4 5.5-.2 1.2-.8 2.3-1.7 3.1 1.8 0 3.4-.7 4.6-1.7.9.2 1.8.3 2.7.3 5 0 9-3.1 9-7S17 4 12 4z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.im-name { display: flex; align-items: center; gap: 10px; }
.im-name > div { min-width: 0; }
.im-manage { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.im-row .tm-more { width: auto; }
a.cn-fix { text-decoration: none; }
.im-panel { margin-top: 16px; display: grid; gap: 10px; }
.im-panel p { margin: 0; }
.im-head { display: flex; align-items: flex-start; gap: 12px; }
.im-head > div { flex: 1; min-width: 0; }
.im-head h2 { margin: 2px 0 4px; }
.im-listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; }
.im-find { width: 100%; box-sizing: border-box; }
.im-list { border: 1px solid var(--line); border-radius: 14px; max-height: 340px; overflow-y: auto; }
.im-convo { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.im-convo:first-child { border-top: none; }
.im-who { flex: 1; min-width: 0; display: grid; }
.im-who > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.im-state { font-size: 13px; color: var(--muted); }
.im-state.im-out { color: #9A6100; font-weight: 600; }
.im-sw { flex: none; width: 38px; height: 22px; border-radius: 999px; border: none; padding: 0; background: #B9B5AC; position: relative; cursor: pointer; box-shadow: none; }
.im-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s ease; }
.im-sw.on { background: #12B76A; }
.im-sw.on::after { left: 19px; }
.im-none { padding: 14px; }
.im-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.im-off { color: #B42318; }

/* ---- Activity: every receipt in the account, like usedatum's Checks ---- */
.act-empty { color: var(--muted); }
.act-nums { display: flex; gap: 12px; margin: 18px 0 14px; }
.act-num { flex: 1; background: var(--card); border-radius: var(--radius); padding: 16px 18px; }
.act-num b { display: block; font: 800 34px/1 var(--head); color: var(--ink); letter-spacing: -0.03em; }
.act-num span { font-size: 13px; color: var(--muted); }
.act-num.ok b { color: var(--green); }
.act-num.bad b { color: var(--red); }
.act-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; background: var(--card); border-radius: var(--radius); padding: 14px 18px; }
.act-bars button { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; width: auto; min-width: 0; padding: 0; border: none; border-radius: 4px; background: none; box-shadow: none; cursor: pointer; }
.act-bars button:hover { background: #F4F2ED; }
.act-bars button.pick { outline: 2px solid var(--ink); outline-offset: 3px; }
.act-bars i { display: block; border-radius: 2px; }
.act-bars .s { background: var(--green); }
.act-bars .r { background: var(--red); }
.act-bars .d { background: var(--line-strong); }
.act-seg { display: flex; gap: 6px; margin: 18px 0 4px; flex-wrap: wrap; }
.act-seg button { font: 600 13px var(--sans); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--body); box-shadow: none; width: auto; }
.act-seg button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.act-day { margin-top: 22px; }
.act-day h3 { font: 700 15px var(--head); margin: 0 0 8px; }
.act-list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.act-line { display: block; width: 100%; text-align: left; padding: 13px 18px; border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; cursor: pointer; }
.act-line:first-child { border-top: none; }
.act-row { display: flex; align-items: center; gap: 12px; }
.act-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--line-strong); }
.act-line.performed .act-dot { background: var(--green); }
.act-line.refused .act-dot { background: var(--red); }
/* Reads (Datum change 45): blue rows saying which AI read what. */
.pill.read { background: #E8EFFF; color: #2F6BFF; }
.act-line.read .act-dot { background: #2F6BFF; }
.act-who { display: block; margin-left: 19px; color: var(--muted); font-size: 13px; }
.act-items { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; }
.act-item { padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.act-item:first-child { border-top: none; }
.act-item small, small.act-item { color: var(--muted); }
.act-num.read b { color: #2F6BFF; }
.act-what { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: 14px; }
.act-time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.act-receipt { display: grid; gap: 12px; padding: 12px 0 2px 21px; font-size: 14px; color: var(--body); }
.act-line.open { background: #FBFAF7; }
.act-peek { display: block; padding: 4px 0 0 21px; font-size: 14px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-why { display: block; padding: 4px 0 0 21px; font-size: 14px; color: var(--red); }
.act-sec { display: grid; gap: 3px; }
.act-k { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.act-said { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.act-receipt a { color: var(--ink); font-weight: 600; }
.act-fine { display: block; font-size: 12px; color: var(--muted); }
.act-fine a { color: inherit; font-weight: 400; }
.act-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.act-nowrap { white-space: nowrap; }
.act-under { padding: 10px 0 2px 21px; }
.act-btn.dark { background: var(--ink); color: var(--on-ink); }
.act-src-line { display: block; font-size: 13px; color: var(--body); }
.act-btn { width: auto; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 14px var(--sans); box-shadow: none; cursor: pointer; }
@media (max-width: 560px) { .act-nums { gap: 8px; } .act-num { padding: 12px 14px; } .act-num b { font-size: 26px; } }

/* How much Nimbus steps in (usage levels): the three choices, in Settings
   and in setup. */
.lv-opt { display: flex; align-items: flex-start; gap: 12px; text-align: left; }
.lv-opt .wz-radio { margin-top: 3px; flex: none; }
.lv-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lv-text b { font-size: 15px; }
.lv-text span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lv-opt .wz-rec { flex: none; }
.lv-notice p { margin: 0; }
.lv-card { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; }
.lv-card .au-what { display: flex; flex-direction: column; gap: 2px; }
.lv-changed { margin: 0; color: var(--muted); }
.act-daypick { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; background: var(--ink); color: var(--on-ink); padding: 6px 6px 6px 14px; border-radius: 999px; }
.act-daypick button { width: auto; padding: 3px 10px; border: none; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 12px var(--sans); box-shadow: none; cursor: pointer; }
.act-ok { display: block; font-size: 14px; color: #0A7A45; }
.act-ok a, .act-src-line a { color: var(--ink); font-weight: 600; }
.act-bad { display: block; font-size: 13px; font-weight: 600; color: var(--red); }

/* ---- phones: a top bar with a menu button that opens the sidebar ---- */
.phone-bar, .drawer-scrim, .rail-close { display: none; }
@media (max-width: 760px) {
  .frame { padding-bottom: 0; }
  .phone-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 8px; padding-top: env(safe-area-inset-top); background: var(--ink); }
  .phone-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .phone-bar .rail-mark { width: 32px; height: 32px; border-radius: 10px; }
  .phone-name { color: #fff; font: 800 17px var(--head); letter-spacing: -0.02em; }
  .phone-menu { width: 44px; height: 44px; padding: 0; border: none; border-radius: 12px; background: none; box-shadow: none; color: #fff; display: flex; align-items: center; justify-content: center; }
  .phone-menu .ico, .phone-menu .ico svg { width: 26px; height: 26px; }
  .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(17, 17, 17, 0.4); }
  .rail, .rail.open {
    position: fixed; top: 0; bottom: 0; left: 0; right: auto; z-index: 40; width: 220px; height: 100%; border-radius: 0 22px 22px 0;
    flex-direction: column; justify-content: flex-start; align-items: stretch; padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-105%); transition: transform 0.2s ease; overflow-y: auto;
  }
  .rail.drawer { transform: none; }
  .rail .rail-head { display: flex; padding: 0 4px; margin-bottom: 10px; }
  .rail .rail-name { display: block; }
  .rail .rail-name { flex: 1; }
  .rail .rail-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: none; border-radius: 12px; background: none; box-shadow: none; color: rgba(255, 255, 255, 0.7); }
  .rail .rail-close .ico, .rail .rail-close .ico svg { width: 24px; height: 24px; }
  .rail .rail-toggle, .rail .rail-more { display: none; }
  .rail .rail-tabs, .rail .rail-foot { flex-direction: column; align-items: stretch; flex: none; justify-content: flex-start; gap: 4px; }
  .rail .rail-foot { margin-top: auto; }
  .rail .rail-page { display: flex; }
  .rail .rail-btn, .rail.open .rail-btn { width: 100%; height: 48px; justify-content: flex-start; gap: 12px; padding: 0 12px; }
  .rail .rail-label { display: block; position: static; transform: none; opacity: 1; background: none; padding: 0; font-size: 15px; color: inherit; }
  .rail .rail-badge, .rail.open .rail-badge { position: static; margin-left: auto; }
  .rail .rail-lock { position: static; margin-left: auto; }
  .rail .rail-sample { display: inline-block; align-self: flex-start; margin: 6px 0 0 12px; }
  .rail .rail-div { width: auto; margin: 4px 12px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* App library: connected apps as rows on top, each account on its own line (connections.js connectedRow) */
.cx-clist { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 0 0 18px; }
.cx-crow { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.cx-crow:first-child { border-top: none; }
.cx-crow .cx-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.cx-crow-body { flex: 1; min-width: 0; }
.cx-crow .cx-acct { padding: 8px 0 0; }
.cx-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cx-acct { font-size: 13px; }
.cx-acct-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cx-who { color: var(--ink); overflow-wrap: anywhere; margin-right: 2px; }
.cx-sp-tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--page); color: var(--body); }
.cx-sp-tag.send { background: var(--sky-wash); color: var(--blue-ink, #2A56B8); }
.cx-sp-lv { font-weight: 500; opacity: 0.8; }
/* Read, or read and send, for each space (2026-10-28). */
.cx-lv { margin: 8px 4px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.cx-lv .cx-sps-q { margin-left: 0; }
.cx-lv-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.cx-lv-sp { flex: 1; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.cx-lv-seg { flex: none; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.cx-lv-seg button { border: none; box-shadow: none; border-radius: 0; background: none; padding: 3px 11px; font: 600 12px var(--sans); color: var(--muted); }
.cx-lv-seg button.on { background: var(--ink); color: var(--on-ink); }
.cx-lv-seg button:disabled { opacity: 0.4; cursor: not-allowed; }
.cx-lv-note { margin: 4px 0 0; color: var(--muted); }
.cx-access { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.cx-access.act { border-color: transparent; background: var(--sky-wash); color: var(--blue-ink, #2A56B8); }
.cx-change { font-size: 12px; padding: 0; border: none; background: none; box-shadow: none; color: var(--muted); text-decoration: underline; }
.cx-change:hover { color: var(--ink); }
.cx-acct.warn .cx-dot { background: #F5B700; }
.cx-acct.bad .cx-dot { background: var(--red); }
.cx-acct-sub { font-size: 12px; color: var(--muted); }
.cx-acct.warn .cx-acct-sub { color: #7A5600; }
.cx-acct.bad .cx-acct-sub { color: var(--red); }
.cx-fix { flex: none; font-size: 12px; padding: 3px 10px; }
/* Where an account works: a tree of tick boxes (connections.js treePick) */
.cx-sps-box { margin: 8px 0 0 18px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); max-width: 520px; }
.cx-sps-q { font-size: 12px; color: var(--muted); margin: 0 0 6px 4px; }
.cx-tree { display: flex; flex-direction: column; gap: 1px; margin: 4px 0; }
.cx-tree-find { width: 100%; margin-bottom: 6px; font-size: 13px; }
.cx-tr { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
.cx-tr:hover { background: var(--page); }
.cx-tr.d1 { padding-left: 22px; } .cx-tr.d2 { padding-left: 44px; } .cx-tr.d3 { padding-left: 66px; } .cx-tr.d4 { padding-left: 88px; }
.cx-tr-every { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; padding-bottom: 2px; margin-bottom: 2px; }
.cx-tw { flex: none; width: 22px; height: 28px; padding: 0; border: none; background: none; box-shadow: none; color: var(--muted); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.cx-tmore { margin: 2px 6px 4px; }
button.cx-tw { font-size: 20px; font-weight: 500; transition: transform .12s; }
button.cx-tw.open { transform: rotate(90deg); }
button.cx-tw:hover { color: var(--ink); }
.cx-tl { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 6px; border: none; background: none; box-shadow: none; font-size: 13px; font-weight: 500; color: var(--body); text-align: left; }
.cx-tc { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
.cx-tb { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; color: transparent; background: var(--card); }
.cx-tb.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.cx-tb.inh { background: var(--line); border-color: var(--line-strong); color: var(--muted); }
.cx-tb.part { background: var(--line); border-color: var(--ink); color: var(--ink); }
.cn-pick .cx-tree { max-width: 520px; }
.cx-sps-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 4px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.cx-sps-save .small { margin-right: auto; }
.cx-sps-save button { font-size: 12px; padding: 4px 12px; }
/* App library: Add your own app by its MCP address (connections.js addOwn) */
.cx-own-form { flex-direction: column; align-items: stretch; gap: 8px; }
.cx-own-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.cx-own-field .tm-in { width: 100%; }
.cx-own-form .small { margin: 0; }
.cx-own-err { color: var(--red); }
/* Real app logos on a white tile (connections.js logoTile) */
.cx-icon.cx-logo { background: #fff; border: 1px solid var(--line); }
.cx-icon.cx-logo img { width: 66%; height: 66%; object-fit: contain; display: block; }
.cx-icon.cx-logo-full { border: none; overflow: hidden; }
.cx-icon.cx-logo-full img { width: 100%; height: 100%; }
/* App library: Connect is a round + centered on the card (connections.js action) */
.cn-lib .cx-card { align-items: center; }
.cx-plus { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 400 22px/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); box-shadow: none; }
.cx-plus:hover { border-color: var(--ink); background: var(--ink); color: var(--card); }
/* App library: teaching banner, one idea per slide (connections.js LESSONS) */
.cx-learn { position: relative; margin: 0 0 18px; padding: 22px 60px 16px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.cx-learn-kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cx-learn h3 { margin: 6px 0 4px; font: 800 21px var(--head); color: var(--ink); text-transform: none; letter-spacing: -0.01em; }
.cx-learn-body { margin: 0 auto 16px; max-width: 460px; font-size: 14px; color: var(--body); }
.cx-learn-art { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 0 0 16px; min-height: 52px; }
.cx-learn .cx-learn-ico { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.cx-learn-art .cx-sp-tag { font-size: 13px; padding: 6px 14px; }
.cx-learn-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.cx-learn-arrow.prev { left: 12px; }
.cx-learn-arrow.next { right: 12px; }
.cx-learn-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.cx-learn-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: 99px; background: var(--line-strong); box-shadow: none; }
.cx-learn-dots button.on { width: 22px; background: var(--ink); }
@media (max-width: 560px) {
  .cx-learn { padding: 18px 14px 14px; }
  .cx-learn-arrow { top: auto; bottom: 8px; transform: none; width: 30px; height: 30px; }
}
/* App library: each account's ⋯ menu, set-aside accounts and iMessage (connections.js acctLine) */
.cx-more { flex: none; padding: 0 6px; border: none; background: none; box-shadow: none; font-size: 18px; line-height: 1; color: var(--muted); }
.cx-more:hover, .cx-more[aria-expanded="true"] { color: var(--ink); }
.cx-more-wrap { position: relative; display: inline-flex; }
.cx-menu { position: absolute; top: calc(100% + 4px); left: -6px; z-index: 20; min-width: 132px; display: flex; flex-direction: column; padding: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.cx-menu button { text-align: left; font-size: 13px; padding: 7px 10px; border: none; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); white-space: nowrap; }
.cx-menu button:hover { background: var(--page); }
.cx-menu .cx-menu-danger { color: var(--red); }
.cx-acct.aside .cx-dot { background: var(--line-strong); }
.cx-acct.aside .cx-who { color: var(--muted); }
.cx-acct .tm-ask { margin: 8px 0 0 18px; }
.cx-im { margin: 10px 0 0; }
.cn-libwrap .cn-sum { margin: 0 0 10px; }
.cn-libwrap .cn-notused { margin: 12px 0 8px; }
.cn-libwrap .cx-clist + .cx-clist { margin-top: 0; }
.cn-libwrap .cx-clist .cx-acct.aside { padding: 10px 16px; border-top: 1px solid var(--line); }
.cn-libwrap .cx-clist .cx-acct.aside:first-child { border-top: none; }
.cx-crow-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cx-add { padding: 0; border: none; background: none; box-shadow: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-add:hover { color: var(--ink); }
.cx-tree-find input { font-size: 13px; padding-top: 7px; padding-bottom: 7px; }
.cx-close { margin: 0 0 8px; }
/* What just happened (app.js noteView): a problem is a centered pop-up with
   an icon, a short title, a line under it and Try again / OK; anything else
   is a small pill at the bottom with a check that fades out. */
.note-pop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 17, 17, 0.22); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: note-fade 0.18s ease-out; }
.note-pop-card { width: min(360px, 100%); padding: 26px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); text-align: center; animation: note-rise 0.22s ease-out; }
.note-pop-ico { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--red-wash); color: var(--red); font: 800 21px var(--head); }
.note-pop-title { margin: 0 0 6px; font: 700 17px/1.35 var(--head); color: var(--ink); overflow-wrap: anywhere; }
.note-pop-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.note-pop-btns { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.note-pop-btns button { flex: 1; max-width: 150px; padding: 10px 14px; border-radius: 12px; font-weight: 600; box-shadow: none; }
.note-pop-btns .note-pop-ok { background: var(--ink); border-color: var(--ink); color: var(--card); }
.note-toast { position: fixed; left: 50%; bottom: 24px; z-index: 999; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; max-width: min(520px, calc(100% - 32px)); padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); animation: note-in 0.22s ease-out, note-out 0.4s ease-in 4.1s forwards; }
.note-toast-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E3F9EC; color: #0A7A45; font-size: 13px; font-weight: 700; }
@keyframes note-fade { from { opacity: 0; } }
@keyframes note-rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes note-out { to { opacity: 0; } }

/* This week's Nimbus as a hairline inside the chat bar (2026-10-23). */
.usage-note { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.usage-bar { width: 120px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.usage-bar i.hi { background: var(--yellow); }
.usage-bar i.out { background: var(--red); }
.usage-note.out { color: var(--red); }
.usage-note .linkish { background: none; border: none; box-shadow: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.pchat .usage-note { margin: 6px 0 2px; }
.note-pop-send { display: block; margin: 14px auto 0; padding: 4px 8px; border: none; background: none; box-shadow: none; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.note-pop-send:hover { color: var(--ink); }
.note-pop-send[disabled] { text-decoration: none; opacity: 0.7; }

/* The vault (vault.js): search every receipt, and one receipt's facts as
   they stood, marked against the profile now. */
.vt-search { width: 100%; margin: 4px 0 2px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--card); font: 15px var(--sans); color: var(--ink); }
.vt-found { margin: 12px 2px 0; }
.vt-more { width: auto; display: block; margin: 8px 0 0; padding: 6px 0; border: none; background: none; box-shadow: none; font: 600 14px var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; }
.vt-page { margin: 14px auto 0; }
.vt-back { width: auto; margin: 0 0 12px; padding: 6px 0; border: none; background: none; box-shadow: none; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.vt-card { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--card); cursor: default; }
.vt-title { font-size: 16px; }
.vt-when { margin: -8px 0 0 21px; font-size: 13px; color: var(--muted); }
.vt-why { padding: 0; margin: 0; }
.vt-link { margin: 0; font-size: 14px; }
.vt-link a { color: var(--ink); font-weight: 600; }
.vt-sec { display: grid; gap: 6px; }
.vt-asof { margin: 0 0 2px; font-size: 14px; color: var(--body); }
.vt-fact { display: grid; justify-items: start; gap: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFAF7; }
.vt-fact-t { color: var(--ink); font-size: 14px; }
.vt-tag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F0EEE8; color: var(--muted); }
.vt-tag.changed { background: #FFF1B8; color: #7A5A00; }
.vt-tag.gone, .vt-tag.broke { background: var(--red-wash); color: var(--red); }
.vt-now { font-size: 13px; color: var(--body); }
.vt-now b { color: var(--ink); }
.act-what mark { background: #FFF1B8; color: inherit; border-radius: 3px; padding: 0 1px; }
.vt-rc { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFAF7; font-size: 14px; }
.vt-rc-head { color: var(--body); }
.vt-rc-head b { color: var(--ink); }
.vt-rc-head .act-ok, .vt-rc-head .act-bad, .vt-inline { display: inline; font-weight: 600; }
.vt-rc-check { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.vt-rc-t { color: var(--ink); font-weight: 600; }
.vt-rc-cite { color: var(--body); }
.vt-rc-cite q { color: var(--ink); }
.vt-rc-cite small { color: var(--muted); font-size: 12px; }
.vt-rc-line { padding-top: 10px; border-top: 1px solid var(--line); color: var(--body); }
/* Long addresses and ids in cited facts (a LinkedIn URL, a share urn) wrap
   instead of widening the page past a phone's screen (2026-10-24). Grid
   items keep their content's width unless told otherwise. */
.vt-card, .vt-card > *, .vt-sec, .vt-sec > *, .vt-rc, .vt-rc > *, .vt-fact, .act-receipt, .act-receipt > *, .act-sec > * { min-width: 0; }
.vt-rc-cite, .vt-fact-t, .vt-now, .vt-asof, .act-said, .act-ok, .act-src-line, .act-why, .vt-title { overflow-wrap: anywhere; }
/* Scheduled through the owner's own connector (Datum change 37). */
.act-line.scheduled .act-dot { background: var(--blue); }
.vt-sent { margin: -6px 0 0 21px; font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.vt-sent.bad { color: var(--red); }
.act-peek.wrap { white-space: normal; overflow: visible; }

/* Tidy up (tidy.js): clutter Find out-of-date facts found, one card a kind. */
.td-sub { margin: -4px 0 10px; }
.td-card { display: grid; gap: 8px; }
.td-tag { justify-self: start; padding: 3px 9px; border-radius: 999px; background: #FFF1B8; color: #7A5A00; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; }
.td-title { color: var(--ink); font-size: 16px; }
.td-why { margin: 0; font-size: 14px; color: var(--body); }
.td-ex { display: grid; gap: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FBFAF7; font-size: 13px; min-width: 0; }
.td-line { color: var(--ink); overflow-wrap: anywhere; }
.td-line small { color: var(--muted); }
.td-see { justify-self: start; width: auto; padding: 2px 0; border: none; background: none; box-shadow: none; font: 600 13px var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; }
.td-note { margin: 0; color: var(--red); }
.td-card .actions button { white-space: nowrap; }
/* Tell Nimbus about one fact (chat.js tellBox) */
.pf-hfact-btns button.on { border: 1.5px solid var(--ink); background: var(--card); }
.tell { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tell-row { display: flex; gap: 6px; }
.tell-in { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font: 14px var(--sans); color: var(--ink); background: var(--card); }
.tell-in:focus { outline: none; border-color: var(--ink); }
.tell-row button { padding: 6px 14px; border-radius: 999px; font-size: 13px; box-shadow: none; }
.tell-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tell-chip, .tell-chip:hover { padding: 4px 10px; font-size: 12px; font-weight: 500; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: none; color: var(--body); }
.tell-log { max-height: none; padding: 0; gap: 8px; }
.tell-log .bubble { font-size: 14px; }
/* Job library (jobsview.js) */
/* Your work, In your profile: Your profile's job cards and skill rows, with what each does */
.yw-rows { display: flex; flex-direction: column; gap: 8px; }
.yw .pf-row, .yw .pf-row:hover { grid-template-columns: 22px 1fr auto; cursor: pointer; }
.yw .pf-row:hover { border-color: var(--line-strong); }
.yw .pf-row .pf-row-more { grid-column: 2 / -1; }
.yw-where { color: var(--muted); font-size: 13px; font-weight: 400; text-align: right; }
.yw-whats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.yw-what { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.yw-what-h { display: flex; align-items: center; gap: 10px; }
.yw-what-h b { font: 800 16px var(--head); letter-spacing: -0.01em; }
.yw-switch { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.yw-switch button { width: auto; padding: 6px 16px; border: none; border-radius: 999px; background: none; box-shadow: none; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.yw-switch button.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.yw-about { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jb { display: flex; flex-direction: column; gap: 14px; }
.jb-sub { margin: 0; color: var(--body); }
.jb-search { margin: 0; }
.jb .cx-chips { margin: -4px 0 0; }
.jb .cn-ai-label { margin: 4px 0 -4px; }
.jb-tile .cx-icon img { width: 26px; height: 26px; }
.jb-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jb-by { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.jb-by img { width: 14px; height: 14px; object-fit: contain; }
.jb-added { font-size: 13px; font-weight: 600; color: #137A43; margin-top: 4px; }
.jb-head { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.jb-head > .link-btn { align-self: flex-start; }
.jb-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.jb-step { display: flex; align-items: center; gap: 10px; padding: 12px var(--pad-tile); font-size: 14px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.jb-step:last-child { border-right: none; }
.jb-step i { font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-strong); }
.jb-step.on { color: var(--ink); background: var(--page); }
.jb-step.on i { background: var(--ink); border-color: var(--ink); color: var(--card); }
.jb-step.done { color: var(--ink); }
.jb-step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.jb-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: var(--pad-card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jb-card h2 { margin: 0; }
.jb-card p { margin: 0; }
.jb-opts { display: flex; flex-direction: column; gap: 6px; }
.jb-opt, .jb-opt:hover { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: none; font: 500 14px var(--sans); color: var(--ink); text-align: left; }
.jb-opt.on { border: 1.5px solid var(--ink); }
.jb-opt-r { margin-left: auto; color: var(--muted); }
.jb-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--body); }
.jb-select { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font: 15px var(--sans); color: var(--ink); }
.jb-parts { display: flex; flex-direction: column; gap: 10px; }
.jb-in { font-weight: 400; }
.jb-skill { background: var(--page); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.55; }
.jb-skill-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.jb-skill-h:first-child { margin-top: 0; }
mark.jb-yours { background: #E7F7EE; color: #0F5E33; border-radius: 4px; padding: 0 3px; }
mark.jb-default { background: var(--line); color: var(--body); }
.jb-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.jb-btns button { border-radius: 999px; }
.jb-err { color: #8A6100; background: #FFF6DB; border-radius: 10px; padding: 8px 10px; }
.jb-wait { padding: 18px 0; }
.jb-ok { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.jb-ok span { font-size: 20px; color: #137A43; }
.jb-try { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--page); border-radius: 12px; padding: 10px 14px; font: 15px var(--mono); }
/* Your profile's fixed frame (profile.js, 2026-10-24): Everywhere across the
   top, people and to-dos, the owner's spaces, then Archive across the bottom. */
/* The map already spaces its parts 12px apart; these only nudge. */
.pf-wide { margin: 0; }
.pf-wide.pf-everywhere > .pf-mapcard { border: 1.5px solid var(--ink); }
.pf-group { margin: 8px 0 -4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pf-pt-ico { flex: none; width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #E3F9EC; color: #0A7A45; font-size: 13px; font-weight: 700; }
.pf-pt-meta { font-size: 12px; color: var(--muted); }
.pf-pt-empty { margin: 6px 0 0; }
.pf-task-box { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--card); box-shadow: none; }
.pf-task-box:hover { border-color: var(--ink); background: #E3F9EC; }
.pf-due { color: var(--body); }
.pf-due.late { color: var(--red); font-weight: 600; }
/* Archive: its own card, closed to the header (profile.js archiveBar). */
.pf-archive { margin-top: 8px; }
.pf-archive .pf-mapcard { margin-bottom: 0; }
.pf-fold { position: relative; }
.pf-fold .pf-mapcard-top { padding-right: 120px; }
.pf-fold-go, .pf-fold-go:hover { position: absolute; top: 18px; right: 18px; z-index: 1; padding: 0; border: none; background: none; box-shadow: none; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pf-fold-go:hover { color: var(--ink); }
/* Contacts and Tasks icons: a second mark tucked behind the cloud, top right (profile.js markedCloud) */
.pf-ico > .cl { position: relative; z-index: 1; }
.pf-ico-check svg { width: 12px; height: 12px; display: block; }
/* Arrange sits by Your spaces at the top of the profile. */
.pf-group-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-group-row .pf-arrange-go { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Contacts and Tasks use the space cards' own parts (profile.js peopleAndTodos). */
.pf-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pf-people .pf-map-foot { margin-top: auto; }
@media (max-width: 760px) { .pf-people { grid-template-columns: minmax(0, 1fr); } }
.pf-pt .pf-mapsub .pf-mapsub-h .pf-space-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pt-link { padding: 0; border: none; background: none; box-shadow: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pf-pt-link:hover { text-decoration: underline; }
.pf-task-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pf-task-card { cursor: default; }
.pf-task-h { align-items: flex-start; }
.pf-task-h .pf-task-t { font: 800 18px/1.3 var(--head) !important; }
.pf-task-h, .pf-task-h .pf-task-t { min-width: 0; }
.pf-task-card, .pf-task-card:hover { padding: 10px 16px; gap: 0; }
.pf-task-card .pf-mapcard-top { gap: 0; }
.pf-task-card .pf-space-c { margin: 0 0 0 28px; }
.pf-task-card .pf-map-foot { margin: 0 0 0 28px; }
.pf-task-addcard { margin: 0 0 12px; }
.pf-pt-headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pf-pt-headrow > :first-child { flex: 1 1 auto; min-width: 0; }
.pf-pt-add { flex: none; margin-top: 4px; }
.pf-ico { position: relative; flex: none; display: inline-flex; width: 24px; height: 24px; align-items: flex-end; }
.pf-ico-mark { position: absolute; top: -5px; right: -6px; z-index: 0; display: inline-flex; line-height: 0; }
.pf-task .pf-mapsub-h { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.pf-task-t { font: 600 14px/1.35 var(--sans) !important; text-transform: none !important; overflow-wrap: anywhere; }
.pf-task-meta { margin: -4px 0 0 28px; }

/* Add a task: one line (profile.js peopleAndTodos). Not a .pf-mapsub, so it
   isn't stacked like a subspace row. */
.pf-task-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-task-in { flex: 1 1 200px; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font: 14px var(--sans); color: var(--ink); }
.pf-task-in:focus, .pf-task-due:focus { outline: none; border-color: var(--ink); }
.pf-task-add-row { display: inline-flex; align-items: center; gap: 8px; }
.pf-task-due { height: 38px; width: 140px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font: 13px var(--sans); color: var(--body); }
.pf-task-save { height: 38px; padding: 0 16px; border-radius: 10px; }
.pf-task-cancel { color: var(--muted); font-weight: 500; }
/* A receipt's rules (activity.js rulesSection, vault.js). */
.act-rule { display: block; font-size: 13px; color: var(--body); overflow-wrap: anywhere; }
.act-rule.bad { color: var(--red); }
.act-see { font-size: 13px; font-weight: 600; color: var(--ink); }
.vt-rc-part { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
/* Activity's two tabs: Recent and Search all (2026-10-24). */
.act-tabs { display: flex; margin: 4px 0 16px; border-bottom: 1.5px solid var(--line-strong); }
.act-tabs button { flex: 1; width: auto; padding: 10px 0; border: none; border-radius: 0; background: none; box-shadow: none; font: 600 15px var(--sans); color: var(--muted); cursor: pointer; }
.act-tabs button.on { color: var(--ink); border-bottom: 3px solid var(--ink); margin-bottom: -1.5px; }
.jb-app { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 0; }
.jb-opt .cx-tb { margin-right: 4px; }
.jb-note { background: var(--page); border-radius: 10px; padding: 10px 12px; }
.jb-optional { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.jb-optional .small { flex: 1 1 260px; color: var(--muted); }
.jb-tree { border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; }
/* Step 2 of a job: your parts inside the sentences (jobsview.js skill) */
.jb-card h2.jb-title { font: 700 22px/1.2 var(--head); letter-spacing: -0.01em; text-transform: none; color: var(--ink); margin: 0; }
.jb-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #FFF6DB; color: #6B4B00; border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.jb-warn button { margin-left: auto; padding: 4px 12px; font-size: 13px; border-radius: 999px; box-shadow: none; }
.jb-doc { display: flex; flex-direction: column; }
.jb-sec { padding: 10px 0; border-top: 1px solid var(--line); }
.jb-sec:first-child { border-top: none; padding-top: 2px; }
.jb-sec p { margin: 2px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink); }
.jb-same { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
/* A job is its skill and its rules, each under its own heading (2026-10-29) */
.jb-part { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.jb-rules { display: flex; flex-direction: column; gap: 6px; }
.jb-rule { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.jb-chip, .jb-chip:hover { display: inline; padding: 2px 8px; border-radius: 7px; border: 1px dashed transparent; background: #E7F7EE; color: #0F5E33; font: inherit; font-weight: 500; box-shadow: none; cursor: pointer; text-align: left; }
.jb-chip:hover { border-color: #3FA36B; }
.jb-chip.jb-blank { background: #FFF1CC; color: #6B4B00; border-color: #D9A400; }
.jb-chip.jb-fixed { cursor: default; border-color: transparent; }
.jb-edit { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.jb-edit-in { flex: 1 1 220px; font-weight: 400; }
.jb-edit button { padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.cc-detail { margin: -4px 0 8px; color: var(--muted); overflow-wrap: anywhere; }

/* @people: the picker over the chat box and a person's page (2026-10-26). */
.pm-list { position: fixed; z-index: 60; max-height: 260px; overflow-y: auto; background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12); }
.pm-list[hidden] { display: none; }
.pm-row, .pm-row:hover { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; text-align: left; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); box-shadow: none; cursor: pointer; font: 500 14px var(--body, inherit); }
.pm-row.on, .pm-row:hover { background: rgba(21, 112, 239, 0.1); }
.pm-row b { font-weight: 700; }
.pm-handle { color: var(--muted, #667); font-size: 13px; }
.pm-meta { color: var(--muted, #667); font-size: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-open { margin: 4px 0 8px; }
.pm-page { display: flex; flex-direction: column; gap: 10px; }
.pm-channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-kind { color: var(--muted, #667); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; }
.pm-place { gap: 6px; }
.pm-place-h, .pm-place-h:hover { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: transparent; padding: 0; box-shadow: none; color: var(--ink); cursor: pointer; text-align: left; }
.pm-fields { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.pm-fields dt { color: var(--muted, #667); font-size: 13px; }
.pm-fields dd { margin: 0; }
.pm-add, .pm-merge-go { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-add input { flex: 1 1 220px; }
.pm-merge { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pm-select { max-width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; }

/* Jobs in a space: cards and a page (2026-10-28). */
.jc-wrap { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.jc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.jc-card, .jc-card:hover { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; color: var(--ink); cursor: pointer; }
.jc-card:hover { border-color: var(--line-strong); }
.jc-top { display: flex; align-items: center; gap: 10px; }
.jc-top b { font: 800 16px var(--head); letter-spacing: -0.01em; }
.jc-sub { color: var(--muted, #667); font-size: 13px; }
.jc-status { font-size: 13px; font-weight: 600; color: #B54708; }
.jc-status.ok { color: #067647; }
.jc-needs, .jc-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.jc-waiting { color: #B54708; }
.jc-page { display: flex; flex-direction: column; gap: 10px; }
.jc-card.jc-off { opacity: 0.6; }
.jc-card.jc-off .jc-status, .jc-page-off .jc-status { color: var(--muted, #667); }
.jc-onoff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jc-onoff label { font-weight: 600; cursor: pointer; }
.jc-onoff .au-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.jc-onoff .au-switch:disabled { opacity: 0.6; cursor: default; }
.jc-opts { display: grid; gap: 8px; margin: 10px 0; }
.jc-refused { color: #B42318; margin: 0; }
.jc-note { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.jc-note-text { margin: 0; white-space: pre-wrap; }
.jc-note-box { width: 100%; min-height: 96px; margin: 0; }
.jc-note-bar { display: flex; align-items: center; gap: 12px; width: 100%; }
.jc-count { margin-right: auto; }

/* ---- Handoffs (2026-10-28): work one AI passes to another ---- */
.pill.you { background: #FFF4CC; color: #7A5A00; }
.ho-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ho-head .sub { flex: 1 1 320px; }
.ho-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.ho-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
button.ho-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; width: 100%;
  background: transparent; border: 1.5px solid transparent; border-radius: 14px; padding: 10px 12px; box-shadow: none; color: var(--body); }
button.ho-item:hover { background: var(--card); box-shadow: none; }
button.ho-item.on { background: var(--card); border-color: var(--line-strong); }
.ho-item-title { font-weight: 700; color: var(--ink); }
.ho-route { font-size: 13px; color: var(--muted); }
.ho-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ho-space { margin: 0; }
.ho-title { margin: 2px 0 0; font-size: 22px; }
.ho-meta { margin: 8px 0 12px; }
.ho-ask { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ho-ask p { margin: 0 0 4px; white-space: pre-line; }
.ho-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.ho-col { background: var(--page); border-radius: 14px; padding: 12px; }
.ho-col p { margin: 0 0 6px; }
.ho-step { display: flex; gap: 8px; align-items: baseline; }
.ho-tick { color: var(--muted); }
.ho-step.done .ho-tick { color: var(--green); }
.ho-ev { display: block; }
.ho-hist { margin-top: 14px; }
.ho-hist ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); }
.ho-hist li { margin: 0 0 6px; font-size: 14px; }
.ho-who { font-weight: 700; color: var(--ink); }
.ho-assign { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ho-assign input { flex: 1 1 200px; }
.ho-new label { display: block; margin: 10px 0 4px; }
.ho-new > input, .ho-new > textarea { width: 100%; }
.ho-tree { border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; }
@media (max-width: 760px) {
  .ho-grid, .ho-steps { grid-template-columns: minmax(0, 1fr); }
}
.ho-ais { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
button.ho-ai { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--card); color: var(--body);
  border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 8px 10px; box-shadow: none; }
button.ho-ai:hover { border-color: var(--ink); box-shadow: none; }
button.ho-ai.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ho-ai-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.ho-ai-text { display: flex; flex-direction: column; min-width: 0; }
.ho-ai-text b { color: var(--ink); font-size: 14px; }
.ho-ai-other { grid-column: 1 / -1; width: 100%; }
.ho-assign { flex-direction: column; align-items: stretch; }
.ho-assign .strong { margin: 0; }

/* Waiting for you: what an invite seeded, one group per person or room. */
.pf-invite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 18px; }
.pf-invite-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-invite-h b { font: 800 18px/1.3 var(--head); }
.pf-invite-all { margin-left: auto; padding: 6px 14px; font-size: 13px; border-radius: 999px; }
.pf-invite-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pf-invite-who { margin: 0; font-weight: 700; }
.pf-invite .pf-row-t { overflow-wrap: anywhere; }
.pf-invite-row { cursor: pointer; gap: 0; }
.pf-invite-row .pf-invite-h b { min-width: 0; overflow-wrap: anywhere; }

/* A piece of material, open in full under its row. */
.pf-mat-open { font-size: 13px; font-weight: 700; color: var(--muted); }
.pf-mat-full { display: grid; gap: 8px; margin: -2px 0 10px; padding: 14px 16px; border-radius: 14px; background: var(--card); }
.pf-mat-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; max-height: 60vh; overflow: auto; }

/* Start with your website: an empty profile's first screen. */
.cs-lead { margin: 0; font-size: 18px; font-weight: 700; }
.cs-row { display: flex; gap: 8px; width: 100%; max-width: 520px; flex-wrap: wrap; }
.cs-input { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; }
.cs-go { flex: none; }
.cs-step { margin: 0; font-size: 17px; font-weight: 600; }
.cs-fine { margin: 0; color: var(--muted); max-width: 520px; }

/* The trial page: no free Nimbus. Light like Conner's mock, whatever the
   app's theme. */
.pw { height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 18px calc(18px + env(safe-area-inset-bottom)); background: #F4F2ED; color: #111111; overflow: hidden; }
.pw-card { width: 100%; max-width: 440px; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px 22px; background: #FBFAF7; border: 1px solid #E6E3DC; border-radius: 22px; }
.pw-kick { margin: 0; font: 700 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #8B8984; }
.pw-h { margin: 0; font: 800 clamp(28px, 4.6vh, 36px)/1.02 var(--head); letter-spacing: -0.035em; color: #111111; }
.pw-h span { display: block; color: #A9A6A0; }
.pw-p { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.45; color: #3A3936; }
.pw-p b { color: #111111; font-weight: 700; }
.pw-quiet { color: #8B8984; font-size: 15px; }
.pw-crew { position: relative; width: 220px; height: 170px; margin: 14px 0; flex: none; }
.pw-c { position: absolute; }
.pw-c0 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pw-c1 { left: 97px; top: 0; }
.pw-c2 { left: 4px; top: 46px; }
.pw-c3 { right: 4px; top: 40px; }
.pw-c4 { left: 26px; top: 134px; }
.pw-c5 { right: 26px; top: 134px; }
.pw-go { width: 100%; max-width: 440px; flex: none; position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; border-radius: 999px; background: #111111; color: #FFFFFF; font: 700 18px var(--sans); text-decoration: none; }
.pw-arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; color: #111111; font-size: 16px; }
.pw-who { margin: 0; flex: none; font-size: 13px; color: #8B8984; text-align: center; overflow-wrap: anywhere; }
.pw-out, .pw-out:hover { border: none; background: none; box-shadow: none; padding: 0; font: inherit; color: #111111; text-decoration: underline; cursor: pointer; }
/* The claim page shows these only in some states. */
/* The trialer's page in the new look (paywall.js paywallView, 2026-11-08,
   docs/mockups/trial-start.png): the site's glows (no grain), a frosted card
   with the button inside, light or dark with the app. Only .pw-new: the
   /trial card, claim and onboarding pages keep theirs. */
.pw.pw-new { --pw-g: #EEF1F4; --pw-f: rgba(255, 255, 255, 0.62); --pw-i: #0F1115; --pw-s: #3B4049; --pw-l: #5E6570; --pw-m: #A3A9B3;
  --pw-pill: #0F1115; --pw-ptx: #fff; --pw-glow: 1;
  --pw-sh: 0 0 0 1px rgba(15, 17, 21, 0.05), 0 2px 4px rgba(15, 17, 21, 0.03), 0 14px 34px rgba(20, 32, 56, 0.08);
  position: relative; box-sizing: border-box; width: 100%; justify-content: center; gap: 0; background: var(--pw-g); color: var(--pw-i); isolation: isolate; overflow-y: auto; }
html.dark .pw.pw-new { --pw-g: #17181B; --pw-f: rgba(30, 32, 36, 0.72); --pw-i: #F4F5F7; --pw-s: #B3B8C1; --pw-l: #8A909A; --pw-m: #5E6570;
  --pw-pill: #F4F5F7; --pw-ptx: #0F1115; --pw-glow: 0.22; --pw-sh: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.35); }
.pw.pw-new::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--pw-glow); background:
  radial-gradient(42% 40% at 88% 62%, rgba(255, 165, 110, 0.80), rgba(255, 199, 154, 0.42) 45%, transparent 75%),
  radial-gradient(46% 42% at 12% 8%, rgba(141, 184, 255, 0.88), rgba(185, 211, 255, 0.46) 45%, transparent 75%),
  radial-gradient(36% 30% at 50% 100%, rgba(130, 218, 175, 0.60), rgba(155, 227, 191, 0.3) 45%, transparent 75%); }
.pw-new .pw-brand { position: absolute; top: 22px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px var(--tight, var(--head)); color: var(--pw-i); }
.pw-new .pw-brand-c { display: inline-flex; }
.pw-new .pw-card { flex: none; box-sizing: border-box; width: 100%; max-width: 400px; gap: 0; padding: 30px 30px 24px; background: var(--pw-f); border: 0; border-radius: 22px; box-shadow: var(--pw-sh);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.pw-new .pw-kick { font: 600 11px var(--sans); letter-spacing: 0.1em; color: var(--pw-l); margin-bottom: 10px; }
.pw-new .pw-h { font: 800 34px/1.04 var(--tight, var(--head)); letter-spacing: -0.035em; color: var(--pw-i); }
.pw-new .pw-h span { color: var(--pw-m); }
.pw-new .pw-p { margin-top: 12px; max-width: 300px; font-size: 15px; color: var(--pw-s); }
.pw-new .pw-p b { color: var(--pw-i); }
.pw-new .pw-crew { width: 200px; height: 150px; margin: 20px 0 14px; }
.pw-new .pw-c1 { left: 88px; } .pw-new .pw-c4 { top: 116px; } .pw-new .pw-c5 { top: 116px; }
.pw-new .pw-quiet { margin-top: 0; font-size: 14px; color: var(--pw-l); }
.pw-new .pw-go { margin-top: 20px; min-height: 50px; gap: 10px; background: var(--pw-pill); color: var(--pw-ptx); font: 600 16px var(--sans); border: 0; cursor: pointer; }
.pw-new .pw-arrow { width: 28px; height: 28px; font-size: 14px; background: var(--pw-ptx); color: var(--pw-pill); }
.pw-new .pw-stripe { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--pw-l); }
.pw-new .pw-who { max-width: 400px; margin-top: 16px; font-size: 12.5px; color: var(--pw-l); }
.pw-new .pw-out, .pw-new .pw-out:hover { color: var(--pw-i); }
@media (max-height: 700px) { .pw-new .pw-crew { transform: scale(0.8); margin: 4px 0 0; } .pw-new .pw-brand { top: 12px; } }
@media (max-width: 480px) { .pw-new .pw-card { padding: 24px 20px 20px; } .pw-new .pw-h { font-size: 30px; } }
.pw-go[hidden], .pw-who[hidden], .pw-p[hidden], .pw-kick[hidden], .pw-h[hidden], .pw-steps[hidden], .ob-pills[hidden] { display: none; }
/* A long invitee email in the paragraph or the button label wraps inside the
   card and the pill; it can't run past the edge of a phone screen. */
.pw-claim .pw-p, .pw-claim #primary-label { overflow-wrap: anywhere; }
.pw-claim #primary-label { min-width: 0; }
/* The claim page's three sign-in steps: one white box, a row each. */
.pw-steps { width: 100%; max-width: 330px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; flex: none; border: 1px solid #E6E3DC; border-radius: 16px; background: #FFFFFF; overflow: hidden; text-align: left; }
.pw-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.pw-steps li + li { border-top: 1px solid #EFECE6; }
.pw-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #111111; color: #FFFFFF; font: 700 13px var(--sans); display: flex; align-items: center; justify-content: center; }
.pw-step-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pw-step-t b { font: 700 15px var(--sans); color: #111111; }
.pw-step-t span { font-size: 13px; color: #8B8984; overflow-wrap: anywhere; }
.pw-step-t .pw-step-one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
@media (max-height: 700px) { .pw-steps li { padding: 8px 12px; } }
@media (max-height: 600px) { .pw-claim .pw-card { gap: 8px; padding: 14px 18px; } .pw-claim .pw-crew { transform: scale(0.5); margin: -42px 0; } }
/* Short phones: the picture shrinks so the whole page fits on one screen. */
@media (max-height: 700px) { .pw-crew { transform: scale(0.8); margin: -6px 0; } .pw-p { font-size: 15px; } }
@media (max-height: 600px) { .pw-crew { transform: scale(0.64); margin: -26px 0; } .pw { padding-top: 16px; gap: 12px; } }

/* The post-trial setup (onboard.js): the trial page's look, four steps. */
.ob .pw-card { overflow-y: auto; }
.ob-foot { width: 100%; max-width: 440px; flex: none; display: flex; gap: 10px; }
.ob-go { flex: 1.4; border: none; cursor: pointer; }
.ob-go:disabled { opacity: 0.5; }
.ob-out, .ob-out:hover { flex: 1; min-height: 60px; border-radius: 999px; background: #FFFFFF; color: #111111; border: 2px solid #111111; box-shadow: none; font: 700 17px var(--sans); cursor: pointer; }
.ob-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 340px; }
.ob-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1.5px solid #E2DED6; border-radius: 999px; background: #FFFFFF; font: 600 13px var(--sans); color: #111111; }
.ob-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #8B8984); border: 1px solid #CFCBC2; }
.ob-peek { width: 100%; max-width: 360px; height: 240px; overflow: hidden; border-radius: 18px; background: var(--page); pointer-events: none; flex: none; }
.ob-peek-in { width: 200%; transform: scale(0.5); transform-origin: 0 0; padding: 16px; }
.ob-ais { width: 100%; display: grid; gap: 8px; text-align: left; }
.ob-ai { border: 1.5px solid #E2DED6; border-radius: 16px; background: #FFFFFF; }
.ob-ai.on { border-color: #111111; }
.ob-ai-h, .ob-ai-h:hover { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; background: none; box-shadow: none; color: #111111; font: 700 15px var(--sans); text-align: left; cursor: pointer; }
.ob-ai-h b { flex: 1; }
.ob-ai-l { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--tone); color: #FFFFFF; font: 800 13px var(--sans); }
.ob-ai-mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #CFCBC2; color: #8B8984; font-size: 14px; }
.ob-ai-mark.on { background: #111111; border-color: #111111; color: #FFFFFF; }
.ob-steps { margin: 0; padding: 0 14px 12px 34px; display: grid; gap: 8px; font-size: 13px; color: #3A3936; }
.ob-steps li b { display: block; color: #111111; }
.ob-link { color: #111111; font-weight: 700; }
.ob-box { width: 100%; display: grid; gap: 6px; padding: 10px 12px; border: 1.5px dashed #CFCBC2; border-radius: 14px; text-align: left; font-size: 13px; color: #3A3936; }
.ob-box b { color: #111111; font-size: 13px; }
.ob-box p { margin: 0; line-height: 1.4; }
.ob-box code { font-size: 12px; overflow-wrap: anywhere; color: #3A3936; }
.ob-copy, .ob-copy:hover { justify-self: start; padding: 4px 12px; border-radius: 999px; border: 1.5px solid #111111; background: #FFFFFF; color: #111111; box-shadow: none; font: 700 12px var(--sans); cursor: pointer; }
.ob-site { border-style: solid; }
.ob-input { width: 100%; padding: 12px 14px; border: 2px solid #111111; border-radius: 12px; background: #FFFFFF; color: #111111; font: 16px var(--sans); }
.ob-gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; text-align: left; font-size: 14px; color: #3A3936; }
.ob-gets li::before { content: "✓ "; color: #12B76A; font-weight: 800; }
/* Your profile after a skip: the way back into setup. */
.ob-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); color: var(--ink); font-size: 14px; }
.ob-resume { flex: none; border-radius: 999px; background: var(--ink); color: var(--on-ink); border-color: var(--ink); font-weight: 700; }
.pw-dash { display: flex; gap: 6px; margin-bottom: 4px; flex: none; }
.pw-dash i { width: 22px; height: 4px; border-radius: 4px; background: #D8D4CB; }
.pw-dash i.on { background: #111111; }
.ob-box p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ob input.ob-input, .ob input.ob-input:focus { background: #FFFFFF !important; color: #111111 !important; border: 2px solid #111111 !important; }
.ob input.ob-input::placeholder { color: #A9A6A0; }
.ob-go { white-space: nowrap; font-size: 17px; }
@media (max-width: 380px) { .ob-go { font-size: 15px; padding-left: 16px; } .ob-out { font-size: 15px; } }

/* Connect fits on one phone screen: tight rows, one-line boxes. */
.ob-ais { gap: 6px; }
.ob-ai-h, .ob-ai-h:hover { padding: 7px 10px; font-size: 14px; }
.ob-ai-l { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.ob-ai-mark { width: 20px; height: 20px; font-size: 12px; }
.ob-line { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; }
.ob-line > div { display: grid; gap: 2px; min-width: 0; }
.ob-line code, .ob-line p { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; font-size: 12px; }
.ob-line .ob-copy { justify-self: end; }
@media (max-height: 700px) { .ob .pw-h { font-size: 26px; } .ob .pw-p { font-size: 14px; } .ob .pw-card { gap: 8px; padding: 14px 16px; } .ob-foot .pw-go, .ob-foot .ob-out { min-height: 52px; } }

.ob-note { font-weight: 500; color: #8B8984; }
/* The profile glance fills whatever room the card has. */
.ob-peek { flex: 1 1 auto; height: auto; min-height: 150px; max-height: none; }

.ob-line b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Phone width, scaled to fit (onboard.js fitPeek sets --peek). */
.ob-peek-in { width: 390px; transform: scale(var(--peek, 0.8)); transform-origin: 0 0; padding: 18px 16px; }
.ob-peek-in { position: relative; left: var(--peek-x, 0); }
/* The setup card centres its text; the profile inside it doesn't. */
.ob-peek-in { text-align: left; }
/* The Home website card's buttons read in dark mode too. */
.cs .dash-chip, .cs .dash-chip:hover { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
body.pw-body { margin: 0; background: #F4F2ED; }
.pw-stripe { margin-bottom: -8px; max-width: 360px; }
/* Laptops and tablets: the card sizes to what's in it, centered with its
   buttons, instead of stretching the full height (Conner, 2026-10-28). */
@media (min-width: 761px) {
  .pw { height: auto; min-height: 100vh; min-height: 100dvh; justify-content: center; overflow: visible; padding: 40px 24px; gap: 18px; }
  .pw-card { flex: none; max-width: 520px; padding: 44px 48px; gap: 14px; }
  .pw-go, .ob-foot { max-width: 520px; }
  .pw-h { font-size: 40px; }
  .pw-p { font-size: 17px; max-width: 380px; }
  .pw-crew { transform: scale(1.15); margin: 22px 0; }
  .ob .pw-card { max-height: calc(100vh - 180px); }
  .ob-peek { flex: none; height: 320px; }
}
/* Setup's white buttons stay white with black text in dark mode too. */
.ob .ob-out, .ob .ob-out:hover, .ob .ob-out:focus, .ob .ob-out:active { background: #FFFFFF !important; color: #111111 !important; border: 2px solid #111111 !important; }
.ob .ob-skip, .ob .ob-skip:hover { flex: none; border: none !important; background: none !important; box-shadow: none; padding: 2px 8px; font: 600 14px var(--sans); color: #111111 !important; text-decoration: underline; cursor: pointer; }
.ob-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; font-size: 13px; }

/* Back is a circle the height of the pills. */
.ob .ob-back { flex: 0 0 60px; width: 60px; min-height: 60px; height: 60px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
@media (max-height: 700px) { .ob .ob-back { flex-basis: 52px; width: 52px; min-height: 52px; height: 52px; } }
.ob-foot .ob-out:not(.ob-back) { flex: 0.8; }

/* The space tree demo, Conner's account only (treedemo.js, 2026-11-01). */
.td-toggle { margin-top: 22px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.td-toggle button { border: 1px solid var(--line-strong); background: var(--card); color: var(--body); font: 600 13px var(--sans); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.td-toggle button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.td-toggle .small { margin-left: 8px; }
.td-tag { margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: #111; padding: 1px 6px; border-radius: 6px; }
.td { margin-top: 14px; padding-bottom: 80px; }
.td-grid { display: grid; grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.4fr) minmax(220px, 0.9fr); gap: 16px; align-items: start; }
.td-tree, .td-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.td-tree { padding: 14px 10px; font-size: 14px; }
.td-group { display: flex; justify-content: space-between; padding: 10px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.td-group:not(:first-child) { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.td-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; cursor: pointer; min-height: 28px; color: var(--body); }
.td-row:hover { background: var(--page); }
.td-row.sel { background: var(--sky-wash, #EEF3FF); }
.td-parent { cursor: default; }
.td-parent:hover { background: none; }
.td-caret { width: 14px; flex: none; border: 0; background: none; padding: 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.td-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-n { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.td-lock { font-size: 11px; }
.td-folder { width: 13px; height: 10px; flex: none; border: 1.5px solid var(--muted); border-radius: 2px; display: inline-block; }
.td-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.td-spark { color: var(--purple); font-size: 12px; }
.td-slot { color: var(--purple); font-weight: 600; border: 1px dashed var(--purple); border-radius: 6px; padding: 0 6px; }
.td-empty { font-size: 12px; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-hint { font-size: 11px; color: var(--purple); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.td-call { font-size: 11px; font-weight: 600; color: #8A6100; background: #FFF6DB; border: 1px solid #F3D98A; border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.td-mid { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-crumbs { font-size: 13px; color: var(--muted); }
.td-crumbs b { color: var(--ink); }
.td-title { margin: 0; font-size: 26px; }
.td-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.td-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.td-card-h b { color: var(--ink); }
.td-fact { font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.td-inside { display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: none; padding: 7px 0; font: 14px var(--sans); color: var(--body); cursor: pointer; text-align: left; }
.td-suggest { background: var(--card); border: 1px solid var(--purple); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.td-suggest.done { border-color: var(--line); }
.td-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.td-btns button { font-size: 13px; padding: 5px 12px; }
.td-right { display: flex; flex-direction: column; gap: 12px; }
.td-callrow { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.td-callpath { border: 0; background: none; padding: 0; font: 700 14px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.td-reset { font-size: 12px; align-self: flex-start; }
.td-legend { display: flex; gap: 8px; align-items: center; }
.td-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; background: var(--night, #111); color: #fff; padding: 10px 14px 10px 16px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); font-size: 14px; max-width: calc(100vw - 32px); }
.td-bar .link-btn { color: #cfcfd4; white-space: nowrap; }
@media (max-width: 1000px) {
  .td-grid { grid-template-columns: 1fr; }
  .td-bar { flex-wrap: wrap; bottom: 12px; }
}
/* On a wide screen the profile keeps its width and everything in it, and
   the tree and Needs a call sit in the space on either side (Conner,
   2026-11-01). Each side stays on screen and scrolls inside itself. On a
   narrower screen all three stay inside the profile's width. */
@media (min-width: 1880px) {
  .stage main:has(.td) { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1124px) minmax(0, 1fr); column-gap: 24px; grid-template-rows: repeat(8, auto) 1fr; align-items: start; }
  .stage main:has(.td) > * { grid-column: 2; }
  .stage main:has(.td) > .td, .td-grid { display: contents; }
  /* The sides start level with the space you're in, below the profile's
     header, counts and switch (Conner, 2026-11-01). Those fill the first
     rows; the space and the sides share the last one. */
  .td-tree, .td-right { grid-row: 9; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; margin-top: 14px; }
  .td-tree { grid-column: 1; }
  .td-right { grid-column: 3; }
  .td-mid { grid-column: 2; grid-row: 9; margin-top: 14px; padding-bottom: 80px; min-height: calc(100dvh - 32px); }
}
/* The whole screen stays put on a computer; the profile scrolls inside its
   own area and each side scrolls on its own (Conner, 2026-11-01). */
@media (min-width: 1001px) {
  html:has(.td) { overflow: hidden; }
  .stage:has(.td) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  .stage:has(.td) > main { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .stage:has(.td) > footer { display: none; }
  .td-tree, .td-right { position: sticky; top: 16px; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 1880px) {
  .td-tree, .td-right { max-height: calc(100dvh - 32px); }
}
/* Tree demo: search across the top, counts on one line, health on the
   right (Conner, 2026-11-01). */
.td-head { display: flex; flex-direction: column; gap: 8px; }
.td-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 4px 14px; }
.td-search:focus-within { border-color: var(--ink); }
.td-search-i { color: var(--muted); font-size: 20px; line-height: 1; }
.td-search-in { flex: 1; border: 0; outline: 0; background: none; font: 16px var(--sans); color: var(--ink); padding: 10px 0; min-width: 0; }
.td-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-head-row .td-toggle { margin-top: 0; }
.td-head-row .td-toggle .small { display: none; }
.td-hit { color: var(--ink); font-weight: 700; }
.td-hitrow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; border-top: 1px solid var(--line); background: none; padding: 8px 0; font: 14px var(--sans); color: var(--body); text-align: left; cursor: pointer; }
.td-health .pf-health { margin: 0; }
.td-right .pf-waiting { margin: 0; }
/* The overview inside the tree demo: today's profile cards, without their
   own search (the demo's search is at the top). */
.td-overview .pf-map { margin-top: 4px; }
.td-overview .pf-map-head .pf-search { display: none; }
.td-crumb { font-size: 13px; color: var(--muted); padding: 0; }
.td-head .pf-knows { margin: 4px 0 0; }
/* Tree demo, the 15-point pass (2026-11-01). */
.td-group { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); align-items: center; }
.td-group-n { font-size: 11px; }
.td-arrange { font-size: 12px; font-weight: 600; }
.td-arrange.on { color: var(--purple); }
.td-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0 8px 6px; padding: 8px 10px; border-radius: 10px; background: var(--page); font-size: 12px; color: var(--muted); }
.td-tip-x { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; margin-left: auto; }
/* Hint chips only on hover or in Arrange. */
.td-hint { display: none; }
.td-row:hover .td-hint, .td-tree.arranging .td-hint { display: inline; }
.td-rename { display: none; border: 0; background: none; color: var(--muted); padding: 0 2px; cursor: pointer; font-size: 12px; }
.td-parent:hover .td-rename, .td-tree.arranging .td-rename { display: inline; }
.td-filled { cursor: pointer; }
.td-filled:hover { background: var(--page); }
.td-slot-empty .td-slot { opacity: 0.75; }
.td-more { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--purple); font: 600 12px var(--sans); padding-top: 4px; padding-bottom: 4px; cursor: pointer; }
.td-drop-only { display: none; }
.td-tree.dragging .td-drop-only { display: block; }
.td-tree.dragging .td-more { display: none; }
.td-drag { cursor: grab; }
.td-tree.arranging .td-drag .td-folder { border-style: dashed; }
.td-row.drop { background: var(--sky-wash, #EEF3FF); box-shadow: inset 0 0 0 1px var(--purple); }
/* Overview top: three numbers, the rest behind Details. */
.td-details { align-self: center; font-size: 13px; padding: 0 8px; }
.td-head .pf-health { margin: 0; }
.td-bizpick { font: 600 13px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }
/* Needs a call as one count. */
.td-calls-h { display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 0; font: 15px var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.td-calls-h span:last-child { margin-left: auto; color: var(--muted); }
.td-allset { display: flex; align-items: baseline; gap: 8px; color: var(--ink); }
.td-allset > span:first-child { color: var(--green); font-weight: 800; }
/* One title style: sentence case on the overview's cards, demo only. */
.td-overview .pf-mapcard-h b { display: inline-block; }
.td-overview .pf-mapcard-h b::first-letter { text-transform: uppercase; }
/* Tree demo, calm pass (2026-11-01). */
.td-biz-t { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.td-biz-t .td-n { margin-left: auto; }
.td-btn-s { font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; }
.td-btn-s.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.td-slotnote { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--body); background: var(--page); border-radius: 10px; padding: 8px 10px; margin: 2px 8px 6px; }
.td-healthlist { gap: 4px; }
.td-fix { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.td-emptylist { display: flex; flex-direction: column; }
.td-example { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--purple); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.td-example .td-btns { margin-left: auto; }
.td-countline { margin-right: auto; }
.td-head-row .td-bizpick { margin-right: auto; }
.td-spaces-btn, .td-calls-line, .td-drawer-h { display: none; }
.td-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 60; }
.td-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 75vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -8px 30px rgba(0,0,0,0.2); }
.td-sheet .td-btns button { min-height: 44px; padding: 0 16px; }
@media (min-width: 761px) { .td-backdrop, .td-sheet { display: none; } }

/* Phones: the tree is a drawer, the calls a line under the numbers, the
   cards one column with Tasks first. */
@media (max-width: 760px) {
  .td { padding-bottom: 24px; }
  .td-grid { display: block; }
  .td-right { display: none; }
  .td-tree { display: none; }
  .td.drawer-open .td-tree { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); z-index: 61; border-radius: 0 16px 16px 0; overflow-y: auto; padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); }
  .td-drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
  .td-tree .td-row { min-height: 44px; }
  .td-tree .td-caret { width: 28px; min-height: 36px; font-size: 13px; }
  .td-biz-t { flex-direction: column; align-items: flex-start; gap: 0; }
  .td-biz-t .td-n { margin-left: 0; }
  .td-tip { font-size: 11px; padding: 6px 8px; }
  .td-head-row { flex-wrap: nowrap; gap: 6px; }
  .td-head-row .td-toggle { margin-left: auto; }
  .td-head-row .td-toggle button { padding: 6px 10px; }
  .td-head-row .td-tag { display: none; }
  .td-spaces-btn { display: inline-flex; align-items: center; white-space: nowrap; font: 600 13px var(--sans); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
  .td-bizpick { max-width: 34vw; padding: 6px 8px; }
  .td-countline { display: none; }
  .td-details { font-size: 12px; padding: 0 2px; }
  .td-calls-line { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 44px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 14px; font: 14px var(--sans); color: var(--ink); text-align: left; }
  .td-calls-line span:last-child { margin-left: auto; color: var(--muted); }
  .td-calls-line span:nth-child(2) { color: var(--muted); font-size: 12px; }
  .td-example { font-size: 13px; }
  .td-example .td-btn-s { min-height: 44px; padding: 0 14px; }
  .td-overview .pf-map-head { display: none; }
  .td-overview .pf-map { display: flex; flex-direction: column; }
  .td-overview .pf-group:not(.pf-group-row) { order: 1; }
  .td-overview .pf-people { order: 2; display: flex; flex-direction: column; }
  .td-overview .pf-pt-tasks { order: -1; }
  .td-overview .pf-everywhere { order: 3; }
  .td-overview .pf-group-row { order: 4; }
  .td-overview .pf-cols { order: 5; }
  .td-overview .pf-archive { order: 6; }
}
@media (max-width: 760px) {
  .td-head-row .td-toggle { flex-wrap: nowrap; gap: 2px; }
  .td-spaces-btn { min-width: 44px; min-height: 36px; justify-content: center; font-size: 16px; }
}
/* Tree demo: the colored row of counts (2026-11-01). */
.td-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.td-kpis .pf-k { padding: 12px; column-gap: 8px; }
.td-new { animation: td-new 2.4s ease-out 1; box-shadow: 0 0 0 2px var(--purple); }
@keyframes td-new { 0% { transform: scale(0.94); box-shadow: 0 0 0 6px var(--purple); } 30% { transform: scale(1.03); } 100% { transform: none; box-shadow: 0 0 0 0 transparent; } }
.td-healthcard { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: left; font: 14px var(--sans); color: var(--ink); }
.td-healthcard.on { border-color: var(--ink); }
.td-healthcard > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.td-healthcard > span:last-child { color: var(--muted); }
.td-health-pct { font: 800 22px var(--head); color: #137A43; background: #E7F7EE; border-radius: 10px; padding: 4px 10px; }
.td-legend-go { align-self: flex-start; font-size: 12px; }
.td-overview:not(.legend) .pf-mapkey { display: none; }
@media (max-width: 760px) {
  .td-kpis { grid-template-columns: repeat(var(--td-cols, 5), minmax(0, 1fr)); gap: 5px; }
  .td-kpis .pf-k, .td-kpis .pf-k:hover { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 2px; border-radius: 14px; gap: 2px; min-width: 0; }
  .td-kpis .pf-k .cl { --cl: 18px !important; }
  .td-kpis .pf-k b { font-size: 17px; }
  .td-kpis .pf-k span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .td-healthcard { padding: 8px 12px; }
  .td-health-pct { font-size: 18px; }
}


/* Tree demo: Tasks and Contacts, condensed (2026-11-01). */
.td-overview .pf-pt { gap: 8px; }
.td-overview .pf-pt-tasks .pf-task, .td-overview .pf-pt-tasks .pf-task:hover { padding-top: 8px; gap: 2px; }
.td-overview .pf-pt-tasks .pf-mapsub-h { flex-wrap: nowrap; align-items: center; min-width: 0; }
.td-overview .pf-task-t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.td-overview .pf-task-meta { font-size: 12px; padding-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.td-chips .pf-mapsub, .td-chips .pf-mapsub:hover { width: auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.td-chips .pf-mapsub-h b { font: 600 13px var(--sans); }
.td-chips .pf-mapsub-h .pf-space-c { display: none; }
/* Tree demo: parent tabs (2026-11-01). */
.td-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.td-tabs::-webkit-scrollbar { display: none; }
.td-tab { flex: none; white-space: nowrap; font: 600 13px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; box-shadow: none; cursor: pointer; }
.td-tab.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (max-width: 760px) {
  .td-tabs { margin: 0 -16px; padding: 0 16px 2px; }
}
/* Tree demo, round 4 (2026-11-01): one system. FactRow, ContextTag,
   StatCard, GroupHeader and three buttons; quiet type, content first. */
.td { --c-fact: #1570EF; --c-ok: #E8820C; --c-week: #7A5AF8; --c-rule: #FF5C00; --c-material: #FF2E93; --c-source: #0FB5A6; --c-contact: #12B76A; --c-task: #EAB308; }
.td-mid { font-family: var(--sans); font-size: 14.5px; }
.td-title { font: 700 23px/1.25 var(--sans); color: var(--ink); margin: 0; }
.td-desc { margin: -4px 0 0; color: var(--muted); font-size: 14px; max-width: 75ch; }
.td-sec { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.td-sec-row { display: flex; align-items: baseline; gap: 8px; }
.td-sec-h { margin: 0; font: 600 16px var(--sans); color: var(--ink); }
.td-list { display: flex; flex-direction: column; }
.td-showall { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 6px 0; }
/* A: FactRow */
.td-fr { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.td-list > .td-fr:first-child, .td-list > .td-dups:first-child .td-fr:first-child { border-top: 0; }
.td-fr-dot { width: 8px; height: 8px; border-radius: 50%; margin: 7px 0 0 3px; background: var(--c-fact); }
.td-fr-dot.k-rule { background: var(--c-rule); } .td-fr-dot.k-material { background: var(--c-material); } .td-fr-dot.k-task { background: var(--c-task); border-radius: 2px; }
.td-fr-dot.ring { background: none; box-shadow: 0 0 0 2px var(--c-ok); }
.td-fr-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 75ch; }
.td-fr-t { font: 600 14.5px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-fr-v { all: unset; cursor: pointer; color: var(--body); font: 14.5px/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.td-fr-v.solo { color: var(--ink); font-weight: 500; }
.td-fr-v.open { display: block; -webkit-line-clamp: unset; }
.td-fr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.td-fr-meta:empty { display: none; }
.td-fr-where { font-size: 12px; color: var(--muted); }
.td-similar { display: inline-flex; align-items: center; gap: 8px; }
.td-similar .link-btn { font-size: 12px; font-weight: 600; color: var(--ink); }
.td-dups { padding-left: 24px; }
.td-fr-in { animation: td-fr-in 200ms ease-out both; }
@keyframes td-fr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* B: ContextTag */
.td-ctag { --t: var(--muted); display: inline-flex; align-items: center; font: 600 11.5px/1 var(--sans); padding: 4px 8px; border-radius: 999px; color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); border: 0; box-shadow: none; white-space: nowrap; }
button.td-ctag { cursor: pointer; }
.td-ctag.on { color: #fff; background: var(--t); }
.t-ok { --t: var(--c-ok); } .t-week { --t: var(--c-week); } .t-website { --t: var(--c-fact); } .t-email { --t: var(--c-contact); } .t-calendar { --t: var(--c-material); }
/* C: StatCard */
.td-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.td-stat { --t: var(--c-fact); display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 0; box-shadow: none; background: color-mix(in srgb, var(--t) 10%, var(--card)); color: var(--ink); font: 13px var(--sans); cursor: pointer; }
.td-stat b { font: 700 17px var(--sans); color: var(--t); }
.td-stat:hover { background: color-mix(in srgb, var(--t) 18%, var(--card)); }
.c-ok { --t: var(--c-ok); } .c-week { --t: var(--c-week); } .c-rule { --t: var(--c-rule); } .c-material { --t: var(--c-material); }
/* D: GroupHeader */
.td-group-b { border-top: 1px solid var(--line); }
.td-group-b:first-child { border-top: 0; }
.td-gh { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; min-height: 44px; }
.td-gh b { font: 600 15px var(--sans); color: var(--ink); }
.td-gh-n { color: var(--muted); font-size: 13px; }
.td-gh-c { margin-left: auto; color: var(--muted); transition: transform 150ms; }
.td-gh.open .td-gh-c { transform: rotate(90deg); }
.td-group-b .td-list { padding: 0 0 8px 0; }
.td-group-foot { display: flex; justify-content: space-between; padding-top: 4px; }
.td-group-foot .link-btn { font-size: 13px; font-weight: 600; color: var(--ink); }
/* E: Buttons */
.td-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 13.5px var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); box-shadow: none; cursor: pointer; white-space: nowrap; }
.td-b.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.td-b.ai { background: var(--purple); color: #fff; border-color: var(--purple); }
.td-b.sm { padding: 3px 10px; font-size: 12px; }
.td-btns .td-b { margin: 0; }
/* Space page controls */
.td-fcontrols { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.td-frow { display: flex; gap: 8px; }
.td-fsearch { flex: 1; min-width: 0; font: 14px var(--sans); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.td-sort { font: 600 13px var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.td-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.td-flat-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.td-flat-h b { font: 600 16px var(--sans); color: var(--ink); }
.td-more-b { align-self: center; margin-top: 8px; }
.td-space .td-crumbs { font-size: 12.5px; color: var(--muted); }
/* Home */
.td-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.td-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; background: var(--card); border-radius: 14px; border: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.td-tile:hover { border-color: var(--line-strong); }
.td-tile-t { font: 600 15px var(--sans); color: var(--ink); }
.td-tile-n { font-size: 13px; color: var(--muted); }
.td-person { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.td-list > .td-person:first-child { border-top: 0; }
.td-person b { font: 600 14.5px var(--sans); color: var(--ink); }
.td-tick b { color: var(--c-fact); transition: color 600ms; }
/* The setup card (demo) */
.td-setup { position: fixed; right: 24px; bottom: 96px; z-index: 60; width: 360px; max-height: min(70vh, 560px); overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); }
.td-setup-h { display: flex; justify-content: space-between; align-items: center; }
.td-setup-h .link-btn { font-size: 12.5px; color: var(--muted); }
.td-setup-n, .td-setup-pill { font: 600 12px var(--sans); color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); border-radius: 999px; padding: 4px 10px; }
.td-setup-pill { position: fixed; right: 24px; bottom: 96px; z-index: 60; border: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); background: var(--card); padding: 10px 14px; cursor: pointer; }
.td-setup-t { font: 600 16px var(--sans); color: var(--ink); }
.td-setup p.small { margin: 0; }
.td-setup .td-btns { justify-content: flex-end; }
@media (max-width: 760px) {
  .td-stats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .td-stats::-webkit-scrollbar { display: none; }
  .td-stat { flex: none; }
  .td-title { font-size: 22px; }
  .td-tab, .td-b, .td-stat, .td-sort, .td-fsearch, button.td-ctag, .td-setup-pill { min-height: 44px; }
  .td-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-setup { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 62vh; }
  .td-setup-pill { left: 12px; right: auto; bottom: 16px; }
}
/* Tree demo, on brand (2026-11-01): Nimbus's display font on titles, its
   clouds on counts and headings, sections in its white rounded cards. */
.td-title { font: 800 26px/1.15 var(--head); letter-spacing: -0.01em; }
.td-sec-h, .td-gh b, .td-flat-h b, .td-setup-t, .td-tile-t { font-family: var(--head); font-weight: 800; letter-spacing: -0.01em; }
.td-sec-h { font-size: 18px; }
.td-gh b { font-size: 16px; }
.td-sec-row { align-items: center; }
.td-card-s { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; gap: 4px; }
.td-card-s > .td-group-b:first-child .td-gh { padding-top: 4px; }
.td-stat { align-items: center; }
.td-stat .cl { flex: none; }
.td-tile { border-radius: 18px; }
@media (max-width: 760px) { .td-title { font-size: 24px; } }
/* Tree demo, round 5 (2026-11-01): calm and readable. Two columns (the
   calls moved into Needs you), fact rows that read like sentences with a
   chevron for Details, one slim banner, client cards, and the setup card in
   the page instead of over it. */
.td-grid { grid-template-columns: minmax(260px, 0.75fr) minmax(0, 2fr); }
@media (max-width: 1000px) { .td-grid { grid-template-columns: 1fr; } }
.td-fr-head { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 10px; width: 100%; cursor: pointer; }
.td-fr-head.plain { cursor: default; }
.td-fr-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.td-fr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.td-fr-t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.td-fr-s { color: var(--body); font: 14.5px/1.45 var(--sans); overflow-wrap: anywhere; }
.td-fr-c { flex: none; color: var(--muted); font-size: 18px; line-height: 1; padding-top: 1px; transition: transform 150ms; }
.td-fr.open .td-fr-c { transform: rotate(90deg); }
.td-fr-head:hover .td-fr-c { color: var(--ink); }
.td-fr-det { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--page); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--body); }
.td-fr-det p { margin: 0; line-height: 1.45; }
.td-det-l { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; }
.td-det-l > span { color: var(--muted); }
.td-det-l > div { overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.td-det-l a { color: var(--ink); }
.td-row-acts { display: inline-flex; align-items: center; gap: 10px; }
.td-row-acts .link-btn { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.td-banner { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: color-mix(in srgb, var(--purple) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent); font-size: 14px; color: var(--ink); }
.td-banner-t { flex: 1; min-width: 0; }
.td-banner .td-b { flex: none; }
.td-banner-x { flex: none; font-size: 13px; color: var(--muted); padding: 0 6px; }
.td-setup { position: static; width: auto; max-height: none; box-shadow: none; border-radius: 22px; z-index: auto; }
.td-setup-pill { position: static; box-shadow: none; border: 0; padding: 6px 12px; background: color-mix(in srgb, var(--purple) 12%, transparent); margin-right: auto; }
.td-head-row .td-spaces-btn + .td-setup-pill { margin-left: 0; }
.td-ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.td-ccard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; min-height: 44px; }
.td-ccard:hover { border-color: var(--line-strong); }
.td-ccard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.td-ccard-t { font: 800 16px/1.2 var(--head); letter-spacing: -0.01em; color: var(--ink); }
.td-ccard-n { font-size: 12.5px; color: var(--muted); }
.td-space .td-frow { margin-top: 2px; }
.td-flat-h + .td-card-s { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) {
  .td-fr-head { min-height: 44px; }
  .td-banner { flex-wrap: wrap; padding: 10px 12px; }
  .td-banner-t { flex-basis: 100%; }
  .td-banner-x, .td-row-acts .link-btn, .td-showall, .td-group-foot .link-btn, .td-flat-h .link-btn, .td-crumb, .td-fr-where, .td-legend-go { min-height: 44px; display: inline-flex; align-items: center; }
  .td-row-acts .td-b { min-height: 44px; }
  .td-ccards { grid-template-columns: minmax(0, 1fr); }
  .td-ccard { min-height: 64px; }
  .td-det-l { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .td-setup-pill { min-height: 44px; }
}
/* One helper at a time: the chat's tip bubble stays out of the tree demo. */
.stage:has(.td) .pchat-tip { display: none; }
@media (max-width: 760px) {
  .td-spaces-btn, .td-head-row .td-toggle button, .td-setup-h .link-btn { min-height: 44px; }
  .td-search-in { min-height: 44px; padding: 0; }
}
@media (max-width: 760px) { .td-fr-head.plain { min-height: 0; } }
/* A one-line fact still gets a 44px tap area, without a gap under it. */
@media (max-width: 760px) {
  .td-fr-head:not(.plain) { min-height: 0; padding: 12px 0; margin: -12px 0; }
  .td-fr-meta { position: relative; }
}
.td-frow .td-sort { flex: none; width: auto; max-width: 42%; }
@media (max-width: 760px) { .td-banner > .td-spark { display: none; } }
/* Tree demo, round 6: Profile health as one pill in the count row. */
.td-health-k { cursor: default; background: #E7F7EE; }
.td-health-k b { color: #137A43; }
.td-health-k:hover { background: #E7F7EE; }
/* Tree demo, round 7 (2026-11-01): one menu on a phone, four counts, and
   Profile health as a plain line on a computer. */
.td-mstats, .td-mmore, .td-phone-only, .td-drawer-tools { display: none; }
.td-statwrap { display: flex; flex-direction: column; gap: 6px; }
.td-health-line { margin: 0; color: var(--muted); }
.td-need-g + .td-need-g { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.td-need-l { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.td-need-l .td-gh-n { font-size: 11px; letter-spacing: 0; }
@media (max-width: 760px) {
  .td-head-row .td-toggle { display: none; }
  .td-head-row:not(:has(.td-setup-pill)) { display: none; }
  .td-statwrap > .pf-knows, .td-health-line { display: none; }
  .td-statwrap.more > .pf-knows { display: grid; }
  .td-mstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .td-mtile, .td-mtile:hover { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; min-height: 64px; border-radius: 14px; text-align: center; min-width: 0; }
  .td-mtile b { font-size: 18px; }
  .td-mtile span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .td-mmore { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink); }
  .td-phone-only { display: flex; }
  .td-drawer-tools { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .td-drawer-tools .td-toggle { margin-top: 0; }
  .td-drawer-tools .td-toggle button { min-height: 44px; }
  .td-drawer-tools .td-toggle .small { display: none; }
}
/* Tree demo, round 8: on a phone, a slim tab on the left edge opens the
   space tree; the breadcrumb does too. The header menu is the app's menu,
   with the view switch in it. */
.td-sidetab, .td-crumb-open { display: none; }
.rail > .td-toggle { margin: 4px 12px 8px; }
.rail > .td-toggle .small { display: none; }
.rail > .td-toggle button { min-height: 44px; }
@media (max-width: 760px) {
  .td-sidetab { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 62;
    width: 24px; height: 56px; padding: 0; border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; background: var(--card); color: var(--ink);
    box-shadow: none; font: 600 18px/1 var(--sans); cursor: pointer; transition: transform 200ms ease, left 200ms ease; }
  .td.drawer-open .td-sidetab { left: min(86vw, 360px); }
  html.td-tab-away .td-sidetab[aria-expanded="false"] { transform: translate(-100%, -50%); }
  .td-mid { margin-left: 8px; }
  .td-crumbs { display: flex; align-items: center; flex-wrap: wrap; min-height: 44px; cursor: pointer; }
  .td-crumb-open { display: inline; margin-left: 6px; color: var(--muted); font-size: 12px; }
  .td.drawer-open .td-tree { transition: none; }
}
@media (max-width: 760px) { .td-crumbs { gap: 0 5px; } }
.td-setup-pill { z-index: auto; }
.frame:has(.rail.drawer) .td-sidetab { display: none; }
.rail > .td-toggle { flex-wrap: nowrap; gap: 4px; }
.rail > .td-toggle button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); padding: 6px 12px; white-space: nowrap; }
.rail > .td-toggle button.on { background: #fff; color: var(--ink); border-color: #fff; }
.rail > .td-toggle .td-tag { display: none; }
/* Tree demo: the arrow that opens a fact's Details is larger, in its own
   round target, and turns down when open (2026-11-01). */
.td-fr-c { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: -6px -6px -6px 0; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; transition: transform 150ms, background 150ms; }
.td-fr-head:hover .td-fr-c { background: var(--page); border-color: var(--line-strong); color: var(--ink); }
.td-fr.open .td-fr-c { transform: rotate(90deg); background: var(--page); }
@media (max-width: 760px) { .td-fr-c { width: 44px; height: 44px; margin: -10px -8px -10px 0; font-size: 24px; } }
/* Round 9: the summary sits under the title, two lines at most; a fact with
   no title yet says so in a small muted tag. */
.td-fr-s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-fr-s.solo { color: var(--ink); }
.td-soon { font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 2px 8px; }
/* Tree demo, round 10: the space tree on brand (Conner, 2026-11-01).
   Bigger text, one row style, an arrow that only opens and closes, and
   Open as its own button. Spaces inside a space hang off a thin line. */
.td-tree { font-size: 15px; padding: 10px 8px 14px; }
.td-tree-h { display: flex; align-items: center; gap: 8px; padding: 4px 8px 6px; }
.td-tree-h b { font: 700 18px var(--head); color: var(--ink); }
.td-tree-x { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 400 28px/1 var(--sans); cursor: pointer; }
.td-tree-x:hover { background: var(--page); }
.td-tree .td-group { font: 700 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 6px; margin-top: 6px; }
.td-tree .td-tree-h + .td-group { border-top: 0; margin-top: 0; padding-top: 8px; }
.td-tree .td-arrange { text-transform: none; letter-spacing: 0; font-size: 13px; }
.td-tree .td-row { position: relative; gap: 8px; min-height: 38px; padding: 3px 8px 3px 2px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.td-tree .td-row:hover { background: var(--page); }
.td-tree .td-row.sel { background: var(--sky-wash); font-weight: 600; }
.td-tree .td-row.sel::before { content: ''; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--sky); }
.td-tree .td-row:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.td-chev { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--body); font: 400 20px/1 var(--sans); transition: transform 150ms ease, background 150ms ease; }
.td-chev.none { visibility: hidden; width: 12px; }
.td-chev.open { transform: rotate(90deg); }
.td-row.td-has:hover .td-chev { background: var(--line); }
.td-tree .td-name { flex: 1; min-width: 0; }
.td-tree .td-n { font-size: 13px; }
.td-tree .cl { flex: none; }
.td-tree .td-spark { flex: none; width: 18px; text-align: center; font-size: 13px; }
.td-open { display: none; flex: none; align-items: center; font: 600 13px var(--sans); color: var(--sky); background: var(--card); border: 1px solid var(--sky-soft); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.td-open:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.td-row.td-has:hover .td-open, .td-row.td-has.open .td-open, .td-row.td-has.sel .td-open { display: inline-flex; }
.td-row.td-has:hover .td-n, .td-row.td-has.open .td-n, .td-row.td-has.sel .td-n { display: none; }
.td-kids { margin-left: 15px; padding-left: 6px; border-left: 1px solid var(--line); }
.td-tree .td-slot-empty, .td-tree .td-slot-empty .td-name { color: var(--muted); }
.td-tree .td-more { font-size: 13px; padding: 8px 10px; border-radius: 10px; }
.td-tree .td-more:hover { background: var(--page); }
.td-tree .td-slotnote { margin: 2px 4px 6px 30px; font-size: 13px; }
.td-tree .td-call { font-size: 12px; }
@media (max-width: 760px) {
  .td-tree { font-size: 16px; }
  .td-tree-x { display: inline-flex; align-items: center; justify-content: center; }
  .td-drawer-h { display: none; }
  .td-tree .td-row { min-height: 48px; }
  .td-chev { width: 36px; height: 36px; font-size: 22px; }
  .td-chev.none { width: 14px; }
  .td-open { padding: 8px 14px; font-size: 14px; }
  .td-tree .td-more { min-height: 44px; }
  .td-sidetab { width: 30px; height: 60px; color: var(--sky); font-size: 22px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08); }
}
/* Tree demo, round 11: Contacts as a page, one card per person. */
.td-pcard-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.td-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sky-wash); color: var(--sky); font: 700 13px var(--sans); }
.td-pcard .td-ccard-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-pcard-s { font-size: 13.5px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-contacts .td-flat-h { margin-bottom: 8px; }
/* Round 11: every space you can open shows the same Open button: on hover,
   on the space you're in and on an opened parent; always on a phone. */
.td-row:hover .td-open, .td-row.open .td-open, .td-row.sel .td-open { display: inline-flex; }
.td-row:hover .td-n, .td-row.open .td-n, .td-row.sel .td-n { display: none; }
.td-tree .td-row.td-slot-empty:hover .td-n { display: inline; }
@media (max-width: 760px) {
  .td-tree .td-open { display: inline-flex; padding: 6px 12px; font-size: 13px; }
  .td-tree .td-row .td-n { display: inline; }
}
/* Tree demo, round 12 (Conner, 2026-11-01). */
/* Fact rows: the whole row opens Details; a small arrow sits right after
   the text instead of a round button on the far right. */
.td-fr.tap { cursor: pointer; }
.td-fr-head .td-fr-txt { flex: 0 1 auto; }
.td-fr-c, .td-fr-head:hover .td-fr-c { width: auto; height: auto; margin: 0; padding: 1px 0 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 18px; }
.td-fr.tap:hover .td-fr-c { color: var(--ink); }
.td-fr.open .td-fr-c { background: none; }
@media (max-width: 760px) { .td-fr-c { width: auto; height: auto; margin: 0; font-size: 20px; } }
.td-det-more { font-size: 13px; font-weight: 600; color: var(--ink); align-self: flex-start; min-height: 40px; display: inline-flex; align-items: center; }
.td-topic { display: flex; align-items: baseline; gap: 6px; padding: 12px 0 2px; font-size: 13px; color: var(--muted); }
.td-topic b { font: 700 12px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--body); }
/* Space page: the title line carries the AI's suggestion as a chip. */
.td-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.td-sug { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--purple) 10%, var(--card)); border-radius: 999px; padding: 3px 4px 3px 10px; }
.td-sug .td-spark { color: var(--purple); }
.td-sug .td-b.sm { min-height: 0; }
.td-sug-x { min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); }
.td .c-fact { --t: var(--c-fact); } .td .c-contact { --t: var(--c-contact); } .td .c-source { --t: var(--c-source); } .td .c-nimbus { --t: #8B8984; }
/* Tree: the name opens, the arrow only opens and closes. A row with no
   arrow keeps its room so the icons line up. */
.td-tree .td-chev { border: 0; background: none; padding: 0; cursor: pointer; width: 32px; height: 32px; }
.td-tree .td-chev:hover { background: var(--line); }
.td-tree .td-chev.none, .td-tree .td-chev.none:hover { width: 32px; background: none; cursor: inherit; }
.td-tree .td-chev:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.td-tree .td-row:hover .td-n, .td-tree .td-row.open .td-n, .td-tree .td-row.sel .td-n { display: inline; }
.td-kids { margin-left: 15px; }
/* Text links get a 40px target. */
.td-setup-h .link-btn, .td-showall, .td-group-foot .link-btn, .td-flat-h .link-btn, .td-mmore, .td-legend-go, .td-banner-x, .td-row-acts .link-btn, .td-fr-where, .td-arrange, .td-reset { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .td-tree .td-chev, .td-tree .td-chev.none { width: 40px; height: 40px; }
  /* Count chips wrap instead of running off the edge. */
  .td-stats { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .td-stat { min-height: 40px; padding: 6px 10px; }
  .td-sug { font-size: 13px; }
  /* The side tab: an arrow, lower down, sliding away while you scroll. */
  .td-sidetab { width: 40px; height: 56px; top: auto; bottom: 30vh; transform: none; color: var(--ink); font: 600 24px/1 var(--sans); }
  html.td-tab-away .td-sidetab[aria-expanded="false"] { transform: translateX(-100%); }
  /* Room for the Ask Nimbus button under the last rows; it slides away
     while you scroll down. */
  .td { padding-bottom: 96px; }
  html:has(.td) .pchat-fab-wrap { transition: transform 200ms ease, opacity 200ms ease; }
  html.td-tab-away:has(.td) .pchat-fab-wrap { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
/* The profile's header lines up with Connections, Work and Activity. */
.td { margin-top: 0; }
.td-pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.td-pagehead .page-title { margin: 0 0 4px; }
.td-pagesub { margin: 0; color: var(--body); font-size: 15px; }
.td-pagehead .td-toggle { margin-top: 6px; flex-wrap: nowrap; }
.td-pagehead .td-toggle .small { display: none; }
@media (min-width: 1880px) { .td-pagehead { grid-column: 1 / -1; } }
@media (max-width: 760px) { .td-pagehead { margin: 0 0 12px 8px; } .td-pagehead .td-toggle { display: none; } }
@media (max-width: 760px) { .td:not(.td-at-home) .td-pagehead { display: none; } }
.td-short { display: none; }
@media (max-width: 760px) {
  .td-stat:has(.td-short) .td-long { display: none; }
  .td-short { display: inline; }
  .td-stats { gap: 6px; }
  .td-stat { gap: 5px; padding: 6px 9px; }
}
/* Tree demo, round 13: Tasks as a page. A round box to tick, the task,
   then when it's due, who it's for and where it came from. */
.td-task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.td-list > .td-task:first-child { border-top: 0; }
.td-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); padding: 0; cursor: pointer; position: relative; }
.td-check:hover { border-color: var(--c-contact); background: color-mix(in srgb, var(--c-contact) 12%, var(--card)); }
.td-check:hover::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--sans); color: var(--c-contact); }
.td-check::before { content: ''; position: absolute; inset: -10px; }
.td-task-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.td-task-t { font: 600 15px/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.td-due { font-weight: 600; color: var(--body); }
.td-due.late { color: var(--c-rule); }
.td-title-act { margin-left: auto; }
.td-task-add { display: flex; flex-direction: column; gap: 8px; }
.td-task-add .td-task-due { flex: 0 1 180px; }
.td-task-cancel { min-height: 40px; display: inline-flex; align-items: center; padding: 0 6px; }
@media (max-width: 760px) {
  .td-check { width: 26px; height: 26px; }
  .td-title-act { min-height: 44px; }
}
.td-task .td-fr-meta { row-gap: 0; }
.td-task .td-fr-meta .td-fr-where { min-height: 32px; }
@media (max-width: 760px) { .td-task .td-fr-meta .td-fr-where { min-height: 36px; } }
/* Desktop: the Your spaces card and the breadcrumb start on the same line
   under the Profile header (Conner, 2026-11-01). */
.td-head:empty { display: none; }
/* Desktop: Your spaces and Needs you stack in one sticky column. */
.td-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-sideneeds { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 8px; flex: none; }
.td-side-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 4px 10px; border-radius: 10px; font: 14.5px var(--sans); color: var(--ink); cursor: pointer; }
.td-side-row:hover { background: var(--page); }
.td-side-row:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.td-side-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.td-side-go { margin-left: auto; color: var(--muted); font-size: 18px; }
.td-side-health { margin: 4px 10px 2px; font-size: 12.5px; color: var(--muted); }
@media (min-width: 1001px) {
  .td-side { position: sticky; top: 16px; max-height: calc(100dvh - 120px); }
  .td-side .td-tree { position: static; max-height: none; flex: 0 1 auto; min-height: 0; overflow-y: auto; }
}
@media (min-width: 1880px) {
  .td-side { grid-row: 9; grid-column: 1; margin-top: 14px; max-height: calc(100dvh - 32px); }
  .td-side .td-tree { grid-row: auto; grid-column: auto; margin-top: 0; }
  /* The header sits over the two columns: the title over Your spaces, the
     switch at the main column's right edge. */
  .td-pagehead { grid-column: 1 / 3; grid-row: 8; }
}
@media (max-width: 1000px) { .td-sideneeds { display: none; } }
@media (max-width: 760px) { .td-side { display: contents; } }

/* Contacts and Tasks, round 14 (treepeople.js). */
.tp-gray { color: var(--muted); font-size: 13px; }
.tp-av { --av: #475467; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--av) 16%, var(--card)); color: var(--av); font: 700 15px var(--sans); width: 40px; height: 40px; }
.tp-av-xs { width: 20px; height: 20px; font-size: 11px; }
.tp-av-lg { width: 88px; height: 88px; font: 700 36px var(--head); }
.tp-search { width: 100%; box-sizing: border-box; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.tp-chip span { color: var(--muted); font-weight: 500; }
.tp-chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tp-chip.on span { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.tp-addline { display: flex; flex-direction: column; gap: 4px; }
.tp-plist { padding: 0 0 6px; overflow: visible; }
.tp-letter-h { position: sticky; top: 0; z-index: 2; background: var(--card); padding: 10px 16px 4px; font: 700 13px var(--head); color: var(--sky); border-radius: 16px 16px 0 0; }
.tp-prow { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 16px; cursor: pointer; }
div.tp-prow { cursor: default; }
.tp-prow:hover { background: var(--page); }
.tp-prow:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.tp-prow-t { display: flex; flex-direction: column; min-width: 0; }
.tp-prow-t b { font: 600 15px var(--sans); color: var(--ink); }
.tp-prow-t .tp-gray { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-strip { display: none; }
.tp-hero { display: flex; align-items: center; gap: 18px; }
.tp-hero-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-hero .td-title { font-size: 30px; }
.tp-labels { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tp-label { font: 600 12px var(--sans); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--t, var(--muted)) 12%, var(--card)); color: var(--t, var(--muted)); }
.tp-label.l-client { --t: var(--c-fact); } .tp-label.l-prospect { --t: var(--c-week); } .tp-label.l-vendor { --t: var(--c-ok); }
.tp-quicks { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-quick { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 92px; min-height: 64px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px var(--sans); text-decoration: none; cursor: pointer; }
.tp-quick:hover { border-color: var(--line-strong); background: var(--page); }
.tp-quick.off { opacity: 0.45; cursor: default; }
.tp-quick-i { font-size: 18px; line-height: 1; }
.tp-line { margin: 0; color: var(--body); font-size: 15px; }
.tp-added { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: var(--pad-tile); border-radius: 12px; background: rgba(21, 112, 239, 0.06); }
.tp-added p { margin: 0; }
.tp-added-acts { display: flex; gap: 8px; }
html.dark .tp-added { background: rgba(83, 177, 253, 0.12); }
.tp-board.tp-ai { background: rgba(21, 112, 239, 0.08); color: #1570EF; }
html.dark .tp-board.tp-ai { background: rgba(83, 177, 253, 0.16); color: #B2DDFF; }
.tp-edit-acts .tp-remove { margin-right: auto; }
.tp-rec { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); }
.tp-recent .td-topic + .tp-rec { border-top: 0; }
.tp-rec-i { flex: none; width: 18px; text-align: center; color: var(--muted); }
.tp-rec-t { flex: 1; min-width: 0; }
.tp-rec .tp-gray { white-space: nowrap; }
.tp-receipts .td-topic { display: flex; align-items: baseline; gap: 8px; }
.tp-rcpt { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; text-align: left; font: inherit; color: var(--body); cursor: pointer; }
.tp-receipts .td-topic + .tp-rcpt,
.tp-receipts .td-topic + .tp-rcpt-row { border-top: 0; }
.tp-rcpt-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--body); }
.tp-rcpt-row .tp-rcpt { flex: 1 1 12rem; min-width: 0; width: auto; display: flex; align-items: baseline; gap: 10px; border-top: 0; padding: 0; }
.tp-rcpt:hover .tp-rec-t { color: var(--ink); text-decoration: underline; }
.tp-rcpt .pill { margin-left: 4px; }
.tp-receipts .tp-none { margin: 6px 0 0; }
.tp-rcpt-all { margin-top: 8px; }
.tp-contact .td-fr-meta { flex-wrap: wrap; white-space: normal; overflow: visible; }
.tp-src { color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; max-width: 100%; }
.tp-src:hover { color: var(--ink); }
@media (max-width: 760px) {
  .tp-rec { flex-wrap: wrap; }
  .tp-rcpt-row { align-items: flex-start; }
  .tp-contact .tp-src-slot, .tp-rcpt-row .tp-src-slot, .tp-rec .tp-src-slot { flex-basis: 100%; }
  .tp-contact .td-fr-meta > .tp-src-slot::before { content: none; margin: 0; }
  .tp-src { min-height: 36px; display: inline-flex; align-items: center; }
}
/* Duplicates in Needs you: two people side by side. */
.tp-dupe { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.tp-dupe-h { display: flex; align-items: baseline; gap: 8px; }
.tp-dupe-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-dupe-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border-radius: 12px; background: var(--page); min-width: 0; overflow-wrap: anywhere; }
.tp-dupe .td-b { min-height: 40px; }
/* Tasks. */
.tp-sort { margin-left: auto; width: auto; flex: none; }
.tp-tlist { padding: 4px 0 6px; }
.tp-addtask { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); cursor: text; }
.tp-plus { width: 24px; text-align: center; color: var(--sky); font: 400 26px/1 var(--sans); }
.tp-addtask-in { flex: 1; border: 0; outline: 0; background: none; font: 15px var(--sans); color: var(--ink); min-height: 44px; }
.tp-addtask-in::placeholder { color: var(--sky); }
/* @ picks a contact: a list under the box, and the picked person's chip. */
.tp-addtask-in { min-width: 0; }
.tp-at-chip { flex: none; margin-top: 0; cursor: default; }
.tp-at-chip[hidden], .tp-at[hidden] { display: none; }
.tp-at-x { min-width: 28px; min-height: 28px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; color: var(--muted); font: 400 16px/1 var(--sans); cursor: pointer; }
.tp-at-x:hover { color: var(--ink); }
.tp-at { position: absolute; top: calc(100% + 4px); left: 12px; right: 12px; z-index: 40; max-width: 360px; max-height: 288px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow, 0 12px 32px rgba(0, 0, 0, 0.2)); }
.tp-at-o { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); font: 500 15px var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tp-at-o.on, .tp-at-o:hover { background: var(--page); }
.tp-at-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-at-h { flex: none; font-size: 12px; }
.tp-task { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 16px; cursor: pointer; transition: opacity 300ms, transform 300ms; }
.tp-task:hover { background: var(--page); }
.tp-task.sub { padding-left: 52px; }
.tp-task.dragging { opacity: 0.4; }
.tp-task.over { box-shadow: inset 0 2px 0 var(--sky); }
.tp-task:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.tp-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); padding: 0; cursor: pointer; position: relative; }
.tp-check::before { content: ''; position: absolute; inset: -10px; }
.tp-check:hover { border-color: var(--sky); }
.tp-check:hover::after, .tp-task.done .tp-check::after, .tp-task.ticking .tp-check::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--sans); color: var(--sky); }
.tp-task.done .tp-check, .tp-task.ticking .tp-check { background: var(--sky); border-color: var(--sky); }
.tp-task.done .tp-check::after, .tp-task.ticking .tp-check::after { color: #fff; }
.tp-task.ticking .tp-task-t, .tp-task.done .tp-task-t { text-decoration: line-through; color: var(--muted); }
.tp-task.ticking { opacity: 0.5; }
.tp-task-b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tp-task-t { font: 15px/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.tp-task-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tp-who { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 8px 2px 3px; margin-top: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 12px var(--sans); color: var(--ink); cursor: pointer; }
.tp-who:hover { border-color: var(--line-strong); }
.tp-date { flex: none; font: 600 12px var(--sans); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.tp-date.late { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--card)); background: var(--red-wash); }
.tp-star { flex: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--muted); font-size: 19px; cursor: pointer; padding: 0; }
.tp-star:hover { background: var(--line); }
.tp-star.on { color: #E8A400; }
.tp-det { display: flex; flex-direction: column; gap: 6px; margin: 0 16px 10px 50px; padding: 10px 12px; border-radius: 12px; background: var(--page); font-size: 13px; }
.tp-det.sub { margin-left: 86px; }
.tp-subin { min-height: 40px; }
.tp-empty { padding: 12px 16px; margin: 0; }
/* To do / Done tabs and changing a task (2026-11-05). */
.tp-tabs { display: flex; gap: 6px; padding: 10px 16px 6px; }
.tp-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; font: 600 14px var(--sans); color: var(--body); cursor: pointer; }
.tp-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tp-tab.on { background: var(--sky); border-color: var(--sky); color: #fff; }
.tp-tab-n { font-weight: 500; opacity: 0.8; }
.tp-moved { display: flex; align-items: center; gap: 12px; margin: 6px 16px 4px; padding: 10px 12px; border-radius: 12px; background: var(--page); font-size: 14px; color: var(--body); }
.tp-moved > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tp-edit { gap: 10px; cursor: default; }
.tp-edit-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 600 12px var(--sans); color: var(--muted); }
.tp-edit-f textarea, .tp-edit-f input, .tp-edit-f select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 15px/1.4 var(--sans); }
.tp-edit-f textarea { resize: vertical; }
.tp-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-edit-acts { display: flex; justify-content: flex-end; gap: 8px; }
.tp-edit-acts .td-b { min-height: 40px; }
.tp-note { margin: 0; }
@media (max-width: 760px) {
  .tp-strip { display: flex; flex-direction: column; position: fixed; right: 2px; top: 50%; transform: translateY(-50%); z-index: 30; touch-action: none; padding: 4px 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 85%, transparent); }
  .tp-strip button { border: 0; background: none; padding: 0 6px; min-height: 16px; font: 700 10.5px/16px var(--sans); color: var(--sky); cursor: pointer; }
  .tp-contacts .tp-plist { margin-right: 18px; }
  .tp-hero .tp-av-lg { width: 72px; height: 72px; font-size: 30px; }
  .tp-hero .td-title { font-size: 26px; }
  .tp-quicks { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tp-quick { min-width: 0; }
  .tp-task { padding-right: 4px; }
  .tp-task.sub { padding-left: 44px; }
  .tp-det { margin-left: 16px; }
  .tp-det.sub { margin-left: 44px; }
  .tp-edit-row { grid-template-columns: 1fr; }
  .tp-dupe-pair { grid-template-columns: 1fr 1fr; gap: 6px; }
}
/* Standard spaces are normal rows; only the "empty" count is muted. */
.td-tree .td-slot-empty, .td-tree .td-slot-empty .td-name { color: var(--ink); }
.td-tree .td-slot-empty .td-n { color: var(--muted); font-style: italic; }
.td-emptyspace p { margin: 0; padding: 18px 16px; color: var(--muted); font-size: 15px; }
.tp-det .td-det-l .link-btn { justify-self: start; text-align: left; padding: 0; min-height: 0; }
/* The same header spacing as Connections: 12px under the title, a 16px
   line, 14px before the content. */
.td-pagehead { margin-bottom: 14px; }
.td-pagehead .page-title { margin: 0 0 12px; }
.td-pagesub { font-size: 16px; line-height: 24px; }
@media (max-width: 760px) { .tp-contacts .tp-plist { margin-right: 0; } .tp-contacts { padding-right: 20px; } }
@media (max-width: 760px) { .tp-letter-h { top: 56px; border-radius: 0; } }
@media (max-width: 760px) {
  .tp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 0 -8px; padding: 0 20px 2px 8px; scrollbar-width: none; }
  .tp-chips::-webkit-scrollbar { display: none; }
  .tp-chip { flex: none; }
}
/* Wide screens (Conner, 2026-11-01): Your spaces sits in the left margin
   and the main column keeps exactly the width and edges of Connections,
   Work and Activity. The side is narrow there, so its counts step aside. */
@media (min-width: 1880px) {
    .td-side .td-tree .td-row { padding-right: 4px; }
}
/* The profile scrolls inside its own area; a matching gutter on the left
   keeps the main column centred exactly like the other pages. */
@media (min-width: 1880px) { .stage:has(.td) > main { scrollbar-gutter: stable both-edges; } }
/* Material opens to read in full under its row. */
.td-mat-head { display: flex; align-items: flex-start; gap: 10px; }
.td-mat-head .td-fr-txt { flex: 1; }
.td-mat-read { flex: none; min-height: 32px; }
.td-mat-full { margin-top: 10px; cursor: auto; }
.td-mat-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.6 var(--sans); color: var(--ink); background: var(--page); border-radius: 12px; padding: 14px 16px; max-height: 60vh; overflow-y: auto; }
@media (max-width: 760px) { .td-mat-read { min-height: 40px; } }
/* A compact Needs you, so Your spaces can start level with the first
   content card: the health line sits in its header. */
.td-side { gap: 10px; }
.td-sideneeds { padding: 4px 6px; }
.td-sideneeds .td-tree-h { padding: 6px 8px 2px; }
.td-sideneeds .td-tree-h b { font-size: 16px; }
.td-sideneeds .td-side-health { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.td-side-row { white-space: nowrap; }
.td-side-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.td-side.tight .td-side-row:nth-of-type(n+3) { display: none; }
.td-sideneeds .td-tree-h b { white-space: nowrap; }
@media (min-width: 1880px) { .td-sideneeds .td-side-health { display: none; } }
/* The setup pill sits by the view switch in the page header. */
.td-pagehead-r { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex: none; }
.td-pagehead-r .td-toggle { margin-top: 0; }
@media (max-width: 760px) { .td-pagehead-r { margin-top: 2px; } }
/* Your spaces is pinned (treedemo.js holdSide); the main column keeps the
   second column while it's out of the flow. */
@media (min-width: 1001px) { .td-grid > .td-mid { grid-column: 2; } .td-side.pinned { z-index: 5; } }

/* ===================================================================
   New tree v4b (Conner, 2026-11-02). Black and cream, cloud marks,
   Bricolage for big moments, Inter for the rest. Six sizes: 12, 13,
   15, 18, 24, 34 (stat numbers 26, as on the live tiles). 4px grid.
   Corners: 6 chips and inputs, 10 rows, 14 cards, 18 stat tiles, 999
   pills. Black primary buttons; category colors only on icons, dots
   and text, never as a fill.
   =================================================================== */
.td { --ease: cubic-bezier(.2, 0, 0, 1); font-size: 15px; }
.td .page-title, .td-title, .td-greet h3, .td .pf-k b { font-family: var(--head); font-weight: 800; font-optical-sizing: auto; letter-spacing: -0.01em; }
.td .page-title { font-size: 34px; }
.td-title { font-size: 34px; line-height: 1.1; }
.td-tree-h b, .td-sec-top h4, .td-newcard-h b, .td-sec-h { font-family: var(--head); font-weight: 600; letter-spacing: -0.005em; font-size: 18px; }
.td-pagesub { font-size: 15px; }
.td-crumbs, .td-crumb { font-size: 13px; }

/* Stat tiles: the live .pf-k tile. */
.td .pf-knows { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; margin: 0; }
.td .pf-k, .td .pf-k:hover { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; box-shadow: none; transition: border-color 120ms var(--ease), transform 120ms var(--ease); }
.td .pf-k:hover { border-color: var(--line-strong); }
.td .pf-k:active { transform: scale(0.98); }
.td .pf-k .cl { margin-bottom: 2px; }
.td .pf-k b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.td .pf-k span:last-child { font: 500 14px var(--sans); color: var(--muted); text-transform: lowercase; }
.td-statrow { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.td-quiet { margin: 0; font-size: 13px; color: var(--muted); }

/* Cards, rows, one border. */
.td-card-s, .td-tree, .td-newcard, .td-ccard, .tp-dupe, .tp-quick, .td-greet, .td-win { border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.td-card-s { padding: 8px; gap: 0; }
.td .td-list.td-card-s { padding: 4px 8px; }
.td-fr { grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding: 12px 8px; border-top: 1px solid var(--line); border-radius: 10px; transition: background 120ms var(--ease); }
.td-list > .td-fr:first-child, .td-list > :first-child > .td-fr:first-child { border-top-color: transparent; }
.td-fr.tap:hover { background: var(--page); border-top-color: transparent; }
.td-fr.tap:hover + .td-fr { border-top-color: transparent; }
.td-fr-dot { width: 7px; height: 7px; margin: 8px 0 0 3px; }
.td-fr-dot.k-contact { background: var(--c-contact); }
.td-fr-head { align-items: flex-start; gap: 12px; }
.td-fr-head .td-fr-txt { flex: 1 1 auto; display: block; min-width: 0; }
.td-fr-main { font: 15px/1.4 var(--sans); color: var(--ink); }
.td-ok { margin-left: 8px; font: 600 13px var(--sans); color: var(--c-ok); white-space: nowrap; }
.td-fr-date { flex: none; font-size: 13px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.td-fr-c, .td-fr-head:hover .td-fr-c { opacity: 0; font-size: 15px; padding-top: 1px; transition: opacity 120ms var(--ease), transform 200ms var(--ease); }
.td-fr.tap:hover .td-fr-c, .td-fr.open .td-fr-c { opacity: 1; }
.td-fr.open .td-fr-c { transform: rotate(90deg); }
.td-fr-meta { font-size: 13px; color: var(--muted); gap: 0 6px; margin-top: 2px; }
.td-fr-meta > span + span::before, .td-fr-meta > .td-fr-where + span::before { content: '·'; margin-right: 6px; }
.td-fr-meta .td-fr-where { font-size: 13px; color: var(--muted); min-height: 0; }
.td-fr-meta .td-fr-where:hover { color: var(--ink); }
.td-fr-head.plain .td-fr-main { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-fr-sub { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-fr-sub::before { content: none !important; }
.td-fr-det { border-radius: 10px; }

/* Section headings sit outside their cards. */
.td-sec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; margin-bottom: 8px; }
.td-sec-top h4 { margin: 0; color: var(--ink); }
.td-sec-n { margin-left: 8px; font: 400 15px var(--sans); color: var(--muted); letter-spacing: 0; }
.td-sec-top .link-btn { font-size: 15px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.td-sec-top .link-btn:hover { color: var(--ink); }
.td-topicsec, .td-learned { margin-top: 12px; }

/* The greeting: the one Needs you on Home. */
.td-greet { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.td-greet-row { display: flex; align-items: center; gap: 16px; }
.td-greet-cloud { flex: none; }
.td-greet-t { flex: 1; min-width: 0; }
.td-greet h3 { margin: 0; font-size: 24px; line-height: 1.2; color: var(--ink); }
.td-greet p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.td-greet .td-b { flex: none; }
.td-greet-list { border-top: 1px solid var(--line); padding-top: 8px; }
/* A small win. */
.td-win { display: flex; align-items: center; gap: 12px; padding: 16px 24px; }
.td-win p { margin: 0; flex: 1; font-size: 15px; color: var(--muted); }
.td-win b { color: var(--ink); font-weight: 600; }
.td-win-go { flex: none; font: 600 15px var(--sans); color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }

/* Space page top. */
.td-title-row { gap: 12px; }
.td-title-i { display: inline-flex; }
.td-sug { margin-left: auto; display: inline-flex; align-items: center; gap: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.td-sug-go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 0; background: none; color: var(--ink); font: 13px var(--sans); cursor: pointer; border-radius: 999px; }
.td-sug-go:hover { background: var(--page); }
.td-sug .td-sug-x { min-width: 36px; min-height: 40px; color: var(--muted); }
.td-spacetiles { margin-top: 4px; }
.td-frow { gap: 12px; align-items: stretch; }
.td-fsearch-w { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); transition: border-color 120ms var(--ease); }
.td-fsearch-w:focus-within { border-color: var(--ink); }
.td-fsearch-i { color: var(--muted); font-size: 18px; line-height: 1; }
.td-fsearch-w .td-fsearch { flex: 1; border: 0; background: none; padding: 0; min-height: 44px; outline: 0; font-size: 15px; border-radius: 0; }
.td-fsearch-w kbd { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.td .td-sort { border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px var(--sans); padding: 0 12px; min-height: 44px; max-width: none; }

/* New in this space, under the tree. */
.td-newcard { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.td-newcard-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.td-newcard-h span { font-size: 13px; color: var(--muted); }
.td-newcard-r { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; margin: 0 -8px; border-radius: 10px; font-size: 13px; color: var(--body); cursor: pointer; transition: background 120ms var(--ease); }
.td-newcard-r:hover { background: var(--page); }
.td-newcard-r i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.td-newcard-r span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-newcard-d { flex: none; color: var(--muted); }
.td-newcard-all { align-self: flex-start; font-size: 13px; color: var(--muted); min-height: 40px; }

/* Tree: rows, footer bar. */
.td-tree { padding: 16px 12px; }
.td-tree .td-row { border-radius: 10px; transition: background 120ms var(--ease); }
.td-chev { transition: transform 200ms var(--ease), background 120ms var(--ease); }
.td-tree .td-group { font: 500 13px var(--sans); letter-spacing: 0.06em; }
.td-tree-foot { display: flex; align-items: center; gap: 12px; margin: 12px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
/* .td-bar is the old fixed toast; the up-to-date bar has its own name. */
.td-upbar { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.td-upbar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }

/* Buttons: black primary, no purple anywhere. */
.td .td-b { border-radius: 10px; transition: background 120ms var(--ease), transform 120ms var(--ease); }
.td .td-b:active { transform: scale(0.98); }
.td .td-b.primary, .td .td-b.ai { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.td-setup-n, .td-setup-pill, .td .td-setup-pill { color: var(--body); background: var(--card); border: 1px solid var(--line); border-radius: 999px; font: 600 13px var(--sans); }
.td-setup-pill { min-height: 40px; padding: 0 14px; }
.td-setup-n { padding: 4px 10px; }
.td .td-more, .td-arrange.on { color: var(--ink); }
.td-row.drop { box-shadow: inset 0 0 0 1px var(--ink); }
.td-ctag, .tp-label, .tp-date { border-radius: 6px; }
.td-ctag.t-ok { background: none; padding-left: 0; }

/* Phones: two tiles across, the same tiles as a computer. */
@media (max-width: 760px) {
  .td .pf-knows, .td .td-spacetiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: row; }
  .td .page-title { font-size: 34px; }
  .td-title { font-size: 24px; }
  .td-greet { padding: 16px; }
  .td-greet-row { flex-wrap: wrap; }
  .td-greet .td-b { width: 100%; min-height: 44px; }
  .td-win { padding: 12px 16px; flex-wrap: wrap; }
  .td-sug { margin-left: 0; }
  .td-fr-c { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .td *, .td *::before, .td *::after { transition: none !important; animation: none !important; }
}
.td-fr-meta .td-fr-where { font-weight: 400; padding: 0; }
@media (max-width: 1000px) { .td-newcard { display: none; } }
@media (max-width: 760px) { .td-statrow { margin-left: 8px; } }
@media (max-width: 760px) { .td .td-sort { flex: none; max-width: 40%; font-size: 13px; } .td-fsearch-w kbd { display: none; } }
/* v4b fixes (Conner, 2026-11-02). */
/* Wide screens: the header, then the counts across both columns, then the
   tree and the main column. */
@media (min-width: 1880px) {
  .td-pagehead { grid-row: 7; }
}
/* Fact rows run the card's full width, the date at the right edge; a long
   line stops at two lines. */
.td-fr-body { max-width: none; }
.td-fr-main { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-fr-head .td-fr-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.td-fr-head .td-ok { margin-left: 0; }
/* The tree's counts hide only when its column is really narrow. */
.td-side { container-type: inline-size; container-name: side; }
@container side (max-width: 240px) { .td-tree .td-n { display: none; } }
@media (min-width: 1880px) { .td-side, .td-mid { margin-top: 0; } }
.td-statrow { margin-bottom: 0; }
@media (max-width: 760px) { .td-statrow { margin-left: 0; } }
/* The tree redraws under the pointer on every click; an instant hover
   keeps it from flashing (Conner, 2026-11-02). */
.td-tree .td-row, .td-tree .td-chev { transition: none; }
/* Your spaces keeps room for its scrollbar, so rows don't shift sideways
   when a long list needs one (Conner, 2026-11-02). */
.td-tree { scrollbar-gutter: stable; }
/* ===================================================================
   Desktop frame (Conner, 2026-11-02): the header, Your spaces and the
   main column stay in place, and Your spaces and the main column each
   scroll inside their own box. Nothing slides apart.
   =================================================================== */
@media (min-width: 1001px) {
  .stage:has(.td) > main { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; scrollbar-gutter: auto; }
  .stage:has(.td) > main > :not(.td) { flex: none; }
  .stage:has(.td) > main > .td { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 2fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 16px; margin: 0; padding-bottom: 0; }
  .td > .td-pagehead { grid-column: 1 / -1; grid-row: 1; }
  .td > .td-grid { display: contents; }
  .td-side { grid-column: 1; grid-row: 2; position: static; max-height: none; height: 100%; min-height: 0; margin: 0; padding-bottom: 24px; box-sizing: border-box; }
  .td-side .td-tree { flex: 0 1 auto; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .td-grid > .td-mid { grid-column: 2; grid-row: 2; min-height: 0; height: auto; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 4px 48px 0; }
}
@media (min-width: 1880px) {
  .stage:has(.td) > main { max-width: none; display: flex; }
  .stage:has(.td) > main > .td { grid-template-columns: minmax(0, 1fr) minmax(0, 1124px) minmax(0, 1fr); column-gap: 24px; }
  .td > .td-pagehead { grid-column: 1 / 3; }
}
@media (min-width: 1001px) { .stage:has(.td) > main { align-items: stretch; } }
/* Setup card: the same roomy card as the greeting, button on the left. */
.td .td-setup { padding: 20px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.td .td-setup-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.td .td-setup-h .link-btn { font-size: 13px; color: var(--muted); }
.td .td-setup-t { font: 600 18px var(--head); letter-spacing: -0.005em; color: var(--ink); margin-top: 4px; }
.td .td-setup > p.small { margin: 0; font-size: 15px; color: var(--muted); }
.td .td-setup .td-btns { display: flex; justify-content: flex-start; gap: 8px; margin: 8px 0 0; }
.td .td-setup .td-btns .td-b { min-height: 40px; padding: 0 16px; font-size: 15px; }
/* In the scrolling main column, cards keep their height. */
.td-grid > .td-mid > * { flex-shrink: 0; }
.td .td-setup { max-height: none; overflow: visible; }
/* ===================================================================
   Round 19 polish (Conner, 2026-11-02).
   =================================================================== */
/* Your spaces at its natural height; New in this space under it; the
   side column scrolls as one box. */
@media (min-width: 1001px) {
  .td-side { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .td-side .td-tree { flex: none; max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .td-side .td-newcard { flex: none; }
  .td-grid > .td-mid { padding-bottom: 120px; }
}
/* Needs you rows: a fade when answered, the task check circle. */
.td-fr.td-gone { opacity: 0; transform: translateX(8px); transition: opacity 200ms var(--ease, ease), transform 200ms var(--ease, ease); }
.td-need-task { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; }
.td-need-task .tp-check { margin-top: 1px; }
.td-need-t { font: 600 15px/1.4 var(--sans); color: var(--ink); text-align: left; padding: 0; min-height: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.td-need-t:hover { text-decoration: underline; }
.td-fr-sub + span::before { content: none !important; }
.td-fr-meta .td-row-acts { gap: 12px; margin-left: 4px; }
.td-fr-meta .td-row-acts::before { content: none; }
/* The setup card has the same inner padding as the other cards. */
.td .td-setup { padding: 24px; }
/* The Waiting for you count isn't the greeting's count in the demo. */
html:has(.td) .rail-btn[aria-label="Waiting for you"] .rail-badge { display: none; }
/* The phone menu's New tree switch reads in dark mode. */
.rail > .td-toggle button.on, html.dark .rail > .td-toggle button.on { background: #fff; color: #111; border-color: #fff; }
@media (max-width: 760px) {
  /* Filter chips wrap; the page never gets wider than the phone. */
  .tp-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  /* Room under the last row for Ask Nimbus. */
  .td { padding-bottom: 120px; }
  /* The › side tab sits in the margin, clear of bullets and text. */
  .td-mid { margin-left: 28px; }
  .td-pagehead { margin-left: 28px; }
  .td .td-setup { padding: 16px; }
}
.td-fr-meta .td-row-acts { flex-basis: 100%; margin: 8px 0 0; }
.td-fr-meta .td-row-acts .td-b.sm { min-height: 36px; padding: 0 14px; font-size: 13px; width: auto; flex: none; }
.td-fr-meta .td-row-acts .link-btn { white-space: nowrap; min-height: 36px; font-size: 13px; }
/* The New tree header is Current's: the 72px cloud, then Profile and its
   line (Conner, 2026-11-02). */
.td-pagehead-l { gap: 16px; }
.td-pagehead-l .page-title { font: 800 34px/1.1 var(--head); letter-spacing: -0.02em; margin: 0; }
.td-pagehead-l .td-pagesub { margin: 4px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.td-pagehead { align-items: center; }
.td-pagehead-r { margin-top: 0; }
@media (max-width: 760px) { .td-pagehead-l .page-title { font-size: 28px; } }
/* Phone: the greeting's Review button stops short of Ask Nimbus. */
@media (max-width: 760px) { .td-greet .td-b { width: auto; align-self: flex-start; padding: 0 24px; } }
@media (max-width: 760px) {
  .td-greet-t { flex: 1 1 calc(100% - 80px); }
  .td-greet-row .td-b { margin-left: 72px; }
}
/* ===================================================================
   Every dashboard page uses the New tree demo's width (Conner,
   2026-11-02). On wide screens the demo runs from the left edge of the
   page to the end of its 1124px main column; the other pages now span
   the same edges. Narrower screens already match.
   =================================================================== */
@media (min-width: 1880px) {
  .stage > main:not(:has(.td)) { max-width: none; padding-right: calc(50% - 562px); }
}
/* New tree demo: Connections in the Profile's frame (Conner, 2026-11-02).
   Your apps sits on the left; phones keep today's page. */
.cn-side .cx-icon.cn-side-ico { width: 20px; height: 20px; min-width: 20px; border-radius: 6px; padding: 2px; flex: none; }
.cn-side .cx-icon.cn-side-ico img { width: 100%; height: 100%; }
.cn-side-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-left: auto; }
.cn-side-dot.bad { background: var(--bad, #D9483B); }
.cn-side-dot.warn { background: var(--warn, #E2A93B); }
.cn-side .td-tree-h .cn-side-n { margin-left: auto; font-weight: 500; }
.cx-crow.cn-picked { box-shadow: inset 3px 0 0 var(--ink); }
/* Connected apps in two columns when there's room, each app its own card
   (Conner, 2026-11-05). */
.cx-clist-two { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; background: none; border: 0; border-radius: 0; }
.cx-clist-two > .cx-crow { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cx-clist-two > .cx-crow:first-child { border-top: 1px solid var(--line); }
.cn-td .cn-mid > .cn-lead { margin-top: 0; }
@media (max-width: 1000px) {
  .cn-td, .cn-td .td-grid { display: block; }
  .cn-td .cn-side { display: none; }
  .cn-td, .cn-td .cn-mid { margin: 0; padding: 0; }
}
/* Phones: the New tree overview uses Current's small tiles, all in one
   row (Conner, 2026-11-02). Space pages keep their two-across tiles. */
@media (max-width: 760px) {
  .td .pf-knows { grid-template-columns: none !important; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 5px; }
  .td .pf-k, .td .pf-k:hover { align-items: center; text-align: center; padding: 8px 2px; border-radius: 14px; gap: 2px; min-width: 0; }
  .td .pf-k .cl { --cl: 18px !important; margin-bottom: 0; }
  .td .pf-k b { font-size: min(17px, 4vw); letter-spacing: -0.02em; white-space: nowrap; }
  .td .pf-k span:last-child { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
/* ===================================================================
   New tree demo: phone bottom tab bar (Conner, 2026-11-02). Home,
   Contacts, Ask Nimbus in a notched center button, Tasks, More. Under
   768px it takes the place of the menu button and the side tab.
   =================================================================== */
.td-tabwrap { display: none; }
@media (max-width: 767px) {
  .td-tabwrap { display: block; }
  .frame:has(.td-tabwrap) .phone-menu { visibility: hidden; pointer-events: none; }
  .frame:has(.td-tabwrap) .td-sidetab,
  .frame:has(.td-tabwrap) .pchat-fab-wrap { display: none !important; }
  .frame:has(.td-tabwrap) .stage { padding-bottom: calc(64px + 24px + env(safe-area-inset-bottom)); }
  /* The old side tab's room is gone: pages use the full width. */
  .frame:has(.td-tabwrap) .td-grid > .td-mid, .frame:has(.td-tabwrap) .td-mid { margin-left: 0 !important; }
  .frame:has(.td-tabwrap) .td-pagehead { margin-left: 0 !important; padding-left: 0 !important; }
  .frame:has(.td-tabwrap) .td-tree { padding-bottom: calc(64px + 32px + env(safe-area-inset-bottom)); }
  .frame:has(.td-tabwrap) .pchat { bottom: calc(64px + 16px + env(safe-area-inset-bottom)) !important; }
  .td-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: stretch; background: var(--card); border-top: 1px solid var(--line);
    -webkit-mask: radial-gradient(circle 35px at 50% 0, transparent 34px, #000 35px); mask: radial-gradient(circle 35px at 50% 0, transparent 34px, #000 35px); }
  .tb-tab { appearance: none; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 9px 0 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
    color: var(--muted); font: 500 11px/1.2 var(--sans); cursor: pointer; transition: color 150ms ease; -webkit-tap-highlight-color: transparent; }
  .tb-tab:hover, html.dark .tb-tab:hover { background: none; color: var(--muted); }
  .tb-icowrap { position: relative; display: block; width: 26px; height: 26px; transition: transform 150ms ease; }
  .tb-ico, .tb-ico svg { display: block; width: 26px; height: 26px; }
  .tb-tab:active .tb-icowrap { transform: scale(0.92); }
  .tb-connections.on, .tb-connections.on:hover { color: #1AA7EC; }
  .tb-work.on, .tb-work.on:hover { color: #F59E0B; }
  .tb-activity.on, .tb-activity.on:hover { color: #12B76A; }
  .tb-spaces.on, .tb-spaces.on:hover { color: #9B7BFF; }
  .tb-gap { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; color: var(--muted); font: 500 11px/1.2 var(--sans); }
  .tb-gap.on { color: #1570EF; }
  html.dark .tb-gap.on { color: #6E9BFF; }
  .tb-ask .tb-badge { top: 0; left: auto; right: -2px; }
  .tb-ask.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #1570EF, 0 6px 16px rgba(21, 112, 239, 0.35); }
  .tb-more.on, .tb-more.on:hover { color: var(--ink); }
  .tb-badge { position: absolute; top: -4px; left: 16px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
    font: 700 10px/17px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--card); }
  .tb-ask { position: fixed; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom) - 28px); z-index: 71; width: 56px; height: 56px; min-height: 0; margin-left: -28px; padding: 0; border: 0; border-radius: 50%;
    background: #1570EF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(21, 112, 239, 0.35); transition: transform 150ms ease, box-shadow 150ms ease; -webkit-tap-highlight-color: transparent; }
  .tb-ask:hover, html.dark .tb-ask:hover { background: #1570EF; }
  .tb-ask:active { transform: scale(0.94); box-shadow: 0 3px 8px rgba(21, 112, 239, 0.3); }
  html.kb-open .td-tabbar, html.kb-open .tb-ask { display: none; }
  html.kb-open .frame:has(.td-tabwrap) .stage { padding-bottom: 24px; }
  .tb-scrim { position: fixed; inset: 0; z-index: 72; background: rgba(0, 0, 0, 0.45); }
  .tb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 73; background: var(--card); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
    padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; max-height: 80vh; overflow-y: auto; animation: tb-up 200ms ease-out; }
  .tb-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 10px; flex: none; }
  .tb-item { appearance: none; background: none; border: 0; box-shadow: none; border-radius: 12px; min-height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 10px; color: var(--ink); font: 500 16px var(--sans); text-align: left; }
  .tb-item:hover, .tb-item:active, html.dark .tb-item:hover { background: var(--line); }
  .tb-item > span:first-child { flex: 1; }
  .tb-item-go { color: var(--muted); font-size: 20px; }
  .tb-sep { height: 1px; background: var(--line); margin: 6px 12px; }
}
@keyframes tb-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tb-tab, .tb-icowrap, .tb-ask { transition: none; }
  .tb-tab:active .tb-icowrap, .tb-ask:active { transform: none; }
  .tb-sheet { animation: none; }
}
/* ===================================================================
   Merged sidebar (Conner, 2026-11-02), on the Live tree: the account
   card and menu, search, the pages and the owner's spaces in one column.
   Same dark rail and white selected row as before.
   =================================================================== */
.rail.shell.open { width: 272px; padding: 14px 12px 12px; gap: 4px; overflow: hidden; }
.rail.shell .sh-top { display: flex; align-items: center; gap: 6px; }
.rail.shell .sh-top .rail-close { display: none; }
.sh-acct-wrap { position: relative; flex: 1; min-width: 0; }
.sh-acct { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: none; text-align: left; cursor: pointer; }
.sh-acct:hover, html.dark .sh-acct:hover { background: rgba(255, 255, 255, 0.1); }
.sh-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #1570EF; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px var(--sans); letter-spacing: 0.02em; }
.sh-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sh-who b { font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-who span { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.sh-chev { color: rgba(255, 255, 255, 0.55); font-size: 16px; line-height: 1; margin-top: -6px; }
.sh-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 90; padding: 6px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22); }
.sh-menu-i { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; min-height: 0; border: none; border-radius: 10px; background: none; box-shadow: none;
  color: var(--ink); font: 500 14px var(--sans); text-align: left; cursor: pointer; }
.sh-menu-i:hover, html.dark .sh-menu-i:hover { background: var(--line); }
.sh-menu-i .ico, .sh-menu-i .ico svg { width: 18px; height: 18px; color: var(--muted); }
.sh-menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.sh-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; }
.sh-search { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55); cursor: text; }
.sh-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: none; background: none; box-shadow: none; color: #fff; font: 400 14px var(--sans); outline: none; }
.sh-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.sh-search input::-webkit-search-cancel-button { filter: invert(1); }
.sh-search kbd { font: 500 11px var(--sans); color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; padding: 1px 6px; }
.sh-collapse { flex: none; width: 38px; height: 38px; min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.7); box-shadow: none; }
.sh-collapse:hover, html.dark .sh-collapse:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sh-collapse .ico, .sh-collapse .ico svg { width: 18px; height: 18px; }
.rail.shell .rail-group { margin: 14px 12px 4px; }
.rail.shell.open .rail-btn { height: 38px; border-radius: 12px; }
.rail.shell.open .rail-btn .ico, .rail.shell.open .rail-btn .ico svg { width: 20px; height: 20px; }
.rail.shell .rail-badge { background: #1570EF; color: #fff; }
.sh-spaces { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px 8px; scrollbar-width: thin; }
.rail.shell .tl-sidetree { padding: 0; background: none; border: none; box-shadow: none; position: static; max-height: none; overflow: visible; }
.rail.shell .td-row { color: rgba(255, 255, 255, 0.78); min-height: 32px; border-radius: 10px; }
.rail.shell .td-row:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.rail.shell .td-row.sel { background: rgba(255, 255, 255, 0.14); color: #fff; }
.rail.shell .td-row .td-name { font-size: 14px; }
.rail.shell .td-n { color: rgba(255, 255, 255, 0.45); }
.rail.shell .td-chev { color: rgba(255, 255, 255, 0.5); background: none; }
.rail.shell .td-group, .rail.shell .td-group span { color: rgba(255, 255, 255, 0.4); }
.rail.shell .tl-bizlabel { margin: 10px 8px 2px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.rail.shell .td-more { color: rgba(255, 255, 255, 0.6); background: none; }
.tl-call { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-left: auto; }
.tl-call + .td-n { margin-left: 8px; }
/* Collapsed: icons only, as before. */
.rail.shell:not(.open) .sh-who, .rail.shell:not(.open) .sh-chev, .rail.shell:not(.open) .sh-search,
.rail.shell:not(.open) .sh-spaces, .rail.shell:not(.open) .rail-group { display: none; }
.rail.shell:not(.open) .sh-acct { width: 48px; justify-content: center; padding: 6px; }
.rail.shell:not(.open) .sh-row { flex-direction: column; }
.rail.shell:not(.open) .sh-menu { left: 0; right: auto; width: 220px; }
@media (max-width: 760px) {
  .rail.shell, .rail.shell.open { width: min(86vw, 300px); overflow-y: auto; }
  .rail.shell .sh-top .rail-close { display: flex; }
  .rail.shell .sh-collapse { display: none; }
  .sh-spaces { overflow: visible; flex: none; }
}

/* Profile on the merged sidebar: full width, two pairs of cards. */
@media (min-width: 1001px) {
  .stage:has(.tl-shell) > main > .td.tl-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .td.tl-shell > .td-pagehead { grid-column: 1 / -1 !important; }
  .td.tl-shell > .td-grid > .td-mid { grid-column: 1 !important; padding-right: 4px; }
}
/* Big screens on the merged sidebar: every page, Profile too, at the
   other pages' width and centered in the space right of the sidebar
   (Conner, 2026-11-02). Laptops already match. */
@media (min-width: 1880px) {
  body:has(.rail.shell) .stage > main { max-width: none; padding-left: calc(25% - 267px); padding-right: calc(25% - 267px); }
}
.tl-shell .td-pagehead-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tl-setup-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: 600 13px var(--sans); box-shadow: none; }
.tl-setup-pill.on { border-color: var(--ink); }
.tl-setup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tl-pair { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-pair > * { margin: 0 !important; min-width: 0; }
.tl-pair > :only-child { grid-column: 1 / -1; }
.tl-pair > .td-win { align-self: stretch; display: flex; align-items: center; }
.tl-shell .td-learned .td-list { padding-top: 4px; padding-bottom: 4px; }
.tl-shell .td-learned .td-fr-txt { min-width: 0; }
.tl-shell .td-learned .td-fr-main { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-week { padding: 16px 20px 8px; }
.tl-week .td-sec-top { margin-bottom: 4px; }
.tl-week-row { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px 0; min-height: 0; border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; background: none; box-shadow: none; text-align: left; color: var(--ink); cursor: pointer; }
.tl-week-row:last-child { border-bottom: none; }
.tl-week-row:hover, html.dark .tl-week-row:hover { background: none; }
.tl-week-row:hover b { text-decoration: underline; }
.tl-week-d { font: 700 11px/20px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; color: #1570EF; }
html.dark .tl-week-d { color: #6E9BFF; }
.tl-week-d.late { color: var(--red); }
.tl-week-t { display: flex; flex-direction: column; min-width: 0; }
.tl-week-t b { font: 500 14px/20px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-week-t span { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .tl-pair { grid-template-columns: minmax(0, 1fr); } }
.tl-shell .td-learned .td-fr-head { min-width: 0; }
.tl-shell .td-learned .td-fr-txt { flex: 1 1 auto; overflow: hidden; }
.frame:has(.rail.shell) .pchat-fab-wrap { display: none; }
/* Sidebar cleanup (Conner, 2026-11-02): the same sizes as Profile. 260px
   wide, 12px inside; nav rows 36px with 16px icons and an 8px corner;
   labels 11px with 20px above; space rows 32px at 13.5px; only the spaces
   scroll, with a thin bar that shows on hover. */
.rail.shell.open { width: 260px; padding: 12px; }
.rail.shell.open .rail-btn { height: 36px; border-radius: 8px; gap: 10px; padding: 0 10px; }
.rail.shell.open .rail-btn .ico, .rail.shell.open .rail-btn .ico svg { width: 16px; height: 16px; }
.rail.shell.open .rail-label { font: 500 14px var(--sans); }
.rail.shell .sh-tabs { gap: 2px; flex: none; }
.rail.shell .rail-group { margin: 20px 10px 6px; font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }
.rail.shell .sh-top, .rail.shell .sh-row { flex: none; }
.rail.shell .sh-spaces > .rail-group { margin-bottom: 4px; }
.sh-spaces { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sh-spaces:hover { scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.sh-spaces::-webkit-scrollbar { width: 6px; }
.sh-spaces::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sh-spaces:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }
.rail.shell .td-row { min-height: 32px; height: 32px; padding-top: 0; padding-bottom: 0; }
.rail.shell .td-row .td-name { font-size: 13.5px; }
.rail.shell .td-n { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.tl-ghead { width: 100%; display: flex; align-items: center; gap: 4px; height: 28px; min-height: 0; margin: 6px 0 2px; padding: 0 6px; border: none; border-radius: 8px;
  background: none; box-shadow: none; color: rgba(255, 255, 255, 0.55); font: 600 12px var(--sans); text-align: left; cursor: pointer; }
.tl-ghead:hover, html.dark .tl-ghead:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.tl-ghead .td-chev { width: 16px; display: inline-flex; justify-content: center; transition: transform 0.15s ease; color: rgba(255, 255, 255, 0.5); }
.tl-ghead.open .td-chev { transform: rotate(90deg); }
@media (max-width: 1000px) {
  .rail.shell .tl-sidetree { display: block !important; position: static !important; transform: none !important; width: auto !important; height: auto !important; box-shadow: none !important; padding: 0 !important; }
}
.rail.shell .sh-search input, html.dark .rail.shell .sh-search input { background: transparent !important; border: none !important; box-shadow: none !important; }
.rail.shell .tl-call, .tl-call { background: #F5B70A !important; }
/* No Manage group (Conner, 2026-11-02): a wider sidebar so names and counts
   have room. */
.rail.shell.open { width: 280px; }
@media (max-width: 760px) { .rail.shell, .rail.shell.open { width: min(86vw, 300px); } }
.tl-shell .tl-clear { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.tl-shell .td-head.tl-clear { display: flex !important; justify-content: flex-end !important; width: 100%; max-width: none; }
/* The sidebar grows with the screen (Conner, 2026-11-02): 280px on a
   laptop, wider on a desktop monitor. */
@media (min-width: 1600px) { .rail.shell.open { width: 320px; } }
@media (min-width: 1920px) { .rail.shell.open { width: 360px; } }
/* ===================================================================
   Phone bar (Conner, 2026-11-02): the picked tab's icon lifts into a
   round bubble in a notch, and both slide to the tab you tap.
   =================================================================== */
@property --pb-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.pb { --pb-x: 50%; transition: --pb-x 280ms cubic-bezier(0.3, 0.7, 0.2, 1); }
@media (max-width: 767px) {
  .pb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line);
    -webkit-mask: radial-gradient(circle 34px at var(--pb-x) 0, transparent 33px, #000 34px); mask: radial-gradient(circle 34px at var(--pb-x) 0, transparent 33px, #000 34px); }
  .pb-tab { appearance: none; background: none; border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--muted); font: 500 11px/1.2 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 150ms ease; }
  .pb-tab:hover, html.dark .pb-tab:hover { background: none; color: var(--muted); }
  .pb-iw { position: relative; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; transition: transform 150ms ease; }
  .pb-tab:active .pb-iw { transform: scale(0.92); }
  .pb-tab.on .pb-iw { visibility: hidden; }
  .pb-tab.on .pb-label { color: #1570EF; font-weight: 600; }
  html.dark .pb-tab.on .pb-label { color: #6E9BFF; }
  .pb-label { white-space: nowrap; }
  .pb-ico, .pb-ico svg { display: block; width: 24px; height: 24px; }
  .pb-bubble { position: fixed; z-index: 71; left: var(--pb-x); bottom: calc(64px + env(safe-area-inset-bottom) - 26px); transform: translateX(-50%);
    width: 52px; height: 52px; border-radius: 50%; background: #1570EF; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(21, 112, 239, 0.35); pointer-events: none; }
  .pb-badge { position: absolute; top: -4px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff;
    font: 700 10px/17px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--card); }
  .pb-bubble .pb-badge { top: -2px; right: -4px; }
  html.kb-open .pb-bar, html.kb-open .pb-bubble { display: none; }
  .frame:has(.td-tabwrap) .rail.shell.drawer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .pb { transition: none; } .pb-tab, .pb-iw { transition: none; } .pb-tab:active .pb-iw { transform: none; } }
.sh-switch { margin: 10px 0 0; } .sh-switch .td-toggle { display: flex !important; flex-wrap: wrap; gap: 6px; }
.td-frow.tl-sortonly { justify-content: flex-end; }
.tl-knows.tl-wait { visibility: hidden; }

/* Screenshots on Report a bug (bug-shots.js). Scoped to .bug-shots. */
.bug-shots { margin: 10px 0 0; }
.bug-shots .bug-shots-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bug-shots .bug-shots-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.bug-shots .bug-shots-list[hidden] { display: none; }
.bug-shots .bug-shot { position: relative; width: 112px; height: 76px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--page); }
.bug-shots .bug-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bug-shots .bug-shot-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-width: 0; padding: 0; border-radius: 50%; line-height: 22px; font-size: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.bug-shots-over { outline: 2px dashed var(--blue); outline-offset: 4px; }

/* ---- Your AIs and the Mac chat (Nimbus for Mac, 2026-11-03) ---- */
.ai-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ai-list { display: flex; flex-direction: column; }
.ai-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #E7E4DD); }
.ai-row:first-child { border-top: none; }
.ai-mark { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: #6B6A66; }
.ai-claude { background: #D97757; }
.ai-chatgpt { background: #10A37F; }
.ai-cursor { background: #111111; }
.ai-ollama { background: #F4F2ED; color: #111111; border: 1px solid #D8D4CB; }
.ai-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-model { flex: none; max-width: 180px; }
.ai-default { flex: none; font-size: 13px; font-weight: 700; color: #0A7A45; background: #E3F9EC; border-radius: 999px; padding: 5px 11px; }
.ai-make { flex: none; }
.mc { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.mc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-pick { display: inline-flex; align-items: center; gap: 8px; }
.mc-plan { color: var(--muted); }
.mc-log { min-height: 220px; }
.mc-empty { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--card); }
.mc-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mc-read { color: var(--muted); }
.mc-facts { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mc-fact { background: var(--card); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-left: 4px solid #12B76A; }
.mc-fact .text { margin: 0; }
.mc-done { color: var(--muted); }
.mc-compose { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: var(--radius); padding: 12px; position: sticky; bottom: 12px; }
.mc-input { width: 100%; box-sizing: border-box; resize: vertical; min-height: 48px; border: none; background: transparent; font: inherit; color: var(--ink); outline: none; }
.mc-row { display: flex; align-items: center; gap: 10px; }
.mc-texts { display: inline-flex; align-items: center; gap: 8px; }
.mc-texts.off { opacity: 0.5; }
.mc-spacer { flex: 1; }
@media (max-width: 600px) { .ai-row { flex-wrap: wrap; } .ai-model { max-width: 100%; } }

/* Nimbus for Mac download card on Connections (2026-11-05, listed accounts only). */
.cn-mac { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cn-mac > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cn-mac .button-link { margin-top: 0; flex: none; }
.cn-mac > .cn-mac-dl { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: none; }
.cn-mac .button-link.cn-dl-2 { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong, rgba(127, 127, 127, 0.35)); }
@media (max-width: 560px) { .cn-mac { flex-direction: column; align-items: stretch; } .cn-mac > .cn-mac-dl { flex-direction: column; align-items: stretch; } .cn-mac .button-link { text-align: center; } }

/* Fixing what caught a held draft (caughtfix.js, 2026-11-15). */
.pf-fix-hint { display: block; margin-top: 4px; }
.pf-fix-box { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; margin-top: 8px; }
.pf-fix-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pf-fix-words { flex: 1 1 220px; min-width: 0; }
.pf-fix-why { width: 100%; }

/* Adding a job, full width (Conner, 2026-11-17: "isn't using the full width
   and it needs to be more visually inviting"). A header with the job's apps,
   a progress bar, then columns; one column on a phone. */
.jb-hero { border: 1px solid var(--line); border-radius: 22px; padding: var(--pad-card);
  background: radial-gradient(900px 260px at 85% -40%, rgba(26, 115, 232, .22), transparent 60%),
    radial-gradient(600px 240px at 10% 140%, rgba(18, 183, 106, .16), transparent 60%), var(--card); }
.jb-hero-top { display: flex; align-items: center; gap: 22px; }
.jb-hero-logos { display: flex; flex: none; }
.jb-hero-logos span { width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-right: -10px;
  border: 3px solid var(--card); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.jb-hero-logos img { width: 32px; height: 32px; object-fit: contain; }
.jb-hero-t { min-width: 0; padding-left: 10px; }
.jb-hero h1 { font: 700 32px/1.12 var(--head); letter-spacing: -0.01em; margin: 4px 0 6px; color: var(--ink); }
.jb-hero p { margin: 0; color: var(--body); font-size: 16px; max-width: 680px; }
.jb-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.jb-facts li { padding: var(--pad-pill) 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--page); font-size: 13px; font-weight: 500; color: var(--ink); }
.jb-facts li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
.jb-flow { display: flex; flex-direction: column; gap: 16px; }
.jb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.jb-opt-logo { width: 18px; height: 18px; object-fit: contain; }
.jb-more-app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--body); font-size: 14px; }
.jb-more-app img { width: 18px; height: 18px; object-fit: contain; }
.jb-more-app .link-btn { margin-left: auto; font-weight: 600; }
.jb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: var(--pad-tile) var(--pad-card); border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.jb-bar button { border-radius: 999px; padding-left: 24px; padding-right: 24px; }
.jb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.jb-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jb-reads { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--body); }
.jb-sts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jb-st { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: var(--pad-tile) var(--pad-card) var(--pad-tile) var(--pad-tile); border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.jb-st-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--page); border: 1px solid var(--line-strong); color: var(--ink); }
.jb-st h3 { margin: 4px 0 3px; font-size: 15px; font-weight: 700; color: var(--ink); }
.jb-st p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); }
.jb-st .jb-same { font-size: 12px; }
.jb-st-opt { border-color: rgba(26, 115, 232, .55); background: linear-gradient(0deg, rgba(26, 115, 232, .07), rgba(26, 115, 232, .07)), var(--card); }
.jb-st-opt .jb-st-n { background: #1A73E8; border-color: #1A73E8; color: #fff; }
.jb-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.jb-side .jb-part { margin-top: 0; }
.jb-sw { align-items: flex-start; }
.jb-sw .small { flex-basis: 100%; color: var(--muted); }
.jb-big { width: 100%; padding: 13px; font-size: 16px; border-radius: 999px; margin-top: 4px; }
.jb-cap { margin: 0; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .jb-two, .jb-split { grid-template-columns: 1fr; }
  .jb-side { position: static; }
}
@media (max-width: 600px) {
  .jb-hero-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .jb-hero-t { padding-left: 0; }
  .jb-hero h1 { font-size: 26px; }
  .jb-step span { display: none; }
  .jb-step.on span { display: inline; }
}


/* The send setting flag (first-run fix 10): shown only when send is auto,
   on the setup cards and in Settings. Red wash so it can't be missed. */
.send-flag { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: var(--red-wash); color: inherit; box-shadow: inset 0 0 0 1px var(--red); text-align: left; }
.send-flag-h { display: block; color: var(--red); margin-bottom: 4px; }
.send-flag-p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.send-flag-back { opacity: .85; }
