/* tokens/fonts.css, from the design system */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/IBMPlexMono-600.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:100 700;font-display:swap;src:url('/assets/fonts/IBMPlexSans-400.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:200 800;font-display:swap;src:url('/assets/fonts/Newsreader-400.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:200 800;font-display:swap;src:url('/assets/fonts/Newsreader-400-italic.woff2') format('woff2');}

/* the design tokens (kit/design/tokens.xml) */
:root{
--vellum-50:#FAF6EE;
--vellum-100:#F4EEE2;
--vellum-150:#EEE7D9;
--vellum-200:#E7DECD;
--vellum-300:#DACEB8;
--vellum-400:#C9BAA0;
--graphite-300:#B3A796;
--graphite-400:#978B7B;
--graphite-500:#766C60;
--graphite-600:#5C544B;
--graphite-800:#3A342E;
--graphite-900:#2A2622;
--umber-1000:#120D09;
--umber-950:#18120D;
--umber-900:#201811;
--umber-850:#281E16;
--umber-800:#31251B;
--umber-700:#45362A;
--umber-600:#5B4838;
--umber-500:#7C6752;
--parchment-100:#F1E6D2;
--parchment-300:#CBBBA2;
--parchment-500:#A38F76;
--pine-100:#D8E8DF;
--pine-300:#86C4AB;
--pine-400:#5FAE8F;
--pine-500:#1F5E4A;
--pine-600:#194D3D;
--pine-700:#133D30;
--pine-900:#12302A;
--ochre-400:#D8A64E;
--ochre-600:#94650F;
--sage-400:#9DB282;
--sage-600:#4F6A40;
--madder-400:#E0705E;
--madder-600:#A3302A;
--clay-400:#B8876A;
--slate-300:#9DB6C3;
--slate-400:#7F929B;
--slate-600:#3E5F70;
--rose-400:#C98A9A;
--bg-app:var(--vellum-100);
--bg-sunken:var(--vellum-200);
--surface-1:var(--vellum-50);
--surface-2:var(--vellum-150);
--surface-3:var(--vellum-200);
--surface-inverse:var(--graphite-900);
--fg-1:var(--graphite-900);
--fg-2:var(--graphite-600);
--fg-3:var(--graphite-500);
--fg-4:var(--graphite-400);
--fg-inverse:var(--vellum-50);
--fg-on-accent:#FFF8F0;
--border-1:var(--vellum-300);
--border-2:var(--vellum-400);
--border-strong:var(--graphite-500);
--rule:var(--graphite-900);
--accent:var(--pine-500);
--accent-hover:var(--pine-600);
--accent-press:var(--pine-700);
--accent-fg:var(--pine-600);
--accent-subtle:var(--pine-100);
--focus-ring:var(--pine-500);
--state-running:var(--pine-500);
--state-running-bg:var(--pine-100);
--state-waiting:var(--ochre-600);
--state-waiting-bg:#F1E2C1;
--state-done:var(--slate-600);
--state-done-bg:#DCE5EA;
--state-error:var(--madder-600);
--state-error-bg:#F2D7D0;
--state-stopped:var(--graphite-500);
--state-stopped-bg:var(--vellum-200);
--data-1:var(--ochre-400);
--data-2:var(--slate-400);
--data-3:var(--clay-400);
--data-4:var(--rose-400);
--data-5:var(--graphite-400);
--data-6:var(--pine-300);
--text-body:var(--fg-1);
--text-muted:var(--fg-2);
--text-subtle:var(--fg-3);
--text-link:var(--accent-fg);
--surface-card:var(--surface-1);
--surface-overlay:rgba(42,38,34,.32);
--surface-code:var(--vellum-150);
--code-fg:var(--graphite-900);
--code-muted:var(--graphite-400);
--code-border:var(--vellum-300);
--code-hl:rgba(31,94,74,.10);
--grid-minor:rgba(120,96,64,.09);
--grid-major:rgba(120,96,64,.17);
--font-sans:'IBM Plex Sans',system-ui,sans-serif;
--font-mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
--font-serif:'Newsreader',Georgia,serif;
--font-display:var(--font-serif);
--fs-11:11px;
--fs-12:12px;
--fs-13:13px;
--fs-14:14px;
--fs-16:16px;
--fs-18:18px;
--fs-22:22px;
--fs-30:30px;
--fs-44:44px;
--fs-64:64px;
--fs-88:88px;
--lh-tight:1;
--lh-snug:1.2;
--lh-body:1.55;
--lh-prose:1.6;
--lh-code:1.6;
--tracking-display:-0.02em;
--tracking-tight:-0.01em;
--tracking-label:0.12em;
--fw-regular:400;
--fw-medium:500;
--fw-semibold:600;
--type-display:var(--fw-regular) var(--fs-64)/var(--lh-tight) var(--font-display);
--type-h1:var(--fw-regular) var(--fs-44)/1.05 var(--font-display);
--type-h2:var(--fw-regular) var(--fs-30)/var(--lh-snug) var(--font-display);
--type-h3:var(--fw-semibold) var(--fs-18)/var(--lh-snug) var(--font-sans);
--type-prose:var(--fw-regular) var(--fs-18)/var(--lh-prose) var(--font-serif);
--type-body:var(--fw-regular) var(--fs-16)/var(--lh-body) var(--font-sans);
--type-body-sm:var(--fw-regular) var(--fs-14)/var(--lh-body) var(--font-sans);
--type-ui:var(--fw-medium) var(--fs-13)/1 var(--font-sans);
--type-label:var(--fw-medium) var(--fs-11)/1 var(--font-mono);
--type-code:var(--fw-regular) var(--fs-13)/var(--lh-code) var(--font-mono);
--space-0:0;
--space-1:4px;
--space-2:8px;
--space-3:12px;
--space-4:16px;
--space-5:20px;
--space-6:24px;
--space-8:32px;
--space-10:40px;
--space-12:48px;
--space-16:64px;
--space-24:96px;
--radius-0:0;
--radius-1:1px;
--radius-2:2px;
--radius-3:2px;
--radius-pill:999px;
--border-width:1px;
--control-h-sm:26px;
--control-h-md:32px;
--control-h-lg:40px;
--control-px-sm:8px;
--control-px-md:12px;
--control-px-lg:16px;
--control-fs-sm:12px;
--control-fs-md:13px;
--control-fs-lg:14px;
--control-gap-sm:6px;
--control-gap-md:8px;
--control-gap-lg:8px;
--choice-size:16px;
--choice-gap:8px;
--disabled-opacity:.45;
--content-max:1120px;
--prose-max:680px;
--sidebar-w:248px;
--shadow-0:none;
--shadow-pop:0 0 0 1px var(--border-2),0 8px 24px rgba(60,40,20,.12);
--shadow-dialog:0 0 0 1px var(--border-2),0 24px 64px rgba(60,40,20,.2);
--ring:0 0 0 2px var(--bg-app),0 0 0 4px var(--focus-ring);
--ease-step:cubic-bezier(.2,0,0,1);
--ease-out:cubic-bezier(.16,1,.3,1);
--dur-instant:80ms;
--dur-fast:140ms;
--dur-base:220ms;
--dur-slow:360ms;
--ease-move:cubic-bezier(.45,0,.2,1);
--dur-move:700ms;
--paper-0:var(--bg-app);
--paper-1:var(--surface-1);
--paper-2:color-mix(in oklch,var(--surface-1) 68%,transparent);
--paper-3:var(--surface-1);
--edge-1:0 1px 0 var(--border-2);
--edge-2:0 2px 0 var(--border-2);
--edge-3:var(--shadow-pop);
--vellum-blur:.6px;
--defocus-blur:1.6px;
--defocus-opacity:.42;
--bg-grid:linear-gradient(var(--grid-major) 1px,transparent 1px) -1px -1px/40px 40px,linear-gradient(90deg,var(--grid-major) 1px,transparent 1px) -1px -1px/40px 40px,linear-gradient(var(--grid-minor) 1px,transparent 1px) -1px -1px/8px 8px,linear-gradient(90deg,var(--grid-minor) 1px,transparent 1px) -1px -1px/8px 8px;
}
[data-theme="dark"]{
--bg-app:var(--umber-950);
--bg-sunken:var(--umber-1000);
--surface-1:var(--umber-900);
--surface-2:var(--umber-850);
--surface-3:var(--umber-800);
--surface-inverse:var(--parchment-100);
--fg-1:var(--parchment-100);
--fg-2:var(--parchment-300);
--fg-3:var(--parchment-500);
--fg-4:var(--umber-500);
--fg-inverse:var(--umber-950);
--fg-on-accent:var(--umber-1000);
--border-1:var(--umber-700);
--border-2:var(--umber-600);
--border-strong:var(--umber-500);
--rule:var(--parchment-300);
--accent:var(--pine-400);
--accent-hover:var(--pine-300);
--accent-press:var(--pine-500);
--accent-fg:var(--pine-300);
--accent-subtle:var(--pine-900);
--focus-ring:var(--pine-400);
--state-running:var(--pine-300);
--state-running-bg:var(--pine-900);
--state-waiting:var(--ochre-400);
--state-waiting-bg:#3D2C12;
--state-done:var(--slate-300);
--state-done-bg:#1C2A33;
--state-error:var(--madder-400);
--state-error-bg:#45190F;
--state-stopped:var(--parchment-500);
--state-stopped-bg:var(--umber-800);
--surface-overlay:rgba(10,7,5,.7);
--surface-code:var(--umber-1000);
--code-fg:var(--parchment-100);
--code-muted:var(--umber-500);
--code-border:var(--umber-700);
--code-hl:rgba(95,174,143,.14);
--grid-minor:rgba(241,230,210,.045);
--grid-major:rgba(241,230,210,.09);
--shadow-pop:0 0 0 1px var(--border-2),0 8px 24px rgba(0,0,0,.5);
--shadow-dialog:0 0 0 1px var(--border-2),0 24px 64px rgba(0,0,0,.6);
}

/* tokens/base.css, from the design system */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg-app);color:var(--fg-1);font:var(--type-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--text-link);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px}
a:hover{color:var(--fg-1);text-decoration-color:currentColor}
code,kbd,pre,samp{font-family:var(--font-mono)}
::selection{background:var(--accent-subtle);color:var(--fg-1)}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
h1,h2,h3,h4,p{margin:0;text-wrap:pretty}

