/* Takes manifesto swirl. Light by default; data-theme="dark" for the dark band. */
.tk-swirl{--sw-ink:#1B1A26;--sw-line:rgba(27,26,38,.62);--sw-calm:rgba(27,26,38,.22);--sw-tile:#FFFDF8;--sw-tile-edge:rgba(27,26,38,.12);
  --sw-dot:#FBF7EE;--sw-lbl:#5A5768;--sw-star:rgba(27,26,38,.28);--sw-lime:#D8FF3D;--sw-ring:transparent;
  position:relative;width:100%;aspect-ratio:16/9;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-swirl[data-theme="dark"]{--sw-ink:#F3F0E8;--sw-line:rgba(243,240,232,.6);--sw-calm:rgba(243,240,232,.2);--sw-tile:#FBF7EE;--sw-tile-edge:transparent;
  --sw-dot:#24232E;--sw-lbl:#B9B5C4;--sw-star:rgba(243,240,232,.26);--sw-ring:transparent}
.tk-swirl-svg{width:100%;height:100%;overflow:visible}
.tk-swirl .ln{fill:none;stroke:var(--sw-line);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.tk-swirl .ln-b{stroke-width:1.75}
.tk-swirl .cn{fill:none;stroke:var(--sw-calm);stroke-width:1.25;stroke-dasharray:1;stroke-dashoffset:0}
.tk-swirl .ed{fill:none;stroke:var(--sw-ink);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;opacity:.55}
.tk-swirl .ed-path{opacity:1;stroke-width:2}
.tk-swirl .st{stroke:var(--sw-star);stroke-width:1;stroke-dasharray:1;stroke-dashoffset:0}
.tk-swirl .dot{fill:var(--sw-dot);stroke:var(--sw-ink);stroke-width:2}
.tk-swirl .keep .dot{fill:var(--sw-lime);stroke:var(--sw-ink)}
.tk-swirl[data-theme="dark"] .keep .dot{stroke:var(--sw-lime)}
.tk-swirl .lbl{fill:var(--sw-lbl);font:600 calc(20px * var(--sw-k,1)) "Instrument Sans",system-ui,sans-serif;letter-spacing:.02em}
.tk-swirl .keep .lbl{fill:var(--sw-ink)}
.tk-swirl .tile-bg{fill:var(--sw-tile);stroke:var(--sw-tile-edge);stroke-width:1}
.tk-swirl .mark-code{color:#1B1A26}

/* Claim 2 + 3 visuals (visuals.js) share the swirl tokens. */
.tk-vis{--sw-ink:#1B1A26;--sw-line:rgba(27,26,38,.62);--sw-tile:#FFFDF8;--sw-tile-edge:rgba(27,26,38,.12);--sw-dot:#FBF7EE;--sw-lbl:#5A5768;--sw-lime:#D8FF3D;
  --v-bubble:#FFFDF8;--v-edge:rgba(27,26,38,.12);--v-text:#1B1A26;--v-muted:#6C6878;--v-link:rgba(27,26,38,.38);--v-silo:#F3EEE2;--v-silo-edge:rgba(27,26,38,.16);--v-card:#FFFDF8;--v-glyph:#6C6878;
  position:relative;width:100%;aspect-ratio:16/9;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-vis[data-layout="wide"][data-kind="chat"]{aspect-ratio:1600/780}
.tk-vis[data-layout="tall"][data-kind="chat"]{aspect-ratio:900/1240}
.tk-vis[data-layout="tall"][data-kind="silos"]{aspect-ratio:900/1000}
.tk-vis[data-theme="dark"]{--sw-ink:#F3F0E8;--sw-tile:#FBF7EE;--sw-tile-edge:transparent;--sw-dot:#24232E;--sw-lbl:#B9B5C4;
  --v-bubble:#2F2E3B;--v-edge:rgba(243,240,232,.10);--v-text:#F3F0E8;--v-muted:#B9B5C4;--v-link:rgba(243,240,232,.36);--v-silo:#2B2A36;--v-silo-edge:rgba(243,240,232,.14);--v-card:#363543;--v-glyph:#B9B5C4}
.tk-vis-svg{width:100%;height:100%;overflow:visible}
.tk-vis .tile-bg{fill:var(--sw-tile);stroke:var(--sw-tile-edge);stroke-width:1}
.tk-vis .mark-code{color:#1B1A26}
.tk-vis .bubble{fill:var(--v-bubble);stroke:var(--v-edge);stroke-width:1}
.tk-vis .v-q{fill:var(--v-text);font-weight:500;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-vis .role{fill:var(--v-muted);font-weight:600;letter-spacing:.01em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-vis .av-ring{fill:none;stroke:rgba(27,26,38,.08);stroke-width:1}
.tk-vis .ed{fill:none;stroke:var(--sw-ink);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:1;opacity:.55}
.tk-vis .ed-path{opacity:1;stroke-width:2}
.tk-vis .dot{fill:var(--sw-dot);stroke:var(--sw-ink);stroke-width:2}
.tk-vis .keep.lit .dot{fill:var(--sw-lime)}
.tk-vis[data-theme="dark"] .keep.lit .dot{stroke:var(--sw-lime)}
.tk-vis .lbl{fill:var(--sw-lbl);font-weight:600;letter-spacing:.02em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-vis .halo{fill:none;stroke:var(--sw-ink);stroke-width:1;opacity:0;stroke-dasharray:3 4}
.tk-vis .link{fill:none;stroke:var(--v-link);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:1}
.tk-vis .silo-bg{fill:var(--v-silo);stroke:var(--v-silo-edge);stroke-width:1.5}
.tk-vis .silo-lid{stroke:var(--sw-ink);stroke-width:4;stroke-linecap:round;opacity:.5}
.tk-vis .silo-label{fill:var(--v-muted);font-weight:500;letter-spacing:.01em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-vis .glyph{fill:none;stroke:var(--v-glyph);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.tk-vis .card-bg{fill:var(--v-card);stroke:var(--v-edge);stroke-width:1}
.tk-vis .card-ic{fill:none;stroke:var(--v-glyph);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tk-vis .thread{fill:none;stroke:var(--sw-ink);stroke-width:2;stroke-linecap:round;stroke-dasharray:1}
.tk-vis .tether{fill:none;stroke:var(--sw-ink);stroke-width:1.25;stroke-dasharray:1;opacity:.6}
.tk-vis .nd.end .dot{fill:var(--sw-ink)}

/* Claim 3 visual (contexts.js): agent contexts before/after. */
.tk-contexts{--sw-ink:#1B1A26;--sw-lime:#D8FF3D;--v-silo:#F3EEE2;--v-silo-edge:rgba(27,26,38,.16);--v-glyph:#6C6878;--v-muted:#6C6878;--v-dot:#FBF7EE;
  position:relative;width:100%;aspect-ratio:16/9;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-contexts[data-layout="tall"]{aspect-ratio:900/1340}
.tk-contexts-svg{width:100%;height:100%;overflow:visible;display:block}
.tk-contexts .app-bg{fill:var(--v-silo);stroke:var(--v-silo-edge);stroke-width:1.5}
.tk-contexts .app-label{fill:var(--v-muted);font-weight:500;letter-spacing:.01em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-contexts .glyph{fill:none;stroke:var(--v-glyph);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.tk-contexts .ed{fill:none;stroke:var(--sw-ink);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;opacity:.62}
.tk-contexts .ah{fill:none;stroke:var(--sw-ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tk-contexts .layer-label{fill:var(--v-muted);font-weight:500;letter-spacing:.04em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-contexts .caption{fill:var(--v-muted);font-weight:500;letter-spacing:.14em;font-family:"Instrument Sans",system-ui,sans-serif}
.tk-contexts .pill-bg{fill:var(--sw-lime);stroke:var(--sw-ink);stroke-width:1.5}
.tk-contexts .pill-num,.tk-contexts .pill-title{fill:var(--sw-ink);font-family:"Instrument Sans",system-ui,sans-serif}
.tk-contexts .pill-num{font-weight:600;letter-spacing:.01em}
.tk-contexts .pill-title{font-weight:500}
.tk-contexts .dot{fill:var(--v-dot);stroke:var(--sw-ink);stroke-width:2}
