/* Graphed — a Cowork-shaped shell: a rail of contexts, the work in the middle, the graph beside it. */
:root {
  --bg: #f5f3ee; --rail: #efece5; --card: #ffffff; --card-2: #faf9f6; --line: #e3dfd6; --line-2: #d6d1c6;
  --ink: #1d1b17; --ink-2: #4a463e; --ink-3: #6b655b; --ink-4: #9a9488;
  --accent: #2f5d62; --accent-ink: #ffffff; --accent-soft: #e2ecec; --warn: #9a6200; --danger: #a33a2c; --ok: #2e6b3a;
  --open: #2f5d62; --paths: #8a6d1f; --private: #847e73;
  --shadow: 0 1px 2px rgba(20,18,12,.05), 0 4px 16px rgba(20,18,12,.05);
  --r: 12px; --rail-w: 264px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16171a; --rail: #1b1c20; --card: #212226; --card-2: #1d1e22; --line: #2e2f35; --line-2: #3a3b42;
    --ink: #ecebe7; --ink-2: #c7c4bc; --ink-3: #8f8c85; --ink-4: #6b6964;
    --accent: #7fb3b8; --accent-ink: #0f1a1b; --accent-soft: #23373a; --warn: #d9a441; --danger: #e48a7c; --ok: #7fbf8a;
    --open: #7fb3b8; --paths: #d9b45a; --private: #8f8c85;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16171a; --rail: #1b1c20; --card: #212226; --card-2: #1d1e22; --line: #2e2f35; --line-2: #3a3b42;
  --ink: #ecebe7; --ink-2: #c7c4bc; --ink-3: #8f8c85; --ink-4: #6b6964;
  --accent: #7fb3b8; --accent-ink: #0f1a1b; --accent-soft: #23373a; --warn: #d9a441; --danger: #e48a7c; --ok: #7fbf8a;
  --open: #7fb3b8; --paths: #d9b45a; --private: #8f8c85;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.hint { color: var(--ink-3); font-size: 12.5px; }
.muted { color: var(--ink-3); }
.err { color: var(--danger); font-size: 13px; margin: 6px 0; }
.note { background: var(--accent-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr) minmax(0, 1.08fr); height: 100vh; height: 100dvh; }
.shell.panel-off { grid-template-columns: var(--rail-w) minmax(0, 1fr) 0; }
.rail { background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.rail .brand { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; font-weight: 680; letter-spacing: -.01em; font-size: 15.5px; }
.rail .brand small { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.rail .brand svg { width: 20px; height: 20px; }
.rail nav { flex: 1; overflow: auto; padding: 4px 8px 12px; }
.rail h4 { margin: 16px 8px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; }
.rail h4 .sp { flex: 1; }
.ritem { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.ritem:hover { background: rgba(127,120,100,.1); }
.ritem.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 560; }
.ritem .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ritem .n { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ritem.sub { padding-left: 30px; font-size: 13px; }
.ritem.add { color: var(--ink-3); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-4); }
.dot.me { background: var(--accent); }
.rail .foot { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rail .who { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.mhead { display: flex; align-items: center; gap: 10px; padding: 14px 22px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); min-width: 0; flex-wrap: wrap; }
.crumbs button { border: 0; background: none; padding: 0; color: var(--ink-3); cursor: pointer; }
.crumbs button:hover { color: var(--ink); }
.crumbs .here { color: var(--ink); font-weight: 600; }
.mhead .sp { flex: 1; }
.tabs { display: flex; gap: 2px; background: var(--rail); border-radius: 9px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--ink-3); font-size: 13px; }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 560; }
.mbody { flex: 1; overflow: auto; padding: 22px 26px 60px; }
.mbody.flush { padding: 0; }

.panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card-2); position: relative; }
.phead { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.phead .title { font-weight: 600; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead .sp { flex: 1; }
.seg { display: inline-flex; background: var(--rail); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; cursor: pointer; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.canvas { flex: 1; position: relative; min-height: 0; }
.canvas .cy { position: absolute; inset: 0; }
.legend { position: absolute; left: 12px; bottom: 12px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; max-width: 250px; max-height: 45%; overflow: auto; }
.legend .row { display: flex; align-items: center; gap: 6px; padding: 1px 0; cursor: pointer; color: var(--ink-2); }
.legend .row.dim { opacity: .45; }
.legend .sw { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend .row .n { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-left: 8px; }
.pstats { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; color: var(--ink-3); text-align: right; pointer-events: none; background: color-mix(in srgb, var(--card-2) 85%, transparent); padding: 4px 6px; border-radius: 8px; }
.hovercard { position: absolute; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; max-width: 280px; z-index: 5; }
.hovercard b { display: block; font-size: 13px; }
.panel-toggle { position: absolute; left: -13px; top: 50%; width: 26px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; z-index: 4; color: var(--ink-3); }

/* detail drawer (inside the panel) */
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 92%); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto; z-index: 6; padding: 16px 18px 40px; }
.drawer .x { position: absolute; right: 10px; top: 10px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-3); }
.drawer h3 { margin: 0 24px 2px 0; font-size: 18px; letter-spacing: -.01em; }
.drawer .sub { color: var(--ink-2); font-size: 13px; }
.drawer h5 { margin: 18px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.drawer .ev { font-size: 13px; color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

/* ---------- content ---------- */
.lead { font-size: 20px; line-height: 1.35; letter-spacing: -.012em; margin: 2px 0 6px; font-weight: 600; max-width: 720px; }
.lead-sub { color: var(--ink-2); max-width: 720px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin: 0 0 2px; font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.card h3 .sp { flex: 1; }
.card .desc { color: var(--ink-3); font-size: 12.5px; margin: 0 0 10px; }
.card.wide { grid-column: 1 / -1; }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 18px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: 12px; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; min-width: 0; }
.li:first-child { border-top: 0; }
.li:hover .nm { color: var(--accent); }
.li .nm { font-weight: 560; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .meta { color: var(--ink-3); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li .r { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 8px; border-radius: 4px; background: var(--rail); overflow: hidden; display: flex; gap: 2px; flex: 1; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.strong { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.pill.good { border-color: var(--accent); color: var(--accent); }
.pill.past { border-style: dashed; }
.pill.open { color: var(--open); border-color: var(--open); }
.pill.paths { color: var(--paths); border-color: var(--paths); }
.pill.private { color: var(--private); }
.pill.fog { color: var(--ink-3); border-style: dashed; }
.pill.reachable { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill.via-paths { color: var(--paths); border-color: var(--paths); }
.pill.via-alumni { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); padding: 6px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 520; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--ink-4); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.sm { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 12.5px; color: var(--ink-2); }
.field input, .field select, .field textarea, input.in, select.in { border: 1px solid var(--line-2); background: var(--card); border-radius: 9px; padding: 8px 10px; font-size: 14px; color: var(--ink); }
.field textarea { resize: vertical; min-height: 64px; }
input.in:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.segs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.segs button { border: 0; background: var(--card); padding: 4px 10px; font-size: 12.5px; cursor: pointer; border-right: 1px solid var(--line); color: var(--ink-2); }
.segs button:last-child { border-right: 0; }
.segs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* import */
.drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 34px 20px; text-align: center; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { font-size: 16px; display: block; margin-bottom: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 34px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.progress { height: 6px; background: var(--rail); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.files { font-size: 12.5px; color: var(--ink-2); columns: 2; }
.files div { break-inside: avoid; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(20,18,12,.35); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 20px 22px; }
.modal h2 { margin: 0 0 4px; font-size: 18px; }
.copybox { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }

/* toasts */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: var(--shadow); }

/* people list */
.plist .li { padding: 9px 0; }
.plist .who { flex: 1; min-width: 0; }
.plist .cue { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Colby */
.mbody.chatbody { display: flex; flex-direction: column; padding-bottom: 0; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat .msgs { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.msg { max-width: 92%; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; box-shadow: var(--shadow); }
.msg.assistant .body p { margin: 0 0 8px; } .msg.assistant .body p:last-child { margin-bottom: 0; }
.msg.assistant .body ul { margin: 4px 0 8px; padding-left: 18px; } .msg.assistant .body li { margin: 3px 0; }
.msg.assistant .body h4 { margin: 8px 0 4px; font-size: 13px; }
.msg .marks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .msg .marks:empty { display: none; }
.chat-empty { margin: 8px 0 16px; }
.starters { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.starters .btn { white-space: normal; text-align: left; }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; background: var(--bg); padding: 10px 0 16px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 9px 12px; font-size: 15px; resize: none; color: var(--ink); }
.composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.askbar { display: flex; gap: 8px; padding: 10px 22px 14px; border-top: 1px solid var(--line); background: var(--bg); }
.askbar .in { flex: 1; font-size: 14.5px; }

/* Garden cards: the whole name on its own line, the actions under it (never a squeezed "Mike Bren…") */
.garden .li { flex-wrap: wrap; }
.garden .li .nm, .bridges .li .nm { white-space: normal; overflow: visible; }
.garden .li > .row { width: 100%; padding-left: 19px; flex-wrap: wrap; }
/* the person or organization open in the side panel is marked wherever it appears in a list */
.li.on { background: var(--accent-soft); box-shadow: -10px 0 0 var(--accent-soft), 10px 0 0 var(--accent-soft); border-radius: 4px; }
.li.on .nm { color: var(--accent); }
.li .open-mark { font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.modal.wide { width: min(760px, 100%); }
.btn.disabled { opacity: .5; pointer-events: none; }
a.btn { text-decoration: none; }
.drawer .synced { font-size: 11.5px; color: var(--ok); margin-left: 6px; }

/* a record you can edit and talk to Colby about */
.rec-head { display: flex; gap: 12px; align-items: center; padding-right: 28px; }
.rec-head h3 { margin: 0; }
.face { width: 52px; height: 52px; border-radius: 50%; flex: none; overflow: hidden; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 17px; border: 1px solid var(--line); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.logo { border-radius: 12px; background: var(--card); }
.face.logo img { width: 60%; height: 60%; object-fit: contain; }
.editbox { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.editbox .field { margin-bottom: 8px; }
.segs.hats { flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.muted { cursor: default; color: var(--ink-3); }
a.chip { text-decoration: none; }
.tell { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.tell h5 { margin-top: 0; }
.tell textarea { font: inherit; font-size: 13.5px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: var(--card); color: var(--ink); resize: vertical; }
.tell-log { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; max-height: 260px; overflow-y: auto; }
.tm { font-size: 13px; line-height: 1.45; padding: 7px 10px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; }
.tm.user { align-self: flex-end; background: var(--accent-soft); color: var(--ink); max-width: 90%; }
.tm.assistant { background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.tm.muted { color: var(--ink-4); }
/* Your read: the top-of-record loop. Say a line; see exactly what moved. */
.yourread { margin: 12px 0 6px; padding: 12px 12px 10px; border: 1px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, var(--accent-soft), var(--card) 72%); }
.card > .yourread { margin: 0; border: 0; padding: 0; background: none; }
.yourread.busy { box-shadow: 0 0 0 3px var(--accent-soft); }
.yr-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.yr-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.yr-tag { font-size: 11px; color: var(--ink-3); font-style: italic; }
.yr-score { font-size: 11.5px; color: var(--ink-3); position: relative; white-space: nowrap; }
.yr-score b { color: var(--accent); font-size: 13px; margin-right: 3px; }
.yr-bump { position: absolute; right: 100%; margin-right: 6px; top: -3px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--ok); animation: bump 2.3s ease-out forwards; }
@keyframes bump { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.2); } 70% { opacity: 1; transform: translateY(-4px) scale(1); } 100% { opacity: 0; transform: translateY(-12px); } }
.yr-input { display: flex; gap: 8px; align-items: flex-end; }
.yr-input textarea { flex: 1; min-width: 0; font: inherit; font-size: 14px; line-height: 1.4; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; background: var(--card); color: var(--ink); resize: vertical; min-height: 46px; }
.yr-input textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.yr-ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.yr-working { margin-top: 10px; font-size: 12.5px; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.yr-working .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dots 1s infinite ease-in-out; }
.yr-working .dot:nth-child(2) { animation-delay: .15s; }
.yr-working .dot:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }
.yr-said { margin-top: 10px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.yr-foot { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.chg-box { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.chg-h { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.chg { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px; align-items: baseline; font-size: 13px; padding: 4px 6px; border-radius: 8px; opacity: 0; animation: chgIn .6s ease-out forwards; }
.chg-i { font-weight: 800; text-align: center; }
.chg-l { color: var(--ink-3); white-space: nowrap; }
.chg-v { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.chg-v s { color: var(--ink-4); }
.chg-arrow { color: var(--ink-3); }
.chg.up .chg-i, .chg.add .chg-i { color: var(--ok); }
.chg.down .chg-i, .chg.remove .chg-i { color: var(--danger); }
.chg.set .chg-i { color: var(--accent); }
@keyframes chgIn { 0% { opacity: 0; transform: translateX(-8px); background: var(--accent-soft); } 55% { opacity: 1; transform: none; background: var(--accent-soft); } 100% { opacity: 1; background: transparent; } }
.chg-reply { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.tm-ch { margin-top: 4px; font-size: 11.5px; color: var(--accent); }
.place { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.place svg { flex: none; overflow: visible; }
.place .ring-c { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 2; }
.place .ring-c.on { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1.5; }
.place .me-dot { fill: var(--accent); }
.place .p-dot-g { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.place .p-dot { fill: var(--ink-4); stroke: var(--card); stroke-width: 1.5; transition: fill .6s; }
.place .p-dot.strong { fill: var(--accent); }
.place .p-dot.good { fill: var(--ok); }
.place .p-dot.weak { fill: var(--paths); }
.place .p-dot.past { fill: var(--ink-3); }
.place .p-dot.nl { fill: var(--danger); opacity: .6; }
.place-t { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.place-t b { font-size: 16px; color: var(--ink); }
/* a record's panel: header, one quiet meta row, Tell Colby, then sections one tap away */
.rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.drawer .sub a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.yourread.compact { margin: 14px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.yourread.compact.busy { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.yourread.compact .place { margin: 0 0 10px; align-items: flex-start; }
.place-ev { margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.yourread.compact .yr-input { display: block; }
.yourread.compact .yr-input textarea { display: block; width: 100%; box-sizing: border-box; min-height: 68px; resize: none; }
.yr-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.yr-act .hint { font-size: 11.5px; line-height: 1.35; }
.more-stack { margin-top: 14px; }
.more { border-top: 1px solid var(--line); }
.more:last-child { border-bottom: 1px solid var(--line); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 11px 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '+'; margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 15px; }
.more[open] > summary::after { content: '\2212'; }
.more-n, .more-h { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.more-b { padding: 0 2px 14px; }
.more-b > h5:first-child { margin-top: 2px; }
.nl-note { margin-top: 10px; }
.role-sel { font-size: 11px; padding: 1px 4px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); color: var(--ink-3); margin-left: 4px; vertical-align: middle; }

/* phone */
.phone-tabs { display: none; }
@media (max-width: 900px) {
  .shell, .shell.panel-off { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .rail { display: none; }
  .rail.open { display: flex; position: fixed; inset: 0 20% 0 0; z-index: 40; box-shadow: var(--shadow); }
  .main, .panel { grid-row: 2; grid-column: 1; border-right: 0; }
  .shell[data-ptab="graph"] .main { display: none; }
  .shell[data-ptab="work"] .panel { display: none; }
  .phone-tabs { display: flex; grid-row: 3; border-top: 1px solid var(--line); background: var(--card); padding-bottom: env(safe-area-inset-bottom); }
  .phone-tabs button { flex: 1; border: 0; background: none; padding: 10px 0 12px; font-size: 12px; color: var(--ink-3); }
  .phone-tabs button.on { color: var(--accent); font-weight: 650; }
  .mhead { padding: 10px 14px; }
  .mbody { padding: 16px 16px 40px; }
  .menu-btn { display: inline-flex !important; }
  .panel-toggle { display: none; }
  .drawer { width: 100%; }
}
.menu-btn { display: none; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink-2); padding: 0 4px; }

/* ---------- your graph, in four jobs: bring, see and frame, reach, take it with you ---------- */
.fourup { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin: 16px 0 20px; max-width: 900px; }
.fourup .step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px; position: relative; }
.fourup .step b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.fourup .step span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.fourup .step i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.fourup .step.here { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.trust { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 14px 0; max-width: 720px; }
.sample-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--paths); border: 1px dashed var(--paths); border-radius: 99px; padding: 0 8px; margin-left: 6px; }

/* ---------- take it with you ---------- */
.outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.out { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.out b { font-size: 13.5px; }
.out span { font-size: 12px; color: var(--ink-3); flex: 1; }
.out .row { margin-top: 6px; }
.out.soon { border-style: dashed; background: var(--card-2); }
.codeline { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; word-break: break-all; }
.tabs.inline { display: inline-flex; margin: 6px 0 4px; }

/* ---------- invitations waiting for a yes ---------- */
.invite-card { border-color: var(--accent); }
.invite-card .would { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 10px; }

/* ---------- phone: a menu you can close, targets a thumb can hit ---------- */
.rail-backdrop { display: none; }
@media (max-width: 900px) {
  .rail-backdrop { display: block; position: fixed; inset: 0; background: rgba(20,18,12,.35); z-index: 39; border: 0; }
  .rail .close-rail { display: inline-flex !important; margin-left: auto; }
  .btn { min-height: 36px; }
  .btn.sm { min-height: 32px; padding: 5px 11px; }
  .seg button, .segs button { padding: 6px 11px; }
  .fourup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.close-rail { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-3); }

/* ---------- a lens reading itself: Colby's read, "is this right?", Colby asks ---------- */
.lensread { margin-bottom: 14px; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lensread.reading { box-shadow: 0 0 0 3px var(--accent-soft); }
.lr-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.lr-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.lr-sum { font-size: 15px; line-height: 1.45; color: var(--ink); margin: 2px 0 10px; }
.lr-looks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lr-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.chip.lr-place { border-color: var(--accent); color: var(--accent); }
.lr-words { font-size: 12px; color: var(--ink-3); margin: 8px 0 2px; line-height: 1.45; }
.lr-stats { margin: 14px 0 8px; }
.lr-h { font-size: 13px; font-weight: 700; margin: 10px 0 2px; color: var(--ink); }
.lr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 8px; }
.lr-row .why { font-size: 11.5px; color: var(--accent); margin-top: 1px; }
.lr-row .lr-act { display: flex; gap: 4px; flex: none; }
.lr-row.in { background: var(--accent-soft); }
.lr-row.out { opacity: .45; }
.lr-row .btn.ghost.on { color: var(--danger); border-color: var(--danger); }
.lr-steps { margin: 6px 0 4px 18px; padding: 0; font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.lr-steps li.done { color: var(--ok); }
.lr-steps li.now { color: var(--ink); font-weight: 600; }
.lr-asks { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.lr-q { margin: 10px 0 12px; }
.lr-q .q { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.lr-said { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.sw-place { width: 14px; flex: none; text-align: center; color: var(--accent); font-size: 13px; line-height: 1; }
.cue.lens-why { color: var(--accent); }
@media (max-width: 900px) { .lr-row { flex-wrap: wrap; } .lr-row .lr-act { width: 100%; justify-content: flex-end; } }

/* ---------- what's actionable from here: next moves, play, share ---------- */
.moves { margin-bottom: 14px; border-color: var(--accent); }
.mv-list { display: flex; flex-direction: column; margin: 6px 0 2px; }
.mv { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.mv:last-child { border-bottom: 0; }
.mv.closed { opacity: .6; }
.mv-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mv-kind { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.mv.k-ask_intro .mv-kind, .mv.k-ask_member .mv-kind { background: color-mix(in srgb, var(--paths) 16%, transparent); color: var(--paths); }
.mv.k-revive .mv-kind { background: var(--rail); color: var(--ink-2); }
.mv.k-find .mv-kind { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); }
.mv-title { font-weight: 650; font-size: 14px; color: var(--ink); line-height: 1.35; min-width: 0; }
.mv-why { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.mv-who { font-size: 12.5px; color: var(--ink-2); }
.mv-preview { font-size: 13px; color: var(--ink-2); cursor: pointer; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-draft { display: flex; flex-direction: column; gap: 6px; }
.mv-draft input, .mv-draft textarea { width: 100%; border: 1px solid var(--line-2); background: var(--card-2); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.mv-draft textarea { resize: vertical; min-height: 96px; }
.mv-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.mv-act .sp { flex: 1; }
.play, .share { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.sw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.share-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.share-row:last-child { border-bottom: 0; }
.share-row > b { font-size: 13px; color: var(--ink); }
.share-row > span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; max-width: 62ch; }
.share-row > .row { margin-top: 5px; gap: 6px; }
.pic-btn { gap: 5px; }
.pic .pic-opts { margin: 10px 0 2px; }
.pic-frame { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 160px; display: grid; place-items: center; }
.pic-frame img { max-width: 100%; max-height: 52vh; border-radius: 6px; box-shadow: var(--shadow); transition: opacity .2s; }
.pic-frame img.busy { opacity: .45; }
.play .btn.on { border-color: var(--accent); color: var(--accent); font-weight: 650; }