/* components/components.css, from the design system */
/* Tinyactors component styles — referenced by components/*.jsx via ta-* classes */
.ta-btn{display:inline-flex;align-items:center;justify-content:center;height:var(--control-h-md);padding:0 var(--control-px-md);font-size:var(--control-fs-md);gap:var(--control-gap-md);box-sizing:border-box;border:1px solid transparent;border-radius:var(--radius-2);font-family:var(--font-sans);font-weight:var(--fw-medium);line-height:1;letter-spacing:0;white-space:nowrap;cursor:pointer;transition:background var(--dur-fast) var(--ease-step),border-color var(--dur-fast) var(--ease-step),color var(--dur-fast) var(--ease-step),transform var(--dur-instant) var(--ease-step);user-select:none}
.ta-btn:active:not(:disabled){transform:translateY(1px)}
.ta-btn:focus-visible{outline:0;box-shadow:var(--ring)}
.ta-btn:disabled{cursor:not-allowed;color:var(--fg-4);background:transparent;border-color:var(--border-1);transform:none}
.ta-btn--primary:disabled{background:var(--surface-2)}
.ta-btn--ghost:disabled{border-color:transparent}
.ta-btn--sm{height:var(--control-h-sm);padding:0 var(--control-px-sm);font-size:var(--control-fs-sm);gap:var(--control-gap-sm)}
.ta-btn--lg{height:var(--control-h-lg);padding:0 var(--control-px-lg);font-size:var(--control-fs-lg);gap:var(--control-gap-lg)}
.ta-btn--primary{background:var(--accent);color:var(--fg-on-accent)}
.ta-btn--primary:hover:not(:disabled){background:var(--accent-hover)}
.ta-btn--primary:active:not(:disabled){background:var(--accent-press)}
.ta-btn--secondary{background:transparent;color:var(--fg-1);border-color:var(--border-strong)}
.ta-btn--secondary:hover:not(:disabled){background:var(--surface-2);border-color:var(--fg-1)}
.ta-btn--ghost{background:transparent;color:var(--fg-2)}
.ta-btn--ghost:hover:not(:disabled){background:var(--surface-2);color:var(--fg-1)}
.ta-btn--danger{background:transparent;color:var(--state-error);border-color:var(--state-error)}
.ta-btn--danger:hover:not(:disabled){background:var(--state-error-bg)}
.ta-btn--icon{width:var(--control-h-md);padding:0}.ta-btn--icon.ta-btn--sm{width:var(--control-h-sm)}.ta-btn--icon.ta-btn--lg{width:var(--control-h-lg)}
.ta-icon{display:inline-flex;flex:none;vertical-align:middle;color:inherit;line-height:0}.ta-icon svg{display:block;width:100%;height:100%}
.ta-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:1px solid var(--border-2);border-bottom-width:2px;border-radius:var(--radius-1);background:var(--surface-2);color:var(--fg-2);font:500 11px/1 var(--font-mono)}
.ta-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ta-label{font:var(--type-label);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--fg-3)}
.ta-hint{font:400 12px/1.4 var(--font-sans);color:var(--fg-3)}
.ta-hint--error{color:var(--state-error)}
.ta-control{display:flex;align-items:center;height:var(--control-h-md);padding:0 var(--control-px-md);font-size:var(--control-fs-md);gap:var(--control-gap-md);box-sizing:border-box;background:var(--bg-sunken);border:1px solid var(--border-2);border-radius:var(--radius-2);color:var(--fg-1);transition:border-color var(--dur-fast) var(--ease-step)}
.ta-control:hover{border-color:var(--border-strong)}
.ta-control:focus-within{border-color:var(--focus-ring);box-shadow:var(--ring)}
.ta-control--error{border-color:var(--state-error)}
.ta-control--sm{height:var(--control-h-sm);padding:0 var(--control-px-sm);font-size:var(--control-fs-sm);gap:var(--control-gap-sm)}
.ta-control--lg{height:var(--control-h-lg);padding:0 var(--control-px-lg);font-size:var(--control-fs-lg);gap:var(--control-gap-lg)}
.ta-control--disabled,.ta-control--disabled:hover{cursor:not-allowed;color:var(--fg-4);background:var(--surface-2);border-color:var(--border-1)}.ta-control--disabled>*{pointer-events:none;color:var(--fg-4)!important}.ta-control--disabled input::placeholder{color:var(--fg-4)}
.ta-control input,.ta-control select{flex:1;min-width:0;height:100%;background:none;border:0;outline:0;color:inherit;font:400 1em/1 var(--font-sans);padding:0}
.ta-control input:focus-visible,.ta-control select:focus-visible{outline:0}
.ta-control--mono input{font-family:var(--font-mono)}
.ta-control input::placeholder{color:var(--fg-4)}
.ta-control select{appearance:none;cursor:pointer}
.ta-control select option{background:var(--surface-2);color:var(--fg-1)}
.ta-prefix{font:400 1em/1 var(--font-mono);color:var(--fg-3)}
.ta-check{position:relative;display:inline-flex;align-items:center;gap:var(--choice-gap);min-height:var(--control-h-sm);font:400 var(--control-fs-md)/var(--choice-size) var(--font-sans);white-space:nowrap;color:var(--fg-1);cursor:pointer}
.ta-check input{position:absolute;opacity:0;pointer-events:none}
.ta-check__box{width:var(--choice-size);height:var(--choice-size);box-sizing:border-box;flex:none;display:grid;place-items:center;border:1px solid var(--border-strong);background:var(--bg-sunken);border-radius:var(--radius-1);transition:all var(--dur-fast) var(--ease-step)}
.ta-check--radio .ta-check__box{border-radius:50%}
.ta-check input:checked+.ta-check__box{background:var(--accent);border-color:var(--accent)}
.ta-check input:checked+.ta-check__box::after{content:"";width:8px;height:8px;background:var(--fg-on-accent);-webkit-mask:var(--ta-tick) center/contain no-repeat;mask:var(--ta-tick) center/contain no-repeat}
.ta-check--radio input:checked+.ta-check__box{background:var(--bg-sunken)}
.ta-check--radio input:checked+.ta-check__box::after{-webkit-mask:none;mask:none;background:var(--accent);border-radius:50%;width:8px;height:8px}
.ta-check input:focus-visible+.ta-check__box{box-shadow:var(--ring)}
.ta-check.ta-check--disabled,.ta-switch.ta-switch--disabled{color:var(--fg-4);cursor:not-allowed}
.ta-check--disabled .ta-check__box{border-color:var(--border-2);background:var(--surface-2)}
.ta-check--disabled input:checked+.ta-check__box{background:var(--border-2);border-color:var(--border-2)}
.ta-check--disabled input:checked+.ta-check__box::after{background:var(--fg-4)}
.ta-check--radio.ta-check--disabled input:checked+.ta-check__box{background:var(--surface-2)}
.ta-switch--disabled .ta-switch__track{background:var(--border-1)}
.ta-switch--disabled .ta-switch__track::after{background:var(--surface-2)}
.ta-switch--disabled input:checked+.ta-switch__track{background:var(--border-2)}
.ta-switch--disabled input:checked+.ta-switch__track::after{background:var(--surface-1)}
:root{--ta-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.5 8.5 2.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");/* @kind other */}
.ta-switch{position:relative;display:inline-flex;white-space:nowrap;align-items:center;gap:var(--choice-gap);min-height:var(--control-h-sm);font:400 var(--control-fs-md)/var(--choice-size) var(--font-sans);color:var(--fg-1);cursor:pointer}
.ta-switch input{position:absolute;opacity:0;pointer-events:none}
.ta-switch__track{position:relative;width:28px;height:var(--choice-size);flex:none;border-radius:var(--radius-pill);background:var(--border-2);transition:background var(--dur-fast) var(--ease-step)}
.ta-switch__track::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--surface-1);transition:transform var(--dur-base) var(--ease-out)}
.ta-switch input:checked+.ta-switch__track{background:var(--accent)}
.ta-switch input:checked+.ta-switch__track::after{transform:translateX(12px);background:var(--fg-on-accent)}
.ta-switch input:focus-visible+.ta-switch__track{box-shadow:var(--ring)}
.ta-card{background:var(--surface-card);border:1px solid var(--border-1);border-radius:var(--radius-3);min-width:0}
.ta-card--interactive{cursor:pointer;transition:border-color var(--dur-fast) var(--ease-step),background var(--dur-fast) var(--ease-step)}
.ta-card--interactive:hover{border-color:var(--border-strong);background:var(--surface-2)}
.ta-card__head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border-1)}
.ta-card__eyebrow{font:var(--type-label);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--fg-3)}
.ta-card__title{font:600 14px/1.3 var(--font-sans);color:var(--fg-1)}
.ta-card__body{padding:16px;min-width:0}
.ta-badge{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 7px;border-radius:var(--radius-1);font:500 11px/1 var(--font-mono);letter-spacing:.02em;color:var(--c);background:var(--b);white-space:nowrap}.ta-badge--dot{padding:0;width:20px;justify-content:center;gap:0}
.ta-badge__dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.ta-badge--running .ta-badge__dot{animation:ta-pulse 1.4s var(--ease-step) infinite}
@keyframes ta-pulse{50%{opacity:.35}}
.ta-tag{display:inline-flex;align-items:center;gap:6px;height:20px;padding:0 8px;border:1px solid var(--border-2);border-radius:var(--radius-2);font:400 12px/1 var(--font-mono);color:var(--fg-1);background:var(--surface-2);white-space:nowrap}
.ta-tag__glyph{color:var(--accent-fg)}
.ta-tag--removable button{all:unset;cursor:pointer;color:var(--fg-3);display:inline-flex}
.ta-tag--removable button:hover{color:var(--fg-1)}
.ta-code{background:var(--surface-code);border:1px solid var(--border-1);border-radius:var(--radius-3);overflow:hidden;color:var(--code-fg);border-color:var(--code-border)}
.ta-code__head{display:flex;align-items:center;justify-content:space-between;gap:12px;height:32px;padding:0 8px 0 12px;border-bottom:1px solid var(--code-border);font:400 12px/1 var(--font-mono);color:var(--code-muted)}
.ta-code pre{margin:0;padding:14px 0;overflow:auto;font:var(--type-code)}
.ta-code__line{display:flex;padding:0 16px 0 0}
.ta-code__line--hl{background:var(--code-hl);box-shadow:inset 2px 0 0 var(--accent)}
.ta-code__ln{width:40px;flex:none;padding-right:14px;text-align:right;color:var(--code-muted);user-select:none}
.ta-code__nolns .ta-code__line{padding-left:16px}
.ta-sheet{position:relative;padding:14px;background:var(--bg-app)}
.ta-sheet__frame{position:relative;height:100%;border:1.5px solid var(--rule);background:var(--surface-1)}
.ta-sheet__frame::before{content:"";position:absolute;inset:4px;border:.5px solid var(--border-2);pointer-events:none;z-index:1}
.ta-sheet--grid .ta-sheet__frame{background:var(--bg-grid),var(--surface-1)}
.ta-sheet__reg{position:absolute;width:14px;height:14px;z-index:2}
.ta-sheet__reg::before,.ta-sheet__reg::after{content:"";position:absolute;background:var(--rule)}
.ta-sheet__reg::before{left:6.5px;top:0;width:1px;height:14px}.ta-sheet__reg::after{top:6.5px;left:0;height:1px;width:14px}
.ta-sheet__reg i{position:absolute;inset:3px;border:1px solid var(--rule);border-radius:50%}
.ta-sheet__reg--tl{left:7px;top:7px}.ta-sheet__reg--tr{right:7px;top:7px}.ta-sheet__reg--bl{left:7px;bottom:7px}.ta-sheet__reg--br{right:7px;bottom:7px}
.ta-sheet__body{position:relative;z-index:1;height:100%}
.ta-sheet--flush{padding:0;background:transparent}.ta-sheet--flush .ta-sheet__reg{display:none}
.ta-tabs{display:flex;gap:2px;border-bottom:1px solid var(--border-1)}
.ta-tab{all:unset;position:relative;display:inline-flex;align-items:center;gap:8px;height:var(--control-h-lg);padding:0 var(--control-px-md);font:var(--type-ui);color:var(--fg-3);cursor:pointer;transition:color var(--dur-fast) var(--ease-step)}
.ta-tab:hover{color:var(--fg-1)}
.ta-tab[aria-selected="true"]{color:var(--fg-1)}
.ta-tab[aria-selected="true"]::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--accent)}
.ta-tab:focus-visible{box-shadow:var(--ring);border-radius:var(--radius-2)}
.ta-tab:disabled,.ta-tab[aria-disabled="true"]{color:var(--fg-4);cursor:not-allowed}
.ta-tab__count{font:400 11px/1 var(--font-mono);color:var(--fg-4)}
.ta-tabs--segmented{display:inline-flex;width:max-content;max-width:100%;box-sizing:border-box;gap:0;padding:2px;border:1px solid var(--border-1);border-radius:var(--radius-2);background:var(--bg-sunken)}
.ta-tabs--segmented .ta-tab{height:calc(var(--control-h-md) - 6px);padding:0 var(--control-px-sm);border-radius:var(--radius-1)}
.ta-tabs--segmented .ta-tab[aria-selected="true"]{background:var(--surface-3)}
.ta-tabs--segmented .ta-tab[aria-selected="true"]::after{display:none}
.ta-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:var(--surface-overlay);backdrop-filter:blur(2px);animation:ta-fade var(--dur-base) var(--ease-out)}
.ta-dialog{width:100%;max-width:460px;background:var(--surface-1);border-radius:var(--radius-3);box-shadow:var(--shadow-dialog);animation:ta-rise var(--dur-base) var(--ease-out)}
.ta-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 14px 20px;border-bottom:1px solid var(--border-1)}
.ta-dialog__title{font:600 15px/1.3 var(--font-sans)}
.ta-dialog__body{padding:20px;font:var(--type-body-sm);color:var(--fg-2)}
.ta-dialog__foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--border-1)}
@keyframes ta-fade{from{opacity:0}}
@keyframes ta-rise{from{opacity:0;transform:translateY(6px)}}
.ta-toast{display:flex;align-items:flex-start;gap:12px;width:360px;max-width:100%;padding:12px 12px 12px 14px;background:var(--surface-2);border:1px solid var(--border-2);border-radius:var(--radius-3);box-shadow:var(--shadow-pop);animation:ta-rise var(--dur-base) var(--ease-out)}
.ta-toast__mark{margin-top:5px;width:8px;height:8px;flex:none;border-radius:50%;background:var(--c)}
.ta-toast__title{font:600 13px/1.35 var(--font-sans);color:var(--fg-1)}
.ta-toast__msg{font:400 13px/1.45 var(--font-sans);color:var(--fg-2);margin-top:2px}
.ta-toast__msg code{font-size:12px;color:var(--fg-1)}
.ta-tip{position:relative;display:inline-flex}
.ta-tip__bubble{position:absolute;left:50%;z-index:40;padding:6px 8px;background:var(--surface-inverse);color:var(--fg-inverse);border-radius:var(--radius-2);font:500 12px/1.2 var(--font-sans);white-space:nowrap;pointer-events:none;opacity:0;transform:translate(-50%,2px);transition:opacity var(--dur-fast) var(--ease-step),transform var(--dur-fast) var(--ease-step)}
.ta-tip--top .ta-tip__bubble{bottom:calc(100% + 6px)}
.ta-tip--bottom .ta-tip__bubble{top:calc(100% + 6px)}
.ta-tip:hover .ta-tip__bubble,.ta-tip:focus-within .ta-tip__bubble,.ta-tip--open .ta-tip__bubble{opacity:1;transform:translate(-50%,0)}

.ta-spantree__row:hover:not(.is-selected){background:var(--surface-2)}.ta-spantree__dur{opacity:0;transition:opacity var(--dur-fast) var(--ease-out)}.ta-spantree__dur.is-shown,.ta-spantree__row:hover .ta-spantree__dur,.ta-spantree__row:focus-visible .ta-spantree__dur,.ta-spantree__row.is-selected .ta-spantree__dur{opacity:1}.ta-spantree__row:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--focus-ring)}

.ta-arch__flow{animation:ta-flow .9s linear infinite}@keyframes ta-flow{to{stroke-dashoffset:-10}}@media (prefers-reduced-motion:reduce){.ta-arch__flow{animation:none}}

/* depth: paper levels */
.ta-paper-0{background:var(--paper-0)}.ta-paper-1{background:var(--paper-1);border:1px solid var(--border-1);box-shadow:var(--edge-1)}.ta-paper-2{background:var(--paper-2);backdrop-filter:blur(var(--vellum-blur));border:1px solid var(--border-2);box-shadow:var(--edge-2)}.ta-paper-3{background:var(--paper-3);border:1.25px solid var(--fg-1);box-shadow:var(--edge-3)}
/* depth: focus */
.ta-dof>*{transition:filter var(--dur-move) var(--ease-move),opacity var(--dur-move) var(--ease-move),transform var(--dur-move) var(--ease-move),box-shadow var(--dur-move) var(--ease-move)}
.ta-dof:has(>.is-focus)>:not(.is-focus){filter:blur(var(--defocus-blur));opacity:var(--defocus-opacity);transform:scale(.97)}
.ta-dof>.is-focus{transform:translateY(-3px);box-shadow:var(--shadow-pop)}
/* depth: card generations */
.ta-gens{position:relative;display:grid;padding:calc(var(--n)*5px) calc(var(--n)*5px) 0 0}
.ta-gens__sheet{position:absolute;left:0;bottom:0;top:calc(var(--n)*5px);right:calc(var(--n)*5px);border:1px solid var(--border-2);background:var(--surface-1);border-radius:var(--radius-3);transform:translate(calc(var(--i)*5px),calc(var(--i)*-5px));transition:transform 600ms var(--ease-move)}
.ta-gens:hover .ta-gens__sheet{transform:translate(calc(var(--i)*14px),calc(var(--i)*-14px))}
.ta-gens__front{position:relative;display:grid}
.ta-gens__mark{position:absolute;width:12px;height:12px;pointer-events:none;background:linear-gradient(var(--fg-3),var(--fg-3)) 50% 0/1px 100% no-repeat,linear-gradient(var(--fg-3),var(--fg-3)) 0 50%/100% 1px no-repeat}
.ta-gens__mark--tl{left:-7px;top:-7px}.ta-gens__mark--br{right:-7px;bottom:-7px}
/* sheet parallax */
.ta-sheet--parallax .ta-sheet__frame{background-position:-1px calc(-1px + var(--ta-py,0px))}
/* arch: layers, dive, tilt */
.ta-arch__layer{position:absolute;inset:0;transition:transform 900ms var(--ease-move),opacity 700ms var(--ease-move),filter 900ms var(--ease-move)}
.ta-arch__layer.is-away{transform:scale(2.6);opacity:.1;filter:blur(2px);pointer-events:none}
.ta-arch__layer.is-gone{transform:scale(.35);opacity:0;pointer-events:none}
.ta-arch__block--dive{cursor:pointer}.ta-arch__block--dive:hover{outline:1.5px solid var(--accent);outline-offset:-1.5px}
.ta-arch__crumb{position:absolute;left:10px;top:8px;z-index:5;display:flex;gap:6px;font:400 11px/1 var(--font-mono);color:var(--fg-3)}
.ta-arch__crumb button{all:unset;cursor:pointer;color:var(--accent-fg)}.ta-arch__crumb button:hover{color:var(--accent-hover)}.ta-arch__crumb button:focus-visible{box-shadow:var(--ring)}
.ta-arch__crumb b{font-weight:400;color:var(--fg-1)}
.ta-arch__canvas{transform-style:preserve-3d;transition:transform 1200ms var(--ease-move)}
.ta-arch--tilt .ta-arch__layer{perspective:1400px;display:grid;place-items:center}
.ta-arch--tilt .ta-arch__canvas{transform:rotateX(50deg) rotateZ(-22deg) scale(.88)}
.ta-arch--tilt:hover .ta-arch__canvas{transform:none}
.ta-arch__block,.ta-arch__side{transition:transform 1200ms var(--ease-move),opacity 600ms var(--ease-move)}
.ta-arch--tilt .ta-arch__block{transform:translateZ(14px)}
.ta-arch--tilt:hover .ta-arch__block{transform:none}
.ta-arch__side{position:absolute;box-sizing:border-box;border:1.25px solid var(--fg-1);pointer-events:none}
.ta-arch__side--s{transform-origin:top;transform:translateZ(14px) rotateX(-90deg);background:var(--surface-3)}
.ta-arch__side--e{transform-origin:left;transform:translateZ(14px) rotateY(90deg);background:var(--surface-2)}
.ta-arch__side--w{transform-origin:right;transform:translateZ(14px) rotateY(-90deg);background:var(--surface-2)}
.ta-arch--tilt:hover .ta-arch__side{opacity:0}
/* memory: exploded layout */
.ta-explode{position:relative;perspective:1100px;display:grid;place-items:center;cursor:pointer;overflow:hidden}
.ta-explode__stage{position:relative;transform-style:preserve-3d;transition:transform 800ms var(--ease-move)}
.ta-explode__layer{position:absolute;inset:0;box-sizing:border-box;border:1.25px solid var(--fg-1);background:var(--surface-1);display:flex;transition:transform 800ms var(--ease-move)}
.ta-explode__layer i{min-width:0;border-right:1px solid var(--border-1);display:flex;align-items:flex-end;padding:4px;font:500 10px/1 var(--font-mono);font-style:normal;overflow:hidden;white-space:nowrap}
.ta-explode__layer i:last-child{border-right:0}
.ta-explode__shadow{position:absolute;inset:0;background:color-mix(in oklch,var(--fg-1) 10%,transparent);filter:blur(4px);transform:translateZ(-1px)}
.ta-explode__lead{position:absolute;right:20px;display:flex;align-items:center;gap:8px;font:400 11px/1 var(--font-mono);color:var(--fg-2);transform:translateY(-50%);transition:opacity 400ms var(--ease-move)}
.ta-explode__lead::before{content:"";width:40px;border-top:1px solid var(--fg-3)}
.ta-explode:not(.is-open) .ta-explode__lead{opacity:0}
/* memory: mailbox stack */
.ta-mbox{position:relative;perspective:760px;perspective-origin:50% -20%;overflow:hidden}
.ta-mbox__stack{position:absolute;left:50%;top:60%;transform-style:preserve-3d}
.ta-mbox__msg{position:absolute;top:-34px;height:68px;box-sizing:border-box;border:1.25px solid var(--fg-1);background:var(--surface-1);padding:10px 12px;display:grid;gap:6px;align-content:center;transform:translate3d(0,calc(var(--i)*-12px),calc(var(--i)*-70px));opacity:calc(1 - var(--i)*.13);transition:transform var(--dur-move) var(--ease-move),opacity var(--dur-move) var(--ease-move)}
.ta-mbox__msg.is-in{transform:translate3d(0,30px,90px);opacity:0;transition:none}
.ta-mbox__msg.is-out{transform:translate3d(0,calc(var(--i)*-12px - 30px),calc(var(--i)*-70px - 80px));opacity:0;transition-timing-function:cubic-bezier(.3,0,.8,.15)}
.ta-mbox__row{display:flex;justify-content:space-between;font:500 12px/1 var(--font-mono)}
.ta-mbox__note{font:400 11px/1.2 var(--font-mono);color:var(--fg-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.ta-dof>*,.ta-gens__sheet,.ta-arch__layer,.ta-arch__canvas,.ta-arch__block,.ta-arch__side,.ta-explode__stage,.ta-explode__layer,.ta-mbox__msg{transition:none!important}}

/* Instrument plate: rendered technical exhibits, with an inset rule and a construction grid. */
.ta-instrument {
  --instrument-paper: var(--surface-1);
  --instrument-ink: var(--fg-1);
  --instrument-rule: var(--border-2);
  position: relative; min-width: 0; isolation: isolate;
  border: 1.5px solid var(--instrument-rule); color: var(--instrument-ink);
  background: var(--instrument-paper);
}
.ta-instrument::before {
  content: ""; position: absolute; inset: 4px; z-index: 1;
  border: .5px solid var(--instrument-rule); pointer-events: none;
}
.ta-instrument__grid { background: var(--bg-grid), var(--instrument-paper); }
.ta-schematic-node { fill: var(--instrument-paper); stroke: var(--instrument-ink); stroke-width: 1.25; }
.ta-schematic-glyph { fill: none; stroke: var(--instrument-ink); stroke-width: 1.25; stroke-linecap: square; stroke-linejoin: miter; }
.ta-schematic-pad { fill: var(--instrument-ink); }

/* The page: its frame, the header with the navigation and its menu, the footer, and type. (the site kit; kit/README.md, "Styles") */

:root { --header-row: 56px; }
html { scroll-padding-top: 72px; }
body { background: var(--bg-app); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, picture { display: block; }

.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--space-6)); margin: 0 auto; padding: 0 var(--space-6); }

.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 20; padding: var(--space-2) var(--space-3); background: var(--surface-1); border: 1px solid var(--border-2); font: var(--type-ui); }
.skip:focus { top: var(--space-3); }

/* ---------------------------------------------------- header and footer */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg-app) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-row); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--fg-1); text-decoration: none; font: 500 18px/1 var(--font-mono); letter-spacing: -0.04em; }
.wordmark:hover { color: var(--fg-1); }
.site-nav { display: flex; gap: var(--space-5); font: var(--type-ui); }
.site-nav a { color: var(--fg-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg-1); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* The phone's menu: a button and a popover of the links, which the
   browser closes on a tap outside or Escape. A loupe (the design system's
   paper for menus) under the header. */
.site-menu {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-3); margin-right: calc(-1 * var(--space-3));
  background: none; border: 0; cursor: pointer;
  font: var(--fw-medium) var(--fs-16)/1 var(--font-sans); color: var(--fg-1);
}
.site-menu::after {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--dur-base, 150ms) var(--ease-out, ease-out);
}
.site-header:has(.site-menu__links:popover-open) .site-menu::after { transform: rotate(-135deg); margin-top: 4px; }
.site-menu:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.site-menu__links {
  /* Flush under the header (its row and its 1px bottom border), the
     width of the screen: the header, extended. */
  display: none; position: fixed; inset: calc(var(--header-row) + 1px) 0 auto; margin: 0; width: auto;
  flex-direction: column; padding: var(--space-2) 0; color: inherit;
  background: var(--bg-app); border: 0; box-shadow: var(--shadow-pop);
  font: var(--fw-medium) var(--fs-18)/1.2 var(--font-sans);
}
.site-menu__links::backdrop { background: transparent; }
.site-menu__links a { padding: var(--space-4); color: var(--fg-2); text-decoration: none; }
.site-menu__links a:hover { color: var(--fg-1); background: var(--surface-2); }
.site-menu__links a[aria-current="page"] { color: var(--fg-1); box-shadow: inset 2px 0 0 var(--accent); }

/* A group of the navigation in a menu (the guides): its label opens to
   its links in place, indented under it. */
.nav-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); color: var(--fg-2);
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
  content: ""; width: 7px; height: 7px; margin: -3px 2px 0 var(--space-3);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.nav-group[open] > summary { color: var(--fg-1); }
.nav-group[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.nav-group > summary:hover { color: var(--fg-1); background: var(--surface-2); }
.nav-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The group's label goes to its first page; the rest of its row opens it. */
.nav-group > summary:has(.nav-group__label) { padding: 0 var(--space-4) 0 0; }
.nav-group .nav-group__label, .site-menu__links .nav-group__label { flex: 1; color: inherit; text-decoration: none; padding: var(--space-3) var(--space-4); box-shadow: none; }
.site-menu__links .nav-group__label { padding: var(--space-4); }
.nav-group__label:hover { color: var(--fg-1); }
.nav-group__label[aria-current="page"] { color: var(--fg-1); box-shadow: inset 2px 0 0 var(--accent); }
.nav-group__links { display: flex; flex-direction: column; padding-bottom: var(--space-2); }
.nav-group__links a { padding: var(--space-2) var(--space-4) var(--space-2) var(--space-8); font-size: var(--fs-14); }
.site-menu__links { max-height: calc(100dvh - var(--header-row) - 1px); overflow-y: auto; }

.site-footer { border-top: 1px solid var(--border-1); margin-top: var(--space-24); padding: var(--space-8) 0 var(--space-12); color: var(--fg-2); font: var(--type-body-sm); }
.site-footer__row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); flex-wrap: wrap; }
.site-footer__note { display: flex; gap: var(--space-3); align-items: flex-start; max-width: var(--prose-max); }
.site-footer__note img { margin-top: 2px; flex: none; }
.site-footer__links { display: flex; gap: var(--space-5); flex-wrap: wrap; font: var(--type-ui); }
.site-footer__links a { color: var(--fg-2); text-decoration: none; }
.site-footer__links a:hover { color: var(--fg-1); }

/* ---------------------------------------------------- type */

h1, h2 { font-weight: var(--fw-regular); letter-spacing: var(--tracking-display); color: var(--fg-1); }
h1 em, h2 em, .claim__statement em { font-style: italic; }
code { font: var(--type-code); font-size: 0.9em; }
p code, li code, h1 code, h2 code, h3 code, figcaption code {
  background: var(--surface-code); border: 1px solid var(--code-border); border-radius: var(--radius-1);
  padding: 0 0.3em; white-space: nowrap;
}
/* a command's name as a page's headline breaks between its words on a phone */
.hero__headline code { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The hero: the page's one drafting sheet. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- hero: the page's one sheet */

.hero { padding: var(--space-8) 0 var(--space-4); }
.hero__sheet { padding: 0; background: transparent; }
.hero__body { padding: var(--space-16) var(--space-12) var(--space-12); }
.hero__headline { font: var(--type-display); letter-spacing: var(--tracking-display); max-width: 14em; }
.hero__body:has(> .stats) > .hero__headline { max-width: none; text-wrap: balance; }
.hero__lede { font: var(--type-prose); font-size: 20px; color: var(--fg-2); max-width: 36em; margin-top: var(--space-6); }

.install { display: grid; gap: var(--space-2); max-width: 36em; margin-top: var(--space-8); }
.section__body .install { margin-top: 0; }
.install__panel { display: grid; gap: var(--space-2); justify-items: start; }
.install__panel[hidden] { display: none; }
.install__command {
  box-sizing: border-box; width: 100%; min-width: 0; display: block; overflow-x: auto; white-space: nowrap; padding: var(--space-2) var(--space-3);
  background: var(--surface-code); border: 1px solid var(--code-border); border-radius: var(--radius-2); color: var(--code-fg); font: var(--type-code);
}
.install__guide { font: var(--type-body-sm); }
.install__guide::after { content: " →"; }
.install__prompt { color: var(--code-muted); user-select: none; }
.install__version { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font: var(--type-body-sm); color: var(--fg-3); }
.install__version span { font-variant-numeric: tabular-nums; }

/* The changelogs: the newest release of a package open, the older ones folded. */
.changelog { display: grid; gap: var(--space-5); }
.changelog__panel { display: grid; gap: var(--space-4); }
.changelog__panel[hidden] { display: none; }
.changelog__release { display: grid; gap: var(--space-3); }
details.changelog__release { border-top: 1px solid var(--border-1); padding-top: var(--space-3); }
.changelog__title { margin: 0; font: var(--type-h3); color: var(--fg-1); font-variant-numeric: tabular-nums; }
summary.changelog__title { cursor: pointer; }
.changelog__quote { margin: 0; padding-left: var(--space-4); border-left: 3px solid var(--border-2); color: var(--fg-2); display: grid; gap: var(--space-3); }
.changelog__quote h4 { margin: var(--space-2) 0 0; font: var(--type-ui); color: var(--fg-1); }
.changelog__quote p, .changelog__quote ul { margin: 0; font: var(--type-body); max-width: 46em; }
.changelog__quote ul { padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.changelog__quote code { overflow-wrap: anywhere; }
.changelog__more { margin: 0; font: var(--type-body-sm); }
.changelog__more a::after { content: " →"; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.actions .ta-btn { text-decoration: none; }
.section .actions { margin-top: var(--space-2); }

/* Sections and what they hold: prose, problems, passages, lists, claims. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- sections */

.section { padding: var(--space-16) 0 0; }
/* A reference page: its name and the facts it holds, then the blocks at once. */
.reference { padding: var(--space-10) 0 0; }
.reference__head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.reference__headline { font: var(--type-h1); letter-spacing: var(--tracking-display); }
.versions { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font: var(--type-body-sm); }
.versions a { color: var(--fg-2); text-decoration: none; }
.versions a:hover code { text-decoration: underline; }
.versions code { color: var(--fg-1); }
.versions a { display: inline-flex; align-items: center; gap: var(--space-2); }

/* A platform as its icons (render/site.xsl, f:platform): its name is for
   screen readers and the tooltip. */
.platform { display: inline-flex; align-items: center; gap: 0.3em; vertical-align: -0.15em; }
.platform__icon { width: 1.15em; height: 1.15em; flex: none; }
.ta-tab .platform__icon { width: 18px; height: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section__head { margin-bottom: var(--space-6); }
.section__head h2 { font: var(--type-h1); letter-spacing: var(--tracking-display); }
/* A section's heading links to itself: a mark appears beside it on hover and focus. */
.section__anchor { color: inherit; text-decoration: none; }
.section__anchor::after { content: "#"; margin-left: 0.3em; color: var(--fg-4); opacity: 0; transition: opacity var(--dur-fast); }
.section__anchor:hover::after, .section__anchor:focus-visible::after { opacity: 1; }
.section__anchor:hover { color: inherit; }
.section__body { display: grid; gap: var(--space-6); }
.section__body > .prose, .section__body > .items { max-width: var(--prose-max); }
/* A problem: the situation a section solves, set apart by a pine rule and a tint. */
.section__body > .problem {
  max-width: var(--prose-max); margin: 0; padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent); background: var(--accent-subtle);
  font: var(--fw-regular) var(--fs-18)/var(--lh-prose) var(--font-serif); font-style: italic; color: var(--fg-1);
}
/* The explanation voice: consecutive passages read as one text, a book's paragraphs. */
.section__body > .passage + .passage { margin-top: calc(-1 * var(--space-3)); }
.prose { font: var(--type-prose); color: var(--fg-1); }
/* A long name in a reference's prose (a namespace URI) breaks rather than widening a phone's page. */
.reference .prose code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.items { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border-1); }
.items li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-1); font: var(--type-body); color: var(--fg-2); }
.items--terms li { display: grid; grid-template-columns: minmax(8em, 13em) 1fr; gap: var(--space-4); }
.items__term { font: var(--type-h3); font-size: var(--fs-16); color: var(--fg-1); min-width: 0; }
/* A code term wraps inside its column: at its spaces (after commas), and
   inside a word only when nothing else fits; its chip continues on each line. */
.items__term code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.items__term a { color: inherit; }
/* Terms that are code (options, commands): one column as wide as the widest
   term, every row aligned to it (subgrid), the code on one line; the list
   takes the content's width rather than the prose's. */
.section__body > .items--code { max-width: none; }
.items--code { grid-template-columns: fit-content(50%) minmax(0, 1fr); column-gap: var(--space-6); }
.items--code li { grid-column: 1 / -1; grid-template-columns: subgrid; }
.items--code .items__term code { white-space: nowrap; overflow-wrap: normal; }
.items--code .items__text { max-width: var(--prose-max); }
ol.items { counter-reset: item; }
ol.items .items__term::before { counter-increment: item; content: counter(item) ". "; color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* code, in the design system's code block */
.code { margin: 0; max-width: 100%; }
.code .ta-code__head { justify-content: space-between; }
.code__language { color: var(--code-muted); }
.code pre { padding: var(--space-4); }
/* a line longer than the block scrolls inside it: a thin scrollbar, and a
   shade at each edge that still has text beyond it */
.code pre, .chart pre {
  scrollbar-width: thin; scrollbar-color: var(--code-muted) transparent;
  background:
    linear-gradient(to right, var(--surface-code) 40%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface-code) 40%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) right / 16px 100% no-repeat scroll,
    var(--surface-code);
}
.code pre code { font: var(--type-code); background: none; border: 0; padding: 0; white-space: pre; }
.code--output .ta-code__head { color: var(--state-running); }
/* An output stops at about 18 lines and scrolls inside its block, with a
   shade at the top and bottom edge that has more (as the sides have). */
.code--output pre {
  max-height: calc(var(--fs-13) * 1.6 * 18 + 2 * var(--space-4)); overflow-y: auto;
  background:
    linear-gradient(var(--surface-code) 40%, transparent) top / 100% 40px no-repeat local,
    linear-gradient(to top, var(--surface-code) 40%, transparent) bottom / 100% 40px no-repeat local,
    linear-gradient(color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) top / 100% 16px no-repeat scroll,
    linear-gradient(to top, color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) bottom / 100% 16px no-repeat scroll,
    linear-gradient(to right, var(--surface-code) 40%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface-code) 40%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) left / 16px 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--code-fg) 22%, transparent), transparent) right / 16px 100% no-repeat scroll,
    var(--surface-code);
}
.example { display: grid; gap: var(--space-3); }
.example__caption { font: var(--type-body); color: var(--fg-2); max-width: var(--prose-max); }

/* claims: a statement, why it holds, and where to check */
.claims { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.claims:has(> :nth-child(4)) { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.claim .ta-card__body { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-6); }
.claim__statement { font: var(--type-h2); font-size: 24px; letter-spacing: var(--tracking-tight); }
.claim__text { font: var(--type-body); color: var(--fg-2); }
.claim__sources { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-1); font: var(--type-body-sm); color: var(--fg-3); }
.claim__label { margin-right: var(--space-1); }

/* ---------------------------------------------------- glossary */

/* A glossary: each term's name above what it is, a rule between terms; the
   name links to the term itself, as a section's heading does. */
.glossary { margin: 0; max-width: var(--prose-max); display: grid; }
.glossary__term { padding: var(--space-5) 0; border-top: 1px solid var(--border-1); scroll-margin-top: var(--space-16); }
.glossary__term:target { background: var(--surface-code); }
.glossary__term dt { font: var(--type-h3); letter-spacing: var(--tracking-tight); margin-bottom: var(--space-2); }
.glossary__term dd { margin: 0; font: var(--type-prose); color: var(--fg-2); }
.glossary__anchor { color: var(--fg-1); text-decoration: none; }
.glossary__anchor::after { content: "#"; margin-left: 0.3em; color: var(--fg-4); opacity: 0; transition: opacity var(--dur-fast); }
.glossary__anchor:hover::after, .glossary__anchor:focus-visible::after { opacity: 1; }

/* Code blocks, the copy button, tabs, charts and their diagrams, highlighting, demos, figures and drawings, tables. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- charts and code */

/* a block of code a reader can copy: the button over its top right corner,
   shown on hover, focus or a tap (components/copy.mjs) */
ta-copy { display: block; position: relative; min-width: 0; }
.install ta-copy { width: 100%; }
.install ta-copy .install__command { padding-right: 40px; }
.copy__button {
  position: absolute; top: var(--space-2); right: var(--space-2); display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--code-border); border-radius: var(--radius-2);
  background: var(--surface-code); color: var(--code-muted); cursor: pointer;
  opacity: 0; transition: opacity 120ms ease, color 120ms ease;
}
.copy__button[hidden] { display: none; }
.install .copy__button { top: 50%; right: 4px; transform: translateY(-50%); }
.hero .install .install__command { min-height: 48px; padding: 14px 52px 14px var(--space-3); }
.hero .install .copy__button { width: 40px; height: 40px; opacity: 1; }
ta-copy:hover > .copy__button, ta-copy:focus-within > .copy__button, ta-copy[data-active] > .copy__button, ta-copy[data-copied] > .copy__button { opacity: 1; }
.copy__button:hover, .copy__button:focus-visible { color: var(--code-fg); }
.copy__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.copy__icon { width: 16px; height: 16px; }
.copy__icon--done, ta-copy[data-copied] .copy__icon--copy { display: none; }
ta-copy[data-copied] .copy__icon--done { display: block; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .copy__button { transition: none; } }

.prompt { display: grid; justify-items: start; gap: var(--space-3); }
.closing > .prompt { justify-items: center; }
.prompt__copy[hidden] { display: none; }
.prompt details { width: 100%; }
.prompt summary { cursor: pointer; }
.prompt pre {
  max-height: 24rem; overflow: auto; margin: var(--space-2) 0 0; padding: var(--space-4);
  border: 1px solid var(--code-border); border-radius: var(--radius-2);
  background: var(--surface-code); color: var(--code-fg); font: var(--type-body-sm);
  text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
}

ta-tabs { display: block; }
.chart .ta-code__head { height: auto; min-height: 40px; padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3); }
.chart [role="tabpanel"][hidden] { display: none; }
.chart pre { margin: 0; padding: var(--space-4); overflow: auto; }
.chart pre code { font: var(--type-code); white-space: pre; }
.chart__diagram { background: var(--bg-app); }
/* one program for several packages: the package's tabs over its files' block */
.program__packages { display: grid; gap: var(--space-2); }
.program__panel[hidden] { display: none; }
.program > *, .program__packages > *, .program__files { min-width: 0; }
.program__files pre { overflow-x: auto; }
/* a small chart grows to fill the panel, up to 1.5 times; a large one stays within 480px */
.chart__diagram scxml-view { display: block; --scxml-max-scale: 1.5; --scxml-height: 480px; }
:root:not([data-theme="dark"]) scxml-view { --scxml-color-scheme: light; }
[data-theme="dark"] scxml-view { --scxml-color-scheme: dark; }

/* syntax: the design system's text-safe colours, which follow its theme */
.hljs-comment, .hljs-meta { color: var(--fg-3); font-style: italic; }
.hljs-keyword, .hljs-built_in, .hljs-literal, .hljs-attr { color: var(--accent-fg); }
.hljs-string, .hljs-regexp, .hljs-template-variable { color: var(--state-waiting); }
.hljs-number, .hljs-name, .hljs-tag, .hljs-selector-tag { color: var(--state-done); }
.hljs-title, .hljs-title.function_, .hljs-title.class_ { color: var(--fg-1); font-weight: var(--fw-medium); }
.hljs-variable, .hljs-params, .hljs-property { color: var(--fg-1); }
.hljs-punctuation, .hljs-operator { color: var(--fg-2); }
.hljs-subst { color: inherit; }

/* tables transcluded from the guides: numbers read across a row */
/* A demo: the video, and beside it (below on a phone) its steps, each a time that seeks it. */
.demo { margin: 0; display: grid; gap: var(--space-2); }
.demo__frame { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-4); align-items: start; }
.demo__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--bg-sunken); border: 1px solid var(--border-1); border-radius: var(--radius-2); }
.demo__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 560px; overflow-y: auto; font: var(--type-body-sm); }
.demo__steps li { display: grid; grid-template-columns: 4.5ch 1fr; gap: var(--space-2); padding: var(--space-1) var(--space-2); border-radius: var(--radius-1); }
.demo__steps li.is-now { background: var(--accent-subtle); }
.demo__at { font: var(--fw-medium) var(--fs-12)/1.6 var(--font-mono); color: var(--accent-fg); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.demo__text { color: var(--fg-2); }
.demo__caption { font: var(--type-body-sm); color: var(--fg-2); max-width: var(--prose-max); }
@media (max-width: 900px) { .demo__frame { grid-template-columns: minmax(0, 1fr); } .demo__steps { max-height: none; } }

.figure { margin: 0; display: grid; gap: var(--space-2); }
.figure__scroll { overflow-x: auto; border: 1px solid var(--border-1); border-radius: var(--radius-2); background: var(--surface-1); padding: var(--space-4); }
.figure__scroll > svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--font-mono); }
.figure__scroll:has(> .figure__reload) { width: min(100%, 40rem); }
.figure__scroll > .figure__reload { min-width: 0; max-width: 32rem; margin-inline: auto; }
.figure__reload .figure__text, .figure__reload .figure__muted, .figure__reload .figure__note { font-size: 15px; }
.figure__reload .figure__reload-title { font-size: 17px; font-weight: 600; }
.figure__reload .figure__reload-next { stroke: var(--accent-fg); }
.figure__caption { font: var(--type-body-sm); color: var(--fg-2); max-width: var(--prose-max); }
/* A picture a command drew (the CLI pages' examples): its own size, never wider than the column. */
.drawing img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
/* on a phone a drawing keeps its own size and scrolls in its frame */
@media (max-width: 720px) { .drawing img { max-width: none; } }
.figure__line { fill: none; stroke: var(--fg-3); }
.figure__frame { fill: var(--surface-1); stroke: var(--rule); stroke-width: 1.5; }
.figure__fill { fill: var(--surface-2); stroke: var(--border-2); }
.figure__accent { fill: var(--accent); stroke: var(--accent); }
.figure__arrow { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.figure__hollow { fill: none; stroke: var(--fg-3); stroke-dasharray: 2 2; }
.figure__waiting { fill: var(--state-waiting); }
.figure__text { fill: var(--fg-1); font-size: 12px; }
.figure__muted { fill: var(--fg-2); font-size: 10px; }
.figure__note { fill: var(--accent-fg); font-size: 10px; }
.figure__dashed { stroke-dasharray: 6 4; }
.figure__head { fill: var(--fg-3); }
/* A post's drawing (a drafting sheet): its frame is its own, its colors
   the page's, so it reads in both themes. Sizes and weights are the
   drawing's attributes; these classes set only colors and families. */
.figure--drawing .figure__scroll { border: 0; padding: 0; background: none; }
.figure--drawing .figure__scroll > svg { min-width: 640px; }
.figure__paper { fill: var(--surface-1); }
.figure__grid-minor { fill: none; stroke: var(--border-1); stroke-width: .6; }
.figure__grid-major { fill: none; stroke: var(--border-2); stroke-width: .8; }
.figure__rule { fill: none; stroke: var(--fg-1); }
.figure__hatch { stroke: var(--fg-3); }
.figure__accent-hatch { stroke: var(--accent); opacity: .55; }
.figure__chip { fill: var(--surface-2); stroke: var(--fg-1); }
.figure__paper-chip { fill: var(--surface-1); stroke: var(--fg-1); }
.figure__accent-chip { fill: var(--accent-subtle); stroke: var(--accent); }
.figure__waiting-chip { fill: var(--state-waiting-bg); stroke: var(--state-waiting); }
.figure__pin { fill: var(--fg-1); }
.figure__accent-pin, .figure__accent-head { fill: var(--accent); }
.figure__waiting-pin { fill: var(--state-waiting); }
.figure__trace { fill: none; stroke: var(--fg-2); }
.figure__accent-trace, .figure__accent-outline { fill: none; stroke: var(--accent); }
.figure__waiting-outline { fill: none; stroke: var(--state-waiting); }
.figure__ink { fill: var(--fg-1); }
.figure__ink-2 { fill: var(--fg-2); }
.figure__ink-3 { fill: var(--fg-3); }
.figure__accent-ink { fill: var(--accent-fg); }
.figure__waiting-ink { fill: var(--state-waiting); }
.figure__mono { font-family: var(--font-mono); }
.figure__sans { font-family: var(--font-sans); }
.figure__serif { font-family: var(--font-display); }

.table { margin: 0; display: grid; gap: var(--space-2); }
.table__scroll { overflow-x: auto; border: 1px solid var(--border-1); border-radius: var(--radius-2); background: var(--surface-1); }
.table table { border-collapse: collapse; width: 100%; font: var(--type-body-sm); font-variant-numeric: tabular-nums; }
.table th, .table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-1); text-align: left; vertical-align: top; }
.table thead th { background: var(--surface-2); color: var(--fg-2); font-weight: var(--fw-medium); white-space: nowrap; }
.table tbody th { font-weight: var(--fw-medium); color: var(--fg-1); }
.table td { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--fg-1); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table__caption { font: var(--type-body-sm); color: var(--fg-3); max-width: var(--prose-max); }

/* <ta-playground>, and a page that is one application (body.page--app). (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- playgrounds */

.playground { display: grid; gap: var(--space-3); }
.playground__description--quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* An application page (body.page--app): the application fills the window
   below the header, edge to edge; the footer waits below the fold. Its
   name is for screen readers. The application keeps its bottom-right
   corner free for what a site docks there (--app-inset-end: the ants'
   button on tinyactors.dev); with the copywriter's launcher on (bottom left), the
   application keeps that corner free too (--app-inset-start, -bottom). */
.app { --app-inset-end: 40px; --app-inset-start: 0px; --app-inset-bottom: 0px;
  display: flex; flex-direction: column; height: calc(100dvh - var(--header-row) - 1px); min-height: 360px; }
html:has(> #tinyactors-copywriter) .app { --app-inset-start: 68px; --app-inset-bottom: 52px; }
.app__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app > .playground { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 0; }
.page--app .site-footer { margin-top: 0; }

/* <ta-live>, an example run in the page, and <ta-trace-view>, a span tree on a timeline. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- live examples */

.live { display: grid; gap: var(--space-3); }
.live__run { display: flex; align-items: center; gap: var(--space-3); }
.live__status { font: var(--type-body-sm); color: var(--fg-3); }
.live__output[hidden] { display: none; }

/* <ta-trace-view>: a span tree on a timeline */
.trace { display: block; border: 1px solid var(--border-1); border-radius: var(--radius-2); background: var(--surface-1); }
.trace__scroll { overflow-x: auto; }
.trace__table { min-width: 720px; font: var(--type-body-sm); }
.trace__row { display: flex; border-bottom: 1px solid var(--border-1); min-height: 30px; }
.trace__row:last-child { border-bottom: 0; }
.trace__row--axis { position: sticky; top: 0; background: var(--surface-2); font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); }
.trace__row--axis .trace__name { padding: var(--space-2) var(--space-3); }
.trace__row--selected { background: var(--accent-subtle); }
.trace__row--error { box-shadow: inset 3px 0 0 var(--state-error); }
.trace__name { width: 46%; min-width: 300px; flex: none; display: flex; align-items: center; gap: var(--space-1); padding-right: var(--space-2); }
.trace__bars { position: relative; flex: 1; border-left: 1px solid var(--border-1); }
.trace__tick { position: absolute; top: var(--space-2); transform: translateX(4px); white-space: nowrap; font: 400 11px/1 var(--font-mono); letter-spacing: 0; text-transform: none; }
.trace__tick::before { content: ""; position: absolute; left: -4px; top: calc(-1 * var(--space-2)); height: 30px; border-left: 1px dashed var(--border-1); }
.trace__grid { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--border-1); }
.trace__toggle { width: 18px; flex: none; padding: 0; border: 0; background: none; color: var(--fg-3); cursor: pointer; font: 12px/1 var(--font-mono); }
.trace__label { display: flex; align-items: center; gap: var(--space-2); min-width: 0; flex: 1; padding: var(--space-1) 0; border: 0; background: none; color: var(--fg-1); cursor: pointer; text-align: left; font: inherit; }
.trace__label:hover .trace__span-name { text-decoration: underline; }
.trace__swatch { width: 10px; height: 10px; border-radius: var(--radius-1); flex: none; }
.trace__span-name { font: var(--type-code); white-space: nowrap; }
.trace__actor { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace__hint { color: var(--fg-3); font: var(--type-code); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace__count { font: 400 11px/1 var(--font-mono); background: var(--surface-2); border: 1px solid var(--border-1); padding: 2px 4px; border-radius: var(--radius-1); }
.trace__missing { color: var(--fg-3); font-style: italic; }
.trace__bar { position: absolute; top: 50%; height: 12px; min-width: 3px; transform: translateY(-50%); border-radius: var(--radius-1); }
.trace__at { position: absolute; top: 50%; transform: translateY(-50%); font: 400 11px/1 var(--font-mono); color: var(--fg-3); white-space: nowrap; }
.trace__detail { padding: var(--space-4); background: var(--surface-2); border-bottom: 1px solid var(--border-1); display: grid; gap: var(--space-3); }
.trace__detail-head { font: var(--type-code); color: var(--fg-2); }
.trace__detail-head strong { color: var(--fg-1); font-weight: var(--fw-medium); }
.trace__ids { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); margin: 0; font: var(--type-code); }
.trace__ids dt { color: var(--fg-3); font: var(--type-body-sm); }
.trace__ids dd { margin: 0; word-break: break-all; }
.trace__link { padding: 0; border: 0; background: none; color: var(--text-link); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.trace__attributes { border-collapse: collapse; width: 100%; font: var(--type-code); }
.trace__attributes caption { text-align: left; font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); padding-bottom: var(--space-2); }
.trace__attributes th { text-align: left; font-weight: var(--fw-regular); color: var(--fg-3); padding: 2px var(--space-3) 2px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.trace__attributes td { padding: 2px 0; word-break: break-all; }
.trace__events { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); font: var(--type-code); color: var(--fg-2); }
.trace__events strong { color: var(--fg-1); font-weight: var(--fw-medium); }

/* Narrow windows and phones: the header menu, then every block at a phone's width. Last of the layout, so it overrides it. (the site kit; kit/README.md, "Styles") */

/* The header's links need about 815px in one row (the wordmark, the
   gap, the links and the page's padding): narrower, they move into the
   header's menu, as on a phone. */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-menu { display: inline-flex; }
  .site-menu__links:popover-open { display: flex; }
}

/* ---------------------------------------------------- phones */

@media (max-width: 720px) {
  .wrap { padding: 0 var(--space-4); }
  .hero { padding-top: var(--space-4); }
  .hero__body { padding: var(--space-10) var(--space-5) var(--space-8); }
  .hero__headline { font: var(--type-h1); font-size: 40px; letter-spacing: var(--tracking-display); }
  .hero__lede { font-size: 18px; }
  .section { padding-top: var(--space-12); }
  .section__head h2 { font: var(--type-h2); font-size: 28px; }
  .items--terms li { grid-template-columns: 1fr; gap: var(--space-1); }
  .items--code { grid-template-columns: minmax(0, 1fr); }
  .items--code .items__term code { white-space: normal; overflow-wrap: anywhere; }
  .claims, .claims:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  p code, li code { white-space: normal; }
  .table td { white-space: normal; }
}

/* The news: a post's mood image, its author, the list, the newest post's band, a post's pictures. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- a post's mood image
   The image fills the window behind everything (the ants' layer, then the
   content, above it), drawn at 30% over the page's ground. The
   post is one sheet of see-through paper laid on it: translucent, the
   image behind it blurred, so the image shines gently through the whole
   post while its text keeps its contrast. The blocks of the post keep
   their own look. A reader who asks for less transparency gets opaque
   paper. */

.page--mood { background: transparent; --mood-paper: color-mix(in srgb, var(--bg-app) 72%, transparent); --mood-blur: blur(6px); }
.mood { position: fixed; inset: 0; z-index: 0; background: var(--bg-app); pointer-events: none; }
.mood img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page--mood main, .page--mood .site-footer {
  width: min(100% - 2 * var(--space-4), var(--content-max) + 2 * var(--space-12));
  margin-inline: auto; border-inline: 1px solid var(--border-1);
  background: var(--mood-paper); -webkit-backdrop-filter: var(--mood-blur); backdrop-filter: var(--mood-blur);
}
.page--mood .hero__sheet .ta-sheet__frame { background: var(--bg-grid); } /* the hero's grid, on the post's paper */
.page--mood main { margin-top: var(--space-12); border-top: 1px solid var(--border-1); padding-bottom: var(--space-16); }
.page--mood .site-footer { margin-top: 0; margin-bottom: var(--space-12); border-bottom: 1px solid var(--border-1); }
@media (prefers-reduced-transparency: reduce) {
  .page--mood { --mood-paper: var(--bg-app); --mood-blur: none; }
}

/* ---------------------------------------------------- the hero's author */

.hero__author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font: var(--type-body); }
.hero__author img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-2); }
.hero__author a { color: var(--fg-1); }
.hero__date { color: var(--fg-3); }

/* The news, newest first: each a headline, its kind beside its date
   (and a post's author), and its description or a release's summary. */
.news { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-8); max-width: 44rem; }
.news__title { font: var(--type-h3); margin: 0; }
.news__title a { color: var(--fg-1); text-decoration: none; }
.news__title a:hover { text-decoration: underline; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; font: var(--type-body-sm); color: var(--fg-3); }
.news__kind { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-1); font: 500 11px/1 var(--font-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--fg-2); background: var(--surface-2); }
.news__item--post .news__kind { color: var(--accent-fg); background: var(--accent-subtle); }
.news__summary { margin: var(--space-3) 0 0; font: var(--type-body); color: var(--fg-2); }

/* The newest post, in one band across the page under the hero: the
   date in a pill that flips between "Today" and 2026-12-04 (as wide as
   the date itself, so the row never moves), the post's picture (its share
   image as a small card, in the card's 1200 × 630 shape, the author's
   portrait a bubble on its lower right corner; or the portrait alone), the
   headline in at most two lines. The whole row is the link to the post
   (the link's ::after covers the whole band), but for the date pill at its
   right, which lies above that overlay and keeps its own click. */
.latest { position: relative; border-block: 1px solid var(--border-1); background: var(--surface-1); }
.latest__row { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-4); }
.latest__when { position: relative; z-index: 1; flex: none; }
.latest__when button {
  position: relative; display: block; flex: none; width: 7.2em; height: 28px; padding: 0; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: var(--radius-pill); background: transparent;
  color: var(--fg-2); font: 500 var(--fs-13)/1 var(--font-sans); cursor: pointer;
}
.latest__when button:disabled { cursor: default; }
.latest__relative, .latest__date { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .25s ease, opacity .25s ease; }
.latest__date { font: var(--fs-12)/1 var(--font-mono); }
.latest__when [aria-pressed="false"] .latest__date,
.latest__when [aria-pressed="true"] .latest__relative { opacity: 0; }
.latest__when [aria-pressed="false"] .latest__date { transform: translateY(100%); }
.latest__when [aria-pressed="true"] .latest__relative { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .latest__relative, .latest__date { transition: none; } }
.latest__link { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; color: var(--fg-1); text-decoration: none; }
.latest__link::after { content: ""; position: absolute; inset: 0; }
.latest__link:focus-visible { outline: none; }
.latest__link:focus-visible::after { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.latest__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.latest__picture { position: relative; flex: none; margin-right: var(--space-2); }
.latest__share { width: 96px; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--border-1); border-radius: var(--radius-2); }
.latest__avatar--bubble { position: absolute; right: -10px; bottom: -8px; width: 28px; height: 28px; border: 2px solid var(--surface-1); }
@media (max-width: 480px) { .latest__share { width: 72px; } }
.latest__title { flex: 1; min-width: 0; font: var(--type-body); font-size: var(--fs-18); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest:hover .latest__title { text-decoration: underline; }
.news__summary code { font-size: .9em; }

/* A post's picture: as wide as the prose, its caption under it. */
.image { margin: 0; display: grid; gap: var(--space-2); max-width: var(--prose-max); }
.image img { display: block; width: 100%; height: auto; border: 1px solid var(--border-1); border-radius: var(--radius-2); }
.image__caption { font: var(--type-body-sm); color: var(--fg-2); }

/* An output's preview and source: Markdown as a document, JSON and XML as trees. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- outputs: preview and source
   An output in Markdown, JSON or XML (components/output.mjs): a switch in
   its head between the preview, which shows first, and the source. The
   preview stops at the same height as the source and scrolls inside. */
.output__switch { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border: 1px solid var(--code-border); border-radius: var(--radius-2); background: var(--surface-code); }
.output__switch button { font: var(--fw-medium) var(--fs-12)/1 var(--font-sans); color: var(--code-muted); background: none; border: 0; border-radius: var(--radius-1); padding: 4px 10px; cursor: pointer; }
.output__switch button[aria-pressed="true"] { background: var(--surface-1); color: var(--fg-1); box-shadow: 0 0 0 1px var(--border-2); }
.output__switch button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.code--output .ta-code__head { align-items: center; gap: var(--space-3); }
.code--output[data-view="preview"] .output > .copy { display: none; }
.code--output:not([data-view="preview"]) .output__preview { display: none; }
.output__preview {
  max-height: calc(var(--fs-13) * 1.6 * 18 + 2 * var(--space-4)); overflow: auto; padding: var(--space-4) var(--space-5);
  background: var(--surface-1); scrollbar-width: thin;
}
.output__preview:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* a Markdown report, as a document */
.output-md { font: var(--type-body-sm); color: var(--fg-1); display: grid; gap: var(--space-2); justify-items: start; }
.output-md > * { margin: 0; max-width: 100%; }
.output-md__heading { font: var(--fw-semibold) var(--fs-14)/1.3 var(--font-sans); margin-top: var(--space-2); }
.output-md > .output-md__heading:first-child { margin-top: 0; }
h3.output-md__heading { font: var(--fw-regular) var(--fs-22)/1.2 var(--font-serif); letter-spacing: var(--tracking-tight); }
h4.output-md__heading { font: var(--fw-regular) var(--fs-18)/1.25 var(--font-serif); }
.output-md code { font: var(--fs-12)/1.4 var(--font-mono); background: var(--surface-code); border: 1px solid var(--code-border); border-radius: var(--radius-1); padding: 0 4px; }
.output-md__list { margin: 0; padding-left: 1.25em; display: grid; gap: 2px; }
.output-md__list .output-md__list { margin-top: 2px; }
.output-md__scroll { overflow-x: auto; max-width: 100%; }
.output-md__table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.output-md__table th, .output-md__table td { text-align: left; padding: 4px 10px; border-bottom: 1px solid var(--border-1); vertical-align: top; }
.output-md__table th { font-weight: var(--fw-medium); color: var(--fg-2); background: var(--surface-2); white-space: nowrap; }
.output-md__pre { background: var(--surface-code); border: 1px solid var(--code-border); padding: var(--space-3); overflow-x: auto; font: var(--type-code); }
.output-md__pre code { background: none; border: 0; padding: 0; }
.output-md hr { width: 100%; border: 0; border-top: 1px solid var(--border-1); }

/* JSON and XML as trees whose branches open and close */
.output-tree { font: var(--type-code); color: var(--code-fg); }
.output-tree ul, .output-tree ol { list-style: none; margin: 0; padding: 0; }
.output-tree__children { padding-left: 1.5em !important; border-left: 1px dotted var(--border-2); margin-left: 0.35em !important; }
.output-tree__branch > summary { cursor: pointer; list-style: none; display: inline; }
.output-tree__branch > summary::-webkit-details-marker { display: none; }
.output-tree__branch > summary::before { content: "▸"; display: inline-block; width: 1em; margin-left: -1em; color: var(--code-muted); transition: transform var(--dur-fast); }
.output-tree__branch[open] > summary::before { transform: rotate(90deg); }
.output-tree__branch > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.output-tree__count { color: var(--code-muted); font-size: var(--fs-12); margin: 0 0.5em; }
.output-tree__branch[open] > summary .output-tree__count, .output-tree__branch[open] > summary .output-tree__close-inline { display: none; }
.output-tree__branch:not([open]) > .output-tree__close { display: none; }
.output-tree > .output-tree__branch, .output-tree--lines > li { margin-left: 1em; }
.output-tree--lines { counter-reset: line; display: grid; gap: var(--space-1); list-style: none; margin: 0; }
.output-tree--lines > li { counter-increment: line; position: relative; }
.output-tree--lines > li::before { content: counter(line); position: absolute; left: -3.4em; width: 1.6em; text-align: right; color: var(--code-muted); font-size: var(--fs-12); }
.output-tree--lines { padding-left: 2.6em !important; }
.output-tree__key { color: var(--accent-fg); }
.output-tree__string { color: var(--state-waiting); }
.output-tree__number, .output-tree__boolean, .output-tree__null { color: var(--state-done); }
.output-tree__punct { color: var(--code-muted); }
.output-tree__tag { color: var(--state-done); }
.output-tree__text { color: var(--code-fg); }
.output-tree__comment { color: var(--fg-3); font-style: italic; }
.output-svg__frame { background: var(--surface-1); }
.output-svg { display: block; max-width: 100%; height: auto; }

/* The commands page: each job a heading, what it is for, and its commands. */
.command-group { display: grid; gap: var(--space-3); margin-top: var(--space-8); scroll-margin-top: 72px; }
.command-group__name { font: var(--type-h2); letter-spacing: var(--tracking-tight); margin: 0; }
.command-group__summary { color: var(--fg-2); margin: 0; }

/* A command's page: every command beside it, grouped by job, and the page;
   on a narrow screen the list follows the page. */
.command-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.command-layout__body > .section > .wrap { padding: 0; max-width: none; }
.command-layout__body > .command-steps { padding: 0; }
.command-sidebar { position: sticky; top: calc(var(--header-row) + var(--space-6)); max-height: calc(100dvh - var(--header-row) - var(--space-8)); overflow-y: auto; padding: var(--space-12) 0 var(--space-6); font: var(--type-body-sm); scrollbar-width: thin; }
.command-sidebar__title { margin: 0 0 var(--space-3); font: var(--type-h3); }
.command-sidebar__title a { color: var(--fg-1); text-decoration: none; }
.command-sidebar__label { margin: var(--space-4) 0 var(--space-1); font: var(--type-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-3); line-height: 1.4; }
.command-sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; }
.command-sidebar__list a { display: block; padding: 2px var(--space-2); margin-left: calc(-1 * var(--space-2)); border-radius: var(--radius-1); color: var(--fg-2); text-decoration: none; }
.command-sidebar__list a:hover { background: var(--surface-2); color: var(--fg-1); }
.command-sidebar__list a[aria-current="page"] { background: var(--accent-subtle); color: var(--fg-1); box-shadow: inset 2px 0 0 var(--accent); }
.command-sidebar__list code { background: none; border: 0; padding: 0; font-size: var(--fs-13); }
.command-steps { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-12) 0 var(--space-16); }
.command-steps__step { text-decoration: none; }
.command-steps__step--next { margin-left: auto; }
.command-steps code { background: none; border: 0; padding: 0; }
@media (max-width: 900px) {
  .command-layout { grid-template-columns: minmax(0, 1fr); }
  .command-sidebar { position: static; max-height: none; order: 2; padding-top: 0; }
  .command-layout__body { order: 1; }
}

/* An API reference: a package's declarations. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- an API reference */

/* A package's declarations (render/site.xsl, f:api-blocks): parts and
   groups as headings that link to themselves, each declaration a block
   with its name, its signature and its doc comment, its members
   indented under a rule. Every block keeps to the prose width but a
   signature, which scrolls inside itself. */
/* a package name in the headline breaks rather than widening a phone's page */
.reference__headline code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.api-intro, .api-contents, .api-part, .api-group, .api-item, .api-member { display: grid; gap: var(--space-4); min-width: 0; }
.api-intro > .prose, .api-part > .prose, .api-group > .prose, .api-item > .prose, .api-member > .prose,
.api-item > .items, .api-member > .items, .api-group > .items { max-width: var(--prose-max); }
.api-contents { padding-bottom: var(--space-4); }
.api-contents__name, .api-part__name { font: var(--type-h1); letter-spacing: var(--tracking-display); margin: 0; }
.api-contents .items__text { font: var(--type-body-sm); }
.api-part { margin-top: var(--space-12); scroll-margin-top: 72px; }
.api-group { margin-top: var(--space-8); scroll-margin-top: 72px; }
.api-group__name { font: var(--type-h2); letter-spacing: var(--tracking-tight); margin: 0; }
.api-item { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--border-1); scroll-margin-top: 72px; }
.api-item__name { font: var(--type-h3); margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); }
.api-item__name code { font: var(--fw-medium) var(--fs-18)/1.3 var(--font-mono); overflow-wrap: anywhere; }
.api-item__kind { font: var(--fw-medium) var(--fs-12)/1 var(--font-mono); color: var(--fg-3); }
.api-signature { margin: 0; max-width: 100%; overflow-x: auto; padding: var(--space-3) var(--space-4);
  background: var(--surface-code); border: 1px solid var(--code-border); border-radius: var(--radius-2); }
.api-signature code { font: var(--type-code); background: none; border: 0; padding: 0; white-space: pre; color: var(--code-fg); }
.api-members { display: grid; gap: var(--space-5); padding-left: var(--space-5); border-left: 2px solid var(--border-1); }
.api-members__group { font: var(--fw-medium) var(--fs-14)/1.4 var(--font-mono); color: var(--fg-3); margin: var(--space-2) 0 0; }
.api-member { gap: var(--space-2); scroll-margin-top: 72px; }
.api-member > .prose { font: var(--type-body); color: var(--fg-2); }
@media (max-width: 640px) {
  .api-members { padding-left: var(--space-3); }
}

/* A pitch's layouts: numbers, cards, split sections, the closing word, questions. (the site kit; kit/README.md, "Styles") */

/* ---------------------------------------------------- pitch layouts */

/* The hero's numbers: each value large, its label linking to where it was
   measured. */
.stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-10); margin: var(--space-8) 0 0; }
.stats__item { display: grid; gap: var(--space-1); }
.stats__value { font: var(--type-h1); letter-spacing: var(--tracking-display); color: var(--fg-1); font-variant-numeric: tabular-nums; line-height: 1; }
.stats__label { margin: 0; font: var(--type-body-sm); max-width: 22em; }
.stats__label a { color: var(--fg-2); text-decoration-color: var(--border-2); }
.stats__label a:hover { color: var(--fg-1); }

/* Claims of equal weight as cards: the whole card follows its name's link. */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--border-1); border-left: 1px solid var(--border-1); }
.feature { position: relative; display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6);
  border-right: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); background: var(--surface-1);
  transition: background var(--dur-fast) var(--ease-step); }
.feature:hover { background: var(--surface-2); }
.feature__name { margin: 0; font: var(--type-h3); color: var(--fg-1); }
.feature__link { color: inherit; text-decoration: none; }
.feature__link::before { content: ""; position: absolute; inset: 0; }
.feature__link:focus-visible { outline: none; }
.feature:has(.feature__link:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.feature__text { margin: 0; font: var(--type-body); color: var(--fg-2); }
/* a link inside a card's text stays clickable above the card's own */
.feature__text a { position: relative; z-index: 1; }

/* A split section: words beside the one thing they talk about. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; }
.split__words { display: grid; align-content: start; }
.split__words .section__head { margin-bottom: var(--space-5); }
.split__shown { min-width: 0; display: grid; gap: var(--space-4); }
.split__shown .code pre { max-height: 34rem; }
@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* The page's last word: centred on a sheet of its own. */
.section--closing { padding-bottom: var(--space-8); }
.closing { display: grid; justify-items: center; text-align: center; gap: var(--space-5);
  padding: var(--space-16) var(--space-6); border: 1.5px solid var(--rule); background: var(--surface-1); }
.closing__heading { margin: 0; font: var(--type-display); letter-spacing: var(--tracking-display); max-width: 14em; }
.closing .prose { max-width: 34em; color: var(--fg-2); }
.closing .install { width: min(100%, 36em); justify-items: stretch; text-align: left; margin-top: 0; }
.closing .actions { justify-content: center; margin-top: 0; }

/* Questions a reader asks, each opening to its answer. */
.questions { max-width: var(--prose-max); border-top: 1px solid var(--border-1); }
.question { border-bottom: 1px solid var(--border-1); }
.question__ask { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-8) var(--space-4) 0; position: relative;
  font: var(--type-h3); color: var(--fg-1); }
.question__ask::-webkit-details-marker { display: none; }
.question__ask::after { content: "+"; position: absolute; right: var(--space-2); top: var(--space-4); font: var(--type-code); color: var(--fg-3); }
.question[open] .question__ask::after { content: "−"; }
.question__answer { margin: 0 0 var(--space-5); font: var(--type-prose); color: var(--fg-2); }
@media (max-width: 1023px) { .hero--scene .hero__body > .stats { order: 0; } }
@media (min-width: 1024px) {
  /* the numbers in one row across the foot of the sheet, under both columns */
  .hero--scene .hero__body > .stats { grid-column: 1 / -1; grid-row: 6; margin-top: var(--space-12);
    padding-top: var(--space-8); border-top: 1px solid var(--border-1); justify-content: space-between; }
}
/* four cards in one row, or two by two: never three and an orphan */
@media (min-width: 1024px) { .features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .features--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) { .features--4, .features--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the shown code gets the wider column */
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-10); } }
/* on a phone the numbers are a compact list: value and label on one line */
@media (max-width: 639px) {
  .stats { display: grid; gap: var(--space-3); }
  .stats__item { grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: var(--space-3); }
  .stats__value { font: var(--type-h2); }
}
/* on a phone: the value over its label, at a size that fits; the install
   and the next step before the numbers and the scene */
@media (max-width: 639px) {
  .stats__item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stats:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__body:has(> .stats) > .install { margin-top: var(--space-5); }
}
@media (max-width: 1023px) {
  .hero--scene .hero__body > .install, .hero--scene .hero__body > .actions { order: 1; }
  .hero--scene .hero__body > .stats { order: 2; }
  .hero--scene .hero__body > .hero__scene { order: 3; }
}

/* tinyscript.tinyactors.dev's own styles, after the kit's (website/kit/style/). */

/* The reference's area tables (four columns): a feature's notes are sentences, so its column
   wraps in body text; the kit's cells are measurements, set in one line. */
.reference .table td:nth-child(3):nth-last-child(2) { white-space: normal; font-family: var(--font-sans); font-size: var(--fs-14); min-width: 36ch; line-height: 1.5; }
