/* ===== Soft 2 and Blueprint 2 components: scoped to .v2, so the site's styles and these never touch ===== */
:where(.v2, .v2 *:not(svg, svg *)), :where(.v2, .v2 *:not(svg, svg *))::before, :where(.v2, .v2 *:not(svg, svg *))::after, :where(.v2 *)::placeholder{all:revert}
/* svg is left out of the reset (it would drop presentation attributes), so its colour is reset on its own; the site's .s is a code colour */
:where(.v2) svg{color:inherit}

.v2 [hidden]{display:none!important}
/* hold(): an end state centred in the height its component had */
.v2 .held{display:flex;flex-direction:column;justify-content:center}
/* the glide starts fast in both styles, so the field is on its way up before an opening list reaches the stage's edge */
.v2 .glide{transform:translateY(var(--gy,0px));transition:transform var(--t) cubic-bezier(.22,1,.36,1)}
/* and a list that opens under a gliding field fades in a beat after it starts to move */
.v2 .glide>.csx-pop.open{transition-delay:.08s}
.v2 .glide>.msc-pop.open{transition-delay:.08s,.08s,.08s,0s}
.v2 .glide>.six-pop.open{transition-delay:.08s}
/* Soft 2: one quiet surface per object, grey type for finished work, motion only on what is happening now */
.v2{
  --motion:soft;
  --page:#f7f7f7; --stage:#fafafa; --surface:#ffffff; --raised:#ffffff;
  --fg:#171717; --fg2:#525252; --muted:#6a6a6a; --faint:#c4c4c4; --rail:#d4d4d4; --line:#e8e8e8; --field-line:#d4d4d4; --line-strong:#858585; --field-line-strong:#b3b3b3;
  --chip:#f3f3f3; --hover:#ebebeb; --press:#e3e3e3; --wash:#f9f9f9; --row:#fafafa;
  --soft:#ececec; --soft-h:#e3e3e3; --soft-ring:inset 0 0 0 1px rgba(0,0,0,.03); --dis:#a6a6a6;
  /* disabled: text and icons take --dis; a control with a fill swaps it for --dis-fill (Blueprint hatches it) */
  --dis-fill:var(--soft); --dis-hatch:none;
  --shadow-lift:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.035),0 12px 24px -10px rgba(0,0,0,.1);
  /* the accent has three roles: --accent fills (with --on-accent on top, 4.5:1), --accent-fg is text and icons in the accent
     (4.5:1 on the surface, and on the chips and tints it sits on) and --accent-mark is lines, rings and chart marks (3:1). A
     light accent like lime keeps its fills and gets a darker mark and ink-coloured text on a light page */ --sel:color-mix(in srgb,var(--accent) 6%,transparent);
  /* fields (text fields, textareas, search fields, dropdown triggers) have a dimmed grey edge, --field-line, that steps up
     a little, to --field-line-strong, while they have the focus. The keyboard's focus ring on every other control is 2px of
     a stronger grey (--line-strong, as --focus), as an outline offset 2px, or as a 2px box-shadow ring where an outline would be clipped. Never
     the accent and never black, and only from the keyboard (:focus-visible), so a click or a tap never shows one */
  --focus:var(--line-strong);
  --ink:#1b1b1b; --on-ink:#ffffff;
  /* the status tints sit with the core tag colours below (21 Nov): a step stronger in light, deep and opaque in dark, each
     keeping its text at 4.5:1 and APCA Lc 60 on every surface */
  --ok:#0c7c39; --ok-bg:#daf8df; --ok-mark:#00a23d; --warn:#9a4704; --warn-bg:#ffe5b8; --warn-mark:#f76700; --bad:#d0111c; --bad-bg:#fee4e1; --bad-mark:#f04438;
  --merge:#7c4cd4; --merge-bg:#f2ecfd; --add:#187633; --del:#c7212c;
  /* the core tag colours (owner, 21 Nov: "make it more saturated... look at the Attio chips"): a clearly coloured tint and the
     most saturated text of its hue that keeps 4.5:1 and APCA Lc 60 on it (and on every light surface) */
  --pb:#0963da; --pb-bg:#e0ecfe; --pl:#7314fa; --pl-bg:#eae8fe; --pm:#0c7a38; --pm-bg:#d5f5da; --pp:#ab4d0a; --pp-bg:#fee6d3;
  --pr:#ce1141; --pr-bg:#fee4e4; --py:#8c610a; --py-bg:#f7ebc6; --pk:#c6107e; --pk-bg:#fee3ed; --pt:#0c7679; --pt-bg:#c5f6fb;
  /* avatars have colours of their own, the same in every style and theme: a bright fill and the initials' ink on it (4.5:1,
     APCA Lc 60). Blue, violet, red and pink are deep enough for white; green, teal, yellow and orange are too light for white
     and take a dark ink of their own hue. An avatar given one of these, var(--av-l), takes its ink, var(--av-l-ink), on its own */
  --av-b:#126fe6; --av-b-ink:#ffffff; --av-l:#834ff5; --av-l-ink:#ffffff; --av-r:#d73341; --av-r-ink:#ffffff; --av-k:#cf3288; --av-k-ink:#ffffff;
  --av-m:#27cf86; --av-m-ink:#052616; --av-t:#28c9d8; --av-t-ink:#042428; --av-y:#e9ac1a; --av-y-ink:#2a1d03; --av-p:#fda154; --av-p-ink:#301804;
  --ts:#2c6cb2; --react:#0a738b;
  /* every raised surface carries its own hairline edge, so nothing needs a separate ring */
  /* soft, layered shadows: a hairline, a contact shadow and two wide, faint ones. No highlight on the top edge or glow inside
     (owner, 18 Nov): Soft's cards and buttons are lit from outside only. Lighter and tighter since 26 Nov (owner: "shadows in
     Soft style are too strong"): a card is lifted by a whisper, and its edge is the hairline, about the half-strength --line
     on the stage; a popover keeps a step more lift than a card */
  --shadow:0 0 0 1px rgba(0,0,0,.045),0 1px 1px rgba(0,0,0,.02),0 2px 4px -2px rgba(0,0,0,.025),0 6px 12px -6px rgba(0,0,0,.03),0 12px 24px -12px rgba(0,0,0,.035);
  --shadow-pop:0 0 0 1px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03),0 4px 8px -4px rgba(0,0,0,.04),0 10px 20px -8px rgba(0,0,0,.05),0 20px 36px -16px rgba(0,0,0,.07);
  /* a white button on a tinted row or notice: a hairline edge and no shadow (owner, 18 Nov: Soft's buttons cast none) */
  --on-tint-btn:inset 0 0 0 1px rgba(0,0,0,.08); --on-tint-btn-h:inset 0 0 0 1px rgba(0,0,0,.14); --tint-h:color-mix(in srgb,currentColor 6%,transparent);
  --shadow-toast:0 0 0 1px rgba(0,0,0,.03),0 4px 12px rgba(0,0,0,.08);
  --hl:#fdeb9a; --hl-ok:#d3f1df;
  /* Soft is plush: every corner is scaled by --rk, and larger still where the browser draws true squircles (below) */
  --rk:1.25;
  --r-card:calc(16px * var(--rk-l,var(--rk)));
  /* spacing runs on a 4px scale, and corners on a small set of radii; values off the scale are still written out */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-8:32px; --r-xs:calc(4px * var(--rk-s,var(--rk))); --r-lg:calc(20px * var(--rk-l,var(--rk))); --r-in:calc(12px * var(--rk-l,var(--rk))); --r-sm:calc(8px * var(--rk-m,var(--rk))); --r-pill:999px;
  /* fields and tags have slightly rounded corners, never pills: --r-field for one-line fields and dropdown triggers, --r-box
     for boxes you write several lines in, --r-tag for tags. Where the browser smooths corners (corner-shape: squircle) a
     corner looks smaller, so each takes the larger -sq radius there to look the same size. Fields share one height and,
     where a component is a single field, one width */
  --r-field:10px; --r-field-sq:16px; --r-box:14px; --r-box-sq:22px; --r-tag:7px; --r-tag-sq:12px;
  --field-h:40px; --field-w:320px;
  --sans:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --ease:cubic-bezier(.22,1,.36,1); --ease-io:cubic-bezier(.65,0,.35,1);
  --t-fast:.22s; --t:.45s; --t-slow:.7s;
}
:root:not(.acc-on) .v2{
  --accent:#116ff8; --on-accent:#ffffff; --accent-fg:#0f5fd5; --accent-mark:#0a66ff;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2{
  --page:#111111; --stage:#1c1c1c; --surface:#262626; --raised:#363636;
  --fg:#f2f2f2; --fg2:#c9c9c9; --muted:#c0c0c0; --faint:#555555; --rail:#414141; --line:#333333; --field-line:#747474; --line-strong:#808080; --field-line-strong:#a3a3a3;
  --chip:#303030; --hover:#373737; --press:#3f3f3f; --wash:#2c2c2c; --row:color-mix(in srgb,var(--fg) 5.5%,transparent);
  --soft:#323232; --soft-h:#3a3a3a; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.035); --dis:#737373;
  --shadow-lift:0 0 0 1px rgba(255,255,255,.08),0 2px 4px rgba(0,0,0,.26),0 12px 24px -10px rgba(0,0,0,.45); --sel:color-mix(in srgb,var(--accent) 9%,transparent);
  --ink:#f2f2f2; --on-ink:#161616; --seg-k-shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.35); --tip-bg:#3d3d3b; --tip-fg:var(--fg); --tip-ring:0 0 0 1px rgba(255,255,255,.12);
  --ok:#4ade80; --ok-bg:#14391e; --ok-mark:#1fd160; --warn:#ffc247; --warn-bg:rgba(255,184,40,.2); --warn-mark:#ffa940; --bad:#ffaca4; --bad-bg:#4c221f; --bad-mark:#f97066;
  --merge:#cbb8ff; --merge-bg:rgba(169,139,255,.15); --add:#63d998; --del:#ffa9ae;
  --pb:#9ac1fd; --pb-bg:#1b3051; --pl:#c0b6fd; --pl-bg:#302a4f; --pm:#6ad485; --pm-bg:#14391e; --pp:#fdab81; --pp-bg:#472806;
  --pr:#fda8ab; --pr-bg:#4c2124; --py:#f5b23a; --py-bg:#3b2f04; --pk:#fda4cb; --pk-bg:#492134; --pt:#21dce2; --pt-bg:#05373c;
  --ts:#8fbcff; --react:#3dd0ee;
  --shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.22),0 4px 10px -4px rgba(0,0,0,.24),0 12px 24px -12px rgba(0,0,0,.28); --shadow-pop:0 0 0 1px rgba(255,255,255,.12),0 2px 4px rgba(0,0,0,.26),0 8px 20px -8px rgba(0,0,0,.34),0 20px 40px -18px rgba(0,0,0,.4); --shadow-toast:0 0 0 1px rgba(255,255,255,.05),0 4px 12px rgba(0,0,0,.4); --hl:rgba(240,200,60,.3); --hl-ok:rgba(60,207,126,.24); --on-tint-btn:inset 0 0 0 1px rgba(255,255,255,.1); --on-tint-btn-h:inset 0 0 0 1px rgba(255,255,255,.16); --tint-h:rgba(0,0,0,.1); color-scheme:dark}:root:not([data-theme="light"]):not(.acc-on) .v2{
  --accent:#116ff8; --on-accent:#ffffff; --accent-fg:#9dc4ff; --accent-mark:#2f86ff}}
:root[data-theme="dark"] .v2{
  --page:#111111; --stage:#1c1c1c; --surface:#262626; --raised:#363636;
  --fg:#f2f2f2; --fg2:#c9c9c9; --muted:#c0c0c0; --faint:#555555; --rail:#414141; --line:#333333; --field-line:#747474; --line-strong:#808080; --field-line-strong:#a3a3a3;
  --chip:#303030; --hover:#373737; --press:#3f3f3f; --wash:#2c2c2c; --row:color-mix(in srgb,var(--fg) 5.5%,transparent);
  --soft:#323232; --soft-h:#3a3a3a; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.035); --dis:#737373;
  --shadow-lift:0 0 0 1px rgba(255,255,255,.08),0 2px 4px rgba(0,0,0,.26),0 12px 24px -10px rgba(0,0,0,.45); --sel:color-mix(in srgb,var(--accent) 9%,transparent);
  --ink:#f2f2f2; --on-ink:#161616; --seg-k-shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.35); --tip-bg:#3d3d3b; --tip-fg:var(--fg); --tip-ring:0 0 0 1px rgba(255,255,255,.12);
  --ok:#4ade80; --ok-bg:#14391e; --ok-mark:#1fd160; --warn:#ffc247; --warn-bg:rgba(255,184,40,.2); --warn-mark:#ffa940; --bad:#ffaca4; --bad-bg:#4c221f; --bad-mark:#f97066;
  --merge:#cbb8ff; --merge-bg:rgba(169,139,255,.15); --add:#63d998; --del:#ffa9ae;
  --pb:#9ac1fd; --pb-bg:#1b3051; --pl:#c0b6fd; --pl-bg:#302a4f; --pm:#6ad485; --pm-bg:#14391e; --pp:#fdab81; --pp-bg:#472806;
  --pr:#fda8ab; --pr-bg:#4c2124; --py:#f5b23a; --py-bg:#3b2f04; --pk:#fda4cb; --pk-bg:#492134; --pt:#21dce2; --pt-bg:#05373c;
  --ts:#8fbcff; --react:#3dd0ee;
  --shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.22),0 4px 10px -4px rgba(0,0,0,.24),0 12px 24px -12px rgba(0,0,0,.28); --shadow-pop:0 0 0 1px rgba(255,255,255,.12),0 2px 4px rgba(0,0,0,.26),0 8px 20px -8px rgba(0,0,0,.34),0 20px 40px -18px rgba(0,0,0,.4); --shadow-toast:0 0 0 1px rgba(255,255,255,.05),0 4px 12px rgba(0,0,0,.4); --hl:rgba(240,200,60,.3); --hl-ok:rgba(60,207,126,.24); --on-tint-btn:inset 0 0 0 1px rgba(255,255,255,.1); --on-tint-btn-h:inset 0 0 0 1px rgba(255,255,255,.16); --tint-h:rgba(0,0,0,.1); color-scheme:dark}
:root[data-theme="dark"]:not(.acc-on) .v2{
  --accent:#116ff8; --on-accent:#ffffff; --accent-fg:#9dc4ff; --accent-mark:#2f86ff}

/* the accent's hover fill (--accent-2) and tint (--accent-bg) are worked out from the accent, in every style and theme, so a
   picked accent brings its own. Hovering a filled button moves its fill away from its text colour: darker under white text,
   lighter under dark text, so the label keeps its contrast in every style, theme and accent */
.v2{--accent-2:color-mix(in srgb,var(--accent) 86%,#000);--accent-bg:color-mix(in srgb,var(--accent) 9%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2{--accent-2:color-mix(in srgb,var(--accent) 84%,#fff);--accent-bg:color-mix(in srgb,var(--accent) 13%,transparent)}}
:root[data-theme="dark"] .v2{--accent-2:color-mix(in srgb,var(--accent) 84%,#fff);--accent-bg:color-mix(in srgb,var(--accent) 13%,transparent)}
@supports (color:rgb(from red r g b)){.v2,:root:not([data-theme="light"]) .v2,:root[data-theme="dark"] .v2{--accent-2:color-mix(in srgb,var(--accent) 86%,rgb(from var(--on-accent,#fff) calc(255 - r) calc(255 - g) calc(255 - b)))}}
@supports not (color:rgb(from red r g b)){.v2,:root:not([data-theme="light"]) .v2,:root[data-theme="dark"] .v2{--accent-2:color-mix(in srgb,var(--accent) 86%,#000)}:root:not([data-style="soft"],[data-style="studio"]) .v2,:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2,:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2{--accent-2:color-mix(in srgb,var(--accent) 86%,#fff)}}
/* picked things (chips, options, cards in a picker) are white tiles with a dimmed grey edge, and the picked one's edge
   is a light step stronger, never a dark or black outline */
.v2{--pick-line:var(--rail);--pick-on:var(--faint)}

/* Soft is plush: corners are drawn as squircles where the browser can (corner-shape), and since a squircle's corner
   reads smaller than a round one of the same radius, the radii grow with it. Circles (spinners, loader rings, avatars,
   dots) stay round; pills, chips, buttons and switchers are squircles too. Blueprint stays square (its corners are 0) */
@supports (corner-shape:squircle){
.v2{--rk:1.7}
:root:not([data-style="soft"],[data-style="studio"]) .v2{--rk:1}
.v2 *,.v2 *::before,.v2 *::after{corner-shape:squircle}
.v2 .acx-n .s,.v2 .afx-pen,.v2 .afx-r b,.v2 .agx-now i,.v2 .aln-cw-tr b,.v2 .aln-pk,.v2 .asx-lp-stop,.v2 .asx-lp-th,.v2 .asx-lp-th i,.v2 .asx-tb-dot,.v2 .atx-cmp-ok,.v2 .atx-cmp-send,.v2 .atx-cmp-x,.v2 .av,.v2 .bdg-dot,.v2 .bdg-x,.v2 .bdg-x:focus-visible,.v2 .btx-live,.v2 .ccx-fl .flag,.v2 .ccx-sw,.v2 .cmx-go,.v2 .cmx-pin,.v2 .cpx-att .fchip .rt,.v2 .cpx-att .fchip .x,.v2 .cpx-dot,.v2 .cpx-send,.v2 .ctb-n .s,.v2 .dot,.v2 .ecx-days b,.v2 .ecx-dh.t b,.v2 .evr-dot,.v2 .evr-jg-arc .tr,.v2 .evr-jg-arc i,.v2 .fxp-n .ag,.v2 .ib,.v2 .lnx-k i,.v2 .lnx-pt,.v2 .mix-dot,.v2 .msc-c button,.v2 .ntx-n .u,.v2 .plx-s .n,.v2 .pulse,.v2 .rxx-add,.v2 .sgc-wr .e i,.v2 .spin,.v2 .ssx-ics span,.v2 .stx-conf i.d,.v2 .stx-st .n,.v2 .think i,.v2 .tk-st .mk,.v2 .tsk-c .g,.v2 .tst-t .g,.v2 .ttp-av,.v2 .cxm-av,.v2 .crs-dots button,.v2 .rdx-lg i,.v2 .scx-lg i.c,.v2 .cvq-lg i.c,.v2 .rgx-r i,.v2 .wsx-marks span,.v2 .ths-dg i,.v2 .ths-mtx i,.v2 .hsc-dot,.v2 .hsc-pt i,.v2 .mtx-now i,.v2 .bws-dots i,.v2 .dtx-sl .k,.v2 .hox-av,.v2 .ste-go,.v2 .tcx[data-d="inline"] .tcb-wire i,.v2 .vor .vor-orb i,.v2 .vor-dot,.v2 .vor-gl,.v2 .vor-orb i,.v2 .igx-steps i,.v2 .axc-m{corner-shape:round}
.v2 .aln-det div::before{corner-shape:round}
.v2 .asx-lp-rg::-moz-range-thumb{corner-shape:round}
.v2 .asx-lp-rg::-webkit-slider-thumb{corner-shape:round}
.v2 .btx-live::after{corner-shape:round}
.v2 .dpk-d.t::after{corner-shape:round}
.v2 .ecx-now::before{corner-shape:round}
.v2 .fxp-tree::-webkit-scrollbar-thumb{corner-shape:round}
.v2 .hand::before{corner-shape:round}
.v2 .hnx-dot{corner-shape:round}
.v2 .pulse::after{corner-shape:round}
.v2 .radar::after{corner-shape:round}
.v2 .radar::before{corner-shape:round}
.v2 .sgc-mo .d.e::after,.v2 .sgc-mo .d b,.v2 .sgc-sel i,.v2 .sgc-lr i,.v2 .ntx-u i{corner-shape:round}
.v2 .stx-ok::after{corner-shape:round}
.v2 .tmx-body::-webkit-scrollbar-thumb{corner-shape:round}
.v2 .toggle::after{corner-shape:round}
.v2 .afx-desk::before{corner-shape:round}
}
/* ---------- page shell ---------- */
.v2 *{box-sizing:border-box}
.v2 button,.v2 input,.v2 textarea,.v2 select{font:inherit;color:inherit}
.v2 button{background:none;border:0;padding:0;cursor:pointer}
/* one weight for emphasis: medium, never bold */
.v2 b,.v2 strong{font-weight:500}
.v2 :focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:calc(6px * var(--rk-s,var(--rk)))}
/* a control pressed with a pointer, or a button that got the focus back after a click (closePops), keeps no ring until a key
   that moves or acts is pressed; a ring drawn on the control's neighbour (a checkbox's box) goes with it */
.v2 [data-nofv]:focus-visible,.v2 [data-nofv]:focus-visible+*{outline:0}
/* a field shows the focus with its own edge, which steps up to --field-line-strong, so it never takes the ring as well */
.v2 :focus-visible:is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="button"],[type="submit"],[type="reset"]),textarea,select,[contenteditable]:not([contenteditable="false"])){outline:0}
.v2.stage-in{width:100%;max-width:440px;min-width:0;position:relative;container-type:inline-size}
.v2.stage-in.wide{max-width:720px}

/* ---------- icons ---------- */
.v2 .i{width:16px;height:16px;flex:none;display:inline-block;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.v2 .i.s{width:14px;height:14px}.v2 .i.xs{width:12px;height:12px}.v2 .i.l{width:18px;height:18px}
.v2 .brand{width:16px;height:16px;display:block;flex:none}
.v2 .flag{width:20px;height:15px;border-radius:var(--r-tiny,3px);object-fit:cover;display:block;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.08)}

/* ---------- primitives ---------- */
.v2 .mono{font-family:var(--mono)}
.v2 .sp{flex:1}
.v2 .num{font-variant-numeric:tabular-nums}
.v2 .muted{color:var(--muted)}.v2 .fg2{color:var(--fg2)}
.v2 .panel{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);position:relative}
.v2 .ib{width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast),transform .15s}
@media (hover:hover) and (pointer:fine){.v2 .ib:hover{background:var(--row);color:var(--fg)}}
.v2 .ib.fill{background:var(--soft);box-shadow:var(--soft-ring)}
@media (hover:hover) and (pointer:fine){.v2 .ib.fill:hover{background:var(--soft-h)}}
.v2 .ib.on{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 var(--s-3);border-radius:var(--r-pill);font-size:13px;color:var(--fg2);background:var(--chip-fill);white-space:nowrap;transition:background var(--t-fast),color var(--t-fast),box-shadow var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .chip:hover{background:var(--chip-fill-h);color:var(--fg)}}
.v2 .chip.on{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
.v2 .chip.sm{height:24px;padding:0 9px;font-size:12px}
/* a click never scales a button or its words (owner, 18 Nov); only Studio's ink primary presses, at .97 (in its own section) */
.v2 .pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;padding:0 14px;border-radius:var(--r-pill);font-size:13px;font-weight:500;white-space:nowrap;transition:background var(--t-fast),color var(--t-fast),opacity var(--t-fast),transform .15s}
/* the primary action is the accent, with --on-accent on it, so it follows the accent and stays readable in any colour */
.v2 .pill.primary{background:var(--accent);color:var(--on-accent,#fff)}
@media (hover:hover) and (pointer:fine){.v2 .pill.primary:hover{background:var(--accent-2)}}
.v2 .pill.accent{background:var(--accent);color:var(--on-accent,#fff)}
.v2 .pill.accent.hl{background:var(--accent-2)}
@media (hover:hover) and (pointer:fine){.v2 .pill.accent:hover{background:var(--accent-2)}}
.v2 .pill.soft{background:var(--soft);color:var(--fg);box-shadow:var(--soft-ring)}
@media (hover:hover) and (pointer:fine){.v2 .pill.soft:hover{background:var(--soft-h)}}
.v2 .pill.line{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);color:var(--fg)}
/* a secondary action on a white card is this white outlined button, never the grey .pill.soft, which reads as pressed or
   disabled on white (owner, 23 Nov). Its hover in Soft and Blueprint is the quiet --row fill, with no change to its edge, and
   Metric insight's Why holds it while its breakdown is open.
   Studio keeps its own flat secondary (its rules come later and win) */
.v2 .pill.line.mix-why[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 :is(.aln-pause,.aln-sw-pause,.aln-sw-live,.ctm-go,.rc-go,.mix-why,.fmx-ai,.ecx-prep,.sbx-imp,.atb-em .pill,.atb-note .pill,.plx-f .pill).pill.line:hover{background:var(--row)}}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.aln-pause,.aln-sw-pause,.aln-sw-live,.ctm-go,.rc-go,.mix-why,.fmx-ai,.ecx-prep,.sbx-imp,.atb-em .pill,.atb-note .pill,.plx-f .pill).pill.line:hover{background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2 :is(.aln-pause,.aln-sw-pause,.aln-sw-live,.ctm-go,.rc-go,.mix-why,.fmx-ai,.ecx-prep,.sbx-imp,.atb-em .pill,.atb-note .pill,.plx-f .pill).pill.line:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 22%,var(--surface))}}
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2 :is(.aln-pause,.aln-sw-pause,.aln-sw-live,.ctm-go,.rc-go,.mix-why,.fmx-ai,.ecx-prep,.sbx-imp,.atb-em .pill,.atb-note .pill,.plx-f .pill).pill.line:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 22%,var(--surface))}}}
.v2 .pill.ghost{color:var(--fg2)}@media (hover:hover) and (pointer:fine){.v2 .pill.ghost:hover{background:var(--row);color:var(--fg)}}
/* the action on a warning notice (owner, 18 Nov): the warning tint with the warning text, as the warning chip (.tag.warn),
   deepening a little under the pointer */
.v2 .pill.warn{background:var(--warn-bg);color:var(--warn)}
/* the hover deepens the tint and keeps the words at 4.5:1: a little of the text colour in light, a little darker in dark (--tint-h) */
@media (hover:hover) and (pointer:fine){.v2 .pill.warn:hover{box-shadow:inset 0 0 0 99px var(--tint-h)}}
/* one disabled look for every control: nothing fades; its text and icons take --dis, a control with a fill swaps the fill
   for --dis-fill with its quiet edge (hatched in Blueprint), one without keeps no fill, and the pointer says not-allowed */
.v2 .pill[disabled]{opacity:1;color:var(--dis);background:none;cursor:not-allowed;transform:none}
@media (hover:hover) and (pointer:fine){.v2 .pill[disabled]:hover{opacity:1;color:var(--dis);background:none;cursor:not-allowed;transform:none}}
.v2 button:disabled{cursor:not-allowed}
.v2 .pill:is(.accent,.primary,.soft,.line)[disabled]{background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
@media (hover:hover) and (pointer:fine){.v2 .pill:is(.accent,.primary,.soft,.line)[disabled]:hover{background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}}
.v2 .pill.sm{height:28px;padding:0 11px;font-size:12.5px}
.v2 .tag{display:inline-flex;align-items:center;gap:5px;height:20px;padding:0 7px;border-radius:var(--r-tag);font-size:11.5px;font-weight:500;white-space:nowrap;background:var(--chip-fill);color:var(--fg2)}
.v2 .tag.b{background:var(--pb-bg);color:var(--pb)}.v2 .tag.l{background:var(--pl-bg);color:var(--pl)}.v2 .tag.m{background:var(--pm-bg);color:var(--pm)}.v2 .tag.p{background:var(--pp-bg);color:var(--pp)}
.v2 .tag.r{background:var(--pr-bg);color:var(--pr)}.v2 .tag.y{background:var(--py-bg);color:var(--py)}.v2 .tag.k{background:var(--pk-bg);color:var(--pk)}.v2 .tag.t{background:var(--pt-bg);color:var(--pt)}
.v2 .tag.ok{background:var(--ok-bg);color:var(--ok)}.v2 .tag.warn{background:var(--warn-bg);color:var(--warn)}.v2 .tag.bad{background:var(--bad-bg);color:var(--bad)}
@supports (corner-shape:squircle){.v2 .tag{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
.v2 .dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;display:inline-block}
.v2 .fchip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 var(--s-2);border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;color:var(--fg);white-space:nowrap}
.v2 .fchip.lnk{cursor:pointer;transition:background var(--t-fast),box-shadow var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .fchip.lnk:hover{background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
.v2 .ft{font-family:var(--sans);font-size:9.5px;font-weight:500;color:var(--ts);letter-spacing:.02em}
.v2 .ft.re{color:var(--react)}.v2 .ft.fg{color:var(--pl)}.v2 .ft.pdf{color:var(--pr)}.v2 .ft.csv{color:var(--pm)}
.v2 .kbd{font-family:inherit;font-size:11px;padding:1px 5px;border-radius:var(--r-tiny,5px);background:var(--chip-fill);color:var(--fg2)}
/* grey chips, tags and key caps are a step darker than --chip in Soft and Blueprint, so they read on white and on a hovered row
   (owner, 24 Nov); Studio keeps --chip. Their hover is a step darker again */
.v2{--chip-fill:var(--hover);--chip-fill-h:var(--press)}
:root[data-style="studio"] .v2{--chip-fill:var(--chip);--chip-fill-h:var(--hover)}
/* on a row that is hovered, highlighted or picked, the row turns grey, so its shortcut chips turn white to stay visible */
@media (hover:hover) and (pointer:fine){.v2 :is(.mi,.cpl-i,[role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"]):is(:hover,.hl,.on,[aria-selected="true"]) .kbd{background:var(--surface)}}
@media (hover:hover) and (pointer:fine){.v2 .pill.ghost:hover .kbd{background:var(--surface)}}
.v2 .pill .kbd{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 var(--s-1);margin-right:-6px}
/* a key hint on a filled button sits on a slightly darker well of the fill, so white text keeps its contrast */
.v2 .pill.primary .kbd,.v2 .pill.accent .kbd{background:color-mix(in srgb,var(--accent) 80%,#000);color:inherit}
/* a disabled button's key chip is disabled with it, in every style (owner, 23 Nov: Accept's Tab kept its accent well): no
   fill of its own colour, only a faint tint of the button's disabled text, which it takes as its words */
.v2 .pill[disabled] .kbd,.v2 .pill:is(.primary,.accent)[disabled] .kbd{background:color-mix(in srgb,currentColor 14%,transparent);color:inherit}
.v2 code.c{font-family:var(--mono);font-size:12.5px;background:var(--chip);padding:1px 5px;border-radius:var(--r-tiny,5px)}
.v2 .av{width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;font-size:10px;font-weight:500;color:#fff;flex:none}
.v2 .hr{height:1px;background:var(--line);border:0;margin:0}
/* a data table's columns (cols()): the handle on a header's right edge, on the line between two columns, which turns into a
   3px grey bar while it is pointed at, dragged or has the keyboard's focus; the line where a moved column will land, its name
   following the pointer, and its cells tinted while it moves. Each table draws the lines between its columns itself */
.v2 .col-rz{position:absolute;top:0;bottom:0;right:-4px;z-index:2;width:9px;cursor:col-resize;touch-action:none;outline:0}
.v2 .col-rz::after{content:"";position:absolute;top:6px;bottom:6px;left:4px;width:1px;border-radius:1px;background:transparent;transition:background-color var(--t-fast),width var(--t-fast),left var(--t-fast)}
.v2 .col-rz.on::after,.v2 .col-rz:focus-visible::after{left:3px;width:3px;background:var(--line-strong)}
@media (hover:hover) and (pointer:fine){.v2 .col-rz:hover::after{left:3px;width:3px;background:var(--line-strong)}}
.v2 .col-rz:focus-visible{outline:0}
.v2 th:last-child>.col-rz{display:none}
.v2 .cols-rz{table-layout:fixed}
.v2 .cols-rzing,.v2 .cols-rzing *{cursor:col-resize!important;user-select:none;-webkit-user-select:none}
.v2 .cols-drag,.v2 .cols-drag *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
.v2 :is(th,td).col-mv{background-color:color-mix(in srgb,var(--fg) 4%,var(--surface))}
.v2 .col-at{position:fixed;z-index:1001;width:2px;border-radius:1px;background:var(--accent-mark,var(--accent));pointer-events:none}
.v2 .col-ghost{position:fixed;left:0;top:0;z-index:1002;padding:5px 10px;border-radius:var(--r-sm);background:var(--raised);box-shadow:var(--shadow-pop);font-size:12px;font-weight:500;color:var(--fg);pointer-events:none;white-space:nowrap}
/* an off switch and an empty box are drawn in a grey that holds 3:1 against the surface; an accent fill keeps a hairline of the
   accent's mark, so a light accent like lime still has an edge */
.v2 .toggle{width:30px;height:18px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:color-mix(in srgb,var(--muted) 80%,var(--surface));position:relative;flex:none;transition:background var(--t-fast)}
.v2 .toggle::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform var(--t) var(--ease)}
.v2 .toggle[aria-checked="true"]{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent))}
.v2 .toggle[aria-checked="true"]::after{transform:translateX(12px);background:var(--on-accent,#fff)}
/* on a touch screen every control gets a tap area of at least 40px square, centred on it, without changing how it looks or
   where anything sits: a clear ::before (or ::after, where a component draws with its ::before) over and around it. Where
   two controls sit closer than that, the core script (fitHits) shrinks both areas evenly, so each tap still lands on the
   control nearest to it. Everything here weighs nothing (:where), so a component's own position or pseudo-element wins.
   The build checks that every selector drawing with a ::before or ::after is in the lists below */
@media (pointer:coarse){
  .v2 :where(button,a[href],summary,[role="button"],[role="switch"],[role="checkbox"],[role="radio"],[role="tab"],[role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"],[role="slider"],label:has(input[type="checkbox"],input[type="radio"])){position:relative;--hit-w:40px;--hit-h:40px}
  .v2 :where(button,a[href],summary,[role="button"],[role="switch"],[role="checkbox"],[role="radio"],[role="tab"],[role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"],[role="slider"],label:has(input[type="checkbox"],input[type="radio"])):not(:where(.radar,.hand,.mtx-jm,.fmx-ty .chip[data-tone],.rtr-li:not(:last-child),.atr-kids,.bws-nav b,.rc-cap,.rte-body.empty,.rte-hint,.afx-desk,.dtx-sl,.ahx-bot,.ecx-now,.ssi-or,.cmx-rp>.cmx-c,.aln-ct,.aln-rows>*,.aln-av,.aln-det div,.aln-pk,.trv-r[data-k="agent"] .trv-b i,.tk-st:not(:last-child),.tmx-blk,.atx-ic,.atx-em-art,.pvb-st,:root[data-style="studio"] .plx-h,.evr-em-art,.wrx-lbh,.fxp-n .ag,.fxp-em-art,.ksx-em-art,.atb-em-art,:is(.cmx-th,.cmx-th>.dm-grow)>.cmx-c:first-child:has(+ .cmx-rp),.ntx-em-art,.bnx[data-tone="warning"] .bnx-eb,.flm-em-art,.tkx-em-art,:root[data-style="studio"] :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go),:root[data-style="studio"] .ste-go,:root[data-style="studio"] .hg[data-hg="b"],.mx-glide.hg[data-hg="b"],:root[data-style="studio"] .prg-ring,:root[data-style="studio"] .hsc-ring))::before,.v2 :where(button,a[href],summary,[role="button"],[role="switch"],[role="checkbox"],[role="radio"],[role="tab"],[role="option"],[role="menuitem"],[role="menuitemradio"],[role="menuitemcheckbox"],[role="slider"],label:has(input[type="checkbox"],input[type="radio"])):where(.radar,.hand,.mtx-jm,.fmx-ty .chip[data-tone],.rtr-li:not(:last-child),.atr-kids,.bws-nav b,.rc-cap,.rte-body.empty,.rte-hint,.afx-desk,.dtx-sl,.ahx-bot,.ecx-now,.ssi-or,.cmx-rp>.cmx-c,:is(.cmx-th,.cmx-th>.dm-grow)>.cmx-c:first-child:has(+ .cmx-rp),:root[data-style="studio"] :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go),:root[data-style="studio"] .ste-go):not(:where(.cmx-rp>.cmx-c:not(:last-child),.aln-lane,.trv-g i.el,.trv-r.run:not([data-k="agent"]) .trv-b i,.trv-r[data-k="agent"] .trv-b i,.trv-b,.trv-sc,.tk-st.done:not(:last-child),.tmx-h,.tmx.live .tmx-body,.atx-ic,.atx-em-art,.evr-em-art,.toggle,.radar,.pulse,.stl-track i,.stx-ok,.aln-tr i,.afx-card .afx-open,.plx-s.edited .t,.vor-mi,.mix-mk,.hnx-t .ic,.ksx-s .ic,.shx-r .ic,.dpk-d.t,.sgc-mo .d.e,.agx-now,.btx-ask,.btx-live,.ssi-or,.bdg.live .bdg-dot,.crs-pv,.crs-pic,.hmx-sc,.pva-mk>i,.fxp-em-art,.ksx-em-art,.atb-em-art,.ntx-em-art,.bnx[data-tone="warning"] .bnx-eb,.flm-em-art,.tkx-em-art,.col-rz,.ttx-t :is(th,td):not(:first-child):not(:last-child),:root[data-style="studio"] .hg[data-hg="a"],.mx-glide.hg[data-hg="a"],:root[data-style="studio"] .prg :is(.prg-seg i,.prg-lin,.prg-mb),:root[data-style="studio"] .sbx-rh .bar))::after{content:"";position:absolute;inset:min(0px,(100% - var(--hit-h)) / 2) min(0px,(100% - var(--hit-w)) / 2);--dm-hit:1}
}
.v2 .seg2{display:inline-flex;padding:2px;background:var(--chip);border-radius:var(--r-pill);position:relative}
.v2 .seg2 button{position:relative;z-index:1;height:26px;padding:0 11px;border-radius:var(--r-pill);font-size:12.5px;color:var(--fg2);transition:color var(--t-fast)}
.v2 .seg2 button[aria-pressed="true"]{color:var(--fg)}
.v2 .seg2 .knob{position:absolute;top:2px;bottom:2px;border-radius:var(--r-pill);background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.08);transition:left var(--t) var(--ease),width var(--t) var(--ease)}
.v2 .seg2 button:focus-visible{outline-offset:-2px;border-radius:var(--r-pill)}
/* underline tabs (owner, 28 Nov; Notifications first, then Run drawer and Team memory): a row of tabs under a card's head, on a
   hairline that runs edge to edge, the picked tab's 2px line sliding along it. A tab's words are muted, and the picked one (or
   one under the pointer) is the text colour. Each component sets the row's margins so its hairline reaches its card's edges
   and the first tab's words start on the content's 16px column. Studio puts the row in the head strip, on its off-white, and
   the row's line is the strip's own. The core script's utabs() wires the clicks, Left and Right, and the line */
.v2 .utabs{position:relative;display:flex;gap:var(--s-4);padding:0 var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .utabs>button{position:relative;height:32px;padding:0;font-size:13px;color:var(--muted);white-space:nowrap;transition:color var(--t-fast) var(--ease)}
.v2 .utabs>button[aria-selected="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .utabs>button:hover{color:var(--fg)}}
.v2 .utabs-i{position:absolute;bottom:-1px;left:0;height:2px;border-radius:2px 2px 0 0;background:var(--fg);transition:left var(--t) var(--ease),width var(--t) var(--ease)}
:root[data-style="studio"] .v2 .utabs{background:var(--strip);border-bottom-color:var(--line)}
/* demo stages: the component sits centred, the variant switcher sits at the foot of the stage under it */
.v2.stage-in:has(>.dm){align-self:stretch;display:flex}
.v2 .dm{width:100%;min-height:328px;display:flex;flex-direction:column;align-items:center;gap:var(--s-8)}
.v2 .dm>.dm-main{margin-block:auto;width:100%;display:flex;flex-direction:column;align-items:center}
.v2 .dm>.demo{flex:none;display:flex;justify-content:center}

.v2 .bub{align-self:flex-end;max-width:85%;background:var(--hover);border-radius:var(--r-card);padding:9px 13px;font-size:14px;line-height:1.45}
.v2 .msg{margin:0;font-size:14px;line-height:1.65}

/* ---------- status glyphs ---------- */
.v2 .spin{width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;border-right-color:transparent;animation:v2-rot .8s linear infinite;flex:none;display:inline-block}
@keyframes v2-rot{to{transform:rotate(360deg)}}
.v2 .radar{position:relative;width:13px;height:13px;flex:none;display:inline-block}
.v2 .radar::before{content:"";position:absolute;inset:3.5px;border-radius:50%;background:currentColor}
.v2 .radar::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.3px solid currentColor;border-right-color:transparent;animation:v2-rot .9s linear infinite}
/* the rotating thinking mark from Soft 1, four dots turning */
.v2 .think{width:14px;height:14px;position:relative;flex:none;display:inline-block}
.v2 .think i{position:absolute;width:3.4px;height:3.4px;border-radius:50%;background:currentColor;left:50%;top:50%;margin:-1.7px}
.v2 .think i:nth-child(1){transform:translate(-3.6px,-3.6px)}.v2 .think i:nth-child(2){transform:translate(3.6px,-3.6px)}.v2 .think i:nth-child(3){transform:translate(3.6px,3.6px)}.v2 .think i:nth-child(4){transform:translate(-3.6px,3.6px)}
.v2 .think.on{animation:v2-thinkrot 1.6s var(--ease-io) infinite}
.v2 .think.on i{animation:v2-thinkpulse 1.6s var(--ease-io) infinite}
.v2 .think.on i:nth-child(2){animation-delay:.2s}.v2 .think.on i:nth-child(3){animation-delay:.4s}.v2 .think.on i:nth-child(4){animation-delay:.6s}
@keyframes v2-thinkrot{0%{transform:rotate(0)}50%{transform:rotate(90deg)}100%{transform:rotate(180deg)}}
@keyframes v2-thinkpulse{0%,100%{opacity:1}50%{opacity:.35}}
/* the step that is happening now in a trace: a quiet grey dot with a soft ping */
.v2 .pulse{position:relative;width:6px;height:6px;border-radius:50%;background:var(--muted);flex:none;display:inline-block}
.v2 .pulse::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:v2-ping 1.8s var(--ease) infinite}
@keyframes v2-ping{0%{transform:scale(1);opacity:.45}80%,100%{transform:scale(2.8);opacity:0}}

/* ---------- motion ---------- */
.v2 .shim{background:linear-gradient(90deg,var(--fg) 0%,var(--fg) 38%,var(--faint) 50%,var(--fg) 62%,var(--fg) 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:v2-shim 2.2s linear infinite}
@keyframes v2-shim{from{background-position:100% 0}to{background-position:-160% 0}}
.v2 .enter{animation:v2-enter var(--t-slow) var(--ease) backwards}
@keyframes v2-enter{from{opacity:0;transform:translateY(6px);filter:blur(4px)}to{opacity:1;transform:none;filter:blur(0)}}
/* the person in a preview's story: a pointer that glides to what it uses and presses it */
.v2 .hand{position:absolute;left:0;top:0;width:18px;height:18px;z-index:200;pointer-events:none;opacity:0;color:var(--fg);transition:transform .42s var(--ease),opacity .16s;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.22))}
.v2 .hand.on{opacity:1}
.v2 .hand svg{display:block;width:18px;height:18px;transform-origin:3px 2px;transition:transform .16s var(--ease)}
.v2 .hand svg path{fill:currentColor;stroke:var(--surface);stroke-width:1.4;stroke-linejoin:round}
.v2 .hand.down svg{transform:scale(.82)}
.v2 .hand::before{content:"";position:absolute;left:-8px;top:-9px;width:22px;height:22px;border-radius:50%;background:var(--accent);opacity:0;pointer-events:none}
.v2 .hand.down::before{animation:v2-handtap .5s var(--ease)}
@keyframes v2-handtap{from{opacity:.3;transform:scale(.3)}to{opacity:0;transform:scale(1.3)}}
.v2 .pop-in{animation:v2-popin .5s var(--ease) backwards}
@keyframes v2-popin{from{opacity:0;transform:scale(.96);filter:blur(3px)}to{opacity:1;transform:none;filter:blur(0)}}
/* what reflow() leaves behind as an item goes: a still copy that only fades */
.v2 [data-ghost],.v2 [data-ghost] *{animation:none!important;transition:none!important}
.v2 .leave{animation:v2-leave .35s var(--ease) both}
@keyframes v2-leave{to{opacity:0;transform:translateY(-6px);filter:blur(4px)}}
.v2 .sw{display:inline-block;transition:opacity .2s var(--ease),filter .2s var(--ease),transform .25s var(--ease)}
.v2 .sw.out{opacity:0;filter:blur(3px);transform:translateY(3px)}
.v2 .fold{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease)}
.v2 .fold>*{overflow:hidden;min-height:0}
/* shadows inside an open fold aren't cut off: the clip leaves room round its edge (a shut fold is invisible anyway) */
.v2 .fold{grid-template-columns:minmax(0,1fr)}
.v2 .fold>*{overflow:clip;overflow-clip-margin:12px;min-width:0}
/* a shut fold is hidden as well as clear once it has folded, so Tab passes over what is inside it */
.v2 .fold.shut{grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),visibility 0s var(--t)}

/* grow(): a container that grows with its content, eased (any component; Plan review and Delegation tree use it) */
.v2 .growing{overflow:clip;overflow-clip-margin:6px;--grow-t:.55s}
.v2 .growing>.dm-grow{display:flex;flex-direction:column;gap:inherit;flex:none}
/* a foot marked .mx-foot (a footer strip at the card's bottom) rides the card's bottom edge while the card springs to a change
   made at once (growFit()'s --grow-d), so it never drops out of sight or jumps up and leaves a gap; it covers what slides
   under it with the card's own surface */
.v2 .growing .mx-foot{translate:0 var(--grow-d,0px);position:relative;z-index:1;background-color:var(--surface)}
/* ...and that cover takes the card's own bottom corners, so the grow clip's few px of margin never shows a square foot
   past the card's rounded edge (owner, 2 Dec: Command palette's square bottom corners) */
.v2 .growing>.mx-foot{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
/* (grow() wraps what the box holds, the foot included, in one .dm-grow, so the corners pass through it to the foot too) */
.v2 .growing>.dm-grow,.v2 .growing>.dm-grow>.mx-foot{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
/* ---------- tooltip and popover ---------- */
.v2 .tip{position:fixed;z-index:1000;pointer-events:none;background:var(--tip-bg,var(--ink));color:var(--tip-fg,var(--on-ink));box-shadow:var(--tip-ring,none);font-size:12px;line-height:1.35;padding:6px 9px;border-radius:var(--r-sm);max-width:240px;opacity:0;transform:translateY(4px);filter:blur(2px);transition:opacity .18s var(--ease),transform .25s var(--ease),filter .18s}
.v2 .tip.show{opacity:1;transform:none;filter:none}
.v2 .copied{color:var(--ok)!important}
@media (hover:hover) and (pointer:fine){.v2 .copied:hover{color:var(--ok)!important}}
/* a shortcut in a tip is a chip of the tip's own text colour, so it shows on a dark tip and on Studio's white one alike */
.v2 .tip .kbd{background:color-mix(in srgb,currentColor 14%,transparent);color:inherit;margin-left:6px}
/* a closed popover is hidden as well as clear, so Tab and screen readers pass over it: it shows at once as it opens, so the
   focus can go into it, and hides once it has faded out */
.v2 .pop{--pop-r:calc(14px * var(--rk-l,var(--rk)));--pop-p:6px;position:absolute;z-index:50;min-width:200px;background:var(--raised);border-radius:var(--pop-r);box-shadow:var(--shadow-pop);padding:var(--pop-p);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(6px) scale(.98);transform-origin:var(--origin,top left);filter:blur(3px);transition:opacity .2s var(--ease),transform .35s var(--ease),filter .2s var(--ease),visibility 0s .2s}
.v2 .pop.open{opacity:1;visibility:visible;pointer-events:auto;transform:none;filter:none;transition-property:opacity,transform,filter}
.v2 .pop .ph{padding:6px var(--s-2) var(--s-1);font-size:11.5px;color:var(--muted)}
/* a menu's rows are concentric with it: a row's corner is the menu's corner less the menu's padding, so the two curves run
   parallel (owner, 30 Nov: "we HAVE to make sure these are perfectly matched"). A menu with its own radius or padding sets
   --pop-r and --pop-p with them */
.v2 .pop .mi{border-radius:max(0px,calc(var(--pop-r) - var(--pop-p)))}
.v2 .mi{display:flex;align-items:center;gap:10px;width:100%;padding:7px var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;color:var(--fg);transition:background var(--t-fast)}
.v2 .mi.hl{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .mi:hover{background:var(--row)}}
/* the rows of a menu or list stand 2px apart, so two highlighted rows never touch */
.v2 .mi+.mi,.v2 .cpl-i+.cpl-i,.v2 .six-it+.six-it{margin-top:2px}
.v2 .mi .i{color:var(--fg2)}
.v2 .mi .d{display:block;font-size:12px;color:var(--muted)}
/* on a hovered or picked row's tint the line under an item steps up, so it keeps 4.5:1 in dark mode */
@media (hover:hover) and (pointer:fine){.v2 .mi:is(:hover,.hl,[aria-checked="true"]) .d{color:var(--fg2)}}
.v2 .mi .r{margin-left:auto;color:var(--muted);font-size:12px}
.v2 .mi .ck{margin-left:auto;color:var(--accent-fg,var(--accent));opacity:0;transition:opacity var(--t-fast)}
.v2 .mi[aria-checked="true"] .ck{opacity:1}
/* a picked row with a tick shows by its tick, so it never reads as a second hovered row (owner, 30 Nov); Studio's picked row
   keeps its stronger fill */
.v2 .mi[aria-checked="true"]{font-weight:500}
.v2 .mi[aria-checked="true"]:not(:has(.ck)){background:var(--row)}
.v2 .pop .sep{height:1px;background:var(--line);margin:var(--s-1) 2px}
/* every list row hovers with --row; an icon chip or track inside a hovered row lifts above it (white in light mode, one step lighter in dark) */
@media (hover:hover) and (pointer:fine){:root[data-theme="dark"] .v2 :is(.plx-s:hover .n,.tpx-r:hover .tr){background:var(--hover)}}
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-theme="light"]) .v2 :is(.plx-s:hover .n,.tpx-r:hover .tr){background:var(--hover)}}}
/* ---------- motion pieces ---------- */
/* the finer motion of everyday interactions (owner, 26 Nov: "one more visual pass on the type of interactions and animations"),
   tried on five components first (Model picker, Command palette, Citation hover card, Answer action bar, Decision prompt). Each
   piece is a class a component opts into, so nothing else moves any differently:
   .mx-pop    a popover or card grows out of its trigger (its --origin) from a short blur, and goes back into it quicker than it came
   .mx-rows   a list's rows settle one after another as it opens (.open, .show, or .mx-play from the component)
   .mx-press  a press shows at once, a step deeper than the hover, and eases back on release; nothing scales (owner, 18 Nov)
   .mx-ic     an icon that changes (Copy's tick, play and pause, a spinner) crossfades through a little scale and blur (iconSwap())
   .mx-w      words that swap (swap()) ease their box to the new width, so what sits beside them glides instead of jumping
   .mx-glide  the one highlight that glides from row to row (hoverGlide()) in Soft and Blueprint too, as it does in Studio
   The script's mxIn() and mxOut() bring content in and take it out with the same tokens. Timing: --t-in and --t-out for what
   arrives and goes (going is quicker), --t-press for a press, --ease-spring for places and sizes (a critically damped spring: quick
   off the mark, a long soft settle, never past its mark), --ease-pop for scale and tilt (3% past, then back). Blur: --blur-in for popovers, cards and content, --blur-ic for
   icons. Blueprint is crisp, with no blur and shorter times; Studio keeps its calm motion and its no-blur rule (Studio section) */
.v2{--t-in:.36s;--t-out:.16s;--t-press:.06s;--t-glide:.26s;--ease-spring:var(--ease);--ease-pop:cubic-bezier(.34,1.3,.64,1);--blur-in:6px;--blur-ic:2px;--ic-scale:.6;--mx-step:24ms;--row-press:var(--chip)}
@supports (transition-timing-function:linear(0,1)){.v2{--ease-spring:linear(0,.227,.403,.54,.647,.73,.793,.843,.881,.91,.932,.949,.962,.972,.98,.985,.99,.993,.995,.997,1);--ease-pop:linear(0,.165,.333,.489,.627,.742,.834,.904,.956,.991,1.014,1.027,1.034,1.035,1.033,1.029,1.024,1.02,1.015,1.011,1.008,1.005,1)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2{--t-in:.22s;--t-out:.12s;--t-glide:.16s;--blur-in:0px;--blur-ic:0px;--ic-scale:.7;--mx-step:14ms}
.v2 .mx-pop{opacity:0;visibility:hidden;transform:scale(.95);filter:blur(var(--blur-in));transform-origin:var(--origin,top left);transition:opacity var(--t-out) var(--ease-io),transform var(--t-out) var(--ease-io),filter var(--t-out) var(--ease-io),visibility 0s var(--t-out)}
.v2 .mx-pop:is(.open,.show){opacity:1;visibility:visible;transform:none;filter:none;transition:opacity calc(var(--t-in) * .6) var(--ease),transform var(--t-in) var(--ease-pop),filter calc(var(--t-in) * .7) var(--ease),visibility 0s}
@keyframes v2-mxrow{from{opacity:0;transform:translateY(-4px);filter:blur(var(--blur-ic))}}
.v2 :is(.open,.show,.mx-play).mx-rows>*{animation:v2-mxrow var(--t-in) var(--ease) backwards;animation-delay:calc(40ms + var(--mx-i,0) * var(--mx-step))}
.v2 .mx-rows>:nth-child(2){--mx-i:1}.v2 .mx-rows>:nth-child(3){--mx-i:2}.v2 .mx-rows>:nth-child(4){--mx-i:3}.v2 .mx-rows>:nth-child(5){--mx-i:4}.v2 .mx-rows>:nth-child(6){--mx-i:5}.v2 .mx-rows>:nth-child(n+7){--mx-i:6}
.v2 .mx-press:not([disabled],[aria-pressed="true"],[aria-checked="true"],.on):active{background-color:var(--row-press);transition-duration:var(--t-press)}
.v2 .mx-w{white-space:nowrap}
/* (the React components' SwapIcon wraps the icon it swaps in a span of this class) */
.v2 .mx-icon{display:inline-grid;place-items:center}
/* .mx-grow: a component that grows with what it holds (grow()) takes the motion pieces' time for a change made at once (--t-in ×
   1.4, set in growFit()); Agent harness, which places some of them in its chat, keeps grow()'s own --grow-t */
.v2 .mx-glide.hg{isolation:isolate}
.v2 .mx-glide.hg.hg-pos{position:relative}
.v2 .mx-glide.hg[data-hg="b"]::before,.v2 .mx-glide.hg[data-hg="a"]::after{content:"";position:absolute;left:0;top:0;z-index:-1;pointer-events:none;width:var(--hg-w,0px);height:var(--hg-h,0px);transform:translate(var(--hg-x,0px),var(--hg-y,0px));border-radius:var(--hg-r,10px);background:var(--hg-bg,var(--row));opacity:var(--hg-o,0);transition:opacity var(--t-fast) var(--ease),transform var(--t-glide) var(--ease-spring),width var(--t-glide) var(--ease-spring),height var(--t-glide) var(--ease-spring),background-color var(--t-fast) var(--ease)}
.v2 .mx-glide.hg.hg-jump[data-hg="b"]::before,.v2 .mx-glide.hg.hg-jump[data-hg="a"]::after{transition:opacity var(--t-fast) var(--ease)}
.v2 .mx-glide.hg [data-hgr=""]{background-color:transparent!important}
/* a pressed row deepens the glide under it, at once, and lets it ease back */
.v2 .mx-glide.hg:has([data-hgr]:active){--hg-bg:var(--row-press)}
.v2 .mx-glide.hg:has([data-hgr]:active)::before{transition-duration:var(--t-fast),var(--t-glide),var(--t-glide),var(--t-glide),var(--t-press)}
@media (prefers-reduced-motion:reduce){.v2 .mx-glide.hg[data-hg="b"]::before,.v2 .mx-glide.hg[data-hg="a"]::after{transition-property:opacity!important;transition-duration:var(--t-fast)!important}.v2 .mx-pop{filter:none!important}}

@media (prefers-reduced-motion:reduce){.v2 *,.v2 *::before,.v2 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.v2 .shim{color:var(--fg);background:none}}

/* bare: components that live in the chat stream sit on the chat surface, no card */
.v2.stage-in.bare .panel:not(.keep){background:none;box-shadow:none;padding-left:0;padding-right:0;border-radius:0}
/* chart palette, saturated */
.v2{--c1:var(--accent-mark,var(--accent));--c2:#7c4dff;--c3:#00a23d;--c4:#f76700;--c5:#ff4d6d;--c6:#00a2bf}
/* the accent as a ramp, for charts whose parts are shares of one thing: full strength, then lighter steps toward the surface */
.v2{--a1:var(--c1);--a2:color-mix(in oklab,var(--c1) 72%,var(--surface));--a3:color-mix(in oklab,var(--c1) 50%,var(--surface));--a4:color-mix(in oklab,var(--c1) 32%,var(--surface))}
:root[data-theme="dark"] .v2{--c1:var(--accent-mark,var(--accent));--c2:#9b7bff;--c3:#1fd160;--c4:#ffa033;--c5:#ff6b85;--c6:#22cce8}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .v2{--c1:var(--accent-mark,var(--accent));--c2:#9b7bff;--c3:#1fd160;--c4:#ffa033;--c5:#ff6b85;--c6:#22cce8}}
/* Blueprint's first chart colour is its accent's mark, a green in light and a lime in dark, so its third is a blue: two greens
   side by side (a donut's parts, a goal's rings) could not be told apart */
:root:not([data-style="soft"],[data-style="studio"]) .v2{--c3:#0a66ff}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2{--c3:#2f86ff}
@media (prefers-color-scheme: dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2{--c3:#2f86ff}}
/* Blueprint's picked row or citation: the lime itself in light (its darker mark reads green there), the mark in dark */
:root:not([data-style="soft"],[data-style="studio"]) .v2{--bp-pick:color-mix(in srgb,var(--accent) 32%,transparent)}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2{--bp-pick:color-mix(in srgb,var(--accent-mark) 12%,transparent)}
@media (prefers-color-scheme: dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2{--bp-pick:color-mix(in srgb,var(--accent-mark) 12%,transparent)}}

/* ---------- Status pill ---------- */
.v2 .spl-stage{min-height:44px;justify-content:center}
.v2 .spl-pill{background:var(--surface);border-radius:var(--r-pill);box-shadow:var(--shadow);height:40px;display:flex;align-items:center;overflow:hidden;transition:width .6s var(--ease),border-radius .5s var(--ease),height .5s var(--ease)}
.v2 .spl-in{display:flex;align-items:center;gap:9px;padding:0 6px 0 14px;height:100%;white-space:nowrap;font-size:13.5px;transition:opacity .32s var(--ease),filter .32s var(--ease)}
.v2 .spl-in.out{opacity:0;filter:blur(4px);transition-duration:.16s}
/* the mark's box is the mark itself, so the room before it is the pill's own padding, the same as the room after the words
   (owner, 21 Nov: "too much on left vs right visually"): a pale dot no longer sits 5px further in than a spinner */
.v2 .spl-in .g{display:grid;place-items:center;min-width:6px;color:var(--fg2)}
.v2 .spl-in .m{color:var(--muted);font-variant-numeric:tabular-nums}
.v2 .spl-in .end{width:0}
.v2 .spl-in>:is(.g,.m,.fchip,.pill){flex:none}
.v2 .spl-in>span:not(.g,.m,.end,.fchip){min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .spl-in .pill{height:28px;margin-left:var(--s-1)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .spl .pill:active{transform:none}
/* the bar is a small card: its line and the track under it sit 16px in from every edge (owner, 18 Nov). Its line is as tall
   as its words, or as Review while Review is there, so it grows a little round the button and shrinks back after, smoothly,
   and keeps no room for it otherwise */
.v2 .spl.bar .spl-pill{--spl-row:18px;border-radius:var(--r-card);height:calc(var(--spl-row) + 45px);align-items:flex-start}
.v2 .spl.bar .spl-pill:has(.spl-in .pill){--spl-row:28px}
.v2 .spl.bar .spl-in{height:var(--spl-row);margin-top:16px;width:100%;padding:0 var(--s-4);line-height:18px}
.v2 .spl.bar .spl-in .m,.v2 .spl.bar .spl-in .pill{margin-left:auto}
.v2 .spl.bar .spl-in .end{display:none}
.v2 .spl-track{position:absolute;left:16px;right:16px;bottom:16px;height:3px;border-radius:var(--r-tiny,2px);background:var(--rail);overflow:hidden;opacity:0;transition:opacity .16s}
.v2 .spl.bar .spl-track{opacity:1;transition:opacity .4s var(--ease) .1s}
.v2 .spl.mo .spl-track{opacity:0;transition:opacity .16s}
.v2 .spl-fill{height:100%;width:0;border-radius:inherit;background:var(--accent-mark,var(--accent));transition:width .8s var(--ease)}
.v2 .spl-pill{position:relative}
/* Studio (owner, 17 Nov): a hairline pill, 36px, with the card's outline and short shadow; the marks keep their colours
   (the blue spinner and fill, the green tick, the orange wait dot). A step crosses with a 3px fade, no blur; Review is the
   ink button, round and concentric in the pill. The bar takes the card's round corners, its content 16px in from every edge
   (owner, 18 Nov), a 3px rail with the accent fill, and Review a 28px pill */
:root[data-style="studio"] .v2 .spl-stage{min-height:40px}
/* its hairline at half the card's (owner, 21 Nov: "reducing opacity on the border by 50% on studio") */
:root[data-style="studio"] .v2 .spl-pill{height:36px;border-radius:999px;background:var(--surface);box-shadow:0 0 0 1px rgba(0,0,0,.035),0 1px 1px rgba(0,0,0,.04),0 2px 10px -4px rgba(0,0,0,.12);transition:width var(--t) var(--ease),border-radius .42s var(--ease),height .42s var(--ease)}
:root[data-style="studio"][data-theme="dark"] .v2 .spl-pill{box-shadow:0 0 0 1px rgba(255,255,255,.05),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .spl-pill{box-shadow:0 0 0 1px rgba(255,255,255,.05),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6)}}
:root[data-style="studio"] .v2 .spl-in{gap:8px;padding:0 4px 0 13px;font-size:13px;color:var(--fg);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .spl-in.out{opacity:0;filter:none;transform:translateY(-3px);transition:opacity .15s ease-in-out,transform .15s ease-in-out}
:root[data-style="studio"] .v2 .spl-in .m{color:var(--muted)}
/* (Review is the site's small button, 28px, 4px in from the pill's edge all round) */
:root[data-style="studio"] .v2 .spl-in .pill{height:28px;padding:0 12px;border-radius:999px;margin-left:2px}
:root[data-style="studio"] .v2 .spl.bar .spl-pill{height:calc(var(--spl-row) + 45px);border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .spl.bar .spl-in{height:var(--spl-row);padding:0 16px}
:root[data-style="studio"] .v2 .spl.bar .spl-in .pill{height:28px;padding:0 12px;margin-left:auto}
/* the measure under the bar: it lets the pointer through */
:root[data-style="studio"] .v2 .spl-track{left:16px;right:16px;bottom:16px;height:3px;border-radius:var(--r-tiny,2px);background:var(--rail);pointer-events:none}
:root[data-style="studio"] .v2 .spl-fill{background:var(--accent-mark);transition:width .6s var(--ease)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 :is(.spl-pill,.spl-in,.spl-in.out,.spl-fill){transition:none!important}}
/* ---------- Step loader ---------- */
/* a pill with the step in hand (its loader, its name shimmering while it runs, how far along), a track of one part a step
   under it, and a fold that lists every step. The list's marks sit centred under the pill's loader and its words start
   where the pill's do. The pill is a disclosure: pointing at it gives it a quiet fill, never a bigger shadow */
.v2 .stl .dm-main{gap:10px}
.v2 .stl-row{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:var(--r-pill);box-shadow:var(--shadow);height:40px;padding:0 14px 0 13px;font-size:13.5px;min-width:250px;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .stl-row:hover{background:color-mix(in srgb,var(--fg) 4%,var(--surface))}}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on the pill shows at once (.mx-press); a mark that changes, the
   loader, the tick or a row's dot, crossfades in place (.mx-ic, iconSwap()); the list's rows settle one after another as it
   opens (.mx-rows) */
.v2 .stl-g{width:16px;display:grid;place-items:center;color:var(--fg)}
/* a finished step's tick is the vivid mark green */
.v2 .stl-ok{display:grid;color:var(--ok-mark)}
/* (the step and its count share one baseline, grouped in their own line, while the loader and the chevron stay centred on
   the pill; the count keeps the right end) */
.v2 .stl-t{flex:1;min-width:0;display:flex;align-items:baseline;gap:10px;text-align:left}
.v2 .stl-n{margin-left:auto;color:var(--muted);font-size:12.5px}
.v2 .stl-chev{color:var(--muted);transition:transform .4s var(--ease)}
.v2 .stl-row[aria-expanded="true"] .stl-chev{transform:rotate(180deg)}
.v2 .stl-track{display:flex;gap:var(--s-1);width:250px}
.v2 .stl-track i{flex:1;height:3px;border-radius:var(--r-tiny,2px);background:var(--line);position:relative;overflow:hidden}
.v2 .stl-track i::after{content:"";position:absolute;inset:0;background:var(--accent-mark,var(--accent));transform:scaleX(0);transform-origin:left;transition:transform .9s var(--ease)}
.v2 .stl-track i.on::after{transform:scaleX(1)}
.v2 .stl-track i.run::after{transform:scaleX(.45);transition-duration:2.2s}
.v2 .stl-fold{width:250px}
.v2 .stl-fold>div{margin-inline:-16px;padding-inline:var(--s-4)}
/* (10px above and below: with a step's own 6px, the first and last steps' words are 16px from the card's edges) */
.v2 .stl-list{list-style:none;margin:6px 0 18px;padding:10px 6px;background:var(--surface);border-radius:calc(14px * var(--rk-l,var(--rk)));box-shadow:var(--shadow)}
/* each step's mark centred under the pill's loader (21px in), its words where the pill's start (39px in) */
.v2 .stl-list li{display:flex;align-items:center;gap:10px;padding:6px var(--s-2) 6px 7px;font-size:13px;color:var(--muted)}
.v2 .stl-list li.done{color:var(--fg2)}.v2 .stl-list li.run{color:var(--fg)}
.v2 .stl-list li .g{width:16px;display:grid;place-items:center;flex:none}
/* Studio (owner, 19 Nov): the pill is Status pill's Studio pill (36px, a hairline and a short shadow, 13px words) with its
   content 16px in; the list is a round card whose steps sit 8px in from its edges with their words 16px in, so its marks and
   words share the pill's columns (24px and 40px in). The track is the neutral rail with the accent filling it, the tick the
   vivid green, and the motion Studio's calm one */
/* the loader in the pill is the accent, which is white in Studio's dark mode (owner, 21 Nov: "accent color in light mode for
   studio") */
:root[data-style="studio"] .v2 .stl-g{color:var(--accent-mark)}
:root[data-style="studio"] .v2 .stl-row{height:36px;gap:8px;padding:0 16px;font-size:13px}
:root[data-style="studio"] .v2 .stl-t{gap:8px}
:root[data-style="studio"] .v2 .stl-chev{transition:transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .stl-track i{background:var(--rail)}
:root[data-style="studio"] .v2 .stl-list{margin:8px 0 16px;padding:8px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .stl-list li{gap:8px;padding:8px;line-height:20px}
/* the row's hover is Studio's one hover laid over its fill (owner, 21 Nov), easing in and out over 220ms */
:root[data-style="studio"] .v2 .stl-row{transition:box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .stl-row:hover{background:var(--surface);box-shadow:var(--shadow),inset 0 0 0 99px var(--row)}}
/* (its press, the motion pieces' .mx-press: a step deeper than the hover, at once, in the hover's own layer) */
:root[data-style="studio"] .v2 .stl-row.mx-press:active{box-shadow:var(--shadow),inset 0 0 0 99px var(--row-press);transition-duration:var(--t-press)}
.v2 .bars3{display:inline-flex;gap:2px;align-items:center;height:12px}
.v2 .bars3 i{width:2.5px;height:100%;border-radius:var(--r-tiny,2px);background:currentColor;animation:v2-b3 .9s var(--ease-io) infinite}
.v2 .bars3 i:nth-child(2){animation-delay:.15s}.v2 .bars3 i:nth-child(3){animation-delay:.3s}
@keyframes v2-b3{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
/* ---------- Thinking states ---------- */
/* six ways to show that the agent is thinking, to pick from: each is a small mark (on a tile in Blueprint only) beside one status line that
   steps through what the agent is doing, and a screen reader hears each step once (the polite status), never each frame.
   Orbit, Morph, Scan and Stream are dot grids like Matrix, each at its own density (owner, 5 Nov). Orbit: a light round the edge.
   Morph: a rectangle, a circle, a triangle. Scan: a column sweeping lines of dots. Stream: three lines of dots
   filling one by one, then fading, the line typed out behind a caret. Matrix: a grid
   of dots lighting up at random. Stack: pages shuffling to the front. In every state the line has the loader's highlight
   sweep (.shim, owner, 19 Nov). Marks are the accent (ink in Studio) and everything else is grey;
   with reduced motion every mark holds still in a legible pose and only the line changes */
.v2 .ths{width:100%;max-width:264px;margin-inline:auto;min-height:84px;display:flex;flex-direction:column;justify-content:center;gap:var(--s-3);position:relative}
.v2 .ths-row{display:flex;align-items:center;gap:10px;min-width:0}
/* the animated mark has no tile or fill behind it in Soft and Studio (owner, 22 Nov: "remove the background container"): it sits
   in a 20px box on the line's centre line, the words 10px after it. Blueprint keeps its hairline tile */
/* its motion (the core's motion pieces, owner, 26 Nov): picking another state crossfades its mark in for the last one (.mx-ic,
   iconSwap()) */
.v2 .ths-mk{position:relative;width:20px;height:20px;flex:none;display:grid;place-items:center;color:var(--accent-mark,var(--accent))}
/* (the words and their seconds share one baseline; the mark stays centred on their line) */
.v2 .ths-w{flex:0 1 auto;min-width:0;display:flex;align-items:baseline;gap:10px}
.v2 .ths-l{flex:0 1 auto;min-width:0;font-size:14px;line-height:20px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ths-car{display:inline-block;width:2px;height:15px;margin-left:2px;vertical-align:-3px;border-radius:1px;background:var(--accent-mark,var(--accent));animation:v2-thsblink 1s steps(1,end) infinite}
@keyframes v2-thsblink{50%{opacity:0}}
.v2 .ths-t{flex:none;font-size:13px;color:var(--muted)}
.v2 .ths-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Orbit, Morph, Scan and Stream are drawn on a grid of dots like Matrix, each at its own density (owner, 5 Nov):
   Orbit 5 by 5, Scan 6 by 6, Morph 7 by 7 and Stream 4 by 3. The grid (.ths-dg) is written by thsGrid(); each dot's part
   in the pattern is a class, and its place in the run an inline animation-delay */
.v2 .ths-dg{display:grid;grid-template-columns:repeat(var(--n),var(--ds));gap:var(--dg);--ds:2px;--dg:1px}
.v2 .ths-dg i{display:block;width:var(--ds);height:var(--ds);border-radius:50%;background:currentColor;opacity:.14}
/* Orbit: a light runs round the ring with a fading tail, the dot in the middle breathing */
.v2 .ths-dg[data-k="orbit"]{--n:5;--ds:3px;--dg:1px}
.v2 .ths-dg .r{animation:v2-thsor 1.6s linear infinite}
.v2 .ths-dg .c{opacity:.85;animation:v2-thscore 1.6s var(--ease-io) infinite}
@keyframes v2-thsor{0%{opacity:1}30%{opacity:.45}60%,100%{opacity:.14}}
@keyframes v2-thscore{50%{transform:scale(.7)}}
/* Scan: three lines of text in dots, a column of light sweeping across them */
.v2 .ths-dg[data-k="scan"]{--n:6;--ds:2px;--dg:1px}
.v2 .ths-dg .l{animation:v2-thsscl 1.6s linear infinite}
.v2 .ths-dg .b{opacity:.06;animation:v2-thsscb 1.6s linear infinite}
@keyframes v2-thsscl{0%{opacity:1}35%,100%{opacity:.3}}
@keyframes v2-thsscb{0%{opacity:.38}25%,100%{opacity:.06}}
/* Morph: the dots draw a rectangle, then a circle, then a triangle, and back; between shapes every dot flickers like
   Matrix's, each a little out of step (its own small delay), before it settles into the next shape (owner, 5 Nov) */
.v2 .ths-dg[data-k="morph"]{--n:7;--ds:2px;--dg:1px}
.v2 .ths-dg[data-k="morph"] i{animation-duration:3.2s;animation-timing-function:var(--ease-io);animation-iteration-count:infinite}
.v2 .ths-dg .m0{animation-name:v2-thsm0}.v2 .ths-dg .m1{animation-name:v2-thsm1}.v2 .ths-dg .m2{animation-name:v2-thsm2}.v2 .ths-dg .m3{animation-name:v2-thsm3}.v2 .ths-dg .m4{animation-name:v2-thsm4}.v2 .ths-dg .m5{animation-name:v2-thsm5}.v2 .ths-dg .m6{animation-name:v2-thsm6}.v2 .ths-dg .m7{animation-name:v2-thsm7}
@keyframes v2-thsm0{0%{opacity:.12}20%{opacity:.12}22.6%{opacity:.5}25.2%{opacity:.12}27.8%{opacity:.4}30.4%{opacity:.12}33%{opacity:.12}53%{opacity:.12}55.6%{opacity:.5}58.2%{opacity:.12}60.8%{opacity:.4}63.4%{opacity:.12}66%{opacity:.12}86%{opacity:.12}88.8%{opacity:.5}91.6%{opacity:.12}94.4%{opacity:.4}97.2%{opacity:.12}100%{opacity:.12}}
@keyframes v2-thsm1{0%{opacity:1}20%{opacity:1}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:.12}53%{opacity:.12}55.6%{opacity:.5}58.2%{opacity:.12}60.8%{opacity:.4}63.4%{opacity:.12}66%{opacity:.12}86%{opacity:.12}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:1}}
@keyframes v2-thsm2{0%{opacity:.12}20%{opacity:.12}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:1}53%{opacity:1}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:.12}86%{opacity:.12}88.8%{opacity:.5}91.6%{opacity:.12}94.4%{opacity:.4}97.2%{opacity:.12}100%{opacity:.12}}
@keyframes v2-thsm3{0%{opacity:1}20%{opacity:1}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:1}53%{opacity:1}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:.12}86%{opacity:.12}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:1}}
@keyframes v2-thsm4{0%{opacity:.12}20%{opacity:.12}22.6%{opacity:.5}25.2%{opacity:.12}27.8%{opacity:.4}30.4%{opacity:.12}33%{opacity:.12}53%{opacity:.12}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:1}86%{opacity:1}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:.12}}
@keyframes v2-thsm5{0%{opacity:1}20%{opacity:1}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:.12}53%{opacity:.12}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:1}86%{opacity:1}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:1}}
@keyframes v2-thsm6{0%{opacity:.12}20%{opacity:.12}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:1}53%{opacity:1}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:1}86%{opacity:1}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:.12}}
@keyframes v2-thsm7{0%{opacity:1}20%{opacity:1}22.6%{opacity:.85}25.2%{opacity:.2}27.8%{opacity:.95}30.4%{opacity:.3}33%{opacity:1}53%{opacity:1}55.6%{opacity:.85}58.2%{opacity:.2}60.8%{opacity:.95}63.4%{opacity:.3}66%{opacity:1}86%{opacity:1}88.8%{opacity:.85}91.6%{opacity:.2}94.4%{opacity:.95}97.2%{opacity:.3}100%{opacity:1}}
/* Stream: three lines of four dots, the same size as Matrix (18 by 18: 3px dots, 2px apart across) (owner, 5 Nov); they light
   up one by one, line by line, hold, then all fade out together. Each dot's moment is its own keyframe (thss0 to thss11) */
.v2 .ths-dg[data-k="stream"]{--n:4;--ds:3px;--dg:2px;row-gap:4px;height:18px;align-content:start;padding-top:1px;box-sizing:border-box}
.v2 .ths-dg[data-k="stream"] i{animation-duration:2.2s;animation-timing-function:linear;animation-iteration-count:infinite}
.v2 .ths-dg .s0{animation-name:v2-thss0}.v2 .ths-dg .s1{animation-name:v2-thss1}.v2 .ths-dg .s2{animation-name:v2-thss2}.v2 .ths-dg .s3{animation-name:v2-thss3}.v2 .ths-dg .s4{animation-name:v2-thss4}.v2 .ths-dg .s5{animation-name:v2-thss5}.v2 .ths-dg .s6{animation-name:v2-thss6}.v2 .ths-dg .s7{animation-name:v2-thss7}.v2 .ths-dg .s8{animation-name:v2-thss8}.v2 .ths-dg .s9{animation-name:v2-thss9}.v2 .ths-dg .s10{animation-name:v2-thss10}.v2 .ths-dg .s11{animation-name:v2-thss11}
@keyframes v2-thss0{0%,4.0%{opacity:.14}7.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss1{0%,9.5%{opacity:.14}13.0%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss2{0%,15.0%{opacity:.14}18.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss3{0%,20.5%{opacity:.14}24.0%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss4{0%,26.0%{opacity:.14}29.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss5{0%,31.5%{opacity:.14}35.0%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss6{0%,37.0%{opacity:.14}40.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss7{0%,42.5%{opacity:.14}46.0%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss8{0%,48.0%{opacity:.14}51.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss9{0%,53.5%{opacity:.14}57.0%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss10{0%,59.0%{opacity:.14}62.5%,82%{opacity:1}94%,100%{opacity:.14}}
@keyframes v2-thss11{0%,64.5%{opacity:.14}68.0%,82%{opacity:1}94%,100%{opacity:.14}}
/* Matrix: each dot keeps its own beat, so the grid twinkles instead of sweeping */
.v2 .ths-mtx{display:grid;grid-template-columns:repeat(4,3px);gap:2px}
.v2 .ths-mtx i{display:block;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.2;animation:v2-thstw 2s var(--ease-io) infinite}
.v2 .ths-mtx i:nth-child(3n){animation-duration:2.6s}.v2 .ths-mtx i:nth-child(3n+1){animation-duration:1.7s}
.v2 .ths-mtx i:nth-child(1){animation-delay:-.1s}.v2 .ths-mtx i:nth-child(2){animation-delay:-.9s}.v2 .ths-mtx i:nth-child(3){animation-delay:-1.9s}.v2 .ths-mtx i:nth-child(4){animation-delay:-.4s}
.v2 .ths-mtx i:nth-child(5){animation-delay:-1.2s}.v2 .ths-mtx i:nth-child(6){animation-delay:-.2s}.v2 .ths-mtx i:nth-child(7){animation-delay:-1.6s}.v2 .ths-mtx i:nth-child(8){animation-delay:-.7s}
.v2 .ths-mtx i:nth-child(9){animation-delay:-.5s}.v2 .ths-mtx i:nth-child(10){animation-delay:-1.4s}.v2 .ths-mtx i:nth-child(11){animation-delay:-.05s}.v2 .ths-mtx i:nth-child(12){animation-delay:-1s}
.v2 .ths-mtx i:nth-child(13){animation-delay:-2.1s}.v2 .ths-mtx i:nth-child(14){animation-delay:-.8s}.v2 .ths-mtx i:nth-child(15){animation-delay:-1.3s}.v2 .ths-mtx i:nth-child(16){animation-delay:-.3s}
@keyframes v2-thstw{0%,100%{opacity:.2}45%,60%{opacity:1}}
/* Stack: three pages; the front one leaves and the others move up, each a third of the loop behind the next */
.v2 .ths-stk{position:relative;width:20px;height:20px}
.v2 .ths-stk i{position:absolute;left:3px;top:3px;width:11px;height:13px;border-radius:calc(2.5px * var(--rk-s,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1.25px currentColor;color:color-mix(in srgb,var(--fg) 34%,transparent);animation:v2-thsstk 2.4s var(--ease-io) infinite}
.v2 .ths-stk i:nth-child(1){translate:6px -3px;opacity:.6;z-index:1}
.v2 .ths-stk i:nth-child(2){translate:3px 0;opacity:.85;z-index:2;animation-delay:-.8s}
.v2 .ths-stk i:nth-child(3){translate:0 3px;z-index:3;color:var(--accent-mark,var(--accent));animation-delay:-1.6s}
@keyframes v2-thsstk{0%{translate:6px -3px;opacity:.6;z-index:1;color:color-mix(in srgb,var(--fg) 34%,transparent)}25%{translate:3px 0;opacity:.85;z-index:2;color:color-mix(in srgb,var(--fg) 34%,transparent)}50%,66%{translate:0 3px;opacity:1;z-index:3;color:var(--accent-mark,var(--accent))}80%{translate:-5px 6px;opacity:0;z-index:3;color:var(--accent-mark,var(--accent))}81%{translate:6px -3px;opacity:0;z-index:1;color:color-mix(in srgb,var(--fg) 34%,transparent)}100%{translate:6px -3px;opacity:.6;z-index:1;color:color-mix(in srgb,var(--fg) 34%,transparent)}}
/* six choices fit under the demo on a phone */
@container (max-width:380px){.v2 .ths-dm>.demo .seg2 button{padding:0 7px;font-size:12px}}
/* reduced motion: every mark holds a pose that still reads (the orbit's light and tail, a circle, a lit column, the first
   words, a lit diamond, a stack), the caret stays lit and the sweep goes */
@media (prefers-reduced-motion:reduce){.v2 .ths-mk *,.v2 .ths-car{animation:none!important}.v2 .ths-dg .p{opacity:1}.v2 .ths-mtx i:is(:nth-child(2),:nth-child(5),:nth-child(7),:nth-child(10),:nth-child(12),:nth-child(15)){opacity:1}}
/* Blueprint: a square tile with a hairline, square dots, marks that tick in steps and a block caret */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ths-mk{width:28px;height:28px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ths-dg i{border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ths-car{width:7px;vertical-align:-3px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ths-mtx i{animation-timing-function:steps(1,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ths-stk i{animation-timing-function:steps(3)}
/* Studio (lead, 18 Nov; owner, 21 Nov): it stays bare, the line it is in a chat. The animated mark has no tile, fill or padding
   behind it ("I don't think we need bg padding behind the animated dots"): it sits in a 20px box on the line's centre line,
   with the words 10px after it. Studio is monochrome here (owner, 22 Nov): the mark, the caret and the front page of the stack
   are ink, not the accent (ink is white in dark mode, as the accent is there), the one thing that moves; the seconds count in
   even figures */
:root[data-style="studio"] .v2 .ths-mk{color:var(--fg)}
:root[data-style="studio"] .v2 .ths-car{background:var(--fg)}
:root[data-style="studio"] .v2 .ths-stk{--accent-mark:var(--fg)}
:root[data-style="studio"] .v2 .ths-t{font-variant-numeric:tabular-nums}
/* ---------- Reasoning trail ---------- */
.v2 .rtr{width:100%;padding:6px}
.v2 .rtr-h{display:flex;align-items:center;gap:10px;width:100%;padding:10px var(--s-3);border-radius:var(--r-in);font-size:13.5px;transition:background .2s}
@media (hover:hover) and (pointer:fine){.v2 .rtr-h:hover{background:var(--row)}}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on the header shows at once (.mx-press); in Studio the card grows on
   the spring (.mx-grow) */
.v2 .rtr-mark{color:var(--fg2)}
.v2 .rtr-chev{margin-left:auto;color:var(--muted);transition:transform .4s var(--ease)}
.v2 .rtr-h[aria-expanded="false"] .rtr-chev{transform:rotate(-90deg)}
.v2 .rtr-body{padding:var(--s-1) var(--s-3) 10px}
.v2 .rtr-li{position:relative;display:flex;gap:10px;padding:6px 0 6px var(--s-6);font-size:13.5px;color:var(--fg2)}
.v2 .rtr-li .g{position:absolute;left:0;top:7px;width:16px;height:16px;display:grid;place-items:center;color:var(--muted)}
.v2 .rtr-li:not(:last-child)::before{content:"";position:absolute;left:7.5px;top:25px;bottom:-6px;width:1px;background:var(--rail)}
.v2 .rtr-li .d{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.v2 .rtr-li.now{color:var(--fg)}
.v2 .rtr-edit{font-family:var(--mono);font-size:12px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--chip);padding:var(--s-2) 10px;margin:var(--s-1) 0 var(--s-2);line-height:1.65}
.v2 .rtr-edit .a{color:var(--add)}.v2 .rtr-edit .x{color:var(--del);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--del) 40%,transparent)}
.v2 .rtr-src{display:flex;flex-wrap:wrap;gap:6px}
/* the plan's Studio marks and the closing foot strip are Studio's alone: Soft and Blueprint never show them */
.v2 .rtr-m,.v2 .rtr-ff{display:none}
/* Studio (owner, 18 Nov): a card of its own, bare or not: a hairline-outlined round card with the thinking head on top and
   a hairline under it. The plan's steps sit on a hairline rail that fills down into each step as the one above finishes;
   a finished step is a green disc whose tick draws in, the step in hand a calm ink spinner ring, a queued step a hairline
   circle. Notes and edits have no rail. The finished trail closes with an off-white foot strip that sums it up. The card
   grows with what it holds (grow()) and folds into its head. Content sits 16px in from every edge; the chevron's 28px
   circle sits 16px from the head's top, bottom and right edges (owner, 23 Nov) */
:root[data-style="studio"] .v2 .rtr.rtr.rtr{padding:0;background:var(--surface);box-shadow:var(--shadow);border-radius:var(--r-card);overflow:clip}
:root[data-style="studio"] .v2 .rtr.growing{overflow-clip-margin:0px}
/* the chevron's 28px circle 16px from the head's top, bottom and right, as Web search's is (owner, 23 Nov) */
:root[data-style="studio"] .v2 .rtr-h{min-height:calc(28px + 2 * var(--strip-y));padding:0 23px 0 16px;gap:12px;border-radius:0;font-size:13.5px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rtr-h:hover{background:none}}
:root[data-style="studio"] .v2 .rtr-h:focus-visible{outline-offset:-2px;border-radius:var(--r-card)}
/* the head's 14px mark sits centred on the steps' 16px marks, and its words start where theirs do (44px in) */
:root[data-style="studio"] .v2 .rtr-mark{color:var(--fg);margin:0 1px}
:root[data-style="studio"] .v2 .rtr-title{font-weight:500}
:root[data-style="studio"] .v2 .rtr-title:not(.shim){color:var(--fg)}
:root[data-style="studio"] .v2 .rtr-time{font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .rtr-chev{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 7px transparent;transition:transform .4s var(--ease),background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rtr-h:hover .rtr-chev{background:var(--row);box-shadow:0 0 0 7px var(--row);color:var(--fg)}}
/* (its press, the motion pieces' .mx-press: in Studio, where the header's hover is the chevron's fill, the press deepens that fill) */
:root[data-style="studio"] .v2 .rtr-h.mx-press:active{background:none}
:root[data-style="studio"] .v2 .rtr-h:active .rtr-chev{background:var(--row-press);box-shadow:0 0 0 7px var(--row-press);transition-duration:var(--t-press)}
:root[data-style="studio"] .v2 .rtr-body{padding:10px 16px;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .rtr-body[data-v="sources"]{padding:16px}
:root[data-style="studio"] .v2 .rtr-li{padding:6px 0 6px 28px;line-height:20px}
:root[data-style="studio"] .v2 .rtr-li .g{top:8px}
:root[data-style="studio"] .v2 .rtr-li .d{line-height:18px;margin-top:0}
/* the rail: a hairline from under each mark to just above the next, and over it the part that has filled */
:root[data-style="studio"] .v2 .rtr-li:not(:last-child)::before{top:28px;bottom:-4px;background:var(--line)}
:root[data-style="studio"] .v2 .rtr-body:not([data-v="plan"]) .rtr-li::before{display:none}
:root[data-style="studio"] .v2 .rtr-body[data-v="plan"] .rtr-li:not(:last-child)::before{background:var(--line) linear-gradient(var(--line-strong),var(--line-strong)) no-repeat 0 0/100% 0}
:root[data-style="studio"] .v2 .rtr-body[data-v="plan"] .rtr-li[data-s="done"]:not(:last-child)::before{background-size:100% 100%}
/* the marks */
/* (React sets its own display on Soft's tick, so this one has to win over an inline style) */
:root[data-style="studio"] .v2 .rtr-body[data-v="plan"] .g>:not(.rtr-m){display:none!important}
:root[data-style="studio"] .v2 .rtr-m{display:grid;place-items:center;width:16px;height:16px;box-sizing:border-box;border-radius:50%}
:root[data-style="studio"] .v2 [data-s="next"]>.g>.rtr-m{box-shadow:inset 0 0 0 1px var(--line-strong)}
:root[data-style="studio"] .v2 [data-s="now"]>.g>.rtr-m{border:1.5px solid var(--line);border-top-color:var(--fg);animation:v2-rot .9s linear infinite}
:root[data-style="studio"] .v2 [data-s="done"]>.g>.rtr-m{background:var(--ok-mark);color:var(--surface)}
:root[data-style="studio"] .v2 .rtr-m svg,:root[data-style="studio"] .v2 .rtr-fk svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
/* the moment a step finishes: its disc settles in and its tick draws, the rail draws down into the next step, and that
   step's queued ring turns into the spinner as the rail reaches it */
@keyframes v2-rtrdisc{from{opacity:0;transform:scale(.5)}}
@keyframes v2-rtrdraw{to{stroke-dashoffset:0}}
@keyframes v2-rtrfill{from{background-size:100% 0}}
@keyframes v2-rtrnow{from{border-color:var(--line-strong)}}
:root[data-style="studio"] .v2 .rtr-li.just>.g>.rtr-m{animation:v2-rtrdisc .34s var(--ease) backwards}
:root[data-style="studio"] .v2 .rtr-li.just>.g>.rtr-m path{stroke-dasharray:1;stroke-dashoffset:1;animation:v2-rtrdraw .3s var(--ease) .14s forwards}
:root[data-style="studio"] .v2 .rtr-body[data-v="plan"] .rtr-li.just:not(:last-child)::before{animation:v2-rtrfill .44s var(--ease-io) .2s backwards}
:root[data-style="studio"] .v2 .rtr-li.next-in>.g>.rtr-m{animation:v2-rtrnow .3s var(--ease) .5s backwards,v2-rot .9s linear infinite}
:root[data-style="studio"] .v2 .rtr-src{gap:8px}
:root[data-style="studio"] .v2 .rtr-body[data-v="edits"] .g{color:var(--muted)}
:root[data-style="studio"] .v2 .rtr-edit{border-radius:var(--r-box);margin:4px 0 8px;padding:8px 12px;line-height:20px}
:root[data-style="studio"] .v2 .rtr-body>.rtr-edit:last-child,:root[data-style="studio"] .v2 .rtr-body>:last-child>.rtr-edit:last-child{margin-bottom:6px}
/* the foot strip, once the trail is done: a green tick, how much of the plan is done, and what it read and changed */
:root[data-style="studio"] .v2 .rtr-ff{display:grid}
:root[data-style="studio"] .v2 .rtr-f{display:flex;align-items:center;gap:12px;min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:0;padding:0 16px;background:var(--strip);border-top:1px solid var(--line);font-size:12.5px;color:var(--fg2);white-space:nowrap}
/* (the foot's tick is a done step's mark: the same 16px disc on the same column, its words where the steps' words start) */
:root[data-style="studio"] .v2 .rtr-fk{display:grid;place-items:center;width:16px;height:16px;flex:none;border-radius:50%;background:var(--ok-mark);color:var(--surface)}
:root[data-style="studio"] .v2 .rtr-fs{margin-left:auto;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .rtr-li:is(.just,.next-in) *,:root[data-style="studio"] .v2 .rtr-li.just::before{animation:none!important}:root[data-style="studio"] .v2 .rtr-li.just>.g>.rtr-m path{stroke-dashoffset:0}:root[data-style="studio"] .v2 [data-s="now"]>.g>.rtr-m{animation:none}}
/* ---------- Thinking ---------- */
/* the steps the agent takes, on a line that turns green as each one finishes; the step in hand turns in the accent with a
   soft halo, and what each step found writes itself in under it. The header ends as a summary of the work */
/* neither the trace nor the box it sits in anchors the page's scroll: a centred demo that grows would otherwise pull
   the page along with it */
.v2.stage-in:has(>.tk){overflow-anchor:none}
.v2 .tk{font-size:14px;width:100%;max-width:420px;margin-inline:auto;overflow-anchor:none}
/* on a card the trace keeps the room it will fill, so the header stays put as steps arrive */
/* the trace grows with its steps in every style (grow(), owner's notes 18 Nov): no room kept for the steps to come. The
   header's hover fill reaches 8px past its sides, so the growing box lets that much show */
.v2 .tk.growing{overflow-clip-margin:12px}
.v2 .tk-h{display:flex;align-items:center;gap:10px;width:calc(100% + 16px);margin:0 -8px;padding:6px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));text-align:left;transition:background var(--t-fast)}
/* the header's hover is a quiet fill round the chevron, never a band wider than the trace (owner, 18 Nov) */
@media (hover:hover) and (pointer:fine){.v2 .tk-h:hover .tk-chev{background:color-mix(in srgb,var(--fg) 5%,transparent);box-shadow:0 0 0 6px color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg)}}
.v2 .tk-mark{width:18px;height:18px;flex:none;display:grid;place-items:center;color:var(--accent-mark,var(--accent));transition:color .3s}
.v2 .tk-h.tk-fin .tk-mark{color:var(--ok)}
/* a finished state has no elapsed clock (owner, 18 Nov): the clock goes once the header says what the work came to */
.v2 .tk-h.tk-fin .tk-time{visibility:hidden}
.v2 .tk-h.tk-fin .tk-mark .i{animation:v2-tkpop .5s var(--ease) backwards}
.v2 .tk-title{flex:1;min-width:0;color:var(--fg)}
.v2 .tk-time{color:var(--muted);font-size:13px}
.v2 .tk-chev{color:var(--muted);border-radius:50%;transition:transform .32s var(--ease),background-color var(--t-fast),box-shadow var(--t-fast),color var(--t-fast)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-chev{border-radius:0}
.v2 .tk[data-open="0"] .tk-chev{transform:rotate(-90deg)}
.v2 .tk-list{list-style:none;margin:0;padding:6px 0 0;display:flex;flex-direction:column}
.v2 .tk-st{position:relative;display:flex;gap:10px;padding:6px 0}
/* the line from each step down to the next: grey, and green once the step above it is done */
.v2 .tk-st:not(:last-child)::before,.v2 .tk-st.done:not(:last-child)::after{content:"";position:absolute;left:8.25px;top:29px;bottom:-5px;width:1.5px;border-radius:1px;background:var(--line)}
.v2 .tk-st.done:not(:last-child)::after{background:color-mix(in srgb,var(--ok) 55%,var(--line));transform-origin:top;animation:v2-tkgrow .6s var(--ease) backwards}
@keyframes v2-tkgrow{from{transform:scaleY(0)}}
.v2 .tk-st .mk{position:relative;width:18px;height:18px;flex:none;margin-top:1px;display:grid;place-items:center;border-radius:50%;color:var(--muted);transition:background .32s,color .32s}
.v2 .tk-st .mk .spin{width:10px;height:10px}
.v2 .tk-st.run .mk{color:var(--accent-mark,var(--accent));background:var(--accent-bg);animation:v2-tkhalo 1.8s var(--ease-io) infinite}
.v2 .tk-st.done .mk{background:var(--ok-bg);color:var(--ok)}
.v2 .tk-st.done .mk .i{animation:v2-tkpop .45s var(--ease) backwards}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on the header shows at once as a deeper fill round the chevron,
   the hover's own shape; a mark that changes (a step's ring, clock and tick, the header's dots and finished mark) crossfades in
   place (.mx-ic, iconSwap(), in place of the tick's own pop); the trace grows on the spring (.mx-grow) */
.v2 .tk-h:active .tk-chev{background:var(--row-press);box-shadow:0 0 0 6px var(--row-press);transition-duration:var(--t-press)}
.v2 .tk.mx-ic .tk-st.done .mk .i,.v2 .tk.mx-ic .tk-h.tk-fin .tk-mark .i{animation:none}
.v2 .tk-st.retry .mk{background:var(--warn-bg);color:var(--warn);animation:v2-tkhalow 1.8s var(--ease-io) infinite}
@keyframes v2-tkhalo{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--fg) 0%,transparent)}50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--fg) 6%,transparent)}}
@keyframes v2-tkhalow{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--fg) 0%,transparent)}50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--fg) 6%,transparent)}}
@keyframes v2-tkpop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.15);opacity:1}100%{transform:none}}
.v2 .tk-st .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .tk-st .tk-ln{display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .tk-st .lab{flex:1;min-width:0;color:var(--fg);transition:color .32s}
.v2 .tk-st.done .lab{color:var(--fg2)}
/* how long the step took, once it is done */
.v2 .tk-st .tk-dur{flex:none;font-size:12px;color:var(--muted)}
/* what a step found opens under it, a word at a time */
.v2 .tk-st .res{display:grid;grid-template-rows:0fr;font-size:13px;color:var(--muted);transition:grid-template-rows .32s var(--ease),color .32s}
.v2 .tk-st .res.on{grid-template-rows:1fr}
.v2 .tk-st .res>span{overflow:hidden;min-height:0}
.v2 .tk-st .res .w{display:inline-block;white-space:pre;animation:v2-tkword .42s var(--ease) backwards}
@keyframes v2-tkword{from{opacity:0;transform:translateY(3px);filter:blur(2px)}}
/* a retry's words are amber; the colour changes with the words, so the ones fading out keep theirs */
.v2 .tk-st .res .warn{color:var(--warn)}
.v2 .tk-st .res [data-tip]{text-decoration:underline dotted var(--faint);text-underline-offset:3px;cursor:default}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st.run .mk,:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st.retry .mk{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st.run .mk{box-shadow:inset 0 0 0 1px var(--accent-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st.done:not(:last-child)::after{background:var(--ok);width:1px;left:8.5px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st:not(:last-child)::before{width:1px;left:8.5px;background:repeating-linear-gradient(var(--rail) 0 3px,transparent 3px 6px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st.done .mk .i,:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-h.tk-fin .tk-mark .i{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tk-st .res .w{animation:v2-bpin .3s var(--ease) backwards}
/* Studio (owner, 18 Nov): a card of its own, like Reasoning trail's: a hairline-outlined round card with the header on top
   and a hairline under it. The card grows with its steps (grow(), never the room it will fill) and folds into its header.
   Content sits 16px in from every edge, and each step's words start where the header's do. The steps sit on a hairline
   that darkens down into each step as the one above finishes (grey, never a hue); the step in hand is a turning ring in the accent (white in dark mode),
   a finished step a green disc whose tick draws in, and a step waiting out a problem an amber clock. The header's dots
   turn in the accent, and as the last step finishes it becomes what the work came to, with a green disc */
:root[data-style="studio"] .v2 .tk{background:var(--surface);box-shadow:var(--shadow);border-radius:var(--r-card);overflow:clip}
:root[data-style="studio"] .v2 .tk.growing{overflow-clip-margin:0px}
:root[data-style="studio"] .v2 .tk-h{width:100%;min-height:48px;margin:0;padding:16px;gap:10px;align-items:flex-start;border-radius:0;line-height:20px}
/* a header that wraps on a phone keeps its mark, time and chevron on the centre line of its first line */
:root[data-style="studio"] .v2 .tk-h>.tk-mark{margin-top:2px}
:root[data-style="studio"] .v2 .tk-h>.tk-chev{margin-top:3px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tk-h:hover{background:none}}
:root[data-style="studio"] .v2 .tk-h:focus-visible{outline-offset:-2px;border-radius:var(--r-card)}
/* the clock follows the title while it works, as in "Checking the pricing page 7s", and goes once the header says what the
   work came to (a finished state has no elapsed clock); the chevron keeps the right edge, where the steps' times end too */
:root[data-style="studio"] .v2 .tk-title{flex:0 1 auto;font-weight:500}
:root[data-style="studio"] .v2 .tk-time{margin-right:auto;font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .tk-chev{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 7px transparent;transition:transform var(--t) var(--ease),background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tk-h:hover .tk-chev{background:var(--row);box-shadow:0 0 0 7px var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .tk-h:active .tk-chev{background:var(--row-press);box-shadow:0 0 0 7px var(--row-press);transition-duration:var(--t-press)}
:root[data-style="studio"] .v2 .tk-mark{width:16px;height:16px;margin-right:2px;color:var(--accent-mark)}
:root[data-style="studio"] .v2 .tk-h.tk-fin .tk-mark{width:16px;height:16px;border-radius:50%;background:var(--ok-mark);color:var(--surface);animation:v2-tkdisc var(--t) var(--ease) backwards}
:root[data-style="studio"] .v2 .tk-h.tk-fin .tk-mark .i{width:10px;height:10px;stroke-width:3.2;stroke-dasharray:21;animation:v2-tkdraw var(--t) var(--ease) .14s backwards}
/* the first step's words 16px under the header's hairline and the last ones 16px from the card's foot, 5px above and below
   each step; the card is no taller than Soft's trace, so its stage keeps its height in every style */
:root[data-style="studio"] .v2 .tk-list{padding:10px 16px;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .tk-st{padding:5px 0}
/* a step's time sits on its first line's baseline (owner, 23 Nov: words side by side share one baseline), and ends where the
   chevron does */
:root[data-style="studio"] .v2 .tk-st .tk-ln{align-items:baseline}
:root[data-style="studio"] .v2 .tk-st .lab,:root[data-style="studio"] .v2 .tk-st .tk-dur{line-height:19px}
:root[data-style="studio"] .v2 .tk-st .res{line-height:17px}
:root[data-style="studio"] .v2 .tk-st .tk-dur{font-variant-numeric:tabular-nums}
/* the marks: 16px discs 16px in from the card's edge, centred on the step's first line, under the header's mark */
:root[data-style="studio"] .v2 .tk-st .mk{width:16px;height:16px;margin:1.5px 2px 0 0;color:var(--fg);background:none;transition:none}
:root[data-style="studio"] .v2 .tk-st.run .mk{background:none;animation:none}
:root[data-style="studio"] .v2 .tk-st.run .mk .spin{box-sizing:border-box;width:16px;height:16px;border:1.5px solid var(--line);border-top-color:var(--accent-mark);animation:v2-rot .9s linear infinite}
:root[data-style="studio"] .v2 .tk-st.done .mk{background:var(--ok-mark);color:var(--surface);animation:v2-tkdisc var(--t) var(--ease) backwards}
:root[data-style="studio"] .v2 .tk-st.done .mk .i{width:10px;height:10px;stroke-width:3.2;stroke-dasharray:21;animation:v2-tkdraw var(--t) var(--ease) .14s backwards}
:root[data-style="studio"] .v2 .tk-st.retry .mk{background:none;color:var(--warn-mark);animation:none}
:root[data-style="studio"] .v2 .tk-st.retry .mk .i{width:16px;height:16px;stroke-width:1.8}
@keyframes v2-tkdisc{from{opacity:0;transform:scale(.5)}}
@keyframes v2-tkdraw{from{stroke-dashoffset:21}}
/* the hairline from under each mark to just above the next, darkening down into the next step once this one is done */
:root[data-style="studio"] .v2 .tk-st:not(:last-child)::before,:root[data-style="studio"] .v2 .tk-st.done:not(:last-child)::after{left:7.5px;top:26.5px;bottom:-2.5px;width:1px;border-radius:0;background:var(--line)}
:root[data-style="studio"] .v2 .tk-st.done:not(:last-child)::after{background:var(--line-strong);animation:v2-tkgrow var(--t-slow) var(--ease-io) .2s backwards}
/* what a step found writes itself in a word at a time: a fade and a 3px rise, no blur */
@keyframes v2-tkwordc{from{opacity:0;transform:translateY(3px)}}
:root[data-style="studio"] .v2 .tk-st .res .w{animation:v2-tkwordc var(--t-slow) var(--ease) backwards}
/* ---------- Context meter ---------- */
/* a pill with the ring opens what fills the context: one bar split by kind, a legend whose rows list their items, and Compact */
/* it never anchors the page's scroll, so the page can't follow it as it changes; on a card it sits in the middle of its room */
/* the panel opens above the pill, as it does under a chat composer (owner, 26 Nov), and below it only where there is no room
   above (data-pos="down", set as it opens). The pill comes first for the keyboard and the panel is drawn above it. On a card
   the two sit centred together: the pill rests in the middle and glides down as the panel opens over it */
.v2 .ctm{display:flex;flex-direction:column-reverse;align-items:flex-start;justify-content:center;gap:var(--s-2);width:100%;max-width:340px;margin-inline:auto;overflow-anchor:none}
.v2.stage-in:has(>.ctm){overflow-anchor:none}
.v2.stage-in>.ctm{min-height:inherit}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .ctm :is(.pill,.ib,.ctm-tg):active{transform:none}
.v2 .ctm[data-pos="down"]{flex-direction:column}
.v2 .ctm-tg{display:inline-flex;align-items:center;gap:var(--s-2);height:32px;padding:0 10px 0 7px;border-radius:var(--r-pill);font-size:13px;color:var(--fg2);background:var(--surface);box-shadow:var(--shadow);transition:box-shadow var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ctm-tg:hover{box-shadow:var(--shadow-pop)}}
.v2 .ctm-tg .ctm-pc{color:var(--fg);font-weight:500}
.v2 .ctm-tg>svg:last-child{color:var(--muted);transition:transform .32s var(--ease)}
/* the chevron points the way the panel opens while it is shut, and turns over once it is open: up, then down (as Run drawer's
   does); below, it is the usual down, then up */
.v2 .ctm[data-open="0"]:not([data-pos="down"]) .ctm-tg>svg:last-child,.v2 .ctm[data-pos="down"][data-open="1"] .ctm-tg>svg:last-child{transform:rotate(180deg)}
/* shut, the panel folds away to nothing (owner, 17 Nov: no room kept for a later state): its height eases to 0 as it fades,
   so the meter shrinks with it and stays centred in its stage, and opens back the same way. Where the browser can't ease a
   height to auto, it opens and shuts at once. It only fades as its height eases, with no glide on top (owner, 19 Nov). Its
   content sits 16px in from every edge (owner, 18 Nov). It grows out of the pill: its edge next to the pill stays put, its
   content holds to that edge as the far one eases out, and it scales a little from the pill's corner as it fades */
.v2 .ctm{interpolate-size:allow-keywords}
.v2 .ctm-pop{width:100%;min-height:0;padding:var(--s-4);display:flex;flex-direction:column;justify-content:flex-end;gap:var(--s-3);overflow:clip;transform-origin:0 100%;transition:opacity .32s var(--ease),transform .42s var(--ease),height .42s var(--ease),margin .42s var(--ease),padding .42s var(--ease),visibility 0s}
.v2 .ctm[data-pos="down"] .ctm-pop{justify-content:flex-start;transform-origin:0 0}
.v2 .ctm[data-open="0"] .ctm-pop{height:0;margin-bottom:calc(-1 * var(--s-2));padding-block:0;opacity:0;transform:scale(.98);visibility:hidden;pointer-events:none;transition:opacity .16s var(--ease),transform .32s var(--ease),height .32s var(--ease),margin .32s var(--ease),padding .32s var(--ease),visibility 0s .32s}
.v2 .ctm[data-pos="down"][data-open="0"] .ctm-pop{margin-bottom:0;margin-top:calc(-1 * var(--s-2))}
@media (prefers-reduced-motion:reduce){.v2 .ctm-pop,.v2 .ctm[data-open="0"] .ctm-pop{transition:none}}
.v2 .ctm-ph{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-3);font-size:13px;line-height:18px;color:var(--muted)}
.v2 .ctm-ph b{color:var(--fg);font-weight:500}
/* the bar: one part per kind in the chart palette (the accent first, a neutral grey for the quiet part), on the neutral rail */
.v2 .ctm-bar{display:flex;gap:2px;height:8px;border-radius:var(--r-xs);background:var(--rail);overflow:hidden}
.v2 .ctm-bar i{height:100%;width:0;flex:none;background:var(--c);transition:width .42s var(--ease),opacity .16s}
.v2 .ctm-bar.hl i:not(.on){opacity:.25}
/* the legend's rows answer the pointer: the swatch sits on the content's edge and the hover reaches out round it */
/* (the swatches start and the values end on the content's 16px column, as the head's words do; a row's hover fill reaches
   8px out round it, into the padding (owner, 26 Nov)) */
/* the rows' hover fill reaches 8px out round them, and their 5px hover room reaches into the gaps above and below, so their
   words keep the panel's 12px rhythm (the gaps round the legend were 18px against 12px elsewhere) */
.v2 .ctm-leg{display:flex;flex-direction:column;margin:-5px calc(-1 * var(--s-2))}
.v2 .ctm-l{display:flex;align-items:center;gap:var(--s-2);padding:5px var(--s-2);border-radius:var(--r-sm);font-size:13px;line-height:18px;color:var(--fg2);cursor:default;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ctm-l:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
/* its motion (the core's motion pieces, owner, 26 Nov): one highlight glides from part to part in the legend, in the hover's
   own grey (.mx-glide); a press on Compact shows at once; its box eases to its new words' width on the spring (mxWidth()) */
.v2 .ctm-leg{--hg-bg:color-mix(in srgb,var(--fg) 5%,transparent)}
:root[data-style="studio"] .v2 .ctm-leg{--hg-bg:var(--row)}
/* the swatch sits on the content's edge; the message's sign and tick below are centred on the swatch's centre line and its
   words start where the legend's labels do */
.v2 .ctm-l .sw{width:8px;height:8px;margin:0 4px 0 0;border-radius:var(--r-tiny,2px);flex:none;background:var(--c)}
.v2 .ctm-l .v{margin-left:auto;color:var(--fg)}
/* the message takes no room until it has something to say (owner, 17 Nov), and opens smoothly when it does. A warning is a
   warning notice (owner, 18 Nov): a faint warning tint, the filled warning sign in the warning mark and the words in the text
   colour; the action that resolves it is Compact, below, in the warning tint while it shows. A result is a plain line with
   the green tick */
.v2 .ctm-msg{display:grid;grid-template-rows:0fr;margin-top:calc(-1 * var(--s-3));font-size:13px;line-height:18px;color:var(--fg);opacity:0;transition:grid-template-rows .32s var(--ease),margin .32s var(--ease),opacity .24s var(--ease)}
.v2 .ctm-msg.on{grid-template-rows:1fr;margin-top:0;opacity:1}
.v2 .ctm-msg>span{display:flex;align-items:flex-start;gap:var(--s-2);min-height:0;overflow:hidden}
/* (the warning's tint and padding ease away as it turns into the result, so the panel eases to its new height in one motion) */
.v2 .ctm-msg>span{transition:padding .32s var(--ease),background-color .32s var(--ease)}
.v2 .ctm-msg>span>svg,.v2 .ctm-msg>span>svg.i{flex:none;width:16px;height:16px;margin-top:1px}
/* a done line is a row of the legend: its 12px tick on the content's 16px edge, where the swatches start, and its words where
   theirs start. A warning is a notice box on the content's column (a fill is measured by its box: 16px from the card's edges),
   its sign and words inside it, as Model picker's notice */
.v2 .ctm-msg.ok>span>svg{width:12px;height:12px;margin-top:3px}
.v2 .ctm-msg.warn>span{padding:var(--s-2) 10px;border-radius:var(--r-sm);background:color-mix(in srgb,var(--warn-bg) 45%,transparent)}
.v2 .ctm-wi{overflow:visible}
.v2 .ctm-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .ctm-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .ctm-msg.ok>span>svg{color:var(--ok-mark)}
@media (prefers-reduced-motion:reduce){.v2 .ctm-msg{transition:none}}
.v2 .ctm-f{display:flex;align-items:center;gap:10px;padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ctm-go{overflow:hidden;white-space:nowrap;justify-content:flex-start}
/* while it compacts nothing can be pressed, so it says so where the button was (owner, 21 Nov: "should this be gray button?
   especially the loading animation?"): the spinner in the accent and the words in the loader's sweep, as plain words, the row
   keeping its height and its right edge; Undo comes in once it is done */
.v2 .ctm-run{display:inline-flex;align-items:center;gap:6px;height:28px;flex:none;font-size:13px;color:var(--fg);white-space:nowrap}
.v2 .ctm-run[hidden]{display:none}
.v2 .ctm-run .spin{width:12px;height:12px;color:var(--accent-mark,var(--accent))}
.v2 .ctm-f .ctm-hint{flex:1;min-width:0;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the ring: inside the meter's pill, and as its own button where Agent harness puts it in the composer. Its track is the
   neutral rail and its fill the accent's mark colour (3:1), the warning mark near the limit */
.v2 .ctm-ft{display:flex;align-items:center;gap:var(--s-2);font-size:13px;color:var(--fg2)}
.v2 .ctm-ring{width:30px;height:30px;border-radius:calc(9px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ctm-ring:hover{background:var(--row)}}
.v2 .ctm-tg .ctm-ring{width:20px;height:20px;background:none}
.v2 .ctm-ring svg{width:18px;height:18px;transform:rotate(-90deg);overflow:visible}
.v2 .ctm-ring circle{fill:none;stroke-width:2.6}
.v2 .ctm-ring .tr{stroke:var(--rail)}
.v2 .ctm-ring .fl{stroke:var(--accent-mark,var(--accent));stroke-linecap:round;stroke-dasharray:0 100;transition:stroke-dasharray .42s var(--ease),stroke .32s}
/* near the limit the ring turns to the warning mark by a wipe, never a blend (owner, 26 Nov, from its showcase): a second arc in
   the warning mark (.fw) draws along the accent's from its start in 200ms, and draws back the same way once it is compacted, so
   no frame shows a mix of the two colours. Each step up sends a thin bright highlight once along the filled arc (.hl, 0.45s)
   and lifts the ring a touch (1.06, 0.35s); crossing the limit nudges the pill once. No halo or glow round it. With reduced
   motion the ring and its colour change at once, with no highlight, lift or nudge */
.v2 .ctm-ring .fw{stroke:var(--warn-mark);stroke-linecap:round;stroke-dasharray:0 100;opacity:0;transition:stroke-dasharray .42s var(--ease)}
.v2 .ctm-ring .hl{stroke:#fff;stroke-width:2;stroke-linecap:butt;stroke-dasharray:0 200;opacity:0}

/* Studio (owner, 17 and 18 Nov): the pill is the flat secondary control (a hairline and a light fill, no press); the ring is
   the accent's mark on a grey rail. The panel is a 22px card with an off-white head strip and foot strip, opening and
   shutting with a fade and a slight scale from the pill, no move or blur, its content 16px in from every edge: the legend's rows sit 8px in with 8px of their
   own, their hover concentric with the card's corners, and Compact is a 28px secondary pill 16px from the foot's side, bottom
   and hairline (owner, 23 Nov). The
   parts of the bar keep their colours */
:root[data-style="studio"] .v2 .ctm-tg{height:32px;border-radius:var(--r-pill);color:var(--fg2);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ctm-tg:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ctm-tg:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .ctm-ring .tr{stroke:var(--rail)}
:root[data-style="studio"] .v2 .ctm-pop{padding:0;gap:0;transition:opacity .22s var(--ease),transform .32s var(--ease),height .32s var(--ease),margin .32s var(--ease),visibility 0s}
:root[data-style="studio"] .v2 .ctm[data-open="0"] .ctm-pop{transition:opacity .15s var(--ease),transform .2s var(--ease),height .24s var(--ease),margin .24s var(--ease),visibility 0s .24s}
:root[data-style="studio"] .v2 .ctm-ph{padding:calc(var(--strip-y) + 5px) 16px;background:var(--strip);border-bottom:1px solid var(--line);font-size:12.5px;line-height:18px}
:root[data-style="studio"] .v2 .ctm-bar{margin:16px 16px 0;height:6px;gap:2px;border-radius:var(--r-tiny,3px);background:var(--rail)}
:root[data-style="studio"] .v2 .ctm-bar i{transition:width .42s var(--ease),opacity .15s var(--ease)}
:root[data-style="studio"] .v2 .ctm-bar i:first-child{border-radius:3px 0 0 3px}
:root[data-style="studio"] .v2 .ctm-bar.hl i:not(.on){opacity:.28}
:root[data-style="studio"] .v2 .ctm-leg{margin:calc(var(--s-4) - 5px) 8px 0}
:root[data-style="studio"] .v2 .ctm-l{padding:5px 8px;border-radius:calc(var(--r-card) - 8px);transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ctm-l:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .ctm-msg{margin:0 16px}
:root[data-style="studio"] .v2 .ctm-msg.on{margin:calc(var(--s-4) - 5px) 16px 5px}
:root[data-style="studio"] .v2 .ctm-msg.warn>span{border-radius:calc(var(--r-card) - 8px)}
:root[data-style="studio"] .v2 .ctm-f{margin-top:11px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .ctm-go{height:28px;padding:0 12px;border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .ctm-go:not(.warn){color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ctm-go:not(.warn):hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ctm-go:not(.warn):active{box-shadow:var(--btn2-press)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 :is(.ctm-pop,.ctm-bar i,.ctm-tg){transition:none!important}}
/* ---------- Delegation tree ---------- */
/* an orchestrator and the agents it hands work to, as a tree that grows while the run plays: a header with the run's title,
   its status, the time and the total cost, then the tree. A parent's line runs down from its mark and each child branches
   off it; Soft turns each corner with a curve, Blueprint cuts it at 45 degrees. A line is one tint (the accent mixed into
   the surface) once its step has started, the grey rail while it is queued, and the bad colour only for a failed step.
   Agents keep their colours on their avatars and apps show their own logos; lines never take them. The script draws the
   lines every frame from where the marks are, so they end 1px under the mark they meet and never trail a row that moved,
   and a new row opens its space, its line draws to it, then it rises in. One soft highlight band per agent eases down its
   route to the step that agent is on. Marks are small (14px): a ring while queued, a spinner while running, a filled disc
   with a tick or a cross once done or failed (cut out of the line by a border in the surface colour), the accent disc
   where the run starts, and an accent ring with a dot while a step waits for a person */
.v2 .atr{--atr-ind:22px;--atr-r:8;--atr-cut:0;--atr-run:var(--accent-mark,var(--accent));--atr-flow:color-mix(in srgb,var(--atr-run) 30%,var(--surface));--atr-ez:cubic-bezier(.22,1,.36,1);container:atr/inline-size;box-sizing:border-box;width:100%;max-width:480px;margin:0 auto;padding:11px var(--s-4) var(--s-1);font-size:13px;line-height:1.4;color:var(--fg)}
/* its content sits 16px in from every edge (owner, 18 Nov): the head's words, the foot's hairline and words, and each row's
   mark and trailing cost on the 16px column, with the row's hover fill reaching 8px out round it into the padding (owner,
   26 Nov: rows keep the head's and foot's columns); nothing in it grows or shrinks when it is pressed */
.v2 .atr :is(.pill,.ib):active{transform:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr{--atr-r:10;--atr-cut:1}
.v2 .atr.bare{max-width:none;padding:0}
.v2 .atr-h{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s-3);padding:var(--s-1) 0 var(--s-3)}
.v2 .atr.slim .atr-h{display:none}
.v2 .atr-hd{display:flex;flex-direction:column;gap:2px;min-width:0}
.v2 .atr-t{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atr-s{display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap}
.v2 .atr-dot{width:6px;height:6px;flex:none;border-radius:50%;background:var(--atr-run)}
.v2 .atr[data-s="done"] .atr-dot{background:var(--ok-mark)}
.v2 .atr[data-s="fail"] .atr-dot{background:var(--bad-mark)}
.v2 .atr-tot{flex:none;font-size:14px;font-weight:500}
/* the tree: one treeitem per agent or step (.atr-n), its row (.atr-b) and the group of its children under it. A row holds a
   mark, an avatar or an app, the name and what it is on now, and its time and cost (a branch adds up everything under it) */
.v2 .atr-tree{position:relative;padding:var(--s-1) 0}
.v2 .atr:not(.bare) .atr-tree{margin-inline:calc(-1 * var(--s-2))}
.v2 .atr-n{position:relative;outline:0}
/* (a row is clicked to pick its agent, so it takes the pointer) */
.v2 .atr-b{border-radius:calc(8px * var(--rk-m,var(--rk)));cursor:pointer;transition:background var(--t-fast)}
/* a row's hover and its selection show on the card's white in light mode too: a quiet 5% of the text colour (owner, 18 Nov) */
@media (hover:hover) and (pointer:fine){.v2 .atr-b:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.v2 .atr-n[aria-selected="true"]>.atr-b{background:color-mix(in srgb,var(--fg) 5%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
/* the keyboard's ring only: a row picked with the mouse or a finger shows none, even when a modifier key follows (data-nofv) */
.v2 .atr-n:focus-visible:not([data-nofv])>.atr-b{box-shadow:inset 0 0 0 2px var(--focus)}
/* (a status mark is drawn 14px in its 18px box, which holds the waiting ring's halo, so the box starts 2px early and the mark
   itself sits on the content's 16px column) */
.v2 .atr-r{display:flex;align-items:center;gap:var(--s-2);min-height:32px;padding:0 var(--s-2) 0 calc(var(--s-2) - 2px + var(--lv,0) * var(--atr-ind))}
/* the mark sits over the lines; the parts beside it rise in, so the mark never moves off the end of its line */
.v2 .atr-g{position:relative;z-index:2;width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:50%;color:var(--line-strong)}
.v2 .atr-ring{width:14px;height:14px;box-sizing:border-box;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1.75px currentColor}
.v2 .atr-spin{width:14px;height:14px;box-sizing:border-box;border-radius:50%;border:2px solid color-mix(in srgb,var(--atr-run) 22%,var(--surface));border-top-color:var(--atr-run);background:var(--surface);animation:v2-atrrot .8s linear infinite}
@keyframes v2-atrrot{to{transform:rotate(360deg)}}
/* (the waiting mark is cut out of its tinted row by a border in the surface colour, like the finished discs) */
.v2 .atr-wt{width:14px;height:14px;box-sizing:border-box;border-radius:50%;background:var(--atr-run);box-shadow:inset 0 0 0 1.75px var(--atr-run),inset 0 0 0 4px var(--surface),0 0 0 2px var(--surface)}
.v2 .atr-g:is([data-m="done"],[data-m="fail"],[data-m="src"]){width:14px;height:14px;margin:2px;box-shadow:0 0 0 2px var(--surface);color:var(--surface)}
.v2 .atr-g[data-m="done"]{background:var(--ok-mark)}
.v2 .atr-g[data-m="fail"]{background:var(--bad-mark)}
.v2 .atr-g[data-m="src"]{background:var(--atr-run)}
.v2 .atr-g svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round}
/* a tick or a cross draws itself as it lands */
.v2 .atr-g[data-drw] path{stroke-dasharray:1;stroke-dashoffset:1;animation:v2-atrdraw .32s var(--atr-ez) forwards}
@keyframes v2-atrdraw{to{stroke-dashoffset:0}}
/* marks are true circles in both styles: Blueprint squares every corner and Soft draws squircles */
.v2 .atr .atr-g.atr-g,.v2 .atr .atr-g.atr-g>span,.v2 .atr .atr-dot.atr-dot{border-radius:50%!important;corner-shape:round!important}
/* who: an agent's avatar in its colour (--a, its ink --ai; the orchestrator's is ink), or the app a step works in */
.v2 .atr-av{width:22px;height:22px;flex:none;display:grid;place-items:center;border-radius:calc(6px * var(--rk-s,var(--rk)));background:var(--a,var(--fg));color:var(--ai,var(--surface))}
.v2 .atr-av .i{width:12px;height:12px}
.v2 .atr-av.app{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
.v2 .atr-av .brand{width:13px;height:13px}
/* the name, a chevron that folds a branch, and what it is on now in muted text after it (it shimmers while it runs) */
/* the words and the cost share one baseline; the mark and the avatar stay centred on the row */
.v2 .atr-w{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .atr-tx{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--s-2);white-space:nowrap}
.v2 .atr-nm{flex:0 0 auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.v2 .atr-tg{align-self:center;width:16px;height:16px;margin-left:-6px;flex:none;display:grid;place-items:center;border-radius:calc(4px * var(--rk-s,var(--rk)));color:var(--muted);cursor:pointer;transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .atr-tg:hover{background:color-mix(in srgb,var(--fg) 9%,transparent);color:var(--fg)}}
/* its motion pieces (core's "motion pieces", 26 Nov): one highlight glides from row to row in Soft and Blueprint too (.mx-glide),
   in the rows' own hover fill; a press on a branch's chevron shows at once (.mx-press) */
.v2 .atr-tree.mx-glide{--hg-bg:color-mix(in srgb,var(--fg) 5%,transparent)}
:root[data-style="studio"] .v2 .atr-tree.mx-glide{--hg-bg:var(--row)}
.v2 .atr-tg svg{width:12px;height:12px;transition:transform .32s var(--ease)}
.v2 .atr-n[aria-expanded="false"]>.atr-b .atr-tg svg{transform:rotate(-90deg)}
.v2 .atr-sub{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--muted)}
.v2 .atr-q{flex:none;display:flex;gap:4px;font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .atr-c{color:var(--fg2)}
/* the orchestrator's row is the run: its time and cost are the head's clock and total, so it leaves them to the head (owner,
   18 Nov: no row repeats the head); how its cost splits is in the foot under the tree */
.v2 .atr-n[aria-level="1"]>.atr-b .atr-q{display:none}
.v2 .atr-n[data-s="queued"]>.atr-b .atr-nm{color:var(--fg2)}
.v2 .atr-n[data-s="fail"]>.atr-b .atr-sub{color:var(--bad)}
/* a step that waits for a person: no band behind it (owner, 18 Nov); its mark, a calm line in the accent and Approve in place
   say it */
.v2 .atr-n[data-s="wait"]>.atr-b .atr-sub{color:var(--accent-fg,var(--accent))}
.v2 .atr-ask{display:flex;flex-wrap:wrap;gap:var(--s-2);padding:0 var(--s-2) var(--s-2) calc(var(--s-2) - 2px + var(--lv,0) * var(--atr-ind) + 56px)}
/* the tree grows with its rows (grow(), owner 17 Nov): each new row already opens its own height smoothly, so the panel
   follows its content frame by frame, with nothing cut off and no room left over; the way on under a row (a fix, Approve and
   Hold) opens its height the same way. Where a browser can't ease a height to auto, it appears at once */
.v2 .atr.growing{--grow-t:0s;interpolate-size:allow-keywords}
.v2 .atr-ask{overflow:clip;overflow-clip-margin:4px;animation:v2-atrask .42s var(--atr-ez) backwards}
@keyframes v2-atrask{from{height:0;padding-bottom:0;opacity:0}}
.v2 .atr .atr-n[data-ph="in"]>.atr-b>.atr-ask{animation:v2-atrask .42s var(--atr-ez) backwards,v2-atrin .56s var(--atr-ez) backwards}
@media (prefers-reduced-motion:reduce){.v2 .atr-ask,.v2 .atr .atr-n[data-ph="in"]>.atr-b>.atr-ask{animation:none}}
/* a failed step the orchestrator has rerouted to a retry fades back (its words in the muted grey, so they keep 4.5:1) */
.v2 .atr-n[data-dim]>.atr-b .atr-av{opacity:.5}
.v2 .atr-n[data-dim]>.atr-b :is(.atr-nm,.atr-sub,.atr-c){color:var(--muted)}
.v2 .atr-n[data-dim]>.atr-b .atr-g[data-m="fail"]{background:color-mix(in srgb,var(--bad-mark) 50%,var(--surface))}
/* a new row: its space opens, its line draws to it (it stays hidden until then), and it rises in */
.v2 .atr-n:is([data-ph="open"],[data-ph="wait"])>.atr-b{visibility:hidden}
.v2 .atr-n[data-ph="open"]{overflow:hidden}
.v2 .atr-n[data-ph="in"]>.atr-b>.atr-r>:is(.atr-av,.atr-w),.v2 .atr-n[data-ph="in"]>.atr-b>.atr-ask{animation:v2-atrin .56s var(--atr-ez) backwards}
@keyframes v2-atrin{from{opacity:0;transform:translateY(8px);filter:blur(3px)}}
/* a line of text that changes rises into place; a running step's line is loader text, with the highlight sweep every loader
   has (.shim, owner, 19 Nov) */
.v2 .atr-sub[data-sw]{animation:v2-atrsw .46s var(--atr-ez)}
@keyframes v2-atrsw{from{opacity:0;transform:translateY(60%);filter:blur(3px)}}
.v2 .atr-n[data-s="run"]>.atr-b .atr-sub{background:linear-gradient(90deg,var(--fg) 0%,var(--fg) 38%,var(--faint) 50%,var(--fg) 62%,var(--fg) 100%) 0 0/260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:v2-shim 2.2s linear infinite}
.v2 .atr-n[data-s="run"]>.atr-b .atr-sub[data-sw]{animation:v2-atrsw .46s var(--atr-ez),v2-shim 2.2s linear .46s infinite}
/* the lines: one svg over the tree, under the marks. A grey rail and its tinted part under each parent, a branch to each
   child, and the bands on top */
.v2 .atr-ln{position:absolute;inset:0;z-index:1;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-ln{stroke-linejoin:miter}
.v2 .atr-ln .r{stroke:var(--rail)}
.v2 .atr-ln .on{stroke:var(--atr-flow)}
.v2 .atr-ln .bad{stroke:color-mix(in srgb,var(--bad-mark) 70%,var(--surface))}
/* the band: 210px of the accent, clear at both ends and light either side of its core. In dark mode its light stops are the
   accent, fading in and out */
.v2 .atr-bd path{stroke-width:1.5}
.v2 .atr-ln stop.l0{stop-color:#fff;stop-opacity:0}
.v2 .atr-ln stop.l1{stop-color:#fff;stop-opacity:.505}
.v2 .atr-ln stop.c{stop-color:var(--atr-run)}
.v2 .atr-ln stop.l2{stop-color:#fff;stop-opacity:.7}
:root[data-theme="dark"] .v2 .atr-ln :is(stop.l0,stop.l1,stop.l2){stop-color:var(--atr-run)}
:root[data-theme="dark"] .v2 .atr-ln stop.l1{stop-opacity:.3}
:root[data-theme="dark"] .v2 .atr-ln stop.l2{stop-opacity:.45}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .v2 .atr-ln :is(stop.l0,stop.l1,stop.l2){stop-color:var(--atr-run)}
  :root:not([data-theme="light"]) .v2 .atr-ln stop.l1{stop-opacity:.3}
  :root:not([data-theme="light"]) .v2 .atr-ln stop.l2{stop-opacity:.45}
}
/* under the tree, the selected row's cost split (the whole run's until a row is picked) */
.v2 .atr-f{margin:var(--s-1) 0 0;padding:var(--s-4) 0 var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atr-f b{font-weight:500;color:var(--fg2)}
.v2 .atr-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* narrow: the line of work goes first, then the time, so names keep their room */
@container atr (max-width:360px){.v2 .atr-sub{display:none}}
@container atr (max-width:300px){.v2 .atr-sec{display:none}}
@media (prefers-reduced-motion:reduce){
  .v2 .atr-bd{display:none}
  .v2 .atr-spin,.v2 .atr-sub[data-sw],.v2 .atr-n[data-ph="in"]>.atr-b>.atr-r>*,.v2 .atr-n[data-ph="in"]>.atr-b>.atr-ask{animation:none}
  .v2 .atr-g[data-drw] path{animation:none;stroke-dashoffset:0}
  .v2 .atr-n[data-s="run"]>.atr-b .atr-sub{animation:none;background:none;color:var(--fg);-webkit-text-fill-color:currentColor}
}
/* Studio (owner, 17 and 18 Nov): the tree keeps its colours (the accent where it runs, green ticks, agents' own colours, red for
   a failure); its rails are hairlines and the cost split is an off-white foot strip. Its content sits 16px in from every
   edge: the rows sit 8px in with 8px of their own, their hover concentric with the card's corners (22px = 14px + 8px) */
:root[data-style="studio"] .v2 .atr:not(.bare){padding:8px 8px 0}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-ct-mix{margin-inline:8px}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-tree{margin-inline:0}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-h{padding:8px 8px 12px}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-b{border-radius:calc(var(--r-card) - 8px)}
/* the rows take Studio's one hover, gliding from row to row, and the picked agent its stronger fill with no edge (owner, 21 Nov) */
:root[data-style="studio"] .v2 .atr-b{transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.atr-b,.atr-tg,.atr-cm-crumb button):hover{background:var(--row)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .atr-cm-b:not(.own):hover .bg{background-image:linear-gradient(var(--row),var(--row))}}
:root[data-style="studio"] .v2 .atr-n[aria-selected="true"]>.atr-b{background:var(--row-on)}
:root[data-style="studio"] .v2 .atr-n[aria-selected="true"]:not(:focus-visible)>.atr-b{box-shadow:none}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-ask{padding-bottom:5px}
:root[data-style="studio"] .v2 .atr-ln .r{stroke:var(--line)}
:root[data-style="studio"] .v2 .atr-ln .bad{stroke:color-mix(in srgb,var(--bad-mark) 55%,var(--surface))}
:root[data-style="studio"] .v2 .atr:not(.bare) .atr-f{margin:7px -8px 0;padding:calc(var(--strip-y) + 5px) 16px;line-height:18px;background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* Cost tree and Cost map have no foot strip, so the card keeps 16px under its last row too: Cost tree's rows bring 5px of
   their own, and Cost map's content sits 16px in from every edge, its key's marks in line with the title */
:root[data-style="studio"] .v2 .atr-ct:not(.bare){padding-bottom:7px}
:root[data-style="studio"] .v2 .atr-cm:not(.bare){padding:16px 16px 12px}
:root[data-style="studio"] .v2 .atr-cm:not(.bare) .atr-h{padding:0}
/* ---------- Delegation tree designs ---------- */
/* the card's design switch: Default, Cost tree and Cost map, with the switch under the tree (on designme.dev it is the
   card's footer tabs). Each design sits centred in the room the card keeps for the tallest of them, and grows from there
   with its content, up and down alike (owner, 17 Nov) */
.v2 .dm.atr-dm{min-height:0;flex:1;gap:var(--s-5)}
.v2 .atr-dm>.dm-main>*{width:100%}
.v2.stage-in:has(>.atr-dm){align-self:auto;display:flex;flex-direction:column}
/* the two other designs take the Default tree's treatment (owner, 16 Nov): its header, its 14px marks (a ring while queued,
   a spinner while running, a filled disc with a tick or a cross once done or failed, the accent disc where the run starts,
   the accent ring while a step waits for a person), its avatars and app logos, and, in Cost tree, its lines and band. Agent
   colours stay on the avatars; cost is the accent, in one step per agent (--k1 to --k3, each 3:1 or more on the surface).
   Lighter steps would drop under 3:1, so the steps run from the accent towards the text colour, and in Blueprint's dark
   theme, where the lime is already light, towards the surface */
.v2 .atr-ct,.v2 .atr-cm{--k1:var(--accent-mark,var(--accent));--k2:color-mix(in oklab,var(--accent-mark,var(--accent)) 74%,var(--fg));--k3:color-mix(in oklab,var(--accent-mark,var(--accent)) 50%,var(--fg))}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2 :is(.atr-ct,.atr-cm){--k2:color-mix(in oklab,var(--accent-mark,var(--accent)) 70%,var(--surface));--k3:color-mix(in oklab,var(--accent-mark,var(--accent)) 46%,var(--surface))}
@media (prefers-color-scheme:dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2 :is(.atr-ct,.atr-cm){--k2:color-mix(in oklab,var(--accent-mark,var(--accent)) 70%,var(--surface));--k3:color-mix(in oklab,var(--accent-mark,var(--accent)) 46%,var(--surface))}}
.v2 .atr-x-fix{flex:none}
/* Cost tree: the Default tree with each row's share of the whole run as a bar after its cost, and the run's cost by agent
   as one bar under the header. A row's bar and its agent's part of the run's bar are the same step of the accent */
/* (no foot under Cost tree's rows: its last row's hover fill keeps 16px to the card's bottom edge, with the tree's own 4px) */
.v2 .atr-ct{padding-bottom:var(--s-3)}
.v2 .atr-ct .atr-h{padding-bottom:var(--s-2)}
/* the whole run's cost, one bar: each agent's part in its step of the accent, clipped to its stretch (--x0 to --x1, in
   percent) so it grows without a layout, with a 2px gap of the surface between parts; what is left at the end is the
   orchestrator's own, on the grey track */
.v2 .atr-ct-mix{position:relative;height:6px;margin:0 0 var(--s-3);border-radius:calc(3px * var(--rk-s,var(--rk)));overflow:hidden;background:color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .atr-ct-mix i{position:absolute;inset:0;background:var(--k);clip-path:inset(0 calc(100% - var(--x1,0) * 1% + 1px) 0 calc(var(--x0,0) * 1% + 1px) round calc(3px * var(--rk-s,var(--rk))));transition:clip-path .8s var(--ease)}
/* each row's cost, then its branch's share of the whole as a short bar in its agent's step of the accent */
.v2 .atr-ct .atr-q{align-items:center;gap:var(--s-2)}
.v2 .atr-ct .atr-c{min-width:38px;text-align:right}
.v2 .atr-ct-bar{display:block;width:40px;height:3px;flex:none;border-radius:calc(2px * var(--rk-s,var(--rk)));overflow:hidden;background:color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .atr-ct-bar span{display:block;height:100%;border-radius:inherit;background:var(--k,var(--k1));transform-origin:left;transform:scaleX(var(--sh,0));transition:transform .5s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .atr-b:hover .atr-ct-bar{background:var(--surface)}}
.v2 .atr-n[data-dim]>.atr-b .atr-ct-bar span{opacity:.5}
@container atr (max-width:360px){.v2 .atr-ct-bar{width:28px}.v2 .atr-ct .atr-c{min-width:34px}}
/* narrower still, the rows keep their cost and leave the bar to the run's bar above, so the names keep their room */
@container atr (max-width:340px){.v2 .atr-ct-bar{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-ct-mix i{transition:clip-path .4s steps(4,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-ct-bar span{transition:transform .3s steps(3,end)}
/* Cost map: every agent and step as a block as wide as its cost, one row for each level. A block's place and width are set
   with a transform and a clip, so as costs grow and as you zoom the blocks slide and stretch without a layout. Blocks are
   flat: the whole run and finished work grey, the accent tint while at work or waiting for a person, the bad tint when failed, the hover grey
   while queued, and each carries its state as the tree's mark, so the colour is never the only sign. An agent's own work,
   outside its steps, is a light grey hatch */
.v2 .atr-cm{display:flex;flex-direction:column;gap:10px;padding:16px 16px 12px}
.v2 .atr-cm .atr-h{padding:0}
.v2 .atr-cm-crumb{display:flex;align-items:center;gap:4px;min-width:0;font-size:14px}
.v2 .atr-cm-crumb button{border-radius:calc(6px * var(--rk-s,var(--rk)));padding:2px 4px;margin:-2px -4px;color:var(--fg2);transition:background .2s,color .2s}
@media (hover:hover) and (pointer:fine){.v2 .atr-cm-crumb button:hover{background:color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg)}}
.v2 .atr-cm-crumb b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atr-cm-crumb .i{color:var(--faint)}
/* the map is as tall as the levels it shows (two when a branch with no steps under its steps is open), and eases between
   them, so it never keeps an empty row (owner, 18 Nov) */
.v2 .atr-cm-map{--rows:3;position:relative;height:calc(var(--rows) * 52px + (var(--rows) - 1) * 4px);overflow:hidden;transition:height .42s var(--ease)}
.v2 .atr-cm-b{position:absolute;left:0;top:calc(var(--lv) * 56px);width:100%;height:52px;transform:translateX(var(--x,0px));transition:transform .7s var(--ease),clip-path .7s var(--ease),opacity .4s;text-align:left;outline:0;clip-path:inset(0 calc(100% - var(--w,0px)) 0 0 round calc(8px * var(--rk-m,var(--rk))))}
.v2 .atr-cm-b .bg{position:absolute;inset:0;background-color:var(--chip);transition:background-color .3s}
.v2 .atr-cm-b:not(.lv0):is([data-s="run"],[data-s="wait"]) .bg{background-color:color-mix(in srgb,var(--atr-run) 14%,var(--surface))}
.v2 .atr-cm-b:not(.lv0)[data-s="fail"] .bg{background-color:var(--bad-bg)}
.v2 .atr-cm-b:not(.lv0)[data-s="queued"] .bg{background-color:var(--row)}
.v2 .atr-cm-b.own .bg{background-color:var(--row);background-image:repeating-linear-gradient(135deg,transparent 0 4px,color-mix(in srgb,var(--fg) 7%,transparent) 4px 5px)}
/* under the pointer a block takes a neutral step darker, keeping its tint */
.v2 .atr-cm-b:not(.own):focus-visible:not([data-nofv]) .bg{background-image:linear-gradient(color-mix(in srgb,var(--fg) 5%,transparent),color-mix(in srgb,var(--fg) 5%,transparent))}
@media (hover:hover) and (pointer:fine){.v2 .atr-cm-b:not(.own):hover .bg{background-image:linear-gradient(color-mix(in srgb,var(--fg) 5%,transparent),color-mix(in srgb,var(--fg) 5%,transparent))}}
.v2 .atr-cm-b:focus-visible:not([data-nofv]) .atr-cm-l b{text-decoration:underline;text-decoration-color:var(--focus);text-underline-offset:3px;text-decoration-thickness:2px}
.v2 .atr-cm-l{position:absolute;left:8px;top:8px;width:calc(var(--w,0px) - 16px);display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:6px;align-items:center;font-size:12.5px;line-height:1.35;white-space:nowrap;pointer-events:none;color:var(--fg);transition:opacity .3s,top .3s var(--ease)}
.v2 .atr-cm-l .atr-g{grid-row:1}
.v2 .atr-cm-l b{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.v2 .atr-cm-l .v{grid-column:2;font-size:12px;color:var(--fg2);font-variant-numeric:tabular-nums}
.v2 .atr-cm-b.gone{opacity:0;pointer-events:none}
/* a block too narrow for its words keeps its mark; one too narrow for that keeps only its tint (its tooltip says the rest) */
.v2 .atr-cm-l[data-fit="mark"]>:not(.atr-g){opacity:0}
/* (a block showing only its mark has it centred top to bottom, as much room above it as below) */
.v2 .atr-cm-l[data-fit="mark"]{top:17px}
.v2 .atr-cm-l[data-fit="none"]{opacity:0}
/* the key to the blocks, under the map: the marks, and the hatch for an agent's own work */
.v2 .atr-cm-lg{list-style:none;margin:-2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted)}
.v2 .atr-cm-lg li{display:inline-flex;align-items:center;gap:6px}
.v2 .atr-cm-lg .atr-g{transform:scale(.86)}
.v2 .atr-cm-lg .own{width:12px;height:12px;flex:none;border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--row) repeating-linear-gradient(135deg,transparent 0 2px,color-mix(in srgb,var(--fg) 30%,transparent) 2px 3px)}
/* what a block or the run says: it takes no room until it has something to say, and opens and closes smoothly */
.v2 .atr-cm-say{display:grid;grid-template-rows:0fr;margin-top:-10px;font-size:12.5px;line-height:18px;color:var(--fg2);opacity:0;transition:grid-template-rows .32s var(--ease),margin-top .32s var(--ease),opacity .24s var(--ease)}
.v2 .atr-cm-say.on{grid-template-rows:1fr;margin-top:0;opacity:1}
.v2 .atr-cm-say>span{min-height:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.v2 .atr-cm-say b{font-weight:500;color:var(--fg)}
@media (prefers-reduced-motion:reduce){.v2 .atr-cm-map,.v2 .atr-cm-say{transition:none}}
/* each agent: its mark and avatar, as in the tree, its share and its cost, and the way on when it needs one */
.v2 .atr-cm-key{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
/* its marks sit in the column of the legend's marks and the title's edge, and its last column ends on the head total's edge */
.v2 .atr-cm-key li{display:flex;align-items:center;gap:var(--s-2);min-height:36px;padding:0;font-size:13px}
/* (an agent's name, its share and its cost share one baseline; its mark and avatar stay centred on the row) */
.v2 .atr-cm-kw{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .atr-cm-key .t{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atr-cm-key .p{width:38px;text-align:right;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.v2 .atr-cm-key .c{width:44px;text-align:right;font-size:12px;color:var(--fg2);font-variant-numeric:tabular-nums}
.v2 .atr-cm-key .pill{margin-left:2px}
/* the key's avatars are as tall as its buttons (28px), so a row with Fix or Approve keeps its height and its edges */
.v2 .atr-cm-key .atr-av{width:28px;height:28px;border-radius:calc(8px * var(--rk-s,var(--rk)))}
.v2 .atr-cm-key .atr-av .i{width:14px;height:14px}
.v2 .atr-cm-key .atr-av .brand{width:15px;height:15px}
/* on a phone the key leaves out each agent's share, which its blocks already show, so the names keep their room */
@container atr (max-width:360px){.v2 .atr-cm-key .p{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-cm-b{clip-path:inset(0 calc(100% - var(--w,0px) + 2px) 0 0);transition-duration:.45s;transition-timing-function:steps(5,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-cm-b[data-s="fail"] .bg{background-image:repeating-linear-gradient(135deg,transparent 0 4px,color-mix(in srgb,var(--bad) 14%,transparent) 4px 5px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atr-cm-lg .own{border-radius:0}
/* ---------- Approval queue ---------- */
/* every run in one list, grouped by what it needs: Needs you, Running, Done. A run glides to its new group when it moves.
   The card sits on two columns (owner, 18 Nov), its content 16px from every edge: the head's neutral mark in a 28px column
   with the agents' marks under it, and the title and each run's words 12px after it; the buttons and the clocks end on the
   content's right edge, and each row shares one centre line. Each group's name and count is a section label on the
   content's left edge, over the marks, so it never reads as another run's words. A run's row is not a button, so it has no
   hover fill, and one that failed keeps its red words and Retry with no red band behind them; a run that moves glides
   without lifting */
.v2 .aib{width:100%;max-width:440px;margin:0 auto;padding:16px 16px var(--s-2)}
.v2 .aib-h{display:flex;align-items:center;gap:12px;padding:0 0 4px}
.v2 .aib-hi{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:var(--r-sm);color:var(--fg2);background:var(--chip)}
.v2 .aib-h b{flex:1;min-width:0;font-weight:500;font-size:14px;line-height:20px}
.v2 .aib-g{display:flex;flex-direction:column}
.v2 .aib-gh{display:flex;align-items:center;gap:var(--s-2);padding:12px 0 4px;font-size:12px;line-height:18px;color:var(--muted)}
.v2 .aib-gh .n{font-variant-numeric:tabular-nums}
.v2 .aib-gl{display:flex;flex-direction:column}
.v2 .aib-i{display:flex;align-items:center;gap:12px;padding:8px 0;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;transition:background .16s}
.v2 .aib-i.mv{position:relative;z-index:1;background:var(--surface)}
/* (as a group goes or comes back the panel springs to its new height at the motion pieces' pace, .mx-grow) */
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .aib :is(.ib,.pill):active,:root[data-style="studio"] .v2 .aib .ib:active{transform:none}
.v2 .aib-av{width:28px;height:28px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none;font-size:11px;font-weight:500}
.v2 .aib-t{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .aib-t b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aib-t span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aib-i.fail .aib-t span{color:var(--bad)}
.v2 .aib-r{display:flex;align-items:center;gap:6px;flex:none;font-size:12.5px;color:var(--fg2)}
.v2 .aib-r .spin{width:11px;height:11px;color:var(--accent-fg,var(--accent))}
.v2 .aib-r .ok{color:var(--ok);display:grid}
.v2 .aib-i.fail .aib-r .pill{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .aib-i.fail .aib-r .pill:hover{box-shadow:var(--on-tint-btn-h)}}
/* Studio (owner, 18 Nov): the head's mark has a hairline like the other tiles; the done ticks are the vivid mark green,
   never the darker text green; Retry is the secondary button as Studio draws it everywhere (its tokens) */
:root[data-style="studio"] .v2 .aib-hi{box-shadow:inset 0 0 0 1px var(--hair)}
/* a group's name is the list's section label (owner, 18 Nov), in the smaller muted label type of a menu's group heading, so
   it never reads as a run's description; a little more room above it sets the groups apart */
:root[data-style="studio"] .v2 .aib-gh{padding-top:16px;font-size:11.5px;line-height:16px}
:root[data-style="studio"] .v2 .aib-r .ok{color:var(--ok-mark)}
:root[data-style="studio"] .v2 .aib-i.fail .aib-r .pill{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aib-i.fail .aib-r .pill:hover{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aib-i.fail .aib-r .pill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .aib-i.fail .aib-r .pill:active{box-shadow:var(--btn2-press)}
/* ---------- Browser session ---------- */
/* the agent browsing for you: a small browser frame with the page it is on drawn as a wireframe, the steps under it, and
   Pause and Take over. When the page gets in its way it stops and asks, and with Take over the page is yours to use. Its
   content is 16px from every edge; each step's mark sits in a 16px column on the content's left edge with its words 12px
   after it, and the card grows and shrinks with what it holds (grow()), centred in its stage */
.v2 .bws{width:100%;max-width:440px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column}
.v2 .bws-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding-bottom:var(--s-3)}
.v2 .bws-ht{display:flex;flex-direction:column;min-width:0}
.v2 .bws-ht b{font-weight:500;font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .bws-st{font-size:12.5px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .bws-st .shim{font-size:inherit}
/* Pause and Take over side by side are the same drawn height (28px) */
.v2 .bws-ctl{display:flex;align-items:center;gap:var(--s-1);flex:none}
.v2 .bws-pause.ib{width:28px;height:28px}
/* Take over takes the one hover (--row) under the pointer; pressed (the person has the page) it is the accent's tint */
@media (hover:hover) and (pointer:fine){.v2 .bws-take.pill.line:not([disabled],[aria-pressed="true"]):hover{background:var(--row)}}
.v2 .bws-take[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-fg,var(--accent));box-shadow:none}
.v2 .bws-win{border-radius:var(--r-in);border:1px solid color-mix(in srgb,var(--line) 50%,transparent);overflow:hidden;transition:border-color .3s}
.v2 .bws.you .bws-win{border-color:var(--accent-mark,var(--accent))}
.v2 .bws-bar{display:flex;align-items:center;gap:var(--s-2);height:36px;padding:0 var(--s-2) 0 10px;background:var(--wash);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .bws-dots{display:flex;gap:var(--s-1);flex:none}
.v2 .bws-dots i{width:7px;height:7px;border-radius:50%;background:var(--faint)}
/* the address bar is a field: slightly rounded corners, never a full pill */
.v2 .bws-url{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:24px;padding:0 var(--s-2);border-radius:var(--r-sm);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--fg2)}
.v2 .bws-url .i{color:var(--muted)}
.v2 .bws-url span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .bws-vp{position:relative;height:156px;overflow:hidden;background:var(--surface)}
/* the page itself, drawn small: real words where they matter, grey lines for the rest */
/* (17px on the left, off the 4px scale, so the page's table and button words line up with the steps' words under the frame:
   1px of frame edge, 17px, then their own 10px) */
.v2 .bws-pg{position:absolute;left:0;right:0;top:0;padding:var(--s-3) var(--s-4) var(--s-3) 17px;display:flex;flex-direction:column;gap:10px;font-size:12px;color:var(--fg2);transition:transform .8s var(--ease)}
.v2 .bws-ln{display:block;height:6px;border-radius:3px;background:var(--chip)}
.v2 .bws-nav{display:flex;align-items:center;gap:var(--s-3);font-size:11.5px;color:var(--muted);white-space:nowrap}
.v2 .bws-nav b{display:flex;align-items:center;gap:var(--s-2);margin-right:auto;font-weight:500;color:var(--fg)}
.v2 .bws-nav b::before{content:"";width:12px;height:12px;border-radius:var(--r-xs);background:var(--fg)}
.v2 .bws-nav .on{color:var(--fg)}
.v2 .bws-hd{font-size:13px;font-weight:500;color:var(--fg)}
.v2 .bws-q{display:flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);color:var(--fg);white-space:nowrap;overflow:hidden}
.v2 .bws-res{display:flex;flex-direction:column;gap:2px;min-width:0}
.v2 .bws-res b{font-weight:500;color:var(--pb);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:flex-start;max-width:100%}
.v2 .bws-res span{font-size:11.5px;color:var(--muted)}
.v2 .bws-cta{align-self:flex-start;height:22px;padding:0 10px;display:inline-flex;align-items:center;border-radius:var(--r-pill);background:var(--chip);font-size:11.5px;color:var(--fg2)}
.v2 .bws-tb{display:flex;flex-direction:column;border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .bws-tb div{display:flex;justify-content:space-between;gap:var(--s-3);padding:5px 10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .bws-tb div:first-child{border-top:0;font-size:11.5px;color:var(--muted)}
.v2 .bws-tb .num{padding:0 var(--s-1);margin:0 -4px;border-radius:var(--r-xs);color:var(--fg);transition:background .3s,color .3s}
/* a price the agent has taken is marked like a highlighter, in the accent tint with the accent as text (a highlight is
   never a solid accent fill) */
.v2 .bws-tb .num.hit{background:var(--sel);color:var(--accent-fg,var(--accent))}
/* what the agent is about to press gets a ring, and its own pointer glides there */
.v2 .bws-vp .aim{outline:1.5px solid var(--accent-mark,var(--accent));outline-offset:2px;border-radius:var(--r-xs)}
.v2 .bws-cur{position:absolute;left:0;top:0;width:14px;height:14px;z-index:2;color:var(--accent-mark,var(--accent));pointer-events:none;opacity:0;transition:transform .7s var(--ease),opacity .2s}
.v2 .bws-cur.on{opacity:1}
.v2 .bws-cur svg{display:block;width:14px;height:14px;transition:transform .16s var(--ease)}
.v2 .bws-cur svg path{fill:currentColor;stroke:var(--surface);stroke-width:1.4;stroke-linejoin:round}
.v2 .bws-cur.down svg{transform:scale(.8)}
/* the page's own cookie banner, the thing in the agent's way */
.v2 .bws-ck{position:absolute;left:8px;right:8px;bottom:8px;z-index:1;display:flex;align-items:center;gap:6px;padding:6px 6px 6px 10px;border-radius:calc(10px * var(--rk));background:var(--raised);box-shadow:var(--shadow-pop);font-size:12px;color:var(--fg);transform:translateY(calc(100% + 12px));transition:transform .5s var(--ease)}
.v2 .bws-ck.on{transform:none}
.v2 .bws-ck span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .bws-ck button{flex:none;height:24px;padding:0 9px;border-radius:var(--r-pill);font-size:11.5px;background:var(--chip);color:var(--fg)}
.v2 .bws-ck button+button{background:var(--ink);color:var(--on-ink)}
.v2 .bws:not(.you) .bws-ck button{cursor:default}
.v2 .bws-steps{list-style:none;margin:0;padding:var(--s-2) 0 0;display:flex;flex-direction:column}
.v2 .bws-s{display:flex;align-items:flex-start;gap:var(--s-3);padding:6px 0;font-size:13px;line-height:20px;color:var(--muted)}
.v2 .bws-s:last-child{padding-bottom:0}
.v2 .bws-s .g{width:16px;height:20px;display:grid;place-items:center;flex:none;color:var(--faint)}
.v2 .bws-s .g .spin{width:11px;height:11px;color:var(--accent-mark,var(--accent))}
.v2 .bws-s.done{color:var(--fg2)}.v2 .bws-s.done .g{color:var(--ok)}
.v2 .bws-s.run,.v2 .bws-s.wait{color:var(--fg)}
.v2 .bws-s .shim{font-size:inherit}
.v2 .bws.paused .bws-s .g .spin{animation-play-state:paused;color:var(--muted)}
.v2 .bws-t{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .bws-t>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .bws-t .d{font-size:12px;line-height:18px;color:var(--muted)}
/* the step that waits for you is a warning notice (owner, 18 Nov; Model picker's busy notice is the reference): a faint warning
   tint as wide as the content with 12px inside it, the filled warning sign, the words in the text colours, Take over white and
   then "Allow closing it" (the action that settles it, last, as in Draft review's notice) as .pill.warn */
.v2 .bws-s.wait{margin:var(--s-1) 0;padding:var(--s-3);border-radius:var(--r-in);background:color-mix(in srgb,var(--warn-bg) 45%,transparent)}
.v2 .bws-wi{width:16px;height:16px;overflow:visible}
.v2 .bws-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .bws-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .bws-s.wait .d{color:var(--fg2)}
/* the notice's buttons sit under its words, starting where they start */
.v2 .bws-ask{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2);margin-top:var(--s-2)}
.v2 .bws-ask .pill.line{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .bws-ask .pill.line:hover{box-shadow:var(--on-tint-btn-h)}}
/* once every step is done: the card's footer under a hairline, 16px from it and from the card's bottom edge; a neutral line
   with the green tick on the steps' mark column and its words on theirs, no green fill (owner, 18 Nov) */
.v2 .bws-sum{display:flex;align-items:center;gap:var(--s-3);margin-top:var(--s-4);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;line-height:20px;color:var(--fg2)}
.v2 .bws-sum svg{color:var(--ok);flex:none;box-sizing:content-box;padding:0 2px}
.v2 .bws-sum span{min-width:0}
/* Studio (owner, 17 and 18 Nov): the content 16px in from every edge, Take over Studio's flat secondary (pressed, it takes the
   stronger neutral fill), ticks in the vivid green, the notice's Take over flat on the tint, and the line once it is done an
   off-white foot strip, its words 16px from its hairline and the card's bottom edge */
:root[data-style="studio"] .v2 .bws-ht b{letter-spacing:-.01em}
:root[data-style="studio"] .v2 .bws-take.pill.line[aria-pressed="true"]{color:var(--fg);background:linear-gradient(var(--row-on),var(--row-on)),linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
:root[data-style="studio"] .v2 .bws-s.done .g,:root[data-style="studio"] .v2 .bws-sum svg{color:var(--ok-mark)}
:root[data-style="studio"] .v2 .bws-ask .pill.line{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .bws-ask .pill.line:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .bws-ask .pill.line:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .bws-sum{margin:var(--s-4) -16px -16px;padding:calc(var(--strip-y) + 5px) 16px;line-height:18px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .bws.growing{overflow-clip-margin:0px}
/* ---------- Trace view ---------- */
/* one agent run as a waterfall: every span on a shared time axis, nested under the span that started it, with its tokens
   and latency. The run itself is the head: its mark, its name, how it is going, and its total tokens and time. The card
   sits on two columns (owner, 18 Nov): the head's mark in a 32px column with the title's words 12px after it; each span's
   mark is centred in that column (nested ones step in 16px a level) and the top spans' names start where the title's
   words do, as do the key and the Span heading. Everything sits on the card's 16px column on both sides (owner, 22 Nov: "all padding inside the card"): the
   run's totals, the times and tokens and an open span's details end 16px from the right edge, as the head's tile starts 16px
   from the left. A row's hover and selection fill is a quiet grey that reaches 8px out round the row on each side, into the
   padding, as a select's box reaches out round its words (owner, 26 Nov: rows keep the head's columns). Each kind has its colour (the chart
   palette's identity slots): its bar and its count in the key, drawn at full strength so the key matches them. While the
   run streams, a playhead marks now and the running bars grow with a bright leading edge. A span over its time budget
   turns amber and hatched, and any span opens to show where it sat in the run, its input and its output, on the same
   columns. The card keeps no room for spans still to come: it grows as each one starts (grow()) and stays centred */
.v2 .trv{width:100%;max-width:720px;margin:0 auto;padding:15px 16px 0;container-type:inline-size;--cols:minmax(0,11fr) minmax(0,8fr) 40px 44px}
.v2 .trv.growing{overflow-clip-margin:0px}
.v2 .trv-h{display:flex;align-items:center;gap:12px}
.v2 .trv-hi{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:calc(9px * var(--rk-m,var(--rk)));color:var(--fg2);background:var(--chip)}
.v2 .trv-ht{flex:1;display:flex;flex-direction:column;min-width:0}
.v2 .trv-ht b{font-weight:500;font-size:14px;line-height:20px}
.v2 .trv-st{font-size:12.5px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the run's totals: its tokens, quiet, then its time over the Time column */
.v2 .trv-tt{flex:none;margin-right:-4px;font-size:12.5px;white-space:nowrap}
.v2 .trv-tot{font-size:14px;font-weight:500;flex:none}
/* (the tokens and the time share one baseline; the row round them stays centred on the tile) */
.v2 .trv-nums{flex:none;display:flex;align-items:baseline;gap:12px}
/* the key: each kind with its colour and how many of its spans have started */
.v2 .trv-lg{display:flex;flex-wrap:wrap;gap:2px var(--s-3);padding:8px 0 12px 44px;font-size:12px;color:var(--muted)}
.v2 .trv-lg span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;transition:color .3s}
.v2 .trv-lg i{width:8px;height:8px;border-radius:var(--r-tiny,2px);background:var(--k);flex:none}
.v2 .trv-lg b{font-weight:500;color:var(--fg2)}
.v2 .trv-lg span.z{color:var(--dis)}.v2 .trv-lg span.z b{color:inherit}.v2 .trv-lg span.z i{opacity:.45}
.v2 .trv-ax,.v2 .trv-r{display:grid;grid-template-columns:var(--cols);align-items:center;gap:var(--s-2)}
.v2 .trv-ax{height:30px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--muted)}
.v2 .trv-ax>span:first-child{padding-left:44px}
.v2 .trv-tk,.v2 .trv-ms{text-align:right;white-space:nowrap}
.v2 .trv-sc{position:relative;height:18px}
.v2 .trv-sc span{position:absolute;top:0;transform:translateX(-50%);font-size:12px}
.v2 .trv-sc span:first-child{transform:none}
.v2 .trv-rows{display:flex;flex-direction:column;padding-bottom:var(--s-4)}
.v2 .trv-r{width:calc(100% + 16px);margin:0 -8px;padding:0 8px;min-height:32px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;transition:background .16s}
.v2 .trv-r[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .trv-r:hover{background:var(--row)}}
.v2 .trv-r[aria-expanded="true"] .trv-tk{color:var(--fg2)}
/* its motion pieces (core's "motion pieces", 26 Nov): one highlight glides from span to span in every style (.mx-glide), the
   picked span keeps its own fill; the details' parts settle one after another as they open (.mx-rows); Close presses at once */
.v2 .trv-r:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--focus)}
.v2 .trv-n{position:relative;display:flex;align-items:center;gap:19px;min-width:0;align-self:stretch;padding-left:calc(7px + var(--lv,0) * 16px)}
.v2 .trv-k{position:relative;z-index:1;width:18px;height:18px;display:grid;place-items:center;flex:none;border-radius:var(--r-tiny,5px);color:color-mix(in srgb,var(--k) 70%,var(--fg));background:color-mix(in srgb,var(--k) 13%,var(--surface))}
.v2 .trv-nm{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .trv-n .tag{flex:none;margin-left:-11px}
/* the tree: a guide from each parent's mark down past its children, with an elbow into each child */
.v2 .trv-g{position:absolute;top:0;bottom:0;left:0;pointer-events:none}
.v2 .trv-g i{position:absolute;top:0;bottom:0;left:calc(var(--x) * 16px + 15.5px);width:1px;background:color-mix(in srgb,var(--rail) 60%,transparent)}
.v2 .trv-g i.end{bottom:50%}
.v2 .trv-g i.el::after{content:"";position:absolute;left:0;top:calc(50% - 1px);width:7px;height:1px;background:inherit}
.v2 .trv-g i.end.el::after{top:auto;bottom:-1px}
.v2 .trv-g i.dn{top:50%}
/* a bar per span on the shared axis: faint lines mark the ticks */
.v2 .trv-b{position:relative;height:20px;background:linear-gradient(to right,var(--line) 1px,transparent 1px) 0 0/20% 100%}
/* a bar is laid out once at its full length; while it runs, --f (0 to 1) reveals it with a clip and moves its bright edge with a
   transform, so a streaming run repaints without laying the page out again */
.v2 .trv-b i{position:absolute;top:5px;height:10px;min-width:3px;border-radius:var(--r-tiny,3px);clip-path:inset(-6px calc((1 - var(--f,1)) * 100% - 2px) -6px -6px);background:var(--k);transition:background .3s,opacity .3s}
.v2 .trv-r.run:not([data-k="agent"]) .trv-b i::after{content:"";position:absolute;left:0;right:0;top:-2px;bottom:-2px;--e:var(--k);background:linear-gradient(to left,var(--e) 0 2px,transparent 2px);transform:translateX(calc(var(--f,1) * 100% - 100% + 1px))}
/* an agent span holds the others, so it is drawn as a bracket over the time they take */
.v2 .trv-r[data-k="agent"] .trv-b i,.v2 .trv-r.run[data-k="agent"] .trv-b i{top:9px;height:2px;border-radius:1px;background:var(--faint);animation:none}
.v2 .trv-r[data-k="agent"] .trv-b i::before,.v2 .trv-r[data-k="agent"] .trv-b i::after{content:"";position:absolute;top:-3px;width:2px;height:8px;border-radius:1px;background:var(--faint)}
.v2 .trv-r[data-k="agent"] .trv-b i::before{left:0}.v2 .trv-r[data-k="agent"] .trv-b i::after{right:0}
.v2 .trv-r.run[data-k="agent"] .trv-b i::after{background:var(--muted)}
/* over budget: amber, hatched */
.v2 .trv-r.slow .trv-b i,.v2 .trv-r.run.slow .trv-b i{background:repeating-linear-gradient(135deg,var(--warn-mark) 0 3px,color-mix(in srgb,var(--warn-mark) 55%,var(--surface)) 3px 6px)}
.v2 .trv-r.run.slow .trv-b i::after{--e:var(--warn-mark)}
.v2 .trv-r .trv-tk{font-size:12px;color:var(--muted)}
.v2 .trv-r .trv-ms{font-size:12.5px;color:var(--fg2)}
.v2 .trv-r.slow .trv-ms{color:var(--warn)}
/* the playhead: where the run is now, one line down every bar's track while it streams */
.v2 .trv-b::after,.v2 .trv-sc::after{content:"";position:absolute;left:0;right:0;top:-6px;bottom:-6px;background:linear-gradient(90deg,var(--accent-mark,var(--accent)) 0 1px,transparent 1px);transform:translateX(calc(var(--now,0) * 100% - .5px));opacity:0;transition:opacity .4s;pointer-events:none}
.v2 .trv-sc::after{top:12px;bottom:-6px}
.v2 .trv.live .trv-b::after,.v2 .trv.live .trv-sc::after{opacity:.75}
/* an open span's details, at the card's foot on the same columns: its mark under the head's, its words on the names'
   column, its close button's glyph on the Time column */
.v2 .trv-dt{margin:0 -16px}
.v2 .trv-dc{display:flex;flex-direction:column;gap:12px;padding:10px 16px 16px 60px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .trv-dh{position:relative;display:flex;align-items:center;gap:var(--s-2);min-width:0;min-height:28px;font-size:13px}
.v2 .trv-dh>.trv-k{position:absolute;left:-37px;top:5px}
.v2 .trv-dh b{min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .trv-dh .ib{width:28px;height:28px;margin:0 0 0 auto}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .trv :is(.ib,.pill):active,:root[data-style="studio"] .v2 .trv .ib:active{transform:none}
/* where the open span sat in the run */
.v2 .trv-pos{position:relative;height:6px;border-radius:var(--r-tiny,3px);background:var(--line)}
.v2 .trv-pos i{position:absolute;top:0;bottom:0;min-width:3px;border-radius:var(--r-tiny,3px);background:var(--k);transition:width .25s linear}
.v2 .trv-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s-2)}
.v2 .trv-kv div{display:flex;flex-direction:column;min-width:0}
.v2 .trv-kv span{font-size:12px;color:var(--muted)}
.v2 .trv-kv b{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .trv-io{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 10px;font-size:12px;color:var(--muted)}
.v2 .trv-io code{font-family:var(--mono);font-size:12px;color:var(--fg2);background:var(--chip-fill);padding:5px var(--s-3);border-radius:var(--r-sm);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .trv-r.run:not(.slow):not([data-k="agent"]) .trv-b i{background:repeating-linear-gradient(90deg,var(--k) 0 4px,color-mix(in srgb,var(--k) 55%,var(--surface)) 4px 6px);animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .trv-r.run:not([data-k="agent"]) .trv-b i::after{filter:none;background:linear-gradient(to left,var(--e) 0 1px,transparent 1px);transform:translateX(calc(var(--f,1) * 100% - 100%))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .trv-g i,:root:not([data-style="soft"],[data-style="studio"]) .v2 .trv-g i.el::after{background:var(--faint)}
/* narrow: the names keep their room. Tokens move into each span's details, the slow tag leaves the amber bar and time to
   say it (the time keeps its tooltip), the tree draws closer, and the details give the start its own line. The head's mark
   keeps its 32px tile, so each span's mark stays centred under it, with the words 8px after it; the same columns
   run down the card, and the time axis is a little shorter */
@container (max-width:330px){
  .v2 .trv-ax,.v2 .trv-r{grid-template-columns:minmax(0,1fr) 60px 44px}.v2 .trv-tk,.v2 .trv-n .tag{display:none}.v2 .trv-g{display:none}.v2 .trv-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v2 .trv-h,.v2 .trv-nums{gap:8px}.v2 .trv-tt{margin-right:0}
  .v2 .trv-lg,.v2 .trv-ax>span:first-child{padding-left:40px}
  .v2 .trv-n{gap:15px;padding-left:calc(7px + var(--lv,0) * 10px)}
  .v2 .trv-dc{padding-left:56px}.v2 .trv-dh>.trv-k{left:-33px}
}
/* Studio (owner, 18 Nov): the marks beside the names are one neutral grey, as file types are, and the head's has a hairline
   like them; running bars are flat, with no bright edge; an open span's details are an off-white foot strip, edge to edge, its close button 16px from the strip's top (owner, 23 Nov) and on
   the 16px column */
:root[data-style="studio"] .v2 .trv-hi{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .trv-r{transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .trv-r[aria-expanded="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .trv-k{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .trv-r.run:not([data-k="agent"]) .trv-b i::after{display:none}
:root[data-style="studio"] .v2 .trv-dc{padding-top:var(--strip-y);background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .trv-io code{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair)}
/* ---------- Run cost ---------- */
/* the card's content sits 16px in from every edge (owner, 18 Nov); nothing in it grows or shrinks when it is pressed */
.v2 .rc{padding:var(--s-4)}
.v2 .rc :is(.pill,.ib):active{transform:none}
.v2 .rc-h{display:flex;align-items:center;justify-content:space-between;font-size:12.5px}
.v2 .rc-st{transition:background .3s,color .3s}
/* the status dot is a mark: paused at the cap it takes the bright orange of the bar, while the words keep the darker text orange */
.v2 .rc-st.warn .dot{background:var(--warn-mark)}
.v2 .rc-big{margin-top:6px;font-size:13px}
.v2 .rc-n{font-size:14px;font-weight:500;letter-spacing:-.8px}
/* the track is the neutral rail; the fill is the accent's mark colour, and the warning mark at the cap */
.v2 .rc-track{position:relative;height:6px;border-radius:var(--r-xs);background:var(--rail);margin:14px 0 var(--s-4)}
.v2 .rc-fill{height:100%;width:0;border-radius:var(--r-xs);background:var(--accent-mark,var(--accent));transition:background .4s}
.v2 .rc-cap{position:absolute;left:90%;top:-5px;bottom:-5px;width:2px;border-radius:1px;background:var(--fg2);transition:opacity .3s}
.v2 .rc-cap::before{content:"";position:absolute;inset:-6px -8px}
.v2 .rc-rows{display:flex;flex-direction:column;gap:2px}
.v2 .rc-rows div{display:flex;justify-content:space-between;padding:5px 0;font-size:13px;line-height:18px;color:var(--fg2)}
.v2 .rc-rows .num{color:var(--fg)}
.v2 .rc-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:var(--s-3);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .rc-cap-t{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--fg2);cursor:pointer}
.v2 .rc-go{overflow:hidden;justify-content:flex-start}
/* Studio (owner, 17 and 18 Nov): a round card with its hairline, its content 16px in from every edge; the status chip in its
   status colours; a 6px grey rail with the accent fill (the warning mark at the cap) and an ink budget line. The rows are
   plain text (nothing to press, so no hover fill). The foot strip holds the controls 16px from the card's edges and its hairline (owner, 23 Nov): the cap's
   switch is a quiet control whose switch sits on the content's 16px edge, its hover round it, and the button a 28px pill,
   concentric with the card's corner */
:root[data-style="studio"] .v2 .rc{padding:16px 16px 0}
:root[data-style="studio"] .v2 .rc-h{font-size:12.5px}
:root[data-style="studio"] .v2 .rc-big .muted{font-size:13px}
:root[data-style="studio"] .v2 .rc-track{height:6px;border-radius:var(--r-tiny,3px);background:var(--rail);margin:12px 0 10px}
:root[data-style="studio"] .v2 .rc-fill{border-radius:var(--r-tiny,3px)}
:root[data-style="studio"] .v2 .rc-cap{background:var(--fg)}
:root[data-style="studio"] .v2 .rc-f{margin:11px -16px 0;padding:var(--strip-y) 16px;border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .rc-cap-t{height:28px;padding:0 10px 0 8px;border-radius:var(--r-pill);gap:8px;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rc-cap-t:hover{background:var(--row);color:var(--fg)}}
/* (owner, 22 Nov: "foot buttons aligned") the switch itself sits on the content's 16px column, where Credits used starts, its
   hover pill reaching 8px out round it */
:root[data-style="studio"] .v2 .rc-cap-t{margin-left:-8px}
/* the running chip is the accent's tint with its words in the accent's text colour: blue in light mode, white in dark (owner,
   22 Nov: Studio dark's accents are white) */
:root[data-style="studio"] .v2 .rc-st.b{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
:root[data-style="studio"] .v2 .rc-go{transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .rc-cap-t{transition:none}}
/* ---------- Toast ---------- */
/* the Job toast (owner, 26 Nov, from the toast lab's 2a): a job the agent runs in the background lives in one toast from start
   to finish. Its glyph is the news (a hand of slides, dealt as each one is drafted), its states change in place (working, a
   problem with its fix, done), its steps open inside it, and Close drains a visible countdown. Plain toasts (a success or an
   error with one action) are the same card: a status mark where the glyph goes, the words, Close, and the action in the
   footer. It grows out of the button that started it, sits where its host puts it (centred in the stage here) and moves
   with the library's own motion */
.v2 .tst{position:relative}
/* the toast on its way out and the one coming in share one cell, so each keeps its full width while they cross; the cell is
   as tall as its toast and keeps no room when there is none */
.v2 .tst-slot{position:relative;width:100%;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:center}
.v2 .tst-slot>:is(.tst-t,.tst-make){grid-area:1/1}
/* the button that starts the job sits where its toast will: the toast grows out of it and, once closed, goes back into it */
.v2 .tst-make.under{visibility:hidden}
/* the card: up to 380px, the full width less its host's 16px gutters on a phone. Hover fills are a quiet 5% of the text
   colour so they show on the white card. Its hairlines are 10% of the text colour, as the lab set them: half of --line doesn't
   show on Blueprint's dark raised grey */
.v2 .tst-t{width:100%;max-width:380px;box-sizing:border-box;background:var(--raised);border-radius:var(--r-card);box-shadow:var(--shadow-pop);--row:color-mix(in srgb,var(--fg) 5%,transparent);--tst-div:color-mix(in srgb,var(--fg) 10%,transparent);overflow:clip;position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.v2 .tst-t[hidden]{display:none}
/* (it grows with what it holds, grow(); its corners clip what is inside them exactly). The card's own height carries the motion,
   so its steps and its footer open and shut at once and only fade: two eased heights on top of each other would leave the
   card's edge trailing behind them */
.v2 .tst-t.growing{overflow-clip-margin:0px}
.v2 .tst-t .fold{transition:opacity var(--t-fast) var(--ease)}
.v2 .tst-t .fold.shut{transition:opacity var(--t-fast) var(--ease),visibility 0s var(--t-fast)}
/* the head: the glyph, the words, then the toast's own buttons, all on one centre line, 16px in from every edge */
.v2 .tst-hd{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-4)}
.v2 .tst-tx{flex:1;min-width:0}
.v2 .tst-ti{display:block;width:fit-content;max-width:100%;font-size:13px;font-weight:500;line-height:18px}
/* the line under the title wraps on a narrow toast rather than cutting off its news ("The sheet says 41k, not 14k") */
.v2 .tst-de{display:block;font-size:12px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
/* its icon buttons fill on hover, so they are measured by their box (ui-qa-gate, "boxes that fill"): Close's box, and the
   countdown ring drawn on it, end on the content's right edge, 16px in, where the footer's buttons end */
.v2 .tst-hb{display:flex;align-items:center;gap:var(--s-1);flex:none}
.v2 .tst-hb .ib{width:28px;height:28px;position:relative}
.v2 .tst-hb .ib[hidden]{display:none}
.v2 .tst-more .i{transition:transform var(--t) var(--ease)}
.v2 .tst-more[aria-expanded="true"] .i{transform:rotate(180deg)}
/* a plain toast's status mark sits where the glyph goes: the vivid green tick, the red alert, the warning sign in the bright
   orange (its words stay in the text colour and its fix is .pill.warn, as the warning notices have them), a grey info mark or a spinner,
   with no disc behind it, so a toast carries two hues at most */
.v2 .tst-g{flex:none;width:20px;height:20px;display:grid;place-items:center;color:var(--fg2)}
.v2 .tst-g .i{width:20px;height:20px}
.v2 .tst-g .spin{width:14px;height:14px;color:var(--accent-mark)}
.v2 .tst-g[data-s="success"]{color:var(--ok-mark)}
.v2 .tst-g[data-s="error"]{color:var(--bad-mark)}
.v2 .tst-g[data-s="warning"]{color:var(--warn-mark)}
.v2 .tst-g[data-s="stopped"]{color:var(--muted)}
/* the countdown you can see: a ring round Close that drains; the pointer or the focus on the toast holds it */
.v2 .tst-ring{position:absolute;inset:0;width:28px;height:28px;pointer-events:none;fill:none}
.v2 .tst-ring rect{rx:13.25px;ry:13.25px;stroke-width:1.5}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tst-ring rect{rx:0;ry:0}
.v2 .tst-ring .tst-tk{stroke:color-mix(in srgb,var(--line) 70%,transparent)}
.v2 .tst-ring .tst-rn{stroke:var(--muted);stroke-dasharray:100 100;stroke-linecap:round}
.v2 .tst-ring[hidden]{display:none}
/* the steps, opened from the chevron, under a hairline: each step's mark sits centred in the glyph's column and its words
   start where the title's words do; a step's count is the same size as its words, so the two share a baseline */
/* (12px round the 28px rows puts the first and last step's words 16px and more from the hairline and the card's edge) */
.v2 .tst-st{list-style:none;margin:0;padding:var(--s-3) 0;border-top:1px solid var(--tst-div)}
.v2 .tst-st li{display:grid;grid-template-columns:var(--tst-gw,64px) minmax(0,1fr) auto;column-gap:var(--s-3);align-items:center;height:28px;padding:0 var(--s-4);font-size:12.5px;line-height:18px;color:var(--fg2)}
.v2 .tst-st .tst-lb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .tst-st .tst-mk{justify-self:center;width:16px;height:16px;display:grid;place-items:center}
.v2 .tst-st .tst-mk .i{width:16px;height:16px}
.v2 .tst-st .tst-mk .spin{width:12px;height:12px}
.v2 .tst-st .tst-vl{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.v2 .tst-st li[data-s="done"] .tst-mk{color:var(--ok-mark)}
.v2 .tst-st li[data-s="done"] .tst-mk .i{stroke-width:2}
.v2 .tst-st li[data-s="now"]{color:var(--fg)}
.v2 .tst-st li[data-s="now"] .tst-mk{color:var(--accent-mark)}
.v2 .tst-st li[data-s="bad"]{color:var(--fg)}
.v2 .tst-st li[data-s="bad"] .tst-mk{color:var(--bad-mark)}
.v2 .tst-st li[data-s="paused"] .tst-mk{color:var(--muted)}
.v2 .tst-st li[data-s="wait"]{color:var(--muted)}
.v2 .tst-st .tst-pend{width:8px;height:8px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-strong)}
/* the footer: the actions under a hairline, on the right, 16px from the hairline, the card's bottom and its side */
.v2 .tst-fi{display:flex;align-items:center;justify-content:flex-end;gap:var(--s-2);padding:var(--s-4);border-top:1px solid var(--tst-div)}
.v2 .tst-fi .pill{min-width:0}
.v2 .tst-fi .pill.in{animation:v2-tstbtn var(--t) var(--ease) backwards}
@keyframes v2-tstbtn{from{opacity:0;transform:translateY(4px)}}
/* the box the toast grows out of: the button that started it, easing to where the toast sits and opening into it */
.v2 .tst-fly{position:absolute;z-index:3;background:var(--raised);box-shadow:var(--shadow-pop);pointer-events:none}
.v2 .tst-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.v2 .tst-make .i{width:14px;height:14px}
/* coming in without a button to grow from, and going: the library's own entrance for each style */
.v2 .tst-in{animation:v2-tstin var(--t-slow) var(--ease) backwards}
@keyframes v2-tstin{from{opacity:0;transform:translateY(14px) scale(.97);filter:blur(5px)}}
.v2 .tst-out{animation:v2-tstout var(--t) var(--ease) both;pointer-events:none}
@keyframes v2-tstout{to{opacity:0;transform:translateY(8px) scale(.98);filter:blur(4px)}}

/* the glyph: a hand of slides, dealt as each one is drafted */
.v2 .tst-dk{flex:none;width:64px;height:40px;display:block}
.v2 .tst-dk svg{width:64px;height:40px;display:block;overflow:visible}
/* the notes being read: a page with a line sweeping down it */
.v2 .tst-dk .tst-pg{transform-box:view-box;transform-origin:32px 24px;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
.v2 .tst-dk .tst-pp{fill:var(--raised);stroke:var(--muted);stroke-width:1.2}
.v2 .tst-dk .tst-pl{stroke:var(--faint);stroke-width:1.4;stroke-linecap:round}
.v2 .tst-dk .tst-sc{stroke:var(--accent-mark);stroke-width:1.6;stroke-linecap:round;opacity:0}
.v2 .tst-dk.read .tst-sc{opacity:1;animation:v2-tstscan 1s var(--ease-io) infinite alternate}
@keyframes v2-tstscan{to{transform:translateY(13px)}}
.v2 .tst-dk:not(.read,.idle,.gone) .tst-pg{opacity:0;transform:scale(.6) translateY(10px)}
/* the cards: an outline of dashed slots once the deck is planned; each slide dealt into its slot as it is drafted, the one being
   drafted in the accent and in front; red where the check stopped */
.v2 .tst-dk .tst-cd{transform-box:view-box;transform-origin:32px 56px;transform:scale(.7);opacity:0;transition:transform var(--t) var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .tst-dk .tst-cd .tst-b{fill:var(--raised);stroke:var(--faint);stroke-width:1.2;transition:fill var(--t-fast) var(--ease),stroke var(--t-fast) var(--ease)}
.v2 .tst-dk .tst-cd .tst-l{fill:none;stroke:var(--faint);stroke-width:1.3;stroke-linecap:round;stroke-dasharray:8 8;stroke-dashoffset:8;transition:stroke-dashoffset var(--t) var(--ease),stroke var(--t-fast) var(--ease)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tst-dk :is(.tst-cd .tst-b,.tst-pp){rx:0}
.v2 .tst-dk .tst-gh .tst-b{stroke:color-mix(in srgb,var(--muted) 38%,var(--raised));stroke-dasharray:2 1.6}
.v2 .tst-dk .tst-gh .tst-l{display:none}
.v2 .tst-dk.plan .tst-gh{opacity:1;transform:rotate(var(--a));transition-delay:calc(var(--i) * 36ms)}
.v2 .tst-dk .tst-cd:is(.made,.now,.chk,.bad){opacity:1;transform:rotate(var(--a))}
.v2 .tst-dk .tst-cd.made .tst-b{stroke:var(--fg2)}
.v2 .tst-dk .tst-cd.made .tst-l{stroke-dashoffset:0;stroke:color-mix(in srgb,var(--muted) 70%,var(--raised))}
.v2 .tst-dk .tst-cd.now{transform:rotate(var(--a)) translateY(-3px)}
.v2 .tst-dk .tst-cd:is(.now,.chk) .tst-b{stroke:var(--accent-mark);fill:color-mix(in srgb,var(--accent-mark) 10%,var(--raised))}
.v2 .tst-dk .tst-cd.now .tst-b{stroke-width:1.5}
.v2 .tst-dk .tst-cd.now .tst-l{stroke:var(--accent-mark);stroke-dashoffset:0}
.v2 .tst-dk .tst-cd.chk{transform:rotate(var(--a)) translateY(-2px)}
.v2 .tst-dk .tst-cd.bad{transform:rotate(var(--a)) translateY(-4px)}
.v2 .tst-dk .tst-cd.bad .tst-b{fill:var(--bad-mark);stroke:var(--bad-mark)}
.v2 .tst-dk .tst-cd.bad .tst-l{stroke:#fff;stroke-dashoffset:0}
/* done: the hand closes into a neat deck and the green tick lands in front of it */
.v2 .tst-dk.done .tst-gh{opacity:0;transition-delay:0s}
.v2 .tst-dk.done .tst-cd:not(.tst-gh){transform:rotate(calc(var(--a) * .16)) translateY(3px)}
.v2 .tst-dk .tst-ok{transform-box:fill-box;transform-origin:center;transform:scale(0);opacity:0;transition:transform var(--t) var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .tst-dk .tst-ok circle{fill:var(--ok-mark);stroke:var(--raised);stroke-width:2}
.v2 .tst-dk .tst-ok path{fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.v2 .tst-dk.done .tst-ok{transform:none;opacity:1;transition-delay:.2s}
/* gone (undone or discarded): the cards fold back to where they came from, and the notes they were made from are back */
.v2 .tst-dk.gone .tst-cd{opacity:0;transform:scale(.6);transition-delay:0s}
/* reduced motion: things only fade; moves and turns happen at once */
@media (prefers-reduced-motion:reduce){
  .v2 .tst-dk *,.v2 .tst-more .i{transition-property:opacity!important;transition-delay:0s!important}
  .v2 .tst-dk .tst-sc{animation:none}
}
@keyframes v2-tstfade{from{opacity:0}}
@keyframes v2-tstfadeo{to{opacity:0}}

/* Studio: the card's ordinary round corners (16px), the footer an off-white strip with its buttons 16px from its hairline, the
   card's bottom and its side; the ink primary and the flat secondary are Studio's own. It rises 8px from .98 and leaves with a
   fade, with no blur */
:root[data-style="studio"] .v2 .tst-t{border-radius:calc(12px * var(--rk-l,var(--rk)))}
:root[data-style="studio"] .v2 .tst-st{border-top-color:var(--line)}
:root[data-style="studio"] .v2 .tst-fi{padding:var(--strip-y) var(--s-4);background:var(--strip);border-top-color:var(--line)}
:root[data-style="studio"] .v2 .tst-in{animation-name:v2-clcard}
@keyframes v2-tstoutc{to{opacity:0;transform:translateY(6px) scale(.98)}}
:root[data-style="studio"] .v2 .tst-out{animation-name:v2-tstoutc;animation-duration:var(--t-fast)}
/* Blueprint wipes in and goes in a short hard beat */
@keyframes v2-tstinb{from{opacity:0;clip-path:inset(0 0 100% 0)}35%{opacity:1}to{clip-path:inset(0 0 0 0)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tst-in{animation-name:v2-tstinb}
@keyframes v2-tstoutb{to{opacity:0;transform:translateY(4px)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tst-out{animation-name:v2-tstoutb;animation-duration:var(--t-fast)}
/* reduced motion: it only fades in and out, in every style (after the styles' own, which it outranks or ties) */
@media (prefers-reduced-motion:reduce){.v2 .tst-slot .tst-t.tst-in,.v2 .tst-fi .pill.in{animation-name:v2-tstfade}.v2 .tst-slot .tst-t.tst-out{animation-name:v2-tstfadeo}}
/* ---------- Toast stack ---------- */
/* each toast in the stack is a Toast card (owner, 26 Nov: "Let's launch toast stack and toasts as launch components too"): the
   same head, steps and footer, Close with its countdown ring, swipe and Escape, in each style's own corners, dividers and
   shadow (Toast's section, which its installs carry too). The stack only places them. Collapsed, the cards behind the front one
   take its height and peek out 8px above it, a step narrower each; under the pointer or the focus they fan out into a list, each
   at its own height, 8px apart. The stack is as tall as what it shows (--tsk-h, set as cards come, go and change height), so it
   stays centred in its stage as it grows and shrinks; the cards and the stack move together on the motion pieces' spring */
.v2 .tsk-stack{--tsk-mv:calc(var(--t-in) * 1.4) var(--ease-spring);position:relative;width:100%;max-width:380px;height:var(--tsk-h,0px);transition:height var(--tsk-mv)}
.v2 .tsk-stack>.tst-t{position:absolute;left:0;right:0;bottom:0;max-width:none;transform-origin:50% 0;transition:transform var(--tsk-mv),height var(--tsk-mv),opacity var(--t-fast) var(--ease),filter var(--t-fast) var(--ease)}
/* a card arriving rises from 16px below out of a short blur (none in Blueprint and Studio); the cards behind it step back */
.v2 .tsk-stack>.tst-t.tsk-new{transform:translateY(16px) scale(.97);opacity:0;filter:blur(var(--blur-in));transition:none}
/* a card behind the front one in the deck shows only its edge: its words fade at once, so they never read through the card
   that covers them, and come back as the stack fans out */
.v2 .tsk-stack>.tst-t>*{transition:opacity var(--t-fast) var(--ease)}
.v2 .tsk-stack>.tst-t.tsk-back>*{opacity:0}
/* going: Close, its countdown or Escape fades it 8px down as the rest close the gap; a swipe carries it on sideways */
.v2 .tsk-stack>.tst-t.tsk-out{pointer-events:none}
@media (prefers-reduced-motion:reduce){.v2 .tsk-stack,.v2 .tsk-stack>.tst-t{transition-property:opacity}}
/* ---------- Pricing cards ---------- */
.v2 .pcx{display:flex;flex-direction:column;gap:14px;width:100%}
.v2 .pcx-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);flex-wrap:wrap}
.v2 .pcx-per button{font-size:12.5px;height:30px;padding:0 var(--s-3);display:inline-flex;align-items:center;gap:6px}
.v2 .pcx-per .tag{height:18px;font-size:10.5px;padding:0 5px}
.v2 .pcx-seats{display:flex;align-items:center;gap:10px;font-size:12.5px}
.v2 .pcx-seats input{width:150px;accent-color:var(--accent)}
.v2 .pcx-seats b{width:22px;font-weight:500}
.v2 .pcx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-3)}
@media (max-width:760px){.v2 .pcx-grid{grid-template-columns:1fr}}
.v2 .pcx-c{padding:18px;display:flex;flex-direction:column;gap:var(--s-3);transition:transform .45s var(--ease),box-shadow .3s;position:relative}
@media (hover:hover) and (pointer:fine){.v2 .pcx-c:hover{box-shadow:var(--shadow-pop)}}
.v2 .pcx-c.hot{box-shadow:0 0 0 1.5px var(--accent-mark,var(--accent)),var(--shadow)}
@media (hover:hover) and (pointer:fine){.v2 .pcx-c.hot:hover{box-shadow:0 0 0 1.5px var(--accent-mark,var(--accent)),var(--shadow-pop)}}
.v2 .pcx-c .bd{position:absolute;top:16px;right:16px}
.v2 .pcx-c .nm{font-size:14px;font-weight:500}
.v2 .pcx-c .ds{font-size:12.5px;color:var(--muted);margin-top:-8px}
.v2 .pcx-pr{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.v2 .pcx-pr b{font-size:14px;font-weight:500;letter-spacing:-.02em}
.v2 .pcx-pr span{flex-basis:100%;min-height:18px;font-size:12px;color:var(--muted)}
.v2 .pcx-pr s{font-size:13px;color:var(--muted)}
.v2 .pcx-tot{font-size:12px;color:var(--fg2);min-height:16px}
.v2 .pcx-li{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--fg2);margin:var(--s-1) 0}
.v2 .pcx-li span{display:flex;align-items:center;gap:var(--s-2)}
.v2 .pcx-li svg{color:var(--accent-fg,var(--accent));flex:none}
.v2 .pcx-c .pill{width:100%;height:38px;margin-top:auto}
/* only the recommended plan's button is the accent; the others are white with a grey outline */
.v2 .pcx-c .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .pcx-c .pill.line:hover{background:var(--wash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .pcx-c.panel{padding:18px 20px 20px 20px}
/* ---------- Stepper ---------- */
/* the agent walks you through setup in the chat: no container; with .panel it becomes a card */
.v2 .stx{padding:var(--s-4) 0;display:flex;flex-direction:column;gap:var(--s-4)}
.v2 .stx.panel{padding:var(--s-4)}
.v2 .stx-track{display:flex;align-items:center;gap:0}
.v2 .stx-st{display:flex;align-items:center;gap:var(--s-2);font-size:12.5px;color:var(--muted);white-space:nowrap;transition:color .3s}
.v2 .stx-st .n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:500;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--line) 50%,transparent);color:var(--muted);transition:background .35s var(--ease),box-shadow .35s,color .35s;flex:none}
.v2 .stx-st.on{color:var(--fg)}
.v2 .stx-st.on .n{box-shadow:inset 0 0 0 1.5px var(--accent-mark,var(--accent)),0 0 0 4px var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .stx-st.done{color:var(--fg2);cursor:pointer}
.v2 .stx-st.done .n{background:var(--accent);box-shadow:none;color:var(--on-accent,#fff)}
.v2 .stx-ln{flex:1;height:2px;margin:0 10px;border-radius:1px;background:var(--line);position:relative;overflow:hidden;min-width:16px}
.v2 .stx-ln i{position:absolute;inset:0;background:var(--accent-mark,var(--accent));transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.v2 .stx-ln.full i{transform:none}
@media (max-width:520px){.v2 .stx-st .lb{display:none}.v2 .stx-st.on .lb{display:inline}}
/* each step sits in the middle, the same distance from the track above and the buttons below */
.v2 .stx-vp{overflow-x:clip;overflow-y:visible;min-height:150px;display:flex;flex-direction:column;justify-content:center}
.v2 .stx-body{display:flex;flex-direction:column;gap:10px}
.v2 .stx-body.inr{animation:v2-stxr .45s var(--ease) both}.v2 .stx-body.inl{animation:v2-stxl .45s var(--ease) both}
@keyframes v2-stxr{from{opacity:0;transform:translateX(24px);filter:blur(4px)}}
@keyframes v2-stxl{from{opacity:0;transform:translateX(-24px);filter:blur(4px)}}
.v2 .stx-body h4{margin:0;font-size:14px;font-weight:500}
.v2 .stx-body p{margin:0;font-size:12.5px;color:var(--muted)}
.v2 .stx-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-2)}
@media (max-width:520px){.v2 .stx-opts{grid-template-columns:1fr}}
.v2 .stx-o{padding:var(--s-3);border-radius:var(--r-in);background:var(--chip);text-align:left;font-size:13px;display:flex;flex-direction:column;gap:var(--s-1);transition:background .2s,box-shadow .25s}
.v2 .stx-o span{font-size:11.5px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .stx-o:hover{background:var(--hover)}}
/* the options fill the sliding view, which would cut an outside ring: theirs is drawn inside */
.v2 .stx-o:focus-visible{outline-offset:-2px}
/* the options are grey tiles with no edge; the picked one turns white with a dimmed grey edge */
.v2 .stx-o.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),0 1px 2px rgba(0,0,0,.04)}
@media (hover:hover) and (pointer:fine){.v2 .stx-o.on:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),0 1px 2px rgba(0,0,0,.04)}}
.v2 .stx-f{display:flex;justify-content:space-between}
/* once it's done there is nothing to go back to: Start over sits alone in the middle */
.v2 .stx.fin .stx-f{justify-content:center}
.v2 .stx.fin .stx-bk{display:none}
/* finished: the track has done its job, so only the success shows, centred in the height the steps had */
.v2 .stx.fin .stx-track{display:none}
.v2 .stx.fin .stx-vp{min-height:0}.v2 .stx.fin .stx-dn{padding:0 0 var(--s-2)}
.v2 .stx-bk[disabled]{visibility:hidden}
.v2 .stx-dn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 0;text-align:center;font-size:13px}
.v2 .stx-dn>b{font-size:14px;font-weight:500}
/* finished: the check pops and draws itself, a soft ring spreads from it, and a little confetti bursts out once */
.v2 .stx-ok{position:relative;width:44px;height:44px;margin-bottom:6px}
.v2 .stx-ok svg{display:block;width:44px;height:44px;overflow:visible}
.v2 .stx-ok .c{fill:var(--accent-mark,var(--accent));transform-origin:center;transform-box:fill-box}
.v2 .stx-ok .k{fill:none;stroke:var(--on-accent,#fff);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24}
.v2 .stx-ok::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none}
.v2 .stx-dn.go .stx-ok .c{animation:v2-stxpop .6s var(--ease) both}
.v2 .stx-dn.go .stx-ok .k{animation:v2-stxdraw .42s var(--ease) .26s both}
.v2 .stx-dn.go .stx-ok::after{animation:v2-stxring 1.2s var(--ease) .18s}
@keyframes v2-stxpop{from{transform:scale(.3);opacity:0}60%{transform:scale(1.08);opacity:1}to{transform:none;opacity:1}}
@keyframes v2-stxdraw{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
@keyframes v2-stxring{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--fg) 16%,transparent)}to{box-shadow:0 0 0 20px color-mix(in srgb,var(--fg) 0%,transparent)}}
.v2 .stx-conf{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
.v2 .stx-conf i{position:absolute;left:0;top:0;border-radius:var(--r-tiny,2px);opacity:0}
.v2 .stx-conf i.d{border-radius:50%}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .stx.panel{padding:16px 20px 20px 20px}
/* ---------- Set limit ---------- */
.v2 .slx{padding:var(--s-4);display:flex;flex-direction:column;gap:14px;container:slx/inline-size}
/* the budget figure shares the title's line: the two sit on one baseline */
.v2 .slx-h{display:flex;align-items:first baseline;justify-content:space-between}
.v2 .slx-h>div{display:flex;flex-direction:column;font-size:14px}
.v2 .slx-h b{font-weight:500}
.v2 .slx-h .muted{font-size:12px}
/* the cap is labelled and reads as a field at rest (owner, 28 Nov): "Cap" in the muted text, then a small field with its $ in
   front, white with the dimmed field edge, which steps up one grey while you type. A cap you can't change is the figure alone */
.v2 .slx-cap{display:inline-flex;align-items:baseline;gap:var(--s-2)}
.v2 .slx-v{display:inline-flex;align-items:baseline;font-size:14px;font-weight:500!important;letter-spacing:-.02em;padding:3px var(--s-2);border-radius:var(--r-field);cursor:text;transition:box-shadow .2s var(--ease)}
.v2 .slx-v:has(input){background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent)}
.v2 .slx-v:has(input):focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .slx-v .cur{color:var(--muted);font-weight:400;margin-right:2px}
@supports (corner-shape:squircle){.v2 .slx-v{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .slx-in{width:3ch;min-width:1ch;padding:0;margin:0;border:0;background:none;font:inherit;font-variant-numeric:tabular-nums;letter-spacing:inherit;color:inherit;text-align:right;outline:none;caret-color:var(--accent-fg,var(--accent))}
/* the bar, with the same room above and below its knob. The cap it sets is the figure in the head, so the knob carries no
   amount of its own over it */
.v2 .slx-bar{position:relative;height:12px;border-radius:calc(6px * var(--rk-s,var(--rk)));background:var(--chip);margin:var(--s-2) 0;touch-action:none;cursor:pointer}
.v2 .slx-used{position:absolute;left:0;top:0;bottom:0;border-radius:calc(6px * var(--rk-s,var(--rk)));background:var(--accent-mark,var(--accent));transition:width .8s var(--ease);z-index:1}
/* the forecast: stripes of the accent, and the legend's swatch is the same stripes */
.v2 .slx{--slx-hatch:repeating-linear-gradient(-45deg,color-mix(in srgb,var(--accent-mark,var(--accent)) 45%,transparent) 0 3px,color-mix(in srgb,var(--accent-mark,var(--accent)) 18%,transparent) 3px 6px)}
.v2 .slx-fc{position:absolute;left:0;top:0;bottom:0;border-radius:calc(6px * var(--rk-s,var(--rk)));background:var(--slx-hatch);transition:width .8s var(--ease)}
/* the knob: ink, with a quiet grey ring while it is pointed at or dragged (a highlight is never a coloured glow) */
.v2 .slx-k{position:absolute;top:50%;width:6px;height:26px;margin:-13px 0 0 -3px;border-radius:var(--r-pill);background:var(--fg);z-index:2;cursor:grab;transition:box-shadow var(--t-fast) var(--ease)}
.v2 .slx-k.drag{box-shadow:0 0 0 4px color-mix(in srgb,var(--fg) 12%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .slx-k:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--fg) 12%,transparent)}}
.v2 .slx-k.drag{cursor:grabbing}
.v2 .slx-lg{display:flex;gap:var(--s-4);font-size:12px}
.v2 .slx-lg span{display:flex;align-items:center;gap:6px}
.v2 .slx-lg b{color:var(--fg);font-weight:500}
.v2 .slx-lg i{width:8px;height:8px;border-radius:var(--r-tiny,3px)}
.v2 .slx-lg i.fc{background:var(--slx-hatch)}
/* the line under the bar. On track: a neutral line with the green tick. Over: a warning notice (owner, 18 Nov), a faint
   warning tint as wide as the content, the filled warning sign in the warning mark, and the words in the text colour */
.v2 .slx-warn{font-size:12.5px;line-height:18px;min-height:18px}
.v2 .slx-warn .o{display:flex;align-items:center;gap:var(--s-2);color:var(--fg2)}
.v2 .slx-warn .o svg{flex:none;color:var(--ok-mark)}
.v2 .slx-warn .w{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:var(--s-2);padding:var(--s-2) 10px;text-wrap:pretty;border-radius:var(--r-in);background:color-mix(in srgb,var(--warn-bg) 45%,transparent);color:var(--fg)}
.v2 .slx-wi{width:16px;height:16px;margin-top:1px;overflow:visible}
.v2 .slx-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .slx-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
/* what happens at the cap is one switch row in the foot (owner, 28 Nov): its words on the content's left edge and the library's
   switch ending on its right edge, on by default. The foot sits under a hairline (Soft, Blueprint); Studio gives it a foot strip */
.v2 .slx-ft{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);font-size:13px;line-height:20px;color:var(--fg);cursor:pointer}
.v2 .slx-ft{border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);padding-top:var(--s-4)}
:root[data-style="studio"] .v2 .slx-ft{margin:0 calc(-1*var(--s-4)) calc(-1*var(--s-4));padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .slx-warn .w{border-radius:0}
/* Studio (owner, 17 and 20 Nov): its content 16px from each edge; the bar has Studio's soft inner shadow, as Slider's rail does */
:root[data-style="studio"] .v2 .slx.panel{padding:16px}
:root[data-style="studio"] .v2 .slx-bar{box-shadow:var(--track-ring)}
/* ---------- Currency converter ---------- */
.v2 .ccx{padding:var(--s-4);display:flex;flex-direction:column;gap:6px;max-width:340px;margin:0 auto;width:100%;position:relative}
.v2 .ccx-row{display:flex;align-items:center;gap:var(--s-2);padding:10px 10px 10px 14px;border-radius:var(--r-box);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ccx-row{corner-shape:squircle;border-radius:var(--r-box-sq)}}
/* the row's edge steps up while its amount field has the focus; its currency button rings on its own */
.v2 .ccx-row:has(.ccx-a:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* room between the label and the amount */
.v2 .ccx-in{flex:1;display:flex;flex-direction:column;gap:var(--s-2);min-width:0;font-size:11.5px}
.v2 .ccx-a,.v2 .ccx-b{border:0;outline:0;background:transparent;font:inherit;font-size:14px;font-weight:500;letter-spacing:-.02em;color:var(--fg);padding:0;width:100%;min-width:0}
.v2 .ccx-cur{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--chip);font-size:13px;font-weight:500}
.v2 .ccx-cur .cd{font-size:12px}
.v2 .ccx-sw{align-self:center;width:32px;height:32px;margin:-16px 0;z-index:1;border-radius:50%;background:var(--surface);box-shadow:var(--shadow),0 0 0 4px var(--surface);display:grid;place-items:center;color:var(--fg2);transition:transform .5s var(--ease),color .2s}
@media (hover:hover) and (pointer:fine){.v2 .ccx-sw:hover{color:var(--fg)}}
.v2 .ccx-sw.go{transform:rotate(180deg)}
.v2 .ccx-rate{font-size:12px;text-align:center;margin-top:var(--s-1);display:flex;align-items:center;justify-content:center;gap:6px}
.v2 .ccx-rate .dot{color:var(--ok);animation:v2-ccpulse 2s ease-in-out infinite}
@keyframes v2-ccpulse{50%{opacity:.4}}
.v2 .ccx .pop{min-width:180px}
/* a list opens downwards, and fades in a beat after the converter starts to glide up to make room for it */
.v2 .ccx.glide>.pop.open{transition-delay:.08s}
.v2 .ccx .mi .cd{font-size:11.5px;color:var(--muted);width:32px}
/* each currency's flag, a small disc in front of its code, with a hairline edge so its white parts hold */
.v2 .ccx-fl{display:grid;place-items:center;flex:none}
.v2 .ccx-fl .flag{width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .ccx.panel{padding:9px 10px 18px 6px}
/* ---------- Parallel agents ---------- */
/* each agent has its own hue (--c, with its tint --cb): its badge, its track, its tag and its stretch of the relay line that
   joins the badges. A hand-off sends a light down that line from one agent to the next, and the stretch it crossed stays lit */
/* the card's content, the head and the lanes, sits 16px in from every edge: each lane's badge starts and its tag ends on the
   head's 16px column, and a lane's hover fill reaches 8px out round it, into the padding (owner, 26 Nov) */
/* (the lanes' own 12px above and below their content take the place of the card's bottom padding, so the last lane's words
   and badge end 16px from the card's bottom edge, as the head starts 16px from its top) */
.v2 .aln{padding:var(--s-4) var(--s-4) var(--s-1)}
/* the lanes' marks (tracks, lines, a finished badge) in livelier versions of the agents' hues, each 3:1 on the surface; their
   text keeps the agent's text colour. Dark mode's agent colours are light already, so they are used as they are */
.v2 .aln{--aln-pb:#2a7bff;--aln-pm:#1daa51;--aln-pl:#7a5af5}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .aln{--aln-pb:var(--pb);--aln-pm:#4ade80;--aln-pl:var(--pl)}}
:root[data-theme="dark"] .v2 .aln{--aln-pb:var(--pb);--aln-pm:#4ade80;--aln-pl:var(--pl)}
/* on a card the lanes sit centred in the room kept for their tallest moment, and glide as a hand-off line opens and shuts */
.v2.stage-in:has(>.aln){display:flex;flex-direction:column;justify-content:center}
.v2 .aln-h{display:flex;align-items:center;gap:10px;padding:0 0 var(--s-2)}
.v2 .aln-ic{color:var(--fg2);display:grid;transition:color .3s}
.v2 .aln.fin .aln-ic{color:var(--ok)}
.v2 .aln-t{font-weight:500}
.v2 .aln-m{font-size:12.5px}
.v2 .aln-ct{font-size:12.5px;color:var(--muted);margin-right:auto;white-space:nowrap}
.v2 .aln-ct::before{content:"·";margin-right:6px}
/* the head's words (the title, its time and its step count) share one baseline, whatever their sizes; the row round them stays
   centred, so the icon and Pause all sit on the title's line (owner, 23 Nov: the 12.5px time sat 2px above the 14px title) */
.v2 .aln-tx{display:flex;align-items:baseline;gap:10px;margin-right:auto}
.v2 .aln-rows{position:relative;margin-inline:calc(-1 * var(--s-2))}
.v2 .aln-rows>*{position:relative}
.v2 .aln-lane{border-radius:calc(14px * var(--rk-l,var(--rk)));transition:background .3s}
/* the hover fills the lane's row, the button a person clicks; an open log below it stays clear */
.v2 .aln-row{border-radius:calc(14px * var(--rk-l,var(--rk)));transition:background .3s}
@media (hover:hover) and (pointer:fine){.v2 .aln-row:hover{background:var(--row)}}
/* the lane at work carries a wash of its hue from the left */
/* the agent at work gets no tinted band behind its row: its pulsing badge and the Working spinner say it is active (owner,
   18 Nov) */
/* the relay line runs from badge to badge, through the lanes and the hand-offs between them, and stops short of each badge */
.v2 .aln-rows>*::before{content:"";position:absolute;left:24px;width:2px;top:0;bottom:0;background:var(--line);pointer-events:none}
.v2 .aln-lane::before{top:50px}
/* (the last lane, whatever follows it in the list, like a hand-off's lit stroke, has no line under its badge) */
.v2 .aln-lane:not(:has(~ .aln-lane))::before{display:none}
.v2 .aln-lane::after{content:"";position:absolute;left:24px;width:2px;top:0;height:8px;background:var(--line);pointer-events:none}
.v2 .aln-lane:first-child::after{display:none}
/* a stretch that has carried a hand-off is drawn by its one lit stroke (.aln-pk, below), so the grey under it steps aside
   and the line from badge to badge stays a single clean line */
.v2 .aln-rows>.aln-lane.sent::before,.v2 .aln-rows>.aln-lane.got::after,.v2 .aln-rows>.aln-hf.lit::before{background:transparent}
.v2 .aln-row{display:grid;grid-template-columns:34px minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center;gap:var(--s-3);width:100%;padding:var(--s-3) var(--s-2);text-align:left}
.v2 .aln-av{position:relative;width:34px;height:34px;border-radius:calc(11px * var(--rk-l,var(--rk)));display:grid;place-items:center;color:var(--c);background:var(--cb);transition:color .4s,background .4s}
.v2 .aln-av::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.v2 .aln-lane[data-s="working"] .aln-av{animation:v2-alnbreathe 2.4s var(--ease-io) infinite}
@keyframes v2-alnbreathe{0%,100%{box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent),0 0 0 1px color-mix(in srgb,var(--fg) 0%,transparent)}50%{box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent),0 0 0 5px color-mix(in srgb,var(--fg) 6%,transparent)}}
/* the badge that takes a hand-off rings once as the light reaches it */
.v2 .aln-av.ping::before{animation:v2-alnping .9s var(--ease)}
@keyframes v2-alnping{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--fg) 20%,transparent)}to{box-shadow:0 0 0 12px color-mix(in srgb,var(--fg) 0%,transparent)}}
/* the badge at work is lifted onto the surface, with a hairline in its hue; its Working tag is a tint like every other status
   tag */
.v2 .aln-lane[data-s="working"] .aln-av{background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent)}
/* a finished agent's badge fills with its hue */
.v2 .aln-lane[data-s="done"] .aln-av{background:var(--cb);color:var(--c)}
.v2 .aln-who{min-width:0}
.v2 .aln-n{display:block;font-weight:500;font-size:13.5px}
.v2 .aln-a{display:block;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aln-a.live{color:var(--fg2)}
/* the track: one part a step. Finished parts are solid, the one in hand fills as the agent works, with a light running along it */
.v2 .aln-tr{display:flex;gap:3px}
.v2 .aln-tr i{flex:1;height:10px;border-radius:var(--r-tiny,5px);background:color-mix(in srgb,var(--cm) 16%,var(--surface));position:relative;overflow:hidden}
.v2 .aln-tr i::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--cm);transform:scaleX(var(--p,0));transform-origin:left;transition:transform .25s linear}
.v2 .aln-tr i.on::after{transform:scaleX(1);transition:transform .5s var(--ease)}
.v2 .aln-tr i.run::after{background:linear-gradient(90deg,var(--cm) 0 30%,color-mix(in srgb,var(--cm) 30%,var(--surface)) 50%,var(--cm) 70% 100%) 0 0/250% 100%;animation:v2-alnsheen 1.6s linear infinite}
/* given no step progress, the part in hand fills part way and keeps its light */
.v2 .aln-tr i.run.ind::after{transform:scaleX(.6);transition:transform 2.4s var(--ease)}
@keyframes v2-alnsheen{from{background-position:100% 0}to{background-position:-150% 0}}
.v2 .aln-st{min-width:92px;display:flex;justify-content:flex-end}
.v2 .aln-tg{background:var(--cb);color:var(--c)}
.v2 .aln-tg .spin{width:9px;height:9px}
/* (58px: the row's 12px, the 34px badge and the 12px gap, so the log starts under the agent's name) */
.v2 .aln-det{padding:0 var(--s-2) var(--s-3) 54px;font-size:12.5px;color:var(--fg2)}
.v2 .aln-det div{display:flex;align-items:center;gap:var(--s-2);padding:3px 0}
.v2 .aln-det div::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--c);flex:none}
.v2 .aln-det .muted{margin-left:auto}
/* a hand-off opens a line between the lanes, glides the lanes below down and closes again */
.v2 .aln-hf{transition-duration:var(--t-slow)}
.v2 .aln-hand{padding:6px var(--s-2) 6px 54px;font-size:12.5px;line-height:18px;color:var(--fg2)}
.v2 .aln-hand b{font-weight:500}
.v2 .aln-hand .f{color:var(--from)}.v2 .aln-hand .t{color:var(--to)}
/* the hand-off draws the relay line from the sender's badge down to the taker's, in the gap between them (it never passes
   over a badge): a stroke that fills from the sender's hue into the taker's, then stays as the lit stretch (owner, 4 Nov).
   It is one element from badge to badge that follows them as the lanes move, so there is never a second line under it */
.v2 .aln-rows>.aln-pk::before{display:none}
.v2 .aln-pk{position:absolute;left:24px;top:0;width:2px;background:linear-gradient(var(--from),var(--to));transform-origin:50% 0;pointer-events:none;z-index:2}
@media (max-width:600px){
  .v2 .aln-row{grid-template-columns:34px minmax(0,1fr) auto;row-gap:var(--s-2)}
  .v2 .aln-tr{grid-column:2 / -1;grid-row:2}
  .v2 .aln-lane::before{top:50px}
  .v2 .aln-ct{display:none}
  .v2 .aln-m{margin-right:auto}
}
@media (max-width:400px){.v2 .aln-ic{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-rows>*::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-lane::after{width:1px;left:24.5px;background:repeating-linear-gradient(var(--rail) 0 3px,transparent 3px 6px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-rows>.aln-lane.sent::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-rows>.aln-lane.got::after,:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-rows>.aln-hf.lit::before{background:transparent}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-lane[data-s="working"] .aln-av{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-av{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 35%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-lane[data-s="working"] .aln-av{animation:v2-alnbp 1.1s steps(1,end) infinite}
@keyframes v2-alnbp{0%,55%{box-shadow:inset 0 0 0 1px var(--c)}56%,100%{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 35%,transparent)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-tr i{height:8px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-tr i.run::after{background:repeating-linear-gradient(135deg,var(--cm) 0 4px,color-mix(in srgb,var(--cm) 55%,var(--surface)) 4px 7px);animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-pk{width:1px;left:24.5px;border-radius:0;background:var(--to)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-av.ping::before{animation:v2-alnpingbp .6s steps(3,end)}
@keyframes v2-alnpingbp{from{box-shadow:0 0 0 1px var(--c)}to{box-shadow:0 0 0 7px transparent}}
/* the line saying what just happened, and once the run is done, how it went: Studio's foot strip shows it */
.v2 .aln-say{display:none}
/* Studio (owner, 18 Nov): a card with a foot strip. The head and the lanes sit 16px in from the card's edges; Pause all moves
   down into the off-white foot strip, 16px from its top and bottom (owner, 23 Nov) and on the content's 16px column (owner, 21 and 22 Nov), beside the line saying what just
   happened, and when the run is done the strip closes the card with a summary. The parts are placed on one grid, so the
   markup stays Soft's. The relay line joins the badges as one unbroken line (it meets each badge) and stops at the last one */
:root[data-style="studio"] .v2 .aln.panel{display:grid;grid-template-columns:auto auto auto minmax(0,1fr) auto;grid-template-rows:auto auto calc(28px + 2 * var(--strip-y) + 1px);padding:0;background:linear-gradient(var(--line),var(--line)) 0 calc(100% - 28px - 2 * var(--strip-y) - 1px)/100% 1px no-repeat,linear-gradient(var(--strip),var(--strip)) 0 100%/100% calc(28px + 2 * var(--strip-y)) no-repeat,var(--surface)}
:root[data-style="studio"] .v2 .aln.panel .aln-h{display:contents}
:root[data-style="studio"] .v2 .aln.panel .aln-h>*{grid-row:1;align-self:center;margin-top:16px;margin-bottom:4px}
:root[data-style="studio"] .v2 .aln.panel .aln-ic{grid-column:1;margin-left:16px;margin-right:10px}
:root[data-style="studio"] .v2 .aln.panel .aln-t{grid-column:2;margin-right:10px}
:root[data-style="studio"] .v2 .aln.panel .aln-m{grid-column:3;margin-right:6px}
:root[data-style="studio"] .v2 .aln.panel .aln-ct{grid-column:4;margin-right:16px}
:root[data-style="studio"] .v2 .aln.panel .aln-tx{grid-column:2 / -1;gap:0;min-width:0}
/* (Agent harness, Phase II, keeps staging's head: its words are the row's own parts again, centred as before) */
.v2 .ahx .aln-tx{display:contents}
:root[data-style="studio"] .v2 .ahx .aln.panel .aln-tx>*{grid-row:1;align-self:center;margin-top:16px;margin-bottom:4px}
/* (Agent harness, Phase II, keeps staging's lanes as they were: the card 8px in, the lanes' fills to its padding with their
   content 10px inside (8px in Studio), the hover on the whole lane and the Working tag lifted onto the surface) */
.v2 .ahx .aln{padding:var(--s-2)}
.v2 .ahx .aln-rows{margin-inline:0}
.v2 .ahx .aln-h{padding:var(--s-2) 10px 10px}
.v2 .ahx .aln-row{padding:10px;border-radius:0}
@media (hover:hover) and (pointer:fine){.v2 .ahx .aln-row:hover{background:none}}
@media (hover:hover) and (pointer:fine){.v2 .ahx .aln-lane:hover{background:var(--row)}}
.v2 .ahx :is(.aln-rows>*,.aln-lane)::before,.v2 .ahx .aln-lane::after,.v2 .ahx .aln-rows>.aln-pk{left:26px}
.v2 .ahx .aln-rows>.aln-lane::before{top:48px}
.v2 .ahx .aln-rows>.aln-lane::after{height:6px}
.v2 .ahx .aln-det{padding:0 10px 10px 56px}
.v2 .ahx .aln-hand{padding:6px 10px 6px 56px}
.v2 .ahx .aln-lane[data-s="working"] .aln-tg{background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 22%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx :is(.aln-rows>*,.aln-lane)::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx .aln-lane::after,:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx .aln-rows>.aln-pk{left:26.5px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx .aln-lane[data-s="working"] .aln-tg{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent)}
:root[data-style="studio"] .v2 .ahx .aln.panel .aln-rows{margin:4px 8px 8px}
:root[data-style="studio"] .v2 .ahx .aln-row{padding:8px;border-radius:0}
:root[data-style="studio"] .v2 .ahx .aln-det{padding:0 8px 8px 54px}
:root[data-style="studio"] .v2 .ahx .aln-hand{padding:6px 8px 6px 54px}
:root[data-style="studio"] .v2 .ahx :is(.aln-rows>*,.aln-lane)::before,:root[data-style="studio"] .v2 .ahx .aln-lane::after,:root[data-style="studio"] .v2 .ahx .aln-rows>.aln-pk{left:24.25px}
:root[data-style="studio"] .v2 .ahx .aln-rows>.aln-lane::before{top:42px}
:root[data-style="studio"] .v2 .ahx .aln-rows>.aln-lane::after{height:8px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx .aln-row:hover .aln-st .tag:not(.ok,.warn,.aln-tg){background:var(--chip-fill)}}
:root[data-style="studio"] .v2 .ahx .aln-tr i.on{background:var(--rail)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx .aln-row:hover .aln-tr i:not(.on){background:var(--rail)}}
:root[data-style="studio"] .v2 .aln.panel .aln-pause{position:absolute;right:16px;bottom:var(--strip-y);margin:0}
:root[data-style="studio"] .v2 .aln.panel .aln-rows{grid-row:2;grid-column:1 / -1;margin:4px 8px 8px}
:root[data-style="studio"] .v2 .aln.panel .aln-say{display:block;grid-row:3;grid-column:1 / -1;align-self:center;min-width:0;margin:0 16px;font-size:12.5px;line-height:20px;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Pause all is pinned in the strip's corner rather than placed on the grid, so its width never squeezes the head on a phone;
   the line beside it keeps clear of it (the button, its 16px and a 12px gap) until the run is done and the button goes */
:root[data-style="studio"] .v2 .aln.panel:has(.aln-pause) .aln-say{margin-right:124px}
/* the summary's words start where the title's do (its 12px tick and 12px gap match the head's 14px icon and 10px gap) */
:root[data-style="studio"] .v2 .aln-say .i{color:color-mix(in srgb,var(--ok-mark) 85%,var(--ok));vertical-align:-2px;margin-right:12px}
:root[data-style="studio"] .v2 .aln.fin .aln-ic{color:color-mix(in srgb,var(--ok-mark) 85%,var(--ok))}
/* the lanes: their fills on the content's 16px column, their content 12px inside, as in Soft; the hover eases in and out */
:root[data-style="studio"] .v2 :is(.aln-lane,.aln-row){border-radius:14px}
:root[data-style="studio"] .v2 .aln-row{transition:background-color var(--t-fast) var(--ease)}
/* the hovered row turns grey, so its grey status tag turns white to stay visible, as shortcut chips do on a hovered row */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aln-row:hover .aln-st .tag:not(.ok,.warn,.aln-tg){background:var(--surface)}}
/* a finished step is drawn by its fill, so the step under it takes the same colour */
:root[data-style="studio"] .v2 .aln-tr i.on{background:var(--cm)}
:root[data-style="studio"] .v2 .aln-rows>*::before,:root[data-style="studio"] .v2 .aln-lane::after{left:24.25px;width:1.5px;border-radius:1px;background:var(--faint)}
:root[data-style="studio"] .v2 .aln-lane::before{top:46px}
:root[data-style="studio"] .v2 .aln-lane::after{height:12px}
:root[data-style="studio"] .v2 .aln-lane:not(:has(~.aln-lane))::before{display:none}
:root[data-style="studio"] .v2 .aln-rows>.aln-lane.sent::before,:root[data-style="studio"] .v2 .aln-rows>.aln-lane.got::after,:root[data-style="studio"] .v2 .aln-rows>.aln-hf.lit::before{background:transparent}
:root[data-style="studio"] .v2 .aln-pk{left:24.25px;width:1.5px;border-radius:1px;box-sizing:content-box;padding:4px 0;margin-top:-4px}
/* a track and the steps still to come are neutral; an agent's colour shows only on the steps it is running or has done */
:root[data-style="studio"] .v2 .aln-tr i{background:var(--rail)}
/* on the hovered row the steps still to come turn a translucent grey, so the track still reads on the row's grey */
:root[data-style="studio"] .v2 .aln-tr i{transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aln-row:hover .aln-tr i:not(.on){background:color-mix(in srgb,var(--fg) 10%,transparent)}}
@media (max-width:400px){:root[data-style="studio"] .v2 .aln.panel .aln-t{margin-left:16px}}
/* ---------- Parallel agents designs ---------- */
/* the card's three designs, picked in the switch under it: Default (the component above, as it ships), Swimlanes and Crew, each filling the width and
   centred in the room kept for the tallest of them */
.v2 .dm.aln-dm{min-height:0}
.v2 .aln-dm>.dm-main>*{align-self:stretch}

/* Swimlanes: every agent's work on one clock. Each lane takes its agent's hue (--c its text, --cb its tint, --cm its marks,
   3:1 on the surface): a soft tint for the lane, its steps as bars, and the hook that hands its work down to the next lane.
   A step still to come is a dashed outline; the one at work fills in stripes as the clock reaches it; a finished one is
   solid with its icon; a wait is hatched, with what it waits for. The playhead is grey with the time on it: drag it, click
   a lane or press the arrow keys to look back through the run. Lanes are one height, so the hooks are placed in CSS */
.v2 .aln-sw{--lab:168px;--rh:44px;--gap:var(--s-2);--bh:24px;--lt:7%;--aln-sw-pb:#2a7bff;--aln-sw-pm:#1fa66a;--aln-sw-pl:#7a5af5;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .aln-sw{--lt:12%;--aln-sw-pb:var(--pb);--aln-sw-pm:var(--pm);--aln-sw-pl:var(--pl)}}
:root[data-theme="dark"] .v2 .aln-sw{--lt:12%;--aln-sw-pb:var(--pb);--aln-sw-pm:var(--pm);--aln-sw-pl:var(--pl)}
.v2 .aln-sw-h{display:flex;align-items:center;gap:var(--s-4)}
.v2 .aln-sw-ht{flex:1;display:flex;flex-direction:column;min-width:0}
.v2 .aln-sw-ht b{font-weight:500}
.v2 .aln-sw-st{font-size:12.5px;color:var(--muted)}
/* the key: how a step looks to come, at work, done and waiting, in grey since each lane has its own hue */
.v2 .aln-sw-key{display:flex;gap:var(--s-3);font-size:11.5px;color:var(--muted)}
.v2 .aln-sw-key span{display:inline-flex;align-items:center;gap:var(--s-1)}
.v2 .aln-sw-key i{width:16px;height:8px;border-radius:var(--r-xs)}
/* the key draws each state as the lanes do, in the first lane's hue (owner, 18 Nov: the key had no colour while the lanes had) */
.v2 .aln-sw-key{--kc:var(--aln-sw-pb)}
.v2 .aln-sw-key .next{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--kc) 65%,transparent)}
.v2 .aln-sw-key .run{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--kc) 55%,var(--surface)) 0 2px,color-mix(in srgb,var(--kc) 20%,var(--surface)) 2px 4px)}
.v2 .aln-sw-key .done{background:var(--kc)}
.v2 .aln-sw-key .wait{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--kc) 30%,transparent) 0 1px,transparent 1px 3px)}
.v2 .aln-sw-grid{position:relative}
.v2 .aln-sw-ax{position:relative;height:24px;margin-left:var(--lab);font-size:11px;color:var(--muted)}
.v2 .aln-sw-ticks span{position:absolute;top:1px;transform:translateX(-50%)}
.v2 .aln-sw-ticks span:first-child{transform:none}.v2 .aln-sw-ticks span:last-child{transform:translateX(-100%)}
.v2 .aln-sw-rows{position:relative;display:flex;flex-direction:column;gap:var(--gap)}
.v2 .aln-sw-row{display:grid;grid-template-columns:var(--lab) minmax(0,1fr);align-items:center;height:var(--rh)}
.v2 .aln-sw-who{display:flex;align-items:center;gap:var(--s-2);min-width:0;padding-right:var(--s-2)}
.v2 .aln-sw-av{width:28px;height:28px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none;background:var(--cb);color:var(--c)}
.v2 .aln-sw-av .i{width:14px;height:14px;color:inherit}
.v2 .aln-sw-row[data-s="work"] .aln-sw-av{animation:v2-alnswbreathe 2s var(--ease-io) infinite}
@keyframes v2-alnswbreathe{50%{opacity:.6}}
/* the agent a hand-off reaches gives a small nod */
.v2 .aln-sw-row.got .aln-sw-av{animation:v2-alnswgot .6s var(--ease)}
@keyframes v2-alnswgot{40%{transform:scale(1.15)}}
.v2 .aln-sw-wt{display:flex;flex-direction:column;min-width:0;font-size:12.5px;line-height:1.35}
.v2 .aln-sw-wt b{font-weight:500}
.v2 .aln-sw-wt span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aln-sw-row[data-s="work"] .aln-sw-wt span{color:var(--fg2)}
/* the lane: its hue's soft tint, and a faint grey line every three seconds */
.v2 .aln-sw-lane{position:relative;height:100%;border-radius:var(--r-in);background:linear-gradient(90deg,transparent 1px,color-mix(in srgb,var(--line) 80%,transparent) 1px 2px,transparent 2px) -1px 0/25% 100%,color-mix(in srgb,var(--cm) var(--lt),var(--surface))}
.v2 .aln-sw-b,.v2 .aln-sw-w{position:absolute;top:calc(50% - var(--bh) / 2);height:var(--bh);border-radius:var(--r-sm);container-type:inline-size;transition:opacity .3s}
.v2 .aln-sw-b{border:1px dashed color-mix(in srgb,var(--cm) 65%,transparent)}
.v2 .aln-sw-b.run,.v2 .aln-sw-b.done{border-color:transparent}
/* the stretch the clock has passed fills in, drawn with a clip so the bar is never laid out again */
.v2 .aln-sw-fl{position:absolute;inset:-1px;border-radius:inherit;overflow:hidden;background:color-mix(in srgb,var(--cm) 20%,var(--surface));clip-path:inset(0 calc((1 - var(--f,0)) * 100%) 0 0);transition:clip-path .1s linear}
.v2 .aln-sw-fl i{position:absolute;top:0;bottom:0;left:-15px;right:0;display:none;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--cm) 26%,transparent) 0 5px,transparent 5px 10px)}
.v2 .aln-sw-b.run .aln-sw-fl i{display:block;animation:v2-alnswstripe .9s linear infinite}
.v2 .aln-sw.paused :is(.aln-sw-b.run .aln-sw-fl i,.aln-sw-av){animation-play-state:paused}
@keyframes v2-alnswstripe{to{transform:translateX(14.14px)}}
.v2 .aln-sw-b.done .aln-sw-fl{background:var(--cm)}
.v2 .aln-sw-fl .i{position:absolute;left:var(--s-2);top:calc(50% - 6px);color:var(--c)}
.v2 .aln-sw-b.done .aln-sw-fl .i{color:var(--surface)}
@container (max-width:19px){.v2 .aln-sw-fl .i{display:none}}
/* a wait: hatched in the lane's hue, with what it waits for where there is room */
.v2 .aln-sw-w{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--cm) 16%,transparent) 0 2px,transparent 2px 6px);clip-path:inset(0 calc((1 - var(--f,0)) * 100%) 0 0);transition:clip-path .1s linear,opacity .3s}
.v2 .aln-sw-wl{position:absolute;inset:0 var(--s-2);display:flex;align-items:center;gap:var(--s-1);font-size:11px;color:var(--fg2);white-space:nowrap;overflow:hidden}
.v2 .aln-sw-wl .i{flex:none;color:var(--c)}
.v2 .aln-sw-wl span{overflow:hidden;text-overflow:ellipsis}
@container (max-width:180px){.v2 .aln-sw-wl span{display:none}}
@container (max-width:19px){.v2 .aln-sw-wl .i{display:none}}
/* looking back: what comes after the playhead steps back */
.v2 .aln-sw.scrub :is(.aln-sw-b,.aln-sw-w).after{opacity:.3}
/* once the hand-off's tag lands in a wait, it says what came, so the wait's own words and clock step aside (in every style, so
   they never show under the tag) */
.v2 .aln-sw-wl{transition:opacity var(--t) var(--ease)}
.v2 .aln-sw-w.got .aln-sw-wl{opacity:0}
/* a hand-off: a hook in the sender's hue from the foot of its last bar down into the start of the next lane's work, drawn
   down as it happens, and what was passed in a tag in the sender's tint */
.v2 .aln-sw-ho{position:absolute;z-index:2;left:calc(var(--lab) + var(--x0) * (100% - var(--lab)));width:calc((var(--x1) - var(--x0)) * (100% - var(--lab)));top:calc(var(--from) * (var(--rh) + var(--gap)) + var(--rh) / 2 + var(--bh) / 2);height:calc((var(--to) - var(--from)) * (var(--rh) + var(--gap)) - var(--bh) / 2);border-left:1.5px solid var(--hc);border-bottom:1.5px solid var(--hc);border-bottom-left-radius:5px;pointer-events:none;clip-path:inset(0 -10px 100% -4px);transition:clip-path .5s var(--ease)}
.v2 .aln-sw-ho.on{clip-path:inset(0 -10px -8px -4px)}
.v2 .aln-sw-ho i{position:absolute;right:-6px;bottom:-4.75px;width:0;height:0;border-left:6px solid var(--hc);border-top:4px solid transparent;border-bottom:4px solid transparent}
.v2 .aln-sw-tg{position:absolute;z-index:3;left:calc(var(--lab) + var(--x0) * (100% - var(--lab)));top:calc(var(--to) * (var(--rh) + var(--gap)) + var(--rh) / 2 - 10px);background:color-mix(in srgb,var(--c) 22%,var(--surface));color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 40%,transparent);gap:4px;padding:0 10px 0 7px;opacity:0;transform:translate(calc(-100% - 7px),4px);transition:opacity .3s,transform .45s var(--ease);pointer-events:none}
.v2 .aln-sw-tg.on{opacity:1;transform:translate(calc(-100% - 7px),0)}
.v2 .aln-sw-tg .i{color:var(--c)}
/* Blueprint keeps its neutral tag (owner, 18 Nov: "blueprint looks good as is") */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-tg{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);gap:5px;padding:0 7px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-tg .i{color:var(--muted)}
/* the playhead: a grey line through the lanes and the time on a white tag, green once the run is done */
.v2 .aln-sw-ph{position:absolute;z-index:4;top:0;bottom:0;left:var(--lab);right:0;pointer-events:none;outline:0}
.v2 .aln-sw-ph i{position:absolute;top:20px;bottom:-4px;left:-.75px;width:1.5px;background:var(--fg2);transition:transform .1s linear}
.v2 .aln-sw-now{position:absolute;top:0;left:0;height:20px;padding:0 var(--s-2);border-radius:var(--r-tag);background:var(--surface);box-shadow:var(--shadow-pop),inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 50%,transparent);color:var(--fg);font-size:11px;font-weight:500;line-height:20px;white-space:nowrap;pointer-events:auto;cursor:ew-resize;touch-action:none;transition:transform .1s linear}
@supports (corner-shape:squircle){.v2 .aln-sw-now{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
.v2 .aln-sw-ph.drag :is(i,.aln-sw-now){transition:none}
.v2 .aln-sw-ph:focus-visible .aln-sw-now{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--focus)}
.v2 .aln-sw.fin .aln-sw-now{background:var(--ok-bg);color:var(--ok);box-shadow:none}
.v2 .aln-sw.fin .aln-sw-ph i{background:var(--ok)}
/* the footer: 16px from its hairline to its words and buttons, and the card's own 16px below them */
.v2 .aln-sw-f{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4) 0 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;color:var(--fg2)}
.v2 .aln-sw-say{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@container (max-width:600px){.v2 .aln-sw-key{display:none}}
@container (max-width:460px){.v2 .aln-sw{--lab:40px;padding:var(--s-4)}.v2 .aln-sw-wt,.v2 .aln-sw-tg{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-row[data-s="work"] .aln-sw-av{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-row.got .aln-sw-av{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-av{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 35%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-b.run .aln-sw-fl i{animation:v2-alnswstripe 1.2s steps(4,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ho{border-left-width:1px;border-bottom-width:1px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ph i{width:1px;left:-.5px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ho,:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-tg{transition-timing-function:steps(4,end)}
/* Soft and Studio give each lane's steps room inside the track (owner, 18 Nov: Soft had none): 10px at the start and 8px at the
   end, the clock running between them; Blueprint keeps its steps flush with the track (owner: "blueprint looks good as is") */
.v2 .aln-sw-lane{border:solid transparent;border-width:0 8px 0 10px}
.v2 .aln-sw-ax{margin-left:calc(var(--lab) + 10px);margin-right:8px}
.v2 .aln-sw-ph{left:calc(var(--lab) + 10px);right:8px}
.v2 .aln-sw-ho{left:calc(var(--lab) + 10px + var(--x0) * (100% - var(--lab) - 18px));width:calc((var(--x1) - var(--x0)) * (100% - var(--lab) - 18px))}
.v2 .aln-sw-tg{left:calc(var(--lab) + 10px + var(--x0) * (100% - var(--lab) - 18px))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-lane{border:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ax{margin-left:var(--lab);margin-right:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ph{left:var(--lab);right:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-ho{left:calc(var(--lab) + var(--x0) * (100% - var(--lab)));width:calc((var(--x1) - var(--x0)) * (100% - var(--lab)))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-sw-tg{left:calc(var(--lab) + var(--x0) * (100% - var(--lab)))}
/* Studio (owner, 18 Nov): the head and the lanes 16px in from the card's edges, and an off-white foot strip with the line saying
   what happened; Pause and Back to now sit in it, 16px from its top and bottom (owner, 23 Nov) and on the content's 16px column (owner, 22 Nov). The parts are
   placed on one grid, so the markup stays Soft's. Each lane's steps sit inside its track with even room all round: the track
   is a 44px pill and a step a 24px one, 10px in at the start and the end as above and below (22 = 12 + 10), so the clock runs
   from 10px inside the track's start to 10px inside its end (the last step keeps its 2px gap, so 8px of border on the right).
   An axis label the playhead's time passes over steps aside */
:root[data-style="studio"] .v2 .aln-sw{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto calc(28px + 2 * var(--strip-y) + 1px);gap:0;padding:0;background:linear-gradient(var(--line),var(--line)) 0 calc(100% - 28px - 2 * var(--strip-y) - 1px)/100% 1px no-repeat,linear-gradient(var(--strip),var(--strip)) 0 100%/100% calc(28px + 2 * var(--strip-y)) no-repeat,var(--surface)}
:root[data-style="studio"] .v2 :is(.aln-sw-h,.aln-sw-f){display:contents}
:root[data-style="studio"] .v2 .aln-sw-ht{grid-row:1;grid-column:1 / -1;justify-self:start;margin:16px 16px 0}
:root[data-style="studio"] .v2 .aln-sw-key{grid-row:1;grid-column:1 / -1;justify-self:end;align-self:center;margin:16px 16px 0}
:root[data-style="studio"] .v2 .aln-sw-grid{grid-row:2;grid-column:1 / -1;margin:12px 16px 16px}
:root[data-style="studio"] .v2 .aln-sw-say{grid-row:3;grid-column:1;align-self:center;margin:0 12px 0 16px;line-height:20px}
:root[data-style="studio"] .v2 .aln-sw-live{grid-row:3;grid-column:2;align-self:end;margin:var(--strip-y) 8px var(--strip-y) 0}
:root[data-style="studio"] .v2 .aln-sw-pause{grid-row:3;grid-column:3;align-self:end;margin:var(--strip-y) 16px var(--strip-y) 0}
/* once the run is done Pause goes, so Back to now, or the line when it is alone, ends on the content's 16px column */
:root[data-style="studio"] .v2 .aln-sw.fin .aln-sw-live{margin-right:16px}
:root[data-style="studio"] .v2 .aln-sw.fin:has(.aln-sw-live[hidden]) .aln-sw-say{margin-right:16px}
/* the lanes and what is still to come are neutral: a grey track with the clock's lines, steps not yet started as a grey dashed
   outline and a wait as grey hatching. An agent's colour shows only on a step it is running or has done */
:root[data-style="studio"] .v2 .aln-sw-lane{background:linear-gradient(90deg,transparent 1px,color-mix(in srgb,var(--line) 80%,transparent) 1px 2px,transparent 2px) -1px 0/25% 100%,color-mix(in srgb,var(--fg) 4%,var(--surface))}
:root[data-style="studio"] .v2 .aln-sw-b:not(.run,.done){border-color:var(--faint)}
:root[data-style="studio"] .v2 .aln-sw-w{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--fg) 12%,transparent) 0 2px,transparent 2px 6px)}
:root[data-style="studio"] .v2 .aln-sw-key .next{box-shadow:inset 0 0 0 1px var(--faint)}
:root[data-style="studio"] .v2 .aln-sw-key .wait{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--fg) 30%,transparent) 0 1px,transparent 1px 3px)}
:root[data-style="studio"] .v2 .aln-sw-ticks span{transition:opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .aln-sw-ticks span.hid{opacity:0}


/* Crew: a card per agent, each on its own clock, so pausing one or steering it leaves the others running. Its avatar is in
   the avatar colours. Its progress is a thin line through a dot for each step: in the accent while it works, a mid grey
   while it waits or is paused, green once it is done. Between two cards, what the one hands the other */
.v2 .aln-cw{display:flex;flex-direction:column;gap:var(--s-3)}
/* the head lines up with the cards' content: its icon on the avatars' column, 16px in */
.v2 .aln-cw-h{display:flex;align-items:center;gap:var(--s-2);padding:0 var(--s-4)}
.v2 .aln-cw-ic{display:grid;color:var(--fg2)}
.v2 .aln-cw-ic .i{color:inherit}
.v2 .aln-cw-tt{flex:1;font-weight:500}
.v2 .aln-cw-tot{font-size:13px;color:var(--fg2)}
/* the title and the run's cost share one baseline; the row round them stays centred on the icon (Studio lays them out on its grid) */
.v2 .aln-cw-hx{flex:1;display:flex;align-items:baseline;gap:var(--s-2)}
/* the run so far, and once it is done how it went: Studio shows it under the title */
.v2 .aln-cw-sum{display:none}
.v2 .aln-cw-list{display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .aln-cw-c{position:relative;display:flex;flex-direction:column;padding:var(--s-4);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow);transition:opacity .3s}
.v2 .aln-cw-c[data-s="hold"]{opacity:.8}
.v2 .aln-cw-top{display:flex;align-items:center;gap:var(--s-3)}
.v2 .aln-cw-av{width:28px;height:28px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none;background:var(--a);color:var(--ai)}
.v2 .aln-cw-av .i{width:14px;height:14px;stroke-width:1.9;color:inherit}
.v2 .aln-cw-c[data-s="work"] .aln-cw-av{animation:v2-alnswbreathe 2s var(--ease-io) infinite}
.v2 .aln-cw-tx{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .aln-cw-tx b{font-weight:500;font-size:13px}
.v2 .aln-cw-tx span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aln-cw-c[data-s="work"] .aln-cw-tx span{color:var(--fg2)}
.v2 .aln-cw-tag .spin{width:9px;height:9px}
.v2 .aln-cw-acts{display:flex;gap:var(--s-1)}
.v2 .aln-cw-acts .ib{width:28px;height:28px}
.v2 .aln-cw-acts .ib[aria-pressed="true"],.v2 .aln-cw-acts .ib[aria-expanded="true"]{background:var(--hover);color:var(--fg)}
.v2 .aln-cw-meter{display:flex;align-items:center;gap:var(--s-3);margin-top:var(--s-3)}
/* the note field and the note it leaves keep their gap inside them, so a shut field takes no room */
.v2 .aln-cw-c>.fold .aln-cw-steer{margin-top:var(--s-3)}
.v2 .aln-cw-nts:not(:empty){margin-top:var(--s-2)}
.v2 .aln-cw-tr{position:relative;flex:1;min-width:64px;height:12px;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));align-items:center;--cwf:color-mix(in srgb,var(--muted) 80%,var(--surface))}
.v2 .aln-cw-c[data-s="work"] .aln-cw-tr{--cwf:var(--accent-mark,var(--accent))}
.v2 .aln-cw-c[data-s="done"] .aln-cw-tr{--cwf:var(--ok)}
.v2 .aln-cw-ln{position:absolute;left:0;right:5px;top:5px;height:2px;background:var(--line);overflow:hidden}
.v2 .aln-cw-ln i{position:absolute;inset:0;background:var(--cwf);transform-origin:left;transform:scaleX(var(--p,0));transition:transform .2s linear,background .3s}
.v2 .aln-cw-tr b{justify-self:end;position:relative;width:10px;height:10px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--muted) 80%,var(--surface));transition:background .3s,box-shadow .3s}
.v2 .aln-cw-tr b.done{background:var(--cwf);box-shadow:none}
.v2 .aln-cw-tr b.now{box-shadow:inset 0 0 0 2px var(--cwf)}
.v2 .aln-cw-c[data-s="work"] .aln-cw-tr b.now{animation:v2-alncwnow 1.6s var(--ease-io) infinite}
@keyframes v2-alncwnow{50%{transform:scale(1.25)}}
.v2 .aln-cw-num{display:flex;gap:var(--s-2);font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.v2 .aln-cw-num b{font-weight:500;color:var(--fg2)}
/* steering one agent: a note it reads before its next step */
.v2 .aln-cw-steer{display:flex;align-items:center;gap:var(--s-1);padding:var(--s-1) var(--s-1) var(--s-1) var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent)}
.v2 .aln-cw-steer:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .aln-cw-steer{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .aln-cw-steer input{flex:1;min-width:0;height:28px;border:0;outline:0;background:none;font:inherit;font-size:12.5px;color:var(--fg)}
.v2 .aln-cw-steer input::placeholder{color:var(--muted)}
/* its Send waits for words: a quiet glyph with no hover fill until there is something to send */
/* its Send is the size of the card's other icon buttons */
.v2 .aln-cw-steer .aln-cw-go{width:28px;height:28px}
.v2 .aln-cw-go[disabled]{color:var(--dis)}
@media (hover:hover) and (pointer:fine){.v2 .aln-cw-go[disabled]:hover{background:none}}
.v2 .aln-cw-note{display:flex;align-items:center;gap:var(--s-2);font-size:12px;color:var(--fg2);animation:v2-alncwin .45s var(--ease)}
.v2 .aln-cw-note .i{color:var(--ok)}
@keyframes v2-alncwin{from{opacity:0;transform:translateY(6px)}}
/* a hand-off between two cards: the sender, what it passes in the site's grey tag, and the receiver, joined by grey lines,
   dashed until the work is passed, then solid with the tag ticked */
.v2 .aln-cw-ho{display:flex;align-items:center;justify-content:center;gap:var(--s-2);height:32px;font-size:11.5px;color:var(--muted)}
.v2 .aln-cw-ho .ln{width:22px;border-top:1.5px dashed var(--rail)}
.v2 .aln-cw-ho.on .ln{border-top-style:solid;border-top-color:var(--faint)}
.v2 .aln-cw-ho.on .tag{animation:v2-alncwgot .5s var(--ease)}
@keyframes v2-alncwgot{40%{transform:scale(1.1)}}
@container (max-width:420px){.v2 .aln-cw-tkn{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-c[data-s="work"] .aln-cw-av{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-ln i{transition:transform .3s steps(3,end),background .2s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-c[data-s="work"] .aln-cw-tr b.now{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-ho .ln{border-top-width:1px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-note{animation:v2-bpin .3s var(--ease)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .aln-cw-ho.on .tag{animation:none}
/* Studio (owner, 18 Nov): each agent's card has its name, what it is doing and its status 16px in from the edges, and an
   off-white foot strip with its progress, its counts and its pause and steer buttons, 16px from the strip's top and bottom (owner, 23 Nov) and on the content's 16px column (owner, 22 Nov). The parts are
   placed on one grid, so the markup stays Soft's. The signature: the agent at work is the one card with presence (it lifts a
   little, its hairline steps up and its progress line runs a soft sheen), its step dots fill in from the rim as they finish,
   and a hand-off travels: the line from the sender draws, the chip slides along it and ticks, then the line on to the receiver
   draws. The others sit flat on their hairline */
:root[data-style="studio"] .v2 .aln-cw-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 var(--s-2);align-items:center;padding:0 16px}
:root[data-style="studio"] .v2 .aln-cw-ic{grid-row:1;grid-column:1}
:root[data-style="studio"] .v2 .aln-cw-sum{display:block;grid-row:2;grid-column:2;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .aln-cw-hx{display:contents}
/* the title and the run's cost share one baseline on the head's first row; the icon stays centred on that row */
:root[data-style="studio"] .v2 .aln-cw-tt{grid-row:1;grid-column:2;align-self:baseline}
:root[data-style="studio"] .v2 .aln-cw-tot{grid-row:1;grid-column:3;align-self:baseline}
/* the agent at work has its presence from its card, so its badge holds still */
:root[data-style="studio"] .v2 .aln-cw-c[data-s="work"] .aln-cw-av{animation:none}
:root[data-style="studio"] .v2 .aln-cw-ic:has([href$="i-ok"]){color:color-mix(in srgb,var(--ok-mark) 85%,var(--ok))}
:root[data-style="studio"] .v2 .aln-cw-c{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto auto calc(28px + 2 * var(--strip-y) + 1px);padding:0;background:linear-gradient(var(--line),var(--line)) 0 calc(100% - 28px - 2 * var(--strip-y) - 1px)/100% 1px no-repeat,linear-gradient(var(--strip),var(--strip)) 0 100%/100% calc(28px + 2 * var(--strip-y)) no-repeat,var(--surface);box-shadow:0 0 0 1px var(--line);transition:opacity .3s,box-shadow .52s var(--ease),transform .52s var(--ease)}
:root[data-style="studio"] .v2 .aln-cw-c[data-s="work"]{box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 16%,transparent),var(--shadow-pop);transform:translateY(-2px)}
:root[data-style="studio"] .v2 :is(.aln-cw-top,.aln-cw-meter){display:contents}
:root[data-style="studio"] .v2 .aln-cw-av{grid-row:1;grid-column:1;align-self:center;margin:16px 12px 16px 16px}
:root[data-style="studio"] .v2 .aln-cw-tx{grid-row:1;grid-column:2 / 4;align-self:center;margin:16px 0}
:root[data-style="studio"] .v2 .aln-cw-tag{grid-row:1;grid-column:4;justify-self:end;align-self:center;margin:0 16px 0 12px}
:root[data-style="studio"] .v2 .aln-cw-c>.fold{grid-row:2;grid-column:1 / -1;margin:0 16px}
:root[data-style="studio"] .v2 .aln-cw-c>.fold .aln-cw-steer{margin:0 0 16px}
:root[data-style="studio"] .v2 .aln-cw-go{border-radius:calc(var(--r-field) - 4px)}
:root[data-style="studio"] .v2 .aln-cw-nts{grid-row:3;grid-column:1 / -1;margin:0 16px}
:root[data-style="studio"] .v2 .aln-cw-nts:not(:empty){margin:-6px 16px 16px}
/* the counts end where the two buttons begin (8px + 2 x 28px + 4px + an 8px gap from the edge), so they line up card to card */
:root[data-style="studio"] .v2 .aln-cw-tr{grid-row:4;grid-column:1 / 3;align-self:center;margin:0 0 0 16px}
:root[data-style="studio"] .v2 .aln-cw-num{grid-row:4;grid-column:3 / 5;justify-self:end;align-self:center;margin:0 84px 0 12px}
:root[data-style="studio"] .v2 .aln-cw-acts{grid-row:4;grid-column:4;justify-self:end;align-self:end;margin:var(--strip-y) 16px var(--strip-y) 0}
/* a held agent's pause and an open steer take Studio's one selected fill */
:root[data-style="studio"] .v2 .aln-cw-acts .ib:is([aria-pressed="true"],[aria-expanded="true"]){background:var(--row-on)}
/* the progress line: a 4px track with a soft inner shadow; the part done fills in the card's colour, with a sheen running
   along it while the agent works */
:root[data-style="studio"] .v2 .aln-cw-ln{top:4px;height:4px;border-radius:999px;background:var(--rail);box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .aln-cw-ln i{border-radius:inherit}
:root[data-style="studio"] .v2 .aln-cw-c[data-s="work"] .aln-cw-ln i{background:linear-gradient(90deg,var(--cwf) 0 40%,color-mix(in srgb,var(--cwf) 55%,#fff) 50%,var(--cwf) 60% 100%) 0 0/300% 100% var(--cwf);animation:v2-alncwsheen 2s linear infinite}
@keyframes v2-alncwsheen{from{background-position:100% 0}to{background-position:-50% 0}}
/* a step's dot fills in from its rim as it finishes. A finished card's green takes a touch of the text green, so its marks keep
   3:1 on the off-white strip */
:root[data-style="studio"] .v2 .aln-cw-tr b{transition:background .3s,box-shadow .45s var(--ease)}
:root[data-style="studio"] .v2 .aln-cw-tr b.done{background:var(--surface);box-shadow:inset 0 0 0 5px var(--cwf)}
:root[data-style="studio"] .v2 .aln-cw-c[data-s="done"] .aln-cw-tr{--cwf:color-mix(in srgb,var(--ok-mark) 85%,var(--ok))}
:root[data-style="studio"] .v2 .aln-cw-c[data-s="work"] .aln-cw-tr b.now{animation:none}
/* a hand-off travels from the card above to the one below: the line from the sender draws, the chip slides along it and its
   tick draws, then the line on to the receiver draws and the receiver's name steps up */
:root[data-style="studio"] .v2 .aln-cw-ho .ln{width:28px;height:1.5px;border:0;background:linear-gradient(color-mix(in srgb,var(--fg) 50%,var(--stage)),color-mix(in srgb,var(--fg) 50%,var(--stage))) 0 0/0% 100% no-repeat,repeating-linear-gradient(90deg,var(--faint) 0 3px,transparent 3px 6px);transition:background-size .36s var(--ease)}
:root[data-style="studio"] .v2 .aln-cw-ho.on .ln{background-size:100% 100%,auto}
:root[data-style="studio"] .v2 .aln-cw-ho.on .tag~.ln{transition-delay:.34s}
:root[data-style="studio"] .v2 .aln-cw-ho>span:last-child{transition:color .3s var(--ease) .6s}
:root[data-style="studio"] .v2 .aln-cw-ho.on>span:last-child,:root[data-style="studio"] .v2 .aln-cw-ho.on>span:first-child{color:var(--fg2)}
:root[data-style="studio"] .v2 .aln-cw-ho.on .tag{animation:v2-alncwtravel .6s var(--ease) backwards}
@keyframes v2-alncwtravel{from{opacity:0;transform:translateX(-32px)}}
:root[data-style="studio"] .v2 .aln-cw-ho.on .tag .i{stroke-dasharray:20;stroke-dashoffset:20;animation:v2-alncwtick .32s var(--ease) .3s forwards}
@keyframes v2-alncwtick{to{stroke-dashoffset:0}}
/* ---------- Agent run timeline ---------- */
/* each kind of step has a hue: --k paints its bar, --kt its text and icon, --kb the icon's tint. The model is purple, tools
   are teal and apps orange, each app with its own mark. The playhead runs in the accent with the time on it, and the lanes it
   has passed take a faint wash; once the run is done it stops at the finish and turns green */
.v2 .art{padding:var(--s-4);--lab:176px;--dur:44px}
/* the head has a neutral mark in a tile as big as the steps' icons, so the steps' icons sit in its column and their names
   start where the title starts (owner, 18 Nov); the key lines up with the title's words too */
.v2 .art-h{display:flex;align-items:center;gap:var(--s-2)}
.v2 .art-hi{width:22px;height:22px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--chip);color:var(--fg2)}
.v2 .art-hd{flex:1;min-width:0}
.v2 .art-t{font-weight:500;line-height:18px}
.v2 .art-s{font-size:12.5px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .art-s.sw{display:block}
.v2 .art-tag{flex:none;transition:background .3s,color .3s}
.v2 .art-tag .spin{width:9px;height:9px}
.v2 .art.live .art-tag{background:var(--accent-bg);color:var(--accent-fg,var(--fg))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art.live .art-tag{background:color-mix(in srgb,var(--accent-mark) 20%,transparent)}
/* the key: how long each kind has run so far */
.v2 .art-key{display:flex;flex-wrap:wrap;gap:2px var(--s-4);margin-top:10px;padding-left:30px;font-size:12px;color:var(--muted)}
.v2 .art-key span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.v2 .art-key i{width:8px;height:8px;border-radius:var(--r-tiny,2px);background:var(--k);flex:none}
.v2 .art-key b{font-weight:500;color:var(--fg2)}
.v2 .art-grid{position:relative;margin-top:var(--s-3)}
.v2 .art-axis,.v2 .art-row{display:grid;grid-template-columns:var(--lab) minmax(0,1fr) var(--dur);align-items:center}
.v2 .art-axis{height:20px;font-size:11px;color:var(--muted)}
.v2 .art-ticks{position:relative;height:16px}
.v2 .art-ticks span{position:absolute;top:0;transform:translateX(-50%);transition:opacity .2s}
.v2 .art-ticks span:first-child{transform:none}
.v2 .art-ticks span:last-child{transform:translateX(-100%)}
.v2 .art-ticks span.hid{opacity:0}
.v2 .art-rows{position:relative}
.v2 .art-row{height:32px}
.v2 .art-lab{display:flex;align-items:center;gap:var(--s-2);min-width:0;padding-right:var(--s-3);font-size:12.5px;color:var(--fg2);white-space:nowrap;transition:color .3s}
.v2 .art-lab .t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .art-lab .tag{flex:none}
.v2 .art-ic{--ring:0 0 0 0 transparent;width:22px;height:22px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--kb);color:var(--kt);box-shadow:var(--ring);transition:opacity .3s}
.v2 .art-ic .brand{width:13px;height:13px}
/* an app's own mark sits on a plain tile */
.v2 .art-row[data-k="app"] .art-ic{--ring:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);background:var(--surface);color:var(--fg)}
/* a step that hasn't started waits quietly; the one at work breathes a ring of its hue round its icon */
.v2 .art-row[data-s="wait"] .art-lab{color:var(--muted)}
.v2 .art-row[data-s="wait"] .art-ic{opacity:.45}
.v2 .art-row[data-s="run"] .art-lab{color:var(--fg)}
.v2 .art-row[data-s="run"] .art-ic{animation:v2-artbreathe 1.8s var(--ease-io) infinite}
/* (the running step's icon breathes with its opacity: a ring spreading out of it would reach past the card's 16px column) */
@keyframes v2-artbreathe{50%{opacity:.55}}
.v2 .art-row.bump .art-ic{animation:v2-artpop .45s var(--ease)}
@keyframes v2-artpop{40%{transform:scale(1.14)}}
/* the lanes: quarter lines at half strength, a bar for each step */
.v2 .art-lane{position:relative;height:100%;background:linear-gradient(90deg,color-mix(in srgb,var(--line) 50%,transparent) 1px,transparent 1px) 0 0/25% 100%;box-shadow:inset -1px 0 color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .art-bar{position:absolute;top:9px;height:14px;width:0;border-radius:var(--r-tiny,5px);background:linear-gradient(90deg,var(--k),color-mix(in oklab,var(--k) 82%,#fff));cursor:default;transition:filter .2s}
@media (hover:hover) and (pointer:fine){.v2 .art-bar:hover{filter:brightness(1.08) saturate(1.1)}}
/* the bar at work carries a passing light and a bright leading edge */
.v2 .art-row[data-s="run"] .art-bar{background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.42) 46%,transparent 62%) 0 0/250% 100% no-repeat,var(--k);animation:v2-artsheen 1.3s linear infinite}
.v2 .art-bar i{display:none;position:absolute;right:-1px;top:-3px;bottom:-3px;width:2px;border-radius:1px;background:var(--k);box-shadow:none}
.v2 .art-row[data-s="run"] .art-bar i{display:block}
@keyframes v2-artsheen{from{background-position:120% 0,0 0}to{background-position:-120% 0,0 0}}
.v2 .art-row[data-s="fail"] .art-bar{background:repeating-linear-gradient(135deg,var(--c5) 0 3px,color-mix(in srgb,var(--c5) 45%,var(--surface)) 3px 6px)}
/* a retry hangs off the end of the step that failed */
.v2 .art-link{position:absolute;top:-9px;height:25px;min-width:6px;border-left:1px dashed var(--warn-mark);border-bottom:1px dashed var(--warn-mark);pointer-events:none;display:none}
.v2 .art-row:not([data-s="wait"]) .art-link{display:block;animation:v2-artdraw .5s var(--ease) backwards}
@keyframes v2-artdraw{from{clip-path:inset(0 100% 100% 0)}to{clip-path:inset(0)}}
/* how long each step took, counting while it runs */
.v2 .art-d{font-size:12px;color:var(--muted);text-align:right;white-space:nowrap}
.v2 .art-row[data-s="run"] .art-d{color:var(--kt)}
.v2 .art-row[data-s="done"] .art-d{color:var(--fg2)}
.v2 .art-row[data-s="fail"] .art-d{color:var(--bad)}
/* the playhead, with the time on the axis, and the wash over what it has passed */
.v2 .art-past{position:absolute;top:20px;bottom:0;left:var(--lab);width:calc((100% - var(--lab) - var(--dur)) * var(--p,0));background:linear-gradient(90deg,transparent,var(--sel));pointer-events:none;opacity:0;transition:opacity .5s}
.v2 .art.live .art-past{opacity:1}
.v2 .art-head{position:absolute;top:2px;bottom:0;left:calc(var(--lab) + (100% - var(--lab) - var(--dur)) * var(--p,0));width:0;pointer-events:none;opacity:0;transition:opacity .4s}
.v2 .art.live .art-head,.v2 .art.fin .art-head{opacity:1}
.v2 .art-head i{position:absolute;top:16px;bottom:0;left:-.75px;width:1.5px;border-radius:1px;background:var(--accent-mark,var(--accent));transition:background .4s}
.v2 .art-now{position:absolute;top:0;left:0;transform:translateX(-50%);display:inline-flex;align-items:center;gap:3px;height:16px;padding:0 5px;border-radius:var(--r-tiny,5px);background:var(--accent);color:var(--on-accent,#fff);font-size:11px;font-weight:500;line-height:1;white-space:nowrap;transition:background .4s,color .4s}
.v2 .art-now .i{width:10px;height:10px}
.v2 .art.fin .art-head i{background:var(--ok-mark)}
.v2 .art.fin .art-now{background:var(--ok-bg);color:var(--ok)}
.v2 .art-f{display:flex;flex-wrap:wrap;gap:var(--s-2) var(--s-5);margin-top:var(--s-3);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;line-height:16px}
/* each figure's icon is centred in the steps' icon column (22px) and its words start on their names' column */
.v2 .art-f>span{display:inline-flex;align-items:center;gap:var(--s-2);white-space:nowrap}
.v2 .art-f>span>svg{box-sizing:content-box;padding:0 5px}
.v2 .art-f b{color:var(--fg);font-weight:500}
@media (max-width:600px){.v2 .art{--lab:112px;--dur:38px}.v2 .art-lab{padding-right:var(--s-2)}.v2 .art-lab .tag{display:none}.v2 .art-f{gap:var(--s-2) var(--s-4)}
  /* the head's tile, the steps' icons and the figures keep 8px to their words on a narrow card too (owner, 2 Dec: the title
     sat too close to its tile), and the key starts on the words' column */
  .v2 .art-key{padding-left:30px}}
/* a phone: each step's name sits on its own line above its bar, so it is read in full; the bars take the whole width */
@media (max-width:480px){
  .v2 .art{--lab:0px}
  .v2 .art-row{height:auto;grid-template-rows:auto 22px;row-gap:2px;padding:5px 0 3px}
  .v2 .art-row .art-lab{grid-column:1/-1;grid-row:1;padding-right:0}
  .v2 .art-row .art-lab .t{white-space:normal;overflow:visible}
  .v2 .art-row .art-lane{grid-column:2;grid-row:2;height:22px}
  .v2 .art-row .art-d{grid-column:3;grid-row:2}
  .v2 .art-bar{top:4px}
  .v2 .art-ic,.v2 .art-hi{width:20px;height:20px}
  .v2 .art-key{padding-left:28px}
  .v2 .art-f>span>svg{padding:0 4px}
  .v2 .art-link{top:-35px;height:39px}
}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-ic{--ring:inset 0 0 0 1px color-mix(in srgb,var(--k) 35%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row[data-k="app"] .art-ic{--ring:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row[data-s="run"] .art-ic{animation:v2-artbp 1s steps(1,end) infinite}
@keyframes v2-artbp{0%,55%{box-shadow:inset 0 0 0 1px var(--k)}56%,100%{box-shadow:var(--ring)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row.bump .art-ic{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row[data-s="fail"] .art-bar{background:repeating-linear-gradient(135deg,var(--c5) 0 3px,color-mix(in srgb,var(--c5) 45%,var(--surface)) 3px 6px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-bar{background:var(--k)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row[data-s="run"] .art-bar{background:linear-gradient(135deg,var(--k) 25%,color-mix(in srgb,var(--k) 50%,var(--surface)) 25% 50%,var(--k) 50% 75%,color-mix(in srgb,var(--k) 50%,var(--surface)) 75%) 0 0/8px 8px;animation:v2-artmarch .6s steps(4) infinite}
@keyframes v2-artmarch{to{background-position:8px 0}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-bar i{width:1px;right:0;box-shadow:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-link{border-left-style:solid;border-bottom-style:solid}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-row:not([data-s="wait"]) .art-link{animation:v2-artdrawbp .3s steps(3,end) backwards}
@keyframes v2-artdrawbp{from{clip-path:inset(0 100% 100% 0)}to{clip-path:inset(0)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-past{background:repeating-linear-gradient(135deg,transparent 0 5px,var(--grid) 5px 6px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .art-head i{width:1px;left:-.5px}
/* Studio (owner, 17 and 18 Nov): the kinds of step keep their colours as flat, round bars; the failed run a red hatch with no
   red fill; round icon tiles, the head's with a hairline; the totals an off-white foot strip. The content sits 16px in from
   every edge and 16px over the strip */
:root[data-style="studio"] .v2 .art{padding:16px 16px 0}
:root[data-style="studio"] .v2 .art-hi{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .art-lab .tag.bad{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad-mark) 45%,transparent)}
:root[data-style="studio"] .v2 .art-bar,:root[data-style="studio"] .v2 .art-row[data-s="run"] .art-bar{top:11px;height:10px;border-radius:var(--r-tiny,3px);background:var(--k);animation:none}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .art-bar:hover{filter:none}}
:root[data-style="studio"] .v2 .art-row[data-s="fail"] .art-bar{background:repeating-linear-gradient(135deg,var(--bad-mark) 0 2px,transparent 2px 5px);box-shadow:inset 0 0 0 1px var(--bad-mark)}
:root[data-style="studio"] .v2 .art-f{margin:11px -16px 0;padding:calc(var(--strip-y) + 5px) 16px;line-height:18px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* (the figures keep the base's columns: each icon centred on the steps' icon column, its words on their names' column) */
/* ---------- Live answer ---------- */
/* it sits on the stage, not on a card, so its hover fill is a quiet step darker than whatever is under it (the surface's own
   --row matches the stage in light mode and would not show); every hover box reaches out round its glyph or chip, which line
   up with the answer's words (owner, 18 Nov) */
.v2 .lva{display:flex;flex-direction:column;gap:14px;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on an action shows at once, a step deeper than its hover
   (.mx-press); Copy's icon and its tick crossfade (.mx-ic); the turn grows on the spring as the answer streams in (.mx-grow) */
.v2 .lva{--row-press:color-mix(in srgb,var(--fg) 9%,transparent)}
:root[data-style="studio"] .v2 .lva{--row-press:var(--row-on)}
/* grow() keeps the hover boxes that reach out past the answer's edge */
.v2 .lva.growing{overflow-clip-margin:12px}
.v2 .lva-q{display:flex;justify-content:flex-end}
/* no room is kept for the answer to come (owner, 18 Nov): the turn grows as the answer streams in (grow()) and stays centred
   in its stage */
.v2 .lva-a{display:flex;flex-direction:column;gap:14px}
.v2 .lva-turn{display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .lva-th{display:flex;align-items:center;gap:var(--s-2);font-size:13.5px;color:var(--muted)}
.v2 .lva-tb{display:inline-flex;gap:6px;align-self:flex-start;padding:2px var(--s-2);margin-left:-8px;border-radius:var(--r-pill);transition:color var(--t-fast),background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .lva-tb:hover{color:var(--fg2);background:var(--row)}}
.v2 .lva-tb>.i{transition:transform .2s var(--ease)}
.v2 .lva-tb[aria-expanded="true"]>.i{transform:rotate(180deg)}
.v2 .lva-tlist{list-style:none;margin:0;padding:2px 0 2px var(--s-3);border-left:1px solid color-mix(in srgb,var(--rail) 50%,transparent);display:flex;flex-direction:column;gap:var(--s-1);font-size:13px;color:var(--muted)}
.v2 .lva-p{margin:0;font-size:14px;line-height:1.65}
.v2 .lva-p .w{display:inline;animation:v2-lvw .5s var(--ease) both}
@keyframes v2-lvw{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
.v2 .cite{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 var(--s-1);margin:0 2px;border-radius:var(--r-tiny,5px);background:var(--hover);font-size:10.5px;font-weight:500;color:var(--fg2);vertical-align:2px;cursor:default;transition:background .2s,color .2s}
.v2 .cite.on{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
@media (hover:hover) and (pointer:fine){.v2 .cite:hover{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}}
/* (Blueprint's lime takes its darker mark, so the picked citation's tint shows on white; the harness keeps its own) */
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .lva .cite:is(:hover,.on){background:var(--bp-pick)}}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx .lva .cite:is(:hover,.on){background:var(--accent-bg)}}
.v2 .lva-p .cite{animation:v2-lvw .5s var(--ease) both}
.v2 .lva-src{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.v2 .lva-sb{display:inline-flex;align-items:center;gap:var(--s-2);height:28px;padding:0 9px 0 6px;border-radius:var(--r-pill);color:var(--fg2);transition:background .2s,color .2s}
.v2 .lva-sb[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .lva-sb:hover{background:var(--row);color:var(--fg)}}
.v2 .lva-sb>.i{color:var(--muted);transition:transform .35s var(--ease)}
.v2 .lva-sb[aria-expanded="true"]>.i{transform:rotate(180deg)}
/* the sources' badges sit side by side, never over each other (owner, 18 Nov) */
.v2 .lva-fav{display:flex;gap:2px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .lva :is(.ib,.pill):active,:root[data-style="studio"] .v2 .lva .ib:active{transform:none}
.v2 .lva-fav span{width:18px;height:18px;border-radius:var(--r-tiny,5px);display:grid;place-items:center;font-size:9.5px;font-weight:500;color:#fff;background-image:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3))}
/* a badge on a vivid fill of its own (the avatar colours, owner, 18 Nov) is drawn as it is, with that fill's ink (white,
   4.5:1 and APCA Lc 76 or more); any other colour is darkened a little so its white letter keeps its contrast */
.v2 .lva-fav span.vivid{background-image:none;color:var(--fav-ink,#fff)}
/* the first glyph (Copy) starts on the answer's edge, its hover box reaching out round it */
.v2 .lva-acts{display:flex;gap:2px;margin-left:-10px}
.v2 .lva-acts .ib{width:28px;height:28px}
/* the sources' number chips line up with the answer's words, each row's hover fill reaching 8px out round them */
.v2 .lva-ll{display:flex;flex-direction:column;gap:2px;margin:0 -8px}
.v2 .lva-s{display:flex;align-items:center;gap:10px;width:100%;padding:7px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;color:var(--fg);transition:background .2s}
.v2 .lva-s.on{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .lva-s:hover{background:var(--row)}}
.v2 .lva-s .n{width:17px;height:17px;border-radius:var(--r-tiny,5px);background:var(--hover);display:grid;place-items:center;font-size:10.5px;font-weight:500;color:var(--fg2);flex:none;transition:background .2s,color .2s}
.v2 .lva-s.on .n{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
@media (hover:hover) and (pointer:fine){.v2 .lva-s:hover .n{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}}
.v2 .lva-s .d{color:var(--muted);font-size:12px;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .lva-s>.i{color:var(--muted);opacity:0;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){.v2 .lva-s:hover>.i{opacity:1}}
.v2 .lva-fu{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.v2 .lva-fu button{display:inline-flex;align-items:center;gap:var(--s-2);padding:6px var(--s-3) 6px 10px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;color:var(--fg2);transition:color .2s,box-shadow .2s,transform .2s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .lva-fu button:hover{color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
/* Studio (owner, 18 Nov): words fade in without a blur, and the sources' badges are one neutral grey, not a colour each */
@keyframes v2-lvwc{from{opacity:0}to{opacity:1}}
:root[data-style="studio"] .v2 :is(.lva-p .w,.lva-p .cite){animation-name:v2-lvwc}
:root[data-style="studio"] .v2 .lva-fav span{background:var(--chip)!important;color:var(--fg2);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 :is(.lva-tb,.lva-sb,.lva-s,.lva-fu button){transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
/* ---------- Composer ---------- */
.v2 .cpx{display:flex;flex-direction:column;justify-content:flex-end;gap:14px;overflow-anchor:none;container-type:inline-size}
/* neither the composer nor the box it sits in anchors the page's scroll, so the page stays put as the thread grows and clears */
.v2.stage-in:has(>.cpx){overflow-anchor:none}
/* no room is kept for the conversation (owner, 18 Nov): the thread and the box grow together (grow()) and stay centred in the
   stage. Its menus open over it from their buttons, down when there is room and up when there isn't, and the composer never
   moves for them (the visitor's clicks never move it). grow() must not clip the menus */
.v2 .cpx.growing{overflow:visible}
/* its motion (the core's motion pieces, owner, 26 Nov): its menus grow out of their buttons and go back quicker, their rows
   settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); a chip's icon
   crossfades to the new pick and its box eases to the new words' width (.mx-w), as a file's name does when it can't be opened;
   a file's spinner crossfades to its icon; and the thread and the box grow on the spring (.mx-grow) */
.v2 .cpx-thread{display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .cpx-thread:empty{display:none}
/* a message is a small card: its files and words 16px from its edges */
.v2 .cpx-thread .bub{padding:var(--s-4)}
/* a message that is only attachments (owner, 19 Nov): the files sit on their own at the thread's right edge, as a chat app shows
   them, never in an empty bubble; with words they stay in the bubble, above the words */
.v2 .cpx-files{align-self:flex-end;max-width:85%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.v2 .cpx-ag{font-size:14px;color:var(--fg2);display:flex;gap:var(--s-2);align-items:center}
/* the composer is a component, not a field: a quiet hairline and a soft shadow, the same while you type in it */
.v2 .cpx-box{position:relative;background:var(--surface);border-radius:var(--r-box);box-shadow:var(--shadow);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .cpx-box{corner-shape:squircle;border-radius:var(--r-box-sq)}}
/* everything in the box sits 16px from its edges (owner, 18 Nov): the attachments, the text, Send's edge and the dictation
   line; the attach button's glyph lines up with the text, and the toolbar's controls share one centre line */
.v2 .cpx-att{display:flex;gap:6px;flex-wrap:wrap;padding:16px 16px 0}
.v2 .cpx-att:empty{display:none}
.v2 .cpx-att .fchip{transition:color .32s,background .32s}
/* a chip never runs past the box on a narrow card: it shrinks to the row and its name trims */
.v2 .cpx-att .fchip{max-width:100%;min-width:0}
.v2 .cpx-att .fchip .n{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .cpx-att .fchip .x,.v2 .cpx-att .fchip .rt{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;margin-right:-4px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .cpx-att .fchip .x:hover,.v2 .cpx-att .fchip .rt:hover{background:var(--row);color:var(--fg)}}
.v2 .cpx-att .fchip .spin{width:10px;height:10px}
.v2 .cpx-att .fchip.ld{color:var(--muted)}
.v2 .cpx-att .fchip.err{color:var(--bad);background:var(--bad-bg);box-shadow:none}
.v2 .cpx-att .fchip.err .rt{color:var(--bad)}
.v2 .cpx-ta{display:block;width:100%;border:0;outline:0;resize:none;background:none;color:var(--fg);font:inherit;font-size:14px;line-height:1.5;padding:14px 16px var(--s-1);min-height:54px;max-height:160px;transition:color .32s}
.v2 .cpx-ta::placeholder{color:var(--muted)}
.v2 .cpx-box[data-mode="voice"] .cpx-ta{color:var(--fg2)}
.v2 .cpx-rows{display:grid;padding:4px 16px 16px}
.v2 .cpx-bar,.v2 .cpx-voice{grid-area:1/1;display:flex;align-items:center;gap:var(--s-1);min-width:0;transition:opacity .32s var(--ease),transform .42s var(--ease)}
.v2 .cpx-voice{opacity:0;transform:translateY(6px);pointer-events:none;visibility:hidden;transition:opacity .32s var(--ease),transform .42s var(--ease),visibility 0s .32s}
.v2 .cpx-box[data-mode="voice"] .cpx-bar{opacity:0;transform:translateY(-6px);pointer-events:none}
.v2 .cpx-box[data-mode="voice"] .cpx-voice{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition-delay:0s}
.v2 .cpx-bar>.ib{width:32px;height:32px;flex:none}
.v2 .cpx-add[aria-expanded="true"]{background:var(--chip);color:var(--fg)}
.v2 .cpx-bar .chip{height:32px;padding:0 10px;gap:6px;background:none;min-width:0;font-size:13px;color:var(--fg2)}
.v2 .cpx-bar .chip[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .cpx-bar .chip:hover{background:var(--row);color:var(--fg)}}
.v2 .cpx-bar .chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .cpx-bar .chip>svg:last-child{color:var(--muted)}
/* a narrow box: the context and mode chips keep only their icon (the name stays for screen readers, and in the tooltip) */
/* (narrow, a chip shows only its icon and is a circle) */
@container (max-width:400px){.v2 .cpx-bar .chip{width:32px;padding:0;justify-content:center}.v2 .cpx-bar .chip>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.v2 .cpx-bar .chip>svg:last-child{display:none}}
.v2 .cpx-send{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent,#fff);flex:none;transition:opacity .32s,transform .16s,background .16s}
@media (hover:hover) and (pointer:fine){.v2 .cpx-send:hover{background:var(--accent-2)}}
.v2 .cpx-send[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
/* dictation: a red dot and a clock while it listens, the words arriving in the box, then Cancel or Done */
.v2 .cpx-rec{display:inline-flex;align-items:center;gap:var(--s-2);font-size:13px;color:var(--fg)}
.v2 .cpx-dot{width:8px;height:8px;border-radius:50%;background:var(--bad-mark);animation:v2-cpxrec 1.6s var(--ease-io) infinite}
@keyframes v2-cpxrec{50%{opacity:.35}}
.v2 .cpx-tm{font-size:13px;margin-left:var(--s-1)}
.v2 .cpx-voice .pill{flex:none}
.v2 .pp-plus,.v2 .pp-ctx,.v2 .pp-mode{width:264px}
.v2 .cpx-bar>.cpx-send{flex:none}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink Send alone presses */
.v2 .cpx :is(.ib,.pill,.chip):active,:root[data-style="studio"] .v2 .cpx .ib:active{transform:none}
@media (max-width:480px){.v2 .cpx-bar .cpx-ctx>span{max-width:88px}}
/* Studio (owner, 18 Nov): the box takes the card's 22px round corners and its toolbar's controls are 28px. Send is the ink
   button. A file that failed keeps the chip's white with its words and mark in red, no red fill */
:root[data-style="studio"] .v2 .cpx-box{border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .cpx-att{gap:4px}
:root[data-style="studio"] .v2 .cpx-bar>.ib{width:28px;height:28px}
:root[data-style="studio"] .v2 .cpx-bar .chip{height:28px;padding:0 8px;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@container (max-width:400px){:root[data-style="studio"] .v2 .cpx-bar .chip{width:28px;padding:0}}
:root[data-style="studio"] .v2 :is(.cpx-add,.cpx-bar .chip)[aria-expanded="true"]{background:var(--row-on)}
/* Send is the field's own Send (see the Studio section), 16px from the box's right and bottom edges, its corners the box's
   less those 16px */
:root[data-style="studio"] .v2 .cpx-send{width:28px;height:28px;border-radius:calc(var(--r-card) - 16px)}
:root[data-style="studio"] .v2 .cpx-att .fchip.err{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root[data-style="studio"] .v2 .cpx-att .fchip.err .ic{color:var(--bad-mark)}
/* ---------- Rich text editor ---------- */
/* a minimal editor for a draft an agent helps with: a formatting toolbar, the text, and a quiet foot with the word count and
   undo. Select text and press Ask AI (or the shortcut, or type / on a new line), and the suggestion streams in beside the
   text, the old words struck through, to accept with Tab or discard with Esc. The editor keeps one height, so it sits still */
.v2 .rte{position:relative;width:100%;display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);transition:box-shadow .32s;container:rte/inline-size;
  /* its quiet text (--rte-q: the word count, the placeholder, struck words) and secondary text (--rte-q2: the status, Discard,
     quotes). In dark mode the shared greys reach 4.5:1 but not APCA Lc 60 at these sizes, so they come up toward the text colour */
  --rte-q:var(--muted);--rte-q2:var(--fg2)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .rte{--rte-q:color-mix(in srgb,var(--fg) 74%,var(--surface));--rte-q2:color-mix(in srgb,var(--fg) 80%,var(--surface))}}
:root[data-theme="dark"] .v2 .rte{--rte-q:color-mix(in srgb,var(--fg) 74%,var(--surface));--rte-q2:color-mix(in srgb,var(--fg) 80%,var(--surface))}
/* the toolbar's buttons are 16px from the card's top, left and right edges and from the hairline under them, measured by
   their boxes (owner, 23 Nov: "this is too close to the side"): the first format's box starts where the text does, 16px in,
   and Ask AI's box ends 16px from the right edge, at every width */
.v2 .rte-tb{display:flex;align-items:center;gap:2px;min-width:0;padding:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .rte-b{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:var(--r-sm);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .rte-b:hover{background:var(--row);color:var(--fg)}}
/* a format the selection has: the accent's tint, with the icon in the accent's text colour */
.v2 .rte-b:is([aria-pressed="true"],.on){background:var(--accent-bg);color:var(--accent-fg)}
.v2 .rte-b:disabled,.v2 .rte-ai:disabled{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .rte-sep{width:1px;height:16px;margin:0 5px;flex:none;background:var(--line)}
.v2 .rte-ai{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px 0 9px;flex:none;border-radius:var(--r-pill);font-size:13px;color:var(--fg);transition:background var(--t-fast),color var(--t-fast)}
.v2 .rte-ai .i{color:var(--accent-fg)}
.v2 .rte-ai[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .rte-ai:hover{background:var(--row)}}
.v2 .rte-ai:disabled .i{color:inherit}
/* the text: one quiet size, a heading set apart by weight and room rather than size, and nothing heavier than medium */
.v2 .rte-body{position:relative;height:256px;overflow-y:auto;padding:14px var(--s-4) var(--s-4);outline:0;font-size:14px;line-height:1.65;color:var(--fg);white-space:pre-wrap;overflow-wrap:break-word;caret-color:var(--accent-fg);cursor:text}
.v2 .rte-body>*{margin:0;padding:0}
.v2 .rte-body>*+*{margin-top:6px}
.v2 .rte-body>*+h2{margin-top:14px}
.v2 .rte-body h2{font-size:14px;font-weight:500;line-height:1.5;color:var(--fg)}
.v2 .rte-body :is(b,strong){font-weight:500}
.v2 .rte-body i{font-style:italic}
.v2 .rte-body a{color:var(--accent-fg);text-decoration:underline;text-decoration-color:var(--accent-mark);text-underline-offset:2px;cursor:text}
.v2 .rte-body code{font-family:var(--mono);font-size:12.5px;padding:1px var(--s-1);border-radius:var(--r-tiny,5px);background:var(--chip);color:var(--fg)}
.v2 .rte-body :is(ul,ol){padding-left:22px}
.v2 .rte-body ul{list-style:disc}
.v2 .rte-body ol{list-style:decimal}
.v2 .rte-body li{padding-left:2px}
.v2 .rte-body li+li{margin-top:2px}
.v2 .rte-body li::marker{color:var(--rte-q2)}
.v2 .rte-body blockquote{padding-left:14px;box-shadow:inset 2px 0 0 var(--rte-q);color:var(--rte-q2)}
/* quote lines one after another read as one quote */
.v2 .rte-body blockquote+blockquote{margin-top:0;padding-top:6px}
.v2 .rte-body.empty::before{content:attr(data-placeholder);position:absolute;left:16px;right:16px;top:14px;color:var(--rte-q);pointer-events:none}
/* the suggestion: the words it replaces struck through, the new ones in the accent's tint as they arrive */
.v2 .rte-old{color:var(--rte-q);text-decoration:line-through;text-decoration-color:var(--rte-q)}
.v2 .rte-new{color:var(--accent-fg);background:var(--sel);border-radius:var(--r-tiny,3px)}
.v2 .rte-old+.rte-new{margin-left:.3em}
.v2 .rte-new .w{animation:v2-rtew .4s var(--ease) both}
@keyframes v2-rtew{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
/* the text a menu or the link field is for stays marked while the focus is in them */
.v2 ::highlight(rte-pick){background-color:color-mix(in srgb,var(--accent-mark) 24%,transparent)}
/* the foot's buttons (Undo and Redo, Discard and Accept) are 16px from the hairline over them, the card's bottom edge and
   its right edge, measured by their boxes, and its words start where the text does, 16px in (owner, 23 Nov) */
.v2 .rte-ft{display:grid;align-items:center;min-height:calc(28px + 2 * var(--s-4) + 1px);padding:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .rte-idle,.v2 .rte-rev{grid-area:1/1;display:flex;align-items:center;gap:var(--s-2);min-width:0;transition:opacity .25s var(--ease),transform .35s var(--ease),visibility 0s}
.v2 .rte-rev,.v2 .rte[data-st="review"] .rte-idle{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s var(--ease),transform .35s var(--ease),visibility 0s .35s}
.v2 .rte-rev{transform:translateY(4px)}
.v2 .rte[data-st="review"] .rte-idle{transform:translateY(-4px)}
.v2 .rte[data-st="review"] .rte-rev{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
.v2 .rte-wc,.v2 .rte-hint{font-size:12px;color:var(--rte-q);white-space:nowrap}
.v2 .rte-hint{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .rte-hint::before{content:"·";margin-right:var(--s-2)}
.v2 .rte-idle .ib{width:28px;height:28px;flex:none}
.v2 .rte-idle .ib:disabled{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .rte-st{display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0;font-size:13px;color:var(--rte-q2);white-space:nowrap}
.v2 .rte-st>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .rte-st .i{color:var(--accent-fg)}
.v2 .rte-rev .pill{flex:none}
.v2 .rte-rev .pill.ghost,.v2 .rte-rev .kbd,.v2 .rte-menu .ph{color:var(--rte-q2)}
@media (hover:hover) and (pointer:fine){.v2 .rte-rev .pill.ghost:hover{color:var(--fg)}}
.v2 .rte-menu{width:228px}
.v2 .rte-menu .mi[aria-disabled="true"],.v2 .rte-menu .mi[aria-disabled="true"] .i{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .rte-menu .mi:focus-visible{outline-offset:-2px;background:var(--row)}
.v2 .rte-lnk{display:flex;align-items:center;gap:6px;width:304px;max-width:calc(100% - 12px);min-width:0;padding:6px}
.v2 .rte-url{flex:1;min-width:0;height:32px;padding:0 10px;border:0;border-radius:var(--r-field);outline:0;background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--fg);font-size:13px}
@supports (corner-shape:squircle){.v2 .rte-url{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .rte-url::placeholder{color:var(--rte-q)}
.v2 .rte-url:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .rte-url[aria-invalid="true"]{box-shadow:inset 0 0 0 1px var(--bad)}
.v2 .rte-lnk .pill{flex:none}
.v2 .rte-lnk .ib{width:30px;height:30px;flex:none}
/* the link field's buttons are as tall as the field, so the row's three parts are one height */
.v2 .rte-lnk .pill{height:32px;padding:0 14px}
.v2 .rte-lnk .ib{width:32px;height:32px}
/* nothing in the editor's chrome shrinks on a click (owner, 18 Nov) */
.v2 :is(.rte-idle,.rte-lnk) .ib:active,.v2 .rte-rev .pill.ghost:active{transform:none}
:root[data-style="studio"] .v2 :is(.rte-idle,.rte-lnk) .ib:active{transform:none}
/* the small Ask AI button over a selection, for the mouse; the keyboard has the toolbar's button and its shortcut */
.v2 .rte-ask{position:absolute;left:0;top:0;z-index:6;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px 0 9px;border-radius:var(--r-pill);background:var(--raised);box-shadow:var(--shadow-pop);font-size:12.5px;color:var(--fg);white-space:nowrap;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .18s var(--ease),transform .3s var(--ease),visibility 0s .3s}
.v2 .rte-ask .i{color:var(--accent-fg)}
@media (hover:hover) and (pointer:fine){.v2 .rte-ask:hover{background:color-mix(in srgb,var(--fg) 4%,var(--raised))}}
.v2 .rte-ask.show{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.v2 .rte-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container rte (max-width:520px){.v2 .rte-hint{display:none}}
/* in a narrow editor Ask AI is its icon alone, in a 32px-wide box that ends 16px from the edge like the wide one */
@container rte (max-width:400px){.v2 .rte-ai{width:32px;padding:0;justify-content:center}.v2 .rte-ai span{display:none}.v2 .rte-sep{margin:0 2px}.v2 .rte-rev .kbd{display:none}}
@container rte (max-width:330px){.v2 .rte-tb{gap:0}.v2 .rte-b{width:28px}}
/* on a phone of 360 the formats narrow a little more, so the toolbar keeps its 16px sides */
@container rte (max-width:300px){.v2 .rte-b{width:26px}.v2 .rte-sep{margin:0 1px}}
@container rte (max-width:280px){.v2 .rte-b{width:24px}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rte-b:is([aria-pressed="true"],.on){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 50%,transparent)}
/* Blueprint's lime tint is faint on white, so the suggestion also gets a hairline of the accent's mark under it */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rte-new{background:var(--accent-bg);box-shadow:inset 0 -1px 0 var(--accent-mark)}
/* Studio (owner, 18 Nov): the toolbar is an off-white head strip and the foot an off-white foot strip, each with a hairline
   toward the text. Their controls are 28px circles and pills 16px from the card's edges and the strip's hairline (owner,
   23 Nov), so every one in a row is as tall as the next and shares its centre line; the words in the foot (the word count, the
   status) start where the text does, 16px in. The chrome is
   monochrome and flat: the formats take Studio's one hover, and a format the selection has its stronger fill (owner, 21 Nov:
   never a ring), Ask AI is a secondary button (a hairline and a
   light fill), the status is ink, and Accept is the ink button with its key on it. The suggestion keeps the accent: the new
   words in its tint, the old ones struck through. Words arrive with a fade, no blur */
:root[data-style="studio"] .v2 .rte-tb{gap:4px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0;box-shadow:none}
:root[data-style="studio"] .v2 .rte-b{width:28px;height:28px;border-radius:50%;color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rte-b:hover{background:var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .rte-b:is([aria-pressed="true"],.on){background:var(--row-on);color:var(--fg)}
:root[data-style="studio"] .v2 .rte-b:disabled{background:none;box-shadow:none;color:var(--dis)}
:root[data-style="studio"] .v2 .rte-sep{margin:0 4px}
:root[data-style="studio"] .v2 .rte-ai{height:28px;padding:0 12px 0 10px;font-weight:500;background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .rte-ai .i,:root[data-style="studio"] .v2 .rte-ask .i,:root[data-style="studio"] .v2 .rte-st .i{color:var(--fg)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rte-ai:is(:hover,[aria-expanded="true"]){box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .rte-ai:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .rte-ai:disabled{color:var(--dis)}
:root[data-style="studio"] .v2 .rte-ai:disabled .i{color:inherit}
:root[data-style="studio"] .v2 .rte-body{caret-color:var(--fg)}
:root[data-style="studio"] .v2 .rte-ft{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card);box-shadow:none}
:root[data-style="studio"] .v2 .rte-idle .ib{width:28px;height:28px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rte-idle .ib:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .rte-st{color:var(--fg2)}
:root[data-style="studio"] .v2 .rte-rev{gap:8px;margin-right:0}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rte-rev .pill.ghost:hover{background:var(--row)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rte-rev .pill.ghost:hover .kbd{background:var(--surface)}}
/* the key on the ink button: a faint light chip, in the button's own text colour */
:root[data-style="studio"] .v2 .rte-ok:not([disabled]) .kbd{background:color-mix(in srgb,var(--on-btn) 18%,transparent);color:var(--on-btn)}
@keyframes v2-rtewc{from{opacity:0}to{opacity:1}}
:root[data-style="studio"] .v2 .rte-new .w{animation:v2-rtewc var(--t-slow) var(--ease) both}
@container rte (max-width:400px){:root[data-style="studio"] .v2 .rte-ai{width:28px;padding:0}:root[data-style="studio"] .v2 .rte-ft{padding-left:16px}}
/* on phones the toolbar keeps its 16px sides (owner, 23 Nov): the format buttons narrow instead */
@container rte (max-width:330px){:root[data-style="studio"] .v2 .rte-tb{gap:0}:root[data-style="studio"] .v2 .rte-sep{margin:0 2px}}
@container rte (max-width:300px){:root[data-style="studio"] .v2 .rte-b{width:26px}:root[data-style="studio"] .v2 .rte-ai{width:26px}:root[data-style="studio"] .v2 .rte-sep{margin:0 1px}}
@container rte (max-width:280px){:root[data-style="studio"] .v2 .rte-b,:root[data-style="studio"] .v2 .rte-ai{width:24px}}
/* ---------- Tool call ---------- */
.v2 .tcx{display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .tcx-calls{display:flex;flex-direction:column;gap:var(--s-2)}
/* the answer appears only once every call is back (no room is kept for it): the list grows to take it (grow()) and it fades
   in, so nothing jumps */
.v2 .tcx-end:not(.in){display:none}
.v2 .tcx-calls{margin-inline:-8px}
.v2 .tcx-h{display:flex;align-items:center;gap:10px;width:100%;padding:6px var(--s-2);border-radius:calc(10px * var(--rk));text-align:left;font-size:13px;transition:background .2s}
@media (hover:hover) and (pointer:fine){.v2 .tcx-h:hover{background:var(--row)}}
.v2 .tcx-ic{width:24px;height:24px;border-radius:var(--r-sm);background:var(--chip);display:grid;place-items:center;color:var(--fg2);flex:none}
/* a call's name is an interface label, in the interface font (no monospace outside code): the tool's server muted, then the
   tool. Only the JSON that went in and came back is code */
.v2 .tcx-n{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .tcx-n b{font-weight:500;color:var(--fg)}
.v2 .tcx-n span{color:var(--muted)}
.v2 .tcx-ms{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.v2 .tcx-ms .shim{font-size:inherit}
.v2 .tcx-ms .ok{display:grid;color:var(--ok)}
.v2 .tcx-chev{color:var(--muted);transition:transform .45s var(--ease)}
.v2 .tcx-c.open .tcx-chev{transform:rotate(180deg)}
.v2 .tcx-io{padding:2px var(--s-2) var(--s-2) 42px;display:grid;gap:var(--s-2)}
.v2 .tcx-l{font-size:11.5px;color:var(--muted);margin-bottom:var(--s-1)}
.v2 .tcx-io pre{margin:0;padding:9px 11px;border-radius:calc(10px * var(--rk));background:var(--chip);font-family:var(--mono);font-size:11.5px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.v2 .tcx-io .k{color:var(--pb)}.v2 .tcx-io .s{color:var(--pm)}.v2 .tcx-io .n{color:var(--pp)}
/* Studio (owner, 17 and 18 Nov): each call is a row with Studio's 10px corners and the one hover, its tool on a white tile with a
   hairline, the JSON in 10px boxes and the tick in the vivid green */
:root[data-style="studio"] .v2 .tcx-h{border-radius:10px;transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .tcx-ic{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .tcx-io pre{border-radius:10px}
:root[data-style="studio"] .v2 .tcx-ms .ok{color:var(--ok-mark)}
:root[data-style="studio"] .v2 .tcx-chev{transition:transform var(--t) var(--ease)}
/* ---------- Tool call designs ---------- */
/* the homepage card's design switch: Default is the component above, and Call stack, Inline and Inspector are the directions
   under review, each under .tcx[data-d]. A tool shows as its icon, an app as its own mark. Colour is kept for meaning: the
   green tick of a call that returned, the accent on the one that is running, and amber for the edit that waits for you */
.v2 .dm.tcx-dm>.dm-main{align-items:stretch}
/* a call's name is an interface label in the interface font (no monospace outside code): its server muted, then the tool */
.v2 .tcx[data-d] code{font-family:inherit;font-size:13px;font-weight:500}
.v2 .tcx[data-d] .tcx-tile{position:relative;width:26px;height:26px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none;background:var(--chip);color:var(--fg2);transition:background .25s}
.v2 .tcx[data-d] .tcx-tile.app{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
.v2 .tcx[data-d] .tcx-tile .brand{width:14px;height:14px}
.v2 .tcx[data-d] .tcx-json{margin:0;padding:var(--s-3);border-radius:calc(10px * var(--rk));background:var(--chip);font-family:var(--mono);font-size:11.5px;font-weight:500;line-height:1.7;white-space:break-spaces;word-break:break-word;color:var(--fg2)}
.v2 .tcx[data-d] .tcx-json .k{color:var(--muted)}.v2 .tcx[data-d] .tcx-json :is(.s,.n,.b){color:var(--fg)}
.v2 .tcx[data-d] .tcx-json .cur{display:inline-block;width:6px;height:12px;vertical-align:-2px;background:var(--fg2);animation:v2-bpblink 1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d] .tcx-tile{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d] .tcx-tile.app{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent)}

/* Call stack: the calls on a rail that fills as each returns; open one to stream its output, copy it or run it again */
/* the answer appears only once every call is back, and the list grows to take it (grow()) */
.v2 .tcx[data-d="stack"] .tca-end:not(.in){display:none}
.v2 .tcx[data-d="stack"] .tca-list{list-style:none;margin:0 -8px;padding:0;display:flex;flex-direction:column;gap:2px}
.v2 .tcx[data-d="stack"] .tca-c{position:relative;border-radius:var(--r-in);transition:background .25s}
.v2 .tcx[data-d="stack"] .tca-c.open{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .tcx[data-d="stack"] .tca-c:hover{background:var(--row)}}
/* on the grey of a row you point at or open, its tile turns white */
@media (hover:hover) and (pointer:fine){.v2 .tcx[data-d="stack"] .tca-c:is(:hover,.open) .tcx-tile:not(.app){background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent)}}
/* the rail: each call joins the next with a light grey line, and its stretch turns a step darker once it has returned */
.v2 .tcx[data-d="stack"] .tca-rl{position:absolute;left:20px;top:38px;bottom:-8px;width:2px;border-radius:1px;background:color-mix(in srgb,var(--line) 85%,transparent);pointer-events:none}
.v2 .tcx[data-d="stack"] .tca-rl i{position:absolute;inset:0;border-radius:inherit;background:var(--rail);transform-origin:top;transform:scaleY(0);transition:transform .6s var(--ease)}
.v2 .tcx[data-d="stack"] .tca-c[data-s="done"] .tca-rl i{transform:none}
.v2 .tcx[data-d="stack"] .tca-c:last-child .tca-rl{display:none}
.v2 .tcx[data-d="stack"] .tca-h{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px;border-radius:var(--r-in);text-align:left}
.v2 .tcx[data-d="stack"] .tca-h:focus-visible{outline-offset:-2px;border-radius:var(--r-in)}
.v2 .tcx[data-d="stack"] .tca-c .tcx-tile{z-index:1}
/* a call still queued is quieter: its tool's icon in the muted grey, which keeps 3:1 on its tile */
.v2 .tcx[data-d="stack"] .tca-c[data-s="wait"] .tcx-tile{color:var(--muted)}
.v2 .tcx[data-d="stack"] .tca-c[data-s="run"] .tcx-tile{animation:v2-tcabreathe 1.5s var(--ease-io) infinite}
@keyframes v2-tcabreathe{50%{opacity:.5}}
.v2 .tcx[data-d="stack"] .tca-n{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px}
.v2 .tcx[data-d="stack"] .tca-n code{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg)}
.v2 .tcx[data-d="stack"] .tca-n code span{color:var(--muted)}
.v2 .tcx[data-d="stack"] .tca-n .a{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tcx[data-d="stack"] .tca-c[data-s="wait"] .tca-n code{color:var(--fg2)}
.v2 .tcx[data-d="stack"] .tca-r{display:flex;align-items:center;gap:6px;flex:none;font-size:12px;color:var(--muted)}
.v2 .tcx[data-d="stack"] .tca-r .g{width:14px;height:14px;display:grid;place-items:center}
.v2 .tcx[data-d="stack"] .tca-r .g .spin{width:11px;height:11px;color:var(--accent-mark)}
.v2 .tcx[data-d="stack"] .tca-r .ok{color:var(--ok);display:grid}
.v2 .tcx[data-d="stack"] .tca-r .shim{font-size:inherit}
.v2 .tcx[data-d="stack"] .tca-r .ok svg{animation:v2-tcapop .4s var(--ease)}
@keyframes v2-tcapop{from{transform:scale(.3);opacity:0}60%{transform:scale(1.2)}}
.v2 .tcx[data-d="stack"] .tca-cv{color:var(--muted);display:grid;transition:transform .4s var(--ease)}
.v2 .tcx[data-d="stack"] .tca-h[aria-expanded="true"] .tca-cv{transform:rotate(180deg)}
.v2 .tcx[data-d="stack"] .tca-io{display:flex;flex-direction:column;gap:var(--s-2);padding:0 10px 10px 44px}
.v2 .tcx[data-d="stack"] .tca-bar{display:flex;align-items:center;gap:4px}
.v2 .tcx[data-d="stack"] .tca-bar .seg2 button{height:24px;font-size:12px;padding:0 10px}
.v2 .tcx[data-d="stack"] .tca-bar .ib{width:26px;height:26px}
.v2 .tcx[data-d="stack"] .tca-bar .sp{flex:1}
.v2 .tcx[data-d="stack"] .tca-c.open .tca-bar .seg2{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent)}
.v2 .tcx[data-d="stack"] .tca-c.open .tca-bar .seg2 .knob{background:var(--chip);box-shadow:none}
.v2 .tcx[data-d="stack"] .tca-c.open .tcx-json{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent)}
.v2 .tcx[data-d="stack"] .tca-note{font-size:11.5px;color:var(--muted)}
.v2 .tcx[data-d="stack"] .tca-c.again .tca-r .num{animation:v2-tcaagain .6s var(--ease)}
@keyframes v2-tcaagain{40%{transform:translateY(-2px)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="stack"] .tca-rl{width:1px;left:20.5px;background:repeating-linear-gradient(var(--rail) 0 3px,transparent 3px 6px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="stack"] .tca-rl i{background:var(--faint);transition:transform .35s steps(4,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="stack"] .tca-c[data-s="run"] .tcx-tile{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="stack"] .tca-c.open{background:repeating-linear-gradient(135deg,transparent 0 6px,var(--grid) 6px 7px),var(--row)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="stack"] .tca-r .ok svg{animation:none}

/* Inline: the calls as chips inside the agent's sentence. Pointing at one previews it, pressing it opens the call under
   the sentence */
.v2 .tcx[data-d="inline"]{position:relative}
.v2 .tcx[data-d="inline"] .tcb-who{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-av{width:22px;height:22px;border-radius:calc(7px * var(--rk));display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .tcx[data-d="inline"] .tcb-av .i{width:12px;height:12px}
.v2 .tcx[data-d="inline"] .tcb-ws{display:inline-flex;align-items:center;gap:5px}
.v2 .tcx[data-d="inline"] .tcb-ws .shim{font-size:inherit}
.v2 .tcx[data-d="inline"] .tcb-p{margin:0;font-size:14px;line-height:30px;color:var(--fg);text-wrap:pretty}
.v2 .tcx[data-d="inline"] .tcb-p .w{animation:v2-tcbw .4s var(--ease) backwards}
@keyframes v2-tcbw{from{opacity:0}}
/* a call inside the sentence: the site's file chip with its tool's icon and name, a spinner while it runs, then how long
   it took. The open one keeps the chip's hover look */
.v2 .tcx[data-d="inline"] .tcb-k{margin:0 2px 0 0;line-height:1;vertical-align:middle;gap:5px;animation:v2-tcbk .45s var(--ease) backwards}
@keyframes v2-tcbk{from{opacity:0;transform:scale(.85)}}
.v2 .tcx[data-d="inline"] .tcb-k[aria-expanded="true"]{background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
.v2 .tcx[data-d="inline"] .tcb-k .t{width:16px;height:16px;border-radius:4px;display:grid;place-items:center;flex:none;color:var(--fg2)}
.v2 .tcx[data-d="inline"] .tcb-k .t .i{width:11px;height:11px}
.v2 .tcx[data-d="inline"] .tcb-k .t .brand{width:12px;height:12px}
.v2 .tcx[data-d="inline"] .tcb-k .t .spin{width:10px;height:10px}
.v2 .tcx[data-d="inline"] .tcb-k .m{color:var(--muted);font-variant-numeric:tabular-nums}
.v2 .tcx[data-d="inline"] .tcb-k .m:empty{display:none}
.v2 .tcx[data-d="inline"] .tcb-k[data-s="run"] .t .spin{color:var(--accent-mark)}
.v2 .tcx[data-d="inline"] .tcb-k:focus-visible{outline-offset:1px;border-radius:var(--r-pill)}
/* the open call: what went in, the tool, what came back */
.v2 .tcx[data-d="inline"] .tcb-dr{display:flex;flex-direction:column;gap:10px;padding:var(--s-4);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow)}
.v2 .tcx[data-d="inline"] .tcb-dh{display:flex;align-items:center;gap:var(--s-2);min-width:0}
.v2 .tcx[data-d="inline"] .tcb-dh code{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tcx[data-d="inline"] .tcb-dh code span{color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-dh .num{font-size:12px;color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-dh .ib{width:26px;height:26px}
.v2 .tcx[data-d="inline"] .tcb-flow{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:stretch;gap:6px}
.v2 .tcx[data-d="inline"] .tcb-flow .tcx-json{min-height:64px;font-size:11px}
.v2 .tcx[data-d="inline"] .tcb-flow .l{display:block;margin-bottom:4px;font-size:11.5px;color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-wire{position:relative;align-self:center;height:2px;margin-top:18px;border-radius:1px;background:var(--line)}
.v2 .tcx[data-d="inline"] .tcb-wire b{position:absolute;right:-1px;top:-3px;border:4px solid transparent;border-left:5px solid var(--rail);border-right:0}
.v2 .tcx[data-d="inline"] .tcb-wire i{position:absolute;left:0;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--muted);opacity:0}
.v2 .tcx[data-d="inline"] .tcb-dw.go .tcb-wire i{animation:v2-tcbpk 1.1s var(--ease-io) .2s}
@keyframes v2-tcbpk{0%{opacity:0;transform:translateX(-4px)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(26px)}}
.v2 .tcx[data-d="inline"] .tcb-sum{display:flex;align-items:center;gap:var(--s-2);font-size:12.5px;color:var(--muted);min-height:20px}
.v2 .tcx[data-d="inline"] .tcb-hc{position:absolute;z-index:20;width:236px;max-width:calc(100% - 8px);padding:10px;border-radius:var(--r-in);background:var(--raised);box-shadow:var(--shadow-pop);font-size:12px;pointer-events:none;animation:v2-popin .3s var(--ease)}
.v2 .tcx[data-d="inline"] .tcb-hc[hidden]{display:none}
.v2 .tcx[data-d="inline"].growing:has(.tcb-hc:not([hidden])){overflow:visible}
.v2 .tcx[data-d="inline"] .tcb-hc code{display:block;margin-bottom:6px;font-size:12.5px}
.v2 .tcx[data-d="inline"] .tcb-hc code span{color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-hc .row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 8px;line-height:1.5}
.v2 .tcx[data-d="inline"] .tcb-hc .row span:nth-child(odd){color:var(--muted)}
.v2 .tcx[data-d="inline"] .tcb-hc .row span:nth-child(even){color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tcx[data-d="inline"] .tcb-hc .f{margin-top:6px;color:var(--muted)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inline"] .tcb-k{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inline"] .tcb-p .w{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inline"] .tcb-wire{height:1px;background:repeating-linear-gradient(90deg,var(--faint) 0 3px,transparent 3px 5px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inline"] .tcb-dw.go .tcb-wire i{animation:v2-tcbpkbp .8s steps(4,end) .2s;width:6px;height:6px;top:-2.5px}
@keyframes v2-tcbpkbp{0%{opacity:1;transform:none}99%{opacity:1;transform:translateX(26px)}100%{opacity:0}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inline"] .tcb-hc{animation:v2-bpin .2s var(--ease)}

/* Inspector: a strip of calls, each as wide as it took, over the call you pick, read as tables or JSON. The strip's parts
   are white like the site's file chips, with the tool's own icon; the one running fills a line in the accent, and the edit
   that waits for you carries an amber dot and the site's amber tag, on white, never a tinted fill */
.v2 .tcx[data-d="inspector"]{padding:var(--s-4)}
.v2 .tcx[data-d="inspector"] .tcc-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.v2 .tcx[data-d="inspector"] .tcc-ht{display:flex;flex-direction:column;min-width:0}
.v2 .tcx[data-d="inspector"] .tcc-ht b{font-weight:500;font-size:14px;line-height:20px}
.v2 .tcx[data-d="inspector"] .tcc-st{font-size:12.5px;line-height:18px;color:var(--muted);white-space:nowrap}
.v2 .tcx[data-d="inspector"] .tcc-mode button{height:24px;font-size:12px;padding:0 10px}
.v2 .tcx[data-d="inspector"] .tcc-strip{display:flex;gap:var(--s-1)}
.v2 .tcx[data-d="inspector"] .tcc-s{position:relative;flex:1 1 0;min-width:max-content;display:flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:var(--r-sm);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);text-align:left;font-size:12.5px;color:var(--fg);overflow:hidden;transition:background .25s,box-shadow .25s,color .25s}
@supports (corner-shape:squircle){.v2 .tcx[data-d="inspector"] .tcc-s{corner-shape:squircle;border-radius:var(--r-field-sq)}}
@media (hover:hover) and (pointer:fine){.v2 .tcx[data-d="inspector"] .tcc-s:hover{background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
/* the call you picked: white with a grey edge a step stronger, never a grey fill (owner, 29 Oct) */
.v2 .tcx[data-d="inspector"] .tcc-s[aria-selected="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
.v2 .tcx[data-d="inspector"] .tcc-s:focus-visible{outline-offset:-2px}
.v2 .tcx[data-d="inspector"] .tcc-ic{display:grid;place-items:center;width:14px;height:14px;flex:none;color:var(--fg2)}
.v2 .tcx[data-d="inspector"] .tcc-ic .brand{width:13px;height:13px}
.v2 .tcx[data-d="inspector"] .tcc-s .n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tcx[data-d="inspector"] .tcc-s[data-s="wait"],.v2 .tcx[data-d="inspector"] .tcc-s[data-s="skip"]{color:var(--muted)}
.v2 .tcx[data-d="inspector"] .tcc-s:is([data-s="wait"],[data-s="skip"]) .tcc-ic{color:var(--muted)}
/* what a part is doing: a dot after its name while it waits for you (amber) or after you said no (red), and a line along
   its foot that fills in the accent while it runs */
.v2 .tcx[data-d="inspector"] .tcc-dt{display:none;margin-left:auto}
.v2 .tcx[data-d="inspector"] .tcc-s[data-s="ask"] .tcc-dt{display:inline-block;color:var(--warn);animation:v2-tcabreathe 1.5s var(--ease-io) infinite}
.v2 .tcx[data-d="inspector"] .tcc-s[data-s="deny"] .tcc-dt{display:inline-block;color:var(--bad)}
.v2 .tcx[data-d="inspector"] .tcc-pr{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent-mark);transform-origin:left;transform:scaleX(var(--p,0));opacity:0;transition:transform .1s linear,opacity .3s}
.v2 .tcx[data-d="inspector"] .tcc-s[data-s="run"] .tcc-pr{opacity:1}
/* narrow, each part shows its mark alone, with its dot beside it on the same centre line */
@container (max-width:340px){.v2 .tcx[data-d="inspector"] .tcc-s .n{display:none}.v2 .tcx[data-d="inspector"] .tcc-s{justify-content:center;min-width:40px}.v2 .tcx[data-d="inspector"] .tcc-dt{margin-left:0}}
/* the call you picked, under a hairline: its name and state, then what went in and what came back as plain lists */
/* (it keeps no room for a taller call: the card grows and shrinks to the call you pick, eased (grow()), centred in its stage) */
.v2 .tcx[data-d="inspector"] .tcc-view{position:relative;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .tcx[data-d="inspector"] .tcc-in{display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-3) 0 0}
.v2 .tcx[data-d="inspector"] .tcc-in::-webkit-scrollbar{display:none}
.v2 .tcx[data-d="inspector"] .tcc-in.go{animation:v2-tccin .4s var(--ease)}
@keyframes v2-tccin{from{opacity:0;transform:translateY(6px)}}
.v2 .tcx[data-d="inspector"] .tcc-dh{display:flex;align-items:center;gap:var(--s-2);min-width:0}
.v2 .tcx[data-d="inspector"] .tcc-dh .tcx-tile{width:24px;height:24px;background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 60%,transparent)}
.v2 .tcx[data-d="inspector"] .tcc-dh .tcx-tile .brand{width:13px;height:13px}
.v2 .tcx[data-d="inspector"] .tcc-dh code{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tcx[data-d="inspector"] .tcc-dh code span{color:var(--muted)}
.v2 .tcx[data-d="inspector"] .tcc-dh .tag .spin{width:9px;height:9px}
.v2 .tcx[data-d="inspector"] .tcc-dh .num{font-size:12px;color:var(--muted)}
.v2 .tcx[data-d="inspector"] .tcc-sec{display:flex;flex-direction:column;gap:6px}
.v2 .tcx[data-d="inspector"] .tcc-sec .l{display:flex;align-items:center;gap:6px;min-height:24px;font-size:11.5px;color:var(--muted)}
/* the copy button is the row's last control: its glyph ends on the content's right edge, its hover box reaching out round it */
.v2 .tcx[data-d="inspector"] .tcc-sec .l .ib{width:24px;height:24px;margin:0 -6px 0 auto}
.v2 .tcx[data-d="inspector"] .tcc-kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;font-size:12.5px;line-height:1.5}
.v2 .tcx[data-d="inspector"] .tcc-kv>span:nth-child(odd){color:var(--muted)}
.v2 .tcx[data-d="inspector"] .tcc-kv>span:nth-child(even){color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.v2 .tcx[data-d="inspector"] .tcc-tb{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.v2 .tcx[data-d="inspector"] .tcc-tb th{text-align:left;font-weight:400;color:var(--muted);font-size:11.5px;padding:0 12px 4px 0}
.v2 .tcx[data-d="inspector"] .tcc-tb td{padding:5px 12px 5px 0;color:var(--fg);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .tcx[data-d="inspector"] .tcc-wait{display:flex;flex-direction:column;gap:8px;padding:4px 0}
.v2 .tcx[data-d="inspector"] .tcc-wait i{display:block;height:8px;border-radius:4px;background:var(--chip);animation:v2-tccpulse 1.4s var(--ease-io) infinite}
.v2 .tcx[data-d="inspector"] .tcc-wait i+i{animation-delay:.2s}
@keyframes v2-tccpulse{50%{opacity:.45}}
/* the call that would change your files: what it would do, the change itself, and the choice, all on white */
.v2 .tcx[data-d="inspector"] .tcc-ask{display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .tcx[data-d="inspector"] .tcc-ask p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--fg)}
.v2 .tcx[data-d="inspector"] .tcc-ask .fchip{height:24px;padding:0 9px 0 7px;font-size:12px}
.v2 .tcx[data-d="inspector"] .tcc-ask .tcx-json{padding:6px 10px;font-size:11px}
.v2 .tcx[data-d="inspector"] .tcc-ask .tcx-json .a{color:var(--add)}.v2 .tcx[data-d="inspector"] .tcc-ask .tcx-json .x{color:var(--del)}
.v2 .tcx[data-d="inspector"] .tcc-acts{display:flex;flex-wrap:wrap;gap:6px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inspector"] .tcc-pr{transition:transform .1s linear,opacity .2s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inspector"] .tcc-s[data-s="ask"] .tcc-dt{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inspector"] .tcc-in.go{animation:v2-bpin .3s var(--ease)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tcx[data-d="inspector"] .tcc-wait i{animation:none;background:repeating-linear-gradient(90deg,var(--chip) 0 4px,transparent 4px 6px)}
/* Studio (owner, 17 and 18 Nov), the three directions alike: tools on white tiles with a hairline (an app's mark keeps its own
   colours), rows and boxes with Studio's 10px corners, the one hover and, for the call you picked, the one stronger fill in its
   own shape (never an edge or a hue), the JSON in 10px boxes, ticks in the vivid green, and the open call and the preview with
   their content 16px from their edges */
:root[data-style="studio"] .v2 .tcx[data-d] .tcx-tile:not(.app){background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .tcx[data-d] .tcx-tile.app{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .tcx[data-d] .tcx-json{border-radius:10px}
:root[data-style="studio"] .v2 .tcx[data-d="stack"] :is(.tca-c,.tca-h){border-radius:10px}
:root[data-style="studio"] .v2 .tcx[data-d="stack"] .tca-c{transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tcx[data-d="stack"] .tca-c:is(:hover,.open) .tcx-tile:not(.app){box-shadow:inset 0 0 0 1px var(--hair)}}
:root[data-style="studio"] .v2 .tcx[data-d="stack"] .tca-r .ok{color:var(--ok-mark)}
:root[data-style="studio"] .v2 .tcx[data-d="stack"] .tca-cv{transition:transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .tcx[data-d="stack"] .tca-c.open :is(.tcx-json,.tca-bar .seg2){box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .tcx[data-d="inline"] .tcb-dr{border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .tcx[data-d="inline"] .tcb-hc{padding:12px;border-radius:calc(14px * var(--rk-l,var(--rk)))}
:root[data-style="studio"] .v2 .tcx[data-d="inline"] .tcb-k{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .tcx[data-d="inline"] .tcb-k[aria-expanded="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-s{border-radius:10px;transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-s:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-s[aria-selected="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-view{border-top-color:var(--hair)}
:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-dh .tcx-tile{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .tcx[data-d="inspector"] .tcc-ask .pill.line{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
/* ---------- Artifact card ---------- */
/* a file the agent made, shown four ways: a compact row, a card with its first page, a chip inside the message, and a stack
   of its versions. Each plays its writing state, then opens, copies, downloads and switches versions the same way */
/* the reader opens over the card's nearest positioned ancestor: on this page the stage, in an app its chat column */
.v2 .afx{--afx-t2:var(--muted)}
/* the variants keep no room for their tallest moment (owner, 18 Nov): each sits centred in the stage, and stays where it
   is as a version menu opens over it, down from its button or up when there is no room below (the visitor's clicks never
   move it) */
.v2 .afx.dm>.afx-main{position:relative;justify-content:center}
/* secondary text: the core's grey in light mode; in dark mode a lighter grey, because the core's reaches 4.5:1 there but
   not APCA Lc 60, which small text needs */
:root[data-theme="dark"] .v2 .afx{--afx-t2:#c0c0c0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .afx{--afx-t2:#c0c0c0}}
.v2 .afx>.demo .seg2 button{color:var(--afx-t2)}
.v2 .afx>.demo .seg2 button[aria-pressed="true"]{color:var(--fg)}
.v2 .afx-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.v2 .afx-w{position:relative;width:100%;transition:transform var(--t) var(--ease)}
.v2 .afx-ic{width:36px;height:36px;border-radius:calc(10px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .afx-ic .spin{display:none}
.v2 .is-writing .afx-ic .spin{display:inline-block}
.v2 .is-writing .afx-ic svg{display:none}
.v2 .afx-meta{display:flex;align-items:center;min-width:0;height:20px;font-size:12.5px;color:var(--afx-t2);white-space:nowrap}
.v2 .afx-fin{display:flex;align-items:center;gap:5px;min-width:0}
.v2 .afx-meta .afx-wr{display:none;overflow:hidden;text-overflow:ellipsis}
.v2 .is-writing .afx-meta .afx-wr{display:inline}
.v2 .is-writing .afx-meta .afx-fin{display:none}
.v2 .afx-when{overflow:hidden;text-overflow:ellipsis;min-width:0}
/* versions: a quiet "v3" that opens a menu */
.v2 .afx-vb{position:relative;z-index:1;display:inline-flex;align-items:center;gap:1px;height:20px;padding:0 3px 0 5px;margin:0 -2px;border-radius:calc(6px * var(--rk-s,var(--rk)));font-size:12.5px;font-weight:500;color:var(--fg);transition:background var(--t-fast)}
.v2 .afx-vb[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .afx-vb:hover{background:var(--row)}}
.v2 .afx-vb .i{color:var(--fg2)}
.v2 .afx-menu{width:264px;max-width:calc(100% - 16px)}
.v2 .afx-menu:not(.open){visibility:hidden;transition:opacity .2s var(--ease),transform .35s var(--ease),filter .2s var(--ease),visibility 0s .35s}
.v2 .afx-menu .ph{color:var(--afx-t2)}
.v2 .afx-menu .mi{align-items:flex-start;gap:var(--s-2)}
.v2 .afx-menu .mi:focus-visible{outline-offset:-2px;background:var(--row)}
.v2 .afx-mb{display:flex;flex-direction:column;min-width:0}
.v2 .afx-mw{font-weight:400;color:var(--afx-t2)}
.v2 .afx-menu .mi .d{color:var(--afx-t2);font-weight:400;white-space:normal}
@media (hover:hover) and (pointer:fine){.v2 .afx-menu .mi:is(:hover,.hl,[aria-checked="true"]) .d{color:var(--afx-t2);font-weight:400;white-space:normal}}
.v2 .afx-menu .mi .ck{margin-top:3px}
/* the whole card opens the file: Open stretches over it, and the other buttons sit above */
.v2 .afx-card{position:relative}
.v2 .afx-card .afx-open::after{content:"";position:absolute;inset:0;border-radius:inherit}
.v2 .afx-card .afx-open{transform:none!important}
.v2 .afx-card :is(.afx-copy,.afx-dl,.afx-vb){position:relative;z-index:1}
.v2 .afx .copied .afx-lbl{color:var(--fg)}
/* a button that did its job swaps its icon for a tick in the vivid mark green for a moment, in place, at the same size */
.v2 .afx .ib.copied{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .afx .ib.copied:hover{color:var(--ok-mark)!important}}
/* the opened file: a reader over the stage, the stage fading back behind it. Nothing clips it (owner, 18 Nov): its shadow
   shows whole, and the fade reaches past the cards behind it so none of their shadows is sliced at its edge */
.v2 .afx-sheet{position:absolute;inset:0;z-index:20;border-radius:inherit}
.v2 .afx-scrim{position:absolute;inset:0 -40px -24px;background:color-mix(in srgb,var(--stage) 78%,transparent)}
.v2 .afx-pan{position:absolute;display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow-pop);overflow:hidden;outline:none}
/* the reader is as tall as the file (it scrolls past the room it has), centred in it; a view is as wide as the room, a
   page narrower, growing out of the preview or sheet it came from */
.v2 .afx-pan.afx-view{inset:0;margin:auto 0;height:fit-content;max-height:100%}
.v2 .afx-pan.afx-page{inset:0;margin:auto;width:min(400px,100%);height:fit-content;max-height:100%;transform-origin:0 0}
.v2 .afx-ph{display:flex;align-items:center;gap:10px;padding:10px 9px 10px 16px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* Close sits on the title's first line, its glyph on the content's right edge, 16px in */
.v2 .afx-ph .afx-x{align-self:flex-start;margin-top:calc(10.5px - 15px)}
.v2 .afx-ph .afx-ic{width:30px;height:30px;border-radius:var(--r-sm)}
.v2 .afx-ptx{flex:1;min-width:0}
.v2 .afx-pt{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .afx-pm{font-size:12.5px;color:var(--afx-t2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .afx-pb{flex:1;min-height:0;overflow:auto;padding:14px 16px 18px;font-size:13.5px;line-height:1.6;outline:none}
.v2 .afx-pb:focus-visible{box-shadow:inset 0 0 0 2px var(--focus)}
.v2 .afx-pb h3{margin:var(--s-4) 0 var(--s-1);font-size:12.5px;font-weight:500;color:var(--afx-t2)}
.v2 .afx-pb p{margin:0}
.v2 .afx-pb :is(ul,ol){margin:0;padding-left:18px}
.v2 .afx-pb li+li{margin-top:3px}
.v2 .afx-pb li::marker{color:var(--fg2)}
.v2 .afx-tb{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.v2 .afx-tb :is(th,td){padding:7px var(--s-2);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);text-align:left;font-weight:400}
.v2 .afx-tb thead th{font-size:12.5px;color:var(--afx-t2);font-weight:500}
.v2 .afx-tb .num{text-align:right}
/* its words line up with the reader's title and end on the content's right edge, and its head row starts as close under the
   divider as any first line of the file (owner, 19 Nov) */
.v2 .afx-tb :is(th,td):first-child{padding-left:0}
.v2 .afx-tb :is(th,td):last-child{padding-right:0}
.v2 .afx-tb thead th{padding-top:0}
.v2 .afx-tb tbody th{font-weight:500}
.v2 .afx-pf{display:flex;align-items:center;gap:6px;padding:10px 16px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* Copy and Download are each as wide as their words: pressed, the tick and "Copied" come in and the width eases to fit, with
   no room kept for the longer word */
.v2 .afx-pf .pill{overflow:hidden;white-space:nowrap}
.v2 .afx-pf .pill.copied{color:var(--fg)!important}
.v2 .afx-pf .pill.copied .i{color:var(--ok-mark)}
/* compact: an icon, the name, one line of meta and Open, dense enough to stack several in a thread */
.v2 .afx-cp{max-width:440px;display:flex;flex-direction:column;gap:14px}
.v2 .afx-cp-a{margin:0;font-size:14px;line-height:1.6;text-wrap:pretty}
.v2 .afx-cp-list{display:flex;flex-direction:column;gap:var(--s-2)}
/* its content 16px from every edge: the mark on the left, Open ending on the right (owner, 18 Nov) */
.v2 .afx-cp-card{display:flex;align-items:center;gap:var(--s-3);padding:16px;border-radius:var(--r-in);background:var(--surface);box-shadow:var(--shadow);transition:background var(--t-fast),box-shadow var(--t-fast);overflow:hidden}
@media (hover:hover) and (pointer:fine){.v2 .afx-cp-card:not(.is-writing):hover{background:var(--wash)}}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .afx-cp-card:not(.is-writing):hover{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
.v2 .afx-cp-tx{flex:1;min-width:0}
.v2 .afx-cp-t{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .afx-cp-act{display:flex;align-items:center;gap:2px;flex:none;transition:opacity var(--t) var(--ease)}
.v2 .afx-cp-act .pill{margin-left:var(--s-1);gap:6px;padding:0 10px}
/* Open is the primary action, on the accent; its hover darkens it, so white text keeps 4.5:1 in dark mode too */
@media (hover:hover) and (pointer:fine){.v2 .afx .afx-open.pill.accent:hover{background:color-mix(in srgb,var(--accent) 86%,#000)}}
.v2 .is-writing .afx-cp-act{opacity:0;visibility:hidden}
.v2 .afx-cp-bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--accent-mark);transform-origin:left center;transform:scaleX(0);opacity:0;transition:transform .9s var(--ease),opacity .3s var(--ease)}
.v2 .is-writing .afx-cp-bar{opacity:1}
/* in a narrow column the meta drops the word "edited" before it truncates, and Open keeps only its icon */
@container (max-width:400px){.v2 .afx-ed{display:none}.v2 .afx-fin{gap:var(--s-1)}.v2 .afx-card .afx-ic{width:32px;height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)))}.v2 .afx-card :is(.afx-copy,.afx-dl,.ib.afx-open){width:28px;height:28px}.v2 .afx-cp-act,.v2 .afx-pv-act{gap:0}.v2 .afx-cp-card{gap:10px}.v2 .afx-pv-meta{gap:10px;padding-right:10px}.v2 .afx-pv-meta .afx-ic{display:none}.v2 .afx-cp-act .pill .afx-lbl{display:none}.v2 .afx-cp-act .pill{width:28px;height:28px;padding:0;margin-left:2px}}
/* preview: the same card with the first page showing, so drafts are easy to tell apart */
.v2 .afx-pv{width:min(100%,380px)}
.v2 .afx-pv-card{border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow);transition:box-shadow var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .afx-pv-card:not(.is-writing):hover{box-shadow:var(--shadow-pop)}}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .afx-pv-card:not(.is-writing):hover{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
.v2 .afx-pv-prev{position:relative;height:164px;overflow:hidden;padding:18px 22px 0;border-radius:var(--r-card) var(--r-card) 0 0;background:var(--stage);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .afx-pv-page{height:100%;padding:14px var(--s-4) 0;border-radius:var(--r-sm) var(--r-sm) 0 0;background:var(--surface);box-shadow:var(--shadow);transition:transform var(--t) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .afx-pv-card:not(.is-writing):hover .afx-pv-page{transform:translateY(-3px)}}
/* the page shows the file's first words, not its name and version again: those are on the meta line under it (owner, 18 Nov) */
.v2 .afx-pv-p{margin:0;min-height:54px;font-size:11.5px;line-height:18px;color:var(--fg);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.v2 .afx-caret{display:inline-block;width:1.5px;height:12px;margin-left:1px;vertical-align:-2px;background:var(--accent-mark);animation:v2-bpblink 1s steps(1,end) infinite}
/* the drawn lines stand for the rest of the page: decoration, kept faint */
.v2 .afx-pv-ls{display:flex;flex-direction:column;gap:var(--s-2);margin-top:10px;-webkit-mask-image:linear-gradient(#000 0,transparent 44px);mask-image:linear-gradient(#000 0,transparent 44px)}
.v2 .afx-pv-ls i{display:block;height:4px;border-radius:var(--r-tiny,2px);width:var(--w);background:color-mix(in srgb,var(--fg) 8%,var(--surface));transform-origin:left center;transition:width var(--t) var(--ease)}
.v2 .is-writing .afx-pv-ls i{transform:scaleX(0)}
/* the name 16px in, and the last action's glyph 16px from the right edge */
.v2 .afx-pv-meta{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-3) 9px var(--s-3) 16px}
.v2 .afx-pv-tx{flex:1;min-width:0}
.v2 .afx-pv-t{font-size:13.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .afx-pv-act{display:flex;align-items:center;gap:2px;flex:none;transition:opacity var(--t) var(--ease)}
.v2 .is-writing .afx-pv-act{opacity:0;visibility:hidden}
/* inline: one line inside the message, like a file you attached; versions and actions fold out on hover or focus */
.v2 .afx-in{max-width:440px;display:flex;flex-direction:column;gap:14px}
.v2 .afx-in-msg{display:flex;flex-direction:column;gap:10px}
.v2 .afx-in-msg p{margin:0;font-size:14px;line-height:1.6;text-wrap:pretty}
.v2 .afx-chip{display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;height:34px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);transition:box-shadow var(--t-fast),background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .afx-chip:not(.is-writing):is(:hover,:focus-within,.pin){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),0 1px 2px rgba(0,0,0,.05)}}
.v2 .afx-in-main{display:inline-flex;align-items:center;gap:var(--s-2);min-width:0;height:34px;padding:0 var(--s-3) 0 10px;border-radius:var(--r-pill);font-size:13px}
.v2 .afx-in-main:focus-visible{outline-offset:-2px!important}
.v2 .afx-in-ic{display:grid;place-items:center;width:16px;height:16px;flex:none;color:var(--accent-fg,var(--accent))}
.v2 .afx-in-ic .spin{display:none;width:11px;height:11px}
.v2 .is-writing .afx-in-ic .spin{display:inline-block}
.v2 .is-writing .afx-in-ic svg{display:none}
/* the name and its detail share one baseline (13px and 12.5px, centred one by one, sat 0.6px apart; owner, 21 Nov), and the
   pair is centred with the icon */
.v2 .afx-in-tx{display:inline-flex;align-items:baseline;gap:var(--s-2);min-width:0}
.v2 .afx-in-t{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.v2 .afx-in-m{color:var(--afx-t2);white-space:nowrap;font-size:12.5px}
.v2 .afx-in-m .afx-wr{display:none}
.v2 .afx-in-m .afx-fin{display:inline-flex;gap:var(--s-1)}
.v2 .is-writing .afx-in-m .afx-wr{display:inline}
.v2 .is-writing .afx-in-m .afx-fin{display:none}
.v2 .afx-tray{display:grid;grid-template-columns:0fr;opacity:0;transition:grid-template-columns var(--t) var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .afx-tray>span{display:flex;align-items:center;min-width:0;overflow:hidden}
.v2 .afx-tray>span>:last-child{margin-right:3px}
@media (hover:hover) and (pointer:fine){.v2 .afx-chip:not(.is-writing):is(:hover,:focus-within,.pin) .afx-tray{grid-template-columns:1fr;opacity:1}}
.v2 .afx-tray .ib{width:28px;height:28px}
.v2 .afx-tray .ib:focus-visible{outline-offset:-2px}
.v2 .afx-tsep{flex:none;width:1px;height:16px;margin-right:3px;background:var(--line)}
@media (hover:none){.v2 .afx-chip:not(.is-writing) .afx-tray{grid-template-columns:1fr;opacity:1}}
@container (max-width:400px){.v2 .afx-in-m :is(.afx-when,.afx-msep){display:none}}
/* stack: the report as a stack of paper. The newest page is written onto it; Versions lays the sheets out to pick one */
.v2 .afx-st{display:flex;flex-direction:column;align-items:center;gap:18px;--sw:150px;--sh:194px;--fx:min(122px,calc((100cqw - var(--sw) - 24px) / 2));--ln:color-mix(in srgb,var(--fg) 26%,var(--surface))}
@container (max-width:360px){.v2 .afx-st{--sw:112px;--sh:146px}}
.v2 .afx-desk{position:relative;width:var(--sw);height:calc(var(--sh) + 24px)}
/* in Soft the stack casts a soft shadow on the desk, which fades as the sheets are laid out */
.v2 .afx-desk::before{content:"";position:absolute;left:4%;right:4%;bottom:-10px;height:26px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.13),transparent);transition:opacity var(--t) var(--ease)}
:root[data-theme="dark"] .v2 .afx-desk::before{background:radial-gradient(closest-side,rgba(0,0,0,.5),transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .afx-desk::before{background:radial-gradient(closest-side,rgba(0,0,0,.5),transparent)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .afx-desk::before,.v2 .afx-st.fan .afx-desk::before{opacity:0}
.v2 .afx-stack{position:absolute;inset:0}
/* the top sheet stands straight, the older ones sit just behind it; pointing at the stack or focusing it, they peek out
   up and to the left, a few pixels each */
.v2 .afx-sh{--pk:-1.5px;position:absolute;left:0;top:12px;width:var(--sw);height:var(--sh);padding:0;text-align:left;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--surface);box-shadow:var(--shadow);transform:translate(calc(var(--d,0) * var(--pk)),calc(var(--d,0) * var(--pk)));transition:transform var(--t-slow) var(--ease),box-shadow var(--t) var(--ease)}
.v2 .afx-st:not(.fan):not(.is-writing):has(:focus-visible) .afx-sh{--pk:-4px}
@media (hover:hover) and (pointer:fine){.v2 .afx-st:not(.fan):not(.is-writing) .afx-desk:hover .afx-sh{--pk:-4px}}
.v2 .afx-sh:focus-visible{outline-offset:3px}
.v2 .afx-st:not(.fan) .afx-sh[aria-checked="true"]{box-shadow:var(--shadow-pop)}
.v2 .afx-st.is-writing .afx-sh{cursor:default}
.v2 .afx-pg{position:absolute;inset:0;display:flex;flex-direction:column;padding:var(--s-3);border-radius:inherit;overflow:hidden}
/* a sheet is a drawn page, a heading bar and its lines: the name and version are said once, in the caption under the stack
   (owner, 18 Nov) */
.v2 .afx-st-ls{display:flex;flex-direction:column;gap:7px}
.v2 .afx-r.h{height:6px;margin-bottom:5px}
.v2 .afx-r.h i{height:5px;background:color-mix(in srgb,var(--fg) 45%,var(--surface))}
.v2 .afx-r{position:relative;display:flex;align-items:center;gap:5px;height:4px}
.v2 .afx-r i{display:block;height:3px;border-radius:var(--r-tiny,2px);width:var(--w);background:var(--ln);transform-origin:left center}
.v2 .afx-r b{flex:none;width:4px;height:4px;border-radius:50%;background:var(--ln)}
.v2 .afx-r.n b{width:6px;height:6px;margin:0 -1px;background:var(--accent-mark)}
.v2 .afx-gap{height:3px}
.v2 .afx-st .blank .afx-r :is(i,b){transform:scaleX(0)}
.v2 .afx-pen{position:absolute;left:0;top:0;width:7px;height:7px;border-radius:50%;background:var(--accent-mark);box-shadow:0 0 0 3px var(--surface);opacity:0;pointer-events:none}
@container (max-width:360px){.v2 .afx-st-ls{gap:6px}.v2 .afx-st-ls>:nth-child(n+7){display:none}}
.v2 .afx-tab{position:absolute;left:50%;top:calc(100% + 10px);display:inline-flex;align-items:center;gap:var(--s-1);transform:translateX(-50%);white-space:nowrap;font-size:11.5px;color:var(--afx-t2);opacity:0;transition:opacity var(--t) var(--ease)}
.v2 .afx-tab .i{display:none;color:var(--accent-fg,var(--accent))}
.v2 .afx-st.fan .afx-tab{opacity:1}
.v2 .afx-sh[aria-checked="true"] .afx-tab{color:var(--fg);font-weight:500}
.v2 .afx-sh[aria-checked="true"] .afx-tab .i{display:inline-block}
@container (max-width:360px){.v2 .afx-tab .afx-ta{display:none}}
.v2 .afx-cap{display:flex;flex-direction:column;align-items:center;max-width:100%;text-align:center;transition:margin var(--t) var(--ease)}
.v2 .afx-st.fan .afx-cap{margin-top:22px}
.v2 .afx-st-t{font-size:14px;font-weight:500}
.v2 .afx-st-m{justify-content:center;max-width:100%}
.v2 .afx-note{padding-top:2px;font-size:12.5px;color:var(--fg)}
/* the stack keeps no room for its buttons while the page is written: they unfold under the caption once it is done */
.v2 .afx-st-act{display:flex;align-items:center;gap:var(--s-1);max-height:32px;transition:opacity var(--t) var(--ease),max-height var(--t) var(--ease),margin var(--t) var(--ease)}
.v2 .afx-st-act .pill{gap:6px}
.v2 .afx-st.is-writing .afx-st-act{opacity:0;visibility:hidden;max-height:0;margin-top:-18px}
/* the desk keeps 12px over the sheets for them to peek into on hover; at rest the older ones show 3px of it, so the stack
   starts 9px higher and what shows sits centred in the stage */
.v2 .afx-desk{margin-top:-9px}
/* the words that sum the file up in a message come once it is written */
.v2 .afx-in-after{margin-top:-10px}
.v2 .afx-in-after p{padding-top:10px}
/* the reader's title has no mark, so its words line up with the page's under it */
.v2 .afx-ph .afx-ic{display:none}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .afx :is(.ib,.pill,.afx-vb):active,:root[data-style="studio"] .v2 .afx .ib:active{transform:none}
/* Studio (owner, 18 Nov): a file's mark is one neutral grey whatever its type (no hue per type). The compact card and the
   preview card take the card's 22px round corners with their content 16px from every edge (a quiet icon button by its
   glyph, a filled one by its edge); the preview's page sits on an off-white head. The reader's words start 16px in, under
   its title, and Copy and Download sit in an off-white foot strip, 16px in from its sides. The stack's lines are all grey,
   the pen alone in the accent while it writes */
:root[data-style="studio"] .v2 .afx-ic{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .afx-in-ic{color:var(--fg2)}
:root[data-style="studio"] .v2 .afx-cp-card{gap:12px;padding:14px 16px 13px;border-radius:var(--r-card);transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .afx-cp-act .pill{margin-left:4px}
:root[data-style="studio"] .v2 .afx-pv-prev{padding:16px 16px 0;background:var(--strip);border-bottom:1px solid var(--line)}
/* pointing at the preview card fills it with the quietest grey (its page still lifts), rather than raising its shadow */
:root[data-style="studio"] .v2 .afx-pv-card{transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .afx-pv-card:not(.is-writing):hover{background:var(--wash);box-shadow:var(--shadow)}}
:root[data-style="studio"] .v2 .afx-pv-meta{gap:12px;padding:14px 9px 13px 16px}
:root[data-style="studio"] .v2 .afx-ph{gap:12px;padding:16px 10px 16px 16px}
/* the head is a strip: Close sits 8px from the card's top and right edges, a 28px circle in its 22px corner */
:root[data-style="studio"] .v2 .afx-ph .afx-x{width:28px;height:28px;margin:-8px -2px 0 0}
:root[data-style="studio"] .v2 .afx-pb{padding:16px}
:root[data-style="studio"] .v2 .afx-pf{gap:8px;padding:8px 16px;background:var(--strip);border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .afx-r.n b{background:var(--ln)}
@container (max-width:400px){:root[data-style="studio"] .v2 .afx-cp-card{gap:10px}:root[data-style="studio"] .v2 .afx-pv-meta{gap:10px;padding-right:10px}}
/* ---------- Attachment tray ---------- */
/* a drop zone, then the files as plain rows. Each file wears its type's hue: its badge, its ring and the wash that fills its
   row from the left as it uploads. Once it is up the agent reads it (the line shimmers) and says what it found, like 12 pages */
.v2 .atx{display:flex;flex-direction:column;gap:10px}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on a file's remove button shows at once (.mx-press), and in
   Studio the card grows with its files on the spring (.mx-grow) */
.v2 .atx-drop{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px var(--s-4);border-radius:var(--r-card);background:none;cursor:pointer;position:relative;font-size:13.5px;transition:background .35s,box-shadow .35s,transform .45s var(--ease)}
/* the dashed edge is drawn in SVG so its dashes can march around the corners: drifting slowly at rest, taking the accent
   under the pointer, and marching faster while a file is dragged over */
.v2 .atx-ants{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.v2 .atx-ants rect{fill:none;stroke:var(--faint);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:4.5px var(--ag,6.5px);transition:stroke .35s}
@keyframes v2-atxants{to{stroke-dashoffset:calc(var(--ap,11px) * -1)}}
.v2 .atx-drop.over{background:var(--accent-bg)}
@media (hover:hover) and (pointer:fine){.v2 .atx-drop:hover{background:var(--accent-bg)}}
.v2 .atx-drop.over .atx-ants rect{stroke:var(--accent-mark,var(--accent))}
@media (hover:hover) and (pointer:fine){.v2 .atx-drop:hover .atx-ants rect{stroke:var(--accent-mark,var(--accent))}}
.v2 .atx-ants rect{animation:v2-atxants 2.6s linear infinite}
.v2 .atx-drop.over .atx-ants rect{animation-duration:.9s}
.v2 .atx-drop.over{transform:scale(1.015)}
.v2 .atx-file{position:absolute;inset:0;opacity:0;cursor:pointer}
/* the file input is clear over the drop zone, so the zone shows its focus */
.v2 .atx-drop:has(.atx-file:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.v2 .atx-ic{position:relative;width:34px;height:34px;border-radius:calc(11px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--fg2);transition:transform .45s var(--ease),background .35s,color .35s}
.v2 .atx-drop.over .atx-ic{transform:translateY(-3px);background:var(--surface);color:var(--accent-fg,var(--accent))}
@media (hover:hover) and (pointer:fine){.v2 .atx-drop:hover .atx-ic{transform:translateY(-3px);background:var(--surface);color:var(--accent-fg,var(--accent))}}
/* while a file is over the zone its arrow bobs, and rings spread from the badge */
.v2 .atx-drop.over .atx-ic .i{animation:v2-atxbob .9s var(--ease-io) infinite}
@keyframes v2-atxbob{50%{transform:translateY(-2px)}}
.v2 .atx-ic::before,.v2 .atx-ic::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 1.5px var(--accent-mark,var(--accent));opacity:0;pointer-events:none}
.v2 .atx-drop.over .atx-ic::before{animation:v2-atxring 1.4s var(--ease) infinite}
.v2 .atx-drop.over .atx-ic::after{animation:v2-atxring 1.4s var(--ease) .7s infinite}
@keyframes v2-atxring{from{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(1.9)}}
.v2 .atx-sample{color:var(--accent-fg,var(--accent));font-weight:500;position:relative;z-index:1}
.v2 .atx-list{display:flex;flex-direction:column;gap:2px}
.v2 .atx-it{--p:0%;position:relative;display:flex;align-items:center;gap:10px;padding:var(--s-2) 6px var(--s-2) var(--s-2);border-radius:var(--r-in);overflow:hidden;background:linear-gradient(90deg,color-mix(in srgb,var(--c,var(--accent)) 8%,transparent) calc(var(--p) - 24px),color-mix(in srgb,var(--c,var(--accent)) 16%,transparent) calc(var(--p) - 1px),transparent var(--p)) no-repeat}
/* the wash fades once the file is up */
.v2 .atx-it.up{background-size:0 100%;transition:background-size .6s var(--ease) .2s}
.v2 .atx-ti{width:30px;height:30px;border-radius:calc(9px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;font-size:9.5px;font-weight:500;letter-spacing:.02em;color:var(--c);background:var(--cb)}
.v2 .atx-n{flex:1;min-width:0;font-size:13px}
.v2 .atx-nm{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atx-m{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atx-m .shim{font-size:inherit}
/* on the wash, the line steps up a grey so it keeps its contrast */
.v2 .atx-it:not(.up) .atx-m{color:var(--fg2)}
.v2 .atx-ring{width:22px;height:22px;flex:none}
.v2 .atx-ring circle{transition:stroke-dashoffset .3s linear}
.v2 .atx-ok{display:grid;place-items:center;width:22px;flex:none;color:var(--ok)}
.v2 .atx-ok .i{animation:v2-atxpop .45s var(--ease) backwards}
@keyframes v2-atxpop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.15);opacity:1}100%{transform:none}}
.v2 .atx-rd{display:grid;place-items:center;width:22px;flex:none;color:var(--c)}
.v2 .atx-rd .spin{width:12px;height:12px}
/* (a file's remove button is a 28px icon button, as most icon buttons in a row are) */
.v2 .atx-it .ib{width:28px;height:28px;flex:none}
.v2 .atx-sum{font-size:12.5px;text-align:center;min-height:18px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-it{background:linear-gradient(var(--c,var(--accent)),var(--c,var(--accent))) 0 100%/var(--p) 2px no-repeat}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-it.up{background-size:0 2px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-drop.over .atx-ic::before{animation:v2-atxringbp 1s steps(4,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-drop.over .atx-ic::after{animation:none}
@keyframes v2-atxringbp{from{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.6)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ok .i{animation:none}
/* Studio (owner, 18 Nov): one card that grows as files arrive (grow()), its content 16px from each edge, and the whole card is
   the drop target: a file dragged over it fills it with the row grey and draws a dashed hairline 8px in from its edge. Empty,
   it shows Studio's empty state (.atx-em): a small sketch of a file list on a white card, the title, one muted line with a
   browse link, and Add sample files. Files are rows with hairline dividers under their text: one neutral grey circle with the
   type's letters for every file (owner, 18 Nov: one colour, not a hue per type), and while a file uploads its divider becomes
   a rail that fills with ink, the same for every file, a soft sheen running along
   it while the agent reads, then fades as a green tick draws itself. Once there are files, the off-white foot strip (.atx-ft)
   says what the agent can read, its count rolling as each file is read, and holds Add files 16px from the card's side and
   bottom and from the strip's hairline (owner, 23 Nov) */
/* (the dashed hairline is an outline drawn 8px inside the card, so it follows the card's corners) */
:root[data-style="studio"] .v2 .atx{position:relative;gap:0;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:clip;outline:1px dashed transparent;outline-offset:-9px;transition:background-color var(--t-fast) var(--ease),outline-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .atx.over{background:var(--row);outline-color:var(--faint)}
/* the empty state, the lab's: the sketch is a white card with a hairline and three rows, each a square and a bar,
   fading downward; under it the title, one grey line and a secondary button */
.v2 .atx-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px;text-align:center}
.v2 .atx-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .atx-em>span:not(.atx-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .atx-em .pill{margin-top:12px}
.v2 .atx-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 16px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .atx-em-art::before{content:"";position:absolute;left:14px;top:14px;width:10px;height:10px;border-radius:3px;background:var(--ghost);box-shadow:0 16px 0 var(--ghost),0 32px 0 var(--ghost-2)}
.v2 .atx-em-art::after{content:"";position:absolute;left:32px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost);box-shadow:0 16px 0 var(--ghost),0 32px 0 var(--ghost-2)}
/* the browse link wraps a clear file input, so it opens the file dialog and shows the keyboard's focus */
.v2 .atx-br{position:relative;color:var(--accent-fg,var(--accent));font-weight:500;cursor:pointer}
@media (hover:hover) and (pointer:fine){.v2 .atx-br:hover{text-decoration:underline;text-underline-offset:2px}}
.v2 .atx-br:has(.atx-file:focus-visible),.v2 .atx-add:has(:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.v2 .atx-br:has(.atx-file:focus-visible){border-radius:4px}
/* the empty state shows until the first file lands, and the foot strip from then on */
.v2 .atx-list:not(:empty)~.atx-em,.v2 .atx-list:empty~.atx-ft{display:none}
/* (on a phone the count can take two lines: the strip grows with it and Add files stays 16px from the corner) */
.v2 .atx-ft{display:flex;align-items:flex-end;gap:12px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
.v2 .atx-add{position:relative;overflow:hidden;flex:none;margin-left:auto;cursor:pointer}
:root[data-style="studio"] .v2 .atx-list{gap:0;padding:0 16px}
:root[data-style="studio"] .v2 .atx-list:not(:empty){padding-block:6px}
/* while the last file is still going up its rail is the lowest thing in the list, so the list keeps 16px under it before the
   foot strip (owner, 18 Nov); once it is read its rail goes, and its words are the lowest, 16px from the strip as they are */
:root[data-style="studio"] .v2 .atx-list:has(>.atx-it:last-child :is(.atx-ring,.atx-rd)){padding-bottom:16px}
:root[data-style="studio"] .v2 .atx-it{gap:12px;padding:10px 0;border-radius:0;overflow:visible;background:none}
:root[data-style="studio"] .v2 .atx-it.up{background:none}
/* the divider under a row's text (.atx-ln, Studio's own), which is the upload's rail while the file goes up, its ink fill
   clipped to the progress with a soft sheen running along it; a file that is read keeps the hairline, the last one none */
.v2 .atx-ln{position:absolute;left:44px;right:0;bottom:0;height:1px;border-radius:999px;background:var(--line);pointer-events:none;transition:height var(--t) var(--ease),background-color var(--t) var(--ease)}
.v2 .atx-it:last-child .atx-ln{background:transparent}
.v2 .atx-it:not(:has(.atx-ok)) .atx-ln{height:2px;background:var(--rail)}
.v2 .atx-ln i{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,var(--fg) 40%,color-mix(in srgb,var(--fg) 35%,var(--surface)) 50%,var(--fg) 60%) 0 0/250% 100%;clip-path:inset(0 calc(100% - var(--p)) 0 0 round 999px);transition:clip-path .2s linear,opacity .4s var(--ease);animation:v2-atxsheen 1.6s linear infinite}
.v2 .atx-it:has(.atx-ok) .atx-ln i{opacity:0;animation:none}
@keyframes v2-atxsheen{from{background-position:100% 0}to{background-position:0 0}}
:root[data-style="studio"] .v2 .atx-ti{position:relative;width:32px;height:32px;border-radius:50%;font-size:9.5px;color:var(--fg2);background:var(--chip)}
:root[data-style="studio"] .v2 .atx-it .atx-m,:root[data-style="studio"] .v2 .atx-it:not(.up) .atx-m{color:var(--muted)}
/* the upload's own ring stays for screen readers; the rail shows the progress */
:root[data-style="studio"] .v2 .atx-ring{opacity:0}
:root[data-style="studio"] .v2 .atx-rd{color:var(--muted)}
/* read: a green disc lands and its tick draws itself */
.v2 .atx-okc{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--ok-mark);color:var(--surface);animation:v2-atxokin .32s var(--ease) backwards}
.v2 .atx-okc svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.v2 .atx-okc path{stroke-dasharray:1;stroke-dashoffset:1;animation:v2-atxokdraw .34s var(--ease) .16s forwards}
@keyframes v2-atxokin{from{opacity:0;transform:scale(.5)}}
@keyframes v2-atxokdraw{to{stroke-dashoffset:0}}
/* the remove button sits on the content's 16px edge, where the dividers end */
:root[data-style="studio"] .v2 .atx-it .ib{width:28px;height:28px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .atx-it .ib:hover{background:var(--row);color:var(--fg)}}
/* in the foot strip: what the agent can read now, its count rolling up as each file is read. The tick and the words belong
   together (owner, 18 Nov): the tick on the content's edge, 8px, then the words */
:root[data-style="studio"] .v2 .atx-sum{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:0;padding:5px 0;font-size:12.5px;line-height:18px;text-align:left;color:var(--fg2)}
:root[data-style="studio"] .v2 .atx-sum:empty{display:none}
/* (a step of --ok in the vivid green keeps the small tick at 3:1 on the off-white strip) */
:root[data-style="studio"] .v2 .atx-tk{display:grid;place-items:center;flex:none;color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
:root[data-style="studio"] .v2 .atx-tk .i{stroke-width:2.2}
.v2 .atx-roll{display:inline-grid;overflow:hidden;height:1lh;vertical-align:top}
.v2 .atx-roll i{font-style:normal}
.v2 .atx-roll i.in{animation:v2-atxroll .32s var(--ease) both}
@keyframes v2-atxroll{from{opacity:0;transform:translateY(60%)}}
@media (prefers-reduced-motion:reduce){.v2 .atx-ln i,.v2 .atx-okc,.v2 .atx-roll i.in{animation:none}.v2 .atx-okc path{animation:none;stroke-dashoffset:0}.v2 .atx-ln,:root[data-style="studio"] .v2 .atx{transition:none}}
/* ---------- Attachment tray designs ---------- */
/* the card's three designs, picked in the switch under it: Default (the component above, as it ships), Composer and Context budget. Each fills the
   width and sits centred in the room kept for the tallest of them. Default keeps room for its three sample files, so its
   drop zone stays put as they come in */
.v2 .dm.atx-dm{min-height:0}
.v2 .atx-dm>.dm-main>*{align-self:stretch}
.v2 .atx-dm .atx-list{min-height:164.5px}
/* in Studio the card grows with its files instead (owner, 17 Nov: no room kept for a later state) */
:root[data-style="studio"] .v2 .atx-dm .atx-list{min-height:0}
/* what both designs share: a clear file input over the control that opens it, and a grey picture of what is in each file
   (a page for a PDF, frames for a Figma file, a grid for a sheet, a scene for an image), its kind in the site's grey tag */
.v2 .atx-pick{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.v2 .atx-art{display:block;width:100%;height:100%}
.v2 .atx-art .pg{fill:var(--surface)}
.v2 .atx-art .ln{fill:color-mix(in srgb,var(--fg) 14%,transparent)}
.v2 .atx-art .ac{fill:color-mix(in srgb,var(--fg) 26%,transparent)}
.v2 .atx-art .ac2{fill:color-mix(in srgb,var(--fg) 9%,transparent)}
.v2 .atx-art .ed{fill:none;stroke:color-mix(in srgb,var(--fg) 12%,transparent);stroke-width:1}
.v2 .atx-art .gd{stroke:color-mix(in srgb,var(--fg) 12%,transparent);stroke-width:1}
@keyframes v2-atxpopin{from{opacity:0;transform:translateY(10px) scale(.92)}}
.v2 .atx-popin{animation:v2-atxpopin .5s var(--ease) backwards}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-popin{animation:v2-bpin .3s var(--ease) backwards}

/* Composer: files ride in the message box as previews that fill from the foot as they upload. Empty, the tray shows a line
   drawing of files dropping into a tray, in the site's greys with the accent on the top sheet. Dropped files land in place
   one after another and settle with a small bounce; the box gives a little as they hit it */
.v2 .atx-cmp{display:flex;flex-direction:column}
.v2 .atx-cmp-box{position:relative;display:flex;flex-direction:column;gap:var(--s-1);padding:var(--s-2);border-radius:var(--r-box);background:var(--surface);box-shadow:var(--shadow);transition:box-shadow .3s}
@supports (corner-shape:squircle){.v2 .atx-cmp-box{corner-shape:squircle;border-radius:var(--r-box-sq)}}
.v2 .atx-cmp-box.thud{animation:v2-atxcmpthud .42s var(--ease) .44s}
@keyframes v2-atxcmpthud{35%{transform:translateY(1.5px) scale(.996)}}
.v2 .atx-cmp-tray{position:relative;min-height:126.5px}
.v2 .atx-cmp-list{position:relative;display:flex;gap:var(--s-2);min-height:126.5px;padding:var(--s-2);overflow-x:auto;scrollbar-width:none}
.v2 .atx-cmp-list::-webkit-scrollbar{display:none}
/* the empty tray: the drawing (in Soft, a small file card) and a short line, inside a dashed drop target at half strength */
.v2 .atx-cmp-empty{position:absolute;inset:var(--s-2) var(--s-2) var(--s-1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-2);text-align:center;padding:var(--s-4);border-radius:var(--r-in);border:1px dashed color-mix(in srgb,var(--faint) 50%,transparent);pointer-events:none;transition:opacity .26s var(--ease),transform .3s var(--ease)}
.v2 .atx-cmp-empty.out{opacity:0;transform:scale(.98)}
/* the drop target sits 16px in from the box's edges, as the files do, and keeps its drawing and words 16px in from its own
   dashed edge: while the tray is empty it is in the tray's flow, so the box is as tall as it (grow() eases the box from it
   to the files' height); as the first files land it lies over the tray while it fades */
.v2 .atx-cmp-box.none .atx-cmp-empty:not(.out){position:relative;inset:auto;margin:var(--s-2) var(--s-2) var(--s-1)}
.v2 .atx-cmp-box.none :is(.atx-cmp-tray,.atx-cmp-list:empty){min-height:0}
.v2 .atx-cmp-box.none .atx-cmp-list:empty{padding:0}
.v2 .atx-cmp-empty p{display:flex;flex-direction:column;align-items:center;margin:0;font-size:12.5px;line-height:1.45;color:var(--muted)}
.v2 .atx-cmp-empty b{font-weight:500;font-size:13px;color:var(--fg)}
.v2 .atx-cmp-art{flex:none;width:84px;height:56px;overflow:visible}
/* Soft's empty tray shows a small file card instead of the line drawing (owner, 18 Nov: "more similar to studio but softer"):
   the drawing's size, Soft's plush corners and soft outside shadow, three rows of a tile and a line in greys that fade
   downwards, and the first file's tile in the accent's tint with its line in the accent's mark. Blueprint keeps the drawing */
.v2 .atx-cmp-empty .atx-cmp-art{display:none}
.v2 .atx-cmp-sk{flex:none;display:flex;flex-direction:column;justify-content:center;gap:7px;width:84px;height:56px;padding:0 12px;border-radius:calc(9px * var(--rk));background:var(--surface);box-shadow:var(--shadow)}
.v2 .atx-cmp-sk .r{display:flex;align-items:center;gap:6px}
.v2 .atx-cmp-sk i{display:block;flex:none;height:4px;border-radius:calc(2px * var(--rk));background:color-mix(in srgb,var(--fg) 9%,var(--surface))}
.v2 .atx-cmp-sk .t{width:8px;height:8px;border-radius:calc(2.5px * var(--rk))}
.v2 .atx-cmp-sk .l{width:36px}
.v2 .atx-cmp-sk .r:nth-child(2) .l{width:30px}
.v2 .atx-cmp-sk .r:nth-child(3) i{background:color-mix(in srgb,var(--fg) 5%,var(--surface))}
.v2 .atx-cmp-sk .r:nth-child(3) .l{width:24px}
.v2 .atx-cmp-sk .r:first-child .t{background:var(--accent-bg)}
.v2 .atx-cmp-sk .r:first-child .l{background:color-mix(in srgb,var(--accent-mark,var(--accent)) 55%,var(--surface))}
@supports (corner-shape:squircle){.v2 .atx-cmp-sk,.v2 .atx-cmp-sk i{corner-shape:squircle}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-empty .atx-cmp-art{display:block}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-sk{display:none}
.v2 .atx-cmp-art *{vector-effect:non-scaling-stroke}
.v2 .atx-cmp-art .gd{fill:none;stroke:color-mix(in srgb,var(--faint) 55%,transparent);stroke-width:1;stroke-dasharray:2 3}
.v2 .atx-cmp-art .pl{fill:var(--surface)}
.v2 .atx-cmp-art .tr-f{fill:var(--wash)}
.v2 .atx-cmp-art .sh.b .pl{fill:color-mix(in srgb,var(--accent-mark,var(--accent)) 7%,var(--surface))}
.v2 .atx-cmp-art .ln{fill:none;stroke:color-mix(in srgb,var(--line-strong) 55%,var(--surface));stroke-width:1;stroke-linejoin:round;stroke-linecap:round}
.v2 .atx-cmp-art .tx{stroke:color-mix(in srgb,var(--field-line-strong) 60%,var(--surface))}
.v2 .atx-cmp-art .ac{stroke:color-mix(in srgb,var(--accent-mark) 75%,var(--surface))}
/* the sheets hover over the tray, the top one a little higher, and drop into it as files land */
.v2 .atx-cmp-art .sh{animation:v2-atxcmpfloat 3.2s var(--ease-io) infinite;transition:transform .3s var(--ease),opacity .26s}
.v2 .atx-cmp-art .sh.b{animation-delay:-1.1s}
@keyframes v2-atxcmpfloat{50%{transform:translateY(-2px)}}
.v2 .atx-cmp-empty.out .sh{animation:none;transform:translateY(9px);opacity:0}
.v2 .atx-cmp-empty.out .sh.b{transform:translateY(16px)}
/* a file: its picture is veiled until it is up, the veil drawn back from the foot as it goes; a light passes over it while
   the agent reads it */
.v2 .atx-cmp-it{position:relative;flex:none;width:84px;display:flex;flex-direction:column;gap:var(--s-1);border-radius:var(--r-in);text-align:left;cursor:grab;touch-action:none;transition:transform .35s var(--ease)}
.v2 .atx-cmp-it:focus-visible{outline-offset:2px;border-radius:var(--r-in)}
.v2 .atx-cmp-it.drag{cursor:grabbing;z-index:3;transition:none}
.v2 .atx-cmp-it.drag .atx-cmp-th{box-shadow:var(--shadow-pop);transform:rotate(-2deg) scale(1.04)}
/* landing: each file comes down from above, a little turned (--r), touches down, lifts a hair and settles */
.v2 .atx-cmp-it.land{animation:v2-atxcmpland .64s cubic-bezier(.3,.7,.4,1) calc(160ms + var(--i,0) * 90ms) backwards}
@keyframes v2-atxcmpland{0%{opacity:0;transform:translateY(-28px) rotate(var(--r,0deg)) scale(.92)}45%{opacity:1;transform:translateY(2px) rotate(0deg) scale(1.02,.98)}70%{transform:translateY(-1.5px) scale(1)}100%{transform:none}}
.v2 .atx-cmp-th{position:relative;height:72px;border-radius:var(--r-in);overflow:hidden;background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);transition:box-shadow .3s,transform .3s var(--ease)}
.v2 .atx-cmp-th .atx-art{padding:var(--s-2) var(--s-3) 0}
.v2 .atx-cmp-veil{position:absolute;inset:0;background:color-mix(in srgb,var(--surface) 72%,transparent);clip-path:inset(0 0 calc(var(--p,0) * 100%) 0);transition:clip-path .2s linear}
.v2 .atx-cmp-it.up .atx-cmp-veil{opacity:0;transition:opacity .4s}
.v2 .atx-cmp-scan{position:absolute;left:0;right:0;top:0;height:40%;z-index:1;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--fg) 7%,transparent),transparent);transform:translateY(-100%);opacity:0;pointer-events:none}
.v2 .atx-cmp-it.read .atx-cmp-scan{opacity:1;animation:v2-atxcmpscan 1.2s var(--ease-io) infinite}
@keyframes v2-atxcmpscan{from{transform:translateY(-100%)}to{transform:translateY(250%)}}
.v2 .atx-cmp-pc{position:absolute;left:6px;bottom:5px;z-index:2;font-size:11px;font-weight:500;color:var(--fg)}
.v2 .atx-cmp-it.up .atx-cmp-pc{display:none}
.v2 .atx-cmp-bd{position:absolute;left:6px;top:6px;z-index:2}
.v2 .atx-cmp-ok{position:absolute;right:5px;bottom:5px;z-index:2;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:var(--ok);color:#fff;transform:scale(0);transition:transform .4s var(--ease)}
.v2 .atx-cmp-ok .i{width:10px;height:10px;stroke-width:2.4;color:inherit}
:root[data-theme="dark"] .v2 .atx-cmp-ok{color:#0b2414}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .atx-cmp-ok{color:#0b2414}}
.v2 .atx-cmp-it.done .atx-cmp-ok{transform:none}
.v2 .atx-cmp-x{position:absolute;right:4px;top:4px;z-index:4;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--raised);color:var(--fg);box-shadow:var(--shadow-pop);opacity:0;transform:scale(.7);transition:opacity .2s,transform .25s var(--ease)}
.v2 .atx-cmp-x .i{width:10px;height:10px;stroke-width:2.2;color:inherit}
.v2 .atx-cmp-it:focus-within .atx-cmp-x,.v2 .atx-cmp-it.peek .atx-cmp-x{opacity:1;transform:none}
@media (hover:hover) and (pointer:fine){.v2 .atx-cmp-it:hover .atx-cmp-x{opacity:1;transform:none}}
@media (hover:none){.v2 .atx-cmp-x{opacity:1;transform:none}}
.v2 .atx-cmp-n{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg)}
.v2 .atx-cmp-m{margin-top:-4px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atx-cmp-m .shim{font-size:inherit}
.v2 .atx-cmp-it.gone{animation:v2-atxcmpgone .3s var(--ease) forwards}
@keyframes v2-atxcmpgone{to{opacity:0;transform:scale(.85)}}
/* the message is a field of its own (the site's field look: a dimmed edge at rest, one step stronger with the focus), so it
   reads as the place to type, in both styles and themes */
.v2 .atx-cmp-ta{display:block;width:100%;resize:none;border:0;outline:0;background:var(--surface);padding:10px var(--s-3);border-radius:var(--r-box);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font:inherit;font-size:13.5px;line-height:1.5;color:var(--fg)}
@supports (corner-shape:squircle){.v2 .atx-cmp-ta{corner-shape:squircle;border-radius:var(--r-box-sq)}}
.v2 .atx-cmp-ta:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .atx-cmp-ta::placeholder{color:var(--muted)}
/* the field lines up with the files above it (the tray's own inset), and so do + and send below it */
.v2 .atx-cmp-ta{width:auto;margin-inline:var(--s-2);max-height:72px;margin-top:var(--s-1);transition:max-height .35s var(--ease),opacity .25s,padding .35s var(--ease),margin .35s var(--ease),box-shadow .2s}
.v2 .atx-cmp-box.none .atx-cmp-ta{max-height:0;padding-block:0;margin-top:0;opacity:0;visibility:hidden}
/* + and send sit with the field's edges, with the same room above them (the box's gap and this) as below (this and the box's padding) */
.v2 .atx-cmp-f{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2)}
.v2 .atx-cmp-add{position:relative;overflow:hidden;cursor:pointer}
.v2 .atx-cmp-add:has(.atx-pick:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
.v2 .atx-cmp-st{flex:1;font-size:12px;color:var(--muted)}
.v2 .atx-cmp-send{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent,#fff);transition:background .2s,transform .15s}
.v2 .atx-cmp-send .i{color:inherit}
@media (hover:hover) and (pointer:fine){.v2 .atx-cmp-send:hover{background:var(--accent-2)}}
.v2 .atx-cmp-send:active{transform:scale(.92)}
.v2 .atx-cmp-send[disabled]{cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
/* a file dragged over the box: the box veils over, says so, and its edge is a quiet grey at half strength */
.v2 .atx-cmp-over{position:absolute;inset:0;z-index:5;display:grid;place-items:center;border-radius:inherit;background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent);opacity:0;pointer-events:none;transition:opacity .25s}
.v2 .atx-cmp-over span{display:inline-flex;align-items:center;gap:var(--s-2);font-size:13px;font-weight:500;color:var(--fg)}
.v2 .atx-cmp-over .i{animation:v2-atxbob .9s var(--ease-io) infinite}
.v2 .atx-cmp-box.over .atx-cmp-over{opacity:1}
@container (max-width:380px){.v2 .atx-cmp-art{width:96px;height:64px}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-veil{background:repeating-linear-gradient(135deg,transparent 0 4px,color-mix(in srgb,var(--fg) 10%,transparent) 4px 5px),color-mix(in srgb,var(--surface) 70%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-it.read .atx-cmp-scan{height:2px;background:var(--muted);animation:v2-atxcmpscanbp 1.2s steps(6,end) infinite}
@keyframes v2-atxcmpscanbp{from{transform:translateY(0)}to{transform:translateY(72px)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-over{background:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--fg) 8%,transparent) 6px 7px),color-mix(in srgb,var(--surface) 92%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-over .i{animation:v2-bpblink 1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-ok{transition:transform .2s steps(2,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-it.land{animation:v2-atxcmplandbp .36s steps(4,end) calc(160ms + var(--i,0) * 90ms) backwards}
@keyframes v2-atxcmplandbp{0%{opacity:0;transform:translateY(-12px)}50%{opacity:1}100%{transform:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-box.thud{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-art .sh{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-cmp-empty.out .sh{transition:transform .2s steps(2,end),opacity .2s steps(2,end)}
/* Studio: the box takes the card's 22px corners and grows with what it holds (grow()). Its bottom row is not a strip, so +
   and Send sit on the content's 16px edges, + under the field's left edge and Send under its right (owner, 18 Nov; both
   28px). Send is the ink button. The layer that says "Drop to attach" takes the card's corners (inside grow()'s wrapper it
   would inherit none). The empty tray is Studio's empty state (.atx-em,
   in Attachment tray), 16px in from the box's top, in the box's own flow so the box is as tall as it; as the first files land
   it lies over the tray while it fades, so the box goes straight to the files' height. The previews are rounded pictures, not
   circles, and a preview's remove button sits inside its corner, so nothing reaches past the box's 16px */
:root[data-style="studio"] .v2 .atx-cmp-box{border-radius:var(--r-card);transition:box-shadow .3s}
:root[data-style="studio"] .v2 :is(.atx-cmp-tray,.atx-cmp-list){min-height:0}
:root[data-style="studio"] .v2 .atx-cmp-list:empty{padding:0}
/* the tray scrolls sideways when its files outrun it (on a phone, or with more files); its edges sit on the content's 16px
   line, so a file passing under them is cut there, and a file's focus ring is drawn just inside it */
:root[data-style="studio"] .v2 .atx-cmp-list:not(:empty){margin-inline:8px;padding-inline:0}
:root[data-style="studio"] .v2 .atx-cmp-it:focus-visible{outline-offset:-2px}
:root[data-style="studio"] .v2 .atx-cmp-empty{position:relative;inset:auto;justify-content:flex-start;gap:4px;padding:8px 8px 0;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:auto}
:root[data-style="studio"] .v2 .atx-cmp-empty.out{position:absolute;inset:0 0 auto;pointer-events:none}
:root[data-style="studio"] .v2 .atx-cmp-box.none .atx-cmp-empty:not(.out){margin:0}
:root[data-style="studio"] .v2 .atx-cmp-it,:root[data-style="studio"] .v2 .atx-cmp-th,:root[data-style="studio"] .v2 .atx-cmp-it:focus-visible{border-radius:12px}
:root[data-style="studio"] .v2 .atx-cmp-f{padding:8px}
:root[data-style="studio"] .v2 .atx-cmp-over{border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .atx-cmp-add{width:28px;height:28px}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .atx-cmp-box{transition:none}}
:root[data-style="studio"] .v2 .atx-cmp-send{width:28px;height:28px;border-radius:calc(var(--r-card) - 16px)}
/* (the green a step towards --ok, as Default's foot-strip tick, so the badge keeps 3:1 on the picture's off-white) */
:root[data-style="studio"] .v2 .atx-cmp-ok{background:color-mix(in srgb,var(--ok-mark) 80%,var(--ok));color:var(--surface)}

/* Context budget: what each file costs the agent's context. The window bar has the instructions first in grey, then each
   file in a step of the accent, as wide as its share; the same step marks the file's row. Each part is drawn across the
   whole bar and clipped to its stretch (--a to --b, in percent), so as a share grows the parts slide with a clip and the
   bar is never laid out again. A file too big to read whole is hatched, and says how much of it the agent keeps */
.v2 .atx-ctx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .atx-ctx-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.v2 .atx-ctx-ht{display:flex;flex-direction:column}
.v2 .atx-ctx-ht b{font-weight:500}
.v2 .atx-ctx-st{font-size:12.5px;color:var(--muted)}
.v2 .atx-ctx-pc{font-size:13px;font-weight:500;color:var(--fg2)}
.v2 .atx-ctx-bar{position:relative;height:12px;border-radius:var(--r-tag);background:color-mix(in srgb,var(--line) 55%,transparent);overflow:hidden}
.v2 .atx-ctx-bar i{position:absolute;inset:2px;display:block;border-radius:2px;clip-path:inset(0 calc(100% - var(--b,0) * 1% + 1px) 0 calc(var(--a,0) * 1% + 1px) round 2px);transition:clip-path .6s var(--ease),opacity .3s}
.v2 .atx-ctx-bar .sys{background:var(--muted)}
.v2 .atx-ctx-segs{display:contents}
.v2 .atx-ctx-segs i{background:var(--c)}
/* a share still being counted breathes, and one cut short is hatched */
.v2 .atx-ctx-segs i.live{animation:v2-atxctxlive 1.2s var(--ease-io) infinite}
@keyframes v2-atxctxlive{50%{opacity:.55}}
.v2 .atx-ctx-segs i.cut{background:repeating-linear-gradient(135deg,var(--c) 0 3px,color-mix(in srgb,var(--c) 45%,var(--surface)) 3px 6px)}
.v2 .atx-ctx-key{display:flex;justify-content:space-between;gap:var(--s-2);font-size:11.5px;color:var(--muted);margin-top:-4px}
.v2 .atx-ctx-key span{display:inline-flex;align-items:center;gap:var(--s-1)}
/* the legend's swatch is the instructions' part in small: the same grey and corners, its left edge on that part's (the bar's 2px
   inset and the part's 1px gap) */
.v2 .atx-ctx-key i{width:8px;height:8px;margin-left:3px;border-radius:2px;background:var(--muted)}
/* a row's tile starts and its count and toggle end on the content's 16px column, where the bar and the head do; its hover
   fill reaches 8px out round it, into the padding (owner, 26 Nov) */
.v2 .atx-ctx-list{list-style:none;margin:0 calc(-1 * var(--s-2));padding:0;display:flex;flex-direction:column}
.v2 .atx-ctx-it{border-radius:var(--r-in);transition:background .25s,opacity .3s}
@media (hover:hover) and (pointer:fine){.v2 .atx-ctx-it:hover{background:var(--row)}}
.v2 .atx-ctx-r{display:flex;align-items:center;gap:var(--s-3);min-height:48px;padding:var(--s-2)}
.v2 .atx-ctx-ic{position:relative;width:30px;height:30px;flex:none;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center;background:var(--chip);color:var(--fg2)}
@media (hover:hover) and (pointer:fine){.v2 .atx-ctx-it:hover .atx-ctx-ic{background:var(--surface)}}
/* uploading: a short line in the accent along the foot of the tile, growing with a transform */
.v2 .atx-ctx-up{position:absolute;left:var(--s-1);right:var(--s-1);bottom:3px;height:2px;border-radius:var(--r-xs);background:var(--accent-mark);transform-origin:left;transform:scaleX(var(--p,0));transition:transform .2s linear}
.v2 .atx-ctx-it.up .atx-ctx-up{opacity:0;transition:opacity .4s}
.v2 .atx-ctx-tx{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .atx-ctx-tx button{display:flex;align-items:center;gap:var(--s-1);min-width:0;font-size:13px;text-align:left;border-radius:calc(6px * var(--rk-s,var(--rk)));color:var(--fg)}
.v2 .atx-ctx-tx button span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .atx-ctx-tx button .i{flex:none;color:var(--muted);transition:transform .35s var(--ease)}
.v2 .atx-ctx-tx button[aria-expanded="true"] .i{transform:rotate(180deg)}
.v2 .atx-ctx-m{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.v2 .atx-ctx-m .shim{font-size:inherit}
.v2 .atx-ctx-m .w{color:var(--warn)}
.v2 .atx-ctx-tk{font-size:12px;color:var(--fg2);font-variant-numeric:tabular-nums;min-width:34px;text-align:right}
.v2 .atx-ctx-kd{color:var(--c);transition:opacity .3s}
.v2 .atx-ctx-it.off .atx-ctx-kd{opacity:.35}
.v2 .atx-ctx-it.off .atx-ctx-tk,.v2 .atx-ctx-it.off .atx-ctx-tx button{color:var(--muted)}
.v2 .atx-ctx-it.off .atx-ctx-ic{opacity:.6}
.v2 .atx-ctx-det{display:flex;flex-wrap:wrap;gap:var(--s-1);padding:0 var(--s-2) var(--s-3) calc(30px + var(--s-3) + var(--s-2))}
.v2 .atx-ctx-det p{flex-basis:100%;margin:0;font-size:12px;color:var(--fg2)}
.v2 .atx-ctx-drop{position:relative;display:flex;align-items:center;justify-content:center;gap:var(--s-2);height:40px;border-radius:var(--r-in);font-size:12.5px;color:var(--muted);background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--faint) 50%,transparent) 0 4px,transparent 4px 8px) 0 0/100% 1px no-repeat,repeating-linear-gradient(90deg,color-mix(in srgb,var(--faint) 50%,transparent) 0 4px,transparent 4px 8px) 0 100%/100% 1px no-repeat,repeating-linear-gradient(0deg,color-mix(in srgb,var(--faint) 50%,transparent) 0 4px,transparent 4px 8px) 0 0/1px 100% no-repeat,repeating-linear-gradient(0deg,color-mix(in srgb,var(--faint) 50%,transparent) 0 4px,transparent 4px 8px) 100% 0/1px 100% no-repeat;cursor:pointer;transition:background-color .25s,color .25s}
.v2 .atx-ctx-drop .i{color:inherit}
.v2 .atx-ctx-drop.over{background-color:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .atx-ctx-drop:hover{background-color:var(--row);color:var(--fg)}}
.v2 .atx-ctx-drop u{color:var(--accent-fg,var(--accent));text-decoration:none;font-weight:500}
.v2 .atx-ctx-drop:has(.atx-pick:focus-visible){outline:2px solid var(--focus);outline-offset:2px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-bar{background:repeating-linear-gradient(90deg,transparent 0 5px,var(--grid) 5px 6px),var(--wash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 70%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-segs i.live{animation:v2-atxctxlivebp 1s steps(2,end) infinite}
@keyframes v2-atxctxlivebp{50%{opacity:.5}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-bar i,:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-segs i{transition:clip-path .4s steps(5,end),opacity .2s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-bar i{border-radius:0;clip-path:inset(0 calc(100% - var(--b,0) * 1% + 1px) 0 calc(var(--a,0) * 1% + 1px))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-key i{border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-ic{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atx-ctx-up{transition:transform .2s steps(2,end)}
/* Studio: content 16px from the card's edges, the card grows with its files (grow()) rather than keeping room for three, and
   the whole card is the drop target, as Default's is: a file dragged over it fills it with the row grey and draws a dashed
   hairline 8px in from its edge. Icons are round tiles, and a file's progress is a ring round its tile: an ink arc that closes
   as it uploads, then runs round while the agent counts its tokens, and fades once it is counted. The window bar is a bar
   with rounded corners, not a pill. Under the list, the off-white foot strip says files can be dropped and holds Add files,
   16px from the card's side and bottom and from the strip's hairline (owner, 23 Nov) */
:root[data-style="studio"] .v2 .atx-ctx{padding:16px 16px calc(28px + 3 * var(--strip-y) + 1px);outline:1px dashed transparent;outline-offset:-9px;transition:background-color var(--t-fast) var(--ease),outline-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .atx-ctx.over{background:var(--row);outline-color:var(--faint)}
:root[data-style="studio"] .v2 .atx-ctx-bar{border-radius:var(--r-tiny,4px)}
:root[data-style="studio"] .v2 .atx-ctx-ic{border-radius:50%}
/* one colour for every file (owner, 18 Nov: not a colour each): each file's share of the window and its row's dot are the
   accent's mark tone, which keeps 3:1 on the bar's track and on the card; the instructions stay grey, and the files' shares
   are told apart by the gaps between them, in the rows' order */
:root[data-style="studio"] .v2 .atx-ctx-segs i{background:var(--accent-mark,var(--accent))}
:root[data-style="studio"] .v2 .atx-ctx-segs i.cut{background:repeating-linear-gradient(135deg,var(--accent-mark,var(--accent)) 0 3px,color-mix(in srgb,var(--accent-mark,var(--accent)) 45%,var(--surface)) 3px 6px)}
/* with one colour for every file the words say what each part is (owner, 18 Nov: "do we need this little dot?"): no swatch
   before "Instructions" and no dot before a file's count */
:root[data-style="studio"] .v2 :is(.atx-ctx-key i,.atx-ctx-kd){display:none}
/* a file's name and its line take 18px each, so its row is a whole 52px and the card grows by whole pixels */
:root[data-style="studio"] .v2 :is(.atx-ctx-tx button,.atx-ctx-m){line-height:18px}
/* (on a hovered row a file's fact tags take the card's surface, so they keep showing on the hover's fill in both themes) */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .atx-ctx-it:hover .atx-ctx-det .tag{background:var(--surface)}}
.v2 .atx-ctx-rg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg);pointer-events:none;transition:opacity .4s var(--ease)}
.v2 .atx-ctx-rg circle{fill:none;stroke-width:2}
.v2 .atx-ctx-rg .tr{stroke:var(--rail)}
.v2 .atx-ctx-rg .pg{stroke:var(--fg);stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:calc(1 - var(--p,0));transition:stroke-dashoffset .2s linear}
.v2 .atx-ctx-it.up .atx-ctx-rg .pg{stroke-dasharray:.28 .72;animation:v2-atxctxrun 1s linear infinite}
@keyframes v2-atxctxrun{from{stroke-dashoffset:0}to{stroke-dashoffset:-1}}
.v2 .atx-ctx-it.done .atx-ctx-rg{opacity:0}
.v2 .atx-ctx-it.done .atx-ctx-rg .pg{animation:none}
/* (pinned to the card's foot, as Default's is: the card keeps its 61px and 16px above it as padding) */
.v2 .atx-ctx-ft{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;font-size:12.5px;line-height:18px;color:var(--muted);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .atx-ctx{transition:none}.v2 .atx-ctx-it.up .atx-ctx-rg .pg{animation:none;stroke-dasharray:1 0}}
/* ---------- Response versions ---------- */
.v2 .rvx{display:flex;flex-direction:column;gap:14px}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on its buttons shows at once (.mx-press); Copy's icon and its
   tick crossfade (.mx-ic); the answer eases to its new height on the spring (.mx-grow) */
.v2 .rvx-a{display:flex;flex-direction:column;gap:var(--s-2)}
/* the answer is as tall as its words in every style (owner's notes, 18 Nov): the component grows with them (grow()), and a
   version streaming in keeps the height of the one it replaces, then eases to its own. The bar's first button reaches 6px
   past the column, so the growing box lets that much show, focus ring included */
.v2 .rvx.growing{overflow-clip-margin:12px}
/* nothing in the bar shrinks on a click (owner, 18 Nov) */
.v2 .rvx-bar .ib:active{transform:none}
:root[data-style="studio"] .v2 .rvx-bar .ib:active{transform:none}
.v2 .rvx-t .w{animation:v2-rvw .45s var(--ease) both}
@keyframes v2-rvw{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}
.v2 .rvx-t.out{animation:v2-rvo .3s var(--ease) both}
@keyframes v2-rvo{to{opacity:0;filter:blur(4px);transform:translateY(-2px)}}
.v2 .rvx-bar{display:flex;align-items:center;gap:2px;margin-left:-6px}
/* its icon buttons, the pager's included, are the library's 28px icon buttons */
.v2 .rvx-bar .ib{width:28px;height:28px}
.v2 .rvx-pg{display:flex;align-items:center;gap:0}
.v2 .rvx-pg .ib[disabled]{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
/* the bar sits on the stage, where --row is the stage's own colour: it sets --row to a quiet 5% of the text colour, as the
   other cards on the stage do, so its buttons keep the one shared hover */
.v2 .rvx-bar{--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .rvx-n{font-size:12px;color:var(--muted);min-width:34px;text-align:center}
.v2 .rvx-re svg{transition:transform .7s var(--ease)}
.v2 .rvx-re.go svg{transform:rotate(360deg)}
.v2 .rvx-st{font-size:12px;margin-left:6px}
/* Studio (owner, 18 Nov): words fade in and out without a blur */
@keyframes v2-rvwc{from{opacity:0}to{opacity:1}}
@keyframes v2-rvoc{to{opacity:0;transform:translateY(-2px)}}
:root[data-style="studio"] .v2 .rvx-t .w{animation-name:v2-rvwc;animation-duration:var(--t-slow)}
:root[data-style="studio"] .v2 .rvx-t.out{animation-name:v2-rvoc;animation-duration:var(--t)}
/* Studio (owner, 22 Nov: "differentiate Studio from Soft"): the answer is a version card. The answer comes first, 16px in
   from the card's edges; under it a hairline, and under that the bar as a plain row with no strip (owner, 23 Nov: "just add
   a divider line"): the arrows and the count on the left with what is happening beside them, Regenerate and Copy at the
   right. Its buttons are 28px, 16px from the hairline, the card's bottom edge and its sides. Soft and Blueprint keep the
   answer flat in the thread with its bar under it, in the same order */
:root[data-style="studio"] .v2 .rvx-a{gap:0;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden}
:root[data-style="studio"] .v2 .rvx-bar{margin:0;padding:16px;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .rvx-t{padding:16px}
:root[data-style="studio"] .v2 .rvx-st{order:1;margin-left:var(--s-2);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .rvx-re{order:2;margin-left:auto}
:root[data-style="studio"] .v2 .rvx-cp{order:3}
.v2 .rvx-cp.copied,.v2 .aab-cp.copied{color:var(--ok-mark)!important}
/* ---------- Feedback sheet ---------- */
.v2 .fbx{display:flex;flex-direction:column;gap:var(--s-2)}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on a thumb or Cancel shows at once (.mx-press); as the sheet
   opens, its question, its reasons and the box rise in one after another (mxIn()); Send eases to the spinner's width on the
   spring (mxWidth()); and it grows on the spring as the sheet opens and the thanks line comes in (.mx-grow) */
/* the first thumb's icon starts where the answer does */
.v2 .fbx-bar{display:flex;align-items:center;gap:2px;margin-left:-8px}
.v2 .fbx-bar .ib svg{transition:transform .45s var(--ease)}
.v2 .fbx-bar .ib.on svg{transform:rotate(-8deg)}
/* nothing in the row shrinks or swells on a click (owner, 18 Nov): a rated thumb only tilts */
.v2 .fbx-bar .ib:active,.v2 .fbx-f .pill.ghost:active{transform:none}
/* the thumbs sit on the stage, where --row is the stage's own colour: the bar sets --row to a quiet 5% of the text colour, as
   the other cards on the stage do, so the thumbs keep the one shared hover */
.v2 .fbx-bar{--row:color-mix(in srgb,var(--fg) 5%,transparent)}
:root[data-style="studio"] .v2 .fbx-bar .ib:active{transform:none}
.v2 .fbx-dn.on{background:var(--bad-bg);color:var(--bad)}
.v2 .fbx-st{font-size:12.5px;margin-left:6px}
.v2 .fbx-box>div{margin-inline:-16px;padding-inline:var(--s-4)}
.v2 .fbx-in{padding:var(--s-4);display:flex;flex-direction:column;gap:10px;margin:var(--s-1) 0 0}
/* the component grows with what it shows in every style (grow(), owner's notes 18 Nov), and keeps no room under the sheet:
   its shadow shows past the fold and the growing box instead. The fold's own gap goes with it when it is shut */
.v2 .fbx.growing,.v2 .fbx-box>div{overflow-clip-margin:32px}
.v2 .fbx-box{transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),margin-top var(--t) var(--ease)}
.v2 .fbx-box.shut{margin-top:calc(-1 * var(--s-2));transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),margin-top var(--t) var(--ease),visibility 0s var(--t)}
.v2 .fbx-q{font-size:13.5px;font-weight:500}
.v2 .fbx-ch{display:flex;flex-wrap:wrap;gap:6px}
/* the reasons sit on the sheet: unpicked, they take the grey a step above the chip's own, so they read against what is
   behind them (owner, 23 Nov: "could these be a bit darker?"), and a step more under the pointer; a picked one is the accent
   tint with the accent's text colour. Answer action bar's reasons do the same; Studio keeps its own (below) */
.v2 .fbx-ch .chip{background:var(--hover)}
@media (hover:hover) and (pointer:fine){.v2 .fbx-ch .chip:hover{background:var(--press)}}
.v2 .fbx-ch .chip.on{background:var(--accent-bg);color:var(--accent-fg,var(--accent));box-shadow:none}
.v2 .fbx-ta{display:block;width:100%;resize:none;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:10px var(--s-3);font:inherit;font-size:13.5px;line-height:1.5;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .fbx-ta{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .fbx-ta:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .fbx-ta::placeholder{color:var(--muted)}
/* the footer sits under a hairline in Soft and Blueprint (owner, 21 Nov), 12px from it on each side; Studio's is a foot strip */
.v2 .fbx-f{display:flex;align-items:center;gap:6px;margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .fbx-n{font-size:12px;flex:1;min-width:0}
/* sent: a neutral line with the green tick, no green fill (owner, 18 Nov: a finished state) */
.v2 .fbx-thx{display:flex;align-items:center;gap:var(--s-2);font-size:13px;line-height:20px;color:var(--fg2)}
.v2 .fbx-thx svg{flex:none;color:var(--ok-mark)}
@media (max-width:480px){.v2 .fbx-n{display:none}}
/* Studio (owner, 18 Nov): the sheet's content sits 16px in from its edges, and its foot is an off-white strip: the note
   starts where the question does, and Cancel and Send are 28px pills 16px from the card's edges and the strip's hairline (owner, 23 Nov).
   The first thumb's icon starts where the answer and the sheet do. The chrome is monochrome: a rated
   thumb fills in ink on the selected fill in its round shape (owner, 23 Nov), with no red and no tilt and a picked reason is an ink chip like a toggle that is on */
:root[data-style="studio"] .v2 .fbx-bar .ib.on svg{transform:none}
:root[data-style="studio"] .v2 .fbx-bar .ib.on{background:var(--row-on);color:var(--fg)}
:root[data-style="studio"] .v2 .fbx-bar .ib.on svg{fill:currentColor}
:root[data-style="studio"] .v2 .fbx-in.panel{gap:12px;margin:4px 0 0;padding:16px 16px 0;overflow:clip}
:root[data-style="studio"] .v2 .fbx-q{font-size:14px;line-height:20px}
:root[data-style="studio"] .v2 .fbx-ch .chip.on{background:var(--btn-2);color:var(--on-btn);box-shadow:inset 0 0 0 1px var(--btn-2)}
/* a reason not picked takes the one hover over its fill, easing over 220ms (owner, 21 Nov) */
:root[data-style="studio"] .v2 .fbx-ch .chip:not(.on){background:var(--chip)}
:root[data-style="studio"] .v2 .fbx-ch .chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .fbx-ch .chip:not(.on):hover{background:var(--chip);box-shadow:inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .fbx-f{gap:8px;margin:4px -16px 0;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .fbx-f .pill.ghost:hover{background:var(--row)}}
/* the note keeps to one line, so the strip stays one control tall */
:root[data-style="studio"] .v2 .fbx-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* on a phone the note gives way, and Cancel and Send keep to the right edge */
:root[data-style="studio"] .v2 .fbx-x{margin-left:auto}
/* ---------- Model picker ---------- */
/* a trigger that names the model and how hard it thinks, over the open list: speed, quality and cost as five-step meters
   with the real numbers on hover, and the thinking effort under them as a small dropdown */
.v2 .mpk{position:relative;display:flex;flex-direction:column;gap:var(--s-2);width:100%;max-width:420px;margin:0 auto}
.v2 .mpk-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v2 .mpk-lb{font-size:12.5px}
/* Soft's model trigger is a flat button with a faint hairline (owner, 18 Nov: minimal), a step stronger under the pointer */
.v2 .mpk-tr{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 10px 0 6px;border-radius:var(--r-pill);background:var(--surface);box-shadow:var(--on-tint-btn);font-size:13px;font-weight:500;white-space:nowrap;transition:box-shadow .16s}
@media (hover:hover) and (pointer:fine){.v2 .mpk-tr:hover{box-shadow:var(--on-tint-btn-h)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .mpk-tr{box-shadow:var(--shadow)}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .mpk-tr:hover{box-shadow:var(--shadow-pop)}}
.v2 .mpk-tr>svg{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .mpk-tr[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .mpk-tr:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.v2 .mpk-ef{font-weight:400;font-size:12.5px}
/* each model's mark carries the letter colour that reads on it (--mt): on the accent fill that is --on-accent */
.v2 .mpk-mk{width:20px;height:20px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;font-size:11px;font-weight:500;color:var(--mt,var(--on-ink));background:var(--mc,var(--fg2));flex:none;transition:background .32s}
.v2 .mpk-p{padding:6px;display:flex;flex-direction:column}
.v2 .mpk-hd,.v2 .mpk-o{display:grid;grid-template-columns:20px minmax(0,1fr) repeat(3,34px);align-items:center;gap:10px}
.v2 .mpk-hd{padding:var(--s-1) 10px 2px;font-size:11px;color:var(--muted)}
.v2 .mpk-hd span{text-align:center}
.v2 .mpk-o{width:100%;padding:var(--s-2) 10px;border-radius:var(--r-in);text-align:left;font-size:13px;transition:background .16s}
@media (hover:hover) and (pointer:fine){.v2 .mpk-o:hover{background:var(--row)}}
/* (the picked model: the accent's tint, a step stronger than the selection wash so it shows on the card) */
.v2 .mpk-o[aria-checked="true"]{background:var(--accent-bg)}
.v2 .mpk-o[aria-checked="true"] .d{color:var(--fg2)}
.v2 .mpk-o:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.v2 .mpk-o .t{display:flex;flex-direction:column;min-width:0}
.v2 .mpk-o .t b{font-weight:500;display:flex;align-items:center;gap:6px}
.v2 .mpk-o .ck{display:grid;color:var(--accent-fg,var(--accent));opacity:0;transform:scale(.6);transition:opacity .16s,transform .32s var(--ease)}
.v2 .mpk-o[aria-checked="true"] .ck,.v2 .mpk-o .ck:has(.spin){opacity:1;transform:none}
.v2 .mpk-o .ck .spin{width:10px;height:10px;color:var(--muted)}
.v2 .mpk-o .d{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .mpk-o.busy .d{color:var(--warn)}
.v2 .mpk-o.busy .mpk-mk{background:var(--warn-mark);color:var(--on-ink)}
.v2 .mpk-m{display:flex;gap:2px;height:8px}
.v2 .mpk-m i{flex:1;border-radius:var(--r-tiny,2px);background:var(--rail);transition:background .32s}
.v2 .mpk-m i.on{background:var(--fg2)}
.v2 .mpk-o[aria-checked="true"]:not(.busy) .mpk-m i.on{background:var(--accent-mark,var(--accent))}
/* the way out when a model can't take the request: wait for it, or a close match that starts now. A warning notice (owner,
   18 Nov): a faint warning tint as wide as the rows' fills, the filled warning sign in the rows' tile column, the words in
   the text colour on the names' column, and the action in its status tint (.pill.warn), ending where the meters end */
.v2 .mpk-sg{margin:var(--s-1) 0 2px;padding:10px;border-radius:var(--r-in);background:color-mix(in srgb,var(--warn-bg) 45%,transparent);display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px}
.v2 .mpk-sgi{grid-area:1/1;justify-self:center;width:16px;height:16px;margin-top:1px;overflow:visible}
.v2 .mpk-sgi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .mpk-sgi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .mpk-sgt{grid-area:1/2;margin:0;font-size:12.5px;line-height:18px;color:var(--fg)}
.v2 .mpk-sga{grid-area:2/1/3/3;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
/* on the tinted notice the secondary button is white, not grey */
.v2 .mpk-sg .pill.line{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .mpk-sg .pill.line:hover{box-shadow:var(--on-tint-btn-h)}}
/* (Blueprint draws the white button's hairline inside it, so it is as tall as the warning button beside it) */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .mpk-sg .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .mpk-sg .pill.line:hover{box-shadow:inset 0 0 0 1px var(--line)}}
.v2 .mpk-th{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--s-2) var(--s-3);padding:var(--s-4) 10px 10px;margin:6px 0 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* Thinking sits on the rows' columns: its icon centred in the tiles' column, its words on the names' column */
.v2 .mpk-thh{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;column-gap:10px;min-width:0;font-size:13px}
.v2 .mpk-thh b{font-weight:500}
.v2 .mpk-thh>svg{justify-self:center;color:var(--muted)}
/* (the label and its detail: one under the other here; side by side on one baseline in Studio) */
.v2 .mpk-tw{display:contents}
.v2 .mpk-thd{grid-column:2;font-size:12px}
.v2 .mpk-eb{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 var(--s-2) 0 10px;border-radius:var(--r-pill);background:var(--chip-fill);font-size:13px;transition:background .16s}
.v2 .mpk-eb[aria-expanded="true"]{background:var(--chip-fill-h)}
@media (hover:hover) and (pointer:fine){.v2 .mpk-eb:hover{background:var(--chip-fill-h)}}
.v2 .mpk-eb>svg{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .mpk-eb[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .mpk-pop{min-width:220px}
.v2 .mpk-note{margin:0;padding:0 2px;font-size:12.5px;min-height:20px;display:flex;align-items:center;gap:6px}
.v2 .mpk-note svg{color:var(--ok);flex:none}
/* its motion (owner's trial, 26 Nov; the core's motion pieces): the list grows out of the trigger's corner from a short blur as
   the fold opens, its rows settling one after another, and folds back into it quicker than it came. A picked model's tick
   springs in out of a blur; the trigger's mark and words crossfade and its box eases to the new words' width; the effort menu
   grows from its button, and one highlight glides from row to row in every style. A press shows at once */
.v2 .mpk-p{transform-origin:top right;transition:opacity var(--t-out) var(--ease-io),transform var(--t-out) var(--ease-io),filter var(--t-out) var(--ease-io)}
.v2 .mpk-fold:not(.shut) .mpk-p{transition:opacity calc(var(--t-in) * .6) var(--ease),transform var(--t-in) var(--ease-pop),filter calc(var(--t-in) * .7) var(--ease)}
.v2 .mpk-fold.shut .mpk-p{opacity:0;transform:scale(.96);filter:blur(var(--blur-in))}
.v2 .mpk-o .ck{filter:blur(var(--blur-ic));transition:opacity .16s,transform var(--t-in) var(--ease-pop),filter var(--t-fast)}
.v2 .mpk-o:is([aria-checked="true"],:has(.spin)) .ck{filter:none}
/* phones: the line under each name wraps, and the meters keep room for their labels */
/* on a phone the meters close up so a model's line keeps two or three words to a row */
@media (max-width:480px){.v2 .mpk-hd,.v2 .mpk-o{grid-template-columns:20px minmax(0,1fr) repeat(3,34px);gap:6px}.v2 .mpk-hd{font-size:10.5px;padding-inline:6px}.v2 .mpk-o,.v2 .mpk-th,.v2 .mpk-sg{padding-inline:6px}.v2 :is(.mpk-sg,.mpk-thh){column-gap:6px}.v2 .mpk-o .d{white-space:normal}}
/* Studio (owner, 18 Nov): one measure inside the popover. Its content sits 16px in from each edge: the column heads, each
   row's mark and meters (the rows sit 8px in, with 8px of their own) and the foot's text. The picked row's fill is
   concentric with the popover's corners (22px = its 14px + the 8px inset), and the foot strip's select sits 16px from the
   right edge and from the strip's top and bottom (owner, 23 Nov), a 28px pill. Selection is neutral: a grey row fill, an ink check, meters one step
   darker; the models' marks keep their own colours. The trigger is a secondary pill, and the popover scales and fades in
   from it */
:root[data-style="studio"] .v2 .mpk-tr{gap:8px;padding:0 10px 0 6px;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .mpk-tr:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .mpk-tr:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .mpk-tr>svg{transition:transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .mpk-p.panel{padding:0;transform-origin:top right;transition:opacity var(--t) var(--ease),transform .32s var(--ease)}
:root[data-style="studio"] .v2 .mpk-fold.shut .mpk-p{opacity:0;transform:translateY(-4px) scale(.96);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 :is(.mpk-hd,.mpk-o){grid-template-columns:20px minmax(0,1fr) repeat(3,40px);gap:10px}
/* the column heads take only their own line: 16px from the top edge, the first row straight under them (no band above or
   below them) */
:root[data-style="studio"] .v2 .mpk-hd{padding:16px 16px 0;line-height:13px}
:root[data-style="studio"] .v2 .mpk-list{padding:0 8px 8px}
:root[data-style="studio"] .v2 .mpk-o{padding:8px;border-radius:calc(var(--r-card) - 8px);transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .mpk-o[aria-checked="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .mpk-o[aria-checked="true"] .t b{color:var(--fg)}
:root[data-style="studio"] .v2 .mpk-mk{border-radius:50%}
/* the check is ink and draws itself in when its row is picked */
:root[data-style="studio"] .v2 .mpk-o .ck{color:var(--fg);opacity:1;transform:none}
:root[data-style="studio"] .v2 .mpk-o .ck svg{stroke-dasharray:22;stroke-dashoffset:22;transition:stroke-dashoffset .1s var(--ease)}
:root[data-style="studio"] .v2 .mpk-o[aria-checked="true"] .ck svg{stroke-dashoffset:0;transition:stroke-dashoffset .42s var(--ease) .06s}
/* meters: ink pips on a faint grey track, one step darker on the picked row. As the popover opens they fill left to right,
   row by row */
@keyframes v2-mpkpip{from{background-color:var(--rail)}}
:root[data-style="studio"] .v2 .mpk-m{gap:2px}
:root[data-style="studio"] .v2 .mpk-m i{background:var(--rail);transition:background-color .32s var(--ease)}
:root[data-style="studio"] .v2 .mpk-m i.on{background:var(--fg2)}
:root[data-style="studio"] .v2 .mpk-o[aria-checked="true"] .mpk-m i:not(.on){background:var(--faint)}
:root[data-style="studio"] .v2 .mpk-o[aria-checked="true"]:not(.busy) .mpk-m i.on{background:var(--fg)}
:root[data-style="studio"] .v2 .mpk-fold:not(.shut) .mpk-m i.on{animation:v2-mpkpip .36s var(--ease) backwards;animation-delay:calc(140ms + var(--mpr,0) * 70ms + var(--mpm,0) * 110ms + var(--mpi,0) * 35ms)}
:root[data-style="studio"] .v2 .mpk-o:nth-child(2){--mpr:1}
:root[data-style="studio"] .v2 .mpk-o:nth-child(3){--mpr:2}
:root[data-style="studio"] .v2 .mpk-o:nth-child(n+4){--mpr:3}
:root[data-style="studio"] .v2 .mpk-m:nth-child(4){--mpm:1}
:root[data-style="studio"] .v2 .mpk-m:nth-child(5){--mpm:2}
:root[data-style="studio"] .v2 .mpk-m i:nth-child(2){--mpi:1}
:root[data-style="studio"] .v2 .mpk-m i:nth-child(3){--mpi:2}
:root[data-style="studio"] .v2 .mpk-m i:nth-child(4){--mpi:3}
:root[data-style="studio"] .v2 .mpk-m i:nth-child(5){--mpi:4}
/* the way out when a model is busy: the warning notice under the rows, as wide as their fills and with their corners, its sign
   in their tile column, its words on the names' column and its buttons ending where the meters end */
:root[data-style="studio"] .v2 .mpk-sg{margin:4px 8px 8px;padding:12px 8px;border-radius:calc(var(--r-card) - 8px);gap:12px 10px}
:root[data-style="studio"] .v2 .mpk-sga{gap:8px}
:root[data-style="studio"] .v2 .mpk-sg .pill.line{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .mpk-sg .pill.line:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .mpk-sg .pill.line:active{box-shadow:var(--btn2-press)}
/* the foot strip: thinking on one line, 16px in, and its select a secondary pill 16px from the strip's sides, top and bottom
   (owner, 23 Nov: 8px above and below looked jammed into the corner) */
:root[data-style="studio"] .v2 .mpk-th{flex-wrap:nowrap;gap:12px;margin:0;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* the brain mark sits centred on the line; "Thinking" and what it may spend share one baseline (owner, 23 Nov) */
:root[data-style="studio"] .v2 .mpk-thh{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;white-space:nowrap;line-height:20px}
:root[data-style="studio"] .v2 .mpk-tw{display:flex;align-items:baseline;gap:8px;min-width:0}
:root[data-style="studio"] .v2 .mpk-thh b{flex:none}
:root[data-style="studio"] .v2 .mpk-thd{grid-column:auto}
:root[data-style="studio"] .v2 .mpk-thd{min-width:0;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .mpk-eb{flex:none;gap:6px;height:28px;padding:0 10px 0 12px;font-weight:500;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.mpk-eb:hover,.mpk-eb[aria-expanded="true"]){background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .mpk-eb:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .mpk-pop{padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .mpk-pop .mi{border-radius:calc(var(--r-card) - 6px)}
/* the confirmation under the popover takes no room until it has something to say, and opens smoothly when it does */
:root[data-style="studio"] .v2 .mpk-note{min-height:0;max-height:0;margin-top:-8px;opacity:0;overflow:hidden;transition:max-height var(--t) var(--ease),margin-top var(--t) var(--ease),opacity var(--t) var(--ease)}
:root[data-style="studio"] .v2 .mpk-note:not(:empty){max-height:40px;margin-top:0;opacity:1}
/* the confirmation is the card's last strip, under Thinking: it opens once there is something to say, its words 16px in,
   and the strip above it gives the card's round foot to it while it shows. Nothing sits under the card */
:root[data-style="studio"] .v2 .mpk-p>.mpk-note{margin:0;padding:0 16px;gap:8px;background:var(--strip);border-top:0 solid var(--line);border-radius:0 0 var(--r-card) var(--r-card);line-height:28px;white-space:nowrap;transition:max-height var(--t) var(--ease),padding var(--t) var(--ease),opacity var(--t) var(--ease)}
:root[data-style="studio"] .v2 .mpk-p>.mpk-note:not(:empty){max-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;border-top-width:1px}
:root[data-style="studio"] .v2 .mpk-p>.mpk-note span{min-width:0;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .mpk-p:has(>.mpk-note:not(:empty)) .mpk-th{border-radius:0}
:root[data-style="studio"] .v2 .mpk-note svg{color:var(--ok-mark)}
/* phones: the thinking line goes under its label rather than being cut, and the select turns into a text control aligned by
   its text, its chevron 16px from the edge like the meters above it */
@media (max-width:480px){:root[data-style="studio"] .v2 :is(.mpk-hd,.mpk-o){grid-template-columns:20px minmax(0,1fr) repeat(3,36px);gap:8px}:root[data-style="studio"] .v2 .mpk-sg{column-gap:8px}:root[data-style="studio"] .v2 .mpk-hd{padding-inline:16px}:root[data-style="studio"] .v2 .mpk-o{padding-inline:8px}
  :root[data-style="studio"] .v2 .mpk-th{padding:var(--strip-y) 16px}:root[data-style="studio"] .v2 .mpk-thh{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0 6px;white-space:normal}:root[data-style="studio"] .v2 .mpk-tw{display:contents}:root[data-style="studio"] .v2 .mpk-thd{grid-column:1 / -1}
  :root[data-style="studio"] .v2 .mpk-eb{margin-right:-10px;background:none;box-shadow:none}
  @media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.mpk-eb:hover,.mpk-eb[aria-expanded="true"]){margin-right:-10px;background:none;box-shadow:none}}@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .mpk-eb:hover{background:var(--row)}}:root[data-style="studio"] .v2 .mpk-eb[aria-expanded="true"]{background:var(--row-on)}}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .mpk-m i.on{animation:none!important}:root[data-style="studio"] .v2 :is(.mpk-p,.mpk-o .ck svg,.mpk-note,.mpk-m i){transition:none!important}}
/* ---------- Answer action bar ---------- */
/* every action on an answer in one raised rail under it: copy, regenerate with its versions, thumbs, and read aloud, which
   widens into a progress bar and a clock and lights each word as it reads it */
.v2 .aab{display:flex;flex-direction:column;gap:var(--s-3)}
/* no room kept for a longer answer or an empty status line, in every style (owner's notes, 18 Nov): the answer is as tall as
   its words, the reasons and the status take room only while they show, and the component grows with them (grow()). While
   a new version streams in, the answer keeps the height of the one it replaces, then eases to its own. The bar's shadow
   shows past the growing box */
.v2 .aab.growing{overflow-clip-margin:32px}
.v2 .aab-why{transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),margin-top var(--t) var(--ease)}
.v2 .aab-why.shut{margin-top:calc(-1 * var(--s-3));transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),margin-top var(--t) var(--ease),visibility 0s var(--t)}
/* nothing in the bar shrinks or swells on a click (owner, 18 Nov): a rated thumb only tilts */
.v2 .aab-bar .ib:active{transform:none}
:root[data-style="studio"] .v2 .aab-bar .ib:active{transform:none}
/* (the word being read is lit with small corners, so a short word's highlight stays a rounded box, not a near-circle) */
.v2 .aab-t .w{transition:background .16s,color .16s;border-radius:calc(3px * var(--rk))}
.v2 .aab-t .w.in{animation:v2-aabw .42s var(--ease) both}
@keyframes v2-aabw{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}
.v2 .aab-t.out{animation:v2-aabo .32s var(--ease) both}
@keyframes v2-aabo{to{opacity:0;filter:blur(4px);transform:translateY(-2px)}}
.v2 .aab-t .nw{background:var(--hl-ok);border-radius:0}
.v2 .aab-t .w.rd{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .aab-row{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--s-2) var(--s-3)}
.v2 .aab-row>.aab-bar{flex:none}
.v2 .aab-bar{display:inline-flex;align-items:center;gap:1px;padding:3px;border-radius:var(--r-pill);background:var(--surface);box-shadow:var(--shadow)}
.v2 .aab-bar .ib{width:28px;height:28px}
.v2 .aab-bar .ib[disabled]{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .aab-bar .ib svg{transition:transform .42s var(--ease)}
.v2 .aab-re.go svg{transform:rotate(360deg)}
.v2 .aab-up[aria-pressed="true"]{color:var(--ok);background:var(--ok-bg)}
.v2 .aab-dn[aria-pressed="true"]{color:var(--bad);background:var(--bad-bg)}
.v2 .aab-up[aria-pressed="true"] svg,.v2 .aab-dn[aria-pressed="true"] svg{transform:rotate(-8deg)}
.v2 .aab-sep{width:1px;height:16px;background:var(--line);margin:0 var(--s-1)}
/* the version pager only takes room once there is a second version */
.v2 .aab-pg{display:inline-flex;align-items:center;max-width:0;overflow:hidden;opacity:0;transition:max-width .42s var(--ease),opacity .32s}
.v2 .aab-pg.on{max-width:96px;opacity:1}
/* (the versions' arrows are the bar's own 28px icon buttons) */
.v2 .aab-pg .ib{width:28px;height:28px}
.v2 .aab-n{font-size:12px;color:var(--muted);min-width:32px;text-align:center}
.v2 .aab-rd{display:inline-flex;align-items:center;height:28px;padding:0 7px;border-radius:var(--r-pill);color:var(--fg2);transition:background .16s,color .16s}
@media (hover:hover) and (pointer:fine){.v2 .aab-rd:hover{background:var(--row)}}
.v2 .aab-rd .ic{display:grid;place-items:center;width:14px}
.v2 .aab-rd[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .aab-rd.paused{background:var(--chip-fill);color:var(--fg2)}
.v2 .aab-pr{width:0;height:3px;border-radius:var(--r-tiny,2px);background:color-mix(in srgb,currentColor 22%,transparent);overflow:hidden;margin-left:0;transition:width .42s var(--ease),margin .42s var(--ease)}
.v2 .aab-pr i{display:block;height:100%;width:0;background:currentColor;border-radius:inherit}
.v2 .aab-tm{font-size:11.5px;max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .42s var(--ease),margin .42s var(--ease)}
.v2 .aab-rd.on .aab-pr{width:56px;margin-left:var(--s-2)}
.v2 .aab-rd.on .aab-tm{max-width:80px;margin-left:var(--s-2)}
.v2 .aab-meta{flex:0 1 auto;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .aab-wy{display:flex;flex-direction:column;gap:var(--s-2);padding:2px 0 var(--s-1)}
.v2 .aab-wq{font-size:13px;font-weight:500}
.v2 .aab-ch{display:flex;flex-wrap:wrap;gap:6px}
/* the reasons sit on the stage: unpicked, a step above the chip's own grey and a step more under the pointer, as Feedback
   sheet's are (owner, 23 Nov: "could these be a bit darker?"); a picked one is the accent tint. Studio keeps its own (below) */
.v2 .aab-ch .chip{background:var(--hover)}
@media (hover:hover) and (pointer:fine){.v2 .aab-ch .chip:hover{background:var(--press)}}
.v2 .aab-ch .chip.on{background:var(--accent-bg);color:var(--accent-fg,var(--accent));box-shadow:none}
/* (the status line opens and closes on its own height at the moment the reasons fold does, so the card moves once, in one
   direction: owner, 26 Nov. A line about to empty eases shut and fades with its words still in it; .off) */
.v2 .aab-st{margin:0;max-height:20px;font-size:12.5px;display:flex;align-items:center;gap:6px;overflow:clip;overflow-clip-margin:2px;transition:max-height var(--t) var(--ease),margin-top var(--t) var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .aab-st:is(:empty,.off){max-height:0;margin-top:calc(-1 * var(--s-3))}
.v2 .aab-st.off{opacity:0}
.v2 .aab-st.warn{color:var(--warn)}
.v2 .aab-st.ok svg{color:var(--ok);flex:none}
.v2 .aab-rd.on .aab-pr{width:40px}
@media (max-width:480px){.v2 .aab-rd.on .aab-tm{display:none}.v2 .aab-row{flex-direction:column;align-items:flex-start}.v2 .aab-meta{max-width:100%}}
/* Studio (owner, 18 Nov): the chrome is monochrome: a rated thumb fills in ink on the selected fill in its round shape (owner, 23 Nov), with no green or red and no tilt, read aloud plays in ink on a grey track and lights the word
   it reads in grey, and a picked reason is an ink chip like a toggle that is on. What a new version changed stays green, and
   so does the status's tick; a problem stays amber. Words fade in and out without a blur */
@keyframes v2-aabwc{from{opacity:0}to{opacity:1}}
@keyframes v2-aaboc{to{opacity:0;transform:translateY(-2px)}}
:root[data-style="studio"] .v2 .aab-bar{border-radius:calc(28px / 2 + 3px)}
:root[data-style="studio"] .v2 .aab-t .w.in{animation-name:v2-aabwc;animation-duration:var(--t-slow)}
:root[data-style="studio"] .v2 .aab-t.out{animation-name:v2-aaboc;animation-duration:var(--t)}
:root[data-style="studio"] .v2 .aab-bar .ib[aria-pressed="true"] svg{transform:none}
/* (the word being read is lit a step darker than the chip's next grey, so it shows on the stage) */
:root[data-style="studio"] .v2 .aab-t .w.rd{background:var(--press);color:var(--fg)}
:root[data-style="studio"] .v2 .aab-bar .ib[aria-pressed="true"]{background:var(--row-on);color:var(--fg)}
:root[data-style="studio"] .v2 .aab-bar .ib[aria-pressed="true"] svg{fill:currentColor}
:root[data-style="studio"] .v2 .aab-rd[aria-pressed="true"]{background:var(--row-on);color:var(--fg)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aab-rd:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .aab-ch .chip.on{background:var(--btn-2);color:var(--on-btn);box-shadow:inset 0 0 0 1px var(--btn-2)}
/* a reason not picked takes the one hover over its fill, easing over 220ms (owner, 21 Nov); on the stage its grey is two steps
   above the chip's own, so it shows there as a chip does on a card */
:root[data-style="studio"] .v2 .aab-ch .chip:not(.on){background:var(--press)}
:root[data-style="studio"] .v2 .aab-ch .chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .aab-ch .chip:not(.on):hover{background:var(--press);box-shadow:inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .aab-st.ok svg{color:var(--ok-mark)}
/* its motion (owner's trial, 26 Nov; the core's motion pieces): a press on any of its buttons shows at once and eases back
   (.mx-press, no scale); Copy's icon, the tick and the speaker, play and pause crossfade (.mx-ic); a rated thumb tilts on a
   spring, and in Studio, which has no tilt, fills in over its fade; the reasons rise in one after another as they open, and the
   component eases to its new height on the same spring */
.v2 .aab-bar :is(.aab-up,.aab-dn) svg{transition:transform calc(var(--t-in) * 1.4) var(--ease-pop)}
:root[data-style="studio"] .v2 .aab-bar :is(.aab-up,.aab-dn) svg{fill:currentColor;fill-opacity:0;transition:fill-opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .aab-bar :is(.aab-up,.aab-dn)[aria-pressed="true"] svg{fill-opacity:1}
/* ---------- Decision prompt ---------- */
/* the agent asks in the chat: no container; with .panel it becomes a card. Each answer is a tile to pick (a click, its
   number or the arrows): white with a dimmed grey edge, the picked one's edge a step stronger and its number filled. No
   room is kept for what comes next (owner, 18 Nov): the card grows and shrinks with what it shows (grow()), and once every
   question is answered the line saying the agent has started takes the buttons' place */
.v2 .dpx{padding:var(--s-4) 0;display:flex;flex-direction:column;gap:var(--s-3);outline:0;border-radius:var(--r-in)}
.v2 .dpx.panel{padding:var(--s-4);border-radius:var(--r-card)}
.v2 .dpx:focus-visible{outline:2px solid var(--focus);outline-offset:6px}
.v2 .dpx-h{display:flex;align-items:center;justify-content:space-between}
/* once every question is answered the head goes, label and dots (owner, 23 Nov: "All set" said what the card already shows):
   the card eases to its new height with its usual grow(), its first summary row 16px from the top, and a hidden line tells
   screen readers that every question is answered. (Agent harness keeps staging's head under its own rules) */
.v2 .dpx.done .dpx-h{display:none}
.v2 .dpx-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .dpx-k{font-size:12px;line-height:16px}
.v2 .dpx-dots{display:flex;gap:var(--s-1);transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),visibility 0s}
/* the steps are done once every question is answered (owner, 21 Nov): the dots fade and shrink a little where they are, at
   the style's own pace, and keep their room, so nothing else in the head moves; with reduced motion they are simply gone */
.v2 .dpx-dots.gone{opacity:0;transform:scale(.8);visibility:hidden;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),visibility 0s var(--t)}
@media (prefers-reduced-motion:reduce){.v2 .dpx-dots,.v2 .dpx-dots.gone{transition:none}}
.v2 .dpx-dots i{width:6px;height:6px;border-radius:var(--r-tiny,3px);background:var(--line);transition:width .45s var(--ease),background .35s}
.v2 .dpx-dots i.on{width:16px;background:var(--accent-mark,var(--accent))}
.v2 .dpx-dots i.done{background:var(--accent-mark,var(--accent));opacity:.4}
.v2 .dpx-q{font-size:14px;font-weight:500;line-height:20px;margin-bottom:var(--s-3);text-wrap:balance}
.v2 .dpx-opts{display:flex;flex-direction:column;gap:6px}
/* (its key chip and its count sit as far in from its two ends) */
.v2 .dpx-o{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:6px 10px;border-radius:var(--r-in);font-size:13.5px;text-align:left;color:var(--fg2);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent);transition:background-color .25s,color .25s,box-shadow .25s}
@media (hover:hover) and (pointer:fine){.v2 .dpx-o:hover{background:var(--row);color:var(--fg)}}
.v2 .dpx-o.on{color:var(--fg);box-shadow:inset 0 0 0 1px var(--pick-on)}
.v2 .dpx-o .kbd{width:20px;flex:none;text-align:center;transition:background .25s,color .25s}
.v2 .dpx-o.on .kbd{background:var(--accent);color:var(--on-accent,#fff)}
.v2 .dpx-o .d{margin-left:auto;font-size:12px;color:var(--muted)}
.v2 .dpx-f{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:28px}
/* the footer, its buttons or the line saying the agent has started, sits under a hairline in Soft and Blueprint (owner, 21 Nov:
   "add a divider line above the loading text"), 16px under the content and 16px over what it holds, as the card's own edges
   are; Studio's foot strip has its own (below) */
.v2 .dpx-f{margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* Continue's Enter key is a glyph beside its word, with no tile of its own (owner, 21 Nov: "not a fan of a squircle button
   inside a rounded button"): the same gap as an icon's, and the button's padding even at both ends */
.v2 .dpx-f .pill.dpx-go .kbd{min-width:0;height:auto;padding:0;margin:0;border-radius:0;background:none;box-shadow:none;color:inherit;font-size:13px;line-height:1}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .dpx .pill:active{transform:none}
.v2 .dpx-sum{display:flex;flex-direction:column}
.v2 .dpx-sr{display:flex;gap:10px;font-size:13px;line-height:20px;padding:8px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .dpx-sr:first-child{padding-top:0}
.v2 .dpx-sr:last-child{border:0;padding-bottom:0}
.v2 .dpx-sr span{color:var(--muted);width:92px;flex:none}
/* answered: the line saying the agent has started, where the buttons were, its mark on the content's left edge; a tick
   once it has started is the vivid mark green */
.v2 .dpx-f.run{justify-content:flex-start}
.v2 .dpx-run{display:flex;align-items:center;gap:var(--s-2);min-width:0;font-size:13px;line-height:20px}
.v2 .dpx-ok{display:grid;color:var(--ok-mark)}
/* its motion (owner's trial, 26 Nov; the core's motion pieces): a press on an answer shows at once (.mx-press, no scale); the
   question answered leaves to one side and the next comes in from the other, piece by piece, as the card eases to its new
   height on a spring (.mx-grow); the summary's rows rise in 50ms apart */
/* Studio (owner, 19 Nov): its content 16px from every edge, and an off-white foot strip whose buttons sit 16px from the card's
   edges and the strip's hairline (owner, 23 Nov); the strip starts 16px under the answers. The answers are 10px round tiles with a
   hairline, the picked one's a step stronger and its number in ink, and the progress dots are the accent, white in dark mode, as
   every Studio loader is. Continue is the ink button, its Enter key in a quiet chip of its own ink. Once answered, the strip holds the
   line saying the agent has started, its words 16px in */
:root[data-style="studio"] .v2 .dpx.panel{padding:16px 16px 0}
:root[data-style="studio"] .v2 .dpx-dots i{background:var(--rail);transition:width var(--t) var(--ease),background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .dpx-dots i.on{background:var(--accent-mark)}
:root[data-style="studio"] .v2 .dpx-dots i.done{background:var(--accent-mark);opacity:.3}
:root[data-style="studio"] .v2 .dpx-run .think{color:var(--accent-mark)}
/* (an answer's key chip under the pointer takes the card's surface, so it shows on the hover's fill in both themes) */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .dpx-o:not(.ahx *):hover:not(.on) .kbd{background:var(--surface)}}
:root[data-style="studio"] .v2 .dpx-o{border-radius:10px;box-shadow:inset 0 0 0 1px var(--hair);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .dpx-o.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 26%,transparent)}
:root[data-style="studio"] .v2 .dpx-o .kbd{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .dpx-o.on .kbd{background:var(--fg);color:var(--surface)}
:root[data-style="studio"] .v2 .dpx.panel .dpx-f{margin:4px -16px 0;padding:var(--strip-y) 16px;gap:4px;min-height:calc(28px + 2 * var(--strip-y) + 1px);border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .dpx.panel .dpx-f.run{padding-left:16px}
/* (a step of --ok in the vivid green keeps the tick at 3:1 on the off-white strip, as Attachment tray's does) */
:root[data-style="studio"] .v2 .dpx.panel .dpx-ok{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
/* ---------- Proposal card ---------- */
/* a suggestion posted in the chat: no container; with .panel it becomes a card, its content 16px from every edge */
.v2 .prx{padding:var(--s-4) 0;display:flex;flex-direction:column;gap:var(--s-3);container-type:inline-size}
.v2 .prx.panel{padding:var(--s-4)}
.v2 .prx-h{display:flex;gap:10px;align-items:center}
.v2 .prx-ic{width:32px;height:32px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--pp-bg);color:var(--pp);display:grid;place-items:center;flex:none}
.v2 .prx-ht{display:flex;flex-direction:column;min-width:0}
.v2 .prx-ht b{font-weight:500;font-size:13.5px}
.v2 .prx-ht span{font-size:12.5px}
.v2 .prx-diff{display:flex;align-items:center;gap:var(--s-2);padding:10px;border-radius:var(--r-in);background:var(--chip);flex-wrap:wrap}
.v2 .prx-sw{display:flex;align-items:center;gap:var(--s-2);font-size:12px;flex:1;min-width:0}
.v2 .prx-ar{color:var(--muted);display:grid}
/* too narrow for the change on one line (a phone): the new value goes under the old one, the arrow pointing down between
   them under the swatches, so nothing runs out of the box */
@container (max-width:300px){.v2 .prx-diff{flex-direction:column;align-items:flex-start;gap:6px}.v2 .prx-sw{flex:none}.v2 .prx-ar{width:18px;justify-items:center;transform:rotate(90deg)}}
.v2 .prx-c{width:18px;height:18px;border-radius:calc(6px * var(--rk-s,var(--rk)));flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transition:background .5s var(--ease)}
.v2 .prx-new .num{transition:opacity .3s}
.v2 .prx-cf{display:flex;align-items:center;gap:10px;font-size:12.5px}
.v2 .prx-seg{display:flex;gap:3px;flex:1}
.v2 .prx-seg i{flex:1;height:5px;border-radius:var(--r-tiny,3px);background:var(--line);transition:background .4s}
/* the confidence is a meter, so its parts take the bright mark green (3:1), not the darker text green */
.v2 .prx-seg i.on{background:var(--ok-mark)}
.v2 .prx-pc{width:34px;text-align:right;color:var(--fg2)}
/* the toggle's chevron sits on the content's edge, its hover box reaching out round it */
.v2 .prx-alt-t{display:flex;align-items:center;gap:6px;margin:-4px -8px;padding:4px 8px;border-radius:var(--r-pill);font-size:12.5px;color:var(--fg2);align-self:flex-start;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .prx-alt-t:hover{background:color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg)}}
.v2 .prx-alt-t svg{transition:transform .4s var(--ease)}
.v2 .prx-alt-t.open svg{transform:rotate(90deg)}
/* the other options: each row's fill is the content's width, no wider, and its swatch and value sit on the columns of the
   change above (10px and 36px in) */
/* the folded options keep no room: the fold takes back the card's gap before it, so the footer sits as far under the toggle as
   the card's other parts sit apart, and opened, the options start 16px under the toggle as before */
.v2 .prx-alt{margin-top:calc(-1 * var(--s-3))}
.v2 .prx-alts{display:flex;flex-direction:column;gap:2px;padding-top:calc(var(--s-1) + var(--s-3))}
.v2 .prx-a{display:flex;align-items:center;gap:var(--s-2);padding:7px 10px;border-radius:var(--r-in);font-size:13px;text-align:left;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .prx-a:hover{background:var(--row)}}
.v2 .prx-a .d{margin-left:auto;font-size:12px;color:var(--muted)}
/* narrow (a phone): each other option's line goes under its name, the swatch centred beside the two */
@container (max-width:300px){.v2 .prx-a{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:var(--s-2)}.v2 .prx-a .prx-c{grid-row:1/3;align-self:center}.v2 .prx-a .d{grid-column:2;margin-left:0}}
/* the footer sits under a hairline in Soft and Blueprint (owner, 21 and 22 Nov), 16px under the content and 16px over its
   buttons, as the card's own edges are; Studio's is a foot strip */
.v2 .prx-f{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .prx .pill:active{transform:none}
/* accepted: a neutral line with the green tick (owner, 18 Nov), and Undo */
.v2 .prx-done{display:flex;align-items:center;gap:var(--s-2);min-width:0;font-size:13px;color:var(--fg);flex:1}
.v2 .prx-done>svg{flex:none;color:var(--ok-mark)}
/* Studio (owner, 19 Nov): a round card with its content 16px from every edge and an off-white foot strip, 16px under the
   options, whose buttons sit 16px from the card's edges and the strip's hairline (owner, 23 Nov); once you answer, the strip holds what
   happened (its tick on the content's 16px column, owner 22 Nov) and Undo. The head's tile is the neutral one with a hairline, as every Studio tile */
:root[data-style="studio"] .v2 .prx.panel{padding:16px 16px 0}
:root[data-style="studio"] .v2 .prx-ic{background:var(--chip);color:var(--fg2);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .prx-ht b{line-height:20px}
:root[data-style="studio"] .v2 .prx-ht span{line-height:18px}
:root[data-style="studio"] .v2 .prx-seg i{transition:background-color var(--t) var(--ease)}
:root[data-style="studio"] .v2 .prx-alt-t svg{transition:transform var(--t) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .prx-alt-t:hover,:root[data-style="studio"] .v2 .prx-a:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .prx.panel .prx-f{margin:4px -16px 0;padding:var(--strip-y) 16px;gap:4px;min-height:calc(28px + 2 * var(--strip-y) + 1px);border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
/* (a step of --ok in the vivid green keeps the tick at 3:1 on the off-white strip, as Attachment tray's does) */
:root[data-style="studio"] .v2 .prx.panel .prx-done>svg{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
/* ---------- Rewrite toolbar ---------- */
/* a document whose sentences you click; a small toolbar over the one you pick offers rewrites, and the new sentence is
   written in after the old one, struck, a word at a time, to accept or undo. No room is kept for the words to come (owner,
   18 Nov): the text grows as they arrive (grow()), the card with it, and the toolbar glides along under the last line */
.v2 .rwx{padding:var(--s-4);position:relative}
/* (the kind, the title and the status are all words, so the row lines them up by their baseline) */
.v2 .rwx-h{display:flex;align-items:baseline;gap:var(--s-2);font-size:13px;font-weight:500;margin-bottom:10px}
.v2 .rwx-st{margin-left:auto;font-weight:400;font-size:12px}
.v2 .rwx-doc{font-size:14px;line-height:24px;color:var(--fg2)}
/* grow() wraps the text: it stays one flowing paragraph */
.v2 .rwx-doc>.dm-grow{display:block}
.v2 .rwx-s{border-radius:var(--r-tiny,5px);cursor:text;transition:background .3s,color .3s;padding:1px 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media (hover:hover) and (pointer:fine){.v2 .rwx-s:hover{background:var(--row);color:var(--fg)}}
.v2 .rwx-s.sel{background:var(--sel);color:var(--fg)}
/* once it holds a rewrite, the struck words and the new ones say which sentence it is: the tint goes, so the words still
   fading in never show as an empty tinted band ahead of the text */
.v2 .rwx-s.sel:has(ins){background:none}
.v2 .rwx-s.sel del{color:var(--fg2)}
/* the words it replaces keep the text grey and are struck with the bright red mark; the new ones are in the text colour */
.v2 .rwx-s del{color:var(--muted);text-decoration-color:var(--bad-mark)}
.v2 .rwx-s ins{text-decoration:none;color:var(--fg)}
.v2 .rwx-s ins .w{animation:v2-rww .4s var(--ease) both}
@keyframes v2-rww{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
.v2 .rwx-tb{position:absolute;left:0;top:0;display:flex;align-items:center;gap:2px;padding:var(--s-1);border-radius:var(--r-pill);background:var(--ink);color:var(--on-ink);box-shadow:var(--shadow-pop);opacity:0;pointer-events:none;transform:translateY(6px) scale(.96);filter:blur(4px);transition:opacity .3s var(--ease),transform .4s var(--ease),filter .3s,top var(--t) var(--ease),left var(--t) var(--ease);z-index:3;white-space:nowrap}
.v2 .rwx-tb.show{opacity:1;pointer-events:auto;transform:none;filter:none}
/* "Rewriting" shimmers while the agent writes, in the toolbar's own ink; done, the tick is the vivid mark green */
.v2 .rwx-tb .shim{background-image:linear-gradient(90deg,var(--on-ink) 0%,var(--on-ink) 38%,color-mix(in srgb,var(--on-ink) 35%,var(--ink)) 50%,var(--on-ink) 62%,var(--on-ink) 100%)}
.v2 .rwx-tb .lbl>svg{color:var(--ok-mark)}
.v2 .rwx-b{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:var(--r-pill);font-size:12.5px;color:inherit;opacity:.85;transition:background .2s,opacity .2s}
.v2 .rwx-b.hl{background:color-mix(in srgb,var(--on-ink) 14%,transparent);opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .rwx-b:hover{background:color-mix(in srgb,var(--on-ink) 14%,transparent);opacity:1}}
.v2 .rwx-b.ic{width:28px;padding:0;justify-content:center}
.v2 .rwx-sep{width:1px;height:16px;background:color-mix(in srgb,var(--on-ink) 25%,transparent);margin:0 2px}
.v2 .rwx-tb.act{padding:var(--s-1) var(--s-1) var(--s-1) var(--s-3)}
.v2 .rwx-tb .lbl{font-size:12.5px;margin-right:6px;display:flex;align-items:center;gap:7px}
.v2 .rwx-tb .pill.sm{height:28px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's primary alone presses */
.v2 .rwx .pill:active{transform:none}
/* in dark mode the toolbar is the raised dark surface with a hairline, not the inverted light ink (owner, 10 Nov) */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .rwx-tb{--ink:var(--raised);--on-ink:var(--fg);box-shadow:var(--shadow-pop),inset 0 0 0 1px color-mix(in srgb,var(--fg) 12%,transparent)}}
:root[data-theme="dark"] .v2 .rwx-tb{--ink:var(--raised);--on-ink:var(--fg);box-shadow:var(--shadow-pop),inset 0 0 0 1px color-mix(in srgb,var(--fg) 12%,transparent)}
@media (prefers-reduced-motion:reduce){.v2 .rwx-tb .shim{color:var(--on-ink);background:none}}
/* Studio (owner, 19 Nov): its content 16px from every edge; the file's mark is the neutral grey every Studio file mark is.
   The toolbar is the ink pill (black in light, the raised grey in dark) and opens from the sentence by scaling and fading,
   with no blur; its Accept is the white button, so it stands out on the ink (the dark mode's white button, with its faint
   glow only in dark). Words fade in without a blur */
:root[data-style="studio"] .v2 .rwx.panel{padding:16px}
:root[data-style="studio"] .v2 .rwx-h .ft{color:var(--muted)}
:root[data-style="studio"] .v2 .rwx-tb{filter:none;transform:translateY(4px) scale(.96);transform-origin:top left;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),top var(--t) var(--ease),left var(--t) var(--ease)}
:root[data-style="studio"] .v2 .rwx-tb.show{transform:none}
:root[data-style="studio"] .v2 .rwx-b{transition:background-color var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .rwx-s{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .rwx-s ins .w{animation:v2-rwwc var(--t-fast) var(--ease) both}
@keyframes v2-rwwc{from{opacity:0}}
:root[data-style="studio"] .v2 .rwx-tb{--btn-1:#ffffff;--btn-2:#e0e0e0;--on-btn:#0a0a0a;--btn-depth:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 3px 5px -2px #ffffff,inset 0 -3px 5px -3px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5);--btn-press:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 1px 3px rgba(0,0,0,.3),inset 0 -3px 5px -3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.4)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .rwx-tb{--btn-depth:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 3px 5px -2px #ffffff,inset 0 -3px 5px -3px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5),0 0 14px rgba(255,255,255,.16)}}
:root[data-style="studio"][data-theme="dark"] .v2 .rwx-tb{--btn-depth:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 3px 5px -2px #ffffff,inset 0 -3px 5px -3px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5),0 0 14px rgba(255,255,255,.16)}
/* ---------- Design tuner ---------- */
/* the component being tuned on the left, its inspector on the right: the component's name and who changed it last in the head,
   a slider for each setting, what the agent changed as a plain line once it has tuned, and Tune with agent in the footer under
   a hairline. Both panels are as tall as each other; the footer sits at the inspector's foot */
.v2 .dtx{display:grid;grid-template-columns:1fr 280px;gap:14px;align-items:stretch}
@media (max-width:720px){.v2 .dtx{grid-template-columns:1fr}}
@container (max-width:600px){.v2 .dtx{grid-template-columns:1fr}.v2 .dtx-prev{min-height:240px}}
.v2 .dtx-prev{border-radius:calc(18px * var(--rk));background:var(--chip);display:grid;place-items:center;padding:var(--s-6);min-height:300px;min-width:0}
.v2 .dtx-card{--rad:16px;--pad:18px;--gap:12px;--sh:.08;width:min(250px,100%);background:var(--surface);border-radius:var(--rad);padding:var(--pad);display:flex;flex-direction:column;gap:var(--gap);box-shadow:0 1px 2px rgba(0,0,0,var(--sh)),0 8px 24px rgba(0,0,0,calc(var(--sh) * .8))}
.v2 .dtx-tg{align-self:flex-start}
.v2 .dtx-pr{display:flex;align-items:baseline;gap:6px}
.v2 .dtx-pr b{font-size:14px;font-weight:500;letter-spacing:-.02em}
.v2 .dtx-pr span{font-size:12px}
.v2 .dtx-li{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--fg2)}
.v2 .dtx-li span{display:flex;align-items:center;gap:7px}
.v2 .dtx-li svg{color:var(--accent-fg,var(--accent))}
.v2 .dtx-cta{width:100%;border-radius:calc(var(--rad) * .6)}
.v2 .dtx-insp{padding:var(--s-4);display:flex;flex-direction:column;--dg:var(--s-3);gap:var(--dg);min-width:0}
/* the head: the name and, on its baseline, who changed it last (the words shimmer while the agent tunes, as every loader's do) */
.v2 .dtx-ih{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-3);font-size:13.5px;line-height:20px}
.v2 .dtx-ih b{font-weight:500}
.v2 .dtx-st{font-size:12px;line-height:18px;white-space:nowrap}
.v2 .dtx-st .shim{font-size:inherit}
.v2 .dtx-rows{display:flex;flex-direction:column;gap:var(--s-3);flex:1 0 auto}
.v2 .dtx-r{display:grid;grid-template-columns:62px 1fr 40px;align-items:center;gap:var(--s-3);font-size:12.5px;color:var(--fg2)}
.v2 .dtx-r .v{text-align:right;color:var(--fg);font-size:12px}
.v2 .dtx-r.hot .v{color:var(--accent-fg,var(--accent))}
.v2 .dtx-sl{position:relative;height:22px;display:flex;align-items:center;cursor:pointer;touch-action:none}
.v2 .dtx-sl::before{content:"";position:absolute;left:0;right:0;height:4px;border-radius:2px;background:var(--rail)}
.v2 .dtx-sl .f{position:absolute;left:0;height:4px;border-radius:2px;background:var(--accent-mark,var(--accent))}
.v2 .dtx-sl .k{position:absolute;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),0 1px 3px rgba(0,0,0,.18);transition:transform .2s}
.v2 .dtx-sl.drag .k,.v2 .dtx-sl:focus-visible .k{transform:scale(1.15)}
@media (hover:hover) and (pointer:fine){.v2 .dtx-sl:hover .k{transform:scale(1.15)}}
.v2 .dtx-sl:focus-visible{outline-offset:4px}
/* what the agent changed: a plain line with its spark, no box (notes are plain text) */
/* (it folds open, so the inspector, and the stage beside it, ease to their new height instead of jumping; the gap above it is
   inside the fold) */
.v2 .dtx-nf{margin-top:calc(-1 * var(--dg))}
.v2 .dtx-nf>div>.dtx-note{margin-top:var(--dg)}
.v2 .dtx-note{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:var(--s-2);font-size:12.5px;line-height:18px;color:var(--fg2)}
.v2 .dtx-note>svg{margin-top:1px;color:var(--accent-fg,var(--accent))}
/* the footer: Tune with agent on the right, 16px under the hairline and 16px above the card's edge */
.v2 .dtx-f{display:flex;justify-content:flex-end;padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .dtx-go.busy{pointer-events:none}
/* Studio: the inspector has an off-white head and foot strip, 16px round their contents; the stage the component sits on has
   Studio's card corners and a grey a step stronger than the page's, so it shows on it; the sliders take Studio's track and knob */
:root[data-style="studio"] .v2 .dtx-prev{border-radius:var(--r-card);background:var(--hover)}
:root[data-style="studio"] .v2 .dtx-insp{padding:0 16px;--dg:16px;overflow:clip}
:root[data-style="studio"] .v2 .dtx-ih{margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line)}
:root[data-style="studio"] .v2 .dtx-ih>*{line-height:28px}
:root[data-style="studio"] .v2 .dtx-f{margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-top-color:var(--line)}
:root[data-style="studio"] .v2 .dtx-sl::before{height:6px;border-radius:3px;box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .dtx-sl .f{height:6px;border-radius:3px}
:root[data-style="studio"] .v2 .dtx-sl .k{width:16px;height:16px;margin-left:-8px;background:var(--knob);box-shadow:var(--knob-shadow);transition:transform var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .dtx-r .v{transition:color var(--t-fast) var(--ease)}
/* ---------- Permission gate ---------- */
/* the agent asks in the chat as one card: the question, the scopes to tick, and a footer with how long and the two
   answers. Without .panel it sits flat in the thread */
.v2 .pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--s-1) 0;display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .pgx.panel{padding:var(--s-4)}
/* its motion (the core's motion pieces, owner, 26 Nov): How long's menu grows out of its button and goes back quicker, its
   rows settle one after another and one highlight glides between them; a press shows at once (.mx-press, no scale); How
   long's words and Allow ease their box to the new width (.mx-w); the spinner crossfades to the done mark (.mx-ic); and the
   card eases to each new height on the spring (.mx-grow) */
.v2 .pgx-h{display:flex;gap:var(--s-3);align-items:center}
.v2 .pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);display:grid;place-items:center;flex:none}
.v2 .pgx-ht{display:flex;flex-direction:column;min-width:0}
.v2 .pgx-ht b{font-weight:500;font-size:14px}
.v2 .pgx-ht span{font-size:13px}
/* the scopes line up with the head (owner, 18 Nov): each box centred in a 32px column under the icon tile, its words where the
   question's start, and a tag at the row's end on the right edge the buttons below end on. The row's hover fill reaches 8px
   out round it, into the padding (owner, 26 Nov) */
.v2 .pgx-sc{display:flex;flex-direction:column}
.v2 .pgx-o{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);margin-inline:calc(-1 * var(--s-2));padding:var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));cursor:pointer;font-size:13.5px;transition:background .25s}
.v2 .pgx-o>.bx{justify-self:center}
@media (hover:hover) and (pointer:fine){.v2 .pgx-o:hover{background:var(--row)}}
.v2 .pgx-o input{position:absolute;opacity:0;pointer-events:none}
.v2 .pgx-o .bx{width:18px;height:18px;border-radius:calc(6px * var(--rk-s,var(--rk)));box-shadow:inset 0 0 0 1.5px var(--fg2);display:grid;place-items:center;color:transparent;flex:none;transition:background .3s var(--ease),box-shadow .3s,color .3s}
.v2 .pgx-o .bx svg{transform:scale(.4);transition:transform .35s var(--ease)}
.v2 .pgx-o input:checked+.bx{background:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent-mark,var(--accent));color:var(--on-accent,#fff)}
.v2 .pgx-o input:checked+.bx svg{transform:none}
.v2 .pgx-o input:focus-visible+.bx{outline:2px solid var(--focus);outline-offset:2px}
.v2 .pgx-o .t{flex:1;min-width:0}
/* asking again for one scope, every style: nothing to tick, so the scope is a plain row led by a tile like the question's
   (what it does, in the same 32px column) and the button just says Allow (owner, 18 Nov) */
.v2 .pgx-o.one{cursor:default}
@media (hover:hover) and (pointer:fine){.v2 .pgx-o.one:hover{background:none}}
.v2 .pgx-o.one>.oi{width:32px;height:32px;display:grid;place-items:center;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);color:var(--fg2)}
:root[data-style="studio"] .v2 .pgx-o.one>.oi{box-shadow:inset 0 0 0 1px var(--hair)}
.v2 .pgx-o .d{display:block;font-size:12px;color:var(--muted)}
.v2 .pgx-f{display:flex;align-items:center;gap:6px;padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .pgx-f .sp{flex:1}
/* on a narrow stage the duration gets its own row, and the two buttons stay together under it on the right */
@container (max-width:340px){.v2 .pgx-f{flex-wrap:wrap;padding-top:var(--s-3)}.v2 .pgx-f .sp{flex-basis:100%}.v2 .pgx-no{margin:var(--s-2) 0 0 auto}.v2 .pgx-ok{margin-top:var(--s-2)}}
/* how long: a small dropdown, the way a menu of choices usually looks */
.v2 .pgx-db{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 var(--s-2) 0 10px;margin-left:0;border-radius:var(--r-pill);font-size:13px;color:var(--fg2);white-space:nowrap;transition:background .16s,color .16s}
.v2 .pgx-db[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .pgx-db:hover{background:var(--row);color:var(--fg)}}
.v2 .pgx-db>svg{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .pgx-db[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .pgx-pop{min-width:230px}
.v2 .pgx-ok[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
.v2 .pgx-done{display:flex;align-items:center;gap:var(--s-3);padding:10px 7px 10px 0;border-radius:var(--r-in);background:var(--chip);font-size:13.5px}
/* its mark sits centred in the scopes' 32px column, under the head's tile, and its words start on the title's column */
.v2 .pgx-done>svg{margin-inline:8px}
/* on a phone the answered row wraps to a small card: its words and its button 16px from its top, bottom and right; its mark
   stays centred under the head's tile */
@container (max-width:340px){.v2 .pgx-done{padding:var(--s-4) var(--s-4) var(--s-4) 0}}
/* its button is a white pill on the grey row */
.v2 .pgx-done .pill{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .pgx-done .pill:hover{background:var(--surface);box-shadow:var(--on-tint-btn-h)}}
.v2 .pgx-done .t{flex:1;color:var(--fg)}
.v2 .pgx-done .t span{display:block;font-size:12px;color:var(--fg2)}
.v2 .pgx-done>svg{color:var(--ok)}
/* while the agent works under the permission: a neutral row with a spinner and a live line. Once done the spinner becomes the
   green tick and the row stays neutral: no green fill and no clock (owner, 18 Nov) */
.v2 .pgx-done .g{width:32px;height:18px;display:grid;place-items:center;flex:none;color:var(--fg2)}
.v2 .pgx-done.ok .g{color:var(--ok)}
.v2 .pgx-done .t b{display:block;font-weight:400}
/* asking again mid-run, for one more scope: the tile turns amber */
.v2 .pgx-ic{transition:background .32s var(--ease)}
/* asking again keeps the tile neutral in every style: the Risky tag on the scope carries the warning (owner, 18 Nov) */
.v2 .pgx-scope{display:flex;flex-direction:column;gap:var(--s-3)}
/* the line in the foot strip once you have answered (Studio only): the scopes you allowed, or that you allowed none */
.v2 .pgx-sum{display:none}

/* Studio (owner, 18 Nov): a card with the question, the scopes and an off-white foot strip. Its content sits 16px from
   every edge; the controls in the strip sit 16px from the card's sides and bottom and from the strip's hairline (owner,
   23 Nov), and the duration select lines up with the content above by its text, not its hover box. The ticks are
   ink and draw in, the count on Allow rolls as boxes are ticked, and once you answer the scopes fold into one summary line
   in the strip while the card eases to its new height (grow(), centred in its stage). Its height is never kept */
/* the card clips its strips to its round corners; the duration menu opens out of it (nothing changes height while it is open) */
:root[data-style="studio"] .v2 .pgx.panel{padding:16px 16px 0;overflow:clip;overflow-clip-margin:0px}
:root[data-style="studio"] .v2 .pgx.panel:has(.pgx-pop.open){overflow:visible}
:root[data-style="studio"] .v2 .pgx-ic{box-shadow:inset 0 0 0 1px var(--hair)}
/* asking again keeps the tile neutral: the Risky tag on the scope carries the warning */
:root[data-style="studio"] .v2 .pgx-ht b{line-height:20px;letter-spacing:-.01em}
:root[data-style="studio"] .v2 .pgx-ht span,:root[data-style="studio"] .v2 .pgx-o .d,:root[data-style="studio"] .v2 .pgx-done .t span{line-height:18px}
:root[data-style="studio"] .v2 :is(.pgx-o,.pgx-done) .t{line-height:20px}
/* a scope row: its box in a 32px column under the question's tile, centred, so its words start where the question's do;
   hairlines between rows, which give way to the quiet fill of the row under the pointer */
:root[data-style="studio"] .v2 .pgx-o{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .pgx-o>.bx{justify-self:center}
:root[data-style="studio"] .v2 .pgx-o+.pgx-o{background-image:linear-gradient(var(--hair),var(--hair));background-repeat:no-repeat;background-position:var(--s-2) 0;background-size:calc(100% - 2 * var(--s-2)) 1px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.pgx-o:hover,.pgx-o:hover+.pgx-o){background-image:none}}
/* asking again for one scope: nothing to tick, so the scope is an info row, its info mark where the box would be */

:root[data-style="studio"] .v2 .pgx-o .bx{border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--fg2),var(--track-ring);transition:background .2s var(--ease),box-shadow .2s var(--ease)}
:root[data-style="studio"] .v2 .pgx-o .bx svg{transform:none;stroke-dasharray:21;stroke-dashoffset:21;transition:stroke-dashoffset .3s var(--ease)}
:root[data-style="studio"] .v2 .pgx-o input:checked+.bx{background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:inset 0 0 0 1px var(--btn-2),inset 0 2px 3px -1px rgba(255,255,255,.28);color:var(--on-btn)}
:root[data-style="studio"] .v2 .pgx-o input:checked+.bx svg{stroke-dashoffset:0;transition-delay:.06s}
:root[data-style="studio"] .v2 .pgx-o:active .bx{transform:scale(.94);transition:transform var(--t-fast) var(--ease)}
/* the foot strip: 16px round its 28px controls (owner, 23 Nov), so it is 61px tall with its hairline; the scopes end 16px above it (their
   rows keep 8px of hover room below the text). Lines are whole pixels, so the card's edge meets the strip's exactly */
:root[data-style="studio"] .v2 .pgx.panel .pgx-sc{margin-bottom:-4px}
:root[data-style="studio"] .v2 .pgx.panel .pgx-f{margin:0 -16px;padding:var(--strip-y) 16px;gap:4px;border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
/* when you ask again the strip comes back as a fade, after the card has grown to hold it (its script waits): rising from below,
   it would show its buttons cut off by the card's edge while the card grows */
:root[data-style="studio"] .v2 .pgx.panel .pgx-f.enter{animation-name:v2-pgxfoot}
@keyframes v2-pgxfoot{from{opacity:0}}
:root[data-style="studio"] .v2 .pgx-f .pgx-db{padding:0 8px;margin:0;color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pgx-f :is(.pgx-db:hover,.pill.ghost:hover){background:var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .pgx-f :is(.pgx-db,.pill.ghost).mx-press:active{background:var(--row-press)}
:root[data-style="studio"] .v2 .pgx-f .pgx-db[aria-expanded="true"]{background:var(--row-on);color:var(--fg)}
/* on a narrow stage the buttons wrap under the select: the strip's 4px gaps put them 8px under it */
@container (max-width:340px){:root[data-style="studio"] .v2 .pgx-no{margin:0 0 0 auto}:root[data-style="studio"] .v2 .pgx-ok{margin-top:0}}
/* Allow's count rolls: up as a box is ticked, down as one is cleared. No window clips it: each number moves a few pixels
   and fades, so a digit is never seen cut in half */
:root[data-style="studio"] .v2 .pgx-cnt{display:inline-grid}
:root[data-style="studio"] .v2 .pgx-cnt>i{grid-area:1/1;font-style:normal;font-variant-numeric:tabular-nums}
@keyframes v2-pgxiu{from{transform:translateY(40%);opacity:0}}
@keyframes v2-pgxou{to{transform:translateY(-40%);opacity:0}}
@keyframes v2-pgxid{from{transform:translateY(-40%);opacity:0}}
@keyframes v2-pgxod{to{transform:translateY(40%);opacity:0}}
/* the old number leaves first and the new one follows, so the two never sit on top of each other */
:root[data-style="studio"] .v2 .pgx-cnt>.iu{animation:v2-pgxiu .22s var(--ease) .1s both}
:root[data-style="studio"] .v2 .pgx-cnt>.ou{animation:v2-pgxou .16s var(--ease) both}
:root[data-style="studio"] .v2 .pgx-cnt>.id{animation:v2-pgxid .22s var(--ease) .1s both}
:root[data-style="studio"] .v2 .pgx-cnt>.od{animation:v2-pgxod .16s var(--ease) both}
/* answered: the result line where the scopes were (a 32px mark under the question's tile, the words under the question's
   words, the clock on the right), then the strip with the summary and Revoke or Undo in the corner */
:root[data-style="studio"] .v2 .pgx.panel .pgx-done{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-rows:auto calc(28px + 2 * var(--strip-y) + 1px);column-gap:12px;row-gap:16px;align-items:center;padding:0;border-radius:0;background:none!important}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done>:is(.g,svg){grid-area:1/1}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done>.t{grid-area:1/2}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done .t b{font-weight:500}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done .t b span{font-size:inherit;line-height:inherit;color:inherit}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done .t span{color:var(--muted)}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done>.pill{grid-area:2/3;z-index:1;align-self:end;margin:0 0 var(--strip-y) 0;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pgx.panel .pgx-done>.pill:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done>.pill:active{box-shadow:var(--btn2-press)}
/* the strip is the summary line itself, edge to edge; Revoke or Undo sits on its right end. Its colour reaches 240px below
   the card's edge (clipped there), so while the card eases shorter no empty band shows under it */
:root[data-style="studio"] .v2 .pgx.panel .pgx-sum{display:block;grid-area:2/1/3/-1;align-self:stretch;margin:0 -16px -240px;padding:var(--strip-y) 104px calc(240px + var(--strip-y)) 16px;border-top:1px solid var(--line);background:var(--strip);line-height:28px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .pgx-sum .s{display:none}
@container (max-width:340px){:root[data-style="studio"] .v2 .pgx-sum .l{display:none}:root[data-style="studio"] .v2 .pgx-sum .s{display:inline}}
/* the mark: a neutral circle with the spinner while the agent works; done, its ring turns green and the tick draws in */
:root[data-style="studio"] .v2 .pgx.panel .pgx-done .g{width:32px;height:32px;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);color:var(--fg2);transition:background-color .3s var(--ease),box-shadow .3s var(--ease)}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done.ok .g{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ok-mark);color:var(--ok-mark)}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done.ok .g svg{width:16px;height:16px;stroke-width:2;stroke-dasharray:21;animation:v2-pgxdraw .5s var(--ease) .12s both}
@keyframes v2-pgxdraw{from{stroke-dashoffset:21}to{stroke-dashoffset:0}}
:root[data-style="studio"] .v2 .pgx.panel .pgx-done>svg{width:32px;height:32px;margin:0;padding:8px;box-sizing:border-box;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);color:var(--fg2)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 :is(.pgx-o .bx,.pgx-o .bx svg,.pgx-done .g){transition:none}:root[data-style="studio"] .v2 :is(.pgx-cnt>i,.pgx-done.ok .g svg){animation:none}}
/* ---------- Hand-off to a person ---------- */
/* the agent passes a conversation to a person: why, who has it (with Reassign), when the reply is due, what they need to
   pick it up, and what the customer was told, with a status line at the foot. The type and spacing are Draft review's; the
   two columns stack when narrow. Its content is 16px from every edge */
.v2 .hox{position:relative;width:100%;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .hox-h{display:flex;align-items:center;gap:var(--s-3)}
.v2 .hox-ic{width:32px;height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);color:var(--fg2);display:grid;place-items:center;flex:none}
.v2 .hox-ht{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .hox-ht b{font-weight:500;font-size:14px;line-height:20px}
.v2 .hox-ht span{font-size:13px;line-height:18px}
.v2 .hox-b{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s-4) var(--s-6);align-items:start;padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
@container (max-width:600px){.v2 .hox-b{grid-template-columns:minmax(0,1fr)}.v2 .hox-col+.hox-col{padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}}
.v2 .hox-col{display:flex;flex-direction:column;gap:var(--s-2);min-width:0}
.v2 .hox-lb{font-size:12px;color:var(--muted)}
.v2 .hox-who{display:flex;align-items:center;gap:var(--s-3);min-height:40px}
.v2 .hox-av{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:50%;background:var(--chip);color:var(--fg2)}
/* the person's avatar is as big as the head's tile, so its words start where the title's do */
.v2 .hox-av .av{width:32px;height:32px;font-size:12px}
.v2 .hox-wt{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .hox-wt b{font-weight:500;font-size:13.5px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .hox-wd{display:flex;align-items:center;gap:6px;font-size:12px;line-height:18px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .hox-wd .dot{color:var(--faint)}
/* the person's status: the dot is a mark (--ok-mark, --warn-mark) and the words keep the text colours */
.v2 .hox-wd.ok .dot{color:var(--ok-mark)}
.v2 .hox-wd.warn{color:var(--warn)}
.v2 .hox-wd.warn .dot{color:var(--warn-mark)}
/* Reassign: a small dropdown, like the one for how long in Permission gate. It is the row's last control, so its words end on
   the content's right edge (where the target time under it ends) and its hover box reaches 8px out round them */
.v2 .hox-rb{display:inline-flex;align-items:center;gap:6px;height:28px;margin-right:calc(-1 * var(--s-2));padding:0 var(--s-2);border-radius:var(--r-pill);font-size:13px;color:var(--fg2);flex:none;transition:background .16s,color .16s}
.v2 .hox-rb[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .hox-rb:hover{background:var(--row);color:var(--fg)}}
.v2 .hox-rb>svg{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .hox-rb[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .hox-rb[disabled]{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .hox-rb[disabled]>svg{color:var(--dis)}
.v2 .hox-pop{min-width:240px}
/* its menu opens out of the card, which keeps its height while the menu is open */
.v2 .hox.growing:has(.hox-pop.open){overflow:visible}
.v2 .hox-pop .mi .av{width:20px;height:20px;font-size:9px}
.v2 .hox-pop .mi>span:not(.ck):not(.av){flex:1;min-width:0}
/* when the reply is due: the line counts down and the bar empties, amber in the last five minutes. The due time and the target
   are two sizes on one line, so they share a baseline in their own wrapper; the clock sits on the line's centre */
.v2 .hox-sla{display:flex;flex-direction:column;gap:var(--s-2);padding-top:var(--s-2)}
.v2 .hox-sl{display:flex;align-items:center;gap:var(--s-2);font-size:13px}
.v2 .hox-sl>svg{color:var(--fg2);flex:none}
.v2 .hox-sw{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .hox-sw .muted{margin-left:auto;font-size:12px;white-space:nowrap}
.v2 .hox-due{min-width:0}
.v2 .hox-bar{height:4px;border-radius:2px;background:var(--chip);overflow:hidden}
.v2 .hox-bar i{display:block;height:100%;width:100%;border-radius:inherit;background:var(--fg2);transition:width 1s linear,background .3s}
.v2 .hox-sla.warn .hox-sl>svg,.v2 .hox-sla.warn .hox-due{color:var(--warn)}
.v2 .hox-sla.warn .hox-bar i{background:var(--warn-mark)}
.v2 .hox-sla.bad .hox-sl>svg,.v2 .hox-sla.bad .hox-due{color:var(--bad)}
.v2 .hox-sla.bad .hox-bar i{background:var(--bad-mark)}
.v2 .hox-sum{margin:0;font-size:13px;line-height:1.5;color:var(--fg2)}
.v2 .hox-facts{display:flex;flex-direction:column;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .hox-f{display:flex;align-items:center;gap:var(--s-3);min-height:32px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px}
.v2 .hox-f .k{width:72px;flex:none;color:var(--muted)}
.v2 .hox-f .v{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .hox-lnk{align-self:flex-start;max-width:100%}
.v2 .hox-lnk>span{overflow:hidden;text-overflow:ellipsis}
/* what the customer was told, editable in place. Edit is a ghost button, the row's last control, so its words end on the
   content's right edge (where the message box ends) */
.v2 .hox-ms{display:flex;flex-direction:column;gap:var(--s-2);margin-top:var(--s-1);padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .hox-mh{display:flex;align-items:center;gap:var(--s-2);min-height:28px}
.v2 .hox-mh .sp{flex:1}
.v2 .hox-mh .pill.ghost:last-child{margin-right:-11px}
.v2 .hox-mb{padding:10px var(--s-3);border-radius:var(--r-in);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:13.5px;line-height:1.5;outline:0;transition:box-shadow var(--t-fast),background var(--t-fast)}
.v2 .hox-mb[contenteditable="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .hox-mb[contenteditable="true"]{corner-shape:squircle;border-radius:var(--r-box-sq)}}
.v2 .hox-mb[contenteditable="true"]:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* where it stands: the card's footer, under a hairline, 16px from it and from the card's bottom edge. Its mark sits centred in
   the head's 32px tile column and its words start where the title's do. It is neutral while it waits (a spinner, the words
   with the loader's sweep), a warning notice when the person can't take it (owner, 18 Nov: a faint warning tint reaching 8px
   out round the row, the filled warning sign in --warn-mark, the words in the text colours and Reassign, the action that
   settles it, as .pill.warn), and a neutral row with the person's avatar once they have it: no green fill (owner, 18 Nov) */
.v2 .hox-st{margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .hox-sr{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);min-height:28px;margin:calc(-1 * var(--s-2));padding:var(--s-2);border-radius:calc(var(--r-card) - 8px);transition:background-color .32s var(--ease)}
.v2 .hox-st.warn .hox-sr{background:color-mix(in srgb,var(--warn-bg) 45%,transparent)}
.v2 .hox-sr .g{width:32px;height:20px;display:grid;place-items:center;color:var(--fg2)}
.v2 .hox-sr .g .av{width:20px;height:20px;font-size:8.5px}
.v2 .hox-st.ok .g{color:var(--ok)}
:root[data-style="studio"] .v2 .hox-st.ok .g{color:var(--ok-mark)}
.v2 .hox-wi{width:16px;height:16px;overflow:visible}
.v2 .hox-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .hox-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .hox-sr .t{min-width:0;display:flex;flex-direction:column;font-size:13px;line-height:20px;color:var(--fg)}
.v2 .hox-sr .t b{font-weight:500}
.v2 .hox-sr .t>span{font-size:12.5px;line-height:18px;color:var(--muted)}
.v2 .hox-st.warn .hox-sr .t>span{color:var(--fg2)}
.v2 .hox-sr .t,.v2 .hox-sum,.v2 .hox-mb,.v2 .tmx-note>span{text-wrap:pretty}
/* on a phone the notice's Reassign goes under its words, starting where they start, so the words keep the row's width; the
   mark stays on the title's line */
@container (max-width:480px){.v2 .hox-sr{grid-template-columns:32px minmax(0,1fr);align-items:start}.v2 .hox-sr .pill{grid-column:2;justify-self:start;margin-top:var(--s-2)}}
/* Studio (owner, 17 and 18 Nov): the head's tile with a hairline, the footer an off-white foot strip whose words and Reassign
   sit 16px from its hairline and the card's bottom edge (--strip-y) and 16px in from the sides; when the person can't take it
   the strip itself takes the faint warning tint. Reassign at the top is Studio's quiet select: the one hover, and the stronger
   fill while its menu is open */
:root[data-style="studio"] .v2 .hox.panel{padding:16px 16px 0}
:root[data-style="studio"] .v2 .hox-ic{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .hox-ht b{letter-spacing:-.01em}
:root[data-style="studio"] .v2 .hox-rb{color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .hox-rb:not([disabled]):hover{background:var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .hox-rb[aria-expanded="true"]{background:var(--row-on);color:var(--fg)}
:root[data-style="studio"] .v2 .hox-bar{box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .hox-st{margin:var(--s-1) -16px 0;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card);transition:background-color .32s var(--ease)}
:root[data-style="studio"] .v2 .hox-st.warn{background:color-mix(in srgb,var(--warn-bg) 45%,var(--surface))}
:root[data-style="studio"] .v2 .hox-st .hox-sr{margin:0;padding:0;background:none}
/* ---------- Plan review ---------- */
/* the plan the agent posts in the chat: no container; with .panel it becomes a card */
.v2 .plx{padding:14px 0;display:flex;flex-direction:column;gap:10px;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .plx.panel{padding:var(--s-4)}
/* its motion (the core's motion pieces, owner, 26 Nov): one highlight glides from step to step in every style (.mx-glide); a
   press shows at once (.mx-press, no scale); a step's number, spinner, clock and tick crossfade, as Skip's cross and undo do
   (.mx-ic); and the plan grows on the spring as its lines arrive (.mx-grow) */
.v2 .plx-h{display:flex;align-items:center;gap:10px}
/* the header's mark sits in the steps' 32px number column, centred */
.v2 .plx-mk{color:var(--accent-fg,var(--accent));margin-inline:9px}
.v2 .plx-ht{display:flex;flex-direction:column;min-width:0}
.v2 .plx-ht b{font-weight:500;font-size:13.5px}
.v2 .plx-st{font-size:12.5px}
/* every part on shared columns, in every style (owner, 18 Nov): the header's mark and each step's number are centred in one
   32px column, so the steps' words start where the title's do, and a step's buttons and time end on the content's right edge;
   a step's hover fill reaches 8px out round it, into the padding, as Add a step's does (owner, 26 Nov) */
.v2 .plx-list{list-style:none;margin:0 calc(-1 * var(--s-2));padding:0;display:flex;flex-direction:column;counter-reset:s}
.v2 .plx-s{display:flex;align-items:flex-start;gap:10px;padding:7px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;transition:background .25s,opacity .35s;position:relative}
@media (hover:hover) and (pointer:fine){.v2 .plx-s:hover{background:var(--row)}}
.v2 .plx-s .n{width:20px;height:20px;margin:1px 6px 0;border-radius:50%;background:var(--chip);display:grid;place-items:center;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);flex:none;transition:background .35s,color .35s}
@media (hover:hover) and (pointer:fine){.v2 .plx-s:hover .n{background:var(--surface)}}
.v2 .plx-s .b{flex:1;min-width:0;display:flex;flex-direction:column}
/* (a 20px line, with the number on it: the number and the words share one centre, with even room above and below) */
.v2 .plx-s .t{min-width:0;outline:0;border-radius:var(--r-tiny,5px);padding:1px 3px;margin:0 -3px;line-height:20px}
/* the line a step reports: it opens under the step, in the step's colour while it waits on something */
.v2 .plx-s .d{font-size:12px;color:var(--muted);display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s var(--ease)}
.v2 .plx-s .d.on{grid-template-rows:1fr}
.v2 .plx-s .d>span{overflow:hidden;min-height:0}
/* a running step's note ("Retrying") has the loader's sweep; the note it replaces fades out in its own colour, unswept */
.v2 .plx-s .d>.shim.out{color:inherit;background:none;animation:none}
.v2 .plx-s .d.warn{color:var(--warn)}
.v2 .plx-tm{margin-left:auto;font-size:12px;color:var(--muted)}
.v2 .plx-tm:empty{display:none}
.v2 .plx-s .n .spin{width:10px;height:10px}
.v2 .plx-s .t:focus{background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* (the skip button takes no more height than a step's line, so a step has the same room above and below its words) */
.v2 .plx-s .ib{width:24px;height:24px;margin-block:-1.25px;opacity:0;transition:opacity .2s}
.v2 .plx-s .ib:focus-visible{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .plx-s:hover .ib{opacity:1}}
.v2 .plx-s.off{opacity:.45}
.v2 .plx-s.off .t{text-decoration:line-through}
.v2 .plx-s.run .n{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
/* a finished step is neutral with the green tick, no green fill (owner, 18 Nov) */
.v2 .plx-s.done .n{background:var(--chip);color:var(--ok)}
.v2 .plx-s.retry .n{background:var(--warn-bg);color:var(--warn)}
.v2 .plx-s.edited .t::after{content:"edited";margin-left:6px;font-size:11px;color:var(--accent-fg,var(--accent))}
.v2 .plx-add{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--fg2);margin-inline:calc(-1 * var(--s-2));padding:6px var(--s-2);align-self:stretch;border-radius:calc(10px * var(--rk-m,var(--rk)))}
.v2 .plx-add .i{margin-inline:10px}
@media (hover:hover) and (pointer:fine){.v2 .plx-add:hover{color:var(--fg);background:var(--row)}}
/* the footer's buttons end on the content's right edge, also on a phone, where the note beside them is left out */
.v2 .plx-f{display:flex;align-items:center;justify-content:flex-end;gap:6px}
/* the footer sits under a hairline in Soft and Blueprint, in every state (owner, 21 Nov: "shouldn't there be a divider line
   there?"), 16px under the last step and 16px over its buttons, as the card's own edges are; Studio's is a foot strip (below) */
.v2 .plx-f{margin-top:6px;padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .plx-n{flex:1;font-size:12px;min-width:0}
@media (max-width:480px){.v2 .plx-n{display:none}}
/* Studio (lead and owner, 18 Nov): a card with the plan and an off-white foot strip, everything on shared columns. Its
   content sits 16px in from every edge: the header's mark sits in a 32px neutral tile, and each step's number circle is
   centred in that same 32px column, as Add a step's plus is, so every step's words start where the title's do. A step's
   hover fill spans the content, from the tile's left edge to the content's right edge, never wider; the skip button is
   centred in a 32px column at its end. The foot strip's hint starts at the content's left edge, and its buttons sit 8px from
   the card's edges, the 28px buttons' 14px ends and 8px making the card's 22px corner. A queued step is a hairline circle with its number, the step in hand a spinner ring in the accent (white in dark mode), one
   waiting out a problem an orange ring with its clock, a finished one a neutral circle with a green ring and tick (no green
   fill, as a finished row has none): two hues, and only on
   steps that run or have run. Each step's line comes in only once the agent has done it (or is waiting on something), and
   the header sums the run up only once it is over. "edited" is quiet grey text */
:root[data-style="studio"] .v2 .plx.panel{padding:16px 16px 0}
:root[data-style="studio"] .v2 .plx.panel.growing{overflow-clip-margin:0px}
:root[data-style="studio"] .v2 .plx-h{position:relative;gap:12px}
:root[data-style="studio"] .v2 .plx-h::before{content:"";position:absolute;left:0;top:50%;width:32px;height:32px;margin-top:-16px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .plx-mk{margin-inline:9px;color:var(--accent-mark)}
:root[data-style="studio"] .v2 .plx-ht b{line-height:20px}
:root[data-style="studio"] .v2 .plx-st{line-height:18px}
:root[data-style="studio"] .v2 .plx-tm{font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .plx-list{margin:0 calc(-1 * var(--s-2))}
:root[data-style="studio"] .v2 .plx-s{gap:12px;padding:7px var(--s-2);border-radius:calc(7px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .plx-s .n{margin:1px 6px 0;background:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 50%,transparent);transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .plx-s:hover .n{background:var(--surface)}}
:root[data-style="studio"] .v2 .plx-s.run .n{box-shadow:none;color:var(--fg)}
:root[data-style="studio"] .v2 .plx-s.run .n .spin{width:20px;height:20px;border:1.5px solid var(--line);border-top-color:var(--accent-mark);animation-duration:.9s}
:root[data-style="studio"] .v2 .plx-s.retry .n{background:none;box-shadow:inset 0 0 0 1.5px var(--warn-mark);color:var(--warn-mark)}
:root[data-style="studio"] .v2 .plx-s.done .n{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ok-mark);color:var(--ok-mark)}
:root[data-style="studio"] .v2 .plx-s.done .n .i{width:11px;height:11px;stroke-width:2.4}
:root[data-style="studio"] .v2 .plx-s.edited .t::after{color:var(--muted)}
:root[data-style="studio"] .v2 .plx-add{align-self:stretch;gap:12px;margin:-4px calc(-1 * var(--s-2)) 0;padding:6px var(--s-2);border-radius:calc(7px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .plx-add .i{margin-inline:10px}
:root[data-style="studio"] .v2 .plx.panel .plx-f .plx-stop{margin-right:0}
:root[data-style="studio"] .v2 .plx.panel .plx-f{justify-content:flex-end;gap:4px;margin:6px -16px 0;padding:var(--strip-y) 16px;border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .plx.panel .plx-n{padding-left:0}
/* ---------- Inline text diff ---------- */
/* a piece of copy with the agent's edits marked inline, struck and added; each edit opens a small toolbar to accept or
   reject it, and an edit the agent isn't sure of says why */
.v2 .itd{position:relative;width:100%;max-width:440px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .itd-h{display:flex;align-items:center;gap:var(--s-3)}
.v2 .itd-ht{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .itd-ht b{font-weight:500;font-size:14px}
.v2 .itd-st{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .itd-a{display:flex;gap:6px;flex:none}
/* a narrow card (a phone) gives the title and the count their whole line, and the two buttons a row of their own under
   them, ending on the content's right edge, so the count is never cut short */
.v2 .itd{container-type:inline-size}
@container (max-width:300px){.v2 .itd-h{flex-wrap:wrap;row-gap:var(--s-3)}.v2 .itd-ht{flex:1 1 100%}.v2 .itd-a{margin-left:auto}}
.v2 .itd-t{margin:0;font-size:14px;line-height:1.8;color:var(--fg)}
/* an edit's words start where the line starts (the text's own column), so their tints reach out round them with a shadow
   rather than pushing them in with padding */
.v2 .itd-c{padding:2px 0;border-radius:var(--r-tiny,5px);cursor:pointer;outline:0;transition:background .16s;-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* the edit whose toolbar is open: a fill a step stronger than the hover, so it reads as picked */
.v2 .itd-c.on{background:var(--hover)}
@media (hover:hover) and (pointer:fine){.v2 .itd-c:hover{background:var(--row)}}
.v2 .itd-c:focus-visible{box-shadow:0 0 0 2px var(--focus)}
/* removed words in the red text colour on its tint, struck with the bright red mark; added words in the green text colour on
   its tint (each 4.5:1 on its tint); an addition the agent isn't sure of in the warning's text colour on its tint */
/* (each tint is laid over the surface, so the quiet fill under an open edit never shows through it and lowers its contrast;
   the 2px of padding round the words is taken back by a margin, so the words keep their place on the line) */
.v2 .itd-c del{color:var(--bad);text-decoration:line-through;text-decoration-color:var(--bad-mark);text-decoration-thickness:1px;background:linear-gradient(var(--bad-bg),var(--bad-bg)),var(--surface);border-radius:var(--r-tiny,3px);padding:0 2px;margin:0 6px 0 -2px}
.v2 .itd-c ins{color:var(--ok);text-decoration:none;background:linear-gradient(var(--ok-bg),var(--ok-bg)),var(--surface);border-radius:var(--r-tiny,3px);padding:0 2px;margin-left:-2px}
.v2 .itd-c.unsure ins{color:var(--warn);background:linear-gradient(var(--warn-bg),var(--warn-bg)),var(--surface)}
.v2 .itd-c.acc del,.v2 .itd-c.rej ins{display:none}
.v2 .itd-c.acc ins,.v2 .itd-c.rej del{color:inherit;background:none;text-decoration:none;margin:0;padding:0}
/* no room is kept for the end (owner, 18 Nov): the card eases shorter as edits fold into the text and grows for the note at
   the end (grow()); the toolbar opens out of it, so nothing clips it */
.v2 .itd.growing{overflow:visible}
/* an edit's toolbar opens under its last line, or over its first when the stage has no room below */
.v2 .itd-bar{position:absolute;left:0;top:0;z-index:5;display:flex;flex-direction:column;gap:var(--s-2);padding:var(--s-2);width:max-content;max-width:260px;border-radius:var(--r-in);background:var(--raised);box-shadow:var(--shadow-pop);opacity:0;transform:translateY(-4px);visibility:hidden;pointer-events:none;transition:opacity .16s,transform .32s var(--ease),visibility 0s .32s}
.v2 .itd-bar.up{transform:translateY(4px)}
.v2 .itd-bar.open{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition-delay:0s}
/* its motion (the core's motion pieces, owner, 26 Nov): the toolbar grows out of the edit's corner (.mx-pop) and goes back
   quicker; a press on Reject all shows at once (.mx-press); the card eases to each new height on the spring (.mx-grow). Studio
   keeps its own scale and fade below */
.v2 .itd-bar.mx-pop{transform:scale(.95);filter:blur(var(--blur-in));transform-origin:top left;transition:opacity var(--t-out) var(--ease-io),transform var(--t-out) var(--ease-io),filter var(--t-out) var(--ease-io),visibility 0s var(--t-out)}
.v2 .itd-bar.mx-pop.up{transform-origin:bottom left}
.v2 .itd-bar.mx-pop.open{transform:none;filter:none;transition:opacity calc(var(--t-in) * .6) var(--ease),transform var(--t-in) var(--ease-pop),filter calc(var(--t-in) * .7) var(--ease),visibility 0s}
@media (prefers-reduced-motion:reduce){.v2 .itd-bar.mx-pop{filter:none}}
/* an edit the agent isn't sure of: its toolbar is a warning notice (owner, 18 Nov): a faint warning tint, the filled warning
   sign in the bright orange, the words in the text colour, and the answer that settles it, Reject, as .pill.warn, with Accept
   the white button beside it */
.v2 .itd-bar.unsure{background:linear-gradient(color-mix(in srgb,var(--warn-bg) 45%,transparent),color-mix(in srgb,var(--warn-bg) 45%,transparent)),var(--surface)}
.v2 .itd-why{margin:0;display:flex;gap:var(--s-2);padding:2px 2px 0;font-size:12.5px;line-height:18px;color:var(--fg)}
.v2 .itd-wi{width:16px;height:16px;flex:none;margin-top:1px;overflow:visible}
/* (a step of --warn in the bright orange keeps the sign at 3:1 on the notice's tint, as Attachment tray's strip tick does) */
.v2 .itd-wi .a{fill:color-mix(in srgb,var(--warn-mark) 85%,var(--warn));stroke:color-mix(in srgb,var(--warn-mark) 85%,var(--warn));stroke-width:2;stroke-linejoin:round}
.v2 .itd-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .itd-bb{display:flex;gap:6px}
.v2 .itd-bar.unsure .itd-bb{justify-content:flex-end}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .itd .pill:active{transform:none}
.v2 .itd-bar.unsure .itd-acc{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .itd-bar.unsure .itd-acc:hover{background:var(--surface);box-shadow:var(--on-tint-btn-h)}}
/* the end: a neutral line with the green tick (owner, 18 Nov), only once every edit is decided */
/* the line saying how the review went sits under a hairline in Soft and Blueprint (owner, 21 Nov), 12px from it on each side */
.v2 .itd-f{margin:0;display:flex;align-items:center;gap:6px;padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;line-height:20px;color:var(--fg)}
.v2 .itd-f:empty{display:none}
/* Studio: the line saying how the review went is the card's off-white foot strip (owner, 21 Nov), its words 16px in */
:root[data-style="studio"] .v2 .itd-f{padding-top:0;border-top:0}
:root[data-style="studio"] .v2 .itd.panel .itd-f{margin:var(--s-1) -16px -16px;padding:calc(var(--strip-y) + 5px) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card);line-height:18px}
/* empty, it takes no room (the gap above it is taken back) but stays in place, so the end is read out when it comes */
.v2 .itd-f:empty{min-height:0;margin-top:calc(-1 * var(--s-3))}
.v2 .itd-f svg{flex:none;color:var(--ok-mark)}
/* Studio (owner, 19 Nov): its content 16px from every edge; the toolbar is a round popover, its corners concentric with its
   28px buttons 8px in (22px), scaling and fading from the edit; on an unsure edit Accept is Studio's flat white button */
:root[data-style="studio"] .v2 .itd.panel{padding:16px}
/* the head sits over a hairline that runs edge to edge, 16px under it, and the text starts 16px under the hairline (owner,
   22 Nov: a divider at the top for Studio, so its parts read as segments, as the foot strip does at the bottom) */
:root[data-style="studio"] .v2 .itd.panel .itd-h{margin-inline:-16px;padding:0 16px 16px;border-bottom:1px solid var(--line)}
:root[data-style="studio"] .v2 .itd-ht b{line-height:20px}
:root[data-style="studio"] .v2 .itd-st{line-height:18px}
:root[data-style="studio"] .v2 .itd-c{transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .itd-c.on{background:var(--row-on)}
:root[data-style="studio"] .v2 .itd-bar{border-radius:var(--r-card);transform:translateY(-4px) scale(.96);transform-origin:top left;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),visibility 0s var(--t)}
:root[data-style="studio"] .v2 .itd-bar.up{transform:translateY(4px) scale(.96);transform-origin:bottom left}
:root[data-style="studio"] .v2 .itd-bar.open{transform:none;transition-delay:0s}
:root[data-style="studio"] .v2 .itd-bar.unsure .itd-acc{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .itd-bar.unsure .itd-acc:hover{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .itd-bar.unsure .itd-acc:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .itd-bar.unsure .itd-acc:active{box-shadow:var(--btn2-press)}
/* ---------- Draft review ---------- */
/* what the agent wrote, laid out like the email it is: who it goes to, the subject, the message and what is attached,
   then send now or later, or discard. Before sending it checks for an attachment the message mentions, and after
   sending there is a short window to undo. The warning and the result sit on the head's columns (owner, 18 Nov): their mark
   centred under the head's tile, their words on the title's words, their buttons ending on the content's right edge, their
   tint reaching 8px out round them */
.v2 .drf{position:relative;width:100%;max-width:440px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
/* Soft's card is plush: its content 20px in from every edge (owner, 22 Nov: "more padding inside"); Blueprint and Studio keep
   16px */
.v2 .drf.panel{padding:var(--s-5)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .drf.panel{padding:var(--s-4)}
.v2 .drf-h{display:flex;align-items:center;gap:var(--s-3)}
.v2 .drf-ag{width:32px;height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);color:var(--fg2);display:grid;place-items:center;flex:none}
.v2 .drf-ht{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .drf-ht b{font-weight:500;font-size:14px}
.v2 .drf-ht span{font-size:13px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .drf :is(.ib,.pill):active{transform:none}
.v2 .drf-fs{display:flex;flex-direction:column;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .drf-r{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13.5px}
.v2 .drf-l{width:52px;flex:none;color:var(--muted);font-size:13px}
.v2 .drf-p{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 3px;border-radius:var(--r-pill);background:var(--chip);font-size:13px}
.v2 .drf-p .av{width:20px;height:20px;font-size:9px}
.v2 .drf-s{flex:1;min-width:0;height:38px;padding:0;border:0;background:none;outline:0;font:inherit;font-size:13.5px;color:var(--fg)}
.v2 .drf-r:has(.drf-s:focus){border-bottom-color:color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .drf-b{font-size:14px;line-height:1.6;color:var(--fg);outline:0;border-radius:calc(6px * var(--rk-s,var(--rk)))}
.v2 .drf-b:focus{box-shadow:0 0 0 6px var(--surface),0 0 0 7px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .drf-att{display:flex;flex-wrap:wrap;gap:6px}
.v2 .drf-att:empty{display:none}
.v2 .drf-file{display:inline-flex;align-items:center;gap:var(--s-2);height:30px;padding:0 10px;border-radius:var(--r-sm);background:var(--chip);font-size:13px}
.v2 .drf-file>svg{color:var(--fg2)}
.v2 .drf-file .muted{font-size:12px;display:inline-flex;align-items:center}
.v2 .drf-file .spin{width:10px;height:10px}
/* the shut warning is hidden once it has folded away, so nothing measures the clipped part as if it were drawn */
.v2 .drf-wf.shut>div{visibility:hidden;transition:visibility 0s var(--t)}
/* a warning notice (owner, 18 Nov; Model picker's busy notice is the reference): a faint warning tint, the filled warning sign
   in the warning mark colour, the words in the text colour, the action that settles it in the warning tint (.pill.warn), and
   the other button white beside it */
.v2 .drf-w{margin:0 calc(-1 * var(--s-2));padding:var(--s-3) var(--s-2) var(--s-2);border-radius:calc(var(--r-card) - 8px);background:color-mix(in srgb,var(--warn-bg) 45%,transparent);display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;column-gap:var(--s-3);row-gap:var(--s-2)}
.v2 .drf-wi{grid-area:1/1;justify-self:center;width:16px;height:16px;margin-top:2px;overflow:visible}
.v2 .drf-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .drf-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .drf-w p{grid-area:1/2;margin:0;font-size:13px;line-height:20px;color:var(--fg)}
.v2 .drf-wa{grid-area:2/1/3/3;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--s-2)}
.v2 .drf-w .pill.ghost{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .drf-w .pill.ghost:hover{box-shadow:var(--on-tint-btn-h)}}
/* no room is kept for what comes later (owner, 17 Nov): the card eases to its new height as the attachment, the warning or
   the result arrives (grow()); its menu opens out of it, and nothing changes height while the menu is open */
.v2 .drf.growing:has(.drf-pop.open){overflow:visible}
/* a hairline sets the buttons apart from the message, as in a mail composer */
.v2 .drf-f{display:flex;align-items:center;gap:var(--s-2);padding-top:var(--s-5);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .drf-f{padding-top:var(--s-4)}
.v2 .drf-f .sp{flex:1}
.v2 .drf-when{font-size:13px}
.v2 .drf-mg{display:flex;gap:1px;flex:none}
.v2 .drf-go{border-radius:var(--r-pill) 0 0 var(--r-pill);padding-right:var(--s-3)}
.v2 .drf-dd{border-radius:0 var(--r-pill) var(--r-pill) 0;padding:0 9px}
.v2 .drf-pop{min-width:220px}
.v2 .drf.sent .drf-fs,.v2 .drf.sent .drf-b,.v2 .drf.sent .drf-att{opacity:.55;transition:opacity .32s}
/* the result says what happened, so the head's tag steps aside while it shows (no row repeats what the card says) */
.v2 .drf-tag{transition:opacity .32s var(--ease)}
.v2 .drf.sent .drf-tag{opacity:0}
/* sent, scheduled or discarded: a neutral row in the footer's place (owner, 18 Nov: a finished state has no green fill), its
   mark in the head tile's column (sent is the green tick) and its words on the title's, with a white button to take it back */
.v2 .drf-done{display:flex;align-items:center;gap:var(--s-3);margin:0 -8px;padding:8px;border-radius:calc(var(--r-card) - 8px);background:var(--chip);font-size:13.5px}
.v2 .drf-done>.g{width:32px;display:grid;place-items:center;flex:none;color:var(--fg2)}
/* (on the grey row the tick takes the text green, as Permission gate's done row, so it keeps 3:1 on the grey) */
.v2 .drf-done:not(.bin,.later)>.g{color:var(--ok)}
.v2 .drf-done .t{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .drf-done .t span{font-size:13px}
.v2 .drf-done .t .muted{color:var(--fg2)}
.v2 .drf-done .pill{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .drf-done .pill:hover{box-shadow:var(--on-tint-btn-h)}}
/* Studio (owner, 17 and 18 Nov): its content 16px from each edge; the buttons on the off-white foot strip, 16px from the card's
   edges and the strip's hairline (owner, 23 Nov), and the result in the strip's place, on one line, its mark under the head's tile */
:root[data-style="studio"] .v2 .drf.panel{padding:16px}
:root[data-style="studio"] .v2 :is(.drf-f,.drf-done){margin:4px -16px -16px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* (on a phone its words can take two lines: the strip grows with them, its mark and button staying on the words' centre line) */
:root[data-style="studio"] .v2 .drf-done{padding-left:16px;font-size:12.5px}
:root[data-style="studio"] .v2 :is(.drf-done .t span,.drf-when){font-size:12.5px}
/* (a step of --ok in the vivid green keeps the tick at 3:1 on the off-white strip, as Attachment tray's) */
:root[data-style="studio"] .v2 .drf-done:not(.bin,.later)>.g{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
/* (one line of words is a 28px row like the button beside it; two lines, on a phone, sit 16px from the strip's edges as it does) */
:root[data-style="studio"] .v2 .drf-done .t{flex-direction:row;flex-wrap:wrap;align-items:baseline;align-content:center;column-gap:var(--s-2);min-height:28px;line-height:20px}
:root[data-style="studio"] .v2 .drf-done .t span{color:var(--muted)}
:root[data-style="studio"] .v2 .drf-done .pill{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .drf-done .pill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .drf-done .pill:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .drf-w .pill.ghost{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .drf-w .pill.ghost:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .drf-w .pill.ghost:active{box-shadow:var(--btn2-press)}
/* a pressed button never goes blank (owner, 18 Nov): the ink button turns to its disabled look at once, so its dark words never
   sit on a fill that is still fading in */
:root[data-style="studio"] .v2 :is(.drf-go,.drf-dd)[disabled]{transition:none}
/* ---------- Voice orb ---------- */
/* a hands-free voice chat: an orb that swells with whoever is talking, the accent colour for you and violet for the agent, what
   was said under it, and mute and end in the footer under a hairline. Talking while muted says so, the way calls do, as a
   warning notice. The card grows and shrinks with what it shows (grow()), centred in its stage, and keeps no room for a
   caption still to come */
.v2 .vor{position:relative;width:100%;max-width:380px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;--vg:var(--s-3);gap:var(--vg);--oc:var(--faint);--oc2:var(--accent)}
/* --oc is whoever is talking, --oc2 the second colour that flows through the orb with it. Before the chat starts the dot is
   grey and the orb is a quiet glass with a little of the accent inside it */
/* the colours are mixed in oklch, so the step between them stays bright (lime to violet passes through teal, not grey) */
.v2 .vor[data-m="listening"]{--oc:var(--accent);--oc2:color-mix(in oklch,var(--pl) 45%,var(--accent))}
.v2 .vor[data-m="speaking"]{--oc:var(--pl);--oc2:color-mix(in oklch,var(--accent) 45%,var(--pl))}
.v2 .vor[data-m="thinking"]{--oc:color-mix(in oklch,var(--accent) 50%,var(--pl));--oc2:var(--accent)}
.v2 .vor[data-m="muted"]{--oc:color-mix(in srgb,var(--muted) 55%,var(--faint));--oc2:var(--faint)}
.v2 .vor-top{display:flex;align-items:center;gap:var(--s-2);font-size:13px;line-height:20px}
.v2 .vor-dot{width:8px;height:8px;border-radius:50%;background:var(--oc);flex:none;transition:background .4s}
/* while someone talks the dot pulses in opacity and scale, never with a coloured ring or glow (owner, 30 Oct) */
.v2 .vor[data-m="listening"] .vor-dot,.v2 .vor[data-m="speaking"] .vor-dot{animation:v2-vor-pulse 1.4s var(--ease-io) infinite}
@keyframes v2-vor-pulse{50%{opacity:.45;transform:scale(.75)}}
.v2 .vor-t{margin-left:auto;font-size:12.5px}
.v2 .vor-orb{position:relative;width:112px;height:112px;margin:var(--s-2) auto;--lv:0}
.v2 .vor-orb i{position:absolute;inset:0;border-radius:50%}
/* round in Blueprint too, where every other corner is square: like the turning loaders, its shape is what it says */
.v2 .vor .vor-orb i{border-radius:50%!important}
/* the sphere: nothing reaches past its edge, no glow or ring, so it never needs room around it. It swells with the level up to
   its box and no further, so a pulse is never cut off. Before the canvas draws (or where it can't) it is a plain gradient
   circle, lit from the top left and deeper at the foot */
.v2 .vor-core{overflow:hidden;background-color:color-mix(in srgb,var(--oc) 80%,var(--surface));background-image:radial-gradient(circle at 34% 28%,rgba(255,255,255,.4),rgba(255,255,255,0) 60%);box-shadow:inset 0 -10px 20px color-mix(in srgb,var(--oc) 55%,#000 10%);transform:scale(calc(.9 + var(--lv) * .1));transition:background-color .4s}
/* the lit glass sphere, drawn on a canvas the size of the orb. Its edge breathes a little inside the box, so the plain
   circle behind it goes once it draws */
.v2 .vor-gl{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;opacity:0;transition:opacity .4s}
.v2 .vor-gl.on{opacity:1}
.v2 .vor-core:has(>.vor-gl.on){background:none;box-shadow:none}
/* reads the second colour as it eases from one speaker to the next */
.v2 .vor-pc{visibility:hidden;background:var(--oc2);transition:background .4s}
.v2 .vor-cap,.v2 .vor-mf,.v2 .vor-f{position:relative}
.v2 .vor[data-m="thinking"] .vor-core{animation:v2-vor-br 1.6s var(--ease-io) infinite alternate}
@keyframes v2-vor-br{from{transform:scale(.9)}to{transform:scale(.96)}}
/* what was said: who said it and their words, as tall as the words are (no room kept for a longer line) */
.v2 .vor-cap{display:flex;flex-direction:column;gap:2px;text-align:center}
.v2 .vor-who{font-size:12px;line-height:18px}
.v2 .vor-who:empty{display:none}
/* what is said is centred, so its lines are balanced: never one word alone on the last line (owner, 24 Nov) */
.v2 .vor-tx{margin:0;font-size:14px;line-height:1.6;color:var(--fg);text-wrap:balance}
.v2 .vor-tx.hint{color:var(--muted);font-size:13px;line-height:20px}
.v2 .vor-tx .w{animation:v2-vor-w .45s var(--ease) both}
@keyframes v2-vor-w{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
/* talking while muted: a warning notice (owner, 18 Nov; Model picker's busy notice is the reference): a faint warning tint
   reaching 8px out round the content, the filled warning sign in the warning mark colour on the dot's column, the words in the
   text colour, and Unmute, which settles it, as .pill.warn ending on the content's right edge, where End ends */
.v2 .vor-mf{margin-top:calc(-1 * var(--vg))}
.v2 .vor-mf>div{padding-top:var(--vg)}
.v2 .vor-mw{display:flex;align-items:center;gap:var(--s-2);margin:0 calc(-1 * var(--s-2));padding:var(--s-2);border-radius:var(--r-in);background:color-mix(in srgb,var(--warn-bg) 45%,transparent)}
.v2 .vor-wi{width:16px;height:16px;flex:none;overflow:visible}
.v2 .vor-wi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .vor-wi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .vor-mw p{margin:0;flex:1;min-width:0;font-size:13px;line-height:20px;color:var(--fg)}
.v2 .vor-mw .pill{flex:none}
/* the footer, under a hairline: Start talking alone in the middle before the chat; then Mute on the left and End on the right,
   16px above and below its buttons (owner, 23 Nov). End is the white outlined secondary: no red fill (no red action until its
   hover passes 4.5:1) */
.v2 .vor-f{display:flex;align-items:center;gap:var(--s-2);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .vor-f .sp{flex:1}
.v2 .vor:not(.on) .vor-f{justify-content:center}
.v2 .vor:not(.on) .vor-mute,.v2 .vor:not(.on) .vor-end,.v2 .vor:not(.on) .vor-f .sp,.v2 .vor.on .vor-go{display:none}
.v2 .vor-f[hidden]{display:none}
@media (hover:hover) and (pointer:fine){.v2 .vor :is(.vor-mute,.vor-end,.vor-done .pill).pill.line:hover{background:var(--row)}}
/* Mute: the same white outlined secondary as End, its words saying what it does (Mute, then Unmute, as calls say it); muted,
   a slash crosses its microphone */
.v2 .vor-mi{position:relative;display:grid;place-items:center}
.v2 .vor-mi::after{content:"";position:absolute;left:50%;top:50%;width:1.5px;height:15px;margin:-7.5px 0 0 -.75px;border-radius:2px;background:currentColor;transform:rotate(-45deg) scaleY(0);transition:transform .25s var(--ease)}
.v2 .vor-mute[data-muted]>.vor-mi::after{transform:rotate(-45deg) scaleY(1)}
/* ended: the footer says so, a neutral row with the green tick (owner, 18 Nov: a finished state has no fill), how long it took
   and that the transcript was saved, and Start again on the right */
.v2 .vor-done{display:flex;align-items:center;gap:var(--s-3);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;line-height:20px}
.v2 .vor-done>svg{color:var(--ok-mark);flex:none}
.v2 .vor-done .t{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .vor-done .t span{font-size:12px;line-height:18px}
/* Studio: an off-white head strip with who is talking and the time, the orb and the words on white, and the footer as an
   off-white foot strip, its controls 16px from the card's edges and the strip's hairline. Mute and End are Studio's flat
   secondary (they are .pill.line); Start talking is the ink button. Words fade in without a blur */
:root[data-style="studio"] .v2 .vor.panel{padding:0 16px;overflow:clip;--vg:16px}
/* the strips meet the card's round corners exactly: nothing of them shows past its edge as it grows */
:root[data-style="studio"] .v2 .vor.growing{overflow-clip-margin:0px}
:root[data-style="studio"] .v2 .vor-orb{margin:4px auto}
/* a strip's row is 28px (owner, 23 Nov), so the ended line is one line there: what ended, then how long and the transcript */
:root[data-style="studio"] .v2 .vor-done .t{flex-direction:row;align-items:baseline;gap:8px;white-space:nowrap}
:root[data-style="studio"] .v2 .vor-done .t span{min-width:0;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .vor-top{height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 -16px;padding:0 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 :is(.vor-f,.vor-done){margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .vor-mw{border-radius:10px}
:root[data-style="studio"] .v2 .vor-tx .w{animation-name:v2-vor-wc}
@keyframes v2-vor-wc{from{opacity:0}}
:root[data-style="studio"] .v2 .vor-dot{transition:background-color var(--t-fast) var(--ease)}
/* ---------- Steering ---------- */
/* a run you can steer while it works: its steps, what you told it and what it said back, and a message box. A message
   waits for the step in progress, then applies from the next one; when it changes work already done, the agent asks.
   Its content is 16px from every edge, and the card grows and shrinks with its log (grow()), centred in its stage */
.v2 .ste{width:100%;max-width:440px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .ste-h{display:flex;flex-direction:column;padding-bottom:var(--s-3);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ste-h b{font-weight:500;font-size:14px;line-height:20px}
.v2 .ste-st{font-size:12.5px;line-height:18px}
.v2 .ste-steps{list-style:none;margin:0;padding:0}
.v2 .ste-s{display:flex;align-items:center;gap:var(--s-3);min-height:44px;padding:var(--s-1) 0;font-size:13px}
.v2 .ste-g{width:16px;height:16px;display:grid;place-items:center;flex:none;color:var(--faint)}
.v2 .ste-g .spin{width:11px;height:11px;color:var(--accent-mark,var(--accent))}
.v2 .ste-s.done .ste-g{color:var(--ok)}
.v2 .ste-t{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .ste-t b{font-weight:500;line-height:20px}
.v2 .ste-t span{font-size:12px;line-height:18px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ste-t span.shim{font-size:12px}
.v2 .ste-s.queued .ste-t b{color:var(--fg2)}
.v2 .ste-log{display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .ste-log:empty{display:none}
/* what you sent, on the right, with whether it is waiting or applied */
.v2 .ste-me{align-self:flex-end;max-width:85%;display:flex;flex-direction:column;align-items:flex-end;gap:var(--s-1)}
.v2 .ste-me p{margin:0;padding:var(--s-2) var(--s-3);border-radius:calc(14px * var(--rk)) calc(14px * var(--rk)) var(--r-xs) calc(14px * var(--rk));background:var(--chip);font-size:13px;line-height:1.45}
.v2 .ste-q{display:inline-flex;align-items:center;gap:var(--s-1);font-size:12px;color:var(--muted)}
.v2 .ste-q .spin{width:9px;height:9px}
.v2 .ste-q svg{color:var(--ok)}
/* what the agent said back; a heads-up is a light accent tint (the accent's own tint, taken a little further toward the
   surface), with its icon in the accent, until you answer it. Its answers sit under its words, starting where they start, as
   a chat's replies do: white buttons with a hairline edge on the tint (no shadow: buttons cast none), and the one that acts
   is the primary */
.v2 .ste-ag{display:flex;gap:var(--s-3);padding:var(--s-3);border-radius:var(--r-in);background:var(--row);font-size:13px;line-height:1.45}
/* its mark in a 16px column, as the steps' marks are */
.v2 .ste-ag>svg{flex:none;box-sizing:content-box;margin-top:3px;padding:0 2px;color:var(--accent-fg,var(--accent))}
.v2 .ste-ag.warn{background:color-mix(in srgb,var(--accent-bg) 70%,var(--surface))}
.v2 .ste-ag .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .ste-ag p{margin:0}
.v2 .ste-acts{display:flex;flex-wrap:wrap;gap:6px}
.v2 .ste-ag .pill.line{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .ste-ag .pill.line:hover{box-shadow:var(--on-tint-btn-h)}}
.v2 .ste-ag .muted{font-size:12px}
/* once every step is done: a neutral line with the green tick, no green fill (owner, 18 Nov) */
.v2 .ste-sum{display:flex;align-items:center;gap:var(--s-3);min-height:20px;font-size:13px;color:var(--fg2)}
.v2 .ste-sum svg{color:var(--ok);flex:none;box-sizing:content-box;padding:0 2px}
.v2 .ste-box{display:flex;align-items:center;gap:6px;height:var(--field-h);padding:0 5px 0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ste-box{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .ste-box:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ste-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--fg)}
.v2 .ste-box input::placeholder{color:var(--muted)}
.v2 .ste-box input:disabled{cursor:not-allowed}
.v2 .ste-box input:disabled::placeholder{color:var(--dis)}
.v2 .ste-go{width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;flex:none;transition:background .2s}
.v2 .ste-go[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
/* Studio (owner, 17 and 18 Nov): the content 16px in from each edge, ticks in the vivid green, the replies' buttons Studio's flat
   secondary and ink primary, and the field's own Send as Comments' (owner, 21 Nov): in the field's corner with 5px round it
   and the field's corners less that room; empty, a quiet glyph with no fill, then the ink button fades in under it */
:root[data-style="studio"] .v2 .ste-h b{letter-spacing:-.01em}
:root[data-style="studio"] .v2 .ste-s.done .ste-g,:root[data-style="studio"] .v2 .ste-q svg,:root[data-style="studio"] .v2 .ste-sum svg{color:var(--ok-mark)}
:root[data-style="studio"] .v2 .ste-ag .pill.line{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ste-ag .pill.line:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ste-ag .pill.line:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .ste-go{position:relative;isolation:isolate;border-radius:calc(var(--r-field) - 5px);background:none;box-shadow:none;transition:transform var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ste-go::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:var(--btn-depth);opacity:0;pointer-events:none;transition:opacity var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ste-go:not([disabled]){color:var(--on-btn)}
:root[data-style="studio"] .v2 .ste-go:not([disabled])::before{opacity:1}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ste-go:not([disabled]):hover::before{background:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2))}}
:root[data-style="studio"] .v2 .ste-go:not([disabled]):active{transform:scale(.97)}
:root[data-style="studio"] .v2 .ste-go:not([disabled]):active::before{box-shadow:var(--btn-press)}
:root[data-style="studio"] .v2 .ste-go[disabled]{color:var(--dis);transform:none}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .ste-go::before{transition:none}}
/* ---------- Eval results ---------- */
/* an eval suite's latest run: one bar segment per case, the pass count against the run before, and the cases, all or
   just the failed ones. A failed case opens to show what was expected and what came back, with a fix that reruns it.
   Marks are the vivid status colours (a tick in the mark green, a failed case's sign in the mark red); words keep the text
   colours. The card keeps no room for what is to come: it grows and shrinks with its list (grow()) */
.v2 .evr{width:100%;max-width:440px;margin:0 auto;padding:6px;display:flex;flex-direction:column}
.v2 .evr-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding:var(--s-2) 10px 10px}
.v2 .evr-ht{display:flex;flex-direction:column;min-width:0}
.v2 .evr-ht b{font-weight:500;font-size:14px}
.v2 .evr-st{font-size:12.5px}
.v2 .evr-run{flex:none}
.v2 .evr-run .spin{width:10px;height:10px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 :is(.evr,.evr-vs,.evr-jg) :is(.ib,.pill):active,:root[data-style="studio"] .v2 :is(.evr,.evr-vs,.evr-jg) .ib:active{transform:none}
/* the line under the bars (Running 3 of 8, then 7 of 8 passed) sits as far under the bars as over the hairline below it
   (owner, 22 Nov) */
.v2 .evr-sum{display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-3) 10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .evr-segs{display:flex;gap:3px}
.v2 .evr-segs i{flex:1;height:6px;border-radius:var(--r-tiny,3px);background:var(--rail);transition:background .3s}
.v2 .evr-segs i.pass{background:var(--ok-mark)}
.v2 .evr-segs i.fail{background:var(--bad-mark)}
.v2 .evr-segs i.run{background:var(--accent-mark,var(--accent));animation:v2-evrrun 1s ease-in-out infinite}
@keyframes v2-evrrun{50%{opacity:.4}}
.v2 .evr-nums{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:20px;font-size:13px}
.v2 .evr-pass.shim{font-size:inherit}
.v2 .evr-dl:empty{display:none}
.v2 .evr-tabs{padding:10px 10px var(--s-1)}
.v2 .evr-tabs .n{color:var(--muted);margin-left:2px}
.v2 .evr-tabs .n:empty{display:none}
.v2 .evr-list{display:flex;flex-direction:column}
/* a case folds away when the filter hides it, and stays hidden once shut so nothing measures it */
.v2 .evr-w.shut>div{visibility:hidden;transition:visibility 0s var(--t)}
.v2 .evr-i{display:flex;flex-direction:column;border-radius:calc(10px * var(--rk-m,var(--rk)));transition:background .2s}
.v2 .evr-r{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:6px 10px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;color:var(--fg)}
.v2 .evr-g{width:16px;height:16px;display:grid;place-items:center;flex:none;color:var(--faint)}
.v2 .evr-g .spin{width:11px;height:11px;color:var(--accent-fg,var(--accent))}
.v2 .evr-i.pass .evr-g{color:var(--ok-mark)}
.v2 .evr-i.fail .evr-g{color:var(--bad-mark)}
.v2 .evr-n{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .evr-i.queued .evr-n{color:var(--fg2)}
.v2 .evr-tm{font-size:12px;color:var(--muted)}
.v2 .evr-ch{display:grid;color:var(--muted)}
.v2 .evr-ch svg{transition:transform .32s var(--ease)}
.v2 .evr-r[aria-expanded="false"] .evr-ch svg{transform:rotate(-90deg)}
.v2 .evr-i.fail{background:var(--bad-bg)}.v2 .evr-i.fail :is(.evr-tm,.evr-kv .k){color:var(--fg2)}
.v2 .evr-d.shut>div{visibility:hidden;transition:visibility 0s var(--t)}
.v2 .evr-dd{display:flex;flex-direction:column;gap:var(--s-1);padding:0 10px 10px 36px;font-size:12.5px}
.v2 .evr-kv{display:flex;gap:var(--s-2)}
.v2 .evr-kv .k{width:58px;flex:none;color:var(--muted)}
.v2 .evr-kv .bad{color:var(--bad)}
/* a white button on the tinted row: a hairline edge and no shadow (owner, 18 Nov: buttons cast none) */
/* the fix sits under a hairline, apart from the details above it (owner, 22 Nov); the hairline is a step of the words' own
   colour, so it reads on the row's tint */
.v2 .evr-dd .evr-kv:has(+.evr-fix),.v2 .evr-vs-d .evr-vs-kv:has(+.pill){padding-bottom:var(--s-3);border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent)}
.v2 .evr-fix{align-self:flex-start;margin-top:var(--s-2);background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .evr-fix:hover{background:var(--surface);box-shadow:var(--on-tint-btn-h)}}
/* nothing to show under a filter: the empty state (the lab's): a small sketch of the list on a white card, the
   title, one muted line and a button back to every case */
.v2 .evr-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 16px 12px;text-align:center}
.v2 .evr-em[hidden]{display:none}
.v2 .evr-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .evr-em>span:not(.evr-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .evr-em .pill{margin-top:12px}
.v2 .evr-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 16px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .evr-em-art::before{content:"";position:absolute;left:14px;top:14px;width:10px;height:10px;border-radius:50%;background:var(--ghost);box-shadow:0 16px 0 var(--ghost),0 32px 0 var(--ghost-2)}
.v2 .evr-em-art::after{content:"";position:absolute;left:32px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost);box-shadow:0 16px 0 var(--ghost),0 32px 0 var(--ghost-2)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-em-art::before{border-radius:0}
/* Studio (owner, 17 and 18 Nov): its content 16px in from each edge, a failed case's row clear of any red fill (its sign and
   its Got stay red) and grey under the pointer, its corners following the card's */
:root[data-style="studio"] .v2 .evr-r{border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .evr-i.fail{border-radius:calc(var(--r-card) - 6px)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-i.fail:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .evr-fix{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-fix:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .evr-fix:active{box-shadow:var(--btn2-press)}
/* a pressed button never goes blank (owner, 18 Nov): Run turns to its disabled look at once */
:root[data-style="studio"] .v2 :is(.evr-run,.evr-vs-run)[disabled]{transition:none}
/* ---------- Eval results designs ---------- */
/* the design switch under it (the card's tabs on designme.dev): Default, the run above, then Run vs run and Score & judge */
.v2 .dm.evr-dm>.dm-main{align-items:stretch}
/* what sits on a regressed case's amber is white in light mode and the amber's own tint in dark, never grey; in dark mode
   its tag is an amber edge on the row's tint, so its words keep 4.5:1 and APCA Lc 60 */
.v2 .evr-dm{--evr-on-warn:var(--surface);--evr-tag-bg:var(--surface);--evr-tag-edge:0 0 0 0 transparent}
:root[data-theme="dark"] .v2 .evr-dm{--evr-on-warn:color-mix(in srgb,var(--warn) 16%,transparent);--evr-tag-bg:transparent;--evr-tag-edge:inset 0 0 0 1px color-mix(in srgb,var(--warn) 45%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .evr-dm{--evr-on-warn:color-mix(in srgb,var(--warn) 16%,transparent);--evr-tag-bg:transparent;--evr-tag-edge:inset 0 0 0 1px color-mix(in srgb,var(--warn) 45%,transparent)}}
/* a case's mark: green with a tick when it passed, red with a cross when it failed, the accent spinning while it runs */
.v2 .evr-dot{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--fg) 8%,transparent);color:var(--muted)}
.v2 .evr-dot .i{width:10px;height:10px;stroke-width:2.4}
.v2 .evr-dot.pass{background:var(--ok-bg);color:var(--ok)}
.v2 .evr-dot.fail{background:var(--bad-bg);color:var(--bad)}
.v2 .evr-dot.run{background:none;color:var(--accent-mark)}
.v2 .evr-dot .spin{width:11px;height:11px}
.v2 .evr-dot.bump{animation:v2-evrpop .4s var(--ease)}
@keyframes v2-evrpop{from{transform:scale(.3)}60%{transform:scale(1.2)}}
.v2 .evr-was{color:var(--bad);text-decoration:line-through;text-decoration-thickness:1.5px}
.v2 .evr-is{color:var(--ok);font-weight:500}
/* the marked words keep their place on the line: their tint reaches 2px out round them without moving them */
.v2 .evr-mk{border-radius:var(--r-tiny,3px);background:var(--bad-bg);box-shadow:0 0 0 2px var(--bad-bg);color:var(--bad)}
.v2 .evr-gd{border-radius:var(--r-tiny,3px);background:var(--ok-bg);box-shadow:0 0 0 2px var(--ok-bg);color:var(--ok)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-dot.bump{animation:none}
/* Run vs run: each case's result last run and this run side by side, so a regression or a fix stands out. Regressed is
   amber, Fixed green and Failing red, in the site's tag tones, from the filters to the rows */
.v2 .evr-vs{padding:6px;display:flex;flex-direction:column}
.v2 .evr-vs-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding:var(--s-2) 10px 6px}
.v2 .evr-vs-ht{display:flex;flex-direction:column;min-width:0}
.v2 .evr-vs-ht b{font-weight:500}
.v2 .evr-vs-st{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .evr-vs-run{flex:none}
.v2 .evr-vs-run .spin{width:10px;height:10px}
/* while the cases run, the count of those done is in the button's words (Running 3/8), not a second count by the score */
.v2 .evr-vs-run .cnt{font-variant-numeric:tabular-nums}
/* the score and the words beside it share one baseline; once the words become a tag, the row centres them instead, as it
   does every chip */
.v2 .evr-vs-score{display:flex;align-items:baseline;gap:var(--s-2);padding:var(--s-1) 10px var(--s-3)}
.v2 .evr-vs-score:has(>.evr-vs-dl.tag){align-items:center}
.v2 .evr-vs-big{font-size:14px;font-weight:500}
/* no change on the last run is said quietly in muted words beside the score, not in a chip (owner, 22 Nov: "move 'same score
   as last run'"); a change keeps its green or red tag */
.v2 .evr-vs-dl.quiet{font-size:12.5px;color:var(--muted)}
/* the filter sits between two hairlines, apart from the score over it and the cases under it (owner, 22 Nov) */
.v2 .evr-vs-f{display:flex;gap:var(--s-1);padding:var(--s-3) 10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);overflow-x:auto;scrollbar-width:none}
.v2 .evr-vs-f::-webkit-scrollbar{display:none}
.v2 .evr-vs-chip{flex:none}
.v2 .evr-vs-chip .n{color:var(--muted);font-variant-numeric:tabular-nums}
.v2 .evr-vs-chip.on .n{color:var(--fg2)}
.v2 .evr-vs-chip:focus-visible{outline-offset:-2px;border-radius:var(--r-pill)}
/* a toned filter is its tint with its ink, the count too; pointing at it draws its edge in its tone, and the one picked is
   white with the dimmed edge, keeping its ink */
.v2 .evr-vs-chip[data-f="reg"]{--evr-t:var(--warn);--evr-tb:var(--warn-bg)}
.v2 .evr-vs-chip[data-f="fix"]{--evr-t:var(--ok);--evr-tb:var(--ok-bg)}
.v2 .evr-vs-chip[data-f="fail"]{--evr-t:var(--bad);--evr-tb:var(--bad-bg)}
.v2 .evr-vs-chip:not([data-f="all"]){background:var(--evr-tb);color:var(--evr-t)}
.v2 .evr-vs-chip:not([data-f="all"]) .n{color:inherit}
@media (hover:hover) and (pointer:fine){.v2 .evr-vs-chip:not([data-f="all"]):hover{background:var(--evr-tb);color:var(--evr-t);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--evr-t) 35%,transparent)}}
.v2 .evr-vs-chip.on:not([data-f="all"]){background:var(--surface);color:var(--evr-t);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
.v2 .evr-vs-th,.v2 .evr-vs-r{display:grid;grid-template-columns:minmax(0,1fr) 30px 16px 30px 40px;align-items:center;column-gap:var(--s-1)}
.v2 .evr-vs-th{padding:var(--s-2) 10px var(--s-1);font-size:11.5px;color:var(--muted);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .evr-vs-th span:nth-child(2),.v2 .evr-vs-th span:nth-child(4){text-align:center}
.v2 .evr-vs-list{display:flex;flex-direction:column}
.v2 .evr-vs-w.shut>div{visibility:hidden;transition:visibility 0s var(--t)}
.v2 .evr-vs-i{border-radius:calc(10px * var(--rk-m,var(--rk)));transition:background .25s}
.v2 .evr-vs-r{width:100%;min-height:38px;padding:5px 10px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;text-align:left}
.v2 .evr-vs-r .n{min-width:0;display:flex;align-items:center;gap:6px}
.v2 .evr-vs-r .n>span:first-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .evr-vs-r .evr-dot{justify-self:center}
.v2 .evr-vs-r .ar{display:grid;place-items:center;color:var(--muted)}
.v2 .evr-vs-r .ar .i{width:11px;height:11px}
.v2 .evr-vs-r .tm{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.v2 button.evr-vs-r:focus-visible{outline-offset:-2px;border-radius:calc(10px * var(--rk-m,var(--rk)))}
@media (hover:hover) and (pointer:fine){.v2 .evr-vs-i:hover{background:var(--row)}}
.v2 .evr-vs-i .tg{flex:none}
.v2 .evr-vs-i.fix .ar{color:var(--ok)}
/* a regression sits on the amber: its tag, its marks and its Rerun white, its words in the amber's ink */
.v2 .evr-vs-i.reg{background:var(--warn-bg)}
.v2 .evr-vs-i.reg :is(.ar,.tm,.evr-vs-kv .k){color:var(--warn)}
.v2 .evr-vs-i.reg .tag{background:var(--evr-tag-bg);box-shadow:var(--evr-tag-edge);color:var(--warn)}
.v2 .evr-vs-i.reg .evr-dot{background:var(--evr-on-warn)}
.v2 .evr-vs-d{display:flex;flex-direction:column;gap:6px;padding:0 10px 10px 22px;font-size:12.5px}
.v2 .evr-vs-kv{display:flex;gap:var(--s-2)}
.v2 .evr-vs-kv .k{width:62px;flex:none}
.v2 .evr-vs-d .pill{align-self:flex-start;margin-top:calc(var(--s-3) - 6px);background:var(--evr-on-warn);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .evr-vs-d .pill:hover{box-shadow:var(--on-tint-btn-h)}}
/* narrow: a row's tint says regressed or fixed, so its name keeps the room; the count of each stays in the filters */
@container (max-width:380px){.v2 .evr-vs-r .tg{display:none}.v2 .evr-vs-th,.v2 .evr-vs-r{grid-template-columns:minmax(0,1fr) 24px 12px 24px 34px}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-vs-i.reg{background:repeating-linear-gradient(135deg,transparent 0 5px,color-mix(in srgb,var(--warn) 10%,transparent) 5px 6px),var(--warn-bg)}
/* Score & judge: a gauge for the score and a bar for each kind of check, then the judge's reasoning on the case that
   failed, with the wrong words marked. Everything sits on white, the judge's part inside a dimmed outline */
.v2 .evr-jg{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .evr-jg-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.v2 .evr-jg-ht{display:flex;flex-direction:column;min-width:0}
.v2 .evr-jg-ht b{font-weight:500}
.v2 .evr-jg-st{font-size:12.5px;color:var(--muted)}
.v2 .evr-jg-run.spinning .i{animation:v2-rot .8s linear infinite}
/* the score on top, centred, and the three kinds of check side by side under it (owner, 4 Nov: no bars stacked beside a chart) */
.v2 .evr-jg-top{display:flex;flex-direction:column;align-items:stretch;gap:var(--s-3)}
/* the gauge: a grey half ring, and the score's arc turning into it, so it fills with a transform */
.v2 .evr-jg-g{position:relative;display:flex;flex-direction:column;align-items:center}
.v2 .evr-jg-arc{position:relative;width:132px;height:66px;overflow:hidden}
.v2 .evr-jg-arc .tr,.v2 .evr-jg-arc i{position:absolute;left:0;top:0;width:132px;height:132px;box-sizing:border-box;border-radius:50%}
.v2 .evr-jg-arc .tr{border:10px solid color-mix(in srgb,var(--line) 85%,transparent)}
.v2 .evr-jg-arc i{border:10px solid transparent;border-bottom-color:var(--gc,var(--ok));border-left-color:var(--gc,var(--ok));transform:rotate(calc(-45deg + var(--p,0) * 180deg));transition:transform 1.2s var(--ease),border-color .4s}
.v2 .evr-jg-gv{position:absolute;top:38px;font-size:14px;font-weight:500}
.v2 .evr-jg-gl{margin-top:6px;font-size:11.5px;color:var(--muted)}
.v2 .evr-jg-cats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-4)}
.v2 .evr-jg-cats li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px var(--s-2);font-size:12.5px}
.v2 .evr-jg-cats .s{font-size:12px;color:var(--fg2);font-variant-numeric:tabular-nums}
.v2 .evr-jg-cats .s .d{margin-left:var(--s-1);color:var(--bad)}
.v2 .evr-jg-cats .s .d.up{color:var(--ok)}
.v2 .evr-jg-cats .b{grid-column:1/-1;height:5px;border-radius:var(--r-tiny,3px);background:var(--line);overflow:hidden}
.v2 .evr-jg-cats .b i{display:block;height:100%;border-radius:inherit;background:var(--accent-mark);transform-origin:left;transform:scaleX(var(--p,0));transition:transform 1s var(--ease)}
/* the judge's call is a plain section under a hairline, not a box in the card, so its words and its actions keep the card's
   own 16px from the edge (owner, 21 Nov: one inset for the whole card) */
.v2 .evr-jg-j{display:flex;flex-direction:column;gap:var(--s-2);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px}
:root[data-style="studio"] .v2 .evr-jg-j{padding-top:var(--s-3)}
.v2 .evr-jg-j.go{animation:v2-evrjgin .45s var(--ease)}
@keyframes v2-evrjgin{from{opacity:0;transform:translateY(8px)}}
.v2 .evr-jg-jh{display:flex;align-items:center;gap:var(--s-2);font-size:13px}
.v2 .evr-jg-jh b{flex:1;min-width:0;font-weight:500}
.v2 .evr-jg-jq{margin:0 0 0 24px;padding:var(--s-2) 10px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);line-height:1.6;color:var(--fg)}
.v2 .evr-jg-jr{margin:0;display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:var(--s-2);color:var(--fg2);line-height:1.55}
.v2 .evr-jg-jr>svg{justify-self:center;margin-top:4px;color:var(--muted)}
.v2 .evr-jg-jr .who{color:var(--muted);margin-right:var(--s-1)}
/* your call on the judge sits under a hairline in every style (owner, 21 Nov: "multiple text layers and no segmentation"), as
   far under the reasoning as the box's own edge is round it */
.v2 .evr-jg-ja{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .evr-jg-ja .sp{flex:1}
/* Studio: the actions are the card's off-white foot strip, 16px from its top and bottom (owner, 23 Nov) and on the 16px column */
:root[data-style="studio"] .v2 .evr-jg-ja{margin:var(--s-1) calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
.v2 .evr-jg-ja .ib{width:28px;height:28px}
/* Run again is a round button with a quiet fill (Studio: its flat secondary), its edge on the content's right edge */
.v2 .evr-jg-run{width:28px;height:28px;background:var(--soft);box-shadow:var(--soft-ring)}
@media (hover:hover) and (pointer:fine){.v2 .evr-jg-run:hover{background:var(--soft-h)}}
:root[data-style="studio"] .v2 .evr-jg-run{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-jg-run:hover{box-shadow:var(--btn2-hover)}}
.v2 .evr-jg-ja .ib[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-fg)}
.v2 .evr-jg-ja .lbl{font-size:12px;color:var(--muted)}
/* narrow: the thumbs keep their labels for screen readers and the question goes, so the row never wraps */
@container (max-width:380px){.v2 .evr-jg-ja .lbl{display:none}}
.v2 .evr-jg-ok{display:flex;align-items:center;gap:var(--s-2);font-size:13px;line-height:20px;color:var(--muted)}
.v2 .evr-jg-ok>.i{width:16px;height:16px;flex:none;color:var(--ok-mark)}
.v2 .evr-jg-ok>.spin{width:11px;height:11px;margin:0 2.5px;flex:none;color:var(--accent-fg,var(--accent))}
.v2 .evr-jg-ok b{font-weight:500;color:var(--fg)}
.v2 .evr-jg-ok .shim{font-size:inherit}
:root[data-style="studio"] .v2 .evr-vs-i.reg{background:transparent}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-vs-i.reg:hover,:root[data-style="studio"] .v2 .evr-vs-i:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .evr-vs-i.reg :is(.ar,.tm,.evr-vs-kv .k){color:var(--muted)}
:root[data-style="studio"] .v2 .evr-vs-i.reg .tag{background:var(--warn-bg);box-shadow:none}
:root[data-style="studio"] .v2 :is(.evr-vs-i,.evr-vs-r){border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .evr-dot.pass{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ok-mark);color:var(--ok-mark)}
:root[data-style="studio"] .v2 .evr-dot.fail{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--bad-mark);color:var(--bad-mark)}
:root[data-style="studio"] .v2 .evr-vs-d .pill{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-vs-d .pill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .evr-vs-d .pill:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 :is(.evr-i,.evr-vs-i){transition:background-color var(--t-fast) var(--ease)}
/* the run-vs-run filter chips take the one hover as a fill over their own tint, and the picked one the stronger fill inside a
   quiet edge (owner, 21 Nov: never a stronger edge) */
:root[data-style="studio"] .v2 .evr-vs-chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-vs-chip:not(.on):hover{box-shadow:inset 0 0 0 99px var(--row)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .evr-vs-chip[data-f="all"]:not(.on):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .evr-vs-chip.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-jg-arc .tr,:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-jg-arc i{border-radius:50%!important}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-jg-arc i{transition:transform .8s steps(8,end),border-color .3s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-jg-cats .b i{transition:transform .6s steps(6,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .evr-jg-j.go{animation:v2-bpin .3s var(--ease)}
/* ---------- Source stack ---------- */
/* everything the agent read, folded into one pill under the answer: the first sources' marks side by side (never stacked
   over each other, owner, 18 Nov) and the count. Open, a filter and the list: each source's mark, its title and where it
   came from, how much it counted, and a button to open it. A mark is a vivid fill of its own with white letters (or an
   avatar colour with its own ink); Studio keeps its marks one neutral grey. It sits on the stage, not on a card, so a row's
   hover fill is a quiet step darker than the stage (owner, 18 Nov), reaching out round the row's mark and words */
.v2 .ssx{display:flex;flex-direction:column;gap:10px;align-items:flex-start;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
/* its motion (the core's motion pieces, owner, 26 Nov): one highlight glides from source to source in every style (.mx-glide);
   a filter moves the rows (reflow()) as the list eases to its new height, its hover fills kept while it does; a press on Open
   shows at once, a step deeper than its hover (.mx-press) */
.v2 .ssx{--row-press:color-mix(in srgb,var(--fg) 9%,transparent)}
:root[data-style="studio"] .v2 .ssx{--row-press:var(--row-on)}
.v2 .ssx-list{overflow-clip-margin:8px}
.v2 .ssx-pill{display:inline-flex;align-items:center;gap:var(--s-2);height:30px;padding:0 10px 0 6px;border-radius:var(--r-pill);background:var(--chip-fill);font-size:12.5px;color:var(--fg2);transition:background .25s,color .25s}
@media (hover:hover) and (pointer:fine){.v2 .ssx-pill:hover{background:var(--chip-fill-h);color:var(--fg)}}
.v2 .ssx-pill>svg{transition:transform .4s var(--ease)}
.v2 .ssx-pill[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .ssx-ics{display:flex;gap:2px}
.v2 .ssx-ics span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:500;color:#fff}
.v2 .ssx-box{width:100%}
.v2 .ssx-in{padding:2px 0 var(--s-1);display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .ssx-fl{display:flex;gap:var(--s-2);flex-wrap:wrap}
/* the filters are white chips with a dimmed grey edge; the picked one's edge is a step stronger */
.v2 .ssx-fl .chip{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .ssx-fl .chip:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
.v2 .ssx-list{display:flex;flex-direction:column;gap:2px;margin-inline:-6px}
.v2 .ssx-s{display:flex;align-items:center;gap:10px;padding:7px 6px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;transition:background .25s}
@media (hover:hover) and (pointer:fine){.v2 .ssx-s:hover{background:var(--row)}}
.v2 .ssx-s .ssx-fv{width:22px;height:22px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;font-size:9.5px;font-weight:500;color:#fff;flex:none}
.v2 .ssx-s .ssx-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ssx-s .ssx-h{font-size:12px;color:var(--muted)}
.v2 .ssx-s .ssx-rel{width:36px;height:4px;border-radius:var(--r-tiny,2px);background:var(--line);overflow:hidden;flex:none}
.v2 .ssx-s .ssx-rel i{display:block;height:100%;background:var(--accent-mark,var(--accent));border-radius:var(--r-tiny,2px);transform-origin:left;animation:v2-ssrel .8s var(--ease) both}
@keyframes v2-ssrel{from{transform:scaleX(0)}}
.v2 .ssx-s .ib{width:24px;height:24px;opacity:0;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){.v2 .ssx-s:hover .ib{opacity:1}}
.v2 .ssx-s .ib:focus-visible{opacity:1}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .ssx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .ssx .ib:active{transform:none}
/* Studio (owner, 18 Nov): the sources' marks are one neutral grey with a hairline, not a colour each */
:root[data-style="studio"] .v2 :is(.ssx-ics span,.ssx-s .ssx-fv){background:var(--chip)!important;color:var(--fg2)!important;box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .ssx-s{border-radius:var(--r-in)}
/* the filter chips keep their quiet edge: the one hover fills them, and the picked one has the stronger fill (owner, 21 Nov:
   never a stronger edge); the sources pill deepens by the same fill, and holds the stronger one while its list is open
   (Agent harness keeps its own) */
:root[data-style="studio"] .v2 .ssx-fl .chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ssx-fl .chip:not(.on):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .ssx-fl .chip.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .ssx-pill:not(.ahx *){box-shadow:inset 0 0 0 99px transparent}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ssx-pill:not(.ahx *):hover{background:var(--chip);box-shadow:inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .ssx-pill:not(.ahx *)[aria-expanded="true"]{box-shadow:inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 :is(.ssx-pill,.ssx-s,.ssx-s .ib){transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
/* ---------- Metric insight ---------- */
/* one number, its trend over the range, and the agent's read on why it moved. Its content sits 16px from every edge (owner,
   18 Nov), the range switch ending on the content's right edge. The chart follows the accent: its line in the accent's mark
   colour over a faint wash of it. Asked why, the button's words shimmer while the agent looks, and the drivers come in once
   it has found them, each as a bar in the accent on a neutral track (a grey one for what it could not explain): their names
   say which is which, so they need no colour of their own */
.v2 .mix{padding:16px;display:flex;flex-direction:column;gap:10px}
.v2 .mix-h{display:flex;align-items:center;justify-content:space-between;font-size:12.5px}
.v2 .mix-rg button{font-size:11.5px;padding:0 var(--s-2);height:24px}
.v2 .mix-v{display:flex;align-items:center;gap:var(--s-2)}
.v2 .mix-v b{font-size:14px;font-weight:500;letter-spacing:-.02em}
.v2 .mix-ch{position:relative;height:90px;cursor:crosshair}
.v2 .mix-svg{width:100%;height:100%;display:block;overflow:visible}
.v2 .mix-l{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);transition:stroke-dashoffset 1.2s var(--ease)}
.v2 .mix-ch.in .mix-l{stroke-dashoffset:0}
.v2 .mix-a{opacity:0;transition:opacity .8s .5s}
.v2 .mix-ch.in .mix-a{opacity:1}
.v2 .mix-x{opacity:0;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){.v2 .mix-ch:hover .mix-x,.v2 .mix-ch:hover .mix-dot{opacity:1}}
.v2 .mix-dot{position:absolute;width:9px;height:9px;margin:-4.5px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 2px var(--accent-mark,var(--accent));opacity:0;transition:opacity .2s;pointer-events:none}
/* the change it explains is marked where it happened: a small date label at the top of a dashed guide down through the chart */
.v2 .mix-mk{position:absolute;top:-14px;bottom:0;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%);opacity:0;transition:opacity .4s 1.1s;pointer-events:none}
.v2 .mix-mk b{pointer-events:auto;display:inline-flex;align-items:center;gap:var(--s-1);height:20px;padding:0 7px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:11.5px;font-weight:500;color:var(--fg2);white-space:nowrap}
.v2 .mix-mk b svg{width:10px;height:10px;color:var(--accent-fg,var(--accent))}
.v2 .mix-mk::after{content:"";flex:1;border-left:1px dashed color-mix(in srgb,var(--faint) 50%,transparent)}
.v2 .mix-ch.in .mix-mk{opacity:1}
.v2 .mix-ins{display:flex;gap:var(--s-2);align-items:flex-start;font-size:13px;line-height:1.5;color:var(--fg2)}
.v2 .mix-ic{color:var(--accent-fg,var(--accent));display:grid;margin-top:2px}
.v2 .mix-why{align-self:flex-start;overflow:hidden}
.v2 .mix-why .shim{font-size:inherit}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .mix :is(.pill,.ib):active{transform:none}
/* the reasons fold open under Why did it move?; shut, the fold takes back the card's 10px gap, so the card's content ends 16px
   from its bottom like everywhere else (owner, 21 Nov), and open, the reasons bring that room back with them */
.v2 .mix-box{margin-top:-10px}
.v2 .mix-rs{display:flex;flex-direction:column;gap:6px;padding-top:12px}
.v2 .mix-r{display:flex;align-items:center;gap:10px;font-size:12.5px}
.v2 .mix-r .t{flex:1;min-width:0}
.v2 .mix-r .bar{width:70px;height:5px;border-radius:var(--r-tiny,3px);background:var(--line);overflow:hidden;flex:none}
.v2 .mix-r .bar i{display:block;height:100%;border-radius:var(--r-tiny,3px);background:var(--k,var(--accent-mark,var(--accent)));transform-origin:left;animation:v2-ssrel .8s var(--ease) both}
.v2 .mix-r .v{width:44px;text-align:right;font-size:12px;color:var(--fg2)}
@keyframes v2-ssrel{from{transform:scaleX(0)}}
/* ---------- Task table ---------- */
/* agent tasks in a sortable table, with bulk actions in the head while rows are picked. The card sits on two columns
   (owner, 18 Nov), its content 16px from every edge: the head's neutral mark in a 28px column with every row's checkbox
   centred under it, and the title, the Task heading and each task's name 12px after it. A row's hover and picked fill is a
   quiet grey that spans the content box, no wider, with round corners (no lines between rows cut through it); the costs,
   the times and their headings sit 8px inside it, and Clear's words end over them. No room is kept: the card grows and
   shrinks with its rows (grow()) and stays centred, and an empty table shows its empty state in their place */
/* its content 16px in from every edge, the last row's fill too, hovered or picked (owner, 21 Nov: "padding is off") */
.v2 .ttx{position:relative;width:100%;padding:16px;container:ttx/inline-size;--ttx-r:calc(10px * var(--rk-m,var(--rk)))}
/* the head: the mark, then the title and its summary, or, while rows are picked, what you can do to them */
.v2 .ttx-hd{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ttx-hi{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:var(--r-sm);color:var(--fg2);background:var(--chip)}
.v2 .ttx-hx{position:relative;flex:1;min-width:0;height:28px}
.v2 .ttx-ti,.v2 .ttx-sb{position:absolute;inset:0;display:flex;align-items:center;transition:opacity .28s var(--ease),transform .45s var(--ease),filter .28s var(--ease)}
/* the title and its count share one baseline; the title's 20px line sits centred in the 28px head (4px above it) */
.v2 .ttx-ti{gap:8px;white-space:nowrap;align-items:baseline;padding-top:4px}
.v2 .ttx-ti b{flex:none;font-size:14px;font-weight:500;line-height:20px}
.v2 .ttx-sum{min-width:0;font-size:12.5px;line-height:18px;overflow:hidden;text-overflow:ellipsis}
.v2 .ttx-sb{gap:2px;opacity:0;transform:translateY(10px);filter:blur(3px);pointer-events:none}
.v2 .ttx.selecting .ttx-ti{opacity:0;transform:translateY(-10px);filter:blur(3px);pointer-events:none}
.v2 .ttx.selecting .ttx-sb{opacity:1;transform:none;filter:none;pointer-events:auto}
.v2 .ttx-n{margin-right:8px;font-size:13px;font-weight:500;white-space:nowrap}
.v2 .ttx-sp{flex:1}
/* Clear's words end over the times, 8px inside the rows' fill, its hover box reaching out round them */
.v2 .ttx-sb .ttx-clr{margin-right:-3px}
.v2 .ttx-sb .pill.ttx-del{color:var(--bad)}
@media (hover:hover) and (pointer:fine){.v2 .ttx-sb .pill.ttx-del:hover{background:color-mix(in srgb,var(--bad) 10%,transparent);color:var(--bad)}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .ttx :is(.pill,.ib):active{transform:none}
/* the table: the checkbox column under the head's mark, the task's name taking the room that is left (cut short with an
   ellipsis rather than pushing the card wider), and the other columns as wide as their words. Rows stand 2px apart, and
   the headings sit right under the divider, as close as any first line (owner, 18 Nov: no padding added on top) */
.v2 .ttx-t{width:100%;margin:-2px 0;border-collapse:separate;border-spacing:0 2px;font-size:13px}
.v2 .ttx-t th{height:32px;padding:0 8px;text-align:left;font-weight:500;font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .ttx-t td{height:36px;padding:0 8px;white-space:nowrap;transition:background-color .25s var(--ease)}
.v2 .ttx-t :is(th,td).ck{width:28px;padding:0}
.v2 .ttx-t :is(th,td).ck .ttx-cb{margin:0 6px}
.v2 .ttx-t :is(th,td).nm{width:100%;max-width:0;padding-left:12px;overflow:hidden;text-overflow:ellipsis}
.v2 .ttx-t :is(th,td).r{text-align:right}
/* it reads as a table of columns (owner, 21 Nov: "there are not vertical lines here again, why?"): a hairline after every column
   from Task to the one before the last, in every style and wherever the columns have been moved, the checkbox staying with
   the task's name. Each cell's line reaches 1px over the 2px between rows, so the lines run unbroken. The columns resize and
   move as in a spreadsheet (cols()); sized by hand, a cell too narrow for its words cuts them short */
.v2 .ttx{--ttx-col:color-mix(in srgb,color-mix(in srgb,var(--line),var(--fg) 9%) 50%,transparent)}
.v2 .ttx-t :is(th,td):not(.ck){position:relative}
.v2 .ttx-t :is(th,td):not(:first-child):not(:last-child)::after{content:"";position:absolute;right:0;top:-1px;bottom:-1px;width:1px;background:var(--ttx-col);pointer-events:none}
.v2 .ttx-t.cols-rz td:not(.ck){overflow:hidden;text-overflow:ellipsis}
.v2 .ttx-t.cols-rz :is(th,td):is(.ck,.nm){width:auto;max-width:none}
/* columns sized wider than the card scroll sideways inside it, as a spreadsheet's do */
.v2 .ttx-sc:has(>.ttx-t.cols-rz){overflow-x:auto}
.v2 .ttx-t.cols-rz th .ttx-s{max-width:100%}
/* a header sorts its column: a quiet arrow shows on hover and stays on the column the rows are sorted by. Over a column set
   to the right the arrow goes before the word, so the word ends where the column's figures do */
.v2 .ttx-s{display:inline-flex;align-items:center;gap:3px;height:24px;margin:0 -6px;padding:0 6px;border-radius:calc(6px * var(--rk-s,var(--rk)));color:inherit;font:inherit;transition:color .2s,background-color .2s}
.v2 .ttx-t th.r .ttx-s{flex-direction:row-reverse}
@media (hover:hover) and (pointer:fine){.v2 .ttx-s:hover{color:var(--fg);background:var(--row)}}
.v2 .ttx-s .ar{display:grid;opacity:0;transition:opacity .2s,transform .35s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .ttx-s:hover .ar{opacity:.45}}
.v2 .ttx-s.on{color:var(--fg)}
.v2 .ttx-s.on .ar{opacity:1}
.v2 .ttx-s.on.desc .ar{transform:rotate(180deg)}
/* rows: the shared hover, and a slightly deeper grey while picked, with the fill's corners round at its two ends */
.v2 .ttx-t tbody tr[data-id]{cursor:pointer}
.v2 .ttx-t tbody tr[data-id]>td:first-child{border-radius:var(--ttx-r) 0 0 var(--ttx-r)}
.v2 .ttx-t tbody tr[data-id]>td:last-child{border-radius:0 var(--ttx-r) var(--ttx-r) 0}
@media (hover:hover) and (pointer:fine){.v2 .ttx-t tbody tr[data-id]:hover>td{background:var(--row)}}
.v2 .ttx-t tbody tr.sel>td{background:color-mix(in srgb,var(--fg) 6%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .ttx-t tbody tr.sel:hover>td{background:color-mix(in srgb,var(--fg) 8%,transparent)}}
.v2 .ttx-t td.nm{font-weight:500}
.v2 .ttx-t .ag{display:flex;align-items:center;gap:7px;min-width:0;color:var(--fg2)}
/* a long agent name is cut short with an ellipsis rather than running into the time beside it */
.v2 .ttx-t .ag>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ttx-t .ag .av{width:20px;height:20px;font-size:9.5px}
.v2 .ttx-t td.num{color:var(--fg2)}
.v2 .ttx-t td.up{color:var(--muted)}
/* on a picked row's grey the times step up a shade, so they keep 4.5:1 */
.v2 .ttx-t tbody tr.sel td.up{color:var(--fg2)}
/* checkboxes: a clear 1.5px edge, and a tick that springs in; select-all shows a dash while only some rows are picked */
.v2 .ttx-cb{display:grid;place-items:center;width:16px;height:16px;border-radius:var(--r-tiny,5px);box-shadow:inset 0 0 0 1.5px var(--fg2);color:var(--on-accent,#fff);transition:background-color .2s,box-shadow .2s}
@media (hover:hover) and (pointer:fine){.v2 .ttx-cb:hover{box-shadow:inset 0 0 0 1.5px var(--fg)}}
.v2 .ttx-cb[aria-checked="true"],.v2 .ttx-cb[aria-checked="mixed"]{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent))}
.v2 .ttx-cb svg{grid-area:1/1;width:11px;height:11px;opacity:0;transform:scale(.4);transition:opacity .15s,transform .3s cubic-bezier(.34,1.4,.64,1)}
.v2 .ttx-cb[aria-checked="true"] .ck-y,.v2 .ttx-cb[aria-checked="mixed"] .ck-m{opacity:1;transform:none}
/* status: the tag's look, its status tint with its words in that hue: Running in the accent, Done green, Failed red, Queued
   and Paused grey. The tint is mixed into the surface, so the chip is opaque and its words keep 4.5:1 and APCA Lc 60 on a
   picked row and in dark mode too */
.v2 .ttx-st{--sc:var(--fg2);--sb:var(--chip);display:inline-flex;align-items:center;height:22px;padding:0 9px 0 7px;border-radius:var(--r-tag);font-size:12px;font-weight:500;color:var(--sc);background:color-mix(in srgb,var(--sb) 70%,var(--surface));transition:color .35s var(--ease),background-color .35s var(--ease)}
@supports (corner-shape:squircle){.v2 .ttx-st{border-radius:var(--r-tag-sq)}}
.v2 .ttx-st .sv{display:inline-flex;align-items:center;gap:6px}
/* running reads in the accent's text colour on a tint of its mark, so a light accent like lime stays legible */
.v2 .ttx-st[data-s="run"]{--sc:var(--accent-fg,var(--accent));--sb:var(--accent-bg)}
.v2 .ttx-st[data-s="done"]{--sc:var(--ok);--sb:var(--ok-bg)}
.v2 .ttx-st[data-s="fail"]{--sc:var(--bad);--sb:var(--bad-bg)}
.v2 .ttx-st .spin{width:10px;height:10px}
.v2 .ttx-st .i{width:12px;height:12px}
/* a new status fades in out of a blur; a cancelled row slides away before it goes */
.v2 .ttx-sin{animation:v2-ttxsin .32s var(--ease)}
@keyframes v2-ttxsin{from{opacity:0;filter:blur(3px)}}
.v2 .ttx-t tbody tr.ttx-out{opacity:0;transform:translateX(14px);transition:opacity .24s var(--ease),transform .24s var(--ease)}
/* when every task is gone: a small sketch of the table on a card, what happened, and a way to bring them back. Soft's
   sketch is a soft card with three rows, the first one's box in the accent's tint; Blueprint keeps its mark */
.v2 .ttx-t tbody tr.ttx-empty td{height:auto;max-width:none;padding:24px 16px 26px;text-align:center;white-space:normal}
.v2 .ttx.none .ttx-t thead{display:none}
.v2 .ttx-sum:empty{display:none}
.v2 .ttx-em{display:flex;flex-direction:column;align-items:center;gap:4px}
.v2 .ttx-em .ic{display:none;place-items:center;width:36px;height:36px;margin-bottom:8px;border-radius:var(--r-in);background:var(--chip);color:var(--muted)}
.v2 .ttx-em b{font-size:13.5px;line-height:18px;font-weight:500}
.v2 .ttx-em>span:not(.ic,.ttx-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .ttx-em .pill{margin-top:12px}
.v2 .ttx-em-art{flex:none;display:flex;flex-direction:column;justify-content:center;gap:7px;width:84px;height:56px;margin-bottom:12px;padding:0 12px;border-radius:calc(9px * var(--rk));background:var(--surface);box-shadow:var(--shadow)}
.v2 .ttx-em-art .r{display:flex;align-items:center;gap:6px}
.v2 .ttx-em-art i{display:block;flex:none;height:4px;border-radius:calc(2px * var(--rk));background:color-mix(in srgb,var(--fg) 9%,var(--surface))}
.v2 .ttx-em-art .t{width:8px;height:8px;border-radius:calc(2.5px * var(--rk))}
.v2 .ttx-em-art .l{width:36px}
.v2 .ttx-em-art .r:nth-child(2) .l{width:30px}
.v2 .ttx-em-art .r:nth-child(3) i{background:color-mix(in srgb,var(--fg) 5%,var(--surface))}
.v2 .ttx-em-art .r:nth-child(3) .l{width:24px}
.v2 .ttx-em-art .r:first-child .t{background:var(--accent-bg)}
.v2 .ttx-em-art .r:first-child .l{background:color-mix(in srgb,var(--accent-mark,var(--accent)) 55%,var(--surface))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ttx-em .ic{display:grid}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ttx-em-art{display:none}
/* narrow, on a phone or in a narrow card: each task stacks, its name and cost on top and its status, agent and last update
   on a line under it, on the same columns (its checkbox under the head's mark, its words where the title's start); the
   header row keeps select all and the sort buttons, and the bulk actions stay in the head above. The container is the card,
   inside its 16px padding, so this is a card under 560px wide */
@container ttx (max-width:528px){
  .v2 .ttx-t{display:block;margin:0}
  .v2 .ttx-t thead,.v2 .ttx-t tbody{display:flex;flex-direction:column;gap:2px}
  /* each task is a small grid: its name and cost on the first line, and its status, agent and last update on the second,
     the status in a column of its own so the agents line up from row to row; the headings sit in the same places, so each
     sort button is over what it sorts */
  .v2 .ttx-t tr{position:relative;display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:8px 8px 8px 40px;border-radius:var(--ttx-r);transition:background-color .25s var(--ease)}
  .v2 .ttx-t thead tr{padding-top:4px;padding-bottom:4px}
  .v2 .ttx-t th,.v2 .ttx-t td,.v2 .ttx-t :is(th,td).nm{display:block;width:auto;max-width:none;height:auto;padding:0}
  .v2 .ttx-t :is(th,td).ck{position:absolute;left:6px;top:10px;width:auto}
  .v2 .ttx-t :is(th,td).ck .ttx-cb{margin:0}
  /* select all sits on the headings' first line, as each row's box sits on its name's */
  .v2 .ttx-t thead th.ck{top:8px}
  .v2 .ttx-t :is(th,td).nm{grid-area:1/1/2/3;min-width:0}
  .v2 .ttx-t td.nm{white-space:normal;line-height:20px}
  .v2 .ttx-t :is(th,td):nth-child(5){grid-area:1/3}
  .v2 .ttx-t :is(th,td):nth-child(3){grid-area:2/1}
  .v2 .ttx-t :is(th,td):nth-child(4){grid-area:2/2;min-width:0}
  .v2 .ttx-t :is(th,td):nth-child(6){grid-area:2/3}
  .v2 .ttx-t td:is(:nth-child(5),.up),.v2 .ttx-t .ag{font-size:12px}
  /* (a task's name and its cost, the first line's words, share one baseline; the second line's status, agent and time stay
     centred on theirs) */
  .v2 .ttx-t tbody td:is(.nm,:nth-child(5)){align-self:baseline}
  .v2 .ttx-s:not(.on) .ar{display:none}
  .v2 .ttx-t tbody tr[data-id]>td:is(:first-child,:last-child){border-radius:0}
  .v2 .ttx-t tbody tr.sel>td{background:none}
  @media (hover:hover) and (pointer:fine){.v2 .ttx-t tbody tr[data-id]:hover>td,.v2 .ttx-t tbody tr.sel:hover>td{background:none}}
  @media (hover:hover) and (pointer:fine){.v2 .ttx-t tbody tr[data-id]:hover{background:var(--row)}}
  .v2 .ttx-t tbody tr.sel{background:color-mix(in srgb,var(--fg) 6%,transparent)}
  @media (hover:hover) and (pointer:fine){.v2 .ttx-t tbody tr.sel:hover{background:color-mix(in srgb,var(--fg) 8%,transparent)}}
  .v2 .ttx-t tbody tr.ttx-empty{display:block;padding:0}
  .v2 .ttx-t tbody tr.ttx-empty td{padding:24px 16px 26px}
  /* as cards, the tasks have no columns to draw, size or move */
  .v2 .ttx-t :is(th,td)::after,.v2 .ttx-t .col-rz{display:none}
}
/* a phone: the head's mark is a 24px tile with the words 8px after it, the same columns run down the card, and the bulk
   actions drop their icons */
@container ttx (max-width:388px){
  .v2 .ttx-hd{gap:8px}.v2 .ttx-hi{width:24px;height:24px;border-radius:var(--r-xs,6px)}
  .v2 .ttx-t tr{padding-left:32px}.v2 .ttx-t :is(th,td).ck{left:4px}
  .v2 .ttx-sb .pill{padding:0 7px}.v2 .ttx-sb .pill .i{display:none}.v2 .ttx-n{margin-right:2px}
  .v2 .ttx-sb .ttx-clr{margin-right:1px}
}
/* Studio (owner, 18 Nov): the head's mark has a hairline like the other tiles; checkboxes are white rounded squares with a
   clear edge and a soft inner shadow, ink once ticked (they are controls); the head's swap fades without a blur; the empty
   state is Studio's: a sketch of the table's rows on a small white card, the title, one muted line and an
   outline button */
:root[data-style="studio"] .v2 .ttx-hi{box-shadow:inset 0 0 0 1px var(--hair)}
/* no red fill behind an error (owner, 17 Nov): Failed keeps its red words and mark on the neutral chip */
:root[data-style="studio"] .v2 .ttx-st[data-s="fail"]{--sb:var(--chip)}
:root[data-style="studio"] .v2 .ttx-ti,:root[data-style="studio"] .v2 .ttx-sb{transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 :is(.ttx-sb,.ttx.selecting .ttx-ti){filter:none}
:root[data-style="studio"] .v2 .ttx-sb{transform:translateY(6px)}
:root[data-style="studio"] .v2 .ttx.selecting .ttx-ti{transform:translateY(-6px)}
:root[data-style="studio"] .v2 .ttx.selecting .ttx-sb{transform:none}
:root[data-style="studio"] .v2 .ttx-t td{transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ttx-s{transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ttx-cb{border-radius:5px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--fg2),var(--track-ring);transition:background var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ttx-cb:hover{box-shadow:inset 0 0 0 1.5px var(--fg),var(--track-ring)}}
:root[data-style="studio"] .v2 .ttx-cb:is([aria-checked="true"],[aria-checked="mixed"]){background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:inset 0 0 0 1px var(--btn-2),inset 0 2px 3px -1px rgba(255,255,255,.28);color:var(--on-btn)}
:root[data-style="studio"] .v2 .ttx-t tbody tr.ttx-empty td{padding:28px 16px 30px}
:root[data-style="studio"] .v2 .ttx-em-art{justify-content:flex-start;gap:6px;width:136px;height:70px;margin-bottom:16px;padding:14px;border-radius:calc(10px * var(--rk-l,var(--rk)))}
:root[data-style="studio"] .v2 .ttx-em-art .r{gap:8px;height:10px}
:root[data-style="studio"] .v2 .ttx-em-art .r>i{height:6px;border-radius:3px;background:var(--ghost)}
:root[data-style="studio"] .v2 .ttx-em-art .r>.t{width:10px;height:10px}
:root[data-style="studio"] .v2 .ttx-em-art .r>.l{width:58px}
:root[data-style="studio"] .v2 .ttx-em-art .r:nth-child(3)>i{background:var(--ghost-2)}
:root[data-style="studio"] .v2 .ttx-em .pill{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ttx-em .pill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ttx-em .pill:active{box-shadow:var(--btn2-press)}
/* Studio reads as a ruled table (owner, 22 Nov: "more prominent", "horizontal lines"): the head is Studio's off-white strip
   over a hairline, the table starts 8px under it, and a half-strength hairline runs under the headings and between the
   rows, in the columns' grey. The rows stand edge to edge with square ends, so the lines run unbroken; a row's hover and
   picked fill is the same quiet grey between its lines. Soft and Blueprint keep their unruled rows with round fills */
:root[data-style="studio"] .v2 .ttx-hd{margin:-16px -16px 0;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .ttx-t{margin:8px 0 0;border-spacing:0}
:root[data-style="studio"] .v2 .ttx-t :is(th,td):not(:first-child):not(:last-child)::after{top:0;bottom:0}
:root[data-style="studio"] .v2 .ttx-t thead th,:root[data-style="studio"] .v2 .ttx-t tbody tr[data-id]:not(:last-child)>td{box-shadow:inset 0 -1px 0 var(--ttx-col)}
:root[data-style="studio"] .v2 .ttx-t tbody tr[data-id]>td:is(:first-child,:last-child){border-radius:0}
@container ttx (max-width:528px){
  :root[data-style="studio"] .v2 .ttx-t thead,:root[data-style="studio"] .v2 .ttx-t tbody{gap:0}
  :root[data-style="studio"] .v2 .ttx-t thead th{box-shadow:none}
  :root[data-style="studio"] .v2 .ttx-t tbody tr[data-id]:not(:last-child)>td{box-shadow:none}
  :root[data-style="studio"] .v2 .ttx-t tr{border-radius:0}
  :root[data-style="studio"] .v2 .ttx-t thead tr,:root[data-style="studio"] .v2 .ttx-t tbody tr[data-id]:not(:last-child){box-shadow:inset 0 -1px 0 var(--ttx-col)}
}
/* ---------- Code viewer ---------- */
/* a file the agent changed: the file tabs, how many lines changed and Copy in the head; the code under it, each changed line
   marked, and a line's note under it once you click it. Only the code is monospace (no mono in the interface): the files'
   switch, the count and the notes are in the interface's own type. The card is as tall as the file it shows, never
   kept at the longer file's height: switching files eases it to its new height */
.v2 .cvx{overflow:hidden;display:flex;flex-direction:column}
/* the head: its controls 16px from the card's sides and top and from the hairline under them */
.v2 .cvx-h{display:flex;align-items:center;gap:var(--s-1);padding:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* the files: the library's segmented switch (as Image generation's Gallery and Styles), scrolling sideways if there are many */
.v2 .cvx-tabs{flex:0 1 auto;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}
.v2 .cvx-tabs::-webkit-scrollbar{display:none}
.v2 .cvx-tabs button{flex:none;white-space:nowrap}
.v2 .cvx-meta{margin-left:auto;padding-right:var(--s-1);font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .cvx-meta b{font-weight:500;color:var(--ok)}
.v2 .cvx .ib{width:28px;height:28px;flex:none}
.v2 .cvx .ib.copied{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .cvx .ib.copied:hover{color:var(--ok-mark)!important}}
.v2 .cvx-body{overflow-x:auto}
.v2 .cvx-code{margin:0;padding:var(--s-4) 0;font-family:var(--mono);font-size:12px;line-height:1.8}
.v2 .cvx-l{display:flex;padding-right:var(--s-4);cursor:pointer;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .cvx-l:hover{background:var(--row)}}
/* a line that takes the focus fills the scrolling code, which would cut an outside ring: its ring is drawn inside */
.v2 .cvx-l:focus-visible{outline-offset:-2px}
.v2 .cvx-l.new{background:color-mix(in srgb,var(--ok) 6%,transparent)}
.v2 .cvx-l.on{background:var(--sel)}
@media (hover:hover) and (pointer:fine){.v2 .cvx-l.on:hover{background:var(--sel)}}
.v2 .cvx-l .n{width:46px;text-align:right;padding-right:var(--s-4);color:var(--muted);user-select:none;flex:none;transition:color var(--t-fast)}
.v2 .cvx-l.new .n{color:var(--ok)}
.v2 .cvx-l.on .n{color:var(--accent-fg,var(--accent))}
.v2 .cvx-l .c{white-space:pre}
/* one cool family for the syntax (owner, 4 Nov: the warm and cool mix clashed): violet keywords, blue functions, teal
   components, green strings; attributes and the rest stay in the text greys */
.v2 .cvx-code .k{color:var(--pl)}.v2 .cvx-code .s{color:var(--pm)}.v2 .cvx-code .f{color:var(--pb)}.v2 .cvx-code .cm{color:var(--muted);font-style:italic}.v2 .cvx-code .tg{color:var(--pt)}.v2 .cvx-code .at{color:var(--fg2)}
/* the agent's note belongs to the line it explains (owner, 4 Nov: no grey box): it carries on in that line's tint, like an
   inline review comment. Its spark sits in the line numbers' column, 16px in like the head's first tab, and its words start
   where the code does (the numbers' column is 46px, so a two-digit number starts 16px in too) */
.v2 .cvx-note{margin:0;padding:var(--s-1) var(--s-4) var(--s-2) 0;background:var(--sel);font-family:var(--sans);font-size:12.5px;line-height:1.5;white-space:normal;color:var(--fg2);display:grid;grid-template-columns:46px minmax(0,1fr)}
.v2 .cvx-note>svg{justify-self:start;margin:3px 0 0 var(--s-4);color:var(--accent-fg,var(--accent))}
.v2 .cvx-note .shim{font-size:inherit}
/* Studio: the head is an off-white strip, the files' switch and Copy 16px from the card's edges and the strip's hairline (the
   switch is the library's 30px one, so the strip is 2px taller than a 28px row's, as Line chart's is) */
:root[data-style="studio"] .v2 .cvx-h{height:calc(30px + 2 * var(--strip-y) + 1px);padding:0 16px;background:var(--strip);border-bottom-color:var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .cvx-l{transition:background-color var(--t-fast) var(--ease)}

/* ---------- Terminal stream ---------- */
/* the shell commands the agent runs, as a compact terminal: where it runs and how it is going in the header, then each
   command with its output streaming in under it, and an exit code or a check with how long it took. Output longer than
   five lines folds to its last four. The output is code (12px mono on a 1.8 line height); everything around it, the header,
   the times, the agent's notes and the summary, is in the interface's own type. It sits on two columns (owner, 18 Nov): the
   header's terminal mark, each command's $ (an edit's pencil, a note's spark) and the summary's mark are centred in one 16px
   column 16px in, and the directory, the commands, their output and the notes' words all start 8px after it. It keeps no room
   for output still to come (owner, 17 Nov): the terminal grows as lines arrive (grow()) up to 420px, then its output scrolls
   under the header and keeps to its newest line */
.v2 .tmx{display:flex;flex-direction:column;max-height:420px;overflow:hidden}
.v2 .tmx>.dm-grow{max-height:420px;min-height:0}
/* the head's controls (Copy, the tallest, at 30px) have 16px above them and 16px down to the hairline, as a footer's do */
.v2 .tmx-h{display:flex;align-items:center;gap:var(--s-2);height:calc(30px + 2 * var(--s-4) + 1px);flex:none;padding:0 var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .tmx-ic{width:16px;display:grid;place-items:center;color:var(--fg2);flex:none}
/* (the directory and the state take a line as tall as their letters, so their words sit on the header's centre line) */
.v2 .tmx-cwd{min-width:0;flex:0 1 auto;font-size:12.5px;line-height:15px;color:var(--fg2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .tmx-st{display:inline-flex;align-items:center;gap:6px;min-width:0;font-size:12px;line-height:15px;white-space:nowrap}
.v2 .tmx-st .g{display:grid;place-items:center;flex:none}
.v2 .tmx-st .spin{width:10px;height:10px}
.v2 .tmx-h .sp{flex:1}
/* a narrow card (a phone) keeps every part of the head whole, so the state never runs into Stop (fix, 23 Nov): the state, Stop
   and Copy never shrink; under 300px Stop shows its icon only (its label stays for screen readers), and under 250px the
   directory, which by then would show only an ellipsis, gives way */
.v2 .tmx-h{container:tmxh/inline-size}
.v2 .tmx-st,.v2 .tmx-h :is(.pill,.ib){flex:none}
@container tmxh (max-width:300px){.v2 .tmx .tmx-h .pill.tmx-stop{width:28px;padding:0;gap:0;justify-content:center;font-size:0}}
@container tmxh (max-width:250px){.v2 .tmx-cwd{display:none}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .tmx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .tmx .ib:active{transform:none}
/* Copy's tick is the vivid mark green, in place of its icon and at its size (owner, 18 Nov) */
.v2 .tmx .ib.copied{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .tmx .ib.copied:hover{color:var(--ok-mark)!important}}
.v2 .tmx-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--s-2) 0;font-size:12px;line-height:1.8;scrollbar-width:thin;scrollbar-color:var(--rail) transparent}
.v2 .tmx-body::-webkit-scrollbar{width:8px}
.v2 .tmx-body::-webkit-scrollbar-track{background:transparent}
.v2 .tmx-body::-webkit-scrollbar-thumb{background:var(--rail);border:2px solid transparent;background-clip:padding-box;border-radius:var(--r-pill)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tmx-body::-webkit-scrollbar-thumb{border-radius:0}
/* the commands, their output and an edit's lines are code: mono, the only place it is used */
.v2 .tmx-body code{font:inherit;font-family:var(--mono);font-size:12px}
.v2 .tmx-blk+.tmx-blk{margin-top:var(--s-1)}
/* (a whole-pixel line, so the command's code and its time, in their two fonts, land on one baseline) */
.v2 .tmx-cmd{display:flex;align-items:center;gap:var(--s-2);padding:0 var(--s-4);line-height:22px}
.v2 .tmx-p{width:16px;flex:none;display:grid;place-items:center;color:var(--fg2)}
.v2 code.tmx-p{font-weight:500;color:var(--accent-fg,var(--fg))}
.v2 .tmx-c{flex:1;min-width:0;font-weight:500;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .tmx-m{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap;flex:none}
.v2 .tmx-m .g{display:grid;place-items:center}
.v2 .tmx-m .spin{width:10px;height:10px}
.v2 .tmx-m .ok{display:grid;color:var(--ok-mark)}
.v2 .tmx-m .add{color:var(--add)}.v2 .tmx-m .del{color:var(--del)}
/* the output wraps inside the panel, so a long line never pushes the page sideways */
.v2 .tmx-o{display:block;padding:0 var(--s-4) 0 40px;color:var(--fg2);white-space:pre-wrap;overflow-wrap:anywhere}
.v2 .tmx-l{display:block}
.v2 .tmx-l.ok{color:var(--ok)}.v2 .tmx-l.bad{color:var(--bad)}.v2 .tmx-l.mu{color:var(--muted)}
/* a streaming log never pulses (owner, 26 Nov): each line, command, note and edit that arrives opens its own height in 180ms
   (between the motion pieces' quick and calm times, about one line's arrival apart) as its words fade in, and the line that folds
   away above the last four closes in the same time and curve, so the log's height moves in one continuous line and the card,
   which follows its content frame by frame (growFit()), never lags behind it: the newest line never sits in the card's padding
   and the cursor under it never hides. A line moved into the folded part stays still (.still). Where a browser can't ease to
   an auto height, lines arrive as before and the card springs to them */
@keyframes v2-tmxopen{from{height:0;margin-top:0;margin-bottom:0;opacity:0;clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes v2-tmxshut{from{clip-path:inset(0)}to{height:0;margin-top:0;margin-bottom:0;opacity:0;clip-path:inset(0 0 100% 0)}}
@supports (interpolate-size:allow-keywords){
  .v2 .tmx-body{interpolate-size:allow-keywords}
  .v2 .tmx-body>:is(.tmx-blk,.tmx-note),.v2 .tmx-o>.tmx-l:not(.still),.v2 .tmx-df,.v2 .tmx-more.opens{animation:v2-tmxopen 180ms var(--ease) backwards}
  .v2 .tmx-o>.tmx-l.gone{animation:v2-tmxshut 180ms var(--ease) forwards}
}
/* (its hover fill ends on the content's 16px edge, as the output above it does) */
.v2 .tmx-more{display:flex;align-items:center;gap:6px;width:calc(100% - 48px);margin:0 var(--s-4) 0 32px;padding:0 8px;border-radius:var(--r-sm);font-size:12px;line-height:inherit;text-align:left;color:var(--muted);transition:color var(--t-fast),background-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .tmx-more:hover{color:var(--fg);background:var(--row)}}
/* its motion (the core's motion pieces, owner, 26 Nov): Stop, Copy and the folded lines' button press at once (.mx-press); Copy's
   tick, and a mark that changes (the header's and each command's spinner into its tick, Exit tag or Stopped), crossfade in place
   (.mx-ic, iconSwap()); the terminal grows on the spring (.mx-grow) */
.v2 .tmx-more .sp{flex:1}
.v2 .tmx-more svg{transition:transform var(--t) var(--ease)}
.v2 .tmx-more[aria-expanded="true"] svg{transform:rotate(180deg)}
/* folded lines are hidden once they have folded away, so nothing measures the clipped part as if it were drawn */
.v2 .tmx-blk .fold.shut>*{visibility:hidden;transition:visibility 0s var(--t)}
/* what the agent says between commands: its spark in the marks' column and its words on the commands' column, shimmering
   while it is still working it out */
.v2 .tmx-note{display:flex;gap:var(--s-2);margin:var(--s-2) var(--s-4);font-size:12.5px;line-height:1.5;color:var(--fg2)}
.v2 .tmx-note>svg{flex:none;margin:3px 2px 0;color:var(--accent-fg,var(--accent))}
.v2 .tmx-note .shim{font-size:inherit}
/* once the run is over, the line at the foot: its mark in the marks' column and how many commands ran (a finished line has
   no clock, owner, 18 Nov) */
.v2 .tmx-f{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px}
.v2 .tmx-f .g{width:16px;display:grid;place-items:center;flex:none;color:var(--ok-mark)}
.v2 .tmx-f.stop .g{color:var(--muted)}.v2 .tmx-f.bad .g{color:var(--bad-mark)}
/* the run's state in the header: a neutral tag while it runs, its words shimmering as every loader's do (owner, 19 Nov), then
   the green tint once it passes or the red one if it failed */
.v2 .tmx-st{height:22px;padding:0 var(--s-2);border-radius:var(--r-tag);background:var(--chip-fill);color:var(--fg2);transition:background .3s,color .3s}
.v2 .tmx-sv.shim{font-size:inherit}
.v2 .tmx-st.ok,.v2 .tmx-st.ok .g{background:var(--ok-bg);color:var(--ok)}
.v2 .tmx-st.bad,.v2 .tmx-st.bad .g{background:var(--bad-bg);color:var(--bad)}
/* while it runs, a light sweeps along the header's lower edge */
.v2 .tmx-h{position:relative}
.v2 .tmx-h::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--accent-mark,var(--accent)),transparent) 0 0/40% 100% no-repeat;opacity:0;transition:opacity .4s;pointer-events:none}
.v2 .tmx.live .tmx-h::after{opacity:1;animation:v2-tmxsweep 1.8s var(--ease-io) infinite}
@keyframes v2-tmxsweep{from{background-position:-60% 0}to{background-position:160% 0}}
/* each command and edit has a line down its left: neutral grey, the accent while it runs and red if it failed (colour only
   where it means something: what is running, and what failed) */
.v2 .tmx-blk{position:relative}
.v2 .tmx-blk::before{content:"";position:absolute;left:7px;top:4px;bottom:4px;width:2px;border-radius:1px;background:var(--rail);transition:background .3s}
.v2 .tmx-blk[data-s="run"]::before{background:var(--accent-mark,var(--accent));animation:v2-tmxpulse 1.4s var(--ease-io) infinite}
.v2 .tmx-blk[data-s="bad"]::before{background:var(--bad-mark)}
@keyframes v2-tmxpulse{50%{opacity:.35}}
/* an edit shows the lines it changed, removed in red and added in green, each on its own tint; the words start on the
   output's column, their tint reaching 8px out round them */
.v2 .tmx-df{display:block;margin:2px var(--s-4) var(--s-1) 32px;border-radius:var(--r-sm);overflow:hidden}
.v2 .tmx-df span{display:block;padding:1px var(--s-2);white-space:pre-wrap;overflow-wrap:anywhere;color:var(--fg2)}
.v2 .tmx-df .a{background:color-mix(in srgb,var(--add) 10%,transparent)}.v2 .tmx-df .a::first-letter{color:var(--add)}
.v2 .tmx-df .d{background:color-mix(in srgb,var(--del) 10%,transparent)}.v2 .tmx-df .d::first-letter{color:var(--del)}
/* a block cursor blinks after the newest line while the run goes on */
.v2 .tmx.live .tmx-body::after{content:"";display:block;width:7px;height:14px;margin:var(--s-1) 0 0 40px;background:var(--fg2);animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tmx-h::after{background:repeating-linear-gradient(90deg,var(--accent-mark) 0 6px,transparent 6px 12px);animation:v2-tmxmarch .6s steps(4) infinite}
@keyframes v2-tmxmarch{to{background-position:12px 0}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tmx-blk::before{width:1px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tmx-blk[data-s="run"]::before{animation:v2-bpblink 1.1s steps(1,end) infinite}
/* Studio (owner, 18 Nov): an off-white head strip with the directory and the run's state, Stop and Copy 16px from the card's
   edges and the strip's hairline as 28px pills (owner, 23 Nov); the output on white, 16px in, with no coloured lines (the mark at each command's end says how it went)
   and the $ in grey; and once the run is over, the summary as the off-white foot strip */
:root[data-style="studio"] .v2 .tmx-h{height:calc(28px + 2 * var(--strip-y) + 1px);padding:0 16px;background:var(--strip);border-bottom-color:var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .tmx-h::after,:root[data-style="studio"] .v2 .tmx-blk::before{display:none}
:root[data-style="studio"] .v2 .tmx .ib{width:28px;height:28px}
:root[data-style="studio"] .v2 .tmx-body{padding:12px 0}
:root[data-style="studio"] .v2 :where([data-c],.tip,.kbx-k.ghost) code.tmx-p{color:var(--muted)}
:root[data-style="studio"] .v2 .tmx-note>svg{color:var(--fg2)}
:root[data-style="studio"] .v2 .tmx-f{padding:var(--strip-y) 16px;line-height:28px;font-size:12.5px;background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .tmx-f:not(.stop,.bad) .g{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
:root[data-style="studio"] .v2 .tmx-st{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* (on the off-white strip the state's grey chip is a step darker, so it shows as a chip does on white) */
:root[data-style="studio"] .v2 .tmx-st:not(.ok,.bad){background:var(--chip-fill-h)}
:root[data-style="studio"] .v2 .tmx-more{transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}

/* ---------- Details panel ---------- */
/* a run's properties in sections that fold, each value changed in place from a small menu. Its content sits 16px from every
   edge (owner, 18 Nov): the run's kind, its name and the copy button's glyph on the head's line; each section's name is a
   label on the content's left edge, in the small muted label type with room above it and its chevron after the words; the
   keys start on that edge too, and the values share one column, a value you can change lining up by its words, its hover
   box reaching out round them. The card follows its sections as they fold, so it keeps no room for a shut one */
.v2 .dtp{padding:16px 16px 8px;display:flex;flex-direction:column}
.v2 .dtp-h{display:flex;align-items:center;gap:8px;min-height:28px;font-size:13.5px}
/* the kind is metadata, so it is muted, never coloured */
.v2 .dtp-h .ft{flex:none;color:var(--muted)}
/* (the kind and the title share one baseline; the copy button stays centred on their line) */
.v2 .dtp-ht{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px}
.v2 .dtp-h b{flex:1;min-width:0;font-weight:500;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the copy button's glyph ends on the content's edge, its hover circle reaching out round it; done, the glyph is the vivid
   green tick, in place */
.v2 .dtp-cp{width:28px;height:28px;margin-right:-8px}
.v2 .dtp .ib.copied{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .dtp .ib.copied:hover{color:var(--ok-mark)!important}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .dtp :is(.ib,.pill):active,:root[data-style="studio"] .v2 .dtp .ib:active{transform:none}
.v2 .dtp-sec{display:flex;flex-direction:column;transition:padding var(--t) var(--ease)}
/* with the last section shut, its label is the panel's last line, and it too sits 16px from the foot */
.v2 .dtp-sec:not(:has(~.dtp-sec)):has(>.fold.shut){padding-bottom:3px}
.v2 .dtp-sh{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;height:24px;margin:12px -6px 2px;padding:0 6px;border-radius:var(--r-sm);font-size:11.5px;color:var(--muted);text-align:left;transition:color var(--t-fast),background-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .dtp-sh:hover{color:var(--fg);background:var(--row)}}
.v2 .dtp-sh svg{transition:transform .4s var(--ease);transform:rotate(90deg)}
.v2 .dtp-sh[aria-expanded="false"] svg{transform:none}
.v2 .dtp-rows{display:flex;flex-direction:column}
/* a section's rows settle 4px as it folds open, and lift away as it folds shut */
.v2 .dtp .fold .dtp-rows{transition:transform var(--t) var(--ease)}
.v2 .dtp .fold.shut .dtp-rows{transform:translateY(-4px)}
.v2 .dtp-r{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;min-height:32px;font-size:13px;position:relative}
.v2 .dtp-r .k{color:var(--muted)}
.v2 .dtp-v{display:inline-flex;align-items:center;gap:7px;justify-self:start;height:28px;padding:0 var(--s-2);margin-left:-8px;border-radius:var(--r-sm);transition:background .2s;color:var(--fg)}
/* a value that starts with a photo sits as far from the box's left edge as from its top and bottom (owner, 10 Nov) */
.v2 .dtp-v:has(>.av:first-child){padding:0 6px 0 4px;margin-left:-4px}
.v2 button.dtp-v[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 button.dtp-v:hover{background:var(--row)}}
.v2 .dtp-v .av{width:20px;height:20px;font-size:9.5px}
.v2 .dtp-v>svg{color:var(--muted)}
.v2 .dtp-v.flash{animation:v2-dtpf .9s var(--ease)}
@keyframes v2-dtpf{30%{background:var(--accent-bg)}}
.v2 .dtp-tags{display:flex;gap:var(--s-1);align-items:center;flex-wrap:wrap}
.v2 .dtp-add{width:20px;height:20px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;color:var(--muted);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);transition:color var(--t-fast),background-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .dtp-add:hover{color:var(--fg);background:var(--row)}}
.v2 .dtp .mi .av{width:20px;height:20px;font-size:9.5px}
.v2 .dtp .pop{min-width:180px}
/* Studio (owner, 18 Nov): the add button is a circle like Studio's other small controls, and hovers and fades take Studio's
   calm 220ms */
:root[data-style="studio"] .v2 .dtp-add{border-radius:50%;box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 :is(.dtp-sh,.dtp-v,.dtp-add){transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
/* its ghost controls, a section's toggle and a value's menu button, are pills, as every Studio control is (owner, 18 Nov) */
:root[data-style="studio"] .v2 :is(.dtp-sh,.dtp-v){border-radius:var(--r-pill)}
/* Studio is ruled (owner, 22 Nov: "a divider under the heading, more dividers"): the head is Studio's off-white strip over a
   hairline, as Task table's is, and a hairline runs edge to edge between the sections, each section's label sitting 12px under its line as the first one sits under the head's */
:root[data-style="studio"] .v2 .dtp{padding-top:0}
:root[data-style="studio"] .v2 .dtp-h{margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .dtp-sec+.dtp-sec{margin:8px -16px 0;padding-left:16px;padding-right:16px;border-top:1px solid var(--line)}
/* ---------- Citation hover card ---------- */
/* an answer with numbered citations; pointing at one (or focusing or tapping it) shows its source in a card that opens over
   the stage from the citation, below it when there is room and above it when there isn't (placePop), so it is never cut off.
   No room is kept for the card under the answer (owner, 17 Nov): the answer sits centred on its own */
.v2 .chx{position:relative;overflow:visible}
.v2 .chx-p{line-height:1.8}
/* a citation is a small grey number; pointed at or open, it takes the accent tint with the accent's text (owner: highlights
   are the tint, never a solid accent fill) */
.v2 .chx-c{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin:0 1px 0 3px;border-radius:calc(6px * var(--rk-s,var(--rk)));background:var(--hover);color:var(--fg2);font-size:11px;font-variant-numeric:tabular-nums;vertical-align:2px;transition:background .2s,color .2s}
.v2 .chx-c.on{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .chx-c.on{background:var(--bp-pick)}
@media (hover:hover) and (pointer:fine){.v2 .chx-c:hover{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}}
/* hidden as well as clear when put away, so Tab never lands on its link; it grows out of its citation's side */
/* (its motion, owner's trial of 26 Nov, is the core's .mx-pop: it grows out of its citation, the origin set on the citation's
   middle, from a short blur, and shrinks back into it quicker than it came. Moving on to another citation while it shows, it
   glides there and eases to its new height as the new source crossfades in) */
.v2 .chx-card{position:absolute;left:0;top:0;width:min(290px,calc(100% - 8px));padding:var(--s-4);pointer-events:none;z-index:4;box-shadow:var(--shadow-pop)}
.v2 .chx-card.show{pointer-events:auto}
.v2 .chx-sh{display:flex;align-items:center;gap:var(--s-2);font-size:12px;color:var(--muted)}
/* the source's mark is a vivid fill of its own with white letters (owner, 18 Nov), or an avatar colour with its own ink */
.v2 .chx-sh .fv{width:20px;height:20px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;font-size:9px;font-weight:500;color:#fff;flex:none}
.v2 .chx-t{font-size:13px;font-weight:500;margin:var(--s-2) 0 6px}
/* the passage, with a neutral rule down its left (lines are grey unless they mean something) and the part the answer relies
   on in the accent's tint */
.v2 .chx-q{font-size:12.5px;line-height:1.55;color:var(--fg2);padding-left:10px;box-shadow:inset 2px 0 0 var(--faint)}
.v2 .chx-q mark{background:var(--sel);color:var(--accent-fg,var(--accent));border-radius:var(--r-tiny,3px);padding:0 2px}
/* the source's foot sits under a hairline in Soft and Blueprint (owner, 21 Nov), 12px from it on each side */
.v2 .chx-f{display:flex;align-items:center;justify-content:space-between;margin-top:var(--s-3);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--muted)}
/* Studio: the source's foot is the card's off-white foot strip (owner, 21 Nov), its words 16px in */
:root[data-style="studio"] .v2 .chx-f{margin:var(--s-3) -16px -16px;padding:calc(var(--strip-y) + 5px) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card);line-height:18px}
.v2 .chx-f a{color:var(--accent-fg,var(--accent));display:inline-flex;align-items:center;gap:var(--s-1);text-decoration:none}
@media (hover:hover) and (pointer:fine){.v2 .chx-f a:hover{text-decoration:underline;text-underline-offset:2px}}
/* Studio (owner, 17 and 18 Nov): the card's content 16px from each edge; it scales and fades from its citation like Studio's
   menus, and the source's mark is Studio's neutral grey */
:root[data-style="studio"] .v2 .chx-sh .fv{background:var(--chip)!important;color:var(--fg2)!important;box-shadow:inset 0 0 0 1px var(--hair)}
/* ---------- Workspace rail ---------- */
/* a slim rail of icons that pins open into a sidebar with labels. Everything in it sits on one 32px column (owner, 18 Nov):
   the workspace's logo tile, each item's icon, the running agents' marks and the pin are centred in it, 12px in from the
   rail's edge, and every label starts 10px after it, where the workspace's name does; an item's hover and the marker that
   glides to the open item are the rail's width less 8px each side. A count sits beside its icon, never over it: a dot while
   the rail is narrow, the number at the row's end once it is open. The page beside it is 16px in from the card's edges */
.v2 .wrx{display:flex}
.v2 .wrx-rail{width:56px;flex:none;display:flex;flex-direction:column;gap:2px;padding:8px;border-right:1px solid color-mix(in srgb,var(--line) 50%,transparent);transition:width var(--t) var(--ease);overflow:hidden}
.v2 .wrx.wide .wrx-rail{width:188px}
.v2 .wrx-ws{display:flex;align-items:center;gap:10px;padding:4px var(--s-2) 10px 4px;white-space:nowrap}
.v2 .wrx-lg .logo{width:18px;height:18px}
.v2 .wrx-lg{width:32px;height:32px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--ink);color:var(--on-ink);display:grid;place-items:center;font-weight:500;flex:none}
.v2 .wrx-lb{flex:1;min-width:0;white-space:nowrap;opacity:0;transform:translateX(-6px);filter:blur(3px);transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),filter var(--t-fast);display:flex;flex-direction:column;font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.v2 .wrx-lb .muted{font-size:11.5px}
.v2 .wrx.wide .wrx-lb{opacity:1;transform:none;filter:none;transition-delay:.08s}
.v2 .wrx-nav{display:flex;flex-direction:column;gap:2px;position:relative}
.v2 .wrx-ind{position:absolute;left:0;right:0;height:36px;border-radius:calc(11px * var(--rk-l,var(--rk)));background:var(--chip);transition:top var(--t) var(--ease);top:0}
.v2 .wrx-i{position:relative;display:flex;align-items:center;gap:10px;height:36px;padding:0 var(--s-2) 0 4px;border-radius:calc(11px * var(--rk-l,var(--rk)));color:var(--fg2);white-space:nowrap;transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
/* the icon centred in the 32px column */
.v2 .wrx-i>.i{margin:0 9px}
@media (hover:hover) and (pointer:fine){.v2 .wrx-i:hover{color:var(--fg)}}
@media (hover:hover) and (pointer:fine){.v2 .wrx-i:not(.on):hover{background:var(--row)}}
.v2 .wrx-i.on{color:var(--fg)}
/* the count: a dot beside the icon while the rail is narrow, the number at the row's end once it is open */
.v2 .wrx-i .bd{position:absolute;top:50%;left:30px;min-width:6px;height:6px;padding:0;border-radius:var(--r-pill);background:var(--accent);color:var(--on-accent,#fff);font-size:0;font-weight:500;line-height:18px;text-align:center;transform:translateY(-50%);transition:left var(--t) var(--ease),min-width var(--t) var(--ease),height var(--t) var(--ease),padding var(--t) var(--ease),font-size var(--t) var(--ease)}
.v2 .wrx.wide .wrx-i .bd{left:calc(100% - 26px);min-width:18px;height:18px;padding:0 5px;font-size:10.5px}
.v2 :is(.wrx-i,.wrx-run) .wrx-lb{flex-direction:row;text-align:left}
.v2 .wrx-i:has(.bd) .wrx-lb{margin-right:var(--s-6)}
.v2 .wrx-sp{flex:1;min-height:var(--s-3)}
.v2 .wrx-runs{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
/* the section's label, the muted label type, on the column's left edge; while the rail is narrow a short hairline in the
   column takes its place, so pinning the rail open never changes its height */
.v2 .wrx-lbh{position:relative;flex:none;height:24px;padding:0 4px var(--s-2);font-size:11.5px;line-height:16px;color:transparent;white-space:nowrap;overflow:hidden;transition:color var(--t-fast) var(--ease)}
.v2 .wrx-lbh::before{content:"";position:absolute;left:12px;top:7.5px;width:16px;height:1px;background:var(--line);transition:opacity var(--t-fast) var(--ease)}
.v2 .wrx.wide .wrx-lbh{color:var(--muted);transition-delay:.08s}
.v2 .wrx.wide .wrx-lbh::before{opacity:0}
.v2 .wrx-run{display:flex;align-items:center;gap:10px;height:32px;padding:0 var(--s-2) 0 4px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:12.5px;color:var(--fg2);white-space:nowrap;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .wrx-run:hover{background:var(--row);color:var(--fg)}}
.v2 .wrx-run .think{color:var(--accent-mark,var(--accent));margin:0 9px}
.v2 .wrx-pin svg{transition:transform var(--t) var(--ease)}
.v2 .wrx.wide .wrx-pin svg{transform:scaleX(-1)}
.v2 .wrx-main{flex:1;min-width:0;padding:var(--s-4);display:flex;flex-direction:column;gap:14px}
.v2 .wrx-mh{font-size:14px;line-height:20px;font-weight:500}
.v2 .wrx-sk{display:flex;flex-direction:column;gap:9px}
.v2 .wrx-sk i{display:block;height:9px;border-radius:var(--r-tiny,5px);background:var(--chip)}
.v2 .wrx-sk i.b{height:120px;width:100%;border-radius:calc(14px * var(--rk-l,var(--rk)));margin-top:6px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .wrx :is(.wrx-i,.wrx-run):active{transform:none}
/* Studio (owner, 17 and 18 Nov): the rail an off-white strip with a hairline on its right, the open item a white knob with
   a hairline that glides to it, as a switcher's does, and a hover the quiet grey; the rows' corners follow the card's, 8px
   in (22px less 8); labels fade in without a blur; the page beside it is white, 16px in */
:root[data-style="studio"] .v2 .wrx-rail{background:var(--strip);border-right-color:var(--line);border-radius:var(--r-card) 0 0 var(--r-card)}
:root[data-style="studio"] .v2 .wrx-lg{border-radius:10px}
:root[data-style="studio"] .v2 .wrx-lb{filter:none}
:root[data-style="studio"] .v2 .wrx-ind{background:var(--knob);box-shadow:var(--knob-shadow);border-radius:calc(var(--r-card) - 8px);transition:top var(--t) var(--ease)}
:root[data-style="studio"] .v2 :is(.wrx-i,.wrx-run){border-radius:calc(var(--r-card) - 8px)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.wrx-i:not(.on):hover,.wrx-run:hover){background:var(--row)}}
:root[data-style="studio"] .v2 .wrx-sk i{background:var(--ghost)}
:root[data-style="studio"] .v2 .wrx-sk i.b{border-radius:calc(var(--r-card) - 6px)}
/* ---------- Command palette ---------- */
/* one quiet box: each command has a tile in its group's hue and a muted hint after its name; a grey highlight glides to the
   row the arrows are on, and a command that runs turns its tile into a spinner for a beat. Its content sits 16px in from every
   edge (owner, 18 Nov): the group names, the tiles and the footer's words on the left (the glass centred over the tiles, the
   words you type where the rows' words start), esc, the shortcuts and the footer's keys on the right; the rows' highlight reaches 8px out round them. The list is as tall as what it shows, up to six
   rows or so, and the box eases to its new height as a search narrows it (grow(), centred in its stage): no room is kept */
.v2 .cpl{display:flex;flex-direction:column;box-shadow:var(--shadow-pop)}
.v2 .cpl-in{display:flex;align-items:center;gap:10px;padding:var(--s-3) var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);color:var(--muted)}
/* the glass sits centred in the rows' 24px tile column and the words you type start where the rows' words do (the input's own
   padding is taken off, so the caret starts on that column) */
.v2 .cpl-in>svg:first-child{flex:none;margin-inline:calc((24px - 14px) / 2)}
.v2 .cpl-q{flex:1;min-width:0;padding-inline:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--fg);caret-color:var(--accent-fg,var(--fg))}
.v2 .cpl-q::placeholder{color:var(--muted)}
/* the line under the search box steps up while it has the focus; a row that takes the focus rings on its own */
.v2 .cpl-list{padding:var(--s-2);max-height:236px;overflow-y:auto;position:relative}
/* while there is more list below, its last row fades out at the edge instead of being cut off by the footer */
.v2 .cpl-list.more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent)}
.v2 .cpl-g{font-size:11.5px;color:var(--muted);padding:var(--s-2) var(--s-2) var(--s-1)}
.v2 .cpl-i{display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13.5px;text-align:left;color:var(--fg);position:relative;z-index:1}
.v2 .cpl-i .ic{width:24px;height:24px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;color:var(--tc,var(--fg2));background:var(--tb,var(--chip));transition:background .2s,color .2s,transform .2s var(--ease)}
.v2 .cpl-i.hl .ic{transform:scale(1.06)}
.v2 .cpl-i .ic .spin{width:11px;height:11px}
/* a label too long for a narrow palette ends in an ellipsis on its one line, so it never spills out of its row; the hint
   gives way first */
.v2 .cpl-i .t{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .cpl-i .cpl-h{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--muted)}
.v2 .cpl-i.hl .cpl-h{color:var(--fg2)}
.v2 .cpl-i .k{margin-left:auto;display:flex;gap:var(--s-1);flex:none}
.v2 .cpl-i mark{background:transparent;color:var(--accent-fg,var(--accent));font-weight:500}
/* the row that hands the text to the agent: an accent tile, the words in quotes, and Enter shown while it is highlighted */
.v2 .cpl-i.ask .ic{background:var(--accent);color:var(--on-accent,#fff)}
.v2 .cpl-i.ask .q{color:var(--fg2)}
.v2 .cpl-i .ent{margin-left:auto;opacity:0;transition:opacity .2s}
.v2 .cpl-i.hl .ent{opacity:1}
.v2 .cpl-hl{position:absolute;left:var(--s-2);right:var(--s-2);height:36px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--row);transition:top .25s var(--ease);z-index:0}
/* its motion (owner's trial, 26 Nov; the core's motion pieces): the highlight glides from row to row on a spring and deepens at
   once under a press; a search moves the rows (reflow()); the key hints dip as their keys are pressed */
.v2 .cpl-hl{transition:top var(--t-glide) var(--ease-spring),background-color var(--t-fast) var(--ease)}
.v2 .cpl-list:has(.cpl-i:active) .cpl-hl{background:var(--row-press);transition-duration:var(--t-glide),var(--t-press)}
.v2 .cpl .kbd{transition:background-color var(--t-fast) var(--ease),translate var(--t-fast) var(--ease)}
.v2 .cpl .kbd.kp{background:var(--press);translate:0 1px;transition-duration:var(--t-press)}
@media (prefers-reduced-motion:reduce){.v2 .cpl .kbd.kp{translate:none}}
/* the footer: what ran last on the left, the keys on the right (they keep their room; the words give way first) */
.v2 .cpl-f{display:flex;gap:14px;align-items:center;padding:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:11.5px}
.v2 .cpl-f>span{flex:none;white-space:nowrap}
/* (the foot's key chips are blocks of their own, as tall as every other key chip) */
.v2 .cpl-f .kbd{display:inline-block;margin-right:var(--s-1)}
.v2 .cpl-f>.cpl-st{flex:1 1 auto;min-width:0;color:var(--fg2);overflow:hidden;text-overflow:ellipsis}
/* (a footer that lists the keys first keeps what ran at its right end) */
.v2 .cpl-f>.cpl-st:last-child{flex:0 1 auto;margin-left:auto}
.v2 .cpl-st .dot{color:var(--ok-mark);margin-right:6px;vertical-align:1px}
.v2 .cpl-empty{padding:30px 10px;text-align:center;font-size:13px;color:var(--muted)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .cpl-i.hl .ic{transform:none}
/* Studio (owner, 18 Nov): the tiles are one neutral grey with a hairline (the groups' hues carry no meaning here), and the row that
   hands the text to the agent has the ink tile of Studio's primary; the letters a search matches read in the text colour, a step
   heavier. The rows' highlight is concentric with the card (14px, 8px in), nothing grows under the pointer, and the footer is an
   off-white foot strip, edge to edge, its words and keys 16px in */
:root[data-style="studio"] .v2 .cpl-i .ic{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .cpl-i.ask .ic{color:var(--on-btn);background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:none}
:root[data-style="studio"] .v2 .cpl-i.hl .ic{transform:none}
:root[data-style="studio"] .v2 .cpl-i.hl:not(.ask) .ic{background:var(--surface)}
:root[data-style="studio"] .v2 .cpl-i mark{color:var(--fg)}
:root[data-style="studio"] .v2 :is(.cpl-i,.cpl-hl){border-radius:calc(var(--r-card) - 8px)}
:root[data-style="studio"] .v2 .cpl-hl{transition:top var(--t) var(--ease)}
:root[data-style="studio"] .v2 .cpl-list.hg .cpl-hl{display:none}
/* the foot strip is as tall as a strip with a control (44px), so its words sit as far from the card's foot as its sides (16px);
   the list gives up those 10px, so Studio's palette is no taller than Soft's */
:root[data-style="studio"] .v2 .cpl-f{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--s-2) var(--s-4);background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .cpl-list{max-height:226px}
:root[data-style="studio"] .v2 .cpl-f .kbd{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .cpl .kbd.kp{background:var(--row-on)}
:root[data-style="studio"] .v2 .cpl-list.hg:has(.cpl-i:active){--hg-bg:var(--row-press)}
/* ---------- Agent settings ---------- */
/* its content sits 16px in from every edge (owner, 18 Nov): the labels on the left, the switches, the cap's + and Save on the
   right. The save bar is a true foot strip, edge to edge in every style (owner, 21 Nov: "any reason this stripe at the bottom
   is bigger than the padding inside the card?"): its words start and Save ends on the content's 16px column, where the labels
   and the switches are; in Soft and Blueprint it is the ink strip (Live preview's and Presets' a hairline strip on the
   surface), in Studio the off-white foot strip. Nothing in it grows or shrinks when pressed but Studio's ink primary */
.v2 .asx{padding:6px var(--s-4) var(--s-4);display:flex;flex-direction:column;position:relative;overflow:hidden;transition:padding-bottom .45s var(--ease)}
.v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) :is(.ib,.pill,.asx-ps-p,.asx-ps-c):active,:root[data-style="studio"] .v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) .ib:active{transform:none}
/* a button at work keeps its width with a spinner in the middle of it; saved, the bar's words say so with the green tick */
.v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) .pill.busy{color:transparent;position:relative}
.v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) .pill.busy>:not(.spin){visibility:hidden}
.v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) .pill.busy>.spin{position:absolute;left:50%;top:50%;margin:-6px 0 0 -6px;color:var(--on-accent,#fff)}
:root[data-style="studio"] .v2 :is(.asx,.asx-lp,.asx-tb,.asx-ps) .pill.busy>.spin{color:var(--on-btn)}
.v2 .asx-ok{color:var(--ok-mark);flex:none}
/* with nothing to save, the panel ends as it starts: the same room under the last field as over the first row (owner, 4 Nov) */
.v2 .asx:not(.dirty){padding-bottom:6px}
.v2 .asx-r{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding:11px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .asx-r:nth-last-child(2){border-bottom:0}
.v2 .asx-col{flex-direction:column;align-items:stretch;gap:9px}
.v2 .asx-l{display:flex;flex-direction:column;min-width:0;font-size:13px}
.v2 .asx-l b{font-weight:500}
.v2 .asx-l .muted{font-size:12px}
.v2 .asx-steps{position:relative;display:grid;grid-template-columns:repeat(3,1fr);padding:3px;border-radius:var(--r-pill);background:var(--chip)}
.v2 .asx-steps button{position:relative;z-index:1;height:30px;font-size:12.5px;color:var(--fg2);transition:color .25s}
.v2 .asx-steps button[aria-checked="true"]{color:var(--fg)}
.v2 .asx-knob{position:absolute;top:3px;bottom:3px;width:calc((100% - 6px)/3);border-radius:var(--r-pill);background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.08);transition:left .45s var(--ease)}
.v2 .asx-cap{display:flex;align-items:center;gap:6px}
.v2 .asx-cap .ib{width:26px;height:26px}
.v2 .asx-v{min-width:38px;text-align:center;font-size:13px}
.v2 .asx-ta{display:block;width:100%;resize:none;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:10px var(--s-3);font:inherit;font-size:13.5px;line-height:1.5;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .asx-ta{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .asx-ta:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .asx-bar{display:flex;align-items:center;gap:6px;padding:6px var(--s-4);border-radius:0 0 var(--r-card) var(--r-card);background:var(--ink);color:var(--on-ink);font-size:12.5px;margin:10px calc(-1 * var(--s-4)) 0;transform:translateY(30px);opacity:0;filter:blur(4px);pointer-events:none;transition:transform .45s var(--ease),opacity .3s,filter .3s,height .45s var(--ease),margin-bottom .45s var(--ease),padding .45s var(--ease);height:0;margin-bottom:-10px}
/* on an ink-filled bar the ring takes the bar's text colour, so it stands out against the fill in every theme */
.v2 .asx-bar>span{flex:1;min-width:0;display:flex;align-items:center;gap:6px;white-space:nowrap}
.v2 .asx-bar .pill.ghost{color:inherit;opacity:.8}@media (hover:hover) and (pointer:fine){.v2 .asx-bar .pill.ghost:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}
/* (owner, 22 Nov: "more padding") the bar stands 16px under the last field, as the card's content sits from its edges, and its
   Reset and Save sit 8px from its top and bottom, as in Studio's strip; its words and Save stay on the 16px column */
.v2 .asx.dirty .asx-bar{transform:none;opacity:1;filter:none;pointer-events:auto;height:44px;padding-block:8px;margin-top:var(--s-4);margin-bottom:calc(-1 * var(--s-4))}
/* hidden, the bar takes no room at all: its padding goes too, so the panel ends as evenly as it starts (owner, 4 Nov) */
.v2 .asx:not(.dirty) .asx-bar{padding-block:0}
/* Studio (owner, 18 Nov): Autonomy is a switcher (a white knob on a grey track with an inner shadow), the cap's buttons are flat
   secondary circles, and the save bar is the card's off-white foot strip, edge to edge: its words 16px in, Reset and Save 28px
   pills 16px from the card's edges and the strip's hairline (owner, 23 Nov; Save is the ink primary) */
:root[data-style="studio"] .v2 .asx.panel{padding:5px var(--s-4) 5px}
:root[data-style="studio"] .v2 .asx.panel.dirty{padding-bottom:0}
:root[data-style="studio"] .v2 .asx-steps{background:var(--chip);box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .asx-steps button{color:var(--muted);font-weight:500;transition:color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .asx-steps button[aria-checked="true"]{color:var(--fg)}
:root[data-style="studio"] .v2 .asx-knob{background:var(--knob);box-shadow:var(--knob-shadow);transition:left var(--t) var(--ease)}
:root[data-style="studio"] .v2 .asx-cap .ib.fill{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .asx-cap .ib.fill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .asx-cap .ib.fill:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .asx-bar{margin:10px calc(-1 * var(--s-4)) -10px;padding:0 var(--s-4);border-radius:0 0 var(--r-card) var(--r-card);background:var(--strip);color:var(--fg);border-top:0 solid var(--line);filter:none;transform:translateY(8px);transition:transform var(--t) var(--ease),opacity var(--t-fast) var(--ease),height var(--t) var(--ease),margin var(--t) var(--ease),padding var(--t) var(--ease)}
:root[data-style="studio"] .v2 .asx.dirty .asx-bar{height:calc(28px + 2 * var(--strip-y) + 1px);margin-top:10px;margin-bottom:0;padding-block:var(--strip-y);border-top-width:1px;transform:none}
/* the strip's secondary is flat: a hairline and a light fill (Studio's secondary everywhere) */
:root[data-style="studio"] .v2 :is(.asx-bar,.asx-lp-bar,.asx-tb-bar,.asx-ps-bar) .pill.ghost:not([disabled]){color:var(--fg);opacity:1;background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.asx-bar,.asx-lp-bar,.asx-tb-bar,.asx-ps-bar) .pill.ghost:not([disabled]):hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 :is(.asx-bar,.asx-lp-bar,.asx-tb-bar,.asx-ps-bar) .pill.ghost:not([disabled]):active{box-shadow:var(--btn2-press)}
/* ---------- Agent settings designs ---------- */
/* the design switch under it (the card's tabs on designme.dev): Default, the settings above, then Live preview, Tabs and
   Presets, each drawn in the same slot at the full width */
.v2 .dm.asx-dm>.dm-main{align-items:stretch}
/* what the agent may do, in the site's tag tones: allow green, ask amber, block grey. On a grey highlight a grey tile or cell
   lifts to white (one step lighter in dark mode) */
.v2 .asx-dm{--asx-al:var(--ok);--asx-al-bg:var(--ok-bg);--asx-as:var(--warn);--asx-as-bg:var(--warn-bg);--asx-bl:var(--fg2);--asx-bl-bg:var(--chip);--asx-lift:var(--surface)}
:root[data-theme="dark"] .v2 .asx-dm{--asx-lift:var(--hover)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .asx-dm{--asx-lift:var(--hover)}}
/* a tool's own mark on a white tile */
.v2 .asx-app{width:26px;height:26px;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);color:var(--fg)}
.v2 .asx-app .brand{width:14px;height:14px}
.v2 .asx-app .i{width:13px;height:13px;color:var(--fg2)}
/* Live preview: one autonomy slider, and under it what the agent would do alone or ask about on a real run, on white */
/* no room is kept for the save bar (owner, 17 Nov): it opens under the cap when something changes and the card grows with it */
.v2 .asx-lp{position:relative;padding:var(--s-4);display:flex;flex-direction:column;gap:14px}
.v2 .asx-lp-sec{display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .asx-lp-l{display:flex;align-items:baseline;justify-content:space-between;font-size:13px}
.v2 .asx-lp-l b{font-weight:500}
.v2 .asx-lp-lv,.v2 .asx-lp-cv{font-size:12.5px;color:var(--fg2)}
/* the slider: three stops, a fill to the stop you are on, a thumb that glides and snaps */
.v2 .asx-lp-sl{position:relative;height:28px;margin:0 10px;cursor:pointer;touch-action:none;outline:0}
.v2 .asx-lp-tr{position:absolute;left:0;right:0;top:12px;height:4px;border-radius:var(--r-tiny,2px);background:var(--line)}
.v2 .asx-lp-fill{position:absolute;left:0;top:0;bottom:0;width:100%;border-radius:inherit;background:var(--accent-mark);transform-origin:left;transform:scaleX(var(--v,.5));transition:transform .45s var(--ease)}
.v2 .asx-lp-stop{position:absolute;top:-3px;left:calc(var(--x) * 100%);width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--rail)}
.v2 .asx-lp-th{position:absolute;top:2px;left:0;width:24px;height:24px;margin-left:-12px;border-radius:50%;display:grid;place-items:center;background:var(--surface);box-shadow:var(--shadow-pop);transform:translateX(var(--tx,0px));transition:transform .45s var(--ease),box-shadow .2s}
.v2 .asx-lp-th i{width:8px;height:8px;border-radius:50%;background:var(--accent-mark)}
.v2 .asx-lp-sl.drag .asx-lp-th{transition:box-shadow .2s}
.v2 .asx-lp-sl.drag .asx-lp-fill{transition:none}
.v2 .asx-lp-sl:focus-visible .asx-lp-th{box-shadow:var(--shadow-pop),0 0 0 2px var(--surface),0 0 0 4px var(--focus)}
/* the stops' names: the first and last on the content's edges, their hover boxes reaching out round them */
.v2 .asx-lp-ticks{display:flex;justify-content:space-between;margin:-4px calc(-1 * var(--s-1)) 0}
.v2 .asx-lp-ticks button{padding:2px var(--s-1);border-radius:calc(6px * var(--rk-s,var(--rk)));font-size:12px;color:var(--muted);transition:color .2s}
.v2 .asx-lp-ticks button.on{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .asx-lp-ticks button:hover{color:var(--fg)}}
/* the run, a plain list under its line (a box is only for things you can click): each action's verdict is the site's tag, green
   when it acts alone, amber when it asks and grey when it may not */
.v2 .asx-lp-pv{display:flex;flex-direction:column;gap:6px}
.v2 .asx-lp-pl{font-size:12px;color:var(--muted)}
.v2 .asx-lp-pl b{font-weight:500;color:var(--fg2)}
.v2 .asx-lp-acts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.v2 .asx-lp-a{display:flex;align-items:center;gap:10px;min-height:32px;font-size:12.5px}
.v2 .asx-lp-a .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .asx-lp-a .asx-app{width:24px;height:24px;border-radius:calc(7px * var(--rk-m,var(--rk)))}
/* the cap's slider, drawn to match: a track that fills to the cap and a round thumb (square in Blueprint) */
.v2 .asx-lp-rg{-webkit-appearance:none;appearance:none;width:100%;height:22px;margin:0;background:none;cursor:pointer;border-radius:calc(6px * var(--rk-s,var(--rk)))}
.v2 .asx-lp-rg::-webkit-slider-runnable-track{height:4px;border-radius:var(--r-tiny,2px);background:linear-gradient(var(--accent-mark),var(--accent-mark)) 0 0/var(--f,50%) 100% no-repeat,var(--line)}
.v2 .asx-lp-rg::-moz-range-track{height:4px;border-radius:var(--r-tiny,2px);background:linear-gradient(var(--accent-mark),var(--accent-mark)) 0 0/var(--f,50%) 100% no-repeat,var(--line)}
.v2 .asx-lp-rg::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-7px;border:0;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-pop),inset 0 0 0 5px var(--accent-mark);transition:transform .2s var(--ease)}
.v2 .asx-lp-rg::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:var(--surface);box-shadow:var(--shadow-pop),inset 0 0 0 5px var(--accent-mark)}
.v2 .asx-lp-rg:active::-webkit-slider-thumb{transform:scale(1.12)}
.v2 .asx-lp-est{font-size:12px;color:var(--muted)}
.v2 .asx-lp-bar{display:flex;align-items:center;gap:6px;height:0;margin:-14px calc(-1 * var(--s-4)) 0;padding:0 var(--s-4);overflow:hidden;border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;transform:translateY(16px);opacity:0;pointer-events:none;transition:transform .5s var(--ease),opacity .3s,height .45s var(--ease),margin .45s var(--ease),padding .45s var(--ease)}
.v2 .asx-lp-bar>span{flex:1;min-width:0;display:flex;align-items:center;gap:6px;white-space:nowrap}
/* Soft and Blueprint: the foot under its hairline keeps 12px over its buttons and the card's 16px under them */
.v2 .asx-lp.dirty .asx-lp-bar{height:calc(28px + 2 * var(--s-4) + 1px);margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding-block:calc(var(--s-4) + 1px) var(--s-4);transform:none;opacity:1;pointer-events:auto}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-fill,:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-th{transition:transform .3s steps(3,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-th i{width:10px;height:10px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-bar{transition:transform .3s steps(3,end),opacity .2s,height .3s steps(3,end),margin .3s steps(3,end),padding .3s steps(3,end)}
/* Studio: the slider is chrome, so it is ink: an ink fill, white stops, a white knob with a hairline and an ink dot; the save bar
   is the card's foot strip, as in Default */
:root[data-style="studio"] .v2 .asx-lp-fill{background:var(--fg)}
:root[data-style="studio"] .v2 .asx-lp-th{box-shadow:var(--knob-shadow)}
:root[data-style="studio"] .v2 .asx-lp-th i{background:var(--fg)}
:root[data-style="studio"] .v2 .asx-lp-rg::-webkit-slider-runnable-track{background:linear-gradient(var(--fg),var(--fg)) 0 0/var(--f,50%) 100% no-repeat,var(--line)}
:root[data-style="studio"] .v2 .asx-lp-rg::-moz-range-track{background:linear-gradient(var(--fg),var(--fg)) 0 0/var(--f,50%) 100% no-repeat,var(--line)}
:root[data-style="studio"] .v2 .asx-lp-rg::-webkit-slider-thumb{box-shadow:var(--knob-shadow),inset 0 0 0 5px var(--fg)}
:root[data-style="studio"] .v2 .asx-lp-rg::-moz-range-thumb{box-shadow:var(--knob-shadow),inset 0 0 0 5px var(--fg)}
:root[data-style="studio"] .v2 .asx-lp-bar{margin:-14px calc(-1 * var(--s-4)) 0;padding:0 var(--s-4);border-radius:0 0 var(--r-card) var(--r-card);background:var(--strip);box-shadow:none;border-top:0 solid var(--line);transform:translateY(8px);transition:transform var(--t) var(--ease),opacity var(--t-fast) var(--ease),height var(--t) var(--ease),margin var(--t) var(--ease),padding var(--t) var(--ease)}
:root[data-style="studio"] .v2 .asx-lp.dirty .asx-lp-bar{height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding-block:var(--strip-y);border-top-width:1px;transform:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-rg::-webkit-slider-runnable-track{border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-rg::-moz-range-track{border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-rg::-webkit-slider-thumb{border-radius:0;box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent),inset 0 0 0 5px var(--accent-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-lp-rg::-moz-range-thumb{border-radius:0;box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent),inset 0 0 0 5px var(--accent-mark)}
/* Tabs: the settings in three tabs. A setting you change gets an accent dot, and so does its tab; the save bar under them
   lists every change with its own undo, and saves them all (Save, or ⌘S / Ctrl+S) */
/* its content 16px in from every edge (owner, 18 Nov): the tabs, the settings, the changes and the bar. No height is kept for the
   tallest tab: the card eases to each tab's height (grow()) */
.v2 .asx-tb{padding:var(--s-4) var(--s-4) var(--s-4);display:flex;flex-direction:column}
.v2 .asx-tb-tabs{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 6px;padding:3px;border-radius:var(--r-pill);background:var(--chip)}
.v2 .asx-tb-kn{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / 3);border-radius:var(--r-pill);background:var(--surface);box-shadow:var(--shadow);transform:translateX(calc(var(--i,0) * 100%));transition:transform var(--t) var(--ease)}
.v2 .asx-tb-t{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:30px;border-radius:var(--r-pill);font-size:13px;color:var(--fg2);transition:color var(--t-fast)}
.v2 .asx-tb-t[aria-selected="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .asx-tb-t:hover{color:var(--fg)}}
.v2 .asx-tb-t:focus-visible{outline-offset:-2px;border-radius:var(--r-pill)}
.v2 .asx-tb-t>span{position:relative}
.v2 .asx-tb-t .asx-tb-dot{position:absolute;left:100%;top:50%;margin:-3px 0 0 6px}
/* a change not yet saved: an accent dot that grows in by its setting and its tab, and goes once it is saved or undone */
.v2 .asx-tb-dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex:none;background:var(--accent-mark);transform:scale(0);transition:transform .3s var(--ease)}
.v2 .asx-tb-dot.on{transform:none}
.v2 .asx-tb-pane{display:flex;flex-direction:column}
.v2 .asx-tb-pane.go{animation:v2-asxtbin .35s var(--ease)}
@keyframes v2-asxtbin{from{opacity:0;transform:translateX(var(--from,8px))}}
.v2 .asx-tb-r{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:57px;padding:var(--s-2) 0;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .asx-tb-r:last-child{border-bottom:0}
.v2 .asx-tb-r.col{flex-direction:column;align-items:stretch;gap:var(--s-2)}
.v2 .asx-tb-lb{display:flex;align-items:center;gap:10px;min-width:0}
.v2 .asx-tb-lt{display:flex;flex-direction:column;min-width:0;font-size:13px}
.v2 .asx-tb-lt b{display:flex;align-items:center;gap:6px;font-weight:500}
.v2 .asx-tb-lt .d{font-size:12px;color:var(--muted)}
/* its fields are the site's: white, the dimmed field edge, a step stronger with the focus (a dropdown, only the keyboard's) */
.v2 .asx-tb-dd,.v2 .asx-tb-num,.v2 .asx-tb-ta{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--fg);transition:box-shadow var(--t-fast)}
.v2 .asx-tb-dd{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);flex:none;width:148px;height:var(--field-h);padding:0 10px 0 var(--s-3);border-radius:var(--r-field);font-size:13px;text-align:left}
.v2 .asx-tb-dd>svg{flex:none;color:var(--muted);transition:transform .32s var(--ease)}
.v2 .asx-tb-dd[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .asx-tb-dd:focus-visible{outline:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .asx-tb-num{display:flex;align-items:center;gap:2px;flex:none;width:96px;height:var(--field-h);padding:0 var(--s-3);border-radius:var(--r-field);font-size:13px;cursor:text}
.v2 .asx-tb-num span{color:var(--muted)}
.v2 .asx-tb-num input{flex:1;width:100%;min-width:0;padding:0;border:0;outline:0;background:none;font:inherit;color:inherit;font-variant-numeric:tabular-nums}
.v2 .asx-tb-num:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .asx-tb-ta{display:block;width:100%;resize:none;border:0;outline:0;border-radius:var(--r-box);padding:9px var(--s-3);font:inherit;font-size:13px;line-height:1.5}
.v2 .asx-tb-ta:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .asx-tb-dd,.v2 .asx-tb-num{corner-shape:squircle;border-radius:var(--r-field-sq)}.v2 .asx-tb-ta{corner-shape:squircle;border-radius:var(--r-box-sq)}}
.v2 .asx-tb .pop{min-width:224px}
/* grow() must never clip its menus */
.v2 .asx-tb.growing:has(.pop.open){overflow:visible}
/* the save bar: quiet until something changes, then the list of changes over it, each with its undo */
.v2 .asx-tb-ft{margin:var(--s-1) 0 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* (open, the list's first words sit 16px under the foot's hairline, as the bar's buttons do when it is shut) */
.v2 .asx-tb-cl{list-style:none;margin:0 calc(-1 * var(--s-2));padding:10px 0 0;display:flex;flex-direction:column;gap:2px;max-height:150px;overflow-y:auto;scrollbar-width:thin}
:root[data-style="studio"] .v2 .asx-tb-cl{padding-top:6px}
.v2 .asx-tb-c{display:flex;align-items:center;gap:var(--s-2);min-height:32px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:12.5px;animation:v2-asxtbc .35s var(--ease) backwards}
/* a change fades in where it lands (a rise would push the list past its height for a moment and flash its scrollbar) */
@keyframes v2-asxtbc{from{opacity:0}}
@media (hover:hover) and (pointer:fine){.v2 .asx-tb-c:hover{background:var(--row)}}
.v2 .asx-tb-c .n{flex:none;font-weight:500}
.v2 .asx-tb-c .v{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-1);color:var(--muted);white-space:nowrap}
.v2 .asx-tb-c .v span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .asx-tb-c .v span:last-child{color:var(--fg2)}
.v2 .asx-tb-c .v .i{flex:none}
/* undo's glyph ends on the content's edge, under the switches; its hover circle reaches out round it */
.v2 .asx-tb-c .ib{flex:none;width:26px;height:26px;margin-right:-7px}
@media (hover:hover) and (pointer:fine){.v2 .asx-tb-c .ib:hover{background:var(--asx-lift)}}
.v2 .asx-tb-bar{display:flex;align-items:center;gap:6px;padding:var(--s-4) 0 0}
.v2 .asx-tb-st{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.v2 .asx-tb.dirty .asx-tb-st{color:var(--fg)}
.v2 .asx-tb-st .i{color:var(--ok-mark)}
/* with nothing to save, Save's shortcut goes quiet with it, as every disabled button's key chip does (in the shared rules) */
/* on a phone the shortcut has no keyboard to go with, so Save drops its hint and the bar keeps to one line */
@container (max-width:400px){.v2 .asx-tb-sv .kbd{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-tb-tabs{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-tb-kn{background:var(--chip);box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);transition:transform .3s steps(3,end)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-tb-pane.go{animation:v2-bpin .3s var(--ease) backwards}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .asx-tb-c{animation:v2-asxtbc .3s steps(3,end) backwards}
/* Studio: the tabs are a switcher (a white knob on a grey track with an inner shadow); a textarea has a field's 10px corners; the
   menus are 22px cards with concentric rows; the bar is the card's off-white foot strip, its buttons 16px from the card's edges (owner, 23 Nov),
   with the list of changes above it on white; Save's key sits on a well of the ink */
:root[data-style="studio"] .v2 .asx-tb{padding-bottom:0}
:root[data-style="studio"] .v2 .asx-tb-tabs{background:var(--chip);box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .asx-tb-kn{background:var(--knob);box-shadow:var(--knob-shadow)}
:root[data-style="studio"] .v2 .asx-tb-t{color:var(--muted);font-weight:500}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.asx-tb-t:hover,.asx-tb-t[aria-selected="true"]){color:var(--fg)}}
:root[data-style="studio"] .v2 .asx-tb-ta{border-radius:var(--r-field)}
:root[data-style="studio"] .v2 .asx-tb .pop{padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .asx-tb .pop .mi{border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .asx-tb-c{border-radius:calc(var(--r-card) - 8px)}
:root[data-style="studio"] .v2 .asx-tb-ft{margin:var(--s-1) calc(-1 * var(--s-4)) 0;border-top:0}
:root[data-style="studio"] .v2 .asx-tb-cf{padding:0 var(--s-4)}
:root[data-style="studio"] .v2 .asx-tb-cl{padding-bottom:8px}
:root[data-style="studio"] .v2 .asx-tb-bar{padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .asx-tb-sv:not([disabled]) .kbd{background:color-mix(in srgb,var(--on-btn) 18%,transparent);color:inherit}
/* Presets: Careful, Balanced and Bold, each with its colour on its tile (teal, the accent and violet, so the grid's green and
   amber keep meaning allow and ask) and a meter in the accent, then a grid of allow, ask and block for each tool */
.v2 .asx-ps{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .asx-ps-pre{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.v2 .asx-ps-p{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px;border-radius:var(--r-in);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent);text-align:left;transition:background .25s,box-shadow .25s,transform .2s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .asx-ps-p:hover{background:var(--row)}}
.v2 .asx-ps-p[aria-checked="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
.v2 .asx-ps-p:focus-visible{outline-offset:2px;border-radius:var(--r-in)}
.v2 .asx-ps-p[data-p="care"]{--asx-pc:var(--pt);--asx-pc-bg:var(--pt-bg)}
.v2 .asx-ps-p[data-p="bal"]{--asx-pc:var(--accent-fg);--asx-pc-bg:var(--accent-bg)}
.v2 .asx-ps-p[data-p="bold"]{--asx-pc:var(--pl);--asx-pc-bg:var(--pl-bg)}
.v2 .asx-ps-pi{width:28px;height:28px;border-radius:calc(9px * var(--rk-m,var(--rk)));display:grid;place-items:center;background:var(--asx-pc-bg);color:var(--asx-pc)}
.v2 .asx-ps-pi .i{width:14px;height:14px}
.v2 .asx-ps-p b{font-size:13px;font-weight:500}
.v2 .asx-ps-p .d{font-size:11.5px;line-height:1.35;color:var(--muted)}
.v2 .asx-ps-p[aria-checked="true"] .d{color:var(--fg2)}
@media (hover:hover) and (pointer:fine){.v2 .asx-ps-p:hover .d{color:var(--fg2)}}
/* how far the preset trusts the agent, as a short meter */
.v2 .asx-ps-m{display:flex;gap:2px;margin-top:auto}
.v2 .asx-ps-m i{width:10px;height:4px;border-radius:var(--r-tiny,2px);background:var(--line)}
.v2 .asx-ps-m i.on{background:var(--accent-mark)}
.v2 .asx-ps-mx{display:flex;flex-direction:column;gap:var(--s-1)}
/* the grid on the card's columns: each tool's tile and name on the content's left edge, its last cell ending on the right edge,
   the column names centred over the cells; a row's hover fill reaches 8px out round it */
.v2 .asx-ps-mh,.v2 .asx-ps-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,58px);align-items:center;gap:6px}
.v2 .asx-ps-mh{font-size:11.5px;color:var(--muted)}
.v2 .asx-ps-mh span{text-align:center}
.v2 .asx-ps-mh span:first-child{text-align:left}
.v2 .asx-ps-grid{display:flex;flex-direction:column;gap:2px;margin:0 calc(-1 * var(--s-2))}
.v2 .asx-ps-row{min-height:40px;padding:3px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));transition:background .2s}
@media (hover:hover) and (pointer:fine){.v2 .asx-ps-row:hover{background:var(--row)}}
.v2 .asx-ps-tl{display:flex;align-items:center;gap:var(--s-2);min-width:0;font-size:12.5px}
.v2 .asx-ps-tl span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a cell: press it to move it on, allow then ask then block */
.v2 .asx-ps-c{justify-self:center;display:inline-flex;align-items:center;justify-content:center;gap:var(--s-1);width:58px;height:28px;border-radius:var(--r-tag);font-size:11.5px;font-weight:500;background:var(--asx-bl-bg);color:var(--asx-bl);transition:background .25s,color .25s,transform .2s var(--ease)}
.v2 .asx-ps-c .i{width:11px;height:11px}
.v2 .asx-ps-c.al{background:var(--asx-al-bg);color:var(--asx-al)}
.v2 .asx-ps-c.as{background:var(--asx-as-bg);color:var(--asx-as)}
.v2 .asx-ps-c:focus-visible{outline-offset:1px;border-radius:var(--r-tag)}
@media (hover:hover) and (pointer:fine){.v2 .asx-ps-row:hover .asx-ps-c.bl{background:var(--asx-lift)}}
@supports (corner-shape:squircle){.v2 .asx-ps-c{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
/* the key is only there when the cells drop their words (a narrow card): it shows each cell's own mark in its own colours,
   so it matches what it explains (owner, 18 Nov); with the words in the cells it would only repeat them */
.v2 .asx-ps-key{display:none;gap:var(--s-3);justify-content:flex-end;padding:2px 0 0;font-size:11.5px;color:var(--muted)}
.v2 .asx-ps-key span{display:inline-flex;align-items:center;gap:5px}
.v2 .asx-ps-key i{width:18px;height:18px;display:grid;place-items:center;border-radius:var(--r-tag);background:var(--asx-bl-bg);color:var(--asx-bl)}
.v2 .asx-ps-key i .i{width:11px;height:11px}
.v2 .asx-ps-key .al i{background:var(--asx-al-bg);color:var(--asx-al)}
.v2 .asx-ps-key .as i{background:var(--asx-as-bg);color:var(--asx-as)}
/* (as Autopilot's foot: 12px over its buttons under the hairline, the card's 16px under them) */
.v2 .asx-ps-bar{display:flex;align-items:center;gap:6px;margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:calc(var(--s-4) + 1px) var(--s-4) var(--s-4);border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;color:var(--fg2);transition:box-shadow .3s}
/* on a narrow card the words end in an ellipsis rather than taking a second line in the bar */
.v2 .asx-ps-bt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .asx-ps-bt .i{color:var(--ok-mark);margin-right:6px}
.v2 .asx-ps.dirty .asx-ps-bar{color:var(--fg)}
@container (max-width:360px){.v2 .asx-ps-mh,.v2 .asx-ps-row{grid-template-columns:minmax(0,1fr) repeat(3,44px)}.v2 .asx-ps-c{width:44px}.v2 .asx-ps-c .lb{display:none}.v2 .asx-ps-key{display:flex}.v2 .asx-ps-pre{grid-template-columns:minmax(0,1fr)}.v2 .asx-ps-p{flex-direction:row;align-items:center}.v2 .asx-ps-p .d{display:none}.v2 .asx-ps-m{margin:0 0 0 auto}}
/* Studio (owner, 18 Nov): the presets' tiles are the neutral grey tile with a hairline and their meters ink (chrome, no meaning in
   their hues); the cells keep allow, ask and block in green, amber and grey; the bar is the card's foot strip */
:root[data-style="studio"] .v2 .asx-ps-pi{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .asx-ps-m i.on{background:var(--fg)}
:root[data-style="studio"] .v2 :is(.asx-ps-p,.asx-ps-row){transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .asx-ps-row{border-radius:calc(var(--r-card) - 8px)}
:root[data-style="studio"] .v2 .asx-ps{padding-bottom:0}
:root[data-style="studio"] .v2 .asx-ps-bar,:root[data-style="studio"] .v2 .asx-ps.dirty .asx-ps-bar{margin:0 calc(-1 * var(--s-4));padding:var(--strip-y) var(--s-4);border-radius:0 0 var(--r-card) var(--r-card);background:var(--strip);box-shadow:none;border-top:1px solid var(--line)}
/* ---------- File explorer ---------- */
/* the project's files as a tree, with the ones the agent changed lettered M, A or D in their status colour and a dot on
   every folder that holds one. Its content is 16px from every edge, on shared columns (owner, 18 Nov): the top level's
   chevrons sit centred under the filter's search glyph, each level steps in 14px, and the Only changed button's glyph is
   centred over the letters' column; a row's hover and selection fill is the content's width, no wider. The card grows and
   shrinks with the folders it has open, smoothly (grow()), up to about eleven rows, then the tree scrolls with a thin
   scrollbar and its last row fades while there is more below. A filter that matches nothing shows the empty state */
.v2 .fxp{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-2)}
/* the filter sits over a hairline and the path under one, in Soft and Blueprint (owner, 21 Nov: "soft and blueprint need
   divider lines"), each 8px from it, as the rows are spaced; Studio sets the path on its foot strip */
.v2 .fxp-h{display:flex;gap:var(--s-1);align-items:center;padding-bottom:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .fxp-s{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-2);height:32px;padding:0 10px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .fxp-s{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .fxp-s input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--fg)}
.v2 .fxp-s:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .fxp-s input::placeholder{color:var(--muted)}
/* Only changed: its box ends on the content's right edge, which puts its glyph over the letters' column */
.v2 .fxp-ch{flex:none;width:28px;height:28px}
.v2 .fxp-ch[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .fxp .fxp-tree{max-height:330px;overflow:auto;overscroll-behavior:contain}
.v2 .fxp-tree.more{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 28px),transparent)}
/* a thin scrollbar in the style's hairline grey, not the browser's thick one */
.v2 .fxp-tree{scrollbar-width:thin;scrollbar-color:var(--rail) transparent}
.v2 .fxp-tree::-webkit-scrollbar{width:8px;height:8px}
.v2 .fxp-tree::-webkit-scrollbar-track{background:transparent}
.v2 .fxp-tree::-webkit-scrollbar-thumb{background:var(--rail);border:2px solid transparent;background-clip:padding-box;border-radius:var(--r-pill)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fxp-tree::-webkit-scrollbar-thumb{border-radius:0}
.v2 .fxp-n{display:flex;align-items:center;gap:6px;width:100%;height:30px;padding-right:var(--s-2);border-radius:var(--r-sm);font-size:13px;text-align:left;color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .fxp-n:hover{background:var(--row);color:var(--fg)}}
/* rows fill the scrolling tree, which would cut an outside ring: theirs is drawn inside */
.v2 .fxp-n:focus-visible{outline-offset:-2px}
/* the open file: the accent tint (Blueprint's lime takes its darker mark so the tint shows on white) */
.v2 .fxp-n.sel{background:var(--accent-bg);color:var(--fg)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fxp-n.sel{background:var(--bp-pick)}
.v2 .fxp-n .cv{width:14px;flex:none;display:grid;place-items:center;color:var(--muted);transition:transform var(--t) var(--ease)}
.v2 .fxp-n.open .cv{transform:rotate(90deg)}
.v2 .fxp-n .ic{color:var(--muted);display:grid;flex:none}
.v2 .fxp-n .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the agent's change, as a letter in its status colour (4.5:1 on the row, its hover and its selection) */
/* the letters and the folders' dots end on one right edge, 8px inside the row's fill (owner, 21 Nov) */
.v2 .fxp-n .bd{flex:none;width:14px;font-size:11px;font-weight:500;line-height:1;text-align:right}
.v2 .fxp-n .bd.M{color:var(--warn)}.v2 .fxp-n .bd.A{color:var(--ok)}.v2 .fxp-n .bd.D{color:var(--bad)}
.v2 .fxp-n.D .nm{text-decoration:line-through;color:var(--muted)}
/* a folder that holds a change: a dot, in the letters' column */
.v2 .fxp-n .ag{flex:none;width:14px;display:grid;place-items:center end}
.v2 .fxp-n .ag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent-mark,var(--accent))}
.v2 .fxp-k{display:grid;grid-template-rows:1fr;transition:grid-template-rows var(--t) var(--ease)}
.v2 .fxp-k.shut{grid-template-rows:0fr}
.v2 .fxp-k>div{overflow:hidden;min-height:0}
.v2 .fxp-f{padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .fxp-st{display:block;overflow:hidden;text-overflow:ellipsis}
/* no file matches the filter: the empty state (the lab's): a small sketch of a file list on a white card, a
   title, one muted line and Clear filter as an outline button */
.v2 .fxp-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 16px 12px;text-align:center}
.v2 .fxp-em[hidden]{display:none}
.v2 .fxp-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .fxp-em>span:not(.fxp-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.v2 .fxp-em .pill{margin-top:12px}
.v2 .fxp-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 16px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .fxp-em-art::before{content:"";position:absolute;left:14px;top:14px;width:10px;height:10px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--wash))}
.v2 .fxp-em-art::after{content:"";position:absolute;left:32px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--wash))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fxp-em-art{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.fxp-em-art::before,.fxp-em-art::after){border-radius:0}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .fxp :is(.ib,.pill):active,:root[data-style="studio"] .v2 .fxp .ib:active{transform:none}
/* Studio (owner, 17 and 18 Nov): its content 16px in from each edge; rows and the field with 10px corners; the path under
   the tree on an off-white foot strip with a hairline over it, 16px under the last row */
:root[data-style="studio"] .v2 .fxp.panel{padding:var(--s-4) var(--s-4) 0}
:root[data-style="studio"] .v2 .fxp-h{padding-bottom:0;border-bottom:0}
:root[data-style="studio"] .v2 .fxp-n{border-radius:10px}
:root[data-style="studio"] .v2 .fxp-n.sel{background:var(--row-on)}
:root[data-style="studio"] .v2 .fxp-f{margin:var(--s-2) calc(-1 * var(--s-4)) 0;padding:calc(var(--strip-y) + 5px) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .fxp-ch{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .fxp-ch[aria-pressed="true"]{background:var(--row-on);color:var(--fg);box-shadow:none}
/* ---------- Automation canvas ---------- */
/* the canvas is the whole component, edge to edge, in the stage's colour: the automation's name sits over its top left,
   Test run and what the run shows over its bottom left, and the zoom in its bottom right. It fills the height it is given,
   and is 560px tall (640px below 560px wide, where the steps stack) when nothing gives it one */
.v2 .acx{position:relative;width:100%;height:100%;container:acx/inline-size;border-radius:var(--r-in)}
.v2 .acx-top{position:absolute;left:var(--s-4);top:var(--s-4);z-index:3;display:flex;align-items:center;gap:var(--s-2);max-width:calc(100% - 2 * var(--s-4));font-size:13px;pointer-events:none}
.v2 .acx-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .acx-on{flex:none}
/* Test run and the run's status: a quiet group over the bottom left, level with the zoom; the text lets a drag through */
.v2 .acx-bar{position:absolute;left:var(--s-3);bottom:var(--s-3);z-index:4;display:flex;align-items:center;gap:var(--s-3);min-height:36px;pointer-events:none}
.v2 .acx-run{pointer-events:auto}
.v2 .acx-st{font-size:12.5px;white-space:nowrap}
/* on a narrow canvas the status sits over Test run, so the zoom keeps its room beside them */
@container acx (max-width:419px){.v2 .acx-bar{flex-direction:column-reverse;align-items:flex-start;gap:var(--s-1)}}
/* the canvas reads as a workflow editor: a dot every 16px, all the way to its edges */
.v2 .acx-cv{position:relative;height:560px;min-height:100%;border-radius:inherit;outline:0;background-color:var(--stage);background-image:radial-gradient(circle at center,color-mix(in srgb,var(--fg) 14%,transparent) 1.1px,transparent 1.6px);background-size:16px 16px;background-position:center}
@container acx (max-width:559px){.v2 .acx-cv{height:640px}}
/* a phone: two steps fit side by side, and a step's detail wraps rather than being cut */
@container acx (max-width:559px){.v2 .acx-n.acx-n{width:min(176px,calc(50% - 14px))}.v2 .acx-n.acx-n .t span{white-space:normal;text-wrap:pretty}}
/* in a stage the canvas takes all of it, so the stage's own room goes */
.v2.stage-in.wide:has(>.acx){max-width:none;align-self:stretch}
/* the view: the steps and wires sit on a world that pans and zooms inside the canvas, and the dots move with it. Drag the
   empty canvas (one finger on a touch screen) or scroll to move around; Ctrl or ⌘ with the wheel, or a pinch, zooms at the
   pointer. The popover and the picker sit over it, inside the canvas */
.v2 .acx-vp{position:absolute;inset:0;overflow:hidden;overflow:clip;border-radius:inherit;cursor:grab;user-select:none;-webkit-user-select:none}
/* touch is the page's until the canvas is engaged (a tap in it): then one finger pans and two pinch the canvas */
.v2 .acx-cv.engaged :is(.acx-vp,.acx-n){touch-action:none}
.v2 .acx-cv.pan .acx-vp{cursor:grabbing}
.v2 .acx-world{position:absolute;inset:0;transform-origin:0 0}
.v2 .acx-cv.anim{transition:background-position var(--t) var(--ease),background-size var(--t) var(--ease)}
.v2 .acx-cv.anim .acx-world{transition:transform var(--t) var(--ease)}
/* the canvas shows its focus only to the keyboard, in the quiet grey: a click gives it the focus without a ring */
.v2 .acx-cv:focus-visible:not(.ptr){outline:2px solid color-mix(in srgb,var(--field-line) 50%,transparent);outline-offset:-2px}
/* Shift and a drag on the empty canvas draws a box: every step it touches joins the selection */
.v2 .acx-mq{position:absolute;left:0;top:0;border-radius:var(--r-xs);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent);background:color-mix(in srgb,var(--fg) 4%,transparent);pointer-events:none}
/* zoom out, the zoom level (which resets to 100%), zoom in and fit, quiet in the corner */
.v2 .acx-zm{position:absolute;right:var(--s-3);bottom:var(--s-3);z-index:4;display:flex;align-items:center;padding:var(--s-1);border-radius:var(--r-pill);background:var(--surface);box-shadow:var(--shadow)}
.v2 .acx-zb{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:var(--r-pill);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
.v2 .acx-zl{min-width:44px;height:28px;padding:0 var(--s-1);flex:none;border-radius:var(--r-pill);font-size:12px;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .acx-zb:hover,.v2 .acx-zl:hover{background:var(--row);color:var(--fg)}}
.v2 .acx-zb[aria-disabled="true"]{color:var(--dis);background:none;cursor:not-allowed}
@media (hover:hover) and (pointer:fine){.v2 .acx-zb[aria-disabled="true"]:hover{color:var(--dis);background:none;cursor:not-allowed}}
.v2 .acx-zs{width:1px;height:14px;margin:0 var(--s-1);flex:none;background:var(--line)}
.v2 .acx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .acx-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.v2 .acx-svg path{fill:none;stroke:var(--faint);stroke-width:1.5;transition:stroke .6s var(--ease)}
/* on arrival the wires draw in after the steps have landed */
.v2 .acx-svg.intro path{stroke-dasharray:var(--l);animation:v2-acxdraw .8s var(--ease) .42s backwards}
@keyframes v2-acxdraw{from{stroke-dashoffset:var(--l)}}
/* a test run passes along each wire as one soft light, and the wire stays lightly lit once it has passed */
.v2 .acx-svg path.done{stroke:color-mix(in srgb,var(--accent-mark,var(--accent)) 32%,var(--faint))}
.v2 .acx-svg path.pulse{stroke:var(--accent-mark,var(--accent));stroke-width:2.5;stroke-linecap:round;transition:none}
/* the steps fade in without moving, so the wires meet them exactly while they arrive */
.v2 .acx-in{animation:v2-acxin .56s var(--ease) backwards}
@keyframes v2-acxin{from{opacity:0;filter:blur(4px)}}
/* a step's badge pops in once; after that its spinner turns into a check with a short crossfade */
.v2 .acx-n .s{animation:v2-acxs .34s cubic-bezier(.34,1.4,.64,1)}
@keyframes v2-acxs{from{opacity:0;transform:scale(.6)}}
.v2 .acx-sv{display:grid;animation:v2-acxsv .3s var(--ease)}
@keyframes v2-acxsv{from{opacity:0;filter:blur(2px)}}
.v2 .acx-n{position:absolute;width:176px;padding:10px var(--s-3);border-radius:calc(14px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;font-size:12.5px;text-align:left;transition:box-shadow .3s,left .5s var(--ease),top .5s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .acx-n:hover{box-shadow:var(--shadow-pop)}}
.v2 .acx-n{cursor:pointer;user-select:none}
.v2 .acx-n.drag{cursor:grabbing;transition:box-shadow .3s;box-shadow:var(--shadow-pop);z-index:3;transform:scale(1.02)}
/* a selected step: its white card with a light grey edge */
.v2 .acx-n.sel{box-shadow:0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent),var(--shadow-pop)}
.v2 .acx-n .ic{width:28px;height:28px;border-radius:calc(9px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none}
.v2 .acx-n .t{display:flex;flex-direction:column;min-width:0}
.v2 .acx-n .t b{font-weight:500;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .acx-n .t span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .acx-n .s{position:absolute;right:-6px;top:-6px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
/* the running step: a thin accent line round it, with no halo */
.v2 .acx-n.run{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--accent-mark,var(--accent)) 55%,transparent),var(--shadow)}
.v2 .acx-pop{width:240px;padding:var(--s-3)}
.v2 .acx-pop h4{margin:0 0 10px;font-size:13px;font-weight:500}
.v2 .acx-fl{display:flex;flex-direction:column;gap:var(--s-1);margin-bottom:10px;font-size:12px;color:var(--muted)}
.v2 .acx-dd{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--fg);font-size:13px;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .acx-dd{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* a field: a quiet grey edge, one step stronger while it has the keyboard's focus; opening its list changes nothing */
.v2 .acx-dd:focus-visible{outline:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .acx-dd .i{color:var(--muted)}
.v2 .acx-opts{display:none;flex-direction:column;padding:var(--s-1);border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--surface);box-shadow:var(--shadow-pop);margin-top:var(--s-1)}
.v2 .acx-opts.open{display:flex}
.v2 .acx-opts .mi{font-size:12.5px;padding:6px var(--s-2)}
/* adding steps: a step whose output leads nowhere yet has a small + on it (on its right, or under it when the canvas stacks),
   and the agent step has labelled connectors under it for a model and its tools. Each opens the step picker beside it */
.v2 .acx-h,.v2 .acx-sc{position:absolute;left:0;top:0;z-index:2;display:grid;place-items:center;background:var(--surface);color:var(--fg2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),var(--shadow);transition:color var(--t-fast),box-shadow var(--t-fast),left .5s var(--ease),top .5s var(--ease),opacity var(--t-fast)}
.v2 .acx-h{width:20px;height:20px;border-radius:var(--r-pill)}
.v2 .acx-sc{height:24px;grid-auto-flow:column;gap:var(--s-1);padding:0 var(--s-2) 0 6px;border-radius:var(--r-sm);font-size:11.5px;white-space:nowrap}
.v2 .acx-h[aria-expanded="true"],.v2 .acx-sc[aria-expanded="true"]{color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent),var(--shadow)}
@media (hover:hover) and (pointer:fine){.v2 .acx-h:hover,.v2 .acx-sc:hover{color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent),var(--shadow)}}
.v2 .acx-nodes.drag :is(.acx-h,.acx-sc){transition:none}
.v2 .acx-h.in,.v2 .acx-sc.in{animation:v2-acxin .56s var(--ease) backwards}
.v2 .acx-svg path.stub{stroke-dasharray:3 3}
.v2 .acx-svg path.sub{stroke-dasharray:4 4}
.v2 .acx-svg path.new{stroke-dasharray:var(--l);animation:v2-acxdraw .5s var(--ease) backwards}
.v2 .acx-svg path.sub.new{animation:v2-acxsub .5s var(--ease) backwards}
@keyframes v2-acxsub{from{opacity:0}}
.v2 .acx-n.sm{width:168px;padding:var(--s-2) 10px;gap:var(--s-2)}
.v2 .acx-n.sm .ic{width:24px;height:24px;border-radius:var(--r-sm)}
.v2 .acx-n.add{animation:v2-acxadd .42s var(--ease) backwards}
@keyframes v2-acxadd{from{opacity:0;transform:scale(.92);filter:blur(3px)}}
/* the step picker: a search over a short list of step types in groups. The arrows move through it (the search keeps the
   focus), Enter adds the step, Escape closes it; the line at its foot says what the step under the pointer or the arrows does */
.v2 .acx-pk{width:248px;padding:var(--s-2);display:flex;flex-direction:column;gap:var(--s-1)}
.v2 .acx-q{display:flex;align-items:center;gap:var(--s-2);height:32px;flex:none;padding:0 var(--s-2);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .acx-q{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .acx-q:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .acx-q input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--fg)}
.v2 .acx-q input::placeholder{color:var(--muted)}
.v2 .acx-ls{max-height:148px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--rail) transparent}
.v2 .acx-gh{padding:var(--s-2) var(--s-2) var(--s-1);font-size:11.5px;color:var(--muted)}
.v2 .acx-o{display:flex;align-items:center;gap:var(--s-2);height:32px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:13px;color:var(--fg);cursor:pointer;user-select:none}
.v2 .acx-o .ic{width:22px;height:22px;border-radius:var(--r-xs);display:grid;place-items:center;flex:none}
.v2 .acx-o.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
.v2 .acx-o mark{background:none;color:inherit;font-weight:500}
.v2 .acx-pe{padding:var(--s-3) var(--s-2);font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.v2 .acx-pd{margin:0;padding:var(--s-2) var(--s-2) 2px;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;line-height:1.4;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .acx-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.acx-h,.acx-sc){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .acx-zm{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.acx-h,.acx-sc):is(:hover,[aria-expanded="true"]){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent)}}
/* ---------- Canvas toolbar ---------- */
/* a workflow canvas with its floating toolbar fixed at the bottom centre: Run (Stop while a run is going), the pointer tools
   as one radio group, Comment, Fit and zoom. A narrow canvas moves Comment and Fit, then the zoom buttons, into a More menu,
   so the toolbar never wraps or runs past the canvas. The canvas is the whole component, edge to edge, in the stage's
   colour; it fills the height it is given, and is 560px tall (520px below 440px wide) when nothing gives it one */
.v2 .ctb{position:relative;width:100%;height:100%;container:ctb/inline-size;border-radius:var(--r-in);
  /* Stop's fill: a red that keeps white text at 4.5:1 and APCA Lc 75 in both themes, darker on hover */
  --ctb-stop:#bf3434;--ctb-stop-2:#a52a2a;--ctb-on-stop:#ffffff;
  /* the wires: the field grey, which holds 3:1 against the canvas */
  --ctb-wire:var(--line-strong)}
.v2 .ctb-cv{position:relative;height:560px;min-height:100%;border-radius:inherit;overflow:hidden;outline:0;user-select:none;-webkit-user-select:none;cursor:default;
  background-color:var(--stage);background-image:radial-gradient(circle,color-mix(in srgb,var(--fg) 14%,transparent) 1.1px,transparent 1.6px);background-size:16px 16px}
@container ctb (max-width:439px){.v2 .ctb-cv{height:520px}}
/* touch is the page's until the canvas is engaged (a tap in it): then a finger works the tool as the mouse does */
.v2 .ctb-cv.engaged{touch-action:none}
/* in a stage the canvas takes all of it, so the stage's own room goes */
.v2.stage-in.wide:has(>.ctb){max-width:none;align-self:stretch}
/* the canvas shows its focus only to the keyboard, in the quiet grey: a click gives it the focus without a ring */
.v2 .ctb-cv:focus-visible:not(.ptr){outline:2px solid color-mix(in srgb,var(--field-line) 50%,transparent);outline-offset:-2px;border-radius:inherit}
.v2 .ctb[data-tool="hand"] .ctb-cv{cursor:grab}
.v2 .ctb[data-tool="lasso"] .ctb-cv,.v2 .ctb.cm .ctb-cv{cursor:crosshair}
.v2 .ctb .ctb-cv.pan{cursor:grabbing}
/* the buttons and the arrow keys glide the view; a drag or a pinch moves it as the pointer does */
.v2 .ctb-cv.anim{transition:background-position var(--t) var(--ease),background-size var(--t) var(--ease)}
.v2 .ctb-cv.anim .ctb-world{transition:transform var(--t) var(--ease)}
.v2 .ctb-world{position:absolute;left:0;top:0;transform-origin:0 0}
.v2 .ctb-w{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}
.v2 .ctb-w path{fill:none;stroke:var(--ctb-wire);stroke-width:1.5;transition:stroke .5s var(--ease)}
.v2 .ctb-w path.lit{stroke:var(--accent-mark)}
.v2 .ctb-n{position:absolute;width:160px;display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-3);border-radius:var(--r-in);background:var(--surface);box-shadow:var(--shadow);font-size:12.5px;line-height:1.35;transition:box-shadow .3s var(--ease)}
.v2 .ctb-n.in{animation:v2-ctbin .56s var(--ease) backwards}
@keyframes v2-ctbin{from{opacity:0;filter:blur(4px)}}
.v2 .ctb-n .ic{width:28px;height:28px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none}
.v2 .ctb-n .t{display:flex;flex-direction:column;min-width:0}
.v2 .ctb-n .t b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ctb-n .t span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ctb-n.sel{box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent),var(--shadow)}
.v2 .ctb-n.run{box-shadow:0 0 0 1.5px var(--accent-mark),var(--shadow)}
.v2 .ctb-n .s{position:absolute;right:-6px;top:-6px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);animation:v2-ctbs .3s var(--ease)}
.v2 .ctb-n .s .spin{width:10px;height:10px;color:var(--accent-mark)}
.v2 .ctb-n .s .i{color:var(--ok)}
@keyframes v2-ctbs{from{opacity:0;transform:scale(.6)}}
/* a comment dropped on the canvas: a numbered pin in the accent, its point on the spot that was clicked */
.v2 .ctb-pin{position:absolute;width:24px;height:24px;transform:translateY(-100%);display:grid;place-items:center;border-radius:var(--r-pill) var(--r-pill) var(--r-pill) var(--r-xs);background:var(--accent);color:var(--on-accent,#fff);box-shadow:0 0 0 2px var(--surface),var(--shadow);font-size:11.5px;font-weight:500;animation:v2-ctbpin .3s var(--ease)}
@keyframes v2-ctbpin{from{opacity:0;transform:translateY(-100%) scale(.6)}}
.v2 .ctb-pin{transform-origin:0 100%;transition:opacity .16s var(--ease),scale .16s var(--ease)}
.v2 .ctb-pin[aria-expanded="true"]{box-shadow:0 0 0 2px var(--surface),0 0 0 3px color-mix(in srgb,var(--field-line) 50%,transparent),var(--shadow)}
.v2 .ctb-pin.gone{opacity:0;scale:.6;pointer-events:none}
/* a comment opened from its pin: its number, where it is, and Delete */
.v2 .ctb-cp{width:216px;min-width:0;padding:var(--s-3)}
.v2 .ctb-cp b{display:block;font-size:13px;font-weight:500}
.v2 .ctb-cp p{margin:2px 0 var(--s-3);font-size:12.5px;color:var(--fg2)}
.v2 .pill.ctb-del,.v2 .pill.ctb-del .i{color:var(--bad)}
@media (hover:hover) and (pointer:fine){.v2 .pill.ctb-del:hover{background:var(--bad-bg)}}
/* what a drag selects: a box for Select, a free shape for Lasso */
.v2 .ctb-mq{position:absolute;left:0;top:0;box-shadow:inset 0 0 0 1px var(--accent-mark);background:color-mix(in srgb,var(--accent) 8%,transparent);pointer-events:none}
.v2 .ctb-lz{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.v2 .ctb-lz path{fill:color-mix(in srgb,var(--accent-mark,var(--accent)) 8%,transparent);stroke:var(--accent-mark);stroke-width:1.5;stroke-dasharray:4 3;stroke-linejoin:round}
/* where the demo's pointer rests while it drags the canvas */
.v2 .ctb-aim{position:absolute;width:20px;height:20px;pointer-events:none}
.v2 .ctb-bar{position:absolute;left:50%;bottom:var(--s-3);z-index:6;display:flex;align-items:center;padding:var(--s-1);border-radius:var(--r-pill);background:var(--raised);box-shadow:var(--shadow-pop);white-space:nowrap;
  transform:translateX(-50%)}
.v2 .ctb-bar :focus-visible{border-radius:var(--r-pill)}
.v2 .ctb-b{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:var(--r-pill);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ctb-b:hover{background:var(--row);color:var(--fg)}}
/* the tool in use sits on a soft accent tint, with no edge */
.v2 .ctb-b:is([aria-checked="true"],[aria-pressed="true"]){background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-fg);box-shadow:none}
@media (hover:hover) and (pointer:fine){.v2 .ctb-b:is([aria-checked="true"],[aria-pressed="true"]):hover{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-fg);box-shadow:none}}
/* zoom out at 25%, or in at 400%, has nowhere to go: it greys out but keeps its place and the focus */
.v2 .ctb-b[aria-disabled="true"],.v2 .ctb-menu .mi[aria-disabled="true"],.v2 .ctb-menu .mi[aria-disabled="true"] :is(.i,.kbd){color:var(--dis);background:none;cursor:not-allowed}
@media (hover:hover) and (pointer:fine){.v2 .ctb-b[aria-disabled="true"]:hover{color:var(--dis);background:none;cursor:not-allowed}}
.v2 .ctb-sep{width:1px;height:16px;margin:0 var(--s-1);flex:none;background:var(--line)}
.v2 .ctb-tools{display:flex}
.v2 .ctb-run{min-width:76px;padding:0 var(--s-4) 0 var(--s-3);transition:opacity var(--t-fast),transform .15s}
.v2 .ctb-run.stop{background:var(--ctb-stop);color:var(--ctb-on-stop)}
@media (hover:hover) and (pointer:fine){.v2 .ctb-run.stop:hover{background:var(--ctb-stop-2)}}
.v2 .ctb-z{min-width:48px;height:32px;padding:0 var(--s-1);flex:none;border-radius:var(--r-pill);font-size:12.5px;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ctb-z:hover{background:var(--row);color:var(--fg)}}
.v2 .ctb-more{display:none}
.v2 .ctb-menu{width:216px}
.v2 .ctb-menu .mi .kbd,.v2 .ctb-menu .mi .r{margin-left:auto}
.v2 .ctb-menu .mi[aria-checked="true"]{font-weight:400}
.v2 .ctb-menu .mi[aria-checked="true"] .i{color:var(--fg)}
.v2 .ctb-menu [data-ovf]{display:none}
/* the toolbar keeps to one row: below 440px Comment and Fit go into More, below 360px the zoom buttons follow */
@container ctb (max-width:439px){.v2 .ctb-bar [data-ovf="1"]{display:none}.v2 .ctb-more{display:grid}.v2 .ctb-menu [data-ovf="1"]{display:flex}}
@container ctb (max-width:359px){.v2 .ctb-bar [data-ovf="2"]{display:none}.v2 .ctb-menu [data-ovf="2"]{display:flex}}
.v2 .ctb-live,.v2 .ctb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .ctb{--ctb-stop:#c43535;--ctb-stop-2:#d34646}}
:root[data-theme="dark"] .v2 .ctb{--ctb-stop:#c43535;--ctb-stop-2:#d34646}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ctb-n.run{box-shadow:0 0 0 1px var(--accent-mark),0 0 0 4px color-mix(in srgb,var(--accent-mark,var(--accent)) 22%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ctb-n.sel{box-shadow:0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
/* ---------- Tool rail ---------- */
/* the Whiteboard template's tool rail (owner, 27 Nov): Canvas toolbar's bar stood on its end. One tool is picked at a time;
   the picked one sits on Canvas toolbar's soft accent tint (Studio: its one neutral selected fill), the others take the quiet
   hover. Its buttons do nothing else: what a tool does is the board's */
.v2 .tlr{display:flex;justify-content:center}
.v2 .tlr-bar{display:inline-flex;flex-direction:column;align-items:center;padding:var(--s-1);border-radius:var(--r-pill);background:var(--raised);box-shadow:var(--shadow-pop)}
.v2 .tlr-bar :focus-visible{border-radius:var(--r-pill)}
.v2 .tlr-tools{display:flex;flex-direction:column;align-items:center}
.v2 .tlr-b{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:var(--r-pill);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .tlr-b:hover{background:var(--row);color:var(--fg)}}
.v2 .tlr-b[aria-checked="true"]{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-fg)}
@media (hover:hover) and (pointer:fine){.v2 .tlr-b[aria-checked="true"]:hover{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-fg)}}
.v2 .tlr-sep{width:16px;height:1px;margin:var(--s-1) auto;flex:none;background:var(--line)}
/* Studio's picked tool is its one selected fill, neutral, never a hue (as on the Whiteboard) */
:root[data-style="studio"] .v2 .tlr-b[aria-checked="true"]{background:var(--row-on);color:var(--fg)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tlr-b[aria-checked="true"]:hover{background:var(--row-on);color:var(--fg)}}
/* ---------- Zoom bar ---------- */
/* the Whiteboard template's view bar (owner, 27 Nov): undo and redo, zoom out, the level and zoom in, and fit, as Canvas
   toolbar's bar. Minus and plus step the level shown between them, the level resets it to 100%; undo, redo and fit only
   press. At 25% and 400% the step that has nowhere to go greys out and keeps its place */
.v2 .zmb{position:relative;display:flex;justify-content:center}
.v2 .zmb-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .zmb-bar{display:inline-flex;align-items:center;padding:var(--s-1);border-radius:var(--r-pill);background:var(--raised);box-shadow:var(--shadow-pop);white-space:nowrap}
.v2 .zmb-bar :focus-visible{border-radius:var(--r-pill)}
.v2 .zmb-b{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:var(--r-pill);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
.v2 .zmb-z{min-width:48px;height:32px;padding:0 var(--s-1);flex:none;border-radius:var(--r-pill);font-size:12.5px;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .zmb-b:hover,.v2 .zmb-z:hover{background:var(--row);color:var(--fg)}}
.v2 .zmb-b[aria-disabled="true"],.v2 .zmb-b[aria-disabled="true"]:active{color:var(--dis);background:none;cursor:not-allowed}
@media (hover:hover) and (pointer:fine){.v2 .zmb-b[aria-disabled="true"]:hover{color:var(--dis);background:none;cursor:not-allowed}}
.v2 .zmb-sep{width:1px;height:16px;margin:0 var(--s-1);flex:none;background:var(--line)}
/* ---------- Action cards ---------- */
/* the Sales CRM forecast's next steps (owner, 27 Nov; designed 16 Nov): each card says what is waiting, with a button that opens
   it, beside a small picture of what that button leads to. The picture is a short list: the item in focus is a window, its
   neighbours grey slips above and below. In a loop a pointer glides to the item, presses, the item changes (a commit ticks
   in, a new date is approved, a draft is sent), then the list scrolls up to the next. The three run at different speeds so
   they never move together, a resting pointer holds them, and with reduced motion they stay still. Three across; one under
   another below 900px */
.v2.stage-in.wide:has(>.axc){max-width:none}
/* installed, its card takes the room it is given, so the row can be three across */
.v2 [data-c]:has(>.stage-in>.axc),.v2 [data-c]>.stage-in:has(>.axc){width:100%;max-width:none}
.v2 .axc{--axc-hair:color-mix(in srgb,color-mix(in srgb,var(--line),var(--fg) 9%) 50%,transparent);width:100%;container:axc/inline-size}
.v2 .axc-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-3)}
.v2 .axc-c.panel{overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 50%;min-height:156px;border-radius:var(--r-card);box-shadow:inset 0 0 0 1px var(--axc-hair)}
.v2 .axc-tx{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:var(--s-4)}
.v2 .axc-tx b{font-size:14px;font-weight:500;color:var(--fg);line-height:1.35}
.v2 .axc-tx p{margin:0 0 var(--s-4);font-size:13px;line-height:1.45;color:var(--muted)}
.v2 .axc-tx .pill{margin-top:auto}
.v2 .axc-v{position:relative;min-width:0;overflow:hidden}
.v2 .axc-k{position:absolute;left:10px;right:var(--s-4);top:0;display:flex;flex-direction:column;gap:15px;will-change:transform}
.v2 .axc-k.mv{transition:transform var(--ax-mv,.7s) cubic-bezier(.65,0,.35,1)}
/* an item: a window when it's in focus, a grey slip when it's not (its content hidden). The windows end 16px in from the
   card's right edge, on its content column (the template's 10px there is a near miss) */
.v2 .axc-w{display:flex;flex-direction:column;gap:8px;padding:10px 12px;flex:none;border-radius:calc(var(--r-card) - 10px);background:color-mix(in srgb,var(--fg) 4%,var(--surface));box-shadow:0 0 0 1px var(--axc-hair);transition:background-color .45s var(--ease),box-shadow .45s var(--ease)}
.v2 .axc-w>*{opacity:0;transition:opacity .35s var(--ease)}
/* the window in focus takes Soft's card shadow */
.v2 .axc-w.on{background:var(--surface);box-shadow:0 0 0 1px var(--axc-hair),0 1px 1px rgba(0,0,0,.02),0 2px 4px -2px rgba(0,0,0,.025),0 6px 12px -6px rgba(0,0,0,.03),0 12px 24px -12px rgba(0,0,0,.035)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .axc-w.on{box-shadow:0 0 0 1px var(--axc-hair),0 1px 2px rgba(0,0,0,.22),0 4px 10px -4px rgba(0,0,0,.24),0 12px 24px -12px rgba(0,0,0,.28)}}
:root[data-theme="dark"] .v2 .axc-w.on{box-shadow:0 0 0 1px var(--axc-hair),0 1px 2px rgba(0,0,0,.22),0 4px 10px -4px rgba(0,0,0,.24),0 12px 24px -12px rgba(0,0,0,.28)}
.v2 .axc-w.on>*{opacity:1}
/* the grey slips above and below the window are 30% fainter than the window (owner, 27 Nov); the window in focus is whole */
.v2 .axc-w:not(.on){opacity:.7}
.v2 .axc-w{transition-property:background-color,box-shadow,opacity}
.v2 .axc-t{font-size:12px;font-weight:500;color:var(--fg);line-height:15px}
.v2 .axc-r{display:flex;align-items:center;gap:8px;min-width:0;min-height:18px}
.v2 .axc-l{display:block;height:6px;flex:none;border-radius:3px;background:var(--chip)}
/* a rep's commit: a ring until it's in, then a grey disc with a tick (grey, not green) */
.v2 .axc-m{position:relative;margin-left:auto;width:14px;height:14px;flex:none;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--faint);color:var(--surface);transition:background-color .25s var(--ease),box-shadow .25s var(--ease)}
.v2 .axc-m svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:3.6;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.5);transition:opacity .25s var(--ease),transform .3s var(--ease)}
.v2 .axc-m.in{background:var(--faint);box-shadow:none}
.v2 .axc-m.in svg{opacity:1;transform:none}
.v2 .axc-i{width:22px;height:22px;flex:none;display:grid;place-items:center;border-radius:calc(6px * var(--rk));background:var(--a);color:var(--ai)}
.v2 .axc-n{font-size:12px;font-weight:500;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.v2 .axc-d{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .axc-d s{text-decoration-color:currentColor}
/* a new date is grey until approved, then green; a draft is the accent tint until sent, then green */
.v2 .axc .tag.axc-g{height:20px;font-size:11px;gap:4px;transition:background-color .25s var(--ease),color .25s var(--ease)}
.v2 .axc .tag.axc-g.ok{background:var(--ok-bg);color:var(--ok)}
.v2 .axc .tag.axc-g.dr{background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent-fg,var(--accent))}
.v2 .axc .tag.axc-g.dr.ok{background:var(--ok-bg);color:var(--ok)}
.v2 .axc-g svg{width:10px;height:10px}
.v2 .axc-g .sw{display:inline-grid}
.v2 .axc-g .sw>*{grid-area:1/1;transition:opacity .25s var(--ease),transform .3s var(--ease)}
.v2 .axc-g .sw>.b{opacity:0;transform:translateY(5px)}
.v2 .axc-g.ok .sw>.a{opacity:0;transform:translateY(-5px)}
.v2 .axc-g.ok .sw>.b{opacity:1;transform:none}
/* the pointer: glides to the thing, presses, glides off */
.v2 .axc-cur{position:absolute;z-index:3;left:0;top:0;width:18px;height:18px;fill:var(--accent-mark,var(--accent));stroke:var(--surface);stroke-width:1.5;stroke-linejoin:round;opacity:0;pointer-events:none;transition:transform .65s cubic-bezier(.22,1,.36,1),opacity .3s var(--ease)}
.v2 .axc-cur.press{transition:transform .14s var(--ease),opacity .3s var(--ease)}
/* Blueprint: square, a hairline, no shadow; the draft tag in the lime tint */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .axc-c.panel,:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.axc-w,.axc-i){border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .axc-w.on{box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 18%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .axc .tag.axc-g.dr:not(.ok){background:color-mix(in srgb,var(--accent) 40%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2 .axc .tag.axc-g.dr:not(.ok){background:color-mix(in srgb,var(--accent) 14%,transparent)}}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2 .axc .tag.axc-g.dr:not(.ok){background:color-mix(in srgb,var(--accent) 14%,transparent)}
@media (prefers-reduced-motion:reduce){.v2 .axc-k.mv,.v2 .axc-w,.v2 .axc-w>*,.v2 .axc-cur,.v2 .axc-m,.v2 .axc-m svg{transition:none}}
/* one under another on a narrow stage, the picture beside the words */
@container axc (max-width:899px){.v2 .axc-row{grid-template-columns:minmax(0,1fr)}.v2 .axc-c.panel{grid-template-columns:minmax(0,1fr) minmax(200px,40%)}}
@container axc (max-width:479px){.v2 .axc-c.panel{grid-template-columns:minmax(0,1fr) 46%;min-height:168px}.v2 .axc-k{left:8px}}
/* ---------- Data picker ---------- */
/* maps data from earlier steps into a step's fields. Each field holds tokens, the step and then its field, and a + that opens
   the picker: only what earlier steps hand on, grouped by step under each step's tile in its kind's colour, each field with
   its type as a coloured chip and a sample value. Search filters it, the arrows move through it and Enter puts the field in */
.v2 .fpk{position:relative;width:100%;max-width:var(--field-w);container:fpk/inline-size;margin-inline:auto;display:flex;flex-direction:column;gap:var(--s-3);text-align:left}
/* in its own container (owner, 16 Nov): the field width inside, the padding around it */
.v2 .fpk.panel{max-width:calc(var(--field-w) + 2 * var(--s-4));padding:var(--s-4)}
.v2 .fpk-hd{display:flex;align-items:center;gap:var(--s-2);font-size:13px}
.v2 .fpk-hd b{font-weight:500}
.v2 .fpk-hd .muted{margin-left:auto;font-size:12px}
.v2 .fpk-ti{width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:calc(5px * var(--rk-s,var(--rk)));background:var(--fpk-kb,var(--chip));color:var(--fpk-kf,var(--fg2))}
.v2 .fpk-ti .i{width:11px;height:11px}
.v2 .fpk-hd .fpk-ti{width:24px;height:24px;border-radius:calc(7px * var(--rk-m,var(--rk)))}
.v2 .fpk-hd .fpk-ti .i{width:12px;height:12px}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="trigger"]{--fpk-kb:var(--pp-bg);--fpk-kf:var(--pp)}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="ai"]{--fpk-kb:var(--pl-bg);--fpk-kf:var(--pl)}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="tool"]{--fpk-kb:var(--pt-bg);--fpk-kf:var(--pt)}
.v2 .fpk-ti:is([data-k="app"],[data-k="output"]),.v2 .fpk-tok:is([data-k="app"],[data-k="output"]){--fpk-kb:var(--pb-bg);--fpk-kf:var(--pb)}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="branch"]{--fpk-kb:var(--py-bg);--fpk-kf:var(--py)}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="wait"]{--fpk-kb:var(--pk-bg);--fpk-kf:var(--pk)}
.v2 :is(.fpk-ti,.fpk-tok)[data-k="approval"]{--fpk-kb:var(--pm-bg);--fpk-kf:var(--pm)}
.v2 .fpk-f{display:flex;flex-direction:column;gap:6px}
.v2 .fpk-l{font-size:12.5px;color:var(--muted)}
.v2 .fpk-box{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;min-height:var(--field-h);padding:6px 6px 6px var(--s-2);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .fpk-box{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .fpk-box:has([aria-expanded="true"]){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* the tokens wrap among themselves, so the + stays on the field's first line at its right end */
.v2 .fpk-toks{flex:1 1 0;min-width:0;min-height:26px;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:center;gap:6px}
.v2 .fpk-ph{font-size:13px;line-height:26px;color:var(--muted)}
.v2 .fpk-tok{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;height:26px;padding:0 2px 0 4px;border-radius:var(--r-sm);background:var(--chip);font-size:12px;color:var(--fg);white-space:nowrap}
.v2 .fpk-tok .s{min-width:0;max-width:120px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.v2 .fpk-tok .sep{color:var(--muted)}
/* a token keeps its step's colour once it is in (owner, 22 Nov: grey tokens looked disabled): the core tag colours, one per
   kind of step, as its tile in the picker shows it, its words in the tag's text colour on the tag's tint (4.5:1), its icon
   bare on that tint and its remove in the same colour. Blueprint keeps its outlined tokens */
.v2 .fpk-tok[data-k]{background:var(--fpk-kb);color:var(--fpk-kf)}
.v2 .fpk-tok[data-k] :is(.s,.sep,.fpk-x){color:inherit}
.v2 .fpk-tok[data-k] .sep{opacity:.6}
.v2 .fpk-tok[data-k] .fpk-ti{background:none;box-shadow:none;color:inherit}
@media (hover:hover) and (pointer:fine){.v2 .fpk-tok[data-k] .fpk-x:hover{color:inherit}}
.v2 .fpk-tok .f{flex:none;max-width:100%;font-weight:500;overflow:hidden;text-overflow:ellipsis}
.v2 .fpk-tok.new{animation:v2-popin .5s var(--ease) backwards}
.v2 .fpk-tok.out{animation:v2-leave .3s var(--ease) both}
.v2 .fpk-x{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:calc(5px * var(--rk-s,var(--rk)));color:var(--muted);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .fpk-x:hover{background:color-mix(in srgb,currentColor 12%,transparent);color:var(--fg)}}
.v2 .fpk-add{width:26px;height:26px;flex:none;display:grid;place-items:center;margin-left:auto;border-radius:var(--r-sm);color:var(--muted);transition:background var(--t-fast),color var(--t-fast)}
/* the + under the pointer takes a quiet fill; open, its field's edge steps up instead (no fill), so it stays where the others are */
@media (hover:hover) and (pointer:fine){.v2 .fpk-add:hover{background:var(--row);color:var(--fg)}}
.v2 .fpk-add[aria-expanded="true"]{color:var(--fg)}
/* the picker, on one set of columns (owner, 18 Nov): each step's tile and the search's glass centred in one column 16px in, the
   step names, the fields and the search's words on the next, the samples and step numbers ending 16px from the right edge,
   and the footnote on the content's left edge */
.v2 .fpk-pop.pop{width:min(320px,100cqi,calc(100vw - 32px));padding:var(--s-2);display:flex;flex-direction:column;gap:var(--s-1)}
.v2 .fpk-q{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .fpk-q{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .fpk-q:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .fpk-q input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;font:inherit;font-size:13px;color:var(--fg)}
.v2 .fpk-q input::placeholder{color:var(--muted)}
.v2 .fpk-ls{max-height:252px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--rail) transparent}
.v2 .fpk-g{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-2) var(--s-1);font-size:12px;color:var(--muted)}
.v2 .fpk-g b{min-width:0;font-weight:500;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .fpk-g .n{margin-left:auto;flex:none}
.v2 .fpk-o{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:var(--s-2);height:32px;padding:0 var(--s-2) 0 34px;border-radius:var(--r-sm);font-size:13px;cursor:pointer;user-select:none}
.v2 .fpk-o.on{background:var(--row)}
.v2 .fpk-o .k{white-space:nowrap}
.v2 .fpk-o .k mark{background:none;color:inherit;font-weight:500;text-decoration:underline;text-decoration-color:var(--faint);text-underline-offset:2px}
.v2 .fpk-o .ex{min-width:0;text-align:right;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .fpk-o .tag{font-weight:500}
.v2 .fpk-e{margin:0;padding:var(--s-4) var(--s-2);font-size:12.5px;color:var(--muted)}
.v2 .fpk-ft{display:flex;align-items:center;gap:var(--s-2);margin:0;padding:var(--s-2) var(--s-2) 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;line-height:18px;color:var(--muted)}
.v2 .fpk-ft .kh{display:flex;gap:var(--s-1);flex:none}
.v2 .fpk-ft span:first-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .fpk-live{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.v2 .fpk-tok.new,.v2 .fpk-tok.out{animation:none!important}}
@container fpk (max-width:300px){.v2 .fpk-ft .kh{display:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-ti{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fpk-kf,var(--rail)) 30%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-tok{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-tok[data-k]{color:var(--fg)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-tok[data-k] :is(.s,.sep,.fpk-x){color:var(--muted)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-tok[data-k] .sep{opacity:1}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fpk-tok[data-k] .fpk-ti{background:var(--fpk-kb);color:var(--fpk-kf);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fpk-kf,var(--rail)) 30%,transparent)}
/* Studio: the steps' tiles are one neutral grey with a hairline, as Trace view's marks are (the data types keep their colours);
   a token is a chip, so it is a pill with a round mark and a round remove, and the + is a circle. The picker is a 22px card with
   its rows' fills concentric with it (14px, 8px in), and its footnote is an off-white foot strip, edge to edge, 16px in */
/* (owner, 22 Nov) the steps in the picker keep their kind's colour, so a token added from one wears the same colour in its
   field; only the step being edited, in the head, is the neutral tile, its icon in the text colour (white in dark mode, not
   grey), as the + and the search's glass are. Its states read apart: empty, a muted line; adding, the field's edge one step
   stronger and its + on Studio's selected fill while the picker is open; added, the coloured token */
:root[data-style="studio"] .v2 .fpk-hd .fpk-ti{color:var(--fg);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 :is(.fpk-add,.fpk-q>.i,.fpk-q>svg){color:var(--fg2)}
:root[data-style="studio"] .v2 .fpk-add[aria-expanded="true"]{background:var(--row-on);color:var(--fg)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 :is(.fpk-add,.fpk-q>.i,.fpk-q>svg){color:var(--fg)}}
:root[data-style="studio"][data-theme="dark"] .v2 :is(.fpk-add,.fpk-q>.i,.fpk-q>svg){color:var(--fg)}
:root[data-style="studio"] .v2 .fpk-tok .fpk-ti{border-radius:50%}
:root[data-style="studio"] .v2 .fpk-tok{padding:0 3px 0 4px;border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 :is(.fpk-x,.fpk-add){border-radius:50%;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .fpk-x:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}
:root[data-style="studio"] .v2 .fpk-box{transition:box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .fpk-pop.pop{border-radius:var(--r-card);padding-bottom:0}
:root[data-style="studio"] .v2 .fpk-o{border-radius:calc(var(--r-card) - 8px);transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .fpk-ft{margin:var(--s-1) calc(-1 * var(--s-2)) 0;padding:var(--strip-y) 16px;background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .fpk-tok.new{animation:v2-clpiece var(--t-slow) var(--ease) backwards}
/* ---------- Run drawer ---------- */
/* the run of a workflow, in a drawer under its canvas that folds down to one line and drags taller. Its head says the run's
   state in colour (running in the accent, waiting amber, passed green, failed red, stopped grey), the time, the tokens and the
   cost, then Stop and Follow the run; under it, Steps, Log and Data are underline tabs (owner, 28 Nov). Steps is a timeline with each step's model and tool calls nested
   under it, each bar in its kind's colour, a failed try red and the wait before a retry hatched amber. Log is the run's lines
   with their levels in colour, filtered by level. Data is what each step took in and handed on, as JSON */
.v2 .rdr{position:relative;width:100%;height:472px;container:rdrf/inline-size;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow);text-align:left}
.v2 .rdr-cv{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:var(--s-4);background:var(--stage);background-image:radial-gradient(circle at center,color-mix(in srgb,var(--fg) 9%,transparent) 1px,transparent 1.5px);background-size:16px 16px;overflow:hidden}
.v2 .rdr-flow{position:relative;display:flex;align-items:center;max-width:100%;overflow-x:auto;scrollbar-width:none;padding:6px}
.v2 .rdr-flow::-webkit-scrollbar{display:none}
.v2 .rdr-wire{flex:none;width:14px;height:1.5px;background:var(--faint);transition:background .4s var(--ease)}
.v2 .rdr-wire.done{background:color-mix(in srgb,var(--fg) 40%,var(--faint))}
.v2 .rdr-nd{position:relative;flex:none;display:flex;align-items:center;gap:6px;height:34px;padding:0 7px;border-radius:calc(7px * var(--rk-m,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 80%,transparent);font-size:12px;white-space:nowrap;transition:box-shadow .3s,opacity .3s}
@media (hover:hover) and (pointer:fine){.v2 .rdr-nd:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 50%,transparent)}}
.v2 .rdr-nd .t{max-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0;transition:max-width var(--t) var(--ease),opacity var(--t) var(--ease)}
.v2 .rdr-nd:is([data-st="run"],[data-st="retry"],[data-st="wait"],[data-st="bad"],[aria-pressed="true"]) .t{max-width:132px;opacity:1}
/* every ring is drawn inside the step (owner, 18 Nov: buttons side by side are the same drawn height): a picked step's edge a step
   stronger, the running one in the accent, a failed one red and a retry or a wait amber */
.v2 .rdr-nd[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.v2 .rdr-nd[data-st="run"]{box-shadow:inset 0 0 0 1.5px var(--accent-mark,var(--accent))}
.v2 .rdr-nd[data-st="bad"]{box-shadow:inset 0 0 0 1.5px var(--bad-mark)}
.v2 .rdr-nd:is([data-st="retry"],[data-st="wait"]){box-shadow:inset 0 0 0 1.5px var(--warn-mark)}
.v2 .rdr-nd[data-st="skip"]{opacity:.5}
.v2 .rdr-ns{display:none;width:14px;height:14px;place-items:center;color:var(--ok-mark)}
.v2 .rdr-nd[data-st="ok"] .rdr-ns{display:grid;margin-left:-2px}
.v2 .rdr-nd[data-st="ok"] .rdr-ns .i{width:12px;height:12px}
.v2 .rdr-ti{width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:calc(5px * var(--rk-s,var(--rk)));background:var(--rdr-kb,var(--chip));color:var(--rdr-kf,var(--fg2))}
.v2 .rdr-ti .i{width:11px;height:11px}
.v2 .rdr [data-k],.v2 .rdr-dw [data-k]{--rdr-kb:var(--chip);--rdr-kf:var(--fg2);--rdr-kc:var(--faint)}
.v2 .rdr [data-k="trigger"],.v2 .rdr-dw [data-k="trigger"]{--rdr-kb:var(--pp-bg);--rdr-kf:var(--pp);--rdr-kc:var(--pp)}
.v2 .rdr [data-k="ai"],.v2 .rdr-dw [data-k="ai"]{--rdr-kb:var(--pl-bg);--rdr-kf:var(--pl);--rdr-kc:var(--pl)}
.v2 .rdr [data-k="model"],.v2 .rdr-dw [data-k="model"]{--rdr-kb:var(--pl-bg);--rdr-kf:var(--pl);--rdr-kc:color-mix(in srgb,var(--pl) 75%,var(--surface))}
.v2 .rdr [data-k="tool"],.v2 .rdr-dw [data-k="tool"]{--rdr-kb:var(--pt-bg);--rdr-kf:var(--pt);--rdr-kc:var(--pt)}
.v2 .rdr :is([data-k="app"],[data-k="output"]),.v2 .rdr-dw :is([data-k="app"],[data-k="output"]){--rdr-kb:var(--pb-bg);--rdr-kf:var(--pb);--rdr-kc:var(--pb)}
.v2 .rdr [data-k="branch"],.v2 .rdr-dw [data-k="branch"]{--rdr-kb:var(--py-bg);--rdr-kf:var(--py);--rdr-kc:var(--py)}
.v2 .rdr [data-k="wait"],.v2 .rdr-dw [data-k="wait"]{--rdr-kb:var(--pk-bg);--rdr-kf:var(--pk);--rdr-kc:var(--pk)}
.v2 .rdr [data-k="approval"],.v2 .rdr-dw [data-k="approval"]{--rdr-kb:var(--pm-bg);--rdr-kf:var(--pm);--rdr-kc:var(--pm)}
.v2 .rdr [data-k="retry"],.v2 .rdr-dw [data-k="retry"]{--rdr-kb:var(--warn-bg);--rdr-kf:var(--warn);--rdr-kc:var(--warn-mark)}
/* the drawer */
.v2 .rdr-dw{position:relative;flex:none;height:var(--rdr-h,312px);display:flex;flex-direction:column;background:var(--surface);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);container:rdr/inline-size}
/* folded, the drawer is its head alone (--rdr-shut, the head and the drawer's top line) */
.v2 .rdr-dw{--rdr-shut:45px}
.v2 .rdr-dw.shut{height:var(--rdr-shut)}
.v2 .rdr-dw.anim{transition:height var(--t) var(--ease)}
.v2 .rdr-grip{position:absolute;left:0;right:0;top:-6px;z-index:3;height:12px;display:grid;place-items:center;cursor:ns-resize;touch-action:none;outline:0}
.v2 .rdr-grip i{display:block;width:32px;height:4px;border-radius:var(--r-tiny,2px);background:var(--rail);opacity:0;transition:opacity var(--t-fast),background var(--t-fast)}
.v2 .rdr-grip.on i{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .rdr-grip:hover i{opacity:1}}
.v2 .rdr-grip:focus-visible i{opacity:1;background:var(--line-strong)}
.v2 .rdr-dw.drag{user-select:none}
/* the drawer's content sits 16px in from its edges, in every style: the toggle's chevron, the steps' marks, the headings and
   the log's words start on that edge, with the notice and the data blocks, and Follow, Stop, the times and the data blocks end
   on it. The toggle's and the rows' hover and picked fills reach 8px out round them, into the padding (owner, 26 Nov) */
.v2 .rdr-h{flex:none;display:flex;align-items:center;gap:var(--s-2);height:calc(var(--rdr-shut) - 1px);padding:0 var(--s-4)}
.v2 .rdr-tg{flex:none;display:inline-flex;align-items:center;gap:var(--s-2);min-width:0;height:30px;margin-left:calc(-1 * var(--s-2));padding:0 var(--s-2);border-radius:var(--r-sm);font-size:13px;font-weight:500;white-space:nowrap;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .rdr-tg:hover{background:var(--row)}}
.v2 .rdr-tg>.i{color:var(--muted);transform:rotate(180deg);transition:transform var(--t) var(--ease)}
.v2 .rdr-dw.shut .rdr-tg>.i{transform:none}
.v2 .rdr-st.tag .spin{width:9px;height:9px;border-width:1.5px}
.v2 .rdr-st.run{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
/* (Blueprint: its lime's darker mark at a strength that reads as a coloured status tag on white) */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rdr-st.run{background:color-mix(in srgb,var(--accent-mark) 20%,transparent)}
.v2 .rdr-meta{min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .rdr-sp{flex:1}
/* Steps, Log and Data: the core's underline tabs under the head, their hairline from edge to edge and the first tab's words on
   the content's 16px column */
.v2 .rdr-ut{flex:none}
.v2 .rdr-stop,.v2 .rdr-again{flex:none}
.v2 .rdr-follow{width:28px;height:28px;flex:none;color:var(--muted)}
/* on, Follow takes a fill a step stronger than the hover, so it reads as on */
.v2 .rdr-follow[aria-pressed="true"]{background:var(--hover);color:var(--fg)}
/* Studio: on, Follow takes Studio's one selected fill, a step stronger than the shared hover, so it never reads as a hover that
   stuck (owner, 22 Nov); its hover and Stop's are the shared ones */
:root[data-style="studio"] .v2 .rdr-follow[aria-pressed="true"]{background:var(--row-on)}
.v2 .rdr-dw.shut :is(.rdr-ut,.rdr-follow){display:none}
.v2 .rdr-b{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--rail) transparent;padding:0 var(--s-2);margin-bottom:var(--s-4)}
/* (the room under the rows is outside the scroll box, so nothing scrolls into the card's bottom 16px) */
.v2 .rdr-dw.shut .rdr-b{display:none}
.v2 .rdr-v[hidden]{display:none}
/* every panel starts with the same thin column-header row (owner, 29 Nov): muted words on the content's 16px column, one
   half-strength hairline under them, the same height in Steps, Log and Data. The tab already names the panel, so Steps' row
   has no "Step" over its names, only the time axis and Time */
.v2 .rdr-hd{position:sticky;top:0;z-index:2;display:grid;align-items:center;gap:var(--s-2);height:29px;padding:0 var(--s-2) 1px;background:linear-gradient(color-mix(in srgb,var(--line) 50%,var(--surface)),color-mix(in srgb,var(--line) 50%,var(--surface))) var(--s-2) 100%/calc(100% - 2 * var(--s-2)) 1px no-repeat,var(--surface);font-size:12px;color:var(--muted)}
/* Steps: the timeline */
.v2 .rdr-ax,.v2 .rdr-r{display:grid;grid-template-columns:minmax(0,15fr) minmax(0,14fr) 56px;align-items:center;gap:var(--s-2);padding:0 var(--s-2)}
.v2 .rdr-ax{padding-bottom:1px}
.v2 .rdr-ax .ms{text-align:right}
.v2 .rdr-sc{position:relative;height:16px}
.v2 .rdr-sc span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.v2 .rdr-sc span:first-child{transform:none}
.v2 .rdr-rows{display:flex;flex-direction:column;padding-top:var(--s-1)}
.v2 .rdr-r{width:100%;min-height:30px;border-radius:calc(8px * var(--rk-m,var(--rk)));font-size:12.5px;text-align:left;transition:background .16s}
@media (hover:hover) and (pointer:fine){.v2 .rdr-r:hover{background:var(--row)}}
/* a picked step: the accent tint (Blueprint's lime takes its darker mark so the tint shows on white) */
.v2 .rdr-r[aria-pressed="true"]{background:var(--accent-bg)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.rdr-r,.rdr-ds button)[aria-pressed="true"]{background:var(--bp-pick)}
.v2 .rdr-r.in{animation:v2-enter var(--t) var(--ease) backwards}
.v2 .rdr-n{display:flex;align-items:center;gap:6px;min-width:0;padding-left:calc(var(--lv,0) * 18px)}
.v2 .rdr-nm{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .rdr-r[data-lv="0"] .rdr-nm{font-weight:500}
.v2 .rdr-bt{position:relative;height:18px;background:linear-gradient(to right,color-mix(in srgb,var(--line) 70%,transparent) 1px,transparent 1px) 0 0/var(--rdr-g,20%) 100%}
.v2 .rdr-bt i{position:absolute;top:5px;height:8px;min-width:3px;border-radius:calc(2.5px * var(--rk-s,var(--rk)));background:var(--rdr-kc)}
.v2 .rdr-r.run .rdr-bt i{animation:v2-rdrrun 1.2s var(--ease-io) infinite}
@keyframes v2-rdrrun{50%{opacity:.55}}
.v2 .rdr-r[data-st="bad"] .rdr-bt i{background:var(--bad-mark)}
.v2 .rdr-r[data-st="stop"] .rdr-bt i{background:var(--faint)}
.v2 .rdr-r[data-k="retry"] .rdr-bt i,.v2 .rdr-r[data-st="wait"] .rdr-bt i{background:repeating-linear-gradient(135deg,var(--warn-mark) 0 3px,color-mix(in srgb,var(--warn-mark) 45%,var(--surface)) 3px 6px)}
.v2 .rdr-ms{text-align:right;font-size:12px;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .rdr-r[data-st="bad"] .rdr-ms{color:var(--bad)}
.v2 .rdr-r:is([data-k="retry"],[data-st="wait"]) .rdr-ms{color:var(--warn)}
/* what the run waits for: a person's yes, as a warning notice (owner, 18 Nov; Model picker's busy notice is the reference): a
   faint warning tint as wide as the rows' fills, the filled warning sign centred in the rows' tile column, the words in the
   text colour on the names' column, Approve (what resolves it) in the warning tint and Reject white, ending where the times end */
/* the notice's tint reaches 8px out round the rows' column, as their fills do, so its sign, words and buttons sit on the
   card's 16px column under the head's (owner, 26 Nov) */
.v2 .rdr-ask{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:var(--s-2) 6px;width:auto;box-sizing:border-box;margin:6px 0 var(--s-1);padding:10px var(--s-2);border-radius:calc(8px * var(--rk-m,var(--rk)));background:color-mix(in srgb,var(--warn-bg) 45%,transparent);font-size:12.5px}
.v2 .rdr-ask.in{animation:v2-enter var(--t) var(--ease) backwards}
.v2 .rdr-sgi{grid-area:1/1;justify-self:center;align-self:start;width:16px;height:16px;margin-top:1px;overflow:visible}
.v2 .rdr-sgi .a{fill:var(--warn-mark);stroke:var(--warn-mark);stroke-width:2;stroke-linejoin:round}
.v2 .rdr-sgi .b{fill:none;stroke:var(--surface);stroke-width:2.2;stroke-linecap:round}
.v2 .rdr-ask .tx{grid-area:1/2;min-width:0;display:flex;flex-direction:column;line-height:18px}
.v2 .rdr-ask .tx b{font-weight:500;color:var(--fg)}
.v2 .rdr-ask .tx span{color:var(--fg)}
.v2 .rdr-ask .acts{grid-area:1/3;display:flex;gap:6px}
/* on the tinted notice the secondary button is white, not grey */
.v2 .rdr-ask .pill.line{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .rdr-ask .pill.line:hover{box-shadow:var(--on-tint-btn-h)}}
/* Log: the lines, their levels in colour */
/* its head row: Time over the times, Message over the levels and lines, and the level filter, a small menu button whose words
   end on the content's right edge (its hover fill reaches out round them) */
.v2 .rdr-lf{grid-template-columns:62px minmax(0,1fr) auto}
.v2 .rdr-lvt{display:inline-flex;align-items:center;gap:var(--s-1);height:24px;margin-right:calc(-1 * var(--s-2));padding:0 var(--s-2);border-radius:var(--r-sm);font-size:12px;color:var(--fg2);white-space:nowrap;transition:background var(--t-fast),color var(--t-fast)}
.v2 .rdr-lvt>svg{color:var(--muted);transition:transform var(--t) var(--ease)}
.v2 .rdr-lvt[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .rdr-lvt:hover{background:var(--row);color:var(--fg)}}
.v2 .rdr-lvt[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .rdr-lvm{min-width:176px}
.v2 .rdr-log{list-style:none;margin:0;padding:var(--s-1) 0 0;display:flex;flex-direction:column}
.v2 .rdr-l{display:grid;grid-template-columns:62px 56px minmax(0,1fr);align-items:baseline;gap:var(--s-2);padding:5px var(--s-2);border-radius:calc(8px * var(--rk-m,var(--rk)));font-size:12.5px;line-height:1.45}
.v2 .rdr-l.in{animation:v2-enter var(--t) var(--ease) backwards}
.v2 .rdr-l .t{font-size:12px;color:var(--muted)}
.v2 .rdr-l .lv{justify-self:start}
.v2 .rdr-l .lv[data-l="debug"]{background:var(--chip-fill);color:var(--fg2)}
.v2 .rdr-l .lv[data-l="info"]{background:var(--pb-bg);color:var(--pb)}
.v2 .rdr-l .lv[data-l="warn"]{background:var(--warn-bg);color:var(--warn)}
.v2 .rdr-l .lv[data-l="error"]{background:var(--bad-bg);color:var(--bad)}
.v2 .rdr-l .m{min-width:0}
.v2 .rdr-l .m b{font-weight:500}
.v2 .rdr-l .m span{color:var(--fg2)}
.v2 .rdr-l[data-l="error"]{background:color-mix(in srgb,var(--bad-bg) 45%,transparent)}
.v2 .rdr-le{margin:0;padding:var(--s-4) var(--s-2);font-size:12.5px;color:var(--muted)}
/* Data: each step's input and output */
/* its head row: Field and Value over each step's input and output (the step list beside them is the tab's own) */
.v2 .rdr-dh{grid-template-columns:calc(176px - var(--s-2)) minmax(0,1fr);column-gap:var(--s-3)}
.v2 .rdr-dh>.kv{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:var(--s-2)}
.v2 .rdr-data{display:grid;grid-template-columns:176px minmax(0,1fr);gap:var(--s-3);padding-top:var(--s-1)}
.v2 .rdr-ds{display:flex;flex-direction:column;gap:var(--s-1);min-width:0}
.v2 .rdr-ds button{display:flex;align-items:center;gap:var(--s-2);width:100%;min-width:0;height:30px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:12.5px;text-align:left;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .rdr-ds button:hover{background:var(--row)}}
.v2 .rdr-ds button[aria-pressed="true"]{background:var(--accent-bg);font-weight:500}
.v2 .rdr-ds button span:last-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .rdr-io{display:flex;flex-direction:column;min-width:0;padding-right:var(--s-2)}
.v2 .rdr-io h4{margin:0;padding:6px 0 2px;font-size:12px;line-height:18px;font-weight:500;color:var(--muted)}
.v2 .rdr-kv{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:0 var(--s-2);margin:0 0 var(--s-2);font-size:12.5px;line-height:18px}
.v2 .rdr-kv>div{display:contents}
.v2 .rdr-kv :is(dt,dd){min-width:0;margin:0;padding:5px 0;overflow-wrap:anywhere}
.v2 .rdr-kv dt{color:var(--fg2)}
.v2 .rdr-kv dd{color:var(--fg)}
.v2 .rdr-de{margin:0;padding:var(--s-4) var(--s-2);font-size:12.5px;color:var(--muted)}
.v2 .rdr-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* a narrow drawer keeps the run's state and its switch, and gives up the details */
@container rdr (max-width:620px){
  .v2 .rdr-meta,.v2 .rdr-tg .w{display:none}
  .v2 .rdr-stop span,.v2 .rdr-again span{display:none}
  .v2 .rdr-stop,.v2 .rdr-again{width:28px;padding:0}
  .v2 .rdr-ax,.v2 .rdr-r{grid-template-columns:minmax(0,1fr) 30% 48px}
  /* the notice on two lines is a small card: its content 16px from its edges */
  .v2 .rdr-ask{grid-template-columns:18px minmax(0,1fr);padding:var(--s-4) var(--s-2)}.v2 .rdr-ask .acts{grid-area:2/1/3/3;justify-content:flex-end}
  .v2 .rdr-data{grid-template-columns:minmax(0,1fr)}
  .v2 .rdr-dh{grid-template-columns:minmax(0,1fr)}.v2 .rdr-dh>span:first-child{display:none}
  .v2 .rdr-io{padding-left:var(--s-2)}
  .v2 .rdr-ds{flex-direction:row;overflow-x:auto;scrollbar-width:none}
  .v2 .rdr-ds button{flex:none;width:auto}
  .v2 .rdr-l{grid-template-columns:62px minmax(0,1fr);row-gap:2px}
  .v2 .rdr-l .t{grid-column:1}
  .v2 .rdr-l .m{grid-column:1/-1}
}
@container rdr (max-width:440px){.v2 .rdr-follow,.v2 .rdr-tg>span:not(.rdr-st){display:none}.v2 .rdr-h{gap:var(--s-1)}}

@container rdrf (max-width:400px){.v2 .rdr-nd:not([aria-pressed="true"]) .t{max-width:0;opacity:0}}
@media (prefers-reduced-motion:reduce){.v2 .rdr-r.in,.v2 .rdr-l.in,.v2 .rdr-ask.in,.v2 .rdr-r.run .rdr-bt i{animation:none!important}.v2 .rdr-dw.anim,.v2 .rdr-nd .t{transition:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rdr-ti{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rdr-kf,var(--rail)) 30%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rdr-r.run .rdr-bt i{animation:none;background:repeating-linear-gradient(90deg,var(--rdr-kc) 0 4px,color-mix(in srgb,var(--rdr-kc) 50%,var(--surface)) 4px 6px)}
/* Studio (owner, 18 Nov): the steps' tiles are one neutral grey with a hairline, as Trace view's marks are, and so the timeline's
   bars are one grey too (the top steps darker than the calls under them), keeping colour for what it means: the step that is
   running in the accent, a failed try red and a retry or a wait hatched amber. The rows' fills are concentric with the card */
/* (a drawer under a canvas of its own, whose steps keep their colours, keeps its colours to match them) */
:root[data-style="studio"] .v2 .rdr .rdr-ti{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .rdr [data-k]{--rdr-kc:var(--muted)}
:root[data-style="studio"] .v2 .rdr .rdr-r[data-lv="0"]{--rdr-kc:var(--fg2)}
:root[data-style="studio"] .v2 .rdr .rdr-r.run{--rdr-kc:var(--accent-mark)}
:root[data-style="studio"] .v2 :is(.rdr-r,.rdr-l,.rdr-ds button,.rdr-ask){border-radius:calc(var(--r-card) - 8px)}
:root[data-style="studio"] .v2 :is(.rdr-r,.rdr-ds button,.rdr-tg,.rdr-nd){transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 :is(.rdr-r[aria-pressed="true"],.rdr-ds button[aria-pressed="true"],.rdr-follow[aria-pressed="true"]){background:var(--row-on)}
:root[data-style="studio"] .v2 .rdr-tg{border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .rdr-lvt{border-radius:var(--r-pill);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .rdr-lvt[aria-expanded="true"]{background:var(--row-on)}
/* the drawer's head is an off-white head strip, its controls 16px from the strip's top and from the tabs (--strip-y), and the
   tabs end it, on its off-white, as Notifications' do (owner, 28 Nov). Folded, the strip is the drawer's last line */
:root[data-style="studio"] .v2 .rdr .rdr-dw{--rdr-shut:calc(30px + 2 * var(--strip-y) + 1px)}
:root[data-style="studio"] .v2 .rdr .rdr-h{background:var(--strip)}
/* open, the tabs sit close under the head row as one strip (owner, 29 Nov): the row keeps its 16px from the strip's top, and
   only 4px under it before the tabs; folded, it has its 16px under it again */
:root[data-style="studio"] .v2 .rdr .rdr-dw:not(.shut) .rdr-h{height:calc(30px + var(--strip-y) + var(--s-1));padding-top:calc(var(--strip-y) - var(--s-1))}
:root[data-style="studio"] .v2 .rdr .rdr-dw.anim .rdr-h{transition:height var(--t) var(--ease),padding var(--t) var(--ease)}
:root[data-style="studio"] .v2 .rdr-nd{border-radius:var(--r-in)}
/* a step's node keeps its edge (its status colour while it runs, fails or waits) and takes the one hover as a fill inside
   it, the picked step the stronger fill (owner, 21 Nov: never a stronger edge) */
:root[data-style="studio"] .v2 .rdr-nd{--rdr-ring:color-mix(in srgb,var(--line) 80%,transparent);--rdr-rw:1px;--rdr-fill:transparent;box-shadow:inset 0 0 0 var(--rdr-rw) var(--rdr-ring),inset 0 0 0 99px var(--rdr-fill)}
:root[data-style="studio"] .v2 .rdr-nd[data-st="run"]{--rdr-ring:var(--accent-mark,var(--accent));--rdr-rw:1.5px}
:root[data-style="studio"] .v2 .rdr-nd[data-st="bad"]{--rdr-ring:var(--bad-mark);--rdr-rw:1.5px}
:root[data-style="studio"] .v2 .rdr-nd:is([data-st="retry"],[data-st="wait"]){--rdr-ring:var(--warn-mark);--rdr-rw:1.5px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rdr-nd:hover{--rdr-fill:var(--row)}}
:root[data-style="studio"] .v2 .rdr-nd[aria-pressed="true"]{--rdr-fill:var(--row-on)}
:root[data-style="studio"] .v2 .rdr-ask .pill.line{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rdr-ask .pill.line:hover{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rdr-ask .pill.line:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .rdr-ask .pill.line:active{box-shadow:var(--btn2-press)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 :is(.rdr,.rdr-dw) :is(.ib,.pill):active,:root[data-style="studio"] .v2 :is(.rdr,.rdr-dw) .ib:active{transform:none}
/* ---------- Team memory ---------- */
/* each memory shows where it came from, as that source's own mark (Slack, Figma, GitHub, Notion, Linear, Drive) or an icon
   (something said in chat, an edit), and its kind in the kind's colour (--k). A memory the agent learns arrives with a spinner
   on its mark and its words shimmering while it works the rule out, then a New tag (no tinted band, owner 18 Nov); the
   memories an answer uses pulse once with a quiet grey (never a hue) and say so. The card sits on two columns (owner, 18 Nov),
   its content 16px from every edge: the head's mark in a 28px column with each memory's mark centred under it, and the title,
   each memory and the footer's words 12px after it; a row's hover fill reaches 8px out round its content, and its Edit and
   Forget end on the content's right edge. The filter is the core's underline tabs under the head (owner, 28 Nov). The panel keeps no room for the memory still to come: it grows as
   the new one opens its row (grow()) and stays centred in its stage */
.v2 .mmx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-2);container:mmx/inline-size}
.v2 .mmx-h{display:flex;align-items:center;gap:8px 12px;padding-bottom:var(--s-2)}
.v2 .mmx-ic{width:28px;height:28px;border-radius:calc(8px * var(--rk-m,var(--rk)));background:var(--pp-bg);color:var(--pp);display:grid;place-items:center;flex:none}
.v2 .mmx-ht{flex:1 0 auto;min-width:0;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the filter: underline tabs 16px under the head, their hairline from edge to edge and the first tab's words on the content's
   16px column, the memories under them */
.v2 .mmx-ut{margin:0 calc(-1 * var(--s-4))}
/* a memory's mark sits on the head's tile column and its actions end on the content's 16px edge; its hover fill reaches 8px
   out round it, into the padding, in every style (owner, 26 Nov) */
.v2 .mmx-list{display:flex;flex-direction:column;margin:0 calc(-1 * var(--s-2))}
.v2 .mmx-m{display:flex;align-items:flex-start;gap:12px;padding:var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;line-height:1.5;transition:background .3s}
@media (hover:hover) and (pointer:fine){.v2 .mmx-m:hover{background:var(--row)}}
/* its motion (the core's motion pieces, owner, 26 Nov): one highlight glides from memory to memory in every style (.mx-glide);
   a filter moves the rows (reflow()); a press on Edit or Forget shows at once (.mx-press); a source's spinner and mark, and the
   footer's mark, crossfade (.mx-ic); the panel grows on the spring (.mx-grow) */
.v2 .mmx-src{width:28px;height:28px;margin-top:1px;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--surface);color:var(--fg2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
.v2 .mmx-src .brand{width:15px;height:15px;color:var(--fg)}
.v2 .mmx-src .spin{width:12px;height:12px}
.v2 .mmx-b{flex:1;min-width:0;display:flex;flex-direction:column}
/* a memory that wraps never leaves one word alone on its last line (owner, 24 Nov) */
.v2 .mmx-b .t{text-wrap:pretty}
.v2 .mmx-m .t{outline:0;border-radius:var(--r-tiny,5px);padding:0 3px;margin:0 -3px}
.v2 .mmx-m .t[contenteditable="true"]{background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent)}
.v2 .mmx-m .t[contenteditable="true"]:focus{box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* under it: its kind in the kind's colour, then where it came from */
.v2 .mmx-meta{display:flex;align-items:center;gap:6px;min-width:0;font-size:11.5px;color:var(--muted);white-space:nowrap}
.v2 .mmx-meta>*{flex:none}
.v2 .mmx-meta .k{color:var(--k);font-weight:500}
.v2 .mmx-meta .s{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .mmx-meta .tag.nw{background:var(--accent-bg);color:var(--accent-fg,var(--fg))}
.v2 .mmx-m .acts{display:flex;opacity:0;transition:opacity .2s}
.v2 .mmx-m:focus-within .acts{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .mmx-m:hover .acts{opacity:1}}
/* Forget's glyph ends on the content's edge, under the filter, its hover circle reaching out round it */
.v2 .mmx-m .ib{width:24px;height:24px}
.v2 .mmx-m .acts{margin-right:-6px}
.v2 .mmx-m.learn .acts{visibility:hidden}
/* a memory an answer uses pulses once with a quiet grey fill, and its source lifts */
.v2 .mmx-m.use{animation:v2-mmxuse 1.4s var(--ease)}
.v2 .mmx-m.use .mmx-src{animation:v2-mmxlift .6s var(--ease)}
/* (the pulse is an inset shade, not the row's fill, so the gliding hover, which clears the rows' own fills, never hides it) */
@keyframes v2-mmxuse{0%{box-shadow:inset 0 0 0 99px var(--hover)}100%{box-shadow:inset 0 0 0 99px transparent}}
@keyframes v2-mmxlift{40%{transform:translateY(-2px) scale(1.08)}}
/* a forgotten memory leaves a line with its Undo in its place: the words on the memories' mark column, Undo ending where their
   actions end */
.v2 .mmx-gone{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:32px;padding:4px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:12.5px;color:var(--muted);background:var(--chip)}
.v2 .mmx-gone span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .mmx-gone button{flex:none;color:var(--accent-fg,var(--accent));font-weight:500;font-size:12.5px}
/* the line at the foot: how often the memory is used, or the answer it is helping with now; its mark centred in the memories'
   mark column and its words on their words column */
.v2 .mmx-f{display:flex;align-items:center;gap:12px;margin-top:var(--s-1);padding:var(--s-4) 0 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;line-height:18px;color:var(--muted)}
.v2 .mmx-fi{display:grid;place-items:center;flex:none;width:28px;color:var(--fg2)}
.v2 .mmx-fi .brand{width:14px;height:14px}
.v2 .mmx-ft{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .mmx-ft.sw{display:block}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .mmx-m.use{animation:v2-mmxusebp .9s steps(3,end)}
@keyframes v2-mmxusebp{0%{box-shadow:inset 0 0 0 99px var(--hover)}100%{box-shadow:inset 0 0 0 99px transparent}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .mmx-m.use .mmx-src{animation:v2-mmxbp .9s steps(1,end)}
@keyframes v2-mmxbp{0%,50%{box-shadow:inset 0 0 0 1px var(--line-strong)}51%,100%{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .mmx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .mmx .ib:active{transform:none}
/* Studio (owner, 18 Nov): the head's mark is the neutral tile with a hairline that the sources' marks have; the rows' fills are
   concentric with the card (14px, 8px in); an edited memory is a field with Studio's 10px corners; the footer is an off-white foot
   strip, edge to edge, its mark and words on the card's columns */
:root[data-style="studio"] .v2 .mmx-ic{color:var(--fg2);background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .mmx-src{box-shadow:inset 0 0 0 1px var(--hair)}
/* the head is an off-white head strip, its mark and title 16px from the strip's top and from the tabs (--strip-y), and the
   tabs end it, on its off-white, as Notifications' do (owner, 28 Nov) */
:root[data-style="studio"] .v2 .mmx-h{margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) calc(-1 * var(--s-2));padding:var(--strip-y) var(--s-4);background:var(--strip);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 :is(.mmx-m,.mmx-gone){border-radius:calc(var(--r-card) - 8px);transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .mmx-m .t[contenteditable="true"]{padding:1px 6px;margin:-1px -6px;border-radius:var(--r-field)}
:root[data-style="studio"] .v2 .mmx-m .acts{transition:opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .mmx-f{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:var(--s-1) calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:0 var(--s-4);background:var(--strip);border-top-color:var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .mmx-m.use{animation:v2-mmxuse 1.4s var(--ease)}
/* ---------- Tools and connections ---------- */
/* the tools the agent can reach, each with an Off, Ask or Allow switch. The card sits on two columns (owner, 18 Nov), its
   content 16px from every edge: the head's neutral mark in a 28px column with each tool's mark under it, and the title and
   each tool's words 12px after it; the switches, Reconnect and Test all's words end on the content's right edge, and each
   row shares one centre line. A row is not a button, so it has no hover fill. A tool's state is a small dot after its name,
   beside it and never over its mark: green while it is connected, red once it has failed, a turning ring while it is tested
   (the -mark colours, 3:1), none while it is off, when the row dims. Its mark is the tool's logo on a white tile, or its icon
   on a vivid tile of its colour (white or the colour's own ink on it). A test's progress and result are a line in the foot,
   beside Connect a tool. The card grows and shrinks with its rows (grow()) */
.v2 .hnx{padding:var(--s-4);display:flex;flex-direction:column}
.v2 .hnx.growing:has(.pop.open){overflow:visible}
.v2 .hnx-h{display:flex;align-items:center;gap:var(--s-3);padding-bottom:var(--s-2)}
.v2 .hnx-hi{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:calc(8px * var(--rk-m,var(--rk)));color:var(--fg2);background:var(--chip)}
.v2 .hnx-ht{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .hnx-h b{font-weight:500;font-size:14px;line-height:20px}
/* a test's progress and result sit in the foot, beside Connect a tool, its words ending on the content's right edge */
/* the foot sits under a hairline in Soft and Blueprint (owner, 21 Nov: "blueprint should have divider lines at the bottom"),
   its button's words 16px from the hairline and 16px from the card's bottom edge (owner, 23 Nov): the ghost button's 32px box
   reaches 6px round its words, so the foot has 10px above it and reaches 6px into the card's bottom padding. Studio's is a foot
   strip (below) */
.v2 .hnx-ft{display:flex;align-items:center;gap:var(--s-3);margin-top:0;margin-bottom:-6px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .hnx-st{display:flex;align-items:center;gap:5px;min-width:0;margin-left:auto;height:18px;font-size:12px;line-height:18px;white-space:nowrap}
.v2 .hnx-st>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .hnx-st .i{flex:none;color:var(--ok-mark)}
.v2 .hnx-st .shim{font-size:inherit}
.v2 .hnx-st:empty{display:none}
/* Test all: its hover box ends on the content's right edge (a box that fills keeps the card's 16px); it is as wide as its
   words, and eases to its new width when they change */
.v2 .hnx-test{flex:none;overflow:hidden}
.v2 .hnx-test .spin{width:11px;height:11px}
.v2 .hnx-list{display:flex;flex-direction:column}
.v2 .hnx-t{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);padding:var(--s-2) 0;font-size:13px}
.v2 .hnx-t .ic{width:28px;height:28px;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center;transition:opacity var(--t-fast) var(--ease)}
.v2 .hnx-t .ic.brandic{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);color:var(--fg)}
.v2 .hnx-t .ic .brand{width:15px;height:15px}
.v2 .hnx-t .t{min-width:0;display:flex;flex-direction:column}
.v2 .hnx-t .nm{display:flex;align-items:center;gap:6px;min-width:0;line-height:20px;transition:color var(--t-fast) var(--ease)}
.v2 .hnx-t .nm>span:first-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .hnx-t .d{font-size:12px;line-height:18px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .hnx-t.err .d{color:var(--bad);white-space:normal;text-wrap:pretty}
/* the state: a dot after the name (connected, failed), a turning ring while it is tested */
.v2 .hnx-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--ok-mark);transition:background-color var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .hnx-t.err .hnx-dot{background:var(--bad-mark)}
.v2 .hnx-t.off .hnx-dot{opacity:0}
.v2 .hnx-t.chk .hnx-dot{width:10px;height:10px;box-sizing:border-box;background:none;border:1.5px solid var(--accent-mark,var(--accent));border-right-color:transparent;opacity:1;animation:v2-rot .8s linear infinite;transition:none}
/* the turning ring stays round in Blueprint, as its other loaders do */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .hnx-t.chk .hnx-dot{border-radius:50%!important}
/* off: the mark fades and the name steps down to muted, so the text stays readable */
.v2 .hnx-t.off .ic{opacity:.5}
.v2 .hnx-t.off .nm{color:var(--muted)}
/* the same pill switch as every other segmented switch */
.v2 .hnx-pm{display:grid;grid-template-columns:repeat(3,auto);padding:2px;border-radius:var(--r-pill);background:var(--chip);position:relative}
.v2 .hnx-pm button{position:relative;z-index:1;height:24px;padding:0 9px;border-radius:var(--r-pill);font-size:11.5px;color:var(--muted);transition:color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .hnx-pm button:hover{color:var(--fg2)}}
.v2 .hnx-pm button[aria-pressed="true"]{color:var(--fg)}
.v2 .hnx-pm button:focus-visible{outline-offset:-2px}
.v2 .hnx-pm .kn{position:absolute;top:2px;bottom:2px;border-radius:var(--r-pill);background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.08);transition:left var(--t) var(--ease),width var(--t) var(--ease)}
.v2 .hnx-t .pill .spin{width:11px;height:11px}
/* Connect a tool: its + centred in the marks' column and its words on the title's; the hover box starts on the content's edge */
.v2 .hnx-add{display:flex;align-items:center;gap:var(--s-3);flex:none;height:32px;padding:0 var(--s-3) 0 0;font-size:13px;color:var(--fg2);border-radius:calc(8px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
.v2 .hnx-add>.i{width:28px;padding:0 8px;box-sizing:border-box}
.v2 .hnx-add[aria-expanded="true"]{color:var(--fg);background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .hnx-add:hover{color:var(--fg);background:var(--row)}}
.v2 .hnx-pop{min-width:220px}
/* its motion (the core's motion pieces, owner, 26 Nov): Connect a tool's menu grows out of its button and goes back quicker,
   its rows settle one after another and one highlight glides between them (.mx-pop, .mx-rows, .mx-glide); a press shows at once
   (.mx-press); Test all eases to the width of its new words on the spring (mxWidth()); the card grows on the spring (.mx-grow) */
.v2 .hnx-pop .mi .brand{width:12px;height:12px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .hnx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .hnx .ib:active{transform:none}
/* Studio (owner, 17 and 18 Nov): the head an off-white strip with a hairline under it, Test all a flat secondary button 16px
   from the strip's top and bottom (owner, 23 Nov) and from the card's right edge; the tools' marks one neutral grey with a hairline (their logos keep their own
   colours); Connect a tool a flat secondary button on an off-white foot strip, 16px from its top and bottom and 16px in from
   the sides like everything in the card (21 Nov); the content 16px in from each edge and 16px from each strip; the switch is Studio's, a white knob on a track with an inner shadow */
:root[data-style="studio"] .v2 .hnx.panel{padding:0}
/* the strips' buttons sit on the content's columns (owner, 21 Nov: "why do the components on the left have all different
   alignment?", "same on the right"): Test all ends where the switches end, 16px in, and Connect a tool starts where the marks
   start, 16px in; the strips keep 16px above and below them too (owner, 23 Nov) */
:root[data-style="studio"] .v2 .hnx-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .hnx-hi{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .pill.hnx-test{margin:0;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pill.hnx-test:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .pill.hnx-test:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .pill.hnx-test[disabled]{color:var(--muted);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pill.hnx-test[disabled]:hover{color:var(--muted);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}}
:root[data-style="studio"] .v2 .hnx-st .i{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
:root[data-style="studio"] .v2 .hnx-list{padding:var(--s-2) var(--s-4)}
:root[data-style="studio"] .v2 .hnx-t .ic,:root[data-style="studio"] .v2 .hnx-t .ic.brandic{background:var(--surface)!important;color:var(--fg2)!important;box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .hnx-pm{background:var(--chip);box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 .hnx-pm .kn{background:var(--knob);box-shadow:var(--knob-shadow);transition:left var(--t) var(--ease),width var(--t) var(--ease)}
:root[data-style="studio"] .v2 .hnx-pm button{color:var(--muted);font-weight:500;transition:color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .hnx-pm button[aria-pressed="true"]{color:var(--fg)}
:root[data-style="studio"] .v2 .hnx-ft{margin-top:0;margin-bottom:0;padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .hnx-add{gap:6px;height:28px;margin:0;padding:0 12px 0 10px;border-radius:var(--r-pill);font-weight:500;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .hnx-add>.i{width:12px;padding:0}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.hnx-add:hover,.hnx-add[aria-expanded="true"]){background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .hnx-add:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .hnx-pop{padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .hnx-pop .mi{border-radius:calc(var(--r-card) - 6px)}
/* ---------- Knowledge sources ---------- */
/* what the agent knows: each source with its type, its size and how far it is indexed. The card sits on two columns (owner,
   18 Nov), its content 16px from every edge: the head's neutral mark in a 28px column with each source's mark under it, and
   the title and each source's words 12px after it; the menu buttons' glyphs end on the content's right edge. A row is not a
   button, so it has no hover fill. The line under a source's name is its state, led by its mark (beside it, never over the
   source's own): a green tick and what it holds once it is indexed, a clock while it waits, a bar and a count that shimmers
   while it is read, and a red sign with the reason once it has failed, with a fix under it. A type's mark is a vivid tile of
   its colour with white or the colour's own ink on it. The card grows and shrinks with its rows (grow()) */
.v2 .ksx{padding:var(--s-4);display:flex;flex-direction:column}
.v2 .ksx.growing:has(.pop.open){overflow:visible}
.v2 .ksx-h{display:flex;align-items:center;gap:var(--s-3);padding-bottom:var(--s-2)}
.v2 .ksx-hi{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:calc(8px * var(--rk-m,var(--rk)));color:var(--fg2);background:var(--chip)}
.v2 .ksx-h>div{flex:1;display:flex;flex-direction:column;min-width:0}
.v2 .ksx-h b{font-weight:500;font-size:14px;line-height:20px}
.v2 .ksx-st{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ksx-list{display:flex;flex-direction:column;margin-inline:calc(-1 * var(--s-2))}
/* a source's hover fill reaches 8px out round its row, with the rows' corners, while its tile and words stay on the card's
   16px column (owner, 26 Nov: "highlight here doesn't work for studio") */
.v2 .ksx-s{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);padding:var(--s-2);border-radius:var(--r-in);font-size:13px}
.v2 .ksx-s .ic{width:28px;height:28px;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center}
.v2 .ksx-s .t{min-width:0;display:flex;flex-direction:column}
.v2 .ksx-s .nm{line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ksx-s .d{display:flex;align-items:center;gap:5px;min-width:0;height:18px;font-size:12px;color:var(--muted)}
.v2 .ksx-s .d>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ksx-s .d>.i{flex:none;color:var(--muted)}
.v2 .ksx-s[data-st="ready"] .d>.i{color:var(--ok-mark)}
.v2 .ksx-s[data-st="failed"] .d{color:var(--bad)}
/* why it failed is never cut short: on a narrow card it wraps, its sign on the first line */
.v2 .ksx-s[data-st="failed"] .d{height:auto;min-height:18px;align-items:flex-start;line-height:18px}
.v2 .ksx-s[data-st="failed"] .d>.i{margin-top:3px}
.v2 .ksx-s[data-st="failed"] .d>span:last-child{white-space:normal;text-wrap:pretty}
.v2 .ksx-s[data-st="failed"] .d>.i{color:var(--bad-mark)}
.v2 .ksx-s .d .shim{font-size:inherit}
.v2 .ksx-s[data-st="indexing"] .d{gap:var(--s-2)}
.v2 .ksx-bar{width:56px;height:4px;border-radius:var(--r-tiny,2px);background:var(--line);overflow:hidden;flex:none}
.v2 .ksx-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent-mark,var(--accent));transition:width .2s linear}
/* the menu button: its hover circle ends on the content's right edge (a box that fills keeps the card's 16px) */
.v2 .ksx-more{width:28px;height:28px}
.v2 .ksx-s .ksx-fx{grid-column:2/-1}
.v2 .ksx-fx>div{overflow-clip-margin:0px}
.v2 .ksx-fx>div>div{display:flex;flex-wrap:wrap;gap:6px;padding-top:var(--s-2)}
/* Add source: its + centred in the marks' column and its words on the title's; the hover box starts on the content's edge */
.v2 .ksx-add{display:flex;align-items:center;gap:var(--s-3);align-self:flex-start;height:32px;margin-top:var(--s-1);padding:0 var(--s-3) 0 0;font-size:13px;color:var(--fg2);border-radius:calc(8px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
.v2 .ksx-add>.i{width:28px;padding:0 8px;box-sizing:border-box}
.v2 .ksx-add[aria-expanded="true"]{color:var(--fg);background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .ksx-add:hover{color:var(--fg);background:var(--row)}}
.v2 .ksx-pop{width:248px}
/* switching the open menu to another view (a website, a folder) shows its first line at once and settles the rest after it, so
   the menu never shows empty for a moment (the 40ms lead of .mx-rows is for a menu opening from its button) */
.v2 .ksx-pop.mx-sw>:first-child{animation:none}
.v2 .ksx-pop.mx-sw>*{animation-delay:calc((var(--mx-i,0) - 1) * var(--mx-step))}
/* its motion (the core's motion pieces, owner, 26 Nov): its menus grow out of their buttons and go back quicker, their rows
   settle one after another (a menu's next step too) and one highlight glides between them; one highlight glides from source to
   source in every style (.mx-glide); a press shows at once (.mx-press); the card grows on the spring (.mx-grow) */
.v2 .ksx-mpop{min-width:160px}
.v2 .ksx-mpop .mi.del,.v2 .ksx-mpop .mi.del .i{color:var(--bad)}
@media (hover:hover) and (pointer:fine){.v2 .ksx-mpop .mi.del:hover{background:var(--bad-bg)}}
.v2 .ksx-mpop .mi[disabled],.v2 .ksx-mpop .mi[disabled] .i{opacity:1;cursor:not-allowed;background:none;color:var(--dis)}
.v2 .ksx-web{display:flex;flex-direction:column;gap:var(--s-1)}
/* (the field holds the site's small button, 28px, with 4px round it) */
.v2 .ksx-in{display:flex;align-items:center;gap:var(--s-2);height:36px;margin:0 2px 2px;padding:0 var(--s-1) 0 10px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ksx-in{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .ksx-in:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ksx-in input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--fg)}
.v2 .ksx-in input::placeholder{color:var(--muted)}
/* nothing left: the empty state (the lab's): a small sketch of the list on a white card, a title, one muted line
   and Add source as an outline button */
.v2 .ksx-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 16px 20px;text-align:center}
.v2 .ksx-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .ksx-em>span:not(.ksx-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .ksx-em .pill{margin-top:12px}
.v2 .ksx-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 16px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .ksx-em-art::before{content:"";position:absolute;left:14px;top:13px;width:12px;height:12px;border-radius:4px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--wash))}
.v2 .ksx-em-art::after{content:"";position:absolute;left:34px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--wash))}
.v2 .ksx-list:not(:empty)~.ksx-em,.v2 .ksx-list:empty~.ksx-ft{display:none}
/* the foot sits under a hairline in Soft and Blueprint (owner, 21 Nov), its button's words 16px from the hairline and 16px from
   the card's bottom edge (owner, 23 Nov): the ghost button's 32px box reaches 6px round its words, so the foot has 10px above it
   and reaches 6px into the card's bottom padding. Studio's is a foot strip */
.v2 .ksx-ft{margin-bottom:-6px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ksx-ft .ksx-add{margin-top:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ksx-em-art{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 60%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.ksx-em-art::before,.ksx-em-art::after){border-radius:0}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .ksx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .ksx .ib:active{transform:none}
/* Studio (owner, 17 and 18 Nov): the head an off-white strip with a hairline under it; the sources' marks one neutral grey
   with a hairline; Add source a flat secondary button on an off-white foot strip, 16px from the card's edges and the
   strip's hairline (owner, 23 Nov); the content 16px
   in from each edge and 16px from each strip; menus scale and fade from their button, with the card's corners */
:root[data-style="studio"] .v2 .ksx.panel{padding:0}
:root[data-style="studio"] .v2 .ksx-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .ksx-hi{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .ksx-list{margin-inline:0;padding:var(--s-2)}
:root[data-style="studio"] .v2 .ksx-list:empty{padding:0}
:root[data-style="studio"] .v2 .ksx-s .ic{background:var(--surface)!important;color:var(--fg2)!important;box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .ksx-s[data-st="ready"] .d>.i{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
:root[data-style="studio"] .v2 .ksx-ft{margin-bottom:0;padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .ksx-add{gap:6px;height:28px;margin:0;padding:0 12px 0 10px;border-radius:var(--r-pill);font-weight:500;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ksx-add>.i{width:12px;padding:0}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.ksx-add:hover,.ksx-add[aria-expanded="true"]){background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ksx-add:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .ksx .pill.ghost:not([disabled]){color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ksx .pill.ghost:not([disabled]):hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ksx .pill.ghost:not([disabled]):active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 :is(.ksx-pop,.ksx-mpop){padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 :is(.ksx-pop,.ksx-mpop) .mi{border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .ksx-pop .ph{padding-inline:10px}
:root[data-style="studio"] .v2 .ksx-in{margin:0;padding-right:var(--s-1);border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .ksx-em{padding:28px 16px 30px}
/* ---------- Recurring jobs ---------- */
/* recurring agent tasks: the schedule in words, when it runs next and how its last run went, with Run now and an on/off
   switch. The card sits on two columns (owner, 18 Nov), its content 16px from every edge: the head's neutral mark in a 28px
   column with each run's mark under it, and the title and each run's words 12px after it; each run's mark, its three lines
   and its controls share one centre line, and the switches end on the content's right edge. A row is not a button, so it has
   no hover fill. The last line is the result, led by its mark (beside it, never over the run's own): a green tick when it
   passed, a red sign and the reason when it failed, with the fix under it, and a turning ring with words that shimmer while it
   runs. A paused one dims and says so. A run's mark is its tool's logo on a white tile, or its icon on a vivid tile of its
   colour (white or the colour's own ink on it). The card grows and shrinks with its rows (grow()) */
.v2 .shx{padding:var(--s-4);display:flex;flex-direction:column}
.v2 .shx.growing:has(.pop.open){overflow:visible}
.v2 .shx-h{display:flex;align-items:center;gap:var(--s-3);padding-bottom:var(--s-2)}
.v2 .shx-hi{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:calc(8px * var(--rk-m,var(--rk)));color:var(--fg2);background:var(--chip)}
.v2 .shx-h>div{flex:1;display:flex;flex-direction:column;min-width:0}
.v2 .shx-h b{font-weight:500;font-size:14px;line-height:20px}
.v2 .shx-st{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .shx-list{display:flex;flex-direction:column}
.v2 .shx-r{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);padding:var(--s-2) 0;font-size:13px}
.v2 .shx-r .ic{width:28px;height:28px;border-radius:calc(8px * var(--rk-m,var(--rk)));display:grid;place-items:center;grid-row:1/4;align-self:center;transition:opacity var(--t-fast) var(--ease)}
.v2 .shx-r .ic.brandic{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);color:var(--fg)}
.v2 .shx-r .ic .brand{width:15px;height:15px}
/* the name, the schedule and the result take the words' column; Run now and the switch sit beside all three */
.v2 .shx-r .t{display:contents}
.v2 .shx-r :is(.nm,.d,.res){grid-column:2;transition:color var(--t-fast) var(--ease)}
.v2 .shx-r .nm{line-height:20px}
/* a paused one dims: its tile fades, and its name and result step down to muted, so the text stays readable */
.v2 .shx-r.off .ic{opacity:.5}.v2 .shx-r.off :is(.nm,.res .i){color:var(--muted)}
.v2 .shx-r .nm,.v2 .shx-r .d{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .shx-r .d{font-size:12px;line-height:18px;color:var(--muted)}
.v2 .shx-r .res{display:flex;align-items:center;gap:5px;min-width:0;height:18px;font-size:12px;color:var(--muted)}
.v2 .shx-r .res>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .shx-r .res .shim{font-size:inherit}
.v2 .shx-r .res .i{flex:none;color:var(--ok-mark)}
.v2 .shx-r .res .spin{width:11px;height:11px;margin:0 .5px;color:var(--accent-mark,var(--accent))}
.v2 .shx-r[data-st="bad"] .res{color:var(--bad)}
/* why it failed is never cut short: on a narrow card it wraps, its sign on the first line */
.v2 .shx-r[data-st="bad"] .res{height:auto;min-height:18px;align-items:flex-start;line-height:18px}
.v2 .shx-r[data-st="bad"] .res .i{margin-top:3px}
.v2 .shx-r[data-st="bad"] .res>span{white-space:normal;text-wrap:pretty}
.v2 .shx-r[data-st="bad"] .res .i{color:var(--bad-mark)}
.v2 .shx-act{grid-column:3;grid-row:1/4;align-self:center;display:flex;align-items:center;gap:var(--s-2)}
/* Run now is a labelled ghost button (owner, 28 Nov), so the switch is the one control on the row's right edge */
.v2 .shx-run.pill{padding:0 var(--s-2)}
.v2 .shx-run:disabled{opacity:1;cursor:not-allowed;background:none;color:var(--dis);transform:none}
.v2 .shx-r .shx-fx{grid-column:2/-1;grid-row:4}
.v2 .shx-fx>div{overflow-clip-margin:0px}
.v2 .shx-fx>div>div{display:flex;flex-wrap:wrap;gap:6px;padding-top:var(--s-2)}
.v2 .shx-fx .pill .spin{width:11px;height:11px}
/* New schedule: its + centred in the marks' column and its words on the title's; the hover box starts on the content's edge */
.v2 .shx-add{display:flex;align-items:center;gap:var(--s-3);align-self:flex-start;height:32px;margin-top:var(--s-1);padding:0 var(--s-3) 0 0;font-size:13px;color:var(--fg2);border-radius:calc(8px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* the foot sits under a hairline in Soft and Blueprint, 16px under the last row's words (owner, 30 Nov: "and then add some
   spacing"); the button's words sit 16px under the hairline and 16px from the card's bottom edge. Studio's is a foot strip */
.v2 .shx-ft{margin-top:var(--s-2);margin-bottom:-6px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .shx-ft .shx-add{margin-top:0}
.v2 .shx-add>.i{width:28px;padding:0 8px;box-sizing:border-box}
.v2 .shx-add[aria-expanded="true"]{color:var(--fg);background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .shx-add:hover{color:var(--fg);background:var(--row)}}
/* its motion (the core's motion pieces, owner, 26 Nov): New schedule and Run now press at once (.mx-press; Studio keeps its
   button's own press); the New schedule dialog grows out of its button and goes back into it quicker (.mx-pop); the card grows
   on the spring (.mx-grow) */
.v2 .shx-pop{width:272px;padding:var(--s-3)}
.v2 .shx-f{display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .shx-f h4{margin:0 0 2px;font-size:13px;font-weight:500}
.v2 .shx-in{width:100%;height:32px;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:0 10px;font:inherit;font-size:13px;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .shx-in{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .shx-in::placeholder{color:var(--muted)}
.v2 .shx-in:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .shx-rep{display:flex}
.v2 .shx-rep button{flex:1 1 auto;padding:0 var(--s-2);white-space:nowrap}
.v2 .shx-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--s-1)}
.v2 .shx-days button{height:28px;border-radius:var(--r-sm);background:var(--chip);font-size:12px;color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .shx-days button:hover{background:var(--hover);color:var(--fg)}}
.v2 .shx-days button[aria-pressed="true"]{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .shx-ff{display:flex;align-items:center;gap:var(--s-2);padding-top:2px}
.v2 .shx-sum{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .shx :is(.ib,.pill,.shx-days button):active,:root[data-style="studio"] .v2 .shx .ib:active{transform:none}
/* Studio (owner, 17 and 18 Nov): the head an off-white strip with a hairline under it; the runs' marks one neutral grey with
   a hairline (their logos keep their own colours); New schedule a flat secondary button on an off-white foot strip, 8px from
   the card's edges; the content 16px in from each edge and 16px from each strip; the form's days are round chips, its fields
   10px corners, and it scales and fades from its button with the card's corners */
:root[data-style="studio"] .v2 .shx.panel{padding:0}
:root[data-style="studio"] .v2 .shx-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .shx-hi{background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .shx-list{padding:var(--s-2) var(--s-4)}
:root[data-style="studio"] .v2 .shx-r .ic,:root[data-style="studio"] .v2 .shx-r .ic.brandic{background:var(--surface)!important;color:var(--fg2)!important;box-shadow:inset 0 0 0 1px var(--hair);border-radius:10px}
:root[data-style="studio"] .v2 .shx-r .res .i{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))}
:root[data-style="studio"] .v2 .shx-r[data-st="bad"] .res .i{color:var(--bad-mark)}
:root[data-style="studio"] .v2 .shx-r.off .res .i{color:var(--muted)}
:root[data-style="studio"] .v2 .shx-run{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .shx-ft{margin-top:0;margin-bottom:0;padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .shx-add{gap:6px;height:28px;margin:0;padding:0 12px 0 10px;border-radius:var(--r-pill);font-weight:500;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .shx-add>.i{width:12px;padding:0}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.shx-add:hover,.shx-add[aria-expanded="true"]){background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .shx-add:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .shx-pop{width:288px;padding:var(--s-4);border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .shx-days button{border-radius:var(--r-pill);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* ---------- Agent harness ---------- */
/* a whole agent app in one card: chats down the side, tabs across the top, a New chat home with suggestions, and the
   conversations themselves, told with the components above */
.v2.stage-in.wide:has(>.ahx){max-width:960px}
/* the side's columns (owner, 18 Nov): its rows' fills sit 8px in from its edges and their words 16px in, under the workspace's
   tile; New chat's pencil is centred under the tile and its words start where the workspace's name does; the side's buttons
   and the chats' marks end on one right edge, the glyphs centred over the marks. The workspace switcher shares the tab strip's
   centre line, and a hover is a quiet fill that shows in light mode on whatever it sits on */
.v2 .ahx{display:flex;height:620px;overflow:hidden;container:ahx/inline-size;text-align:left;position:relative;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .ahx-side{flex:none;width:236px;display:flex;flex-direction:column;gap:2px;padding:10px;background:var(--surface);border-right:1px solid color-mix(in srgb,var(--line) 50%,transparent);transition:margin-left var(--t) var(--ease),transform var(--t) var(--ease),box-shadow var(--t) var(--ease)}
.v2 .ahx.ns .ahx-side{margin-left:-236px}
.v2 .ahx-ws{display:flex;align-items:center;gap:2px;margin-bottom:6px}
.v2 .ahx-wsb{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:34px;padding:0 var(--s-2) 0 7px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13.5px;font-weight:500;color:var(--fg);transition:background var(--t-fast)}
.v2 .ahx-wsb[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-wsb:hover{background:var(--row)}}
.v2 .ahx-wsb .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx-wsb>.i{color:var(--muted);transition:transform var(--t) var(--ease)}
.v2 .ahx-wsb[aria-expanded="true"]>.i{transform:rotate(180deg)}
/* the up-and-down icon of a switcher never flips: its two chevrons move a little apart while you point at it or its menu is
   open (owner, 8 Nov) */
.v2 .ahx-wsb[aria-expanded="true"]>.i:has(use[href$="i-unfold"]){transform:none}
.v2 svg.i:has(>use[href$="i-unfold"]){transition:transform .2s cubic-bezier(.22,1,.36,1)}
@media (hover:hover) and (pointer:fine){.v2 :is(button,[role="button"]):is(:hover,[aria-expanded="true"]) svg.i:has(>use[href$="i-unfold"]){transform:scaleY(1.22)}}
.v2 .ahx-lg{width:20px;height:20px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;flex:none;background:var(--ink);color:var(--on-ink);font-size:11px;font-weight:500;transition:background var(--t) var(--ease)}
.v2 .ahx-ws .ib,.v2 .ahx-top>.ib,.v2 .ahx-lh .ib{width:28px;height:28px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-ws .ib:hover,.v2 .ahx-top>.ib:hover,.v2 .ahx-lh .ib:hover{color:var(--fg)}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .ahx :is(.ib,.pill):active,:root[data-style="studio"] .v2 .ahx .ib:active{transform:none}
.v2 .ahx-wsp{width:212px}
.v2 .ahx-wsp .ahx-lg{width:18px;height:18px;font-size:10px}
.v2 .ahx-nav,.v2 .ahx-cv{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;padding:0 9px;border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;color:var(--fg2);transition:background var(--t-fast),box-shadow var(--t-fast),color var(--t-fast)}
.v2 .ahx-nav{color:var(--fg);font-weight:500}
.v2 .ahx-nav .i{color:var(--fg2)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-nav:hover,.v2 .ahx-cv:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx-cv[aria-current="true"]{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),0 1px 2px rgba(0,0,0,.04)}
.v2 .ahx-cv .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the chats fill the scrolling list, and a tab clips its own button: their rings are drawn inside */
.v2 .ahx-cv:focus-visible,.v2 .ahx-tb:focus-visible{outline-offset:-2px}
.v2 .ahx-lh{display:flex;align-items:center;justify-content:space-between;padding:var(--s-3) 1px 2px 9px;font-size:11.5px;color:var(--muted)}
.v2 .ahx-lh .ib{width:24px;height:24px}
/* the harness's own side (the templates borrow these classes and keep their own measures): its rows' fills 8px in from its
   edges, its words 16px in under the workspace's tile, New chat's pencil centred under the tile and its words under the
   workspace's name, and the side's buttons ending where the chats' marks do */
.v2 .ahx>.ahx-side{padding:var(--s-2)}
.v2 .ahx .ahx-ws{height:30px;margin-bottom:var(--s-2)}
.v2 .ahx .ahx-wsb{height:30px;padding:0 var(--s-2)}
.v2 .ahx :is(.ahx-nav,.ahx-cv){padding:0 7px 0 var(--s-2)}
.v2 .ahx .ahx-nav{padding-left:11px;gap:12px}
.v2 .ahx .ahx-lh{padding:var(--s-3) 2px 2px var(--s-2)}
.v2 .ahx-si{display:block;width:100%;height:32px;margin:var(--s-1) 0 6px;padding:0 var(--s-2);border:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font-size:13px;outline:0;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ahx-si{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .ahx-si:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ahx-si::placeholder{color:var(--muted)}
.v2 .ahx-si::-webkit-search-cancel-button{display:none}
.v2 .ahx-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:2px;overflow-y:auto;scrollbar-width:none}
.v2 .ahx-none{margin:0;padding:6px var(--s-2);font-size:12.5px;color:var(--muted)}
.v2 .ahx-mk{display:grid;place-items:center;width:14px;flex:none}
.v2 .ahx-mk:empty{display:none}
.v2 .ahx-mk .spin{width:10px;height:10px;color:var(--muted)}
.v2 .ahx-main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative;container:ahm/inline-size}
/* the tabs: a chat opens or comes to the front, × closes it, + opens New chat */
.v2 .ahx-top{flex:none;display:flex;align-items:center;gap:var(--s-1);height:47px;padding:0 9px 0 6px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx-menu{display:none}
.v2 .ahx.ns .ahx-menu{display:inline-grid;margin-left:2px}
.v2 .ahx-tabs{position:relative;display:flex;align-items:center;gap:2px;min-width:0;padding:2px;overflow-x:auto;scrollbar-width:none}
.v2 .ahx-tabs::-webkit-scrollbar{display:none}
.v2 .ahx-tab{flex:0 1 164px;min-width:108px;display:flex;align-items:center;height:30px;border-radius:calc(9px * var(--rk-m,var(--rk)));overflow:hidden;color:var(--fg2);transition:background var(--t-fast),box-shadow var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-tab:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx-tab.on{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),0 1px 2px rgba(0,0,0,.04)}
.v2 .ahx-tb{flex:1;min-width:0;display:flex;align-items:center;gap:7px;height:100%;padding:0 2px 0 10px;font-size:12.5px;text-align:left}
.v2 .ahx-tb .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx-tx{width:20px;height:20px;margin-right:5px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;flex:none;color:var(--muted);opacity:0;transition:opacity var(--t-fast),background var(--t-fast),color var(--t-fast)}
.v2 .ahx-tx .i{width:12px;height:12px}
.v2 .ahx-tab.on .ahx-tx,.v2 .ahx-tx:focus-visible{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .ahx-tab:hover .ahx-tx{opacity:1}}
@media (hover:hover) and (pointer:fine){.v2 .ahx-tx:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx-plus{flex:none}
.v2 .ahx-tn{display:none;place-items:center;flex:none;width:28px;height:28px;border-radius:var(--r-sm);color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
.v2 .ahx-tn[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-tn:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx-tn .num{display:grid;place-items:center;min-width:18px;height:18px;padding:0 var(--s-1);border-radius:var(--r-tiny,5px);box-shadow:inset 0 0 0 1.5px currentColor;font-size:11px;font-weight:500;line-height:1}
.v2 .ahx-tp{width:232px}
.v2 .ahx-tp .mi .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx-tp .mi .ahx-mk:empty{display:grid}
.v2 .ahx-spl{flex:none;margin-left:auto;transition:opacity var(--t) var(--ease)}
.v2 .ahx-main.home .ahx-spl{opacity:0;pointer-events:none}
.v2 .ahx-spl .spl-pill{height:30px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx-spl .spl-in{gap:7px;padding:0 var(--s-1) 0 11px;font-size:12.5px}
.v2 .ahx-spl .spl-in .g{width:14px}
.v2 .ahx-spl .spl-in .pill{height:22px;padding:0 9px;margin-left:1px;font-size:12px}
/* New chat, as a chat app opens one: the composer waits at the foot, where a chat's composer sits, and the mark and the
   greeting sit centred in the room above it. The chat on screen and New chat share that room, so the composer never moves */
.v2 .ahx-body{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);position:relative}
.v2 .ahx-feed{grid-area:1/1}
.v2 .ahx-bot{grid-area:2/1}
.v2 .ahx-home{grid-area:1/1;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:var(--s-5) 28px var(--s-2)}
.v2 .ahx-main:not(.home) .ahx-home{display:none}
.v2 .ahx-main.home .ahx-feed,.v2 .ahx-main.home .ahx-bot::before{visibility:hidden}
.v2 .ahx-hw{width:100%;max-width:600px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.v2 .ahx-hi{display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 var(--s-1);font-size:14px;font-weight:500;letter-spacing:-.4px;line-height:1.3}
.v2 .ahx-hi span{color:var(--muted)}
.v2 .ahx-hi h4{margin:0;font:inherit;color:var(--fg)}
/* the product's mark over the greeting (the DesignMe smiley in the demo; swap in your own) */
.v2 .ahx-brand{display:block;flex:none;width:30px;height:25px;margin-bottom:10px;color:var(--fg)}
.v2 .ahx-brand>svg{display:block;width:100%;height:100%}
/* a chat scrolls inside the card; each one keeps its own column, only the one on screen takes up room */
.v2 .ahx-feed{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.v2 .ahx-cols{flex:1 0 auto;display:grid}
.v2 .ahx-col{grid-area:1/1;min-width:0;width:100%;max-width:688px;margin:0 auto;display:flex;flex-direction:column;gap:var(--s-5);padding:var(--s-6) 28px 30px;transition:opacity var(--t) var(--ease)}
.v2 .ahx-col.off{visibility:hidden;height:0;padding-block:0;overflow:hidden}
.v2 .ahx-col.ff{opacity:0}
.v2 .ahx-say .w{animation:v2-lvw .5s var(--ease) both}
.v2 .ahx-fs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.v2 .ahx-fs:last-child{margin-bottom:0}
.v2 .ahx-msg{min-width:0}
/* the person's words end where the composer's send button does: a bubble's words sit 16px in, as the composer's do */
.v2 .ahx-col .bub{padding-inline:var(--s-4)}
/* the sources button of an answer in the chat keeps its words on the column's edge when it reaches it (on a phone), its hover
   box reaching out round them; on a phone it ends the row, under the tab strip's last glyph (16px in, as the panel's close is) */
.v2 .ahx-col .lva-sb{margin-right:-9px}
/* (the harness keeps its sources button as it was: favicons 5px in) */
.v2 .ahx .lva-sb{padding-left:5px}
/* a component in the chat lines up with the messages on the left, instead of centring itself as it does on its own */
.v2 .ahx-col .ahx-msg>*{margin-left:0;margin-right:auto}
/* chat components sit on the chat itself, the way a bare card shows them; an artifact and a diff keep their card */
.v2 .ahx-msg:not(.box)>.panel:not(.keep){background:none;box-shadow:none;padding-left:0;padding-right:0;border-radius:0}
/* in the chat a finished question set closes up behind its answers */
.v2 .ahx-msg .dpx-body{min-height:0}
.v2 .ahx-msg .dpx-f.leave{display:none}
/* the agent's work, gathered under one line that folds away when it is done */
.v2 .ahx-wk{display:flex;flex-direction:column;align-items:flex-start}
.v2 .ahx-wh{display:inline-flex;align-items:center;gap:var(--s-2);height:28px;padding:0 9px 0 7px;margin-left:-7px;border-radius:var(--r-pill);font-size:13.5px;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-wh:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx-wh .g{display:grid;place-items:center;width:14px;color:var(--muted)}
.v2 .ahx-wh .g:has(>svg){color:var(--ok)}
:root[data-style="studio"] .v2 .ahx-wh .g:has(>svg){color:var(--ok-mark)}
.v2 .ahx-wh .m{color:var(--muted);font-size:12.5px}
.v2 .ahx-wh>.i{color:var(--muted);transition:transform var(--t) var(--ease)}
.v2 .ahx-wh[aria-expanded="true"]>.i{transform:rotate(180deg)}
.v2 .ahx-wb{align-self:stretch}
.v2 .ahx-wl{display:flex;flex-direction:column;gap:var(--s-4);margin:var(--s-2) 0 2px 6px;padding-left:18px;border-left:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx-bot{flex:none;position:relative;padding:0 28px 18px}
.v2 .ahx-bot::before{content:"";position:absolute;left:0;right:10px;bottom:100%;height:28px;background:linear-gradient(transparent,var(--surface));pointer-events:none}
.v2 .ahx-bot .cpx{max-width:632px;margin:0 auto}
.v2 .ahx .cpx-thread{display:none}
/* (the harness's composer keeps its earlier toolbar: the attach button reaching out round its glyph, chips padded on a phone) */
.v2 .ahx .cpx-bar>.cpx-add{margin-left:-9px}
:root[data-style="studio"] .v2 .ahx .cpx-bar>.cpx-add{margin-left:-7px}
@container (max-width:400px){.v2 .ahx .cpx-bar .chip{width:auto;padding:0 8px;justify-content:normal}:root[data-style="studio"] .v2 .ahx .cpx-bar .chip{width:auto;padding:0 8px}}
.v2 .ahx .ctm-ft{gap:2px;margin-right:1px;font-size:12.5px}
.v2 .ahx .ctm-ft>span{color:var(--muted);margin-right:2px}
/* while the agent works in the chat on screen, a new message waits */
.v2 .ahx.busy .cpx-bar .cpx-send{background:var(--rail);color:var(--surface);pointer-events:none}
:root[data-style="studio"] .v2 .ahx.busy .cpx-bar .cpx-send{color:var(--surface)}
:root[data-style="studio"] .v2 .ahx.busy .cpx-bar .cpx-send::before{opacity:0}
/* the panel beside the chat, for an artifact */
/* shut, the panel is hidden as well as narrow, so Tab passes over its buttons */
.v2 .ahx-pane{flex:none;width:0;overflow:hidden;background:var(--surface);border-left:1px solid transparent;visibility:hidden;transition:width var(--t) var(--ease),border-color var(--t) var(--ease),visibility 0s var(--t)}
.v2 .ahx.pn .ahx-pane{width:300px;border-left-color:color-mix(in srgb,var(--line) 50%,transparent);visibility:visible;transition-delay:0s}
.v2 .ahx-pi{width:300px;height:100%;display:flex;flex-direction:column}
.v2 .ahx-ph{flex:none;display:flex;align-items:center;gap:var(--s-2);height:47px;padding:0 9px 0 var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;font-weight:500}
.v2 .ahx-ph .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx-ph>.i{color:var(--pb)}
.v2 .ahx-ph .ib{width:28px;height:28px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .ahx-ph .ib:hover{color:var(--fg)}}
.v2 .ahx-pb{flex:1;min-height:0;overflow-y:auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.v2 .ahx-pn{display:flex;flex-direction:column;gap:var(--s-1);font-size:13px;line-height:1.55;color:var(--fg2)}
.v2 .ahx-pn b{font-weight:500;color:var(--fg)}
.v2 .ahx-pn p{margin:0 0 10px}
/* the report opened in the panel: drawn flat, with the chart it describes */
/* its words sit on the panel's 16px edges, as the notes under it do; the head already names it, so it has no title of its own */
.v2 .ahx-doc{padding:0}
.v2 .ahx-dp{font-size:12.5px;line-height:1.5;color:var(--fg2);text-wrap:pretty}
.v2 .ahx-kp{display:flex;align-items:baseline;gap:var(--s-2);margin-top:10px}
.v2 .ahx-kp b{font-size:14px;font-weight:500;letter-spacing:-.02em}
.v2 .ahx-dd{font-size:12px;color:var(--ok)}
.v2 .ahx-ch{display:block;width:100%;height:56px;margin-top:var(--s-2);overflow:visible}
.v2 .ahx-ch .ln{fill:none;stroke:var(--accent-mark,var(--accent));stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.v2 .ahx-ax{position:relative;height:16px;margin-top:6px;font-size:10.5px;line-height:16px;color:var(--muted)}
/* each month's label sits under its own point: the first starts on the chart's left edge and the last ends on its right */
.v2 .ahx-ax span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.v2 .ahx-ax span:first-child{transform:none}
.v2 .ahx-ax span:last-child{transform:translateX(-100%)}
.v2 .ahx-scrim{display:none}
/* a narrow chat, beside the panel or on a phone: the composer keeps only what it needs */
@container ahm (max-width:560px){
  .v2 .ahx .ctm-ft>span,.v2 .ahx .cpx-bar .cpx-ctx,.v2 .ahx-spl .spl-in .m{display:none}
  .v2 .ahx-col .lva-src{justify-content:space-between}
}
/* phone: the chats slide in from the side, the tabs fold into one, the panel covers the chat */
@container ahx (max-width:620px){
  .v2 .ahx .ahx-side,.v2 .ahx.ns .ahx-side{position:absolute;z-index:6;left:0;top:0;bottom:0;width:244px;margin-left:0;background:var(--surface);transform:translateX(-101%)}
  .v2 .ahx.dr .ahx-side{transform:none;box-shadow:var(--shadow-pop)}
  .v2 .ahx-scrim{display:block;position:absolute;inset:0;z-index:5;background:rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity var(--t) var(--ease)}
  .v2 .ahx.dr .ahx-scrim{opacity:1;pointer-events:auto}
  .v2 .ahx .ahx-menu{display:inline-grid;margin-left:2px}
  .v2 .ahx-top{padding:0 9px 0 6px}
  .v2 .ahx-spl{display:none}
  /* the tabs fold into one: the chat on screen fills the row, and a count of the open chats lists them all */
  .v2 .ahx-tabs{flex:1}
  .v2 .ahx-tab:not(.on){display:none}
  .v2 .ahx-tab.on{flex:1 1 auto;min-width:0}
  .v2 .ahx-tn:not([hidden]){display:grid}
  .v2 .ahx-side{visibility:hidden;transition:transform var(--t) var(--ease),box-shadow var(--t) var(--ease),visibility 0s var(--t)}
  .v2 .ahx.dr .ahx-side{visibility:visible;transition-delay:0s}
  .v2 .ahx-pane{visibility:hidden;transition:width var(--t) var(--ease),visibility 0s var(--t)}
  .v2 .ahx.pn .ahx-pane{visibility:visible;transition-delay:0s}
  .v2 .ahx-home{padding:var(--s-4) 10px var(--s-2)}
  .v2 .ahx-col{padding:18px var(--s-4) var(--s-6)}
  .v2 .ahx-bot{padding:0 var(--s-4) var(--s-4)}
  .v2 .ahx-pane{position:absolute;z-index:4;top:0;right:0;bottom:0;border-left:0}
  .v2 .ahx.pn .ahx-pane{width:100%}
  .v2 .ahx-pi{width:100%}
}
/* Studio (owner, 18 Nov): an app screen as Studio draws one. The chats down the side, the tab strip and the panel's head are
   off-white strips over the white chat, edged with a hairline. In the strips every control is 28px and sits 8px from the
   strip's edges: the workspace switcher, the tabs (pills, the open one white with a hairline, as the open chat is), +, the
   status pill and the panel's buttons */
:root[data-style="studio"] .v2 .ahx>.ahx-side{background:var(--strip);border-right-color:var(--line)}
:root[data-style="studio"] .v2 .ahx .ahx-ws{height:28px}
:root[data-style="studio"] .v2 .ahx .ahx-wsb{height:28px}
:root[data-style="studio"] .v2 :is(.ahx-top,.ahx-ph){height:45px;background:var(--strip);border-bottom-color:var(--line)}
:root[data-style="studio"] .v2 .ahx-tabs{padding:0}
:root[data-style="studio"] .v2 .ahx-top{padding-inline:var(--s-2)}
:root[data-style="studio"] .v2 .ahx.ns .ahx-menu{margin-left:0}
:root[data-style="studio"] .v2 .ahx-tab{height:28px;border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .ahx :is(.ahx-tab.on,.ahx-cv[aria-current="true"]){box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .ahx-spl .spl-pill{height:28px}
:root[data-style="studio"] .v2 .ahx-ph{padding-right:var(--s-2)}
:root[data-style="studio"] .v2 .ahx.pn .ahx-pane{border-left-color:var(--line)}
@container ahx (max-width:620px){:root[data-style="studio"] .v2 .ahx .ahx-menu{margin-left:0}}
/* (Agent harness: staging look, start) */
/* Phase II (owner, 21 Nov): Agent harness stays as it is on staging until its own Studio pass, and so do the parts it embeds
   (Composer's Send, Status pill, Thinking, Permission gate, Plan review, Decision prompt, Source stack, the menus' rows),
   whatever their own reviews have changed since. Their staging rules are repeated here, scoped to the harness at a weight
   (.ahx four times) that wins over the reviewed ones, with Studio's tokens as they were on staging: the solid row fill and, in
   dark mode, the blue accent rather than the white one. Generated from staging's stylesheet; drop it at the harness's Studio pass */
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx{--row:#f7f7f7;--row-on:#f7f7f7}
:root[data-style="studio"][data-theme="dark"] .v2 .ahx.ahx.ahx.ahx{--row:#1a1a1a;--row-on:#1a1a1a;--accent:#116ff8;--accent-2:color-mix(in srgb,#116ff8 84%,#fff);--on-accent:#ffffff;--accent-fg:#9dc4ff;--accent-mark:#2f86ff;--accent-bg:color-mix(in srgb,#116ff8 13%,transparent);--sel:color-mix(in srgb,#116ff8 9%,transparent)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .ahx.ahx.ahx.ahx{--row:#1a1a1a;--row-on:#1a1a1a;--accent:#116ff8;--accent-2:color-mix(in srgb,#116ff8 84%,#fff);--on-accent:#ffffff;--accent-fg:#9dc4ff;--accent-mark:#2f86ff;--accent-bg:color-mix(in srgb,#116ff8 13%,transparent);--sel:color-mix(in srgb,#116ff8 9%,transparent)}}
@supports (corner-shape:squircle){.v2 .ahx.ahx.ahx.ahx .cpx-send,.v2 .ahx.ahx.ahx.ahx .plx-s .n,.v2 .ahx.ahx.ahx.ahx .ssx-ics span,.v2 .ahx.ahx.ahx.ahx .think i,.v2 .ahx.ahx.ahx.ahx .tk-st .mk{corner-shape:round}}
.v2 .ahx.ahx.ahx.ahx .think{width:14px;height:14px;position:relative;flex:none;display:inline-block}
.v2 .ahx.ahx.ahx.ahx .think i{position:absolute;width:3.4px;height:3.4px;border-radius:50%;background:currentColor;left:50%;top:50%;margin:-1.7px}
.v2 .ahx.ahx.ahx.ahx .think i:nth-child(1){transform:translate(-3.6px,-3.6px)}
.v2 .ahx.ahx.ahx.ahx .think i:nth-child(2){transform:translate(3.6px,-3.6px)}
.v2 .ahx.ahx.ahx.ahx .think i:nth-child(3){transform:translate(3.6px,3.6px)}
.v2 .ahx.ahx.ahx.ahx .think i:nth-child(4){transform:translate(-3.6px,3.6px)}
.v2 .ahx.ahx.ahx.ahx .think.on{animation:v2-thinkrot 1.6s var(--ease-io) infinite}
.v2 .ahx.ahx.ahx.ahx .think.on i{animation:v2-thinkpulse 1.6s var(--ease-io) infinite}
.v2 .ahx.ahx.ahx.ahx .think.on i:nth-child(2){animation-delay:.2s}
.v2 .ahx.ahx.ahx.ahx .think.on i:nth-child(3){animation-delay:.4s}
.v2 .ahx.ahx.ahx.ahx .think.on i:nth-child(4){animation-delay:.6s}
:root[data-theme="dark"] .v2 .ahx.ahx.ahx.ahx .ssx-ics span{color:#0d0d0d!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .ahx.ahx.ahx.ahx .ssx-ics span{color:#0d0d0d!important}}
.v2 .ahx.ahx.ahx.ahx .mi{display:flex;align-items:center;gap:10px;width:100%;padding:7px var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;color:var(--fg);transition:background var(--t-fast)}
.v2 .ahx.ahx.ahx.ahx .mi.hl{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .mi:hover{background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .mi+.mi{margin-top:2px}
.v2 .ahx.ahx.ahx.ahx .mi .i{color:var(--fg2)}
.v2 .ahx.ahx.ahx.ahx .mi .d{display:block;font-size:12px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .mi:is(:hover,.hl,[aria-checked="true"]) .d{color:var(--fg2)}}
.v2 .ahx.ahx.ahx.ahx .mi .r{margin-left:auto;color:var(--muted);font-size:12px}
.v2 .ahx.ahx.ahx.ahx .mi .ck{margin-left:auto;color:var(--accent-fg,var(--accent));opacity:0;transition:opacity var(--t-fast)}
.v2 .ahx.ahx.ahx.ahx .mi[aria-checked="true"] .ck{opacity:1}
.v2 .ahx.ahx.ahx.ahx .mi[aria-checked="true"]{background:var(--row);font-weight:500}
@media (hover:hover) and (pointer:fine){:root[data-theme="dark"] .v2 .ahx.ahx.ahx.ahx :is(.plx-s:hover .n,.tpx-r:hover .tr){background:var(--hover)}}
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-theme="light"]) .v2 .ahx.ahx.ahx.ahx :is(.plx-s:hover .n,.tpx-r:hover .tr){background:var(--hover)}}}
.v2 .ahx.ahx.ahx.ahx .spl-pill{background:var(--surface);border-radius:var(--r-pill);box-shadow:var(--shadow);height:40px;display:flex;align-items:center;overflow:hidden;transition:width .6s var(--ease),border-radius .5s var(--ease),height .5s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .spl-in{display:flex;align-items:center;gap:9px;padding:0 6px 0 14px;height:100%;white-space:nowrap;font-size:13.5px;transition:opacity .32s var(--ease),filter .32s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .spl-in.out{opacity:0;filter:blur(4px);transition-duration:.16s}
.v2 .ahx.ahx.ahx.ahx .spl-in .g{display:grid;place-items:center;width:16px;color:var(--fg2)}
.v2 .ahx.ahx.ahx.ahx .spl-in .m{color:var(--muted);font-variant-numeric:tabular-nums}
.v2 .ahx.ahx.ahx.ahx .spl-in .end{width:0}
.v2 .ahx.ahx.ahx.ahx .spl-in .pill{height:28px;margin-left:var(--s-1)}
.v2 .ahx.ahx.ahx.ahx .spl.bar .spl-pill{border-radius:var(--r-card);height:62px;align-items:flex-start}
.v2 .ahx.ahx.ahx.ahx .spl.bar .spl-in{height:46px;width:100%;padding:0 var(--s-4)}
.v2 .ahx.ahx.ahx.ahx .spl.bar .spl-in .m,.v2 .ahx.ahx.ahx.ahx .spl.bar .spl-in .pill{margin-left:auto}
.v2 .ahx.ahx.ahx.ahx .spl.bar .spl-in .end{display:none}
.v2 .ahx.ahx.ahx.ahx .spl-pill{position:relative}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl-pill{height:36px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow);transition:width .3s var(--ease),border-radius .42s var(--ease),height .42s var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl-in{gap:8px;padding:0 5px 0 13px;font-size:13px;color:var(--fg);transition:opacity .24s var(--ease),transform .24s var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl-in.out{opacity:0;filter:none;transform:translateY(-3px);transition:opacity .15s ease-in-out,transform .15s ease-in-out}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl-in .m{color:var(--muted)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl-in .pill{height:26px;padding:0 11px;border-radius:999px;margin-left:2px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl.bar .spl-pill{height:58px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .spl.bar .spl-in{height:42px;padding:0 14px}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx :is(.spl-pill,.spl-in,.spl-in.out,.spl-fill){transition:none!important}}
.v2 .ahx.ahx.ahx.ahx .stage-in:has(>.tk){overflow-anchor:none}
.v2 .ahx.ahx.ahx.ahx .tk{font-size:14px;width:100%;max-width:420px;margin-inline:auto;overflow-anchor:none}
.v2 .ahx.ahx.ahx.ahx .stage-in>.tk{min-height:inherit}
.v2 .ahx.ahx.ahx.ahx .tk-h{display:flex;align-items:center;gap:10px;width:calc(100% + 16px);margin:0 -8px;padding:6px var(--s-2);border-radius:calc(10px * var(--rk-m,var(--rk)));text-align:left;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .tk-h:hover{background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .tk-mark{width:18px;height:18px;flex:none;display:grid;place-items:center;color:var(--accent-mark,var(--accent));transition:color .3s}
.v2 .ahx.ahx.ahx.ahx .tk-h.tk-fin .tk-mark{color:var(--ok)}
.v2 .ahx.ahx.ahx.ahx .tk-h.tk-fin .tk-mark .i{animation:v2-tkpop .5s var(--ease) backwards}
.v2 .ahx.ahx.ahx.ahx .tk-title{flex:1;min-width:0;color:var(--fg)}
.v2 .ahx.ahx.ahx.ahx .tk-time{color:var(--muted);font-size:13px}
.v2 .ahx.ahx.ahx.ahx .tk-chev{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .tk[data-open="0"] .tk-chev{transform:rotate(-90deg)}
.v2 .ahx.ahx.ahx.ahx .tk-list{list-style:none;margin:0;padding:6px 0 0;display:flex;flex-direction:column}
.v2 .ahx.ahx.ahx.ahx .tk-st{position:relative;display:flex;gap:10px;padding:6px 0}
.v2 .ahx.ahx.ahx.ahx .tk-st .mk{position:relative;width:18px;height:18px;flex:none;margin-top:1px;display:grid;place-items:center;border-radius:50%;color:var(--muted);transition:background .32s,color .32s}
.v2 .ahx.ahx.ahx.ahx .tk-st .mk .spin{width:10px;height:10px}
.v2 .ahx.ahx.ahx.ahx .tk-st.run .mk{color:var(--accent-mark,var(--accent));background:var(--accent-bg);animation:v2-tkhalo 1.8s var(--ease-io) infinite}
.v2 .ahx.ahx.ahx.ahx .tk-st.done .mk{background:var(--ok-bg);color:var(--ok)}
.v2 .ahx.ahx.ahx.ahx .tk-st.done .mk .i{animation:v2-tkpop .45s var(--ease) backwards}
.v2 .ahx.ahx.ahx.ahx .tk-st.retry .mk{background:var(--warn-bg);color:var(--warn);animation:v2-tkhalow 1.8s var(--ease-io) infinite}
.v2 .ahx.ahx.ahx.ahx .tk-st .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .ahx.ahx.ahx.ahx .tk-st .tk-ln{display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .ahx.ahx.ahx.ahx .tk-st .lab{flex:1;min-width:0;color:var(--fg);transition:color .32s}
.v2 .ahx.ahx.ahx.ahx .tk-st.done .lab{color:var(--fg2)}
.v2 .ahx.ahx.ahx.ahx .tk-st .tk-dur{flex:none;font-size:12px;color:var(--muted)}
.v2 .ahx.ahx.ahx.ahx .tk-st .res{display:grid;grid-template-rows:0fr;font-size:13px;color:var(--muted);transition:grid-template-rows .32s var(--ease),color .32s}
.v2 .ahx.ahx.ahx.ahx .tk-st .res.on{grid-template-rows:1fr}
.v2 .ahx.ahx.ahx.ahx .tk-st .res>span{overflow:hidden;min-height:0}
.v2 .ahx.ahx.ahx.ahx .tk-st .res .w{display:inline-block;white-space:pre;animation:v2-tkword .42s var(--ease) backwards}
.v2 .ahx.ahx.ahx.ahx .tk-st.retry .res{color:var(--warn)}
.v2 .ahx.ahx.ahx.ahx .tk-st .res [data-tip]{text-decoration:underline dotted var(--faint);text-underline-offset:3px;cursor:default}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-st.run .mk,:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-st.retry .mk{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-st.run .mk{box-shadow:inset 0 0 0 1px var(--accent-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-st.done .mk .i,:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-h.tk-fin .tk-mark .i{animation:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .tk-st .res .w{animation:v2-bpin .3s var(--ease) backwards}
.v2 .ahx.ahx.ahx.ahx .cpx-send{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent,#fff);flex:none;transition:opacity .32s,transform .16s,background .16s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .cpx-send:hover{background:var(--accent-2)}}
.v2 .ahx.ahx.ahx.ahx .cpx-send[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
.v2 .ahx.ahx.ahx.ahx .cpx-bar>.cpx-send{flex:none}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send{width:28px;height:28px;transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send:not([disabled]){color:var(--on-btn);background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:var(--btn-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send:not([disabled]):hover{background:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2))}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send:not([disabled]):active{transform:scale(.97);box-shadow:var(--btn-press)}
.v2 .ahx.ahx.ahx.ahx .dpx{padding:var(--s-4) 0;display:flex;flex-direction:column;gap:var(--s-3);outline:0;border-radius:var(--r-in)}
.v2 .ahx.ahx.ahx.ahx .dpx.panel{padding:var(--s-4);border-radius:var(--r-card)}
.v2 .ahx.ahx.ahx.ahx .dpx:focus-visible{outline:2px solid var(--focus);outline-offset:6px}
.v2 .ahx.ahx.ahx.ahx .dpx-h{display:flex;align-items:center;justify-content:space-between}
.v2 .ahx.ahx.ahx.ahx .dpx-k{font-size:12px}
.v2 .ahx.ahx.ahx.ahx .dpx-dots{display:flex;gap:var(--s-1)}
.v2 .ahx.ahx.ahx.ahx .dpx-dots i{width:6px;height:6px;border-radius:var(--r-tiny,3px);background:var(--line);transition:width .45s var(--ease),background .35s}
.v2 .ahx.ahx.ahx.ahx .dpx-dots i.on{width:16px;background:var(--accent-mark,var(--accent))}
.v2 .ahx.ahx.ahx.ahx .dpx-dots i.done{background:var(--accent-mark,var(--accent));opacity:.4}
.v2 .ahx.ahx.ahx.ahx .dpx-body{min-height:168px}
.v2 .ahx.ahx.ahx.ahx .dpx-q{font-size:14px;font-weight:500;margin-bottom:10px;text-wrap:balance}
.v2 .ahx.ahx.ahx.ahx .dpx-o{display:flex;align-items:center;gap:10px;width:calc(100% + 20px);margin-inline:-10px;padding:9px 10px;border-radius:var(--r-in);font-size:13.5px;text-align:left;color:var(--fg2);transition:background .25s,color .25s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .dpx-o:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx.ahx.ahx.ahx .dpx-o.on{background:var(--sel);color:var(--fg)}
.v2 .ahx.ahx.ahx.ahx .dpx-o .kbd{width:20px;text-align:center;transition:background .25s,color .25s}
.v2 .ahx.ahx.ahx.ahx .dpx-o.on .kbd{background:var(--accent);color:var(--on-accent,#fff)}
.v2 .ahx.ahx.ahx.ahx .dpx-o .d{margin-left:auto;font-size:12px;color:var(--muted)}
.v2 .ahx.ahx.ahx.ahx .dpx-f{display:flex;justify-content:flex-end;gap:6px}
.v2 .ahx.ahx.ahx.ahx .dpx-sum{display:flex;flex-direction:column;gap:6px}
.v2 .ahx.ahx.ahx.ahx .dpx-sr{display:flex;gap:10px;font-size:13px;padding:7px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx.ahx.ahx.ahx .dpx-sr:last-child{border:0}
.v2 .ahx.ahx.ahx.ahx .dpx-sr span{color:var(--muted);width:92px;flex:none}
.v2 .ahx.ahx.ahx.ahx .dpx-run{display:flex;align-items:center;gap:var(--s-2);font-size:13px;margin-top:6px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .dpx.panel{padding:19px 30px 20px 30px}
.v2 .ahx.ahx.ahx.ahx .pgx{position:relative;width:100%;max-width:400px;margin:0 auto;padding:var(--s-1) 0;display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .ahx.ahx.ahx.ahx .pgx.panel{padding:var(--s-4)}
.v2 .ahx.ahx.ahx.ahx .pgx-h{display:flex;gap:var(--s-3);align-items:center}
.v2 .ahx.ahx.ahx.ahx .pgx-ic{width:32px;height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);display:grid;place-items:center;flex:none}
.v2 .ahx.ahx.ahx.ahx .pgx-ht{display:flex;flex-direction:column;min-width:0}
.v2 .ahx.ahx.ahx.ahx .pgx-ht b{font-weight:500;font-size:14px}
.v2 .ahx.ahx.ahx.ahx .pgx-ht span{font-size:13px}
.v2 .ahx.ahx.ahx.ahx .pgx-sc{display:flex;flex-direction:column}
.v2 .ahx.ahx.ahx.ahx .pgx-o{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);margin-inline:0;padding:var(--s-2) 7px var(--s-2) 0;border-radius:calc(10px * var(--rk-m,var(--rk)));cursor:pointer;font-size:13.5px;transition:background .25s}
.v2 .ahx.ahx.ahx.ahx .pgx-o>.bx{justify-self:center}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .pgx-o:hover{background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .pgx-o input{position:absolute;opacity:0;pointer-events:none}
.v2 .ahx.ahx.ahx.ahx .pgx-o .bx{width:18px;height:18px;border-radius:calc(6px * var(--rk-s,var(--rk)));box-shadow:inset 0 0 0 1.5px var(--fg2);display:grid;place-items:center;color:transparent;flex:none;transition:background .3s var(--ease),box-shadow .3s,color .3s}
.v2 .ahx.ahx.ahx.ahx .pgx-o .bx svg{transform:scale(.4);transition:transform .35s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .pgx-o input:checked+.bx{background:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent-mark,var(--accent));color:var(--on-accent,#fff)}
.v2 .ahx.ahx.ahx.ahx .pgx-o input:checked+.bx svg{transform:none}
.v2 .ahx.ahx.ahx.ahx .pgx-o input:focus-visible+.bx{outline:2px solid var(--focus);outline-offset:2px}
.v2 .ahx.ahx.ahx.ahx .pgx-o .t{flex:1;min-width:0}
.v2 .ahx.ahx.ahx.ahx .pgx-o.one{cursor:default}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .pgx-o.one:hover{background:none}}
.v2 .ahx.ahx.ahx.ahx .pgx-o.one>.oi{width:32px;height:32px;display:grid;place-items:center;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);color:var(--fg2)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o.one>.oi{box-shadow:inset 0 0 0 1px var(--hair)}
.v2 .ahx.ahx.ahx.ahx .pgx-o .d{display:block;font-size:12px;color:var(--muted)}
.v2 .ahx.ahx.ahx.ahx .pgx-f{display:flex;align-items:center;gap:6px;padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx.ahx.ahx.ahx .pgx-f .sp{flex:1}
@container (max-width:340px){.v2 .ahx.ahx.ahx.ahx .pgx-f{flex-wrap:wrap}.v2 .ahx.ahx.ahx.ahx .pgx-f .sp{flex-basis:100%}.v2 .ahx.ahx.ahx.ahx .pgx-no{margin:var(--s-2) 0 0 auto}.v2 .ahx.ahx.ahx.ahx .pgx-ok{margin-top:var(--s-2)}}
.v2 .ahx.ahx.ahx.ahx .pgx-db{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 var(--s-2) 0 10px;margin-left:0;border-radius:var(--r-pill);font-size:13px;color:var(--fg2);white-space:nowrap;transition:background .16s,color .16s}
.v2 .ahx.ahx.ahx.ahx .pgx-db[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .pgx-db:hover{background:var(--row);color:var(--fg)}}
.v2 .ahx.ahx.ahx.ahx .pgx-db>svg{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .pgx-db[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .ahx.ahx.ahx.ahx .pgx-pop{min-width:230px}
.v2 .ahx.ahx.ahx.ahx .pgx-ok[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring)}
.v2 .ahx.ahx.ahx.ahx .pgx-done{display:flex;align-items:center;gap:var(--s-3);padding:10px 7px 10px 0;border-radius:var(--r-in);background:var(--chip);font-size:13.5px}
.v2 .ahx.ahx.ahx.ahx .pgx-done>svg{margin-inline:8px}
.v2 .ahx.ahx.ahx.ahx .pgx-done .pill{background:var(--surface);color:var(--fg);box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .pgx-done .pill:hover{background:var(--surface);box-shadow:var(--on-tint-btn-h)}}
.v2 .ahx.ahx.ahx.ahx .pgx-done .t{flex:1;color:var(--fg)}
.v2 .ahx.ahx.ahx.ahx .pgx-done .t span{display:block;font-size:12px;color:var(--fg2)}
.v2 .ahx.ahx.ahx.ahx .pgx-done>svg{color:var(--ok)}
.v2 .ahx.ahx.ahx.ahx .pgx-done .g{width:32px;height:18px;display:grid;place-items:center;flex:none;color:var(--fg2)}
.v2 .ahx.ahx.ahx.ahx .pgx-done.ok .g{color:var(--ok)}
.v2 .ahx.ahx.ahx.ahx .pgx-done .t b{display:block;font-weight:400}
.v2 .ahx.ahx.ahx.ahx .pgx-ic{transition:background .32s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .pgx-scope{display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .ahx.ahx.ahx.ahx .pgx-sum{display:none}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel{padding:16px 16px 0;overflow:clip;overflow-clip-margin:0px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel:has(.pgx-pop.open){overflow:visible}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-ic{box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-ht b{line-height:20px;letter-spacing:-.01em}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-ht span,:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o .d,:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-done .t span{line-height:18px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx :is(.pgx-o,.pgx-done) .t{line-height:20px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;column-gap:12px;transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o>.bx{justify-self:center}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o+.pgx-o{background-image:linear-gradient(var(--hair),var(--hair));background-repeat:no-repeat;background-position:0 0;background-size:100% 1px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx :is(.pgx-o:hover,.pgx-o:hover+.pgx-o){background-image:none}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o .bx{border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--fg2),var(--track-ring);transition:background .2s var(--ease),box-shadow .2s var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o .bx svg{transform:none;stroke-dasharray:21;stroke-dashoffset:21;transition:stroke-dashoffset .3s var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o input:checked+.bx{background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:inset 0 0 0 1px var(--btn-2),inset 0 2px 3px -1px rgba(255,255,255,.28);color:var(--on-btn)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o input:checked+.bx svg{stroke-dashoffset:0;transition-delay:.06s}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-o:active .bx{transform:scale(.94);transition:transform var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-sc{margin-bottom:-4px}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-f{margin:0 -16px;padding:8px;gap:4px;border-top:1px solid var(--line);background:var(--strip);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-f .pgx-db{padding:0 8px;margin:0;color:var(--fg2);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-f :is(.pgx-db:hover,.pgx-db[aria-expanded="true"],.pill.ghost:hover){background:var(--hover);color:var(--fg)}}
@container (max-width:340px){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-no{margin:0 0 0 auto}:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-ok{margin-top:0}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt{display:inline-grid}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt>i{grid-area:1/1;font-style:normal;font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt>.iu{animation:v2-pgxiu .22s var(--ease) .1s both}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt>.ou{animation:v2-pgxou .16s var(--ease) both}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt>.id{animation:v2-pgxid .22s var(--ease) .1s both}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-cnt>.od{animation:v2-pgxod .16s var(--ease) both}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done{display:grid;grid-template-columns:32px minmax(0,1fr) auto;grid-template-rows:auto 45px;column-gap:12px;row-gap:16px;align-items:center;padding:0;border-radius:0;background:none!important}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>:is(.g,svg){grid-area:1/1}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>.t{grid-area:1/2}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done .t b{font-weight:500}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done .t b span{font-size:inherit;line-height:inherit;color:inherit}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done .t span{color:var(--muted)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>.pill{grid-area:2/3;z-index:1;align-self:end;margin:0 -8px 8px 0;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>.pill:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>.pill:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-sum{display:block;grid-area:2/1/3/-1;align-self:stretch;margin:0 -16px -240px;padding:8px 88px 248px 16px;border-top:1px solid var(--line);background:var(--strip);line-height:28px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-sum .s{display:none}
@container (max-width:340px){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-sum .l{display:none}:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx-sum .s{display:inline}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done .g{width:32px;height:32px;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);color:var(--fg2);transition:background-color .3s var(--ease),box-shadow .3s var(--ease)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done.ok .g{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ok-mark);color:var(--ok-mark)}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done.ok .g svg{width:16px;height:16px;stroke-width:2;stroke-dasharray:21;animation:v2-pgxdraw .5s var(--ease) .12s both}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .pgx.panel .pgx-done>svg{width:32px;height:32px;margin:0;padding:8px;box-sizing:border-box;border-radius:50%;background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair);color:var(--fg2)}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx :is(.pgx-o .bx,.pgx-o .bx svg,.pgx-done .g){transition:none}:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx :is(.pgx-cnt>i,.pgx-done.ok .g svg){animation:none}}
.v2 .ahx.ahx.ahx.ahx .plx{padding:14px 0;display:flex;flex-direction:column;gap:10px}
.v2 .ahx.ahx.ahx.ahx .plx.panel{padding:14px}
.v2 .ahx.ahx.ahx.ahx .plx-h{display:flex;align-items:center;gap:10px}
.v2 .ahx.ahx.ahx.ahx .plx-mk{color:var(--accent-fg,var(--accent))}
.v2 .ahx.ahx.ahx.ahx .plx-ht{display:flex;flex-direction:column;min-width:0}
.v2 .ahx.ahx.ahx.ahx .plx-ht b{font-weight:500;font-size:13.5px}
.v2 .ahx.ahx.ahx.ahx .plx-st{font-size:12.5px}
.v2 .ahx.ahx.ahx.ahx .plx-list{list-style:none;margin:0 -6px;padding:0;display:flex;flex-direction:column;counter-reset:s}
.v2 .ahx.ahx.ahx.ahx .plx-s{display:flex;align-items:flex-start;gap:10px;padding:7px 6px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;transition:background .25s,opacity .35s;position:relative}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .plx-s:hover{background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .plx-s .n{width:20px;height:20px;border-radius:50%;background:var(--chip);display:grid;place-items:center;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);flex:none;transition:background .35s,color .35s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .plx-s:hover .n{background:var(--surface)}}
/* (the harness keeps its own skip button and number) */
.v2 .ahx.ahx.ahx.ahx .plx-s .ib{margin-block:0}
.v2 .ahx.ahx.ahx.ahx .plx-s .n{margin-top:0}
.v2 .ahx.ahx.ahx.ahx .plx-s .b{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .ahx.ahx.ahx.ahx .plx-s .t{min-width:0;outline:0;border-radius:var(--r-tiny,5px);padding:1px 3px;margin:0 -3px;line-height:1.5}
.v2 .ahx.ahx.ahx.ahx .plx-s .d{font-size:12px;color:var(--muted);display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .plx-s .d.on{grid-template-rows:1fr}
.v2 .ahx.ahx.ahx.ahx .plx-s .d>span{overflow:hidden;min-height:0}
.v2 .ahx.ahx.ahx.ahx .plx-s .d.warn{color:var(--warn)}
.v2 .ahx.ahx.ahx.ahx .plx-tm{margin-left:auto;font-size:12px;color:var(--muted)}
.v2 .ahx.ahx.ahx.ahx .plx-tm:empty{display:none}
.v2 .ahx.ahx.ahx.ahx .plx-s .n .spin{width:10px;height:10px}
.v2 .ahx.ahx.ahx.ahx .plx-s .t:focus{background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ahx.ahx.ahx.ahx .plx-s .ib{width:24px;height:24px;opacity:0;transition:opacity .2s}
.v2 .ahx.ahx.ahx.ahx .plx-s .ib:focus-visible{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .plx-s:hover .ib{opacity:1}}
.v2 .ahx.ahx.ahx.ahx .plx-s.off{opacity:.45}
.v2 .ahx.ahx.ahx.ahx .plx-s.off .t{text-decoration:line-through}
.v2 .ahx.ahx.ahx.ahx .plx-s.run .n{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .ahx.ahx.ahx.ahx .plx-s.done .n{background:var(--ok-bg);color:var(--ok)}
.v2 .ahx.ahx.ahx.ahx .plx-s.retry .n{background:var(--warn-bg);color:var(--warn)}
.v2 .ahx.ahx.ahx.ahx .plx-add{display:flex;align-items:center;gap:var(--s-2);font-size:12.5px;color:var(--fg2);padding:var(--s-1) 10px;margin-inline:-10px;align-self:flex-start;border-radius:var(--r-pill)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .plx-add:hover{color:var(--fg);background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .plx-f{display:flex;align-items:center;gap:6px}
.v2 .ahx.ahx.ahx.ahx .plx-n{flex:1;font-size:12px;min-width:0}
@media (max-width:480px){.v2 .ahx.ahx.ahx.ahx .plx-n{display:none}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .plx.panel{padding:18px 20px 26px 30px}
.v2 .ahx.ahx.ahx.ahx .ssx{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.v2 .ahx.ahx.ahx.ahx .ssx-pill{display:inline-flex;align-items:center;gap:var(--s-2);height:30px;padding:0 10px 0 5px;border-radius:var(--r-pill);background:var(--chip);font-size:12.5px;color:var(--fg2);transition:background .25s,color .25s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .ssx-pill:hover{background:var(--hover);color:var(--fg)}}
.v2 .ahx.ahx.ahx.ahx .ssx-pill>svg{transition:transform .4s var(--ease)}
.v2 .ahx.ahx.ahx.ahx .ssx-pill[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .ahx.ahx.ahx.ahx .ssx-ics{display:flex}
.v2 .ahx.ahx.ahx.ahx .ssx-ics span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:500;color:#fff;box-shadow:0 0 0 2px var(--chip);margin-right:-6px;transition:margin .4s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .ssx-pill:hover .ssx-ics span{margin-right:-3px}}
.v2 .ahx.ahx.ahx.ahx .ssx-ics span:last-child{margin-right:0}
.v2 .ahx.ahx.ahx.ahx .ssx-box{width:100%}
.v2 .ahx.ahx.ahx.ahx .ssx-in{padding:2px 0 var(--s-1);display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .ahx.ahx.ahx.ahx .ssx-fl{display:flex;gap:var(--s-1);flex-wrap:wrap}
.v2 .ahx.ahx.ahx.ahx .ssx-fl .chip{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .ssx-fl .chip:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
.v2 .ahx.ahx.ahx.ahx .ssx-list{display:flex;flex-direction:column;gap:2px;margin-inline:-6px}
.v2 .ahx.ahx.ahx.ahx .ssx-s{display:flex;align-items:center;gap:10px;padding:7px 6px;border-radius:calc(10px * var(--rk-m,var(--rk)));font-size:13px;transition:background .25s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .ssx-s:hover{background:var(--row)}}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-fv{width:22px;height:22px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;font-size:9.5px;font-weight:500;flex:none}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-h{font-size:12px;color:var(--muted)}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-rel{width:36px;height:4px;border-radius:var(--r-tiny,2px);background:var(--line);overflow:hidden;flex:none}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-rel i{display:block;height:100%;background:var(--accent-mark,var(--accent));border-radius:var(--r-tiny,2px);transform-origin:left;animation:v2-ssrel .8s var(--ease) both}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ib{width:24px;height:24px;opacity:0;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .ssx-s:hover .ib{opacity:1}}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ib:focus-visible{opacity:1}
.v2 .ahx.ahx.ahx.ahx .mi.hl .bdg{color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .mi:hover .bdg{color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .mi:is(:hover,.hl) .bdg{--cb-bg:color-mix(in srgb,var(--cb-fg) 16%,var(--surface));--bdg-bg:color-mix(in srgb,var(--bdg-fg) 16%,var(--surface))}}
@media (hover:hover) and (pointer:fine){.v2 .ahx.ahx.ahx.ahx .mi:is(:hover,.hl) .bdg:is(:not([data-tone]),[data-tone="neutral"]){--cb-bg:var(--surface);--bdg-bg:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
.v2 .ahx.ahx.ahx.ahx .ahx-tp .mi .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .ahx.ahx.ahx.ahx .ahx-tp .mi .ahx-mk:empty{display:grid}
.v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-pill{height:30px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-in{gap:7px;padding:0 var(--s-1) 0 11px;font-size:12.5px}
.v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-in .g{width:14px}
.v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-in .pill{height:22px;padding:0 9px;margin-left:1px;font-size:12px}
.v2 .ahx.ahx.ahx.ahx .ahx-msg:not(.box)>.panel:not(.keep){background:none;box-shadow:none;padding-left:0;padding-right:0;border-radius:0}
.v2 .ahx.ahx.ahx.ahx .ahx-msg .dpx-body{min-height:0}
.v2 .ahx.ahx.ahx.ahx .ahx-msg .dpx-f.leave{display:none}
.v2 .ahx.ahx.ahx.ahx.ahx.busy .cpx-bar .cpx-send{background:var(--rail);color:var(--surface);pointer-events:none}
@container ahm (max-width:560px){.v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-in .m{display:none}}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .ahx-spl .spl-pill{height:28px}
/* what the reviews added that staging did not have, put back as it was there */
.v2 .ahx.ahx.ahx.ahx .plx{--row:inherit}
.v2 .ahx.ahx.ahx.ahx .plx-h::before{content:none}
.v2 .ahx.ahx.ahx.ahx .plx-mk{margin-inline:0}
.v2 .ahx.ahx.ahx.ahx .plx-s .n{margin-inline:0;box-shadow:none}
.v2 .ahx.ahx.ahx.ahx .plx-s .n .spin{border:1.5px solid currentColor;border-right-color:transparent;animation-duration:.8s}
.v2 .ahx.ahx.ahx.ahx .plx-s.edited .t::after{color:var(--accent-fg,var(--accent))}
.v2 .ahx.ahx.ahx.ahx .plx-add{margin:0 -10px}
.v2 .ahx.ahx.ahx.ahx .plx-add .i{margin-inline:0}
.v2 .ahx.ahx.ahx.ahx .plx-f{justify-content:normal;margin:0;padding:0;border-top:0;background:none;border-radius:0}
.v2 .ahx.ahx.ahx.ahx .plx-f .plx-stop:last-child{margin-right:0}
.v2 .ahx.ahx.ahx.ahx .dpx-f{min-height:0;margin:0;padding:0;border-top:0;background:none;border-radius:0}
.v2 .ahx.ahx.ahx.ahx .ssx-ics{gap:normal}
.v2 .ahx.ahx.ahx.ahx .ssx-ics span{box-shadow:0 0 0 2px var(--chip);color:#fff!important}
.v2 .ahx.ahx.ahx.ahx .ssx-s .ssx-fv{box-shadow:none}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send{isolation:auto}
:root[data-style="studio"] .v2 .ahx.ahx.ahx.ahx .cpx-send::before{content:none}
.v2 .ahx.ahx.ahx.ahx .ahx-col .ahx-msg>*{margin-left:0;margin-right:auto}
.v2 .ahx.ahx.ahx.ahx .tk{background:none;box-shadow:none;border-radius:0;overflow:visible}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ahx.ahx.ahx.ahx .ssx-fl .chip.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}
/* (Agent harness: staging look, end) */
/* ---------- Line chart ---------- */
/* one metric over a period, against the period before (owner, 21 Nov): straight segments with sharp joins, a saturated line in the accent, and a fill that fades from the line's colour
   at the top to nothing at the bottom. A quiet head: the title, a picker for whose numbers they are, and the range switch, with
   a hairline under them. Under it the plot: the values on the left, dashed vertical gridlines and no horizontal ones, the period
   before as a dotted line in the chart palette's second colour across the whole period, and this period as a solid line up to
   now, with an open ring and "Now" under it, then projected to the period's end as a dotted line in its own colour over a
   fill at half strength, so the chart always runs full width (owner, 21 Nov: "I never seen charts that end mid way"). A legend under the plot names both lines and turns each on and off. Pointing at the plot, or the arrow keys on it, shows a dashed guide, a ring on each line and a readout card
   beside the guide on the side with room, and the point's name becomes a grey chip on the axis. The content sits 16px in from
   every edge; the picker's and the switch's hover boxes reach out round their words */
.v2 .lnx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);--row:color-mix(in srgb,var(--fg) 5%,transparent);
  --lnx-line:var(--accent-mark,var(--accent));--lnx-cmp:var(--c2);--lnx-fill:.2;--lnx-pfill:.1;--lnx-grid:var(--line);--lnx-guide:color-mix(in srgb,var(--fg) 38%,transparent)}
:root[data-theme="dark"] .v2 .lnx{--lnx-fill:.3;--lnx-pfill:.15}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .lnx{--lnx-fill:.3;--lnx-pfill:.15}}
.v2 .lnx-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2) var(--s-3);flex-wrap:wrap;padding-bottom:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .lnx-tl{display:flex;align-items:center;gap:6px;min-width:0;font-size:13.5px;line-height:20px}
.v2 .lnx-t{color:var(--muted);white-space:nowrap}
/* the picker: its mark and words in the text colour, no edge until hovered; its hover box reaches out round them */
.v2 .lnx-pk{display:inline-flex;align-items:center;gap:6px;height:28px;margin:-4px -5px -4px 0;padding:0 5px 0 8px;border-radius:var(--r-sm);color:var(--fg);font-weight:500;white-space:nowrap;transition:background-color var(--t-fast) var(--ease)}
.v2 .lnx-pk[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .lnx-pk:hover{background:var(--row)}}
.v2 .lnx-pk .i{color:var(--muted);margin-left:-2px}
.v2 .lnx-mk{width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:calc(5px * var(--rk-s,var(--rk)));font-size:10.5px;font-weight:500;line-height:1;background:var(--mk,var(--av-b));color:var(--mk-ink,var(--av-b-ink))}
.v2 .pop.lnx-pp{min-width:188px}
.v2 .lnx-pp .mi{gap:var(--s-2)}
.v2 .lnx-rg button{font-size:12px;height:26px;padding:0 9px}
/* on a narrow card the switch goes under the title, as wide as the content, its parts sharing the width */
.v2 .lnx{container:lnx/inline-size}
@container lnx (max-width:375px){.v2 .lnx-h{flex-direction:column;align-items:stretch}.v2 .lnx-rg{display:flex}.v2 .lnx-rg button{flex:1}.v2 .lnx-pk{margin-top:0;margin-bottom:0}}
/* and on a phone the legend's three lines take two columns, so it is two rows whatever the range calls them, and switching the
   range never changes the card's height */
@container lnx (max-width:300px){.v2 .lnx .lnx-lg{display:grid;grid-template-columns:max-content max-content;gap:2px var(--s-1);justify-content:start}}
/* the plot: the values in a column on the left, each centred on its height; the axis under the drawing */
.v2 .lnx-pl{display:grid;grid-template-rows:auto auto;grid-template-columns:auto minmax(0,1fr);column-gap:var(--s-3);row-gap:var(--s-2)}
.v2 .lnx-y{display:flex;flex-direction:column;justify-content:space-between;margin:-8px 0;font-size:12px;line-height:16px;color:var(--muted);text-align:right;white-space:nowrap}
.v2 .lnx-ch{position:relative;height:168px;touch-action:pan-y}
.v2 .lnx-ch:focus-visible{outline-offset:6px}
.v2 .lnx-svg{position:absolute;left:0;top:0;width:100%;height:100%;display:block;overflow:visible}
.v2 .lnx-svg .gl{stroke:var(--lnx-grid);stroke-width:1;stroke-dasharray:3 4}
.v2 .lnx-svg .ln{fill:none;stroke:var(--lnx-line);stroke-width:2;stroke-linejoin:miter;stroke-miterlimit:8;stroke-linecap:butt}
.v2 .lnx-svg :is(.cmp,.prj){fill:none;stroke:var(--lnx-cmp);stroke-width:2;stroke-linecap:round;stroke-dasharray:0 5}
.v2 .lnx-svg .prj{stroke:var(--lnx-line)}
/* now: an open ring on the line's end, with a dot of the line's colour inside */
.v2 .lnx-now{position:absolute;left:0;top:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:radial-gradient(circle,var(--lnx-line) 2px,var(--surface) 2.6px);box-shadow:inset 0 0 0 2px var(--lnx-line);pointer-events:none;transition:opacity var(--t-fast) var(--ease)}
/* the guide, the rings and the readout show while the plot is pointed at or has the keyboard's focus */
/* where the demo's pointer aims: an empty box centred on the point it reads */
.v2 .lnx-aim{position:absolute;left:0;top:0;width:16px;height:16px;margin:-8px 0 0 -8px;pointer-events:none}
.v2 .lnx-x{position:absolute;top:0;bottom:0;left:0;width:1px;margin-left:-.5px;background:repeating-linear-gradient(to bottom,var(--lnx-guide) 0 3px,transparent 3px 7px);opacity:0;transition:opacity var(--t-fast) var(--ease);pointer-events:none}
.v2 .lnx-pt{position:absolute;left:0;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px currentColor;opacity:0;transition:opacity var(--t-fast) var(--ease);pointer-events:none}
.v2 .lnx-tt{position:absolute;left:0;top:0;z-index:2;min-width:156px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--raised);box-shadow:var(--shadow-pop);font-size:12.5px;line-height:18px;white-space:nowrap;opacity:0;transform:translateY(4px);transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease);pointer-events:none}
.v2 .lnx-tt-h{padding:6px 10px;font-size:12px;color:var(--muted);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .lnx-tt-r{display:flex;align-items:center;gap:var(--s-2);padding:6px 10px}
.v2 .lnx-tt-r+.lnx-tt-r{padding-top:0}
.v2 .lnx-tt-r i{width:12px;height:2px;flex:none;border-radius:1px;background:var(--lnx-line)}
.v2 .lnx-tt-r.c i{height:2px;background:radial-gradient(circle,var(--lnx-cmp) .9px,transparent 1.1px) 0 50%/4px 2px repeat-x}
.v2 .lnx-tt-r.p i{background:radial-gradient(circle,var(--lnx-line) .9px,transparent 1.1px) 0 50%/4px 2px repeat-x}
.v2 .lnx-tt-r span{flex:1;color:var(--fg2)}
.v2 .lnx-tt-r b{font-weight:500;color:var(--fg)}
.v2 .lnx-tt-r[hidden]{display:none}
.v2 .lnx.on .lnx-x,.v2 .lnx.on .lnx-tt,.v2 .lnx.on .lnx-pt.on{opacity:1}
.v2 .lnx.on .lnx-tt{transform:none}
/* the axis: the period's first point on the left, Now under its point in the accent's text colour, the last on the right; the
   point pointed at is a grey chip, and any label it would touch steps aside */
.v2 .lnx-ax{grid-column:2;position:relative;height:20px;font-size:12px;line-height:20px;color:var(--muted)}
.v2 .lnx-ax span{position:absolute;top:0;left:0;white-space:nowrap;transition:opacity var(--t-fast) var(--ease)}
/* the last label ends on the plot's right edge (6px in when it is Now's own, so it sits under the ring) */
.v2 .lnx-ax .lnx-z:not([style]){left:auto;right:0}
.v2 .lnx-ax .lnx-z.lnx-nw:not([style]){right:6px}
.v2 .lnx-ax .lnx-nw{color:var(--accent-fg,var(--accent))}
.v2 .lnx-ax .lnx-tk{padding:0 6px;border-radius:var(--r-xs);background:var(--chip);color:var(--fg2);opacity:0}
.v2 .lnx.on .lnx-ax .lnx-tk{opacity:1}
.v2 .lnx-ax :is(.lnx-off,.lnx-hid){opacity:0}
/* the legend: each line's swatch and name, a toggle; its words start on the content's edge and its hover reaches out round them.
   On this card the toggles' boxes sit on the content's 16px column instead, so nothing reaches nearer the card's edge than the
   rest of its content (owner, 21 Nov: insets measured in every style); a page that reuses the legend under a plot of its own
   keeps the hover reaching out */
.v2 .lnx-lg{display:flex;flex-wrap:wrap;gap:var(--s-1);margin:-8px -8px -5px}
.v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg{margin:-8px 0 0}
.v2 .lnx-k{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--r-pill);font-size:12px;color:var(--muted);transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .lnx-k:hover{background:var(--row)}}
.v2 .lnx-k[aria-pressed="true"]{color:var(--fg)}
.v2 .lnx-k i{width:12px;height:2px;flex:none;border-radius:1px;background:var(--lnx-line);transition:opacity var(--t-fast) var(--ease)}
.v2 .lnx-k.c i{background:radial-gradient(circle,var(--lnx-cmp) .9px,transparent 1.1px) 0 50%/4px 2px repeat-x}
.v2 .lnx-k.p i{background:radial-gradient(circle,var(--lnx-line) .9px,transparent 1.1px) 0 50%/4px 2px repeat-x}
.v2 .lnx-k[aria-pressed="false"] i{opacity:.3}
.v2 .lnx-svg :is(.ln,.ar,.cmp,.prj,.par){transition:opacity var(--t) var(--ease)}
.v2 .lnx.lnx-noa .lnx-svg :is(.ln,.ar),.v2 .lnx.lnx-nop .lnx-svg :is(.prj,.par),.v2 .lnx.lnx-nob .lnx-svg .cmp{opacity:0}
.v2 .lnx.lnx-noa .lnx-now{visibility:hidden}
.v2 .lnx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.v2 .lnx-sr th{font-weight:400}
@media (prefers-reduced-motion:reduce){.v2 .lnx :is(.lnx-x,.lnx-pt,.lnx-tt,.lnx-now,.lnx-ax span){transition:none}}
/* Blueprint: square marks (the ring, the hover marks, the swatches) and square dots on the line before */
/* Studio: the project marks are monochrome, a solid ink tile like a logo, its letter in the ink's own text colour */
:root[data-style="studio"] .v2 .lnx-mk{background:var(--ink);color:var(--on-ink)}
/* Studio (owner, 21 Nov: Studio must read as Studio at a glance): the head and the legend sit on off-white strips that follow the
   card's corners, their controls on the content's 16px column and 16px from the strip's top and bottom (owner, 23 Nov; the title's words on
   the column, the switch ending on it). The picker's hover is a pill. The legend's toggles are flat pills: a line that is shown
   has the stronger neutral fill (Studio's selected state), one that is hidden none until pointed at, when it takes Studio's one
   hover fill. The readout is
   Studio's popover: its corners, its 6px inset and rows like a menu's, scaling and fading in over 220ms. The pointed-at tick is
   a pill. The strips belong to this card's own head (the title and the picker): a page that reuses the plot under a head of
   its own keeps its layout */
:root[data-style="studio"] .v2 .lnx>.lnx-h:has(>.lnx-tl){margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0;padding:var(--strip-y) var(--s-4);background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .lnx-pk{border-radius:var(--r-pill)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .lnx-pk:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .lnx-pk[aria-expanded="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg{margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:var(--strip-y) var(--s-4);gap:6px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg .lnx-k{height:28px;padding:0 10px}
/* (on a phone its two columns share the width, the second ending on the content's right edge like the switch above) */
@container lnx (max-width:300px){:root[data-style="studio"] .v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg{grid-template-columns:1fr 1fr}}
:root[data-style="studio"] .v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg .lnx-k[aria-pressed="true"]{background:var(--row-on)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .lnx:has(>.lnx-h>.lnx-tl)>.lnx-lg .lnx-k[aria-pressed="false"]:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .lnx-tt{padding:6px;border-radius:calc(14px * var(--rk-l,var(--rk)));transform:scale(.96);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .lnx.on .lnx-tt{transform:none}
:root[data-style="studio"] .v2 .lnx-tt-h{padding:2px 8px 4px;border-bottom:0}
:root[data-style="studio"] .v2 .lnx-tt-r,:root[data-style="studio"] .v2 .lnx-tt-r+.lnx-tt-r{padding:5px 8px;border-radius:var(--r-in)}
:root[data-style="studio"] .v2 .lnx-ax .lnx-tk{border-radius:var(--r-pill)}
/* Studio dark's accent is white (owner, 21 Nov; Studio dark's tokens): the line, its projection, its rings and "Now" are white,
   so the area under them is a little fainter; the comparison keeps the palette's violet */
:root[data-style="studio"][data-theme="dark"] .v2 .lnx{--lnx-fill:.16;--lnx-pfill:.08}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .lnx{--lnx-fill:.16;--lnx-pfill:.08}}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .lnx-tt{transform:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .lnx-svg :is(.cmp,.prj){stroke-dasharray:2 3}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .lnx-now{background:linear-gradient(var(--lnx-line),var(--lnx-line)) center/4px 4px no-repeat,var(--surface)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.lnx-tt-r,.lnx-k).c i{background:repeating-linear-gradient(90deg,var(--lnx-cmp) 0 2px,transparent 2px 4px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.lnx-tt-r,.lnx-k).p i{background:repeating-linear-gradient(90deg,var(--lnx-line) 0 2px,transparent 2px 4px)}
/* ---------- Bar chart ---------- */
/* agent runs a day: one bar each in the accent, with no legend, and each bar's breakdown in its hover readout. The readout
   is the page's tooltip (opaque and neutral) beside the bar it reads, level with its top, on the side with room and always
   inside the chart (the script places it, and it follows the bar as it grows). The content sits 16px in from every edge */
.v2 .bcx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .bcx-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.v2 .bcx-h>div:first-child{display:flex;flex-direction:column;font-size:12.5px;line-height:18px}
.v2 .bcx-v{font-size:14px;line-height:20px;font-weight:500;letter-spacing:-.02em}
.v2 .bcx-rg button{font-size:12px;height:26px;padding:0 10px}
.v2 .bcx-ch{display:flex;align-items:flex-end;gap:var(--s-2);height:150px;position:relative}
.v2 .bcx-b{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:0;position:relative;cursor:default}
.v2 .bcx-st{display:flex;flex-direction:column-reverse;gap:2px;border-radius:calc(7px * var(--rk-m,var(--rk)));overflow:hidden;transition:opacity var(--t-fast) var(--ease)}
.v2 .bcx-st i{display:block;height:0;transition:height .7s var(--ease)}
.v2 .bcx-st i:nth-child(1){background:var(--c1)}
@media (hover:hover) and (pointer:fine){.v2 .bcx-ch:hover .bcx-b:not(:hover) .bcx-st{opacity:.4}}
.v2 .bcx-l{font-size:11px;line-height:14px;color:var(--muted);text-align:center;margin-top:6px;height:14px}
.v2 .bcx-tt{position:absolute;left:0;bottom:calc(100% + 6px);z-index:2;padding:6px 9px;border-radius:var(--r-sm);background:var(--tip-bg,var(--ink));color:var(--tip-fg,var(--on-ink));box-shadow:var(--tip-ring,none);font-size:12px;line-height:1.35;white-space:nowrap;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease);display:flex;flex-direction:column}
.v2 .bcx-tt b{font-weight:500}
.v2 .bcx-tt span{color:color-mix(in srgb,var(--tip-fg,var(--on-ink)) 76%,var(--tip-bg,var(--ink)))}
@media (hover:hover) and (pointer:fine){.v2 .bcx-b:hover .bcx-tt{opacity:1;transform:none}}
.v2 .bcx-lg{display:flex;gap:14px;font-size:12px;flex-wrap:wrap}
.v2 .bcx-lg span{display:flex;align-items:center;gap:6px}
.v2 .bcx-lg i{width:8px;height:8px;border-radius:var(--r-tiny,3px)}
/* Studio: the bars stand on a hairline baseline (half strength) with their tops rounded, as a bar chart is usually drawn */
:root[data-style="studio"] .v2 .bcx-st{border-radius:calc(6px * var(--rk-m,var(--rk))) calc(6px * var(--rk-m,var(--rk))) 2px 2px}
:root[data-style="studio"] .v2 .bcx-ch{background:linear-gradient(color-mix(in srgb,var(--line) 50%,transparent),color-mix(in srgb,var(--line) 50%,transparent)) left 0 bottom 20px/100% 1px no-repeat}
/* ---------- Donut chart ---------- */
/* where the agent's time went this week, as a gauge (owner, 21 Nov): a half ring of parts in the
   chart palette's saturated colours, in order, with small gaps and slightly rounded corners, and the rest of the week's budget
   as a light grey track. The total sits in the middle with what it is out of, and the legend under the gauge names each part
   with a bar of its colour and its hours. Pointing at a part or a row, or the keyboard on a row, lights both and puts that part
   in the middle; a click on either (or Enter on a row) selects it, so it stays in the middle with its row filled until it is
   clicked again or Escape clears it. A quiet head: the title with a hairline under it. The content sits 16px in from every
   edge; each row's mark and hours sit on the content's edges, its hover a quiet fill that reaches out round them */
.v2 .dnx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);--row:color-mix(in srgb,var(--fg) 5%,transparent);--dnx-track:var(--chip);--dnx-th:18;--dnx-cr:4}
.v2 .dnx-h{padding-bottom:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13.5px;line-height:17px;color:var(--fg)}
.v2 .dnx-g{position:relative;width:220px;max-width:100%;margin:var(--s-1) auto 0}
.v2 .dnx-svg{display:block;width:100%;height:auto;overflow:visible}
.v2 .dnx-svg path{stroke-linejoin:round;transition:opacity var(--t-fast) var(--ease);cursor:default}
/* (a page that draws its own parts gives them their own stroke-width) */
.v2 .dnx-svg path:not([stroke-width]){stroke-width:calc(var(--dnx-cr) * 2px)}
.v2 .dnx-svg .tr{fill:var(--dnx-track);stroke:var(--dnx-track);cursor:auto}
.v2 .dnx-g.hov path:not(.hl,.tr){opacity:.3}
.v2 .dnx-c{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.v2 .dnx-c b{font-size:14px;line-height:20px;font-weight:500;letter-spacing:-.01em;color:var(--fg)}
.v2 .dnx-c span{font-size:12px;line-height:16px}
/* the last row's words end 16px from the card's foot, its hover fill reaching out round them */
.v2 .dnx-lg{position:relative;display:flex;flex-direction:column;gap:2px;margin:0 calc(-1 * var(--s-2)) calc(-1 * var(--s-2))}
.v2 .dnx-r{position:relative;display:flex;align-items:center;gap:var(--s-2);width:100%;padding:6px var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;line-height:20px;text-align:left;transition:background-color var(--t-fast) var(--ease)}
.v2 .dnx-r.hl{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .dnx-r:hover{background:var(--row)}}
.v2 .dnx-r.sel{background:color-mix(in srgb,var(--fg) 9%,transparent)}
.v2 .dnx-r.sel .t{color:var(--fg)}
.v2 .dnx-svg path[data-i]{cursor:pointer}
/* the hover that glides from row to row is Studio's (below); the other styles fill the row itself */
.v2 .dnx-hv{display:none}
.v2 .dnx-r:focus-visible{outline-offset:-2px}
.v2 .dnx-r i{width:3px;height:14px;border-radius:2px;flex:none}
.v2 .dnx-r .t{flex:1;min-width:0;color:var(--fg2)}
.v2 .dnx-r .v{color:var(--fg)}
/* Blueprint: square corners on the parts and the track */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .dnx-svg path{stroke-linejoin:miter}
/* Studio (owner, 21 Nov: "it definitely has to be updated"): the title on an off-white head strip that follows the card's
   corners; a slimmer ring (14px against Soft's 18) with a little rounder corners (5px against 4); the track recessed with
   Studio's inner shadow (an SVG filter, since a path takes no inset box-shadow); the legend
   Studio's 10px rows with its one hover, a neutral fill that eases in over 220ms and glides from row to
   row (it only fades with reduced motion), and the selected row a stronger fill of the same shape. The middle's figure is set
   with tabular figures and Studio's tighter tracking. In Studio dark the accent is white (owner, 21 Nov; Studio dark's tokens),
   so the first part is white; the other parts keep the palette's hues */
:root[data-style="studio"] .v2 .dnx{--dnx-th:14;--dnx-cr:5}
:root[data-style="studio"] .v2 .dnx-h{margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0;padding:calc(var(--strip-y) + 4px) var(--s-4);background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0;font-size:13px;line-height:20px;font-weight:500}
:root[data-style="studio"] .v2 .dnx-svg .tr{filter:var(--dnx-in)}
:root[data-style="studio"] .v2 .dnx-svg .dnx-in-s{flood-color:rgba(0,0,0,.12)}
:root[data-style="studio"] .v2 .dnx-svg .dnx-in-r{flood-color:rgba(0,0,0,.04)}
:root[data-style="studio"] .v2 .dnx-c b{letter-spacing:-.02em;font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .dnx-c span{color:var(--muted);letter-spacing:0}
:root[data-style="studio"] .v2 .dnx-r{border-radius:var(--r-in)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .dnx-lg.gl .dnx-r:is(:hover,.hl){background:transparent}}
:root[data-style="studio"] .v2 .dnx-r.sel,:root[data-style="studio"] .v2 .dnx-lg.gl .dnx-r.sel{background:var(--row-on)}
:root[data-style="studio"] .v2 .dnx-hv{display:block;position:absolute;left:0;right:0;top:0;height:32px;border-radius:var(--r-in);background:var(--row);opacity:0;pointer-events:none;transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),height var(--t-fast) var(--ease)}
:root[data-style="studio"][data-theme="dark"] .v2 .dnx-svg .dnx-in-s{flood-color:rgba(0,0,0,.5)}
:root[data-style="studio"][data-theme="dark"] .v2 .dnx-svg .dnx-in-r{flood-color:rgba(255,255,255,.05)}
@media (prefers-color-scheme:dark){
  :root[data-style="studio"]:not([data-theme="light"]) .v2 .dnx-svg .dnx-in-s{flood-color:rgba(0,0,0,.5)}
  :root[data-style="studio"]:not([data-theme="light"]) .v2 .dnx-svg .dnx-in-r{flood-color:rgba(255,255,255,.05)}}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .dnx-hv{transition:opacity var(--t-fast) var(--ease)}}
/* ---------- Funnel ---------- */
.v2 .fnx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .fnx-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px;flex-wrap:wrap}
.v2 .fnx-h b{font-weight:500}
.v2 .fnx-sg button{font-size:12px;height:26px;padding:0 9px}
.v2 .fnx-rows{display:flex;flex-direction:column;gap:6px}
.v2 .fnx-r{display:grid;grid-template-columns:118px 1fr 48px;align-items:center;gap:10px;font-size:12.5px;padding:2px 0;border-radius:var(--r-sm)}
.v2 .fnx-r .k{color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .fnx-r .tr{height:26px;border-radius:var(--r-sm);background:var(--chip);position:relative;overflow:hidden}
/* the bar is an accent fill, so its count reads in --on-accent; its edge in the mark keeps a light accent visible on the track */
.v2 .fnx-r .bar{position:absolute;inset:0 auto 0 0;border-radius:var(--r-sm);background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent));transition:width .9s var(--ease),opacity .3s}
.v2 .fnx-r .n{position:absolute;left:10px;top:0;bottom:0;display:flex;align-items:center;color:var(--on-accent,#fff);font-size:11.5px;font-weight:500;transition:left .9s var(--ease),color .3s}
.v2 .fnx-r .n.out{color:var(--fg2)}
.v2 .fnx-r .bar{background:var(--fc,var(--accent));box-shadow:none}
/* a funnel bar is lime with no outline: its count is written on it, so the bar never carries the value alone (owner, 10 Nov) */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .fnx-r .bar{background:var(--accent);box-shadow:none}
.v2 .fnx-r .v{text-align:right;color:var(--muted);font-size:12px}
.v2 .fnx-r.drop .v{color:var(--bad);font-weight:500}
@media (hover:hover) and (pointer:fine){.v2 .fnx-rows:hover .fnx-r:not(:hover) .bar{opacity:.35}}
.v2 .fnx-ins{display:flex;gap:var(--s-2);font-size:12.5px;line-height:1.5;color:var(--fg2);padding:10px var(--s-3);border-radius:var(--r-in);background:var(--accent-bg)}
.v2 .fnx-ic{color:var(--accent-fg,var(--accent));display:grid;margin-top:2px}
/* Studio: equal padding (owner, 17 Nov; 16px since 18 Nov): its content 16px in from every edge, the insight too (owner, 21 Nov:
   it sat 7px from the bottom) */
:root[data-style="studio"] .v2 .fnx.panel{padding:16px}
/* ---------- Top pages ---------- */
.v2 .tpx{padding:var(--s-4);display:flex;flex-direction:column;gap:10px}
.v2 .tpx-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:0 2px}
.v2 .tpx-h>div:first-child{display:flex;flex-direction:column;font-size:13.5px}
.v2 .tpx-h b{font-weight:500}
.v2 .tpx-sub{font-size:12px}
.v2 .tpx-sg button{font-size:12px;height:26px;padding:0 9px}
.v2 .tpx-list{position:relative;height:calc(6 * 50px)}
.v2 .tpx-r{position:absolute;left:0;right:0;height:46px;display:grid;grid-template-columns:20px 1fr 56px 60px;align-items:start;gap:10px;padding:9px var(--s-2) 0;border-radius:var(--r-in);transition:transform .55s var(--ease),background .2s}
@media (hover:hover) and (pointer:fine){.v2 .tpx-r:hover{background:var(--row)}}
.v2 .tpx-r .rk{font-family:var(--mono);font-size:11px;line-height:19.5px;color:var(--muted);text-align:center;transition:color .2s}
@media (hover:hover) and (pointer:fine){.v2 .tpx-r:hover .rk{color:var(--fg)}}
.v2 .tpx-r .pg{display:flex;flex-direction:column;gap:5px;min-width:0}
.v2 .tpx-r .p{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tpx-r .tr{height:4px;border-radius:var(--r-tiny,2px);background:var(--chip);overflow:hidden}
@media (hover:hover) and (pointer:fine){.v2 .tpx-r:hover .tr{background:var(--surface)}}
.v2 .tpx-r .tr i{display:block;height:100%;width:0;border-radius:var(--r-tiny,2px);background:var(--accent-mark,var(--accent));transition:width .9s var(--ease)}
.v2 .tpx-r .n{font-size:13px;font-weight:500;min-width:52px;text-align:right}
.v2 .tpx-r .ch{justify-self:end;padding:0 6px}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .tpx.panel{padding:18px 16px 0px 18px}
/* ---------- Health score ---------- */
/* an account's health: the score in a small ring with its verdict, the four factors as rows under one another (each with its
   status dot and its figure, opening its detail right under it) and the agent's next move with its button. The rows are split
   by hairlines, with no fill, shadow or card of their own (owner, 9 Nov). The state shows only in the status dots and the
   ring, and the weakest factor off track gets an ink label */
.v2 .hsc{display:flex;flex-direction:column;gap:var(--s-3);width:100%;padding:var(--s-4);container-type:inline-size;--vm:var(--ok-mark);--vf:var(--ok);--hsc-w:calc(8px + var(--s-3));--hsc-sw:calc(14px + var(--s-3))}
.v2 .hsc[data-v="warn"]{--vm:var(--warn-mark);--vf:var(--warn)}
.v2 .hsc[data-v="bad"]{--vm:var(--bad-mark);--vf:var(--bad)}
.v2 .hsc-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the account it is about, when the block stands on its own (a details sheet that names the account leaves it out) */
.v2 .hsc-ac{display:flex;flex-direction:column;align-items:flex-start;padding-bottom:var(--s-3);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);line-height:1.4}
.v2 .hsc-ac b{font-size:14px;font-weight:500}
.v2 .hsc-ac>span{font-size:12.5px;color:var(--muted)}
/* the header line: the score in its ring, the verdict and how it moved */
.v2 .hsc-h{display:flex;align-items:center;gap:var(--s-3)}
.v2 .hsc-ring{position:relative;flex:none;width:44px;height:44px;display:grid;place-items:center}
.v2 .hsc-ring svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.v2 .hsc-ring circle{fill:none;stroke-width:4}
.v2 .hsc-ring .tr{stroke:var(--line)}
.v2 .hsc-ring .fl{stroke:var(--vm);stroke-linecap:round;transition:stroke-dashoffset .9s var(--ease),stroke var(--t) var(--ease)}
.v2 .hsc-ring b{position:relative;font-size:14px;font-weight:500;letter-spacing:-.01em;line-height:1}
/* the verdict over its line, and the change at the end of the verdict's line, on the verdict's baseline (owner, 23 Nov) */
.v2 .hsc-ht{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;justify-items:start;line-height:1.4}
.v2 .hsc-vd{grid-row:1;grid-column:1;font-size:14px;font-weight:500;color:var(--vf);transition:color var(--t) var(--ease)}
.v2 .hsc-sub{grid-row:2;grid-column:1;font-size:12.5px;color:var(--muted);text-wrap:pretty}
.v2 .hsc-dl{grid-row:1;grid-column:2;margin-left:var(--s-3);font-size:12.5px;color:var(--muted)}
/* the factors: a row each, a hairline above every row. A row is its status dot and name (and Weakest), its figure and unit,
   and a chevron; its detail opens right under it */
.v2 .hsc-l{display:flex;flex-direction:column}
.v2 .hsc-t{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;grid-template-areas:"k v cv";align-items:center;column-gap:var(--s-3);width:100%;min-height:44px;padding:10px 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);text-align:left;--sm:var(--ok-mark)}
.v2 .hsc-t[data-s="warn"]{--sm:var(--warn-mark)}
.v2 .hsc-t[data-s="bad"]{--sm:var(--bad-mark)}
.v2 .hsc-t:focus-visible{outline-offset:-2px;border-radius:var(--r-sm)}
.v2 .hsc-k{grid-area:k;display:flex;align-items:center;gap:6px;min-width:0;font-size:13px;line-height:20px;color:var(--fg2);transition:color var(--t-fast)}
.v2 .hsc-n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .hsc-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--sm);transition:background var(--t) var(--ease)}
/* under the score's head the status dot sits on the content's left edge, where the title and the ring start (owner, 2 Dec:
   "the padding on the left for these items is ridiculous", replacing the dot centred under the ring of 18 Nov), and the name
   and an open row's detail start 12px after it (--hsc-w: the dot, 12px). (Rows on their own, as in a sheet that shows only
   the factors, keep the dot before the name) */
.v2 .hsc-h~.hsc-l .hsc-k{position:relative;padding-left:var(--hsc-w)}
.v2 .hsc-h~.hsc-l .hsc-dot{position:absolute;left:0;top:6px}
.v2 .hsc-h~.hsc-l .hsc-dc{padding-left:var(--hsc-w)}
/* (Weakest keeps 8px after the name, and on a narrow block where it wraps under the name it starts on the name's column) */
.v2 .hsc-h~.hsc-l .hsc-k{column-gap:var(--s-2)}
.v2 .hsc-h~.hsc-l .hsc-wk{margin-left:0}
/* the weakest factor that is off track says so with the library's grey tag (.tag), on the row's centre line */
.v2 .hsc-wk{flex:none;display:none;margin-left:2px}
.v2 .hsc-t[data-weak] .hsc-wk{display:inline-flex}
.v2 .hsc-v{grid-area:v;display:flex;align-items:baseline;justify-content:flex-end;gap:5px;white-space:nowrap;line-height:20px}
.v2 .hsc-v b{font-size:14px;font-weight:500;letter-spacing:-.01em;color:var(--fg)}
.v2 .hsc-v>span{font-size:12px;color:var(--muted)}
/* a figure with no unit (61%) ends on the same right edge as the others, with no gap kept for the missing unit */
.v2 .hsc-v>span:empty{display:none}
.v2 .hsc-cv{grid-area:cv;justify-self:end;color:var(--muted);transition:transform var(--t) var(--ease),color var(--t-fast)}
.v2 .hsc-t[aria-expanded="true"] .hsc-k{color:var(--fg)}
.v2 .hsc-t[aria-expanded="true"] .hsc-cv{transform:rotate(180deg);color:var(--fg2)}
@media (hover:hover) and (pointer:fine){
  .v2 .hsc-t:hover .hsc-k{color:var(--fg)}
  .v2 .hsc-t:hover .hsc-cv{color:var(--fg2)}
}
/* a row's detail: plain lines under its name, no card */
.v2 .hsc-dc{padding:0 0 var(--s-3) 14px}
.v2 .hsc-dp{margin:0;font-size:12.5px;line-height:1.5;color:var(--fg);text-wrap:pretty}
.v2 .hsc-dp+.hsc-dp{margin-top:2px;color:var(--fg2)}
.v2 .hsc-pt{display:flex;align-items:center;gap:var(--s-2);margin:var(--s-2) 0 0;font-size:12px;color:var(--muted)}
.v2 .hsc-pt i{width:4px;height:4px;border-radius:50%;background:var(--faint)}
/* the agent's next move: a plain row under a hairline, the spark on the content's left edge on the first line of its words,
   the words 12px after it (--hsc-sw: the spark, 12px), and its button on the content's right edge, centred on the words
   (owner, 2 Dec) */
/* the foot's hairline closes the last factor row, as each row's own hairline opens it, so that row sits evenly between its
   two lines (11px each way; check-rules R2, 27 Nov), with no extra gap before it */
.v2 .hsc-s{display:flex;align-items:center;gap:var(--s-3);min-height:44px;margin-top:calc(-1 * var(--s-3));padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;line-height:1.45;color:var(--fg2)}
.v2 .hsc-say{flex:1;min-width:0;display:flex;align-items:flex-start}
.v2 .hsc-say .i{flex:none;margin:2px var(--s-3) 0 0;color:var(--accent-mark,var(--accent))}
/* its words ease to a new line count rather than jump (grow()), the spark and words staying side by side */
.v2 .hsc-say>.dm-grow{flex:1 1 auto;min-width:0;flex-direction:row;align-items:flex-start}
.v2 .hsc-st{flex:1;min-width:0;text-wrap:pretty}
.v2 .hsc-s .pill{flex:none}
.v2 .hsc-s .pill .spin{width:12px;height:12px}
.v2 .hsc-done{flex:none;outline:0}
.v2 .hsc-done .i{margin-left:-1px}
/* Blueprint: square marks, labels in small capitals */
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.hsc-k,.hsc-pt){font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .hsc-done{font-size:11px}
/* Studio (owner, 18 Nov): the content 16px in from every edge; a factor row's hover is a quiet fill as wide as the content (the
   ring's box) with rounded corners, in place of the hairlines round it, reaching 8px out round the row into the padding, so
   the dot, the figure and the chevron stay on the content's columns (owner, 26 Nov). The spark is the quiet grey of Studio's
   chrome */
:root[data-style="studio"] .v2 .hsc-h~.hsc-l .hsc-t{width:calc(100% + 2 * var(--s-2));margin:0 calc(-1 * var(--s-2));padding-inline:var(--s-2);transition:background-color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .hsc-say .i{color:var(--fg2)}
/* (Weakest's grey tag turns white on a row under the pointer, so it still reads on the hover fill, as Parallel agents' tags do) */
:root[data-style="studio"] .v2 .hsc-wk{transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .hsc-t:hover .hsc-wk{background:var(--surface)}}
/* Studio (owner, 21 Nov: "clean up the bottom part… make it look more like the Studio component… try not to break the text into
   three lines… if you have to, make the text span full width and add a button below that… Studio is just Soft with a different
   corner radius"). The account sits in an off-white head strip and the agent's next move in an off-white foot strip, each
   under a hairline, edge to edge. In the foot its words run the strip's width (two lines at most) 12px after the
   spark, which sits on the content's left edge, and its button (or Booked) sits beside them on the content's right edge. The factors are Studio's 10px rows with no
   hairlines between them, under one gliding hover (hoverGlide); the ring's track is sunk with Studio's inner shadow */
:root[data-style="studio"] .v2 .hsc.panel{padding:0 16px}
:root[data-style="studio"] .v2 .hsc-ac{margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .hsc-h{margin-top:4px}
:root[data-style="studio"] .v2 .hsc-ring .tr{stroke:transparent}
:root[data-style="studio"] .v2 .hsc-ring::before{content:"";position:absolute;inset:calc(100% * 2 / 44);border-radius:50%;background:var(--soft);box-shadow:var(--track-ring);-webkit-mask:radial-gradient(circle closest-side,transparent calc(80% - .5px),#000 80%);mask:radial-gradient(circle closest-side,transparent calc(80% - .5px),#000 80%)}
:root[data-style="studio"] .v2 .hsc-h~.hsc-l{gap:2px}
:root[data-style="studio"] .v2 .hsc-h~.hsc-l .hsc-t{border-top:0;border-radius:10px}
:root[data-style="studio"] .v2 .hsc-s{align-items:center;gap:var(--s-3);margin:4px -16px 0;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* the suggestion and its button on one line, as in Soft and Blueprint (owner, 28 Nov) */
/* (on a narrow block the foot keeps its one column: the words, then the button under them, never a second column) */
:root[data-style="studio"] .v2 .hsc-s{flex-wrap:nowrap}

/* a narrow block (a phone, a slim sheet): the button goes under the agent's line */
@container (max-width:359px){
  .v2 .hsc-h~.hsc-l .hsc-k{flex-wrap:wrap;row-gap:var(--s-1)}
  .v2 .hsc-s{flex-wrap:wrap;row-gap:var(--s-2)}
  .v2 .hsc-say{flex:1 1 100%}
  .v2 .hsc-s :is(.pill,.hsc-done){margin-left:var(--hsc-sw)}
}
/* ---------- Activity heatmap ---------- */
.v2 .hmx{padding:var(--s-4);display:flex;flex-direction:column;gap:10px}
/* the ramp (owner, 20 Nov: "saturate the greens and blues"): from a light tint of the chart's mark colour to that colour at
   full strength, mixed in oklch so the steps between stay vivid rather than greying. The busiest cells, and the key's More,
   are the mark colour a touch toward the text, so they keep 3:1 on the card with room to spare (the blue in Soft and Studio,
   Blueprint's green in light and its lime in dark), and the key shows the same ramp as the cells. In dark mode the quiet end
   is a deeper tint, so it still reads against the card */
.v2 .hmx{--hm-hi:color-mix(in oklch,var(--accent-mark,var(--accent)) 92%,var(--fg));--hm-lo:color-mix(in oklch,var(--hm-hi) 13%,var(--surface))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .hmx{--hm-lo:color-mix(in oklch,var(--hm-hi) 22%,var(--surface))}}
:root[data-theme="dark"] .v2 .hmx{--hm-lo:color-mix(in oklch,var(--hm-hi) 22%,var(--surface))}
/* the head sits over a hairline in every style (owner, 21 Nov), 10px from it on each side as the card's other gaps */
.v2 .hmx-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .hmx-h>div:first-child{display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .hmx-h b{font-weight:500}
.v2 .hmx-st{font-size:12px}
.v2 .hmx-sg button{font-size:12px;height:26px;padding:0 9px}
/* the day names, the cells and the hour names sit in one grid, so the hour names line up with the cells; on a phone the
   grid scrolls sideways (below) and the day names stay put */
.v2 .hmx-sc{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px}
.v2 .hmx-days{display:grid;grid-template-rows:repeat(7,1fr);gap:3px;font-size:10px}
.v2 .hmx-days span{display:flex;align-items:center;height:100%}
.v2 .hmx-grid{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;min-width:0}
.v2 .hmx-grid i{aspect-ratio:1;border-radius:var(--r-tiny,3px);background:color-mix(in oklch,var(--hm-hi) min(var(--a) * 118%,100%),var(--hm-lo));transition:background .5s var(--ease),transform .2s;max-width:100%}
@media (hover:hover) and (pointer:fine){.v2 .hmx-grid i:hover{transform:scale(1.35);box-shadow:0 0 0 1.5px var(--surface);position:relative;z-index:1}}
.v2 .hmx-f{grid-column:2;display:grid;grid-template-columns:repeat(4,1fr);font-size:10.5px}
.v2 .hmx-f .x{display:none}
/* phones, and narrow cards: the grid scrolls sideways by touch or trackpad in 20px cells (about half the day on a phone, a
   little more on a wider card, never bigger cells for a wider card), starting at the latest hours. The edge the grid runs on
   past fades out, and the hour names come every three hours */
.v2 .hmx{container-type:inline-size}
@container (max-width:400px){
  .v2 .hmx-sc{grid-template-columns:34px calc(24 * 20px + 23 * 4px);column-gap:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-left:34px;
    --fl:0px;--fr:0px;-webkit-mask-image:linear-gradient(to right,#000 34px,transparent 34px,#000 calc(34px + var(--fl)),#000 calc(100% - var(--fr)),transparent);mask-image:linear-gradient(to right,#000 34px,transparent 34px,#000 calc(34px + var(--fl)),#000 calc(100% - var(--fr)),transparent)}
  .v2 .hmx-sc::-webkit-scrollbar{display:none}
  .v2 .hmx-sc.ml{--fl:16px}.v2 .hmx-sc.mr{--fr:16px}
  .v2 .hmx-days{position:sticky;left:0;z-index:2;background:var(--surface);gap:4px;padding-right:6px;font-size:10.5px}
  /* and the corner under the day names covers the hour names as they scroll past */
  .v2 .hmx-sc::after{content:"";grid-row:2;grid-column:1;position:sticky;left:0;z-index:2;background:var(--surface)}
  .v2 .hmx-grid{gap:4px}
  .v2 .hmx-grid i{border-radius:calc(4px * var(--rk-s,var(--rk)));scroll-snap-align:start}
  .v2 .hmx-f{grid-template-columns:repeat(8,1fr)}
  .v2 .hmx-f .x{display:block}
}
.v2 .hmx-lg{align-self:flex-end;display:flex;align-items:center;gap:3px;font-size:10.5px;line-height:1.2}
/* the key's squares are the cells a size down: the same shades, and corners as round for their size */
.v2 .hmx-lg i{width:9px;height:9px;border-radius:calc(var(--r-tiny,2.67px) * .75);background:color-mix(in oklch,var(--hm-hi) min(var(--a) * 118%,100%),var(--hm-lo))}
/* Studio (owner, 17 and 18 Nov): the content 16px in from every edge, and a cell under the pointer is ringed in a quiet grey
   rather than growing */
:root[data-style="studio"] .v2 .hmx.panel{padding:16px}
:root[data-style="studio"] .v2 .hmx-h{border-bottom-color:var(--line)}
/* Studio: the Less to More key sits in the card's off-white foot strip, its words 16px in (owner, 21 Nov) */
:root[data-style="studio"] .v2 .hmx.panel .hmx-lg{align-self:stretch;justify-content:flex-end;min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:6px -16px -16px;padding:0 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .hmx-grid i{transition:background .5s var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .hmx-grid i:hover{transform:none;box-shadow:0 0 0 1px var(--surface),0 0 0 2.5px var(--line-strong)}}
/* ---------- Stat cards ---------- */
/* a row of headline numbers, each with its change against the period before and a sparkline in the chart palette. The cards
   aren't buttons, so a pointer over them changes nothing; the change chip says what it is measured against when you point
   at it */
.v2 .scx{display:flex;flex-direction:column;gap:10px;width:100%}
/* the head: what the numbers are about on the left, on one line with the period switch (owner, 27 Nov: the switch alone
   left a bare bar over the cards) */
.v2 .scx-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
.v2 .scx-t{min-width:0;font-size:14px;line-height:20px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the card is wide in the library, and the four figures take more of its row, so each is bigger and the whole sits balanced */
.v2.stage-in.wide:has(>.scx){max-width:960px}
.v2 .scx-sg button{font-size:12px;height:26px;padding:0 10px}
.v2 .scx-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:820px){.v2 .scx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* phones keep two columns, two rows, with the cards' 16px insets, and the change chip goes under the number when it can't fit
   beside it */
@media (max-width:520px){.v2 .scx-grid{gap:var(--s-2)}.v2 .scx-v{flex-wrap:wrap;row-gap:var(--s-1)}.v2 .scx-sp{height:28px}}
.v2 .scx-c{padding:var(--s-4);display:flex;flex-direction:column;gap:6px;min-width:0}
.v2 .scx-k{display:flex;align-items:center;gap:6px;font-size:12.5px;line-height:18px;color:var(--muted)}
.v2 .scx-k .ic{display:grid;color:var(--fg2)}
.v2 .scx-v{display:flex;align-items:center;gap:var(--s-2)}
.v2 .scx-v b{font-size:14px;line-height:20px;font-weight:500;letter-spacing:-.02em}
.v2 .scx-d{font-size:12px;font-weight:500}
.v2 .scx-d.tag{display:inline-flex;height:20px;padding:0 6px;cursor:default}
.v2 .scx-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .scx-sp{height:34px;margin-top:var(--s-1)}
.v2 .scx-sp svg{width:100%;height:100%;overflow:visible}
.v2 .scx-sp path{fill:none;stroke-width:1.75;vector-effect:non-scaling-stroke;stroke-linejoin:round;transition:d .8s var(--ease)}
/* the area under a line, which only Studio draws */
.v2 .scx-sp path.ar{display:none;stroke:none}
/* Studio (owner, 17 and 18 Nov): each card's content 16px in from every edge */
:root[data-style="studio"] .v2 .scx-c.panel{padding:16px}
/* Studio (owner, 21 Nov: "design something custom because apart from the switcher and the shape of the containers there's no
   difference between Soft and Studio"): one panel instead of four cards. The period switch sits in its off-white head strip
   under a hairline; under it the figures are cells of one grid, split by half-strength hairlines (the grid's 1px gaps), each
   with its label, figure and change chip (a status chip) on the same lines as its neighbours', 16px in. The sparklines keep
   the chart palette, as Soft's do (the first in the accent, white in dark through its token, then --c2 to --c4): thin lines
   with straight segments and sharp corners, the area under each fading from its line's colour to nothing */
:root[data-style="studio"] .v2 .scx{gap:0;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden}
:root[data-style="studio"] .v2 .scx-h{align-items:center;min-height:48px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line)}
:root[data-style="studio"] .v2 .scx>.scx-grid{gap:1px;background:color-mix(in srgb,var(--line) 50%,var(--surface))}
:root[data-style="studio"] .v2 .scx>.scx-grid>.scx-c.panel{background:var(--surface);border-radius:0;box-shadow:none}
:root[data-style="studio"] .v2 .scx-sp path.ln{stroke-width:1.25;stroke-linejoin:miter}
:root[data-style="studio"] .v2 .scx-sp path.ar{display:inline}
/* ---------- Account table ---------- */
/* the account table's colours run brighter than the shared tones: its plan tags take a stronger tint with saturated text
   (4.5:1 and APCA Lc 60 on the tint, in every style and theme) and the health bars vivid marks (3:1) */
.v2 .atb{--atb-ok:#1daa51;--atb-warn:#cd7a00;--atb-bad:#f04438;
  --pb:#0663d2;--pb-bg:color-mix(in srgb,#4890fa 15%,transparent);--pl:#7d2dfc;--pl-bg:color-mix(in srgb,#9776fa 15%,transparent);--pm:#087744;--pm-bg:color-mix(in srgb,#1fad66 15%,transparent);--pp:#a34f06;--pp-bg:color-mix(in srgb,#dc7019 15%,transparent);
  --pr:#c50b2d;--pr-bg:color-mix(in srgb,#fb4652 15%,transparent);--py:#886006;--py-bg:color-mix(in srgb,#bb881a 15%,transparent);--pk:#b80a75;--pk-bg:color-mix(in srgb,#fb27a2 15%,transparent);--pt:#08727c;--pt-bg:color-mix(in srgb,#1fa5b1 15%,transparent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .atb{--atb-ok:#5fcb2a;--atb-warn:#f59e0b;--atb-bad:#fb4849;
  --pb:#a4c9fe;--pb-bg:color-mix(in srgb,#4890fa 22%,transparent);--pl:#c9befe;--pl-bg:color-mix(in srgb,#9776fa 22%,transparent);--pm:#19e285;--pm-bg:color-mix(in srgb,#1fad66 22%,transparent);--pp:#feb68b;--pp-bg:color-mix(in srgb,#dc7019 22%,transparent);
  --pr:#feb1ad;--pr-bg:color-mix(in srgb,#fb4652 22%,transparent);--py:#feba28;--py-bg:color-mix(in srgb,#bb881a 22%,transparent);--pk:#feabcf;--pk-bg:color-mix(in srgb,#fb27a2 22%,transparent);--pt:#19daeb;--pt-bg:color-mix(in srgb,#1fa5b1 22%,transparent)}}
:root[data-theme="dark"] .v2 .atb{--atb-ok:#5fcb2a;--atb-warn:#f59e0b;--atb-bad:#fb4849;
  --pb:#a4c9fe;--pb-bg:color-mix(in srgb,#4890fa 22%,transparent);--pl:#c9befe;--pl-bg:color-mix(in srgb,#9776fa 22%,transparent);--pm:#19e285;--pm-bg:color-mix(in srgb,#1fad66 22%,transparent);--pp:#feb68b;--pp-bg:color-mix(in srgb,#dc7019 22%,transparent);
  --pr:#feb1ad;--pr-bg:color-mix(in srgb,#fb4652 22%,transparent);--py:#feba28;--py-bg:color-mix(in srgb,#bb881a 22%,transparent);--pk:#feabcf;--pk-bg:color-mix(in srgb,#fb27a2 22%,transparent);--pt:#19daeb;--pt-bg:color-mix(in srgb,#1fa5b1 22%,transparent)}
/* the search and the plan filters: 16px in from the card's edges, the last filter ending on the content's right edge. The
   field's glass sits in the logos' column and its words start on the names' column, as the rows under it do */
.v2 .atb-h{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4) var(--s-4) var(--s-3);flex-wrap:wrap;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* a narrow card (a phone): the search takes the width and the filters go under it, on its left edge */
.v2 .atb{container-type:inline-size}
@container (max-width:420px){.v2 .atb-h{flex-direction:column;align-items:stretch}.v2 .atb-h>.atb-s{flex:none;min-width:0}}
.v2 .atb-s{display:flex;align-items:center;gap:var(--s-4);height:32px;padding:0 10px 0 6px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);flex:1;min-width:160px;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .atb-s{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .atb-s input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--fg)}
.v2 .atb-s:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .atb-s input::placeholder{color:var(--muted)}
.v2 .atb-fl{display:flex;gap:var(--s-1);flex-wrap:wrap}
/* the filters are white chips with a dimmed grey edge; the picked one's edge is a step stronger */
.v2 .atb-fl .chip{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .atb-fl .chip:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
/* the table sits 8px in from the card's sides, and its first and last cells keep 8px more: every column's words start where
   its head's words start, the first 16px in and the last ending 16px from the right, and a row's hover fill reaches 8px out
   round them with rounded corners, in place of the hairlines round it (owner, 18 Nov). On a phone the table scrolls sideways */
/* the rows' fills reach as far toward the foot as toward the sides: 8px */
.v2 .atb-sc{overflow-x:auto;padding:0 var(--s-2) var(--s-2)}
.v2 .atb table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:560px}
.v2 .atb th{text-align:left;font-weight:500;font-size:12px;line-height:18px;color:var(--muted);padding:10px var(--s-3);white-space:nowrap}
.v2 .atb th.r,.v2 .atb td.r{text-align:right}
/* it reads as a table of columns (owner, 10 and 21 Nov): a hairline after every column but the last, in every style and
   wherever the columns have been moved; the note under a row spans them all with none. The columns resize and move as in a
   spreadsheet (cols()): a header takes the keyboard's focus so Alt and an arrow can move it, and sized by hand, a cell too
   narrow for its words cuts them short */
.v2 .atb{--atb-col:color-mix(in srgb,color-mix(in srgb,var(--line),var(--fg) 9%) 50%,transparent)}
.v2 .atb :is(th,td):not(:last-child){box-shadow:inset -1px 0 0 var(--atb-col)}
.v2 .atb th{position:relative}
.v2 .atb th[tabindex]:focus-visible{outline-offset:-2px;border-radius:var(--r-xs)}
.v2 .atb table.cols-rz td{overflow:hidden;text-overflow:ellipsis}
.v2 .atb td{padding:10px var(--s-3);line-height:20px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);white-space:nowrap;transition:background-color var(--t-fast) var(--ease)}
.v2 .atb :is(th,td):first-child{padding-left:var(--s-2)}
.v2 .atb :is(th,td):last-child{padding-right:var(--s-2)}
.v2 .atb tr.row{cursor:pointer}
@media (hover:hover) and (pointer:fine){
  .v2 .atb tr.row:hover td{background:color-mix(in srgb,var(--fg) 4%,transparent);border-top-color:transparent}
  .v2 .atb tr.row:hover td:first-child{border-radius:calc(8px * var(--rk-m,var(--rk))) 0 0 calc(8px * var(--rk-m,var(--rk)))}
  .v2 .atb tr.row:hover td:last-child{border-radius:0 calc(8px * var(--rk-m,var(--rk))) calc(8px * var(--rk-m,var(--rk))) 0}
  .v2 .atb tr.row:hover+tr td{border-top-color:transparent}
}
/* a row that takes the focus fills the scrolling table, which would cut an outside ring: its ring is drawn inside */
.v2 .atb tr.row:focus-visible{outline-offset:-2px}
.v2 .atb .nm{display:flex;align-items:center;gap:10px;font-weight:500}
/* brand tiles sit a shade darker than the brand colour, so their white letter reads at 4.5:1 or more */
.v2 .atb .lg{width:24px;height:24px;border-radius:calc(7px * var(--rk-m,var(--rk)));display:grid;place-items:center;font-size:10px;font-weight:500;color:#fff}
.v2 .atb .hb{display:flex;align-items:center;gap:var(--s-2)}
.v2 .atb .hb i{width:54px;height:5px;border-radius:var(--r-tiny,3px);background:var(--line);overflow:hidden;display:block}
.v2 .atb .hb i b{display:block;height:100%;border-radius:var(--r-tiny,3px)}
/* the 12px score sits in a box with the row's own 13px line, so it shares the other cells' baseline (the bar stays centred);
   its own line is no taller than that box's, so the box keeps the row's 20px */
.v2 .atb .hb .num{font-size:12px;line-height:1;color:var(--fg2)}
/* the agent's note opens under its row, with no hairline between them: the spark centred under the logos, the words on the
   names' column, and its button ending where MRR ends, centred on the words */
.v2 .atb tr.det td{padding:0;border-top:0}
/* the note is a detail row under its account (owner, 21 Nov): it spans every column, so the column lines stop at its top edge and
   start again under it, and it sits in an inset panel of the style's quiet fill (Studio: its off-white with 10px corners), its
   spark under the logos and its words on the names' column; the account it belongs to keeps a quiet fill while it is open */
.v2 .atb-note{display:flex;align-items:center;gap:var(--s-3);margin:0 0 var(--s-2);padding:10px var(--s-2) 10px 14px;border-radius:var(--r-in);background:var(--wash);font-size:12.5px;line-height:1.5;color:var(--fg2);white-space:normal}
.v2 .atb-note>svg{color:var(--accent-mark,var(--accent));flex:none;margin-right:4px}
.v2 .atb-note span{flex:1}
/* Draft email is as wide as its words, and eases to the new width as it says Drafting, then Draft ready with the green tick */
.v2 .atb-note .pill{flex:none;overflow:hidden}
/* a white button on a tinted row takes the tint hairline (CLAUDE.md); Blueprint keeps its outlined edge */
.v2 .atb-note .pill.line{box-shadow:var(--on-tint-btn)}
@media (hover:hover) and (pointer:fine){.v2 .atb-note .pill.line:hover{box-shadow:var(--on-tint-btn-h)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .atb-note .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .atb-note .pill .spin{width:12px;height:12px}
.v2 .atb-note .pill .atb-done{display:grid;color:var(--ok-mark)}
/* nothing matches: the empty state of the lab's Studio, in every style. A small sketch of a table on a white card,
   what happened, one muted line and the way back to every account */
.v2 .atb-empty td{padding:28px var(--s-4) 30px;text-align:center;white-space:normal}
.v2 .atb-em{display:flex;flex-direction:column;align-items:center;gap:4px}
.v2 .atb-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .atb-em>span:not(.atb-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .atb-em .pill{margin-top:12px}
.v2 .atb-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 16px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .atb-em-art::before{content:"";position:absolute;left:14px;top:14px;width:10px;height:10px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 60%,var(--surface)))}
.v2 .atb-em-art::after{content:"";position:absolute;left:32px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 60%,var(--surface)))}
/* Studio: the same 16px insets, the spark the quiet grey of Studio's chrome */
:root[data-style="studio"] .v2 .atb-note>svg{color:var(--fg2)}
:root[data-style="studio"] .v2 .atb-note{border-radius:10px;background:var(--strip);box-shadow:inset 0 0 0 1px var(--hair)}
.v2 .atb tr.row.open td{background:var(--row);border-top-color:transparent}
.v2 .atb tr.row.open td:first-child{border-radius:calc(8px * var(--rk-m,var(--rk))) 0 0 calc(8px * var(--rk-m,var(--rk)))}
.v2 .atb tr.row.open td:last-child{border-radius:0 calc(8px * var(--rk-m,var(--rk))) calc(8px * var(--rk-m,var(--rk))) 0}
/* Studio: the search and the plan filters sit in the card's off-white head strip, with a hairline under it (owner, 21 Nov: "add
   a gray background behind the search accounts"), 16px in at the sides and 16px from its top and bottom (owner, 23 Nov) */
:root[data-style="studio"] .v2 .atb-h{padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
/* the filter chips keep their quiet edge: the one hover fills them, and the picked one has the stronger fill (owner, 21 Nov) */
:root[data-style="studio"] .v2 .atb-fl .chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .atb-fl .chip:not(.on):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .atb-fl .chip.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
/* ---------- Date picker ---------- */
/* one field, as wide as the other single fields; its script keeps it centred in its stage and glides it up as the calendar opens */
.v2 .dpk{position:relative;width:100%;max-width:var(--field-w);margin:0 auto}
.v2 .dpk-f{display:flex;align-items:center;gap:10px;width:100%;height:var(--field-h);padding:0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font-size:13.5px;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .dpk-f{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* a dropdown's field steps up its edge while it has the focus or its calendar is open; it takes no ring */
.v2 .dpk-f:focus-visible,.v2 .dpk-f[aria-expanded="true"]{outline:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .dpk-f>svg:first-child{color:var(--muted)}
.v2 .dpk-val{flex:1;text-align:left;color:var(--fg)}
.v2 .dpk-val.ph{color:var(--muted)}
.v2 .dpk-f>svg:last-child{color:var(--muted);transition:transform var(--t) var(--ease)}
.v2 .dpk-f[aria-expanded="true"]>svg:last-child{transform:rotate(180deg)}
.v2 .dpk-pop{width:100%;padding:10px;background:var(--surface)}
/* the calendar under the field: its content 16px in from the popover's edges in every style, and the month's arrows centred
   over the first and last columns of days (a column is a seventh of the content's width) */
.v2 .dpk>.dpk-pop{padding:var(--s-4)}
.v2 .dpk>.dpk-pop .dpk-mh{padding-inline:calc((100% / 7 - 26px) / 2)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .dpk :is(.ib,.chip,.dpk-d):active,:root[data-style="studio"] .v2 .dpk .ib:active{transform:none}
/* Studio (owner, 18 Nov): the popover takes the card's 22px round corners */
:root[data-style="studio"] .v2 .dpk>.dpk-pop{border-radius:var(--r-card)}
/* Studio (owner, 21 Nov: "date picker studio is not its style, its soft with rounded corners, change it more"). The field is a
   flat dropdown trigger (an off-white fill under a hairline that deepens on hover and while it is open). The popover opens
   from it with Studio's scale and fade; its head is an off-white strip under a hairline (its background, 92px tall) holding the
   typed date and the quick picks as flat hairline pills. The days are circles: the picked one filled with the accent (white
   with dark words in dark), today a small dot under its number, and the hover a neutral circle that glides from day to day
   (hoverGlide). The weekday letters are muted at 12px, ‹ and › ghost buttons, and a new month slides in with Studio's ease */
:root[data-style="studio"] .v2 :is(.dpk-f){background:var(--strip);box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.dpk-f):hover{background:var(--chip);box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 :is(.dpk-f):is(:focus-visible,[aria-expanded="true"]){background:var(--chip);box-shadow:var(--btn2-hover)}
:root[data-style="studio"] .v2 .dpk>.dpk-pop{padding:12px 16px 16px;background:linear-gradient(var(--strip) 0 92px,var(--line) 92px 93px,var(--surface) 93px)}
:root[data-style="studio"] .v2 .dpk .dpk-qk{margin:8px 0 0}
:root[data-style="studio"] .v2 .dpk .dpk-qk .chip{height:28px;padding:0 12px;font-size:12.5px;color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .dpk .dpk-qk .chip:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .dpk>.dpk-pop .dpk-mh{margin:25px 0 4px;padding-inline:calc((100% / 7 - 28px) / 2)}
:root[data-style="studio"] .v2 .dpk .dpk-mh .ib{width:28px;height:28px;border-radius:50%}
:root[data-style="studio"] .v2 .dpk .dpk-wd{font-size:12px;line-height:20px;margin-bottom:4px}
:root[data-style="studio"] .v2 .dpk .dpk-d{width:32px;height:32px;justify-self:center;border-radius:50%;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .dpk .dpk-d.t::after{bottom:3px;width:3px;height:3px;margin-left:-1.5px}
:root[data-style="studio"] .v2 .dpk .dpk-g.in-l{animation:v2-clpkl var(--t) var(--ease) both}
:root[data-style="studio"] .v2 .dpk .dpk-g.in-r{animation:v2-clpkr var(--t) var(--ease) both}
@keyframes v2-clpkl{from{opacity:0;transform:translateX(-16px)}}
@keyframes v2-clpkr{from{opacity:0;transform:translateX(16px)}}
.v2 .dpk-nl{width:100%;height:32px;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:0 10px;font:inherit;font-size:13px;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .dpk-nl{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .dpk-nl::placeholder{color:var(--muted)}
.v2 .dpk-nl:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .dpk-qk{display:flex;gap:var(--s-1);margin:var(--s-2) 0}
.v2 .dpk-mh{display:flex;align-items:center;justify-content:space-between;margin:var(--s-1) 0}
.v2 .dpk-mh b{font-weight:500;font-size:13px}
.v2 .dpk-mh .ib{width:26px;height:26px}
.v2 .dpk-wd,.v2 .dpk-g{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.v2 .dpk-wd{font-size:11px;margin-bottom:2px}
.v2 .dpk-vp{overflow:hidden}
.v2 .dpk-g{gap:2px 0}
.v2 .dpk-g.in-l{animation:v2-dpkl .4s var(--ease) both}.v2 .dpk-g.in-r{animation:v2-dpkr .4s var(--ease) both}
@keyframes v2-dpkl{from{opacity:0;transform:translateX(-24px);filter:blur(3px)}}
@keyframes v2-dpkr{from{opacity:0;transform:translateX(24px);filter:blur(3px)}}
.v2 .dpk-d{height:32px;border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:12.5px;color:var(--fg);transition:background .2s,color .2s;position:relative}
@media (hover:hover) and (pointer:fine){.v2 .dpk-d:hover{background:var(--row)}}
/* the days fill the month's sliding view, which would cut an outside ring: theirs is drawn inside */
.v2 .dpk-d:focus-visible{outline-offset:-2px}
.v2 .dpk-d.o{color:var(--muted)}
.v2 .dpk-d.t::after{content:"";position:absolute;left:50%;bottom:4px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent-mark,var(--accent))}
.v2 .dpk-d.s{background:var(--accent);color:var(--on-accent,#fff)}
.v2 .dpk-d.s::after{background:var(--on-accent,#fff)}
.v2 .dpk-d.s{animation:v2-dpks .35s var(--ease)}
/* in the date picker a picked day takes its fill without growing (owner, 18 Nov: nothing scales on a click) */
.v2 .dpk .dpk-d.s{animation:none}
/* on the picked day the inside ring would sit on the accent fill: a surface gap inside it keeps it seen */
.v2 .dpk-d.s:focus-visible{box-shadow:inset 0 0 0 3.5px var(--surface)}
@keyframes v2-dpks{from{transform:scale(.8)}}
/* ---------- Segmented control ---------- */
/* one choice from a few views of the same thing: the picked one sits on a white knob that slides to it. It is a tab
   list, so the arrow keys move along it and the panel under it changes with it. The demo (owner, 28 Nov) is a month of a
   pricing launch: a one-line head, the month as the title between two quiet chevrons on the left and the switch on the right,
   two icons on the grey track (List and Calendar, each named and with a tooltip) */
.v2 .sgc{width:100%;max-width:400px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:14px;transition:padding-bottom var(--t) cubic-bezier(.23,1,.32,1)}
/* in the list, the last row's hover room makes up the foot, so its words still end 16px from the card's bottom */
.v2 .sgc.panel[data-v="list"]{padding-bottom:calc(var(--s-4) - 7px)}
.v2 .sgc-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3)}
/* the first chevron's glyph sits on the content's left edge, its 28px hover circle reaching out round it (the 12px glyph is
   centred in the box, so the box starts 8px further out) */
.v2 .sgc-mt{display:flex;align-items:center;gap:2px;min-width:0}
.v2 .sgc-mt .ib{width:28px;height:28px;color:var(--fg2)}
.v2 .sgc-mt .sgc-pv{margin-left:calc((12px - 28px) / 2)}
.v2 .sgc-mt b{font-size:14px;font-weight:500;padding:0 var(--s-1);white-space:nowrap}
.v2 .sgc-seg{position:relative;display:inline-flex;padding:3px;border-radius:var(--r-pill);background:var(--chip);flex:none}
.v2 .sgc-k{position:absolute;top:3px;bottom:3px;left:3px;width:0;border-radius:var(--r-pill);background:var(--raised);box-shadow:var(--seg-k-shadow,var(--shadow));transition:left .42s var(--ease),width .42s var(--ease)}
.v2 .sgc-seg button{position:relative;z-index:1;height:30px;padding:0 14px;border-radius:var(--r-pill);font-size:13px;color:var(--fg2);outline:0;transition:color .2s}
.v2 .sgc-seg button:has(>.i:only-child){width:36px;padding:0;display:grid;place-items:center}
.v2 .sgc-seg button[aria-selected="true"],.v2 .sgc-seg button[aria-checked="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .sgc-seg button:hover{color:var(--fg)}}
.v2 .sgc-seg button:focus-visible{box-shadow:0 0 0 2px var(--focus)}
/* the panel is as tall as the view on show, and eases to the next one's height (grow()) */
.v2 .sgc-p{position:relative;border-radius:var(--r-in);outline:0}
.v2 .sgc-p.growing{overflow-clip-margin:10px}
.v2 .sgc-p:focus-visible{box-shadow:0 0 0 2px var(--focus)}
/* a new view crossfades over the one it replaces, so the panel is never empty between them; its days or rows come in one after
   another (mxIn), on Studio's ease in every style. With reduced motion it only swaps */
.v2 .sgc-in{--ease:cubic-bezier(.23,1,.32,1)}
.v2 .sgc-in.fresh{animation:v2-sgcin .22s var(--ease) both}
.v2 .sgc-in.gone{position:absolute;inset:0 0 auto;pointer-events:none;animation:v2-sgcout .22s var(--ease) both}
@keyframes v2-sgcin{from{opacity:0}}
@keyframes v2-sgcout{to{opacity:0}}
@media (prefers-reduced-motion:reduce){.v2 .sgc-in.fresh,.v2 .sgc-in.gone{animation:none}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .sgc :is(.ib,.pill):active,:root[data-style="studio"] .v2 .sgc .ib:active{transform:none}
/* the calendar: a calm month. A grey dot only on a day with something on, the launch day's dot the one accent mark; today a
   quiet grey ring; the picked day a small accent circle. Under a hairline, the picked day's line: its date, its event and time */
.v2 .sgc-cal{display:flex;flex-direction:column;gap:14px}
/* the days' circles are centred in their columns, and the grid reaches out into the padding just far enough that Monday's
   circle starts and Sunday's ends on the content's edges, under the head's chevron and switch, at every width: with 7 columns
   of 26px circles and 6 gaps of 4px, each side reaches out by (circles + gaps - width) / 12 */
.v2 .sgc-mo{display:grid;grid-template-columns:repeat(7,1fr);gap:2px var(--s-1);margin-inline:calc((7 * 26px + 6 * var(--s-1) - 100%) / 12);font-size:12px;text-align:center}
.v2 .sgc-mo .w{font-size:11px;color:var(--muted);padding-bottom:2px}
.v2 .sgc-mo .d{position:relative;height:32px;display:grid;place-items:center;color:var(--fg2)}
.v2 .sgc-mo .d b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-weight:400;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .sgc-mo .d:not(.on):hover b{background:var(--row)}}
.v2 .sgc-mo .d:focus-visible{outline:0}
.v2 .sgc-mo .d:focus-visible b{box-shadow:0 0 0 2px var(--focus)}
.v2 .sgc-mo .d.e::after{content:"";position:absolute;bottom:0;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--faint)}
.v2 .sgc-mo .d.x::after{background:var(--accent-mark,var(--accent))}
.v2 .sgc-mo .d.now b{color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 50%,transparent)}
.v2 .sgc-mo .d.on b{background:var(--accent);color:var(--on-accent,#fff);font-weight:500;box-shadow:none}
.v2 .sgc-mo .d.on::after{opacity:0}
/* the date, then the event 12px after it; the launch's accent dot follows the line's words, so no line keeps room for a dot
   it doesn't have */
.v2 .sgc-sel{display:flex;align-items:center;gap:var(--s-3);padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;line-height:18px}
.v2 .sgc-sel .num{flex:none;color:var(--muted)}
.v2 .sgc-sel i,.v2 .sgc-lr i{width:6px;height:6px;border-radius:50%;flex:none}
.v2 .sgc-sel i.x,.v2 .sgc-lr i.x{background:var(--accent-mark,var(--accent))}
.v2 .sgc-sel i{margin-left:calc(var(--s-2) - var(--s-3))}
.v2 .sgc-sel .t{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .sgc-sel .t span,.v2 .sgc-sel .t.none{color:var(--muted)}
/* the list: the month's events as rows, a muted date, the event and its time on the right; no lines between them, a quiet
   hover fill that reaches 8px out round the words, and the launch keeps its one accent dot, after its title. The rows share
   one grid (subgrid), so the date column is as wide as the widest date and every title starts 12px after it */
.v2 .sgc-ls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:var(--s-3);margin:0 -8px}
.v2 .sgc-lr{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;height:32px;padding:0 8px;border-radius:var(--r-sm);font-size:13px;line-height:18px;text-align:left;color:var(--fg);transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .sgc-lr:hover{background:var(--row)}}
.v2 .sgc-lr:focus-visible{outline:0;box-shadow:0 0 0 2px var(--focus)}
.v2 .sgc-lr>.num:first-child{color:var(--muted)}
.v2 .sgc-lr .t{min-width:0;display:flex;align-items:center;gap:var(--s-2);white-space:nowrap}
.v2 .sgc-lr .t span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .sgc-lr .tm{flex:none;color:var(--muted)}
.v2 .sgc-none{padding:var(--s-3) 0 calc(var(--s-3) - 7px);font-size:13px;color:var(--muted)}
/* Studio (owner, 17, 18 and 21 Nov): the head is an off-white strip under a hairline, the switch Studio's monochrome one, the
   chevrons ghost circles; the rows take Studio's 10px corners under one gliding highlight (hoverGlide), and a day's hover is a
   pill. The picked day is the accent in light and white in dark, as every Studio accent */
:root[data-style="studio"] .v2 .sgc.panel{padding:0 16px 16px}
:root[data-style="studio"] .v2 .sgc.panel[data-v="list"]{padding-bottom:calc(16px - 7px)}
:root[data-style="studio"] .v2 .sgc-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .sgc-mt .ib{border-radius:50%}
:root[data-style="studio"] .v2 :is(.sgc-lr>.num,.sgc-sel .num,.sgc-lr .tm){font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .sgc-lr{border-radius:10px}
:root[data-style="studio"] .v2 .sgc-mo .d b{border-radius:var(--r-pill)}
/* ---------- Date range picker ---------- */
.v2 .drx{display:grid;grid-template-columns:160px 1fr;overflow:hidden}
@media (max-width:720px){.v2 .drx{grid-template-columns:1fr}.v2 .drx-side{flex-direction:row!important;flex-wrap:wrap;border-right:0!important;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}}
.v2 .drx-side{display:flex;flex-direction:column;gap:2px;padding:10px;border-right:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .drx-p{text-align:left;padding:7px 10px;border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:12.5px;color:var(--fg2);transition:background .2s,color .2s;white-space:nowrap}
@media (hover:hover) and (pointer:fine){.v2 .drx-p:hover{background:var(--row);color:var(--fg)}}
.v2 .drx-p.on{background:var(--sel);color:var(--accent-fg,var(--accent));font-weight:500}
.v2 .drx-main{padding:var(--s-3) 14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.v2 .drx-top{display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap;color:var(--muted)}
.v2 .drx-in{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font-size:12px;white-space:nowrap;transition:background-color var(--t) var(--ease),box-shadow var(--t) var(--ease)}
.v2 .drx-in b{font-weight:500;font-size:12.5px;color:var(--fg)}
/* the end that the next click sets */
.v2 .drx-in.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .drx-in{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .drx-n{margin-left:auto;font-size:12px}
.v2 .drx-cals{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:560px){.v2 .drx-cals{grid-template-columns:1fr}.v2 .drx-cal[data-o="1"]{display:none}}
.v2 .drx-cal h5{margin:0 0 6px;font-size:12.5px;font-weight:500;text-align:center}
.v2 .drx-g{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px}
.v2 .drx-g .w{font-size:10.5px;color:var(--muted);text-align:center;height:22px}
.v2 .drx-d{height:30px;font-size:12px;color:var(--fg);position:relative;transition:background .15s,color .15s}
.v2 .drx-d:empty{pointer-events:none}
/* the start and end keep their accent under the pointer, so their day stays readable */
@media (hover:hover) and (pointer:fine){.v2 .drx-d:hover:not(.e):not(.a):not(.b){background:var(--chip);border-radius:var(--r-sm)}}
.v2 .drx-d.in{background:var(--sel);border-radius:0}
.v2 .drx-d.a,.v2 .drx-d.b{background:var(--accent);color:var(--on-accent,#fff);border-radius:var(--r-sm);z-index:1}
.v2 .drx-d.a.ra{border-radius:var(--r-sm) 0 0 var(--r-sm)}.v2 .drx-d.b.rb{border-radius:0 var(--r-sm) var(--r-sm) 0}
.v2 .drx-d.hv{background:color-mix(in srgb,var(--accent) 7%,transparent);border-radius:0}
.v2 .drx-f{display:flex;justify-content:flex-end;gap:6px}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .drx.panel{padding:10px 6px 8px 10px}
/* ---------- Event calendar ---------- */
.v2 .ecx{overflow:hidden;position:relative;container:ecx/inline-size}
/* the Ask pill crossfades its words but stays a flex row, so the spark keeps its gap */
.v2 .ecx-ask.sw{display:inline-flex}
/* while the agent checks, its words carry the loaders' highlight sweep in the pill's own colour */
.v2 .ecx-ask .shim{color:inherit;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,currentColor 0%,currentColor 38%,var(--faint) 50%,currentColor 62%,currentColor 100%)}
/* the Ask pill is an accent tint, like a picked preset in Date range picker */
.v2 .pill.soft.ecx-ask{background:var(--sel);color:var(--accent-fg,var(--accent));box-shadow:none}
@media (hover:hover) and (pointer:fine){.v2 .pill.soft.ecx-ask:hover{background:color-mix(in srgb,var(--accent) 14%,transparent)}}
.v2 .ecx-h{display:flex;align-items:center;gap:var(--s-2);padding:10px var(--s-3);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13.5px;flex-wrap:wrap}
.v2 .ecx-h b{font-weight:500}
.v2 .ecx-sp{flex:1}
/* the library's calendar (the Sales CRM's keeps its own layout): the head and the days sit 16px in from the card's sides, and
   the head's week and agent's button 16px from its top and from its hairline, in every style */
.v2 .ecx.panel:not(.crm-ecx){padding:0 var(--s-4)}
.v2 .ecx.panel:not(.crm-ecx)>.ecx-h{margin:0 calc(-1 * var(--s-4));padding:var(--s-4)}
.v2 .ecx-sc{overflow-x:auto}
/* --ph is the height of an hour: every event, the grid lines and the time column are laid out in hours of it */
.v2 .ecx-grid{display:grid;grid-template-columns:44px repeat(var(--days,5),minmax(76px,1fr));min-width:424px;position:relative;--ph:44px}
.v2 .ecx-tm{grid-row:1/3;display:flex;flex-direction:column;padding-top:var(--s-8)}
.v2 .ecx-tm span{height:var(--ph);font-size:10.5px;color:var(--muted);text-align:right;padding-right:var(--s-2);transform:translateY(-6px)}
.v2 .ecx-tm i{font-style:normal}
/* the time column reads in hours (9am), and in half hours (9:00, 9:30) where one row is 30 minutes */
.v2 .ecx-tm .hf,.v2 .ecx-tm .n{display:none}
.v2 .ecx-day{border-left:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ecx-dh{height:32px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:var(--fg2);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ecx-dh b{font-weight:500;color:var(--fg)}
.v2 .ecx-dh.t b{width:22px;height:22px;border-radius:50%;background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;font-size:11.5px}
.v2 .ecx-col{position:relative;height:calc(var(--ph) * 8);background-image:linear-gradient(color-mix(in srgb,var(--line) 50%,transparent) 1px,transparent 1px);background-size:100% var(--ph)}
.v2 .ecx-e{position:absolute;left:3px;right:3px;border-radius:var(--r-sm);padding:var(--s-1) 7px;font-size:11.5px;line-height:1.3;text-align:left;overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s}
@media (hover:hover) and (pointer:fine){.v2 .ecx-e:hover{transform:translateY(-1px);box-shadow:var(--shadow)}}
/* every event keeps its pastel pair at full strength, and its hover is a deeper fill in its own colour; an event whose card is
   open is a step deeper, with a faint ring in its colour. No lift, no drop shadow, no grey ring (owner, 20 Nov: "the selected
   state hover shadow is so bad"). (The Sales CRM's calendar has its own, the same) */
.v2 .ecx:not(.crm-ecx) .ecx-e{transition:box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .ecx:not(.crm-ecx) .ecx-e:hover{transform:none}}
@media (hover:hover) and (pointer:fine){.v2 .ecx:not(.crm-ecx) .ecx-e:not(.sug,.drag):hover{box-shadow:none}}
@media (hover:hover) and (pointer:fine){.v2 .ecx:not(.crm-ecx) .ecx-e:not(.sug,.drag):hover{box-shadow:inset 0 0 0 100vmax color-mix(in srgb,currentColor 7%,transparent)}}
.v2 .ecx:not(.crm-ecx) .ecx-e.on:not(.sug,.drag){box-shadow:inset 0 0 0 100vmax color-mix(in srgb,currentColor 10%,transparent),inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}
/* events sit in the scrolling grid, which would cut an outside ring: theirs is drawn inside */
.v2 .ecx-e:focus-visible{outline-offset:-2px}
.v2 .ecx-e{cursor:grab;touch-action:none}
.v2 .ecx-e.drag{transition:none;z-index:6;box-shadow:var(--shadow-pop);cursor:grabbing}
.v2 .ecx-col{cursor:copy}
.v2 .ecx-ghost{position:absolute;left:3px;right:3px;height:calc(var(--ph) - 3px);border-radius:var(--r-sm);border:1.5px dashed color-mix(in srgb,var(--accent-mark,var(--accent)) 45%,transparent);background:color-mix(in srgb,var(--accent) 5%,transparent);color:var(--accent-fg,var(--accent));font-size:11px;font-weight:500;padding:var(--s-1) 7px;pointer-events:none}
.v2 .ecx-now{position:absolute;left:0;right:0;height:2px;margin-top:-1px;background:var(--bad-mark);z-index:3}
.v2 .ecx-now::before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--bad-mark)}
.v2 .ecx-msg{font-size:12.5px;margin-right:var(--s-2)}
.v2 .ecx-pop{position:absolute;z-index:20;width:248px;padding:var(--s-3);background:var(--raised);border-radius:calc(14px * var(--rk-l,var(--rk)));box-shadow:var(--shadow-pop);opacity:0;visibility:hidden;transform:translateY(6px);filter:blur(3px);pointer-events:none;transition:opacity .2s var(--ease),transform .35s var(--ease),filter .2s,visibility 0s .2s}
.v2 .ecx-pop.open{opacity:1;visibility:visible;transform:none;filter:none;pointer-events:auto;transition-property:opacity,transform,filter}
/* its motion (the core's motion pieces, owner, 26 Nov): the event's card grows out of the event's side (.mx-pop) and goes back
   quicker; a press shows at once (.mx-press); Ask's and Prep notes' boxes ease to the width of their new words (mxWidth()) */
.v2 .ecx-pop.mx-pop{transform:scale(.95);filter:blur(var(--blur-in));transform-origin:var(--origin,top left);transition:opacity var(--t-out) var(--ease-io),transform var(--t-out) var(--ease-io),filter var(--t-out) var(--ease-io),visibility 0s var(--t-out)}
.v2 .ecx-pop.mx-pop.open{transform:none;filter:none;transition:opacity calc(var(--t-in) * .6) var(--ease),transform var(--t-in) var(--ease-pop),filter calc(var(--t-in) * .7) var(--ease),visibility 0s}
@media (prefers-reduced-motion:reduce){.v2 .ecx-pop.mx-pop{filter:none}}
.v2 .ecx-ph{display:flex;align-items:center;gap:var(--s-2);font-size:13.5px}
.v2 .ecx-ph>i{width:10px;height:10px;border-radius:var(--r-tiny,3px);flex:none}
.v2 .ecx-ph b{font-weight:500;flex:1;min-width:0}
.v2 .ecx-ph .ib{width:24px;height:24px;margin:-4px -4px -4px auto}
/* a new event's title is a field like any other: white, the dimmed field edge, one step stronger while you type */
.v2 .ecx-ti{flex:1;min-width:0;height:32px;padding:0 var(--s-3);border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font:inherit;font-weight:500;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ecx-ti{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .ecx-ti::placeholder{color:var(--muted)}
.v2 .ecx-ti:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ecx-pt{font-size:12.5px;color:var(--fg2);margin:var(--s-1) 0 0 18px}
.v2 .ecx-pw{display:flex;align-items:center;margin:10px 0 0 18px}
.v2 .ecx-pw .av{width:22px;height:22px;font-size:9px;margin-right:-4px;box-shadow:0 0 0 2px var(--raised)}
.v2 .ecx-pw .muted{margin-left:10px;font-size:12px}
/* the library's event card (the Sales CRM's, built on it, keeps its own): 16px in from its edges, the close button's glyph
   16px in on the title's line, and the people side by side, never stacked over each other. Everything under the title (the
   time, the people, the notes and the buttons) starts at the card's left content edge, where the colour dot sits, so both
   sides have the same room (owner, 20 Nov) */
.v2 .ecx-pop:not(.crm-cpop){padding:var(--s-4)}
.v2 .ecx-pop:not(.crm-cpop) :is(.ecx-pt,.ecx-pw,.ecx-note,.ecx-pa){margin-left:0}
.v2 .ecx-pop:not(.crm-cpop) .ecx-ph .ib{margin:-4px -6px -4px auto}
.v2 .ecx-pop:not(.crm-cpop) .ecx-pw{gap:var(--s-1)}
.v2 .ecx-pop:not(.crm-cpop) .ecx-pw .av{margin-right:0;box-shadow:none}
.v2 .ecx-pop:not(.crm-cpop) .ecx-pw .muted{margin-left:6px}
.v2 .ecx-note{display:flex;gap:6px;align-items:flex-start;margin:10px 0 0 18px;font-size:12px;line-height:1.45;color:var(--fg2)}
.v2 .ecx-note .i{color:var(--accent-fg,var(--accent));margin-top:2px}
.v2 .ecx-pa{display:flex;justify-content:flex-end;gap:6px;margin:var(--s-3) 0 0 18px}
/* the card's buttons share the width of its text column, the main one last (owner, 10 Nov) */
.v2 .ecx-pa>.pill{flex:1 1 0;justify-content:center}
.v2 .ecx-prep.done{color:var(--fg2)}
.v2 .ecx-prep.done>.i{color:var(--ok-mark)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses */
.v2 .ecx:not(.crm-ecx) :is(.ib,.pill,.ecx-days button):active,:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ib:active{transform:none}
.v2 .ecx-e b{display:block;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .ecx-e span{font-size:10.5px}
.v2 .ecx-e.sug{background:var(--surface)!important;color:var(--accent-fg,var(--accent))!important;box-shadow:inset 0 0 0 1.5px var(--accent-mark,var(--accent));animation:v2-ecs .6s var(--ease) both}
.v2 .ecx-e.sug.alt{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark,var(--accent)) 40%,transparent)}
@keyframes v2-ecs{from{opacity:0;transform:scale(.92);filter:blur(3px)}}
.v2 .ecx-sg{display:flex;gap:var(--s-1);margin-top:var(--s-1)}
.v2 .ecx-sg button{font-size:10.5px;padding:2px 6px;border-radius:var(--r-tiny,5px);background:var(--accent);color:var(--on-accent,#fff)}
.v2 .ecx-sg button.n{background:transparent;color:var(--accent-fg,var(--accent))}
.v2 .ecx-scan{position:absolute;left:44px;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);top:32px;opacity:0;pointer-events:none}
.v2 .ecx-scan.go{animation:v2-ecsc 1.2s var(--ease-io) both}
@keyframes v2-ecsc{0%{opacity:0;top:32px}20%{opacity:1}100%{opacity:0;top:384px}}
/* a narrow calendar, on a phone or in a narrow card: one day at a time, picked from a row of days, so every event has room
   for its whole title and time. Each row of the grid is half an hour (owner, 4 Nov): an hour is two rows, so an event from
   9 to 10 is two rows tall, and the time column reads 9:00, 9:30, 10:00 */
.v2 .ecx-days{display:none}
@container ecx (max-width:519px){
  .v2 .ecx-days{display:flex;gap:var(--s-1);padding:var(--s-2) var(--s-3);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
  .v2 .ecx-days button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--s-1) 0;border-radius:var(--r-sm);font-size:11.5px;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
  @media (hover:hover) and (pointer:fine){.v2 .ecx-days button:hover{background:var(--row);color:var(--fg)}}
  .v2 .ecx-days button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
  .v2 .ecx-days b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:13px;font-weight:500;color:var(--fg)}
  .v2 .ecx-days .t b{background:var(--accent);color:var(--on-accent,#fff)}
  .v2 .ecx-sc{overflow:visible}
  .v2 .ecx-grid{grid-template-columns:44px minmax(0,1fr);min-width:0;padding-top:var(--s-2);--ph:56px}
  .v2 .ecx-col{background-size:100% calc(var(--ph) / 2)}
  .v2 .ecx-tm span{height:calc(var(--ph) / 2)}
  .v2 .ecx-tm .hf,.v2 .ecx-tm .n{display:block}
  .v2 .ecx-tm .w{display:none}
  .v2 .ecx-day:not(.on){display:none}
  .v2 .ecx-dh{display:none}
  .v2 .ecx-tm{grid-row:auto;padding-top:0}
  .v2 .ecx-scan{top:8px}
  .v2 .ecx-scan.go{animation-name:v2-ecscn}
  .v2 .ecx-pop{max-width:calc(100% - 16px)}
  .v2 .ecx:not(.crm-ecx) .ecx-days{padding:var(--s-2) 0}
}
/* a calendar too narrow for the week and the agent's button side by side stacks its head: the week on its line, the button under
   it on the same left edge */
@container ecx (max-width:360px){
  .v2 .ecx:not(.crm-ecx)>.ecx-h{flex-direction:column;align-items:flex-start}
  .v2 .ecx:not(.crm-ecx)>.ecx-h>:is(.ecx-sp,.ecx-msg:empty){display:none}
}
@keyframes v2-ecscn{0%{opacity:0;top:8px}20%{opacity:1}100%{opacity:0;top:calc(var(--ph) * 8 + 8px)}}
/* Studio (owner, 17 and 18 Nov): an off-white head strip with the week and the agent's ask, which sits 16px from the card's edges
   and the strip's hairline (owner, 23 Nov); the days 16px in from the card's sides, running on to its foot as Soft's do. Events keep their colours and are
   ordinary rounded rectangles, never pills. The event card takes the card's 22px corners and is 16px in on every side, as in
   Soft (owner, 20 Nov). Book is the ink button. (The Sales CRM's calendar and event card are built on these classes and keep
   their own layout) */
:root[data-style="studio"] .v2 .ecx.panel:not(.crm-ecx){padding:0 16px}
/* (the Sales CRM's calendar keeps the padding this card's earlier Studio rule gave it) */
:root[data-style="studio"] .v2 .ecx.panel.crm-ecx{padding:10px 17px 0 10px}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx)>.ecx-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .ecx-e,:root[data-style="studio"] .v2 .ecx-ghost{border-radius:var(--r-sm)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-sg button{border-radius:var(--r-xs)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-sg button.y{background:var(--btn-2);color:var(--on-btn)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-sg button.n{color:var(--fg)}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop){border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-note .i{color:var(--fg2)}
/* Studio (owner, 21 Nov: "same with calendar components especially the popup"). The events keep their saturated colours (owner,
   20 Nov: no washed-out calendars) with Studio's touches: 10px corners, their tint with the title and time in their own colour
   and no line down their left (owner, 26 Nov: the tint-only option of lab/calendar-events), the words 8px in on both sides
   (the dashed new-event slot matches), a hover that deepens their fill, eased, and an open event ringed in a neutral grey. The now line is a crisp 1px
   red line. The event card is Studio's popover (22px corners, its shadow, scaling and fading from the event it opens beside):
   a head strip with the event's colour, its title and a ghost ×; the time and the people (side by side, as in Soft, and how
   many) in its body; and Prep notes (a flat secondary) and Join (the ink primary), the same height, in its foot strip */
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-e{border-radius:10px;padding:4px 8px;transition:box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-ghost{border-radius:10px;padding:4px 8px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-e:not(.sug,.drag):hover{box-shadow:inset 0 0 0 100vmax color-mix(in srgb,currentColor 9%,transparent)}}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-e.on:not(.sug,.drag){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 40%,transparent),inset 0 0 0 100vmax color-mix(in srgb,currentColor 11%,transparent)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-e.drag{box-shadow:var(--shadow-pop)}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-now{height:1px;margin-top:-.5px}
:root[data-style="studio"] .v2 .ecx:not(.crm-ecx) .ecx-now::before{left:-3px;top:-3px;width:7px;height:7px}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop){padding:0 16px 16px;filter:none;transform:scale(.96);transform-origin:var(--origin,top left);transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),visibility 0s var(--t-fast)}
:root[data-style="studio"] .v2 .ecx-pop.open:not(.crm-cpop){transform:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-ph{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-ph>i{width:10px;height:10px;border-radius:50%}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-ph .ib{width:28px;height:28px;margin:-4px -8px -4px auto;border-radius:50%}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-pt{margin-top:16px}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-pw{margin-top:12px}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-pa{margin:16px -16px -16px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .ecx-pop:not(.crm-cpop) .ecx-pa>.pill{height:28px}
@container ecx (max-width:360px){:root[data-style="studio"] .v2 .ecx:not(.crm-ecx)>.ecx-h{padding-top:var(--strip-y)}}
/* ---------- Agenda ---------- */
/* today's events on two columns that run the whole list: the times on the content's left edge, where the head's title
   starts, and the titles, details, people and prep notes after the bar. A row's hover fill reaches 6px out round its words */
.v2 .agx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
/* the last event's 8px of hover room makes up the foot, so its words sit 16px from the card's edge, as at the top and sides
   (Blueprint's rows keep the full foot) */
.v2 .agx.panel:not(.crm-cn){padding-bottom:var(--s-2)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .agx.panel:not(.crm-cn){padding-bottom:var(--s-4)}
.v2 .agx-h{display:flex;align-items:center;justify-content:space-between}
.v2 .agx-h>div{display:flex;flex-direction:column;font-size:13.5px}
.v2 .agx-h b{font-weight:500}
.v2 .agx-h .muted{font-size:12px}
.v2 .agx-list{display:flex;flex-direction:column;gap:var(--s-1);position:relative}
.v2 .agx .agx-list{margin:0 -6px}
.v2 .agx-e{display:grid;grid-template-columns:52px 3px 1fr;gap:10px;padding:var(--s-2) 6px;border-radius:calc(10px * var(--rk-m,var(--rk)));text-align:left;width:100%;transition:background .2s,opacity .3s}
@media (hover:hover) and (pointer:fine){.v2 .agx-e:hover{background:var(--row)}}
/* the open event needs no fill of its own: it sits on the panel's white and its prep notes show it is open */
.v2 .agx-e.open{background:var(--surface)}
@media (hover:hover) and (pointer:fine){.v2 .agx-e.open:hover{background:var(--surface)}}
/* a past event: its title steps down to muted and its bar fades, the text stays readable */
.v2 .agx-e.past .t b{color:var(--muted)}.v2 .agx-e.past .bar{opacity:.5}
.v2 .agx-e .tm{font-size:12px;color:var(--muted);padding-top:1px}
.v2 .agx-e .bar{border-radius:var(--r-tiny,2px);background:var(--accent-mark,var(--accent))}
.v2 .agx-e .t{display:flex;flex-direction:column;font-size:13px;min-width:0}
.v2 .agx-e .t b{font-weight:500}
.v2 .agx-e .t span{font-size:12px;color:var(--muted)}
/* the people side by side, never stacked over each other; each avatar keeps its own letter colour (white or dark ink) */
.v2 .agx-e .who{display:flex;gap:var(--s-1);margin-top:6px}
.v2 .agx-e .who .av{width:20px;height:20px;font-size:8.5px}
.v2 .agx-prep{grid-column:3;font-size:12.5px;line-height:1.5;color:var(--fg2);display:flex;flex-direction:column;gap:5px;padding-top:var(--s-2)}
.v2 .agx-prep div{display:flex;gap:7px;align-items:flex-start}
.v2 .agx-prep svg{color:var(--accent-fg,var(--accent));margin-top:3px;flex:none}
/* now: the time as a grey chip in the times' column, then the accent line from the bars' column to the content's right edge,
   starting at a dot centred on the bars. Nothing sits under the chip. The dot breathes in opacity, never in a colour */
.v2 .agx-now{display:grid;grid-template-columns:52px 3px 1fr;gap:10px;align-items:center;margin:2px 0;padding:0 6px}
.v2 .agx-now .tag{justify-self:start}
.v2 .agx-now i{justify-self:center;width:7px;height:7px;border-radius:50%;background:var(--accent-mark,var(--accent));animation:v2-agnow 2s ease-in-out infinite}
.v2 .agx-now::after{content:"";grid-column:2/-1;grid-row:1;height:2px;margin-left:1px;background:var(--accent-mark,var(--accent));border-radius:1px}
.v2 .agx-now i{grid-column:2;grid-row:1;position:relative;z-index:1}
@keyframes v2-agnow{50%{opacity:.4}}
@media (prefers-reduced-motion:reduce){.v2 .agx-now i{animation:none}}
.v2 .agx-join{margin-top:var(--s-2);align-self:flex-start}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink Join alone presses */
.v2 .agx:not(.crm-cn) :is(.ib,.pill):active{transform:none}
/* Studio (owner, 17 and 18 Nov): its content 16px in from every edge; the prep notes' sparks are the quiet grey, as the agent's
   marks are in Studio's other cards */
:root[data-style="studio"] .v2 .agx.panel:not(.crm-cn){padding:16px}
:root[data-style="studio"] .v2 .agx-prep svg{color:var(--fg2)}
/* Studio (owner, 21 Nov: "same comment… no difference besides the corners, need to change a lot more"). Today and its date sit in an
   off-white head strip under a hairline. The now time is a Studio pill with a hairline, and the now line a crisp 1px line in
   the accent (white in dark). The rails are neutral; only the next event's is the accent. A past event steps down as a whole:
   its time, title and details in the muted grey, its rail and people at half strength. The people sit side by side, as in
   Soft. The agent's ✦ notes are a plain list under the event, on its words' column, with no card or fill (notes are plain
   text), the ✦ muted and even gaps between its lines. The events are rows under one gliding highlight (hoverGlide), the last one's 8px of
   hover room making up the card's foot, so its words sit 16px from it */
:root[data-style="studio"] .v2 .agx.panel:not(.crm-cn){padding:0 16px 8px}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-e .bar{width:2px;margin:0 .5px;border-radius:1px;background:var(--rail)}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-now+.agx-e .bar{background:var(--accent-mark,var(--accent))}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-e .tm{font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-e.past :is(.t b,.t span){color:var(--muted)}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-e.past :is(.bar,.who){opacity:.5}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-now .tag{height:22px;padding:0 8px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg2);font-size:11.5px;font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-now::after{height:1px;border-radius:0}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-now i{width:6px;height:6px}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-e{border-radius:10px;transition:background-color var(--t-fast) var(--ease),opacity .3s var(--ease)}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-prep{gap:6px;line-height:18px}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-prep div{gap:8px}
:root[data-style="studio"] .v2 .agx:not(.crm-cn) .agx-prep svg{color:var(--muted);margin-top:2px}
/* ---------- Meeting card ---------- */
/* the next meeting, told as it goes: a countdown, "Starting now", the meeting in progress and then over. The track is the
   morning from 10:00 to 12:30 with the meeting on it in the accent tint, its start and end on the block itself. Time that
   has gone is hatched out in neutral grey (the hatch and the tint meet at the now line), and the status chip at the top right
   rolls its minutes. Join stays open while the meeting runs, since people join late. Join is the library's primary button
   (28 Nov: the standard .pill.primary, 32px like the copy button beside it, with no breathing of its own; Studio's ink primary).
   Every state is the same height. Its content sits 16px in from every edge, and nothing in it grows or shrinks when it is
   pressed (owner, 18 Nov) */
.v2 .mtx{width:100%;max-width:400px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);container:mtx/inline-size}
.v2 .mtx :is(.pill,.ib):active,.v2 .mtx .mtx-join.prs{transform:none}
/* the title and the chip share the first line; the time runs under both, so a longer chip never wraps it and every state
   is the same height */
.v2 .mtx-h{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--s-3);row-gap:2px}
.v2 .mtx-t{font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .mtx-sub{grid-row:2;grid-column:1 / -1;font-size:12.5px;color:var(--muted)}
.v2 .mtx-st{grid-row:1;grid-column:2;justify-self:end;transition:background .4s cubic-bezier(.22,1,.36,1),color .4s cubic-bezier(.22,1,.36,1)}
.v2 .mtx-st>span{display:inline-flex;align-items:center;gap:5px}
.v2 .mtx-st .dot{color:var(--ok-mark)}
.v2 .mtx-fade{animation:v2-mtxfade .4s cubic-bezier(.22,1,.36,1) both}
@keyframes v2-mtxfade{from{opacity:0}}
/* the minutes roll: each new number comes up from below */
/* the rolling minutes keep the chip's own line, so the number sits on the words' baseline (owner, 17 Nov) */
.v2 .mtx-roll{display:inline-grid;overflow:hidden;line-height:inherit;height:1lh}
.v2 .mtx-roll i{font-style:normal}
.v2 .mtx-roll i.in{animation:v2-mtxroll .32s cubic-bezier(.22,1,.36,1) both}
@keyframes v2-mtxroll{from{transform:translateY(70%);opacity:0}}
/* the track: the morning on a quiet row, the meeting on it */
.v2 .mtx-track{position:relative;height:40px;border-radius:calc(8px * var(--rk-m,var(--rk)));background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);overflow:hidden}
/* Blueprint's row is the surface itself: its green now line keeps 3:1 on white, not on the row grey */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .mtx-track{background:var(--surface)}
.v2 .mtx-blk{position:absolute;top:5px;bottom:5px;left:20%;width:60%;display:flex;align-items:center;justify-content:space-between;padding:0 6px;border-radius:calc(5px * var(--rk-s,var(--rk)));background:var(--accent-bg);overflow:hidden;font-size:11.5px;font-weight:500;color:var(--fg2)}
/* the start and end sit on the block in small opaque chips of the surface, so they read on the tint and on the hatch alike
   and nothing crosses them: the now line passes under them (owner, 18 Nov). The block's edge is a faint accent line (owner,
   17 Nov: no grey outline) */
.v2 .mtx-blk{outline:1px solid color-mix(in srgb,var(--accent-mark) 35%,transparent);outline-offset:-1px}
.v2 .mtx-blk>.num{position:relative;z-index:3;padding:0 6px;line-height:18px;border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--surface);color:var(--fg2)}
:root[data-theme="dark"] .v2 .mtx-blk>.num{color:var(--fg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .mtx-blk>.num{color:var(--fg)}}
/* gone: fine 45deg accent lines over the tint, inside the meeting block only, across the part that has run (owner, 17 Nov) */
.v2 .mtx-bp{position:absolute;top:0;bottom:0;left:0;background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--accent-mark) 60%,transparent) 0 1px,transparent 1px 6px);transition:width .45s cubic-bezier(.22,1,.36,1)}
.v2 .mtx-bp{width:var(--cut,0%)}
.v2 .mtx-now{position:absolute;top:0;bottom:0;left:var(--p,0%);width:2px;margin-left:-1px;background:var(--accent-mark);transition:left .45s cubic-bezier(.22,1,.36,1);z-index:2}
.v2 .mtx-now i{position:absolute;top:3px;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:var(--accent-mark)}
.v2 .mtx.done .mtx-now{opacity:0;transition:opacity .4s,left .45s cubic-bezier(.22,1,.36,1)}
/* the footer: who is coming, the link, and Join. The people sit side by side, a little apart, never over each other
   (owner, 18 Nov) */
/* the foot sits under a hairline in Soft and Blueprint (owner, 21 Nov), 16px from it on each side as the card's other gaps;
   Studio's is a foot strip */
.v2 .mtx-f{display:flex;align-items:center;gap:var(--s-2);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .mtx-who{display:flex;align-items:center;gap:4px;padding:2px 0}
.v2 .mtx-who .av{width:26px;height:26px;font-size:10px}
.v2 .mtx-who .mtx-more{background:var(--chip);color:var(--fg2)}
/* a narrow card (a phone) shows the first two people and counts the rest, so the people, the link and Join keep one row
   inside the card */
.v2 .mtx-who .mtx-narrow{display:none}
@container mtx (max-width:340px){.v2 .mtx-who .mtx-wide{display:none}.v2 .mtx-who .mtx-narrow{display:inline-grid}}
/* the copy button takes the shared hover of every icon button (owner, 21 Nov: one hover); once it has copied, the link's icon
   is the green tick for a moment, at the same size */
.v2 .mtx-cp.copied{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .mtx-cp.copied:hover{color:var(--ok-mark)!important}}
/* Join and its menu as one split button: a very light divider, a chevron that opens the meeting's actions */
.v2 .mtx-jg{position:relative;display:flex;flex:none}
.v2 .mtx-jg .mtx-join{border-top-right-radius:0;border-bottom-right-radius:0}
.v2 .mtx-jm{position:relative;width:32px;padding:0;justify-content:center;border-top-left-radius:0;border-bottom-left-radius:0}
.v2 .mtx-jm::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:1px;background:color-mix(in srgb,var(--on-accent,#fff) 30%,transparent)}
.v2 .mtx-jm.done{color:var(--on-accent,#fff)}
.v2 .mtx-pop{min-width:190px}
/* until it first opens (placePop sets its left), the closed menu hangs from Join's right edge, so on a phone it never reaches
   past the page and scrolls it sideways */
.v2 .mtx-pop:not([style*="left"]){right:0}
.v2 .mtx-cp{width:32px;height:32px}
.v2 .mtx-join{padding:0 var(--s-3) 0 6px;gap:var(--s-2);overflow:hidden;justify-content:flex-start;transition:background var(--t-fast),opacity var(--t-fast)}
.v2 .mtx-join .mk{width:26px;height:26px;display:grid;place-items:center;border-radius:calc(6px * var(--rk-s,var(--rk)));background:#fff;flex:none}
.v2 .mtx-join .mk .brand{width:15px;height:12.5px}
/* a disabled Join goes quiet as a whole: its mark loses its white tile and its colour with the words */
.v2 .mtx-join[disabled] .mk{background:none;filter:grayscale(1);opacity:.5}
@media (prefers-reduced-motion:reduce){.v2 .mtx-bp,.v2 .mtx-now{transition:none}.v2 .mtx-roll i.in,.v2 .mtx-fade{animation:none}}
/* Studio (owner, 17 and 18 Nov): the meeting and its track on white, the people and actions on an off-white foot strip under a
   hairline. Its content sits 16px in from every edge: the people on the content's edge, and the copy button and Join, split,
   28px pills 16px from the strip's edges (owner, 23 Nov). The track and its block have ordinary round
   corners (they are not controls); the time chips are pills. The block, its lines, the now line, the status chip and the
   people keep their colours. Join is the ink button with a very light divider and no breathing; its menu scales and fades
   from the chevron, and a done action is the green tick */
@keyframes v2-clfade{from{opacity:0}}
@keyframes v2-clroll{from{transform:translateY(60%);opacity:0}}
:root[data-style="studio"] .v2 .mtx{padding:0;gap:0}
:root[data-style="studio"] .v2 .mtx-h{padding:16px 16px 0}
:root[data-style="studio"] .v2 .mtx-t{font-size:14px;font-weight:500;letter-spacing:-.01em}
:root[data-style="studio"] .v2 .mtx-track{margin:16px;height:40px;background:var(--surface);border-radius:var(--r-in);box-shadow:inset 0 0 0 1px var(--line)}
:root[data-style="studio"] .v2 .mtx-f{position:relative;z-index:3;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
:root[data-style="studio"] .v2 .mtx-blk{border-radius:calc(var(--r-in) - 5px)}
:root[data-style="studio"] .v2 .mtx-blk>.num{border-radius:999px;box-shadow:0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .mtx-bp{transition:width .45s var(--ease)}
:root[data-style="studio"] .v2 .mtx-now{transition:left .45s var(--ease),opacity .3s var(--ease)}
:root[data-style="studio"] .v2 .mtx-fade{animation:v2-clfade var(--t-fast) var(--ease) both}
:root[data-style="studio"] .v2 .mtx-roll i.in{animation:v2-clroll .3s var(--ease) both}
:root[data-style="studio"] .v2 .mtx-cp{width:28px;height:28px;border-radius:999px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .mtx-cp:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .mtx .ib:active{transform:none}
/* (a step of --ok in the vivid green keeps the copied tick at 3:1 on the off-white strip) */
:root[data-style="studio"] .v2 .mtx-cp.copied{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))!important}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .mtx-cp.copied:hover{color:color-mix(in srgb,var(--ok-mark) 80%,var(--ok))!important}}
:root[data-style="studio"] .v2 .mtx-jg{z-index:3}
/* (owner, 22 Nov: "more spacing") Join stands 12px from the copy button, its end on the content's 16px column */
:root[data-style="studio"] .v2 .mtx-jg{margin-left:var(--s-1)}
:root[data-style="studio"] .v2 .mtx-jg :is(.mtx-join,.mtx-jm){height:28px}
:root[data-style="studio"] .v2 .mtx-jg .mtx-join{border-radius:999px 0 0 999px;padding:0 12px 0 11px;gap:6px}
:root[data-style="studio"] .v2 .mtx-jg .mtx-jm{border-radius:0 999px 999px 0;width:28px}
:root[data-style="studio"] .v2 .mtx-jm::before{top:8px;bottom:8px;background:color-mix(in srgb,var(--on-btn) 26%,transparent)}
:root[data-style="studio"] .v2 .mtx-jm.done{color:var(--ok-mark)}
/* Join's menu is Studio's popover: 22px corners, its rows 6px in with Studio's 10px rows and the one gliding hover (hoverGlide) */
:root[data-style="studio"] .v2 .mtx-pop{padding:6px;border-radius:var(--r-card)}
/* on the white ink of dark mode the green tick is a deeper step, so it keeps 3:1 */
:root[data-style="studio"][data-theme="dark"] .v2 .mtx-jm.done{color:color-mix(in srgb,var(--ok-mark) 60%,#000)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .mtx-jm.done{color:color-mix(in srgb,var(--ok-mark) 60%,#000)}}
/* the call's logo stands on its own beside Join, the size of the word, with no white tile behind it (owner, 21 Nov: "use
   icon without white bg on studio style") */
:root[data-style="studio"] .v2 .mtx-join .mk{width:14px;height:14px;border-radius:0;background:none}
:root[data-style="studio"] .v2 .mtx-join .mk .brand{width:14px;height:11.7px}
/* Join and its chevron are one split button: a press sinks its fill (the ink's pressed shade) and never scales one half */
:root[data-style="studio"] .v2 .mtx .mtx-jg .pill:is(.mtx-join,.mtx-jm):active{transform:none}
/* a phone: the foot strip's pieces close up a little, so Join keeps its room beside the people as its words change */
@media (max-width:400px){.v2 .mtx-who{gap:3px}.v2 .mtx-who .av{width:24px;height:24px}:root[data-style="studio"] .v2 .mtx-f{gap:6px}:root[data-style="studio"] .v2 .mtx-jg .mtx-join{padding:0 10px 0 9px;gap:6px}:root[data-style="studio"] .v2 .mtx-jg{margin-left:0}}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 :is(.mtx-bp,.mtx-now){transition:none}:root[data-style="studio"] .v2 :is(.mtx-fade,.mtx-roll i.in){animation:none}}
/* ---------- Buttons ---------- */
/* the button sheet: each style once, buttons with an icon, the states a button goes through and the three sizes, each row
   named on the left. A button is as wide as its words: when they change (Publishing, Copied, Running 0:03) it eases to the
   new width instead of keeping room for the longest (owner, 18 Nov), so its words never sit in empty space */
.v2 .btx{display:flex;flex-direction:column;gap:14px;width:100%}
.v2 .btx-row{display:flex;align-items:center;gap:var(--s-2);flex-wrap:wrap}
.v2 .btx-l{width:74px;font-size:12px;flex:none}
@media (max-width:520px){.v2 .btx-l{width:100%}}
/* words on their way out while a button eases narrower stay inside it */
.v2 .btx-row .pill{overflow:hidden}
.v2 .btx-lg{height:40px;padding:0 18px;font-size:14px}
/* an icon button beside the pills is as tall as they are, so buttons side by side are one height */
.v2 .ib.btx-ib{width:32px;height:32px}
.v2 .btx-row .pill.btx-ok{cursor:default}
@media (hover:hover) and (pointer:fine){.v2 .btx-row .pill.btx-ok:hover{cursor:default}}
.v2 .btx-row .pill .spin{width:13px;height:13px}
.v2 .btx-row .pill.busy{cursor:progress}
/* Ask agent: a light sweeps across it under the pointer (not in Studio, whose hovers are a quiet fill); while the agent works it
   is the accent's tint with the shimmering words, as a highlight */
.v2 .btx-ask{position:relative;isolation:isolate}
.v2 .btx-ask::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.42) 50%,transparent 70%);transform:translateX(-120%);pointer-events:none}
.v2 .btx-ask:focus-visible::after{transform:translateX(120%);transition:transform .85s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .btx-ask:hover::after{transform:translateX(120%);transition:transform .85s var(--ease)}}
.v2 .btx-ask:is(.busy,.btx-ok)::after{display:none}
.v2 .pill.btx-ask.busy{background:var(--accent-bg);color:var(--accent-fg)}
@media (hover:hover) and (pointer:fine){.v2 .pill.btx-ask.busy:hover{background:var(--accent-bg);color:var(--accent-fg)}}
.v2 .btx-run .sq{width:9px;height:9px;border-radius:var(--r-tiny,2px);background:currentColor;flex:none}
/* a button that has done its job (Published, Trial started, Run complete, Draft ready, Deleted) settles on the outlined face
   (it takes .line) with the vivid green tick in place of its icon, at the same size: no green fill (owner, 18 Nov). A copy or a
   menu pick says so the same way: the words stay in the text colour and only the tick is green */
.v2 .pill.btx-ok .i,.v2 .pill.btx-copy.copied .i{color:var(--ok-mark)}
.v2 .pill.btx-copy.copied{color:var(--fg)!important}
@media (hover:hover) and (pointer:fine){.v2 .pill.btx-copy.copied:hover{color:var(--fg)!important}}
.v2 .ib.btx-ib.copied,.v2 .ib.btx-ib.done{color:var(--ok-mark)!important}
@media (hover:hover) and (pointer:fine){.v2 .ib.btx-ib.copied:hover{color:var(--ok-mark)!important}}
/* Preview is a toggle: on, it is the picked look (owner, 29 Oct), white with a slightly stronger grey edge, and a live dot */
.v2 .pill.btx-pv[aria-pressed="true"]{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 55%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .pill.btx-pv[aria-pressed="true"]:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 55%,transparent)}}
.v2 .btx-live{position:relative;width:7px;height:7px;border-radius:50%;background:var(--ok-mark);flex:none}
.v2 .btx-live::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:v2-ping 1.8s var(--ease) infinite}
/* a pill that swap() crossfades keeps its flex layout, so the icon put back in it later keeps its gap */
.v2 .btx-row .pill.sw{display:inline-flex}
.v2 .btx-sp{min-width:210px}
.v2 .btx-mp{min-width:200px}
.v2 .btx-mp .mi.del,.v2 .btx-mp .mi.del .i{color:var(--bad)}
@media (hover:hover) and (pointer:fine){.v2 .btx-mp .mi.del:hover{background:var(--bad-bg)}}
/* Hold to delete: the danger tint, filling from the left with the danger colour as it is held. The fill carries a white copy of
   the words, uncovered with it, so every letter reads on what is under it: red on the tint, white on the fill. Done, the fill
   fades and it is the outlined face with the green tick like the others */
.v2 .btx-hold{position:relative;overflow:hidden;background:var(--bad-bg);color:var(--bad);user-select:none;-webkit-user-select:none;touch-action:none}
.v2 .btx-hold .fill{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bad);color:#fff;clip-path:inset(0 100% 0 0);transition:clip-path .25s var(--ease),opacity var(--t) var(--ease);pointer-events:none}
.v2 .btx-hold.h .fill{clip-path:inset(0);transition:clip-path 1.2s linear}
.v2 .btx-hold .lb{position:relative;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.v2 .btx-hold.btx-ok .fill{clip-path:inset(0);opacity:0}
/* in dark mode the danger text colour is a light pink, too light under white words, so the fill is the danger mark taken
   darker: white keeps 4.5:1 on it */
:root[data-theme="dark"] .v2 .btx-hold .fill{background:color-mix(in srgb,var(--bad-mark) 70%,#000)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .btx-hold .fill{background:color-mix(in srgb,var(--bad-mark) 70%,#000)}}
/* Studio: secondary buttons are flat (owner, 18 Nov), so the icon buttons are too, with the hairline and white fill of the
   outlined pills beside them; Preview's on state is that face with a slightly stronger edge; while the agent works Ask agent is
   the flat face with its shimmering words, as the chrome stays monochrome; a done face (now .line) is flat and never presses */
:root[data-style="studio"] .v2 .ib.btx-ib.fill{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transition:box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .ib.btx-ib.fill:hover{box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .ib.btx-ib.fill:active{box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .pill.soft.btx-pv[aria-pressed="true"]:not([disabled]){background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 55%,transparent)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pill.soft.btx-pv[aria-pressed="true"]:not([disabled]):hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 55%,transparent)}}
:root[data-style="studio"] .v2 .pill.btx-ask.busy:is(.primary,.accent):not([disabled]){color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transform:none}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pill.btx-ask.busy:is(.primary,.accent):not([disabled]):hover{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth);transform:none}}
:root[data-style="studio"] .v2 .btx-ask::after{display:none}
:root[data-style="studio"] .v2 .pill.btx-ok:active{transform:none}
/* ---------- Badge ---------- */
/* a small label for a plan, an environment or a status. data-tone picks its colour (none is neutral): the accent's tint,
   success, warning and danger, or one of the eight tag colours, each as text on its own tint. Two sizes (.sm), an optional
   dot or icon in front, and an optional remove button after the label. Soft draws it as a pill; Blueprint squares it off,
   sets it in capitals and gives it a hairline in its own colour */
.v2 .bdg{--bdg-bg:var(--chip);--bdg-fg:var(--fg2);display:inline-flex;align-items:center;gap:var(--s-1);max-width:100%;height:24px;padding:0 var(--s-2);border-radius:var(--r-pill);background:var(--bdg-bg);color:var(--bdg-fg);font-size:12.5px;font-weight:500;line-height:1;white-space:nowrap;vertical-align:middle}
.v2 .bdg.sm{height:20px;font-size:11.5px}
.v2 .bdg>.t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .bdg>.i{flex:none}
/* the dot is the label's own colour, the dark text of its hue, so it keeps 3:1 on the badge's tint (a status's bright mark colour
   would not: the success green is 2.7:1 on its tint) */
.v2 .bdg-dot{position:relative;width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
/* a live badge (.live: running, streaming, on air) pulses its dot: a soft ring in its own colour grows and fades, on a loop.
   Only transform and opacity move, so it stays on the compositor; with reduced motion the dot stays still */
.v2 .bdg.live .bdg-dot::after{content:"";position:absolute;inset:0;border-radius:inherit;background:inherit;opacity:0;animation:v2-bdgpulse 1.8s cubic-bezier(.22,1,.36,1) infinite}
@keyframes v2-bdgpulse{0%{opacity:.5;transform:scale(1)}100%{opacity:0;transform:scale(2.8)}}
@media (prefers-reduced-motion:reduce){.v2 .bdg.live .bdg-dot::after{animation:none}}
/* a badge you can act on, a removable one or one that is a button or a link, takes a light hover: a little more of its own
   colour in its tint, its words leaning a little toward the text colour so they keep 4.5:1 and APCA 60 on the deeper tint.
   Plain labels keep still, so they never look clickable */
.v2 .bdg:is(:has(>.bdg-x),button,a[href]){transition:background var(--t-fast),color var(--t-fast)}
.v2 .bdg:is(button,a[href]){cursor:pointer;text-decoration:none}
@media (hover:hover) and (pointer:fine){.v2 .bdg:is(:has(>.bdg-x),button,a[href]):hover{background:color-mix(in srgb,var(--bdg-fg) 7%,var(--bdg-bg));color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}}
/* on the Badge card every badge answers the pointer: a hand, a light hover, and no text selection. On the hover's deeper tint
   the label leans a little toward the text colour, as on a menu row, so it keeps 4.5:1 and Lc 60 */
.v2 .bdx .bdg{cursor:pointer;user-select:none;-webkit-user-select:none;transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .bdx .bdg:hover,.v2 .bdg:has(>.bdg-x):hover{background:color-mix(in srgb,var(--bdg-fg) 7%,var(--bdg-bg));color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}}
.v2 .bdg[data-tone="accent"]{--bdg-bg:var(--accent-bg);--bdg-fg:var(--accent-fg)}
.v2 .bdg[data-tone="success"]{--bdg-bg:var(--ok-bg);--bdg-fg:var(--ok)}.v2 .bdg[data-tone="warning"]{--bdg-bg:var(--warn-bg);--bdg-fg:var(--warn)}.v2 .bdg[data-tone="danger"]{--bdg-bg:var(--bad-bg);--bdg-fg:var(--bad)}
.v2 .bdg[data-tone="blue"]{--bdg-bg:var(--pb-bg);--bdg-fg:var(--pb)}.v2 .bdg[data-tone="violet"]{--bdg-bg:var(--pl-bg);--bdg-fg:var(--pl)}.v2 .bdg[data-tone="green"]{--bdg-bg:var(--pm-bg);--bdg-fg:var(--pm)}.v2 .bdg[data-tone="orange"]{--bdg-bg:var(--pp-bg);--bdg-fg:var(--pp)}
.v2 .bdg[data-tone="red"]{--bdg-bg:var(--pr-bg);--bdg-fg:var(--pr)}.v2 .bdg[data-tone="yellow"]{--bdg-bg:var(--py-bg);--bdg-fg:var(--py)}.v2 .bdg[data-tone="pink"]{--bdg-bg:var(--pk-bg);--bdg-fg:var(--pk)}.v2 .bdg[data-tone="teal"]{--bdg-bg:var(--pt-bg);--bdg-fg:var(--pt)}
/* the remove button sits inside the badge's end; its hover is a little more of the badge's own colour */
.v2 .bdg-x{display:grid;place-items:center;width:16px;height:16px;margin-right:calc(var(--s-1) * -1);border-radius:50%;color:inherit;flex:none;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .bdg-x:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}
.v2 .bdg-x:focus-visible{outline-offset:1px;border-radius:50%}
.v2 .bdg.sm .bdg-x{width:14px;height:14px}
/* on a hovered menu row's tint (a step lighter in dark mode) the label leans a little toward the text colour, so it keeps APCA 60 */
.v2 .mi.hl .bdg{color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}
@media (hover:hover) and (pointer:fine){.v2 .mi:hover .bdg{color:color-mix(in srgb,var(--bdg-fg) 85%,var(--fg))}}
.v2 .bdg.go{animation:v2-bdgout .22s var(--ease) forwards}
@keyframes v2-bdgout{to{opacity:0;transform:scale(.85)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bdg{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bdg-fg) 14%,transparent);font-size:11px;letter-spacing:.03em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bdg.sm{font-size:10.5px}
/* Blueprint's lime tint is faint on white, so an accent badge's edge is the accent's mark */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bdg[data-tone="accent"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 50%,transparent)}
/* Studio: the neutral badge is a see-through grey, so it shows on whatever it sits on (Studio's chip grey is the stage's own) */
:root[data-style="studio"] .v2 .bdg:not([data-tone]){--bdg-bg:color-mix(in srgb,var(--fg) 7%,transparent)}
/* the card: each kind of badge in a row, named on the left */
.v2 .bdx{width:100%;display:flex;flex-direction:column;gap:var(--s-4);container:bdx/inline-size}
/* a row's name sits on the line of its first badges, so a set that wraps to a second line keeps its name at the top */
.v2 .bdx-row{display:flex;align-items:flex-start;gap:var(--s-2)}
.v2 .bdx-l{width:76px;flex:none;font-size:12px;line-height:24px}
.v2 .bdx-set{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2)}
.v2 .pill.bdx-undo{height:24px}
.v2 .bdx-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container bdx (max-width:360px){.v2 .bdx-row{flex-direction:column;align-items:flex-start;gap:var(--s-2)}.v2 .bdx-l{width:auto}.v2 .bdx-set{width:100%}}
/* ---------- Tooltip ---------- */
/* a toolbar of icon buttons whose labels (the core tooltip, data-tip) wait a moment, then follow the pointer from button to
   button, and the people at its end, each opening a card about them on hover or keyboard focus. The component is the toolbar:
   the card opens over the stage, so it keeps no room for it */
.v2 .ttp{position:relative;display:flex;flex-direction:column;align-items:center}
.v2 .ttp-bar{display:flex;align-items:center;gap:2px;padding:5px;border-radius:var(--r-pill)}
.v2 .ttp-sep{width:1px;height:18px;background:var(--line);margin:0 var(--s-1)}
/* the people side by side, never stacked over each other (owner, 18 Nov) */
.v2 .ttp-avs{display:flex;gap:2px}
/* a person under the pointer stays where they are (owner, 21 Nov: "you hover it up but show tooltip down"): the one quiet hover
   fill, a ring in their round shape, easing in and out */
.v2 .ttp-av{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .ttp-av:hover{background:var(--row);box-shadow:0 0 0 2px var(--row)}}
.v2 .ttp-av .av{width:28px;height:28px;font-size:11px}
/* the card about a person: centred on their avatar (right-aligned to it at the stage's edge), under it when there is room and
   over it when there isn't, and it goes where the avatar goes while it shows (placed by the script) */
.v2 .ttp-card{position:absolute;top:0;left:0;width:230px;padding:var(--s-3);box-shadow:var(--shadow-pop);opacity:0;transform:translateY(6px) scale(.97);filter:blur(4px);pointer-events:none;transition:opacity .25s var(--ease),transform .35s var(--ease),filter .25s;z-index:5}
/* the card opens from the avatar toward where it shows: down from it when it opens under it, up from it when it opens over it */
.v2 .ttp-card:not(.up){transform:translateY(-6px) scale(.97);transform-origin:50% 0}
.v2 .ttp-card.up{transform:translateY(6px) scale(.97);transform-origin:50% 100%}
.v2 .ttp-card.show{opacity:1;transform:none;filter:none}
.v2 .ttp-ch{display:flex;align-items:center;gap:10px}
.v2 .ttp-ch .av{width:34px;height:34px;font-size:12px}
.v2 .ttp-ch div{display:flex;flex-direction:column;min-width:0;font-size:13px}
.v2 .ttp-ch b{font-weight:500}
.v2 .ttp-ch div span{font-size:12px;color:var(--muted)}
.v2 .ttp-cs{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:var(--fg2)}
.v2 .ttp-cs .dot{color:var(--ok-mark)}
/* Studio: the card's content 16px in from every edge (owner, 18 Nov); it scales and fades in, never blurs */
:root[data-style="studio"] .v2 .ttp-card.panel{width:246px;padding:16px;filter:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
/* Studio (owner, 21 Nov): the bar, as Canvas toolbar's, is a pill drawn by a half-strength hairline with only a contact shadow,
   its dividers half-strength hairlines, and its hovers pills (a circle round a person, with its ring) under one gliding highlight
   (hoverGlide). The card about a person is Studio's popover, 22px corners and its shadow, with what they are doing now in an
   off-white foot strip under a hairline, edge to edge, its words 16px in */
:root[data-style="studio"] .v2 .ttp-bar.panel{box-shadow:0 0 0 1px var(--hair),0 1px 2px rgba(0,0,0,.06)}
:root[data-style="studio"] .v2 .ttp-sep{background:color-mix(in srgb,var(--line) 50%,transparent)}
:root[data-style="studio"] .v2 .ttp-cs{min-height:calc(28px + 2 * var(--strip-y) + 1px);margin:16px -16px -16px;padding:var(--strip-y) 16px;line-height:16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
/* ---------- Search input ---------- */
/* one field, as wide as the other single fields (the full width on a phone), with its suggestions in a list that opens from
   it: under it, or over it when the room under it is too short (placePop). Its script keeps the field and the open list
   centred in the stage together, the field gliding up as the list opens (centre()); no room is kept for the list. The
   field's glass, the rows' icons, the answer's spark and the group names share one column 12px in, and the words another */
.v2 .six{position:relative;width:100%;max-width:var(--field-w);margin:0 auto}
.v2 .six-box{background:var(--surface);border-radius:var(--r-field);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .six-box{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* the edge steps up while the field is in use (it has the focus, or the preview types in it); nothing else changes */
.v2 .six-box.f{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* 12px in at both ends: the magnifier on the left, and on the right the ⌘K key or the clear button's box (check-rules R2, 27 Nov) */
.v2 .six-in{display:flex;align-items:center;gap:var(--s-2);height:var(--field-h);padding:0 var(--s-3);color:var(--muted)}
.v2 .six-in input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:var(--fg)}
/* (its words start right after the glass, as the rows' words do) */
.v2 .six .six-in input{padding:0}
.v2 .six-in input::placeholder{color:var(--muted)}
.v2 .six-chips{display:flex;gap:var(--s-1)}
.v2 .six-chips:empty{display:none}
.v2 .six-ch{display:inline-flex;align-items:center;gap:2px;height:24px;padding:0 2px 0 var(--s-2);border-radius:var(--r-tag);background:var(--accent-bg);color:var(--accent-fg,var(--accent));font-size:12px;font-weight:500;white-space:nowrap}
.v2 .six-ch button{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;opacity:.7;transition:opacity var(--t-fast),background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .six-ch button:hover{opacity:1;background:color-mix(in srgb,currentColor 12%,transparent)}}
@supports (corner-shape:squircle){.v2 .six-ch{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
/* the key hint and the clear button's cross end 14px in, where the rows' sources end */
.v2 .six-x{width:24px;height:24px}
/* nothing in it grows or shrinks when pressed */
.v2 .six :is(.ib,.pill):active,:root[data-style="studio"] .v2 .six .ib:active{transform:none}
/* the list: one family with the field (owner, 21 Nov: "the input is different shape than the dropdown"): as wide as it, 6px
   under it, with the field's corners. Its rows sit 6px in, their corners the list's less those 6px, so their icons and words
   fall on the field's columns and their sources end where the field's cross does. (The 6px are the results' own padding, so
   the answer above them can run to the list's edges) */
.v2 .six-pop{left:0;right:0;min-width:0;padding:0;border-radius:var(--r-field)}
@supports (corner-shape:squircle){.v2 .six-pop{border-radius:var(--r-field-sq)}}
.v2 .six-res{position:relative;padding:6px}
.v2 .six-g{font-size:11.5px;color:var(--muted);padding:var(--s-2) var(--s-2) var(--s-1) 6px}
.v2 .six-it{display:flex;align-items:center;gap:var(--s-2);width:100%;padding:7px var(--s-2) 7px 6px;border-radius:calc(var(--r-field) - 4px);font-size:13px;text-align:left;transition:background .15s}
@supports (corner-shape:squircle){.v2 .six-it{border-radius:calc(var(--r-field-sq) - 6px)}}
.v2 .six-it.hl{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .six-it:hover{background:var(--row)}}
.v2 .six-it .ic{color:var(--muted);display:grid;flex:none}
.v2 .six-it .d{margin-left:auto;padding-left:var(--s-2);font-size:12px;color:var(--muted);transition:color .15s}
/* on a highlighted row's grey the source steps up, so it keeps 4.5:1 and APCA Lc 60 in dark mode */
@media (hover:hover) and (pointer:fine){.v2 .six-it:is(:hover,.hl) .d{color:var(--fg2)}}
.v2 .six-it mark{background:transparent;color:var(--accent-fg,var(--accent));font-weight:500}
/* the agent's answer is the list's head section (owner, 21 Nov: "too stark"): no box and no tint, running to the list's edges
   with a hairline under it. Its spark is on the icons' column, in the accent's mark colour, the only colour in it; its words
   are on the words' column, in the text colour at the rows' size. It grows with the list as its words come in. Studio makes
   it the list's off-white head strip, with the spark muted */
.v2 .six-ans{display:flex;gap:var(--s-2);margin:-6px -6px 6px;padding:10px 14px 10px 12px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;line-height:1.5;color:var(--fg)}
.v2 .six-ans>svg{color:var(--accent-mark);flex:none;margin-top:3px}
.v2 .six-ans .w{animation:v2-sxw .4s var(--ease) both}
.v2 .six-ans .w.done{animation:none}
@keyframes v2-sxw{from{opacity:0;filter:blur(3px)}}
@keyframes v2-sxwc{from{opacity:0}}
/* Studio: the list has the field's 10px corners and its rows follow them, 6px in (4px corners); the answer is the off-white
   head strip under the list's top corners, with a full hairline under it; the rows' hover is Studio's quiet fill at its own
   ease; the filter is a tag with rounded corners, not a pill; new words fade in without a blur */
:root[data-style="studio"] .v2 .six-it{border-radius:calc(var(--r-field) - 6px);transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .six-ans{background:var(--strip);border-bottom-color:var(--line);border-radius:var(--r-field) var(--r-field) 0 0}
:root[data-style="studio"] .v2 .six-ans>svg{color:var(--muted)}
:root[data-style="studio"] .v2 .six-ch{border-radius:var(--r-sm)}
:root[data-style="studio"] .v2 .six-ans .w:not(.done){animation-name:v2-sxwc;animation-duration:var(--t)}
/* ---------- Country select ---------- */
.v2 .csx{width:100%;max-width:var(--field-w);margin:0 auto;display:flex;flex-direction:column;gap:6px;position:relative}
.v2 .csx-l{font-size:12.5px;font-weight:500}
.v2 .csx-f{display:flex;align-items:center;gap:10px;height:var(--field-h);padding:0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font-size:13.5px;text-align:left;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .csx-f{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* a dropdown's field steps up its edge while it has the focus or its list is open; it takes no ring */
.v2 .csx-f:focus-visible{outline:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .csx-v{flex:1}
.v2 .csx-f>svg{color:var(--muted);transition:transform .35s var(--ease)}
.v2 .csx-f[aria-expanded="true"]>svg{transform:rotate(180deg)}
.v2 .csx-fl{display:grid;place-items:center;flex:none}
.v2 .csx-h{font-size:12px}
/* closed, the list is hidden as well as clear, so Tab passes over its search box and options */
.v2 .csx-pop{position:absolute;top:calc(var(--field-h) + 35px);left:0;right:0;z-index:5;background:var(--raised);border-radius:calc(14px * var(--rk-l,var(--rk)));box-shadow:var(--shadow-pop);padding:6px;opacity:0;visibility:hidden;transform:translateY(-4px) scale(.98);transform-origin:top;filter:blur(3px);pointer-events:none;transition:opacity .2s,transform .35s var(--ease),filter .2s,visibility 0s .2s}
.v2 .csx-pop.open{opacity:1;visibility:visible;transform:none;filter:none;pointer-events:auto;transition-property:opacity,transform,filter}
.v2 .csx-q{width:100%;height:32px;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:0 10px;font:inherit;font-size:13px;color:var(--fg);margin-bottom:var(--s-1);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .csx-q{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .csx-q::placeholder{color:var(--muted)}
.v2 .csx-q:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .csx-list{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.v2 .csx-o{display:flex;align-items:center;gap:10px;padding:7px var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;flex:none}
.v2 .csx-o.hl{background:var(--row)}
.v2 .csx-o .cd{margin-left:auto;font-size:11.5px;color:var(--muted)}
.v2 .csx-o[aria-selected="true"] .ck{color:var(--accent-fg,var(--accent));display:grid}
.v2 .csx-o .ck{display:none}
.v2 .csx-g{font-size:11px;color:var(--muted);padding:6px var(--s-2) 2px}
/* ---------- Multi-select ---------- */
/* a combobox that keeps what you pick as chips: typing filters the list, the arrows move through it, Enter picks or
   unpicks, Escape closes it, and Backspace in an empty box takes the last chip off. As wide as the other single fields; the
   list opens from the box (placePop) and the box glides up with it, so the two sit centred together (centre()). The rows'
   checkboxes stand on the column the box's words start on, 12px in, and their counts end 12px in */
.v2 .msc{position:relative;width:100%;max-width:var(--field-w);margin:0 auto;display:flex;flex-direction:column;gap:6px}
.v2 .msc-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:22px}
.v2 .msc-l{font-size:12.5px;font-weight:500}
.v2 .msc-clr{height:22px;padding:0 6px;margin-right:-6px;border-radius:calc(6px * var(--rk-s,var(--rk)));font-size:12px;color:var(--muted);transition:color .2s,background .2s}
@media (hover:hover) and (pointer:fine){.v2 .msc-clr:hover{color:var(--fg);background:var(--row)}}
/* (its chips and its text box are all 26px tall: the lines they wrap onto are centred in the box) */
.v2 .msc-f{position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:center;gap:6px;min-height:var(--field-h);padding:6px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);cursor:text;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .msc-f{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* the edge steps up while its search box has the focus or its list is open; a tag's remove button rings on its own, never
   inside the field */
.v2 .msc-f:has(.msc-q:focus),.v2 .msc:has(.msc-pop.open) .msc-f{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .msc-q{flex:1;min-width:80px;height:26px;border:0;outline:0;background:transparent;padding:0 6px;font:inherit;font-size:13.5px;color:var(--fg)}
.v2 .msc-q::placeholder{color:var(--muted)}
.v2 .msc-c{display:inline-flex;align-items:center;gap:2px;height:26px;padding:0 3px 0 var(--s-2);border-radius:var(--r-tag);background:var(--chip);font-size:12.5px;white-space:nowrap}
@supports (corner-shape:squircle){.v2 .msc-c{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
.v2 .msc-c button{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:var(--muted);transition:background .2s,color .2s}
@media (hover:hover) and (pointer:fine){.v2 .msc-c button:hover{background:color-mix(in srgb,currentColor 12%,transparent);color:var(--fg)}}
.v2 .msc-c.go{animation:v2-mscout .22s var(--ease) forwards}
@keyframes v2-mscout{to{opacity:0;transform:scale(.85)}}
/* the key just pressed, while the preview plays, at the end of the line the cursor is on */
.v2 .msc-key{position:absolute;right:8px;bottom:10px;opacity:0;transition:opacity .2s}
.v2 .msc-key.on{opacity:1}
.v2 .msc-pop{left:0;right:0;min-width:0}
/* (the rows are placed against the list itself, so keeping the highlighted one in view scrolls by the list's own measure) */
.v2 .msc-list{position:relative;max-height:210px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.v2 .msc-o{display:flex;align-items:center;gap:10px;min-height:34px;padding:6px;border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;cursor:pointer;flex:none;transition:background var(--t-fast)}
.v2 .msc-o.hl{background:var(--row)}
.v2 .msc-o .bx{width:16px;height:16px;border-radius:var(--r-tiny,5px);box-shadow:inset 0 0 0 1.5px var(--fg2);display:grid;place-items:center;color:transparent;flex:none;transition:background .2s,box-shadow .2s,color .2s}
.v2 .msc-o[aria-selected="true"] .bx{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent));color:var(--on-accent,#fff)}
.v2 .msc-o .n{margin-left:auto;font-size:12px;color:var(--muted);transition:color var(--t-fast)}
/* on a highlighted row's grey the count steps up, so it keeps 4.5:1 and APCA Lc 60 in dark mode */
.v2 .msc-o.hl .n{color:var(--fg2)}
.v2 .msc-none{padding:var(--s-2) 6px;font-size:12.5px;color:var(--muted)}
.v2 .msc-h{font-size:12px;transition:opacity var(--t-fast) var(--ease)}
/* the open list covers the hint under the box, so the hint steps aside instead of peeking out above the list */
.v2 .msc:has(.msc-pop.open) .msc-h{opacity:0}
/* Studio: the chips are tags with rounded corners, not pills; the list has the menus' 22px corners and its rows follow them;
   a checkbox is a rounded square with an inner shadow, ink once ticked (as Permission gate's) */
:root[data-style="studio"] .v2 .msc-c{border-radius:var(--r-sm)}
:root[data-style="studio"] .v2 .msc-pop{border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .msc-o{border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .msc-clr{border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .msc-c button{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .msc-o .bx{border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--fg2),var(--track-ring)}
:root[data-style="studio"] .v2 .msc-o[aria-selected="true"] .bx{background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:inset 0 0 0 1px var(--btn-2),inset 0 2px 3px -1px rgba(255,255,255,.28);color:var(--on-btn)}
/* ---------- Social sign-in ---------- */
.v2 .ssi{padding:28px 22px var(--s-5);display:flex;flex-direction:column;align-items:center;gap:14px;max-width:320px;margin:0 auto;width:100%}
.v2 .ssi-h{display:flex;flex-direction:column;align-items:center;gap:var(--s-3);text-align:center}
.v2 .ssi-lg{width:44px;height:44px;border-radius:calc(14px * var(--rk-l,var(--rk)));background:var(--ink);color:var(--on-ink);display:grid;place-items:center}
.v2 .ssi-lg .logo{width:26px;height:26px}
.v2 .ssi-h b{font-weight:500;font-size:14px}
.v2 .ssi-list{display:flex;flex-direction:column;gap:var(--s-2);width:100%}
.v2 .ssi-b{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;height:42px;padding:0 18px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);font-size:13.5px;font-weight:500;transition:background .2s,box-shadow .2s,transform .15s}
@media (hover:hover) and (pointer:fine){.v2 .ssi-b:hover{background:var(--wash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
.v2 .ssi-b:active{transform:scale(.98)}
.v2 .ssi-b .mk{width:18px;height:18px;display:grid;place-items:center;flex:none}
.v2 .ssi-b .mk svg,.v2 .ssi-b .mk img{width:18px;height:18px;display:block}
.v2 .ssi-b .mk .i{width:16px;height:16px}
.v2 .ssi-b .mk .lt{min-width:18px;height:18px;padding:0 3px;border-radius:var(--r-tiny,5px);background:var(--ink);color:var(--on-ink);display:grid;place-items:center;font-size:10px;font-weight:500}
.v2 .ssi-b .last{position:absolute;top:-8px;right:22px;font-size:10.5px;font-weight:500;color:var(--fg2);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent);padding:1px 7px;border-radius:var(--r-pill)}
.v2 .ssi-b.last-used{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
.v2 .ssi-b.busy{pointer-events:none}
.v2 .ssi-list.wait .ssi-b:not(.busy){opacity:.45}
.v2 .ssi-or{display:flex;align-items:center;gap:10px;width:100%;font-size:11.5px;color:var(--muted)}
.v2 .ssi-or::before,.v2 .ssi-or::after{content:"";flex:1;height:1px;background:var(--line)}
.v2 .ssi-mail{font-size:12.5px;color:var(--fg2);padding:var(--s-1) 10px;border-radius:var(--r-pill);transition:color .2s,background .2s}
@media (hover:hover) and (pointer:fine){.v2 .ssi-mail:hover{color:var(--fg);background:var(--row)}}
.v2 .ssi-ok{display:flex;flex-direction:column;align-items:center;gap:var(--s-2);padding:var(--s-2) 0 var(--s-1);text-align:center;font-size:13px}
.v2 .ssi-ok .av{width:44px;height:44px;font-size:14px}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .ssi.panel{padding:11px 20px 20px 20px}
/* ---------- Sign in ---------- */
/* its content 16px in from every edge (owner, 18 Nov). The card grows and shrinks with each step, so it keeps no room for a
   later one: the code arriving, a message under the field, the shorter confirmation. The steps (.sgx-body) and the foot each
   ease their own height (grow()), and the card is always the two together: the foot stays at the card's bottom edge with its
   corners at every frame, and only the steps are clipped while they ease, top to bottom (owner, 21 Nov). The title block, the
   boxes and the line under them are 12px apart */
.v2 .sgx{padding:var(--s-4);max-width:320px;margin:0 auto;width:100%}
.v2 .sgx-body.growing{overflow-x:visible}
.v2 .sgx-st{display:flex;flex-direction:column;gap:6px}
.v2 .sgx-st>b{font-weight:500;font-size:14px}
.v2 .sgx-st>.muted{font-size:12.5px;margin-bottom:6px}
.v2 .sgx-st.in{animation:v2-sgin .5s var(--ease) both}
@keyframes v2-sgin{from{opacity:0;transform:translateX(20px);filter:blur(4px)}}
.v2 .sgx-f{display:flex;flex-direction:column;gap:5px;font-size:12.5px;font-weight:500}
.v2 .sgx-f input{height:var(--field-h);border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:0 var(--s-3);font:inherit;font-size:13.5px;font-weight:400;color:var(--fg);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .sgx-f input{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .sgx-f input::placeholder{color:var(--muted)}
.v2 .sgx-f input:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* a field marked wrong keeps its red edge, focused or not, until it is fixed; the line under it says what is wrong in red
   words after the alert mark, with no red fill, and opens and closes rather than keeping room for itself */
.v2 .sgx-f.bad input{box-shadow:inset 0 0 0 1px var(--bad);animation:v2-sgsh .4s}
@keyframes v2-sgsh{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
/* (a shut line adds nothing under the field: the fold takes back the step's 6px gap, and the open line brings its own) */
.v2 .sgx-ef{margin-top:-6px}
.v2 .sgx-err{display:flex;align-items:center;gap:6px;padding-top:6px;font-size:12px;color:var(--bad)}
.v2 .sgx-err>svg{flex:none;color:var(--bad-mark,var(--bad))}
/* nothing in it grows or shrinks when pressed but Studio's ink primary */
.v2 .sgx .pill:active{transform:none}
/* the foot: the step's action or the line that says how it is going (Send code, then the resend line, Verifying code, a
   wrong code or Code confirmed, then the workspace opening). It is one foot for every step, so it keeps its place as the
   steps change: 12px under the step in Soft and Blueprint, and Studio's foot strip (below). Send code is as wide as the field */
.v2 .sgx-ft{margin-top:var(--s-3)}
.v2 .sgx-go{height:var(--field-h);width:100%}
/* the back link's chevron sits on the content's edge, as the words under it do */
.v2 .sgx-bk{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);align-self:flex-start;margin:0 0 6px -4px}
@media (hover:hover) and (pointer:fine){.v2 .sgx-bk:hover{color:var(--fg)}}
.v2 .sgx-code{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
/* the boxes: every box, filled or not, has the one fill and the one dimmed edge; the focused box, or with none focused the
   next one to fill, has the field's focus edge. While the code is checked all six dim a little, together, and the line under
   them says so (owner, 21 Nov: no wave across them) */
.v2 .sgx-code input{width:100%;height:var(--field-h);border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);text-align:center;font:inherit;font-size:14px;font-variant-numeric:tabular-nums;color:var(--fg);transition:box-shadow var(--t-fast),opacity var(--t-fast),transform .3s var(--ease)}
@supports (corner-shape:squircle){.v2 .sgx-code input{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .sgx-code input:focus,.v2 .sgx-code:not(:focus-within) input.nx{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .sgx-code input.f{transform:scale(1.04)}
/* the code as it arrives (owner, 21 Nov: no card in the card): a quiet chip under the boxes, the way a phone offers a
   one-time code, "From Mail 482 157". Pressed, it fills every box and goes. It folds open when the email arrives, so the card
   grows smoothly for it and keeps no room before */
.v2 .sgx-af{margin-top:-6px}
.v2 .sgx-sug{display:flex;width:fit-content;margin-top:var(--s-3)}
.v2 .sgx-sug .num{color:var(--fg);font-weight:500}
.v2 .sgx-code input{caret-color:var(--accent-fg,var(--accent))}
.v2 .sgx-code.vf input{opacity:.7}
/* a wrong code: the boxes clear with a red edge and shake (not with reduced motion) until typing starts over */
.v2 .sgx-code.bad input{box-shadow:inset 0 0 0 1px var(--bad)}
.v2 .sgx-code.bad{animation:v2-sgsh .4s}
@media (prefers-reduced-motion:reduce){.v2 .sgx-code.bad,.v2 .sgx-f.bad input{animation:none}}
/* the line under the boxes: what runs is said with the highlight sweep; a confirmed code is the green tick and plain words */
.v2 .sgx-v{display:inline-flex;align-items:center;gap:7px;color:var(--fg2)}
.v2 .sgx-rs>.sgx-v{display:flex;min-height:inherit}
.v2 .sgx-v .spin{width:11px;height:11px}
.v2 .sgx-v .shim{font-size:inherit}
.v2 .sgx-v.ok .i{color:var(--ok-mark)}
.v2 .sgx-v.bad{color:var(--bad)}
.v2 .sgx-v.bad .i{color:var(--bad-mark,var(--bad))}
.v2 .sgx-hint{color:var(--fg2)}
.v2 .sgx-re{color:var(--accent-fg,var(--accent));font-weight:500;font-size:inherit;border-radius:var(--r-tiny,4px)}
@media (hover:hover) and (pointer:fine){.v2 .sgx-re:hover{text-decoration:underline;text-underline-offset:2px}}
.v2 .sgx-ck{width:52px;height:52px;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.v2 .sgx-ck circle{stroke:var(--ok-mark);stroke-dasharray:151;stroke-dashoffset:151;animation:v2-sgdraw .7s var(--ease) forwards}
.v2 .sgx-ck path{stroke:var(--ok-mark);stroke-dasharray:30;stroke-dashoffset:30;animation:v2-sgdraw .4s var(--ease) .55s forwards}
@keyframes v2-sgdraw{to{stroke-dashoffset:0}}
.v2 .sgx-bar{width:120px;height:3px;border-radius:var(--r-tiny,2px);background:var(--line);overflow:hidden;margin-top:var(--s-1)}
.v2 .sgx-bar i{display:block;height:100%;width:0;background:var(--accent-mark,var(--accent));animation:v2-sgbar 1.8s var(--ease) .6s forwards}
@keyframes v2-sgbar{to{width:100%}}
.v2 .sgx-rs{display:block;min-height:20px;font-size:12px;line-height:20px}
.v2 .sgx-ft :is(.sgx-go,.sgx-rs)[hidden]{display:none}
/* done: the green check and the welcome, and in the foot the workspace opening */
.v2 .sgx-done{display:flex;flex-direction:column;align-items:center;gap:var(--s-2);padding:var(--s-4) 0 0;font-size:13px;text-align:center}
.v2 .sgx-done>b{font-weight:500;font-size:14px}
.v2 .sgx-open{display:flex;flex-direction:column;align-items:center;gap:var(--s-2);padding-bottom:var(--s-4);font-size:13px}
.v2 .sgx-open .shim{font-size:inherit}
/* Studio: the steps rise into place without a blur. The foot is the card's off-white foot strip in every step (owner, 21 Nov:
   "this has no studio style separation"): a top hairline, the card's bottom corners, its contents on the 16px column, 8px from
   its top and bottom. The fields stay in the body, 16px above it */
:root[data-style="studio"] .v2 .sgx-st.in{animation:v2-clpiece var(--t-slow) var(--ease) both}
:root[data-style="studio"] .v2 .sgx-ft{margin:var(--s-4) calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .sgx-rs{min-height:28px;line-height:28px}
:root[data-style="studio"] .v2 .sgx-done{padding-top:0}
:root[data-style="studio"] .v2 .sgx-open{padding-bottom:0}
:root[data-style="studio"] .v2 .sgx-sug{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .sgx-sug:hover{background:var(--chip);box-shadow:inset 0 0 0 99px var(--row)}}
/* ---------- OTP field ---------- */
/* a one-time code, one box per digit: typing moves along, Backspace moves back, and a paste fills every box. A wrong
   code shakes and turns red; typing again starts it over */
.v2 .otp{position:relative;width:100%;max-width:360px;margin:0 auto;padding:22px var(--s-5) 18px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.v2 .otp-ic{width:40px;height:40px;border-radius:var(--r-in);background:var(--chip);color:var(--fg2);display:grid;place-items:center;margin-bottom:6px}
.v2 .otp-t{font-weight:500;font-size:14px}
.v2 .otp-s{margin:0 0 10px;font-size:13px;line-height:1.45;max-width:260px}
.v2 .otp-in{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;max-width:286px}
.v2 .otp-in .sep{flex:none;width:8px;height:1.5px;border-radius:1px;background:var(--rail);margin:0 2px}
.v2 .otp-d{flex:1 1 0;min-width:0;max-width:40px;height:var(--field-h);padding:0;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);text-align:center;font:inherit;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--fg);caret-color:var(--accent-mark,var(--accent));transition:box-shadow .25s,background .25s,color .25s,transform .25s var(--ease)}
@supports (corner-shape:squircle){.v2 .otp-d{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .otp-d:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* (not .pop, which is the shared popover class and would hide the box) */
.v2 .otp-d.bump{transform:scale(1.06)}
.v2 .otp-in.vf .otp-d{color:var(--fg2)}
/* a wrong code keeps its red edge, focused or not, until typing starts it over */
.v2 .otp-in.bad .otp-d{background:var(--bad-bg);color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 55%,transparent)}
.v2 .otp-in.bad{animation:v2-otpsh .42s}
@keyframes v2-otpsh{20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.v2 .otp-in.ok .otp-d{background:var(--ok-bg);color:var(--ok);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ok) 35%,transparent)}
.v2 .otp-m{margin:var(--s-2) 0 0;min-height:20px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12.5px;color:var(--fg2)}
.v2 .otp-m .spin{width:11px;height:11px}
.v2 .otp-m.bad{color:var(--bad)}
.v2 .otp-m.ok{color:var(--ok)}
.v2 .otp-f{margin:2px 0 0;font-size:12.5px}
.v2 .otp-f button{color:var(--accent-fg,var(--accent));font-weight:500;font-size:12.5px}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .otp.panel{padding:7px 0px 17px 0px}
/* ---------- Form ---------- */
.v2 .fmx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3);max-width:380px;margin:0 auto;width:100%}
.v2 .fmx-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2)}
.v2 .fmx-h b{font-weight:500;font-size:14px}
.v2 .fmx-f{display:flex;flex-direction:column;gap:5px;font-size:12.5px;font-weight:500;position:relative}
.v2 .fmx-f input,.v2 .fmx-f textarea{border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);padding:10px var(--s-3);font:inherit;font-size:13.5px;line-height:20px;font-weight:400;color:var(--fg);resize:none;transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .fmx-f :is(input,textarea){corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .fmx-f input::placeholder,.v2 .fmx-f textarea::placeholder{color:var(--muted)}
.v2 .fmx-f input:focus,.v2 .fmx-f textarea:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* a field marked wrong keeps its red edge, focused or not, until it is fixed; the message says what is wrong */
.v2 .fmx-f.bad input,.v2 .fmx-f.bad textarea{box-shadow:inset 0 0 0 1px var(--bad)}
.v2 .fmx-f .er{font-size:11.5px;color:var(--bad);font-weight:400;animation:v2-enter .35s var(--ease) backwards}
/* what the agent drafted is marked by a small sparkle right after its label, with no word (owner, 27 Nov: the foot line says
   it once in words): pointing at it says "Drafted by the agent", which is also its name for screen readers. It shows until
   someone edits the field; hidden, it is out of the accessibility tree too */
.v2 .fmx-f>span:first-child{display:flex;align-items:center;gap:var(--s-1)}
.v2 .fmx-dr{display:inline-grid;place-items:center;font-style:normal;color:var(--accent-mark,var(--accent));cursor:default;visibility:hidden;opacity:0;transform:translateX(-3px);transition:opacity var(--t) var(--ease),transform var(--t) var(--ease),visibility var(--t)}
.v2 .fmx-f.ai .fmx-dr{visibility:visible;opacity:1;transform:none}
.v2 .fmx-c{position:absolute;right:12px;top:24px;height:40px;display:flex;align-items:center;font-style:normal;font-size:11px;color:var(--muted);font-weight:400;pointer-events:none}
.v2 .fmx-ty{display:flex;gap:6px}
/* the types are white chips with a dimmed grey edge; the picked one's edge is a step stronger. A hover is a quiet fill */
.v2 .fmx-ty .chip{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .fmx-ty .chip:hover{background:color-mix(in srgb,var(--fg) 4%,var(--surface))}}
/* in dark mode the 4% hover barely shows on the dark surface, so it takes a step more (check-rules R6, 27 Nov) */
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-theme="light"]) .v2 .fmx-ty .chip:hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}}
@media (hover:hover) and (pointer:fine){:root[data-theme="dark"] .v2 .fmx-ty .chip:hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}
.v2 .fmx-ty .chip.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
/* each type is a label with its own core tag colour, wherever it shows (owner, 27 Nov: "add some color"): at rest a small dot
   in its colour on the neutral chip; picked, the colour's tint with its text colour (as .tag draws it) and the selected edge */
.v2 .fmx-ty .chip[data-tone]::before{content:"";flex:none;width:6px;height:6px;margin-left:-1px;border-radius:50%;corner-shape:round;background:var(--tn)}
.v2 .fmx-ty .chip[data-tone="b"]{--tn:var(--pb);--tn-bg:var(--pb-bg)}.v2 .fmx-ty .chip[data-tone="l"]{--tn:var(--pl);--tn-bg:var(--pl-bg)}
.v2 .fmx-ty .chip[data-tone="m"]{--tn:var(--pm);--tn-bg:var(--pm-bg)}.v2 .fmx-ty .chip[data-tone="p"]{--tn:var(--pp);--tn-bg:var(--pp-bg)}
.v2 .fmx-ty .chip[data-tone="r"]{--tn:var(--pr);--tn-bg:var(--pr-bg)}.v2 .fmx-ty .chip[data-tone="y"]{--tn:var(--py);--tn-bg:var(--py-bg)}
.v2 .fmx-ty .chip[data-tone="k"]{--tn:var(--pk);--tn-bg:var(--pk-bg)}.v2 .fmx-ty .chip[data-tone="t"]{--tn:var(--pt);--tn-bg:var(--pt-bg)}
.v2 .fmx-ty .chip[data-tone].on{background:var(--tn-bg);color:var(--tn)}
@media (hover:hover) and (pointer:fine){.v2 .fmx-ty .chip[data-tone].on:hover{background:var(--tn-bg);color:var(--tn)}}
/* the footer sits under a hairline in Soft and Blueprint (owner, 21 Nov), 16px under the fields and 12px over its button */
.v2 .fmx-ft{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
/* Studio: the footer is the card's off-white foot strip (owner, 21 Nov: "studio doesnt follow its style with buttons being
   separated by a divider line and on a gray bg"): its words and Create brief 16px in, 16px from the strip's top and bottom (owner, 23 Nov) */
:root[data-style="studio"] .v2 .fmx-ft{padding-top:0;border-top:0}
:root[data-style="studio"] .v2 .fmx.panel .fmx-ft{margin:var(--s-1) -16px -16px;padding:var(--strip-y) 16px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
.v2 .fmx-ms{font-size:12px}
/* nothing in it grows or shrinks when pressed but Studio's ink primary; a button whose words change eases to their width */
.v2 .fmx :is(.pill,.chip):active{transform:none}
.v2 .fmx :is(.fmx-ai,.fmx-go){overflow:hidden}
.v2 .fmx-ai .shim{font-size:inherit}
/* the words on a filled button sweep in its own text colour */
.v2 .fmx-go .shim{background-image:linear-gradient(90deg,var(--on-accent,#fff) 0%,var(--on-accent,#fff) 38%,color-mix(in srgb,var(--on-accent,#fff) 45%,transparent) 50%,var(--on-accent,#fff) 62%,var(--on-accent,#fff) 100%);font-size:inherit}
:root[data-style="studio"] .v2 .fmx-go .shim{background-image:linear-gradient(90deg,var(--on-btn) 0%,var(--on-btn) 38%,color-mix(in srgb,var(--on-btn) 45%,transparent) 50%,var(--on-btn) 62%,var(--on-btn) 100%)}
/* the type chips keep their quiet edge: the one hover fills them, and a picked one has the stronger fill (owner, 21 Nov) */
:root[data-style="studio"] .v2 .fmx-ty .chip{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .fmx-ty .chip:not(.on):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .fmx-ty .chip.on{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .fmx-ty .chip[data-tone].on{background:var(--tn-bg);color:var(--tn);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-line) 50%,transparent)}
/* done: the card eases to the confirmation's height (grow()), with the vivid green tick */
.v2 .fmx-done{display:flex;flex-direction:column;align-items:center;gap:6px;padding:var(--s-6) 0;text-align:center;font-size:13px}
.v2 .fmx-done>svg.i{width:28px;height:28px;color:var(--ok-mark)}
.v2 .fmx-done>b{font-weight:500;font-size:14px}
/* ---------- Payment form ---------- */
.v2 .pyx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3);max-width:360px;margin:0 auto;width:100%}
.v2 .pyx-h{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.v2 .pyx-h>div:first-child{display:flex;flex-direction:column;font-size:14px}
.v2 .pyx-h b{font-weight:500}
.v2 .pyx-h .muted{font-size:12px}
.v2 .pyx-per button{font-size:12px;height:26px;padding:0 9px}
/* the card's fields have no box: the text lines up with its label, with room above and below it, over a dimmed line that
   steps up while the field has the focus. Left, a filled field looks like an empty one */
.v2 .pyx-f{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:500;min-width:0}
/* each field is a full outline like every other field: a dimmed grey edge, empty or filled, one step stronger only while it
   has the focus */
.v2 .pyx-in{display:flex;align-items:center;gap:var(--s-2);height:var(--field-h);padding:0 var(--s-2) 0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .pyx-in{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .pyx-in:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
/* a field marked wrong keeps its red line, focused or not, until it is fixed */
.v2 .pyx-f.bad .pyx-in{box-shadow:inset 0 0 0 1px var(--bad)}
.v2 .pyx-in input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--fg)}
.v2 .pyx-in input::placeholder{color:var(--muted)}
.v2 .pyx-br{font-size:10px;font-weight:500;letter-spacing:.04em;padding:3px 6px;border-radius:var(--r-xs);opacity:0;transform:scale(.8);transition:opacity .3s,transform .35s var(--ease)}
.v2 .pyx-br.on{opacity:1;transform:none}
.v2 .pyx-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3)}
/* the details: plain rows after a line, no panel */
.v2 .pyx-sum{display:flex;flex-direction:column;gap:6px;margin-top:var(--s-1);padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;color:var(--fg2)}
.v2 .pyx-sum>div{display:flex;justify-content:space-between}
.v2 .pyx-dc{color:var(--ok);transition:opacity .3s}
.v2 .pyx-dc.off{opacity:.3;text-decoration:line-through}
.v2 .pyx-t{padding-top:6px;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);color:var(--fg);font-size:13.5px}
.v2 .pyx-t b{font-weight:500}
.v2 .pyx-go{height:var(--field-h);width:100%}
.v2 .pyx-go.ok{background:var(--ok)}
.v2 .pyx-n{font-size:11.5px;text-align:center}
/* on the site the form stands alone, with the demo line under it, outside the form */
.v2 .pyx-wrap{display:flex;flex-direction:column;align-items:center;gap:var(--s-3);width:100%;max-width:360px;margin:0 auto}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .pyx.panel{padding:18px 20px 20px 20px}
/* ---------- Comments ---------- */
/* a thread on one spot of a design: the first comment, then its replies indented on a thin line. Each comment is an avatar,
   a name, a time and the text; its Agree button shows on hover or keyboard focus (always, on a touch screen). The card's
   content is 16px from every edge in every style, and it keeps no room for replies still to come: it grows as they arrive
   (grow()) and stays centred in its stage (owner, 17 and 18 Nov). Hovers are a quiet fill that shows in light mode too */
.v2 .cmx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);--row:color-mix(in srgb,var(--fg) 5%,transparent)}
/* the head sits on the comments' columns: the pin centred in the avatars' 24px column, the title where their words start,
   and Resolve's glyph on the right edge the Send button ends on, its hover box reaching out round it */
.v2 .cmx-h{display:flex;align-items:center;gap:var(--s-3);min-height:20px;padding-bottom:var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13.5px;line-height:20px}
.v2 .cmx-h b{font-weight:500}
.v2 .cmx-st{flex:1;min-width:0;display:flex}
.v2 .cmx-pin{width:20px;height:20px;margin:0 2px;border-radius:50% 50% 50% var(--r-xs);background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;font-size:11px;font-weight:500;flex:none;transition:background var(--t)}
.v2 .cmx.done .cmx-pin{background:var(--ok);color:var(--surface)}
/* the resolve button is the library's icon button as it is (30px, its own colour), its box 16px in from the card's top and
   right edges like every control in a head (check-rules R1 and R7, 27 Nov), so the head is as tall as it */
.v2 .cmx-th{--cmx-ln:color-mix(in srgb,var(--rail) 50%,var(--surface));display:flex;flex-direction:column;gap:var(--s-4);flex:1}
/* dark: the rail is close to the surface already, so the line keeps more of it to stay visible */
:root[data-theme="dark"] .v2 .cmx-th{--cmx-ln:color-mix(in srgb,var(--rail) 80%,var(--surface))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .cmx-th{--cmx-ln:color-mix(in srgb,var(--rail) 80%,var(--surface))}}
/* a reply's avatar starts where the words of the comment it answers start (12px + 24px in), so the thread keeps one column */
.v2 .cmx-rp{--cmx-x:calc(-1 * var(--s-6) - .75px);display:flex;flex-direction:column;gap:var(--s-4);margin-left:var(--s-3);padding-left:var(--s-6);position:relative}
/* one unbroken line (owner, 21 Nov: "these lines are not connected"): it starts just below the first comment's avatar,
   centred under it, and runs straight down to the last reply's branch, where it ends. Every piece of it is drawn the same
   way, a 1.5px left border at the same x, and each piece overlaps the next, so they meet with no seam */
.v2 :is(.cmx-th,.cmx-th>.dm-grow)>.cmx-c:first-child{position:relative}
.v2 :is(.cmx-th,.cmx-th>.dm-grow)>.cmx-c:first-child:has(+ .cmx-rp)::before{content:'';position:absolute;width:0;border-left:1.5px solid var(--cmx-ln);pointer-events:none;left:calc(var(--s-3) - .75px);top:calc(24px + var(--s-1));bottom:calc(-1 * var(--s-4))}
/* each reply: a branch leaves the line and turns into its avatar's centre (rounded in Soft and Studio, square in Blueprint);
   under every reply but the last the line carries straight on past the branch, and as a reply arrives the line draws itself
   down to it */
.v2 .cmx-rp>.cmx-c{position:relative}
.v2 .cmx-rp>.cmx-c .av{position:relative;z-index:1}
.v2 .cmx-rp>.cmx-c::before{content:'';position:absolute;left:var(--cmx-x);top:calc(-1 * var(--s-4));width:calc(var(--s-6) + 1.75px);height:calc(var(--s-4) + 12.75px);box-sizing:border-box;border-left:1.5px solid var(--cmx-ln);border-bottom:1.5px solid var(--cmx-ln);border-bottom-left-radius:10px;corner-shape:round;pointer-events:none}
.v2 .cmx-rp>.cmx-c:not(:last-child)::after{content:'';position:absolute;left:var(--cmx-x);top:0;bottom:calc(-1 * var(--s-4));width:0;border-left:1.5px solid var(--cmx-ln);pointer-events:none;transform-origin:top;animation:v2-cmxrl var(--t) var(--ease) both}
@keyframes v2-cmxrl{from{transform:scaleY(0)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .cmx-rp>.cmx-c::before{border-bottom-left-radius:0}
.v2 .cmx-c{display:flex;gap:var(--s-3);min-width:0}
.v2 .cmx-c .av{width:24px;height:24px;font-size:10px}
.v2 .cmx-c .b{flex:1;display:flex;flex-direction:column;min-width:0}
.v2 .cmx-c .n{display:flex;align-items:center;gap:var(--s-2);height:24px;font-size:13px}
.v2 .cmx-c .n b{font-weight:500;white-space:nowrap}
.v2 .cmx-c .n .t{font-size:12px;color:var(--muted)}
.v2 .cmx-c .tx{font-size:13.5px;line-height:1.5;color:var(--fg);overflow-wrap:anywhere}
/* an @mention: the accent's text on its tint, the tint reaching out round the word so the word stays on the text's column */
.v2 .cmx-c .m{color:var(--accent-fg);background:var(--sel);border-radius:var(--r-xs);padding:0 2px;margin:0 -2px}
.v2 .cmx-c.ag .tx .w{animation:v2-cmw .4s var(--ease) both}
@keyframes v2-cmw{from{opacity:0;filter:blur(3px)}to{opacity:1;filter:none}}
/* the agent's buttons wrap before they reach the column's right edge, so on a phone they never end a few pixels short of the
   edge Send and Resolve end on */
.v2 .cmx-c .act{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-2);max-width:calc(100% - var(--s-6))}
/* the quiet Agree button beside the time, its glyph on the same right edge as Resolve's */
.v2 .cmx-tools{margin-left:auto;margin-right:-2px;display:flex;gap:var(--s-1);transition:opacity var(--t-fast)}
.v2 .cmx-tools .ib{width:26px;height:26px;color:var(--muted)}
.v2 .cmx-tools .ib[aria-pressed="true"]{color:var(--accent-fg)}
@media (hover:hover) and (pointer:fine){.v2 .cmx-tools{opacity:0}}
.v2 .cmx-c .n:focus-within .cmx-tools{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .cmx-c:hover .cmx-tools{opacity:1}}
/* how many agreed: a small chip under the text. Hovered it takes a quiet fill; once you have agreed it takes the accent's
   tint with the accent's text, as a reaction of yours does (owner, 20 Nov: hover and selected are a quiet, deeper fill) */
.v2 .cmx-rs{display:flex;margin-top:var(--s-2)}
.v2 .cmx-rs:has(.cmx-rc[hidden]){display:none}
.v2 .cmx-rc{display:inline-flex;align-items:center;gap:var(--s-1);height:22px;padding:0 var(--s-2);border-radius:var(--r-pill);font-size:12px;color:var(--fg2);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);transition:background-color var(--t-fast),box-shadow var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .cmx-rc:hover{background:color-mix(in srgb,var(--fg) 5%,var(--surface))}}
/* in dark mode 5% barely shows on the dark surface, so the hover takes a step more (check-rules R6, 27 Nov) */
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-theme="light"]) .v2 .cmx-rc:not([aria-pressed="true"]):hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}}
@media (hover:hover) and (pointer:fine){:root[data-theme="dark"] .v2 .cmx-rc:not([aria-pressed="true"]):hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}
.v2 .cmx-rc[aria-pressed="true"]{color:var(--accent-fg);background:var(--accent-bg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 25%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .cmx-rc[aria-pressed="true"]:hover{background:linear-gradient(color-mix(in srgb,var(--fg) 4%,transparent),color-mix(in srgb,var(--fg) 4%,transparent)),var(--accent-bg)}}
/* the reply field: a dimmed edge at rest, one step stronger while it has the focus, and no ring. A half-strength hairline
   sets it off from the thread, as one sets the head off (owner, 21 Nov) */
.v2 .cmx-in{position:relative;display:grid;grid-template-rows:minmax(0,1fr);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);transition:grid-template-rows var(--t) var(--ease),margin var(--t) var(--ease),padding var(--t) var(--ease),border-width var(--t) var(--ease),opacity var(--t-fast) var(--ease),visibility 0s}
.v2 .cmx-box{display:flex;align-items:center;gap:6px;height:var(--field-h);padding:0 5px 0 var(--s-3);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .cmx-box{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .cmx-box:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .cmx-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:var(--fg)}
.v2 .cmx-box input::placeholder{color:var(--muted)}
.v2 .cmx-go{width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;flex:none;transition:background var(--t-fast),transform .15s}
@media (hover:hover) and (pointer:fine){.v2 .cmx-go:hover{background:var(--accent-2)}}
.v2 .cmx-go[disabled]{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring);transform:none}
@media (hover:hover) and (pointer:fine){.v2 .cmx-go[disabled]:hover{opacity:1;cursor:not-allowed;background:var(--dis-hatch),var(--dis-fill);color:var(--dis);box-shadow:var(--soft-ring);transform:none}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink Send alone presses */
.v2 .cmx :is(.ib,.pill,.cmx-go,.cmx-rc):active,:root[data-style="studio"] .v2 .cmx .ib:active{transform:none}
/* the mention list opens upward from the field, over the thread */
.v2 .cmx-men{bottom:46px;left:0;min-width:210px;--origin:bottom left}
/* resolved: the thread stays as it is, in full colour (owner, 20 Nov: nothing fades to say it is past), the pin turns green,
   a green Resolved chip says so, and the reply field folds away while the card eases to its new height; Reopen brings it back */
.v2 .cmx.done .cmx-in{grid-template-rows:minmax(0,0fr);margin-top:calc(-1 * var(--s-4));padding-top:0;border-top-width:0;opacity:0;overflow:hidden;visibility:hidden;transition:grid-template-rows var(--t) var(--ease),margin var(--t) var(--ease),padding var(--t) var(--ease),border-width var(--t) var(--ease),opacity var(--t-fast) var(--ease),visibility 0s var(--t)}
@media (prefers-reduced-motion:reduce){.v2 .cmx-in{transition:none!important}.v2 .cmx-rp>.cmx-c::after{animation:none}}
.v2 .cmx-st .tag{margin-left:calc(-1 * var(--s-1))}
/* the agent's change applied: a neutral line with the green tick (owner, 18 Nov: a finished state has no green words or fill) */
.v2 .cmx-rv{font-size:12.5px;line-height:28px;color:var(--fg2);display:flex;align-items:center;gap:6px}
.v2 .cmx-rv svg{color:var(--ok-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .cmx-c .m{box-shadow:inset 0 -1px 0 var(--accent-mark)}
/* Studio: the head is a strip, its controls on the content's 16px column, and the reply field sits in a foot strip that folds
   away with it once the thread is resolved (owner, 21 Nov). Send is the field's own Send (see the Studio section): 5px from
   the field's edges, its corners the field's less those 5px. The agent's words fade in without a blur */
:root[data-style="studio"] .v2 .cmx-h{margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0;padding:var(--strip-y) var(--s-4);background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .cmx-res{margin:0}
:root[data-style="studio"] .v2 .cmx-in{margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-4));padding:var(--strip-y) var(--s-4);background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .cmx.done .cmx-in{margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) 0;padding-block:0;border-top-width:0}
/* Agree, once agreed, sits on Studio's selected fill in its round shape, as a rated thumb does (owner, 23 Nov) */
:root[data-style="studio"] .v2 .cmx-tools .ib[aria-pressed="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .cmx-men{bottom:54px;left:var(--s-4)}
:root[data-style="studio"] .v2 .cmx-go{border-radius:calc(var(--r-field) - 5px)}
:root[data-style="studio"] .v2 .cmx-c.ag .tx .w{animation:v2-cmwc var(--t-slow) var(--ease) both}
/* the reaction chip keeps its quiet edge and takes the one hover as a fill (owner, 21 Nov) */
:root[data-style="studio"] .v2 .cmx-rc{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .cmx-rc:not([aria-pressed="true"]):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row)}}
@keyframes v2-cmwc{from{opacity:0}to{opacity:1}}
/* ---------- Notifications ---------- */
/* an inbox: a head with its name, the unread count and Mark all read, a filter, then the items, newest first. The rules
   straight under this line are the inbox's parts as the Sales CRM's notifications menu uses them (a bare .ntx in its own
   popover); the component's own card (.ntx.panel, below) sets its own measures over them */
.v2 .ntx{padding:var(--s-3);display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .ntx-h{display:flex;align-items:center;gap:var(--s-2);margin:0 -12px 2px;padding:2px var(--s-3) 10px var(--s-4);font-size:14px;border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ntx-h b{font-weight:500}
.v2 .ntx-ct{min-width:20px;height:20px;padding:0 6px;border-radius:var(--r-pill);background:var(--accent);color:var(--on-accent,#fff);font-size:11px;font-weight:500;display:grid;place-items:center;transition:transform .35s var(--ease),opacity .3s}
.v2 .ntx-ct.z{opacity:0;transform:scale(.5)}
.v2 .ntx-ct.bump{animation:v2-ntb .45s var(--ease)}
@keyframes v2-ntb{40%{transform:scale(1.3)}}
.v2 .ntx-sp{flex:1}
.v2 .ntx-tabs .seg2 button{font-size:12px;height:26px;padding:0 9px}
.v2 .ntx-list{display:flex;flex-direction:column}
.v2 .ntx-n{display:flex;gap:10px;padding:9px var(--s-2);border-radius:var(--r-in);text-align:left;width:100%;position:relative;transition:background .2s}
@media (hover:hover) and (pointer:fine){.v2 .ntx-n:hover{background:var(--row)}}
/* what an agent did: its icon on its status's tint (a finished run green, one that paused amber, a run that started the
   accent), in the status colours (owner, 3 Nov: saturated), never a washed-out mix; a tile given its own colour inline keeps it */
.v2 .ntx-n .ic{width:30px;height:30px;border-radius:calc(10px * var(--rk-m,var(--rk)));display:grid;place-items:center;flex:none;background:var(--ntx-tb,transparent);color:var(--ntx-tc,var(--fg2))}
.v2 .ntx-n .ic[data-tone="ok"]{--ntx-tb:var(--ok-bg);--ntx-tc:var(--ok)}
.v2 .ntx-n .ic[data-tone="warn"]{--ntx-tb:var(--warn-bg);--ntx-tc:var(--warn)}
.v2 .ntx-n .ic[data-tone="bad"]{--ntx-tb:var(--bad-bg);--ntx-tc:var(--bad)}
.v2 .ntx-n .ic[data-tone="accent"]{--ntx-tb:var(--accent-bg);--ntx-tc:var(--accent-fg)}
.v2 .ntx-n .ic[data-tone="neutral"]{--ntx-tb:var(--chip);--ntx-tc:var(--fg2)}
.v2 .ntx-n .ic .av{width:30px;height:30px;font-size:11px}
.v2 .ntx-n .t{flex:1;min-width:0;font-size:13px;line-height:1.45;color:var(--fg2)}
.v2 .ntx-n .t b{font-weight:500;color:var(--fg)}
.v2 .ntx-n .t span{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.v2 .ntx-n .u{width:7px;height:7px;border-radius:50%;background:var(--accent-mark,var(--accent));margin-top:6px;flex:none;transition:transform .3s var(--ease),opacity .3s}
.v2 .ntx-n.read .u{transform:scale(0);opacity:0}
.v2 .ntx-n.read .t{color:var(--muted)}
.v2 .ntx-n.new{animation:v2-ntn .6s var(--ease) both}
@keyframes v2-ntn{from{opacity:0;transform:translateY(-10px);filter:blur(4px)}}
.v2 .ntx-e{padding:40px 10px;text-align:center;font-size:13px;color:var(--muted)}
/* the component's own card. It sits on two columns (owner, 18 Nov), its content 16px from every edge in every style: the
   head's neutral mark (the inbox's bell) in a 30px column with each item's icon or avatar centred under it, and the inbox's
   name and each item's words 12px after it; Mark all read's words and the unread dots end on the content's right edge. The
   head's hairline runs from edge to edge with 16px under it. An item is a button, so its hover fill reaches 8px out round it,
   a quiet fill that shows in light mode too, with the card's corners less 8. A read item keeps its colours (owner, 20 Nov:
   nothing fades to say it is past): only its unread dot goes. The card keeps no room for items to come: it grows as they
   arrive (grow()), centred in its stage */
.v2 .ntx.panel{padding:var(--s-4);--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .ntx.panel .ntx-h{gap:var(--s-3);margin:0 calc(-1 * var(--s-4)) var(--s-2);padding:0 var(--s-4) var(--s-4);line-height:20px}
.v2 .ntx-hi{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--chip);color:var(--fg2)}
.v2 .ntx.panel .ntx-ct{margin-left:calc(-1 * var(--s-1))}
/* Mark all read is a text button: its words end on the content's edge and its hover box reaches out round them */
.v2 .ntx.panel .ntx-all.pill{padding:0 var(--s-2);margin-right:calc(-1 * var(--s-2))}
/* the filter is a row of underline tabs under the head (owner, 28 Nov): the head keeps Mark all read top right and has no line
   of its own; the tabs' row carries the hairline, edge to edge, and the picked tab's 2px line slides along it (the core's
   underline tabs, .utabs) */
.v2 .ntx.panel:has(.ntx-ut) .ntx-h{border-bottom:0;margin-bottom:0}
.v2 .ntx-ut{margin:calc(-1 * var(--s-2)) calc(-1 * var(--s-4)) var(--s-2)}
/* an item is two buttons on one row: the item itself, which opens it and marks it read, and, at the unread dot's place, Mark as
   unread, a hollow dot that shows on a read item under the pointer or with the focus in the row */
.v2 .ntx-o{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-3);text-align:left;color:inherit}
.v2 .ntx-m{position:relative;flex:none;width:7px;height:7px;display:grid}
.v2 .ntx.panel .ntx-n .ntx-m .u{margin:0}
.v2 .ntx-u{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;opacity:0;visibility:hidden;transition:opacity var(--t-fast) var(--ease),visibility 0s var(--t-fast),background var(--t-fast)}
.v2 .ntx-u i{width:7px;height:7px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--muted)}
@media (hover:hover) and (pointer:fine){.v2 .ntx-n.read:is(:hover,:focus-within) .ntx-u{opacity:1;visibility:visible;transition-delay:0s}}
.v2 .ntx-n:not(.read) .ntx-u{display:none}
.v2 .ntx-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .ntx.panel .ntx-list{margin:0 calc(-1 * var(--s-2)) calc(-1 * var(--s-2))}
.v2 .ntx.panel .ntx-n{align-items:center;gap:var(--s-3);padding:var(--s-2);border-radius:calc(var(--r-card) - var(--s-2));transition:background-color var(--t-fast)}
.v2 .ntx.panel .ntx-n .t span{line-height:15px}
.v2 .ntx.panel .ntx-n .u{margin-top:0}
.v2 .ntx.panel .ntx-n.read .t{color:var(--fg2)}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov) */
.v2 .ntx.panel :is(.pill,.ntx-n):active{transform:none}
/* an empty filter: a small sketch of a list on a white card, a title and one muted line (Studio's empty state, in every style) */
.v2 .ntx-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--s-6) var(--s-4) var(--s-4);text-align:center}
.v2 .ntx-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .ntx-em>span:not(.ntx-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .ntx-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 var(--s-4);border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .ntx-em-art::before{content:"";position:absolute;left:14px;top:14px;width:10px;height:10px;border-radius:50%;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--row))}
.v2 .ntx-em-art::after{content:"";position:absolute;left:32px;top:16px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,var(--row))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .ntx-em-art{box-shadow:inset 0 0 0 1px var(--line)}
/* Studio: the head's mark has a hairline like the other tiles, and a new item rises in without a blur */
:root[data-style="studio"] .v2 .ntx-hi{box-shadow:inset 0 0 0 1px var(--hair)}
/* the head (the inbox, its count and Mark all read) is an off-white head strip, as every Studio card with a head has; its
   controls sit 16px from the strip's top and bottom (--strip-y, owner, 23 Nov) and on the content's 16px column */
:root[data-style="studio"] .v2 .ntx.panel .ntx-h{margin:calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) var(--s-2);padding:var(--strip-y) var(--s-4);background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .ntx.panel:has(.ntx-ut) .ntx-h{margin-bottom:0;border-bottom:0}
:root[data-style="studio"] .v2 .ntx.panel .ntx-n.new{animation:v2-clpiece var(--t-slow) var(--ease) both}
/* ---------- Banner ---------- */
/* an announcement on a tint of its tone: an eyebrow, a title, a line of text and its actions on the left, and one of four line
   drawings on the right, drawn as a hairline with a few construction lines, the way Blueprint draws everything. Each tone
   names three colours: --bnx-m draws the art (3:1 on the fill), --bnx-c writes the eyebrow (4.5:1) and --bnx-f is what
   the fill is a tint of. The fill is solid, so the close button and the art's own faces can wear it too. It has no border:
   the tint is its edge. Its words sit 24px in from the left, and as far from the top and bottom when its text is at its
   tallest, so the room round them is even (owner, 20 Nov) */
.v2 .bnx-slot{width:100%}
.v2 .bnx{position:relative;width:100%;min-height:176px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;border-radius:var(--r-card);container:bnx/inline-size;isolation:isolate;
  --bnx-m:var(--accent-mark);--bnx-c:var(--accent-fg);--bnx-f:var(--accent);--bnx-k:10%;--bnx-ka:var(--bnx-k);
  --bnx-bg:color-mix(in srgb,var(--bnx-f) var(--bnx-ka),var(--surface));
  background:var(--bnx-bg);transition:background-color var(--t-slow) var(--ease)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .bnx{--bnx-k:14%}}
:root[data-theme="dark"] .v2 .bnx{--bnx-k:14%}
.v2 .bnx[data-tone="neutral"]{--bnx-m:var(--muted);--bnx-c:var(--fg2);--bnx-bg:var(--chip)}
.v2 .bnx[data-tone="blue"]{--bnx-m:var(--pb);--bnx-c:var(--pb);--bnx-f:var(--pb);--bnx-ka:var(--bnx-k)}
.v2 .bnx[data-tone="violet"]{--bnx-m:var(--pl);--bnx-c:var(--pl);--bnx-f:var(--pl);--bnx-ka:var(--bnx-k)}
.v2 .bnx[data-tone="green"]{--bnx-m:var(--pm);--bnx-c:var(--pm);--bnx-f:var(--pm);--bnx-ka:var(--bnx-k)}
.v2 .bnx[data-tone="amber"]{--bnx-m:var(--py);--bnx-c:var(--py);--bnx-f:var(--py);--bnx-ka:var(--bnx-k)}
/* a warning (owner, 18 Nov, as every warning notice): a faint warning tint (--warn-bg at 45%), the filled warning sign in
   --warn-mark before the eyebrow, every word in the text colour (not amber), the drawing in the warning's orange, and the
   action in the warning tint with the warning text (.pill.warn), its hover a step deeper (--tint-h). The drawing's hairlines
   are --warn-mark taken a fifth of the way to --warn in light mode, so they hold 3:1 on the tint (--warn-mark itself is 2.8:1
   there). The tint is worked out on the surface so the fill stays solid: in dark mode --warn-bg is rgb(255 184 40) at 20%, so
   45% of it is that colour at 9% */
.v2 .bnx[data-tone="warning"]{--bnx-m:color-mix(in srgb,var(--warn-mark) 80%,var(--warn));--bnx-c:var(--fg);--bnx-f:var(--warn-mark);--bnx-bg:color-mix(in srgb,var(--warn-bg) 45%,var(--surface))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .bnx[data-tone="warning"]{--bnx-m:var(--warn-mark);--bnx-bg:color-mix(in srgb,rgb(255 184 40) 9%,var(--surface))}}
:root[data-theme="dark"] .v2 .bnx[data-tone="warning"]{--bnx-m:var(--warn-mark);--bnx-bg:color-mix(in srgb,rgb(255 184 40) 9%,var(--surface))}
.v2 .bnx[data-tone="warning"] .bnx-eb{position:relative;display:inline-flex;align-items:center;gap:6px}
.v2 .bnx[data-tone="warning"] .bnx-eb::before,.v2 .bnx[data-tone="warning"] .bnx-eb::after{content:"";width:16px;height:16px;flex:none}
.v2 .bnx[data-tone="warning"] .bnx-eb::before{background:var(--warn-mark);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.6 2.6 19.9h18.8z' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.6 2.6 19.9h18.8z' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.v2 .bnx[data-tone="warning"] .bnx-eb::after{position:absolute;left:0;top:0;background:var(--surface);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9.6v4.4M12 17v.01' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9.6v4.4M12 17v.01' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* the text keeps clear of the art: its right padding is the art's width */
.v2 .bnx-tx{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;padding:var(--s-6) calc(min(42%,300px) + var(--s-2)) var(--s-6) var(--s-6)}
.v2 .bnx-eb{font-size:12px;font-weight:500;line-height:16px;color:var(--bnx-c);transition:color var(--t-slow) var(--ease)}
.v2 .bnx-t{margin:var(--s-2) 0 0;font-size:14px;font-weight:500;line-height:20px;color:var(--fg);text-wrap:balance}
.v2 .bnx-d{margin:var(--s-1) 0 0;font-size:13px;line-height:20px;color:var(--fg2);text-wrap:pretty}
.v2 .bnx-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2) var(--s-4);margin-top:var(--s-4)}
.v2 .bnx-lk{display:inline-flex;align-items:center;height:28px;font-size:13px;color:var(--fg);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px;transition:text-decoration-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .bnx-lk:hover{text-decoration-color:currentColor}}
/* on a coloured banner the primary button is white in light mode, with the text colour on it, so it stands out from the tint
   in every tone; in dark mode, where the tint is deep, it is the accent (owner, 4 Nov). It casts no shadow: the white button
   on a tint has a hairline edge (--on-tint-btn), and its hover is a quiet, deeper fill with no lift or shadow (owner, 18 and
   20 Nov). A neutral (grey) banner keeps the accent, and a warning one the warning's own button (above) */
.v2 .bnx{--bnx-go-bg:var(--surface);--bnx-go-fg:var(--fg);--bnx-go-sh:var(--on-tint-btn);--bnx-go-hbg:color-mix(in srgb,var(--fg) 4%,var(--surface));--bnx-go-hsh:var(--on-tint-btn-h);--bnx-go-ash:var(--on-tint-btn-h);--bnx-go-pr:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .bnx{--bnx-go-bg:var(--accent);--bnx-go-fg:var(--on-accent,#fff);--bnx-go-sh:none;--bnx-go-hbg:var(--accent-2);--bnx-go-hsh:none;--bnx-go-ash:none}}
:root[data-theme="dark"] .v2 .bnx{--bnx-go-bg:var(--accent);--bnx-go-fg:var(--on-accent,#fff);--bnx-go-sh:none;--bnx-go-hbg:var(--accent-2);--bnx-go-hsh:none;--bnx-go-ash:none}
.v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]){background:var(--bnx-go-bg);color:var(--bnx-go-fg);box-shadow:var(--bnx-go-sh)}
@media (hover:hover) and (pointer:fine){.v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]):hover{background:var(--bnx-go-hbg);box-shadow:var(--bnx-go-hsh)}}
.v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]):active{box-shadow:var(--bnx-go-ash);transform:var(--bnx-go-pr)}
.v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]){background:var(--warn-bg);color:var(--warn);box-shadow:none;transform:none}
@media (hover:hover) and (pointer:fine){.v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]):hover{background:var(--warn-bg);box-shadow:inset 0 0 0 99px var(--tint-h)}}
.v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]):active{box-shadow:inset 0 0 0 99px var(--tint-h);transform:none}
/* an optional close button: in Studio at the corner, 8px from the top and right edges; in Soft and Blueprint on the first
   line of the words (the text then starts at the top), its glyph 16px in (owner, 19 Nov). The card here leaves it out */
.v2 .bnx-x{position:absolute;top:calc(var(--s-6) - 6px);right:var(--s-2);z-index:2;width:28px;height:28px;background:var(--bnx-bg)}
.v2 .bnx:has(>.bnx-x){justify-content:flex-start}
@media (hover:hover) and (pointer:fine){.v2 .bnx-x:hover{background:color-mix(in srgb,currentColor 12%,transparent)}}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink button alone presses */
.v2 .bnx :is(.pill,.ib):active,:root[data-style="studio"] .v2 .bnx .ib:active{transform:none}
/* the art: a 240 by 160 drawing at its own size in the middle of the area on the right, cropped by it and faded in from the
   text's side, so a narrower banner shows less of it rather than a smaller one */
.v2 .bnx-art{position:absolute;top:0;right:0;bottom:0;width:min(42%,300px);overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--s-8));mask-image:linear-gradient(90deg,transparent,#000 var(--s-8))}
.v2 .bnx-svg{position:absolute;left:50%;top:50%;width:240px;height:160px;margin:-80px 0 0 -120px;overflow:visible;display:block}
.v2 .bnx-svg .ln{fill:none;stroke:var(--bnx-m);stroke-width:1;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:0;animation:v2-bnxdraw 1.1s var(--ease) calc(160ms + var(--d,0) * 60ms) backwards}
.v2 .bnx-svg .ac{stroke-width:1.5}
.v2 .bnx-svg .gd{fill:none;stroke:var(--bnx-m);stroke-width:1;stroke-dasharray:2 3;opacity:.45;animation:v2-bnxfade .9s var(--ease) 60ms backwards}
/* the faces under the lines wear the fill, so what is in front hides what is behind once it is drawn */
.v2 .bnx-svg .pl{fill:var(--bnx-bg);stroke:none;animation:v2-bnxfade .6s var(--ease) .5s backwards}
.v2 .bnx-svg .lg{fill:var(--bnx-m);animation:v2-bnxfade .6s var(--ease) .7s backwards}
.v2 .bnx-svg .dt{fill:none;stroke:var(--bnx-m);stroke-width:2;stroke-linecap:round;stroke-dasharray:0 5;animation:v2-bnxfade .9s var(--ease) .4s backwards}
@keyframes v2-bnxdraw{from{stroke-dashoffset:1}}
@keyframes v2-bnxfade{from{opacity:0}}
/* under the pointer the drawing pulls apart a little: each part moves by its depth (--z), with no blur */
.v2 .bnx-svg .z{transition:transform var(--t-slow) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .bnx:hover .bnx-svg .z{transform:translate(calc(var(--z,0) * 1px),calc(var(--z,0) * -2.5px))}}
/* the card: the banner with a switcher under it that flips through the four styles, the two kept together and centred */
.v2 .dm.bnx-dm{min-height:0;gap:var(--s-5);justify-content:center}
.v2 .dm.bnx-dm>.dm-main{margin-block:0}
/* a phone, or any narrow column: the art becomes a shorter strip across the top that fades out before the text starts,
   so nothing is drawn behind the words. The drawing is shown at six tenths, so all of it fits in the strip, with its lines
   thickened to stay a hairline */
@container bnx (max-width:479px){
  /* on a phone the picture takes a taller band of its own over the text, and lines up with the text's left edge (owner, 4 Nov) */
  .v2 .bnx-art{left:0;bottom:auto;width:auto;height:128px;-webkit-mask-image:linear-gradient(#000 104px,transparent 128px);mask-image:linear-gradient(#000 104px,transparent 128px)}
  .v2 .bnx-svg{top:68px;left:var(--bnx-al,calc(var(--s-6) - 27px));margin-left:0;transform-origin:0 50%;transform:scale(.72)}
  .v2 .bnx-svg :is(.ln,.gd){stroke-width:1.6}
  .v2 .bnx-svg .ac{stroke-width:2.4}
  .v2 .bnx-svg .dt{stroke-width:3.2}
  .v2 .bnx-tx{padding:124px var(--s-6) var(--s-6)}
}
@media (prefers-reduced-motion:reduce){.v2 .bnx-svg *{animation:none!important}.v2 .bnx-svg .z{transform:none!important}}
/* Blueprint: square, and the eyebrow as a small capital label */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bnx:is(:not([data-tone]),[data-tone="accent"]){--bnx-ka:20%}
/* a Blueprint banner has an edge in its own colour, like the sheet's other boxes (owner, 10 Nov) */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bnx{--bnx-edge:color-mix(in srgb,color-mix(in srgb,var(--bnx-f,var(--bnx-m)) 70%,var(--fg)) 20%,transparent);box-shadow:inset 0 0 0 1px var(--bnx-edge)}
/* in light mode the agent's tint is a clear lime, not a cream, with an olive edge (owner, 10 Nov) */
:root:not([data-style="soft"],[data-style="studio"])[data-theme="light"] .v2 .pill.soft.ecx-ask{--ask-edge:color-mix(in srgb,color-mix(in srgb,var(--accent) 70%,var(--fg)) 20%,transparent);background:color-mix(in srgb,var(--accent) 24%,var(--surface));box-shadow:inset 0 0 0 1px var(--ask-edge)}
@media (prefers-color-scheme:light){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="dark"]) .v2 .pill.soft.ecx-ask{--ask-edge:color-mix(in srgb,color-mix(in srgb,var(--accent) 70%,var(--fg)) 20%,transparent);background:color-mix(in srgb,var(--accent) 24%,var(--surface));box-shadow:inset 0 0 0 1px var(--ask-edge)}}
@media (prefers-color-scheme:dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2 .bnx:is(:not([data-tone]),[data-tone="accent"]){--bnx-ka:9%}}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2 .bnx:is(:not([data-tone]),[data-tone="accent"]){--bnx-ka:9%}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bnx-eb{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
/* Blueprint draws its lines with square ends, so the dotted route is square dots */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bnx-svg .dt{stroke-dasharray:2 3}
@container bnx (max-width:479px){:root:not([data-style="soft"],[data-style="studio"]) .v2 .bnx-svg .dt{stroke-dasharray:3.2 4.8}}
/* Studio (owner, 17 and 18 Nov): the tones keep their colours (a tone is what the banner means), the corners are Studio's 22px,
   and the primary button on a coloured banner is white in light mode, flat with Studio's hairline edge and no press, and Studio's
   ink (white in dark mode) where the others take the accent; a neutral banner keeps the ink button */
:root[data-style="studio"] .v2 .bnx{--bnx-go-sh:var(--btn2-depth);--bnx-go-hbg:var(--surface);--bnx-go-hsh:var(--btn2-hover);--bnx-go-ash:var(--btn2-press)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .bnx{--bnx-go-bg:linear-gradient(180deg,var(--btn-1),var(--btn-2));--bnx-go-fg:var(--on-btn);--bnx-go-sh:var(--btn-depth);--bnx-go-hbg:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2));--bnx-go-hsh:var(--btn-depth);--bnx-go-ash:var(--btn-press);--bnx-go-pr:scale(.97)}}
:root[data-style="studio"][data-theme="dark"] .v2 .bnx{--bnx-go-bg:linear-gradient(180deg,var(--btn-1),var(--btn-2));--bnx-go-fg:var(--on-btn);--bnx-go-sh:var(--btn-depth);--bnx-go-hbg:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2));--bnx-go-hsh:var(--btn-depth);--bnx-go-ash:var(--btn-press);--bnx-go-pr:scale(.97)}
/* (the same buttons as in Soft, written again for Studio so they stand over Studio's own ink button rules) */
:root[data-style="studio"] .v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]){background:var(--bnx-go-bg);color:var(--bnx-go-fg);box-shadow:var(--bnx-go-sh)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]):hover{background:var(--bnx-go-hbg);box-shadow:var(--bnx-go-hsh)}}
:root[data-style="studio"] .v2 .bnx:not([data-tone="neutral"],[data-tone="warning"]) .pill.bnx-go:not([disabled]):active{box-shadow:var(--bnx-go-ash);transform:var(--bnx-go-pr)}
:root[data-style="studio"] .v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]){color:var(--warn);background:var(--warn-bg);box-shadow:none;transform:none}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]):hover{background:var(--warn-bg);box-shadow:inset 0 0 0 99px var(--tint-h)}}
:root[data-style="studio"] .v2 .bnx[data-tone="warning"] .pill.bnx-go:not([disabled]):active{box-shadow:inset 0 0 0 99px var(--tint-h);transform:none}
/* the close button at the corner, 8px from the top and right edges, a 28px circle */
:root[data-style="studio"] .v2 .bnx-x{top:var(--s-2)}
:root[data-style="studio"] .v2 .bnx:has(>.bnx-x){justify-content:center}
/* ---------- Invite ---------- */
.v2 .ivx{padding:var(--s-4);display:flex;flex-direction:column;gap:10px;max-width:420px;margin:0 auto;width:100%}
.v2 .ivx-h{display:flex;flex-direction:column;font-size:14px;margin:0 -14px 2px;padding:0 14px var(--s-3);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ivx-h b{font-weight:500}
.v2 .ivx-h .muted{font-size:12px}
.v2 .ivx-f{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:var(--field-h);padding:5px 5px 5px 6px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .ivx-f{corner-shape:squircle;border-radius:var(--r-field-sq)}}
.v2 .ivx-f:has(input:focus){box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .ivx-chips{display:contents}
.v2 .ivx-ch{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 var(--s-1) 0 var(--s-1);border-radius:var(--r-tag);background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:12.5px;animation:v2-popin .4s var(--ease) backwards}
.v2 .ivx-ch .av{width:18px;height:18px;font-size:8.5px}
.v2 .ivx-ch.bad{background:var(--bad-bg);color:var(--bad);box-shadow:none}
/* chips already on screen keep still when the row is redrawn; only a new one pops in */
.v2 .ivx-chips .ivx-ch.seen{animation:none}
.v2 .ivx-ch button{display:grid;color:var(--muted)}@media (hover:hover) and (pointer:fine){.v2 .ivx-ch button:hover{color:var(--fg)}}
/* on a chip that failed, its remove button is the chip's own red, stepping to full strength under the pointer */
.v2 .ivx-ch.bad button{color:color-mix(in srgb,var(--bad) 75%,transparent)}@media (hover:hover) and (pointer:fine){.v2 .ivx-ch.bad button:hover{color:var(--bad)}}
.v2 .ivx-f input{flex:1;min-width:120px;border:0;outline:0;background:transparent;font:inherit;font-size:13.5px;color:var(--fg);height:28px;padding:0 6px}
@supports (corner-shape:squircle){.v2 .ivx-ch{corner-shape:squircle;border-radius:var(--r-tag-sq)}}
.v2 .ivx-f input::placeholder{color:var(--muted)}
.v2 .ivx-role{display:flex;align-items:center;gap:var(--s-1);height:30px;padding:0 var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:12.5px;color:var(--fg2);margin-left:auto}
@media (hover:hover) and (pointer:fine){.v2 .ivx-role:hover{background:var(--row)}}
.v2 .ivx-sg{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}
.v2 .ivx-sg .chip .av{width:18px;height:18px;font-size:8.5px;margin-left:-6px}
.v2 .ivx-mem{display:flex;flex-direction:column}
.v2 .ivx-m{display:flex;align-items:center;gap:10px;padding:6px 2px;font-size:13px}
.v2 .ivx-m .av{width:26px;height:26px;font-size:10px}
.v2 .ivx-m .t{flex:1;display:flex;flex-direction:column}
.v2 .ivx-m .t span{font-size:11.5px;color:var(--muted)}
.v2 .ivx-m .r{font-size:12px;color:var(--muted)}
.v2 .ivx-m .r.pend{color:var(--warn)}
/* the buttons sit under a hairline, with the same room above and below it */
.v2 .ivx-ft{display:flex;justify-content:space-between;gap:6px;margin:0 -14px;padding:10px 14px 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .ivx-go[disabled]{box-shadow:none}
@media (hover:hover) and (pointer:fine){.v2 .ivx-go[disabled]:hover{box-shadow:none}}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .ivx.panel{padding:18px 20px 20px 20px}
/* ---------- Reactions ---------- */
/* an agent message in the feed: no container; with .panel it becomes a card, its content 16px from every edge. The reactions
   start where the message's words start. Hovers are a quiet fill that shows on the page in light mode too (owner, 19 Nov) */
.v2 .rxx{padding:14px 0;display:flex;flex-direction:column;gap:10px;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .rxx.panel{padding:var(--s-4)}
.v2 .rxx-m{display:flex;gap:10px}
.v2 .rxx-ic{width:30px;height:30px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;flex:none}
.v2 .rxx-b{display:flex;flex-direction:column;font-size:13.5px;line-height:1.5;min-width:0}
.v2 .rxx-n{display:flex;gap:6px;align-items:baseline;font-size:13px}
.v2 .rxx-n b{font-weight:500}
.v2 .rxx-n .muted{font-size:11.5px}
.v2 .rxx-b p{margin:2px 0 0;color:var(--fg2)}
.v2 .rxx-row{display:flex;flex-wrap:wrap;gap:5px;padding-left:40px;align-items:center}
.v2 .rxx-list{display:contents}
/* white pills with a hairline, so they stand out on a grey page. Under the pointer a quiet, deeper fill; yours takes the
   accent's tint with its count in the accent's text colour (owner, 20 Nov: hover and selected are a quiet, deeper fill, with
   no lift, no shadow and no grey ring round a coloured item) */
.v2 .rxx-r{position:relative;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;transition:background-color .2s,box-shadow .2s,transform .3s var(--ease),opacity .3s}
@media (hover:hover) and (pointer:fine){.v2 .rxx-r:hover{background:color-mix(in srgb,var(--fg) 5%,var(--surface))}}
.v2 .rxx-r.me{background:linear-gradient(var(--accent-bg),var(--accent-bg)),var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 25%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .rxx-r.me:hover{background:linear-gradient(color-mix(in srgb,var(--fg) 4%,transparent),color-mix(in srgb,var(--fg) 4%,transparent)),linear-gradient(var(--accent-bg),var(--accent-bg)),var(--surface)}}
.v2 .rxx-r .n{display:inline-grid;overflow:hidden;height:16px;font-size:12px;line-height:16px;color:var(--fg2);min-width:8px}
.v2 .rxx-r .n i{grid-area:1/1;font-style:normal;text-align:center}
.v2 .rxx-r.me .n{color:var(--accent-fg);font-weight:500}
.v2 .rxx-r .n .iu{animation:v2-rxiu .38s var(--ease) both}.v2 .rxx-r .n .ou{animation:v2-rxou .38s var(--ease) both}
.v2 .rxx-r .n .id{animation:v2-rxid .38s var(--ease) both}.v2 .rxx-r .n .od{animation:v2-rxod .38s var(--ease) both}
@keyframes v2-rxiu{from{transform:translateY(100%);opacity:0}}@keyframes v2-rxou{to{transform:translateY(-100%);opacity:0}}
@keyframes v2-rxid{from{transform:translateY(-100%);opacity:0}}@keyframes v2-rxod{to{transform:translateY(100%);opacity:0}}
.v2 .rxx-r.new{animation:v2-popin .45s var(--ease) backwards}
.v2 .rxx-r.gone{opacity:0;transform:scale(.8)}
/* the pill itself never grows or shrinks when pressed (owner, 18 Nov); the emoji gives a little jump as you react, with no
   coloured ring round it (owner, 30 Oct: no coloured glows) */
.v2 .rxx :is(.rxx-r,.rxx-add,.rxx-grid button):active{transform:none}
.v2 .rxx-r .e{display:inline-block}
.v2 .rxx-r.bump .e{animation:v2-rxp .5s var(--ease)}
@keyframes v2-rxp{0%{transform:scale(1)}35%{transform:scale(1.5) rotate(-12deg)}60%{transform:scale(.92) rotate(4deg)}100%{transform:scale(1)}}
.v2 .rxx-add{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--muted);transition:background-color .2s,color .2s}
.v2 .rxx-add[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .rxx-add:hover{background:var(--row);color:var(--fg)}}
.v2 .rxx-pk{min-width:0;padding:6px}
.v2 .rxx-grid{display:grid;grid-template-columns:repeat(6,32px);gap:2px}
/* the picker's emoji: a quiet fill under the pointer, nothing that grows */
.v2 .rxx-grid button{width:32px;height:32px;border-radius:var(--r-sm);font-size:17px;transition:background-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .rxx-grid button:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}}
/* Studio: the emoji's jump is calmer, a small lift in size with no turn */
@keyframes v2-rxpc{0%{transform:scale(1)}40%{transform:scale(1.2)}100%{transform:scale(1)}}
:root[data-style="studio"] .v2 .rxx-r.bump .e{animation:v2-rxpc var(--t-slow) var(--ease)}
:root[data-style="studio"] .v2 .rxx-r.new{animation:v2-clpiece var(--t-slow) var(--ease) backwards}
/* a reaction keeps its quiet edge and takes the one hover as a fill; the add button and the picker's emoji take it too, all
   easing over 220ms (owner, 21 Nov) */
:root[data-style="studio"] .v2 .rxx-r{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),transform var(--t) var(--ease),opacity var(--t) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rxx-r:not(.me):hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 :is(.rxx-add,.rxx-grid button){transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .rxx-grid button:hover{background:var(--row)}}
/* ---------- Profile menu ---------- */
/* an app's top bar with the account behind the avatar. The menu opens under it, lined up with its right edge, over the room
   the component keeps for it under the bar, so the bar never moves as the menu opens and shuts (owner, 20 Nov: menus open over
   the component from their trigger and never move it) and the menu is never cut off. The bar's content sits 16px in all round
   in every style: the workspace's tile on the left, the avatar's trigger on the right. The trigger's box fills on hover and
   while its menu is open, so the box itself is 16px from the bar's top, right and bottom (32px tall round the 26px avatar) */
.v2 .pfm{position:relative;width:100%;max-width:400px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.v2 .pfm-bar{display:flex;align-items:center;gap:12px;min-height:64px;padding:var(--s-4);border-radius:var(--r-card)}
/* a workspace's tile is its identity mark: in Soft and Blueprint a vivid fill with its own ink, the avatars' colours (white on
   blue, violet, red and pink; 4.5:1 and APCA Lc 60); Studio keeps its marks monochrome */
.v2 .pfm-lg{--tb:var(--chip);--tc:var(--fg2);width:28px;height:28px;border-radius:var(--r-sm);display:grid;place-items:center;flex:none;font-size:12px;font-weight:500;background:var(--tb);color:var(--tc);transition:background var(--t) var(--ease),color var(--t) var(--ease)}
.v2 .pfm-lg[data-t="pb"]{--tb:var(--av-b);--tc:var(--av-b-ink)}.v2 .pfm-lg[data-t="pl"]{--tb:var(--av-l);--tc:var(--av-l-ink)}.v2 .pfm-lg[data-t="pr"]{--tb:var(--av-r);--tc:var(--av-r-ink)}.v2 .pfm-lg[data-t="pk"]{--tb:var(--av-k);--tc:var(--av-k-ink)}
.v2 .pfm-lg[data-t="pm"]{--tb:var(--av-m);--tc:var(--av-m-ink)}.v2 .pfm-lg[data-t="pt"]{--tb:var(--av-t);--tc:var(--av-t-ink)}.v2 .pfm-lg[data-t="py"]{--tb:var(--av-y);--tc:var(--av-y-ink)}.v2 .pfm-lg[data-t="pp"]{--tb:var(--av-p);--tc:var(--av-p-ink)}
.v2 .pfm-ws{flex:1;min-width:0;display:flex;flex-direction:column}
.v2 .pfm-wn{font-size:13.5px;line-height:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.v2 .pfm-ws .muted{font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pfm-tr{display:flex;align-items:center;gap:4px;height:32px;padding:0 6px 0 3px;border-radius:var(--r-pill);color:var(--muted);flex:none;transition:background-color var(--t-fast) var(--ease)}
.v2 .pfm-tr[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .pfm-tr:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.v2 .pfm-tr .av,.v2 .pfm-me .av{background:var(--av-l);color:var(--av-l-ink)}
.v2 .pfm-tr .av{width:26px;height:26px;font-size:11px}
.v2 .pfm-tr>.i{transition:transform var(--t) var(--ease)}
.v2 .pfm-tr[aria-expanded="true"]>.i{transform:rotate(180deg)}
.v2 .pfm-in{flex:none;margin-right:4px}
/* nothing in it grows or shrinks when it is pressed (owner, 18 Nov); Studio's ink primary alone presses. The same goes for the
   other menus of this group (Context switcher, Filter menu, Context menu) and Ticket list */
.v2 .pfm :is(.pill,.ib):active,:root[data-style="studio"] .v2 :is(.pfm,.csw,.flm,.cxm,.tkx) .ib:active{transform:none}
/* the rows of these menus hover, and show the item picked, with a quiet fill that shows in light mode too (the owner's batch 2
   notes: a hover fill shows on whatever it sits on; --row barely shows on a white menu) */
.v2 :is(.pfm-pop,.flm-pop,.cxm-pop,.cxm-pop2) .mi.hl{background:color-mix(in srgb,var(--fg) 5%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 :is(.pfm-pop,.flm-pop,.cxm-pop,.cxm-pop2) .mi:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
/* the picked workspace shows by its tick, not a fill, so it never reads as a second hovered row (owner, 30 Nov) */
.v2 .pfm-pop{width:256px}
.v2 .pfm-me{display:flex;align-items:center;gap:10px;padding:var(--s-2) var(--s-2) 6px}
.v2 .pfm-me .av{width:32px;height:32px;font-size:12px}
.v2 .pfm-me .t{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.v2 .pfm-me b{font-size:13.5px;font-weight:500}
.v2 .pfm-me .muted{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pfm-pop .mi .pfm-lg{width:24px;height:24px;font-size:11px;border-radius:calc(7px * var(--rk-m,var(--rk)))}
.v2 .pfm-pop .mi .d{white-space:nowrap}
/* the theme row (owner, 28 Nov): Theme, and a small three-way choice in the row on the segmented control's grey track with its
   sliding knob. The choices are icons (owner, 30 Nov): a monitor for System, a sun for Light, the moon for Dark, each named by
   its aria-label and the core tooltip, in square-ish segments of one width. The row itself has no hover: its three choices
   are what you press */
.v2 .pfm-th{display:flex;align-items:center;gap:10px;padding:2px 2px 2px var(--s-2);font-size:13px;color:var(--fg)}
.v2 .pfm-th>.i{color:var(--fg2)}
.v2 .pfm-ths{margin-left:auto}
.v2 .pfm-ths button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;padding:0}
.v2 .pfm-ths button[aria-checked="true"]{color:var(--fg)}
.v2 .pfm-ky .kbd{margin-left:auto}
/* the shortcuts: a plain list of keys and what they do, 16px in from every edge; Close sits on the title's line with its glyph
   16px in */
.v2 .pfm-keys{padding:var(--s-4);border-radius:var(--r-card)}
.v2 .pfm-kh{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);height:20px;margin-bottom:var(--s-3);font-size:13.5px}
.v2 .pfm-kh b{font-weight:500}
.v2 .pfm-kh .ib{width:26px;height:26px;margin:-3px -7px -3px 0}
.v2 .pfm-kl{margin:0;display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .pfm-kl>div{display:flex;align-items:center;gap:var(--s-3);font-size:12.5px}
.v2 .pfm-kl dt{display:flex;gap:var(--s-1);width:88px;flex:none}
.v2 .pfm-kl dd{margin:0;color:var(--fg2);min-width:0}
/* what changed (a switch, the theme, signing out) is said to screen readers only: the bar and the menu already show it, so no
   line of text repeats it under the bar (owner, 18 Nov) */
.v2 .pfm-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Studio: the bar is a card with 22px corners; the tiles are monochrome; the menu takes the card's corners with its rows
   concentric inside them; the Theme row's choice is the segmented track; the shortcuts card has an off-white head strip with Close a 28px
   circle 16px from its top and right edges (owner, 23 Nov) */
:root[data-style="studio"] .v2 .pfm-lg[data-t]{background:var(--chip);color:var(--fg2);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .pfm-pop{padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .pfm-pop .mi{border-radius:calc(var(--r-card) - 6px)}
:root[data-style="studio"] .v2 .pfm-ths button[aria-checked="true"]{color:var(--fg)}
:root[data-style="studio"] .v2 .pfm-keys{padding:0 16px 16px}
:root[data-style="studio"] .v2 .pfm-kh{height:auto;margin:0 -16px 16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0;line-height:28px}
:root[data-style="studio"] .v2 .pfm-kh .ib{width:28px;height:28px;margin:0}
/* ---------- Context switcher ---------- */
/* where you are in an app, as a breadcrumb: organisation, project and environment. Each part opens its own switcher, with a
   search, the list (the current one ticked, each with its badge) and Create new at the bottom. When the bar runs short the
   names shorten with an ellipsis; when it is phone narrow only the last part shows, and a … menu holds the others */
.v2 .csw{position:relative;width:100%;max-width:640px;margin:0 auto;container:csw/inline-size}
/* the bar's words (and the organisation's tile) sit 16px in from its ends and edges in every style, each part's hover box
   reaching out round them to 8px; the switchers open under their part over the room the component keeps for them, so the bar
   never moves (owner, 20 Nov) */
.v2 .csw-bar{display:flex;align-items:center;width:fit-content;max-width:100%;margin:0 auto;min-height:52px;padding:var(--s-2);border-radius:var(--r-card)}
.v2 .csw-path{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-1);margin:0;padding:0;list-style:none}
.v2 .csw-path>li{display:flex;align-items:center;min-width:0}
/* short of room, each part takes an even share of the bar and never more than it needs, so a short name keeps its length
   and the long ones shorten alike; the last part, where you are now, gets a larger share */
.v2 .csw-seg{flex:1 1 0;max-width:max-content}.v2 .csw-seg:last-child{flex-grow:1.5}
.v2 .csw-sep{flex:none;color:var(--muted)}
.v2 .csw-path>.csw-mi,.v2 .csw-path>.csw-sep.m{display:none}
.v2 .csw-tr{display:flex;align-items:center;gap:var(--s-2);min-width:0;max-width:100%;height:36px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:13.5px;font-weight:500;color:var(--fg);white-space:nowrap;transition:background var(--t-fast)}
.v2 .csw-tr[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .csw-tr:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.v2 .csw-tr>.i{color:var(--muted);flex:none}
.v2 .csw-nm{min-width:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .csw-bh{display:flex;flex:none}
.v2 .csw-bh:empty{display:none}
/* an organisation's tile is its identity mark: in Soft and Blueprint its initial on a vivid fill, the avatars' colours with their
   own ink (white on blue, violet, red and pink; 4.5:1 and APCA Lc 60); Studio keeps its marks monochrome */
.v2 .csw-lg{--tb:var(--chip);--tc:var(--fg2);width:22px;height:22px;border-radius:var(--r-xs);display:grid;place-items:center;flex:none;background:var(--tb);color:var(--tc);font-size:11px;font-weight:500}
.v2 .csw-lg[data-t="pb"]{--tb:var(--av-b);--tc:var(--av-b-ink)}.v2 .csw-lg[data-t="pl"]{--tb:var(--av-l);--tc:var(--av-l-ink)}.v2 .csw-lg[data-t="pm"]{--tb:var(--av-m);--tc:var(--av-m-ink)}.v2 .csw-lg[data-t="pp"]{--tb:var(--av-p);--tc:var(--av-p-ink)}
.v2 .csw-lg[data-t="pr"]{--tb:var(--av-r);--tc:var(--av-r-ink)}.v2 .csw-lg[data-t="py"]{--tb:var(--av-y);--tc:var(--av-y-ink)}.v2 .csw-lg[data-t="pk"]{--tb:var(--av-k);--tc:var(--av-k-ink)}.v2 .csw-lg[data-t="pt"]{--tb:var(--av-t);--tc:var(--av-t-ink)}
/* the badges are Badge's small size, in the same tones */
.v2 .csw-bd{--cb-bg:var(--chip);--cb-fg:var(--fg2);flex:none;display:inline-flex;align-items:center;height:20px;padding:0 var(--s-2);border-radius:var(--r-pill);background:var(--cb-bg);color:var(--cb-fg);font-size:11.5px;font-weight:500;line-height:1;white-space:nowrap}
.v2 .csw-bd[data-tone="accent"]{--cb-bg:var(--accent-bg);--cb-fg:var(--accent-fg)}
.v2 .csw-bd[data-tone="success"]{--cb-bg:var(--ok-bg);--cb-fg:var(--ok)}.v2 .csw-bd[data-tone="warning"]{--cb-bg:var(--warn-bg);--cb-fg:var(--warn)}.v2 .csw-bd[data-tone="danger"]{--cb-bg:var(--bad-bg);--cb-fg:var(--bad)}
.v2 .csw-bd[data-tone="blue"]{--cb-bg:var(--pb-bg);--cb-fg:var(--pb)}.v2 .csw-bd[data-tone="violet"]{--cb-bg:var(--pl-bg);--cb-fg:var(--pl)}.v2 .csw-bd[data-tone="green"]{--cb-bg:var(--pm-bg);--cb-fg:var(--pm)}.v2 .csw-bd[data-tone="orange"]{--cb-bg:var(--pp-bg);--cb-fg:var(--pp)}
.v2 .csw-bd[data-tone="red"]{--cb-bg:var(--pr-bg);--cb-fg:var(--pr)}.v2 .csw-bd[data-tone="yellow"]{--cb-bg:var(--py-bg);--cb-fg:var(--py)}.v2 .csw-bd[data-tone="pink"]{--cb-bg:var(--pk-bg);--cb-fg:var(--pk)}.v2 .csw-bd[data-tone="teal"]{--cb-bg:var(--pt-bg);--cb-fg:var(--pt)}
.v2 .csw-more{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--r-sm);color:var(--fg2);flex:none;transition:background var(--t-fast)}
.v2 .csw-more[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .csw-more:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
/* the switcher: under the part it belongs to, never past the bar's ends */
.v2 .csw-pop{width:288px;max-width:100%}
.v2 .csw-sf{position:relative;display:flex;align-items:center;margin-bottom:var(--s-1)}
.v2 .csw-sf>.i{position:absolute;left:8px;color:var(--muted);pointer-events:none}
.v2 .csw-q{width:100%;height:32px;border:0;outline:0;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast);padding:0 var(--s-2) 0 28px;font:inherit;font-size:13px;color:var(--fg)}
.v2 .csw-q::placeholder{color:var(--muted)}
.v2 .csw-q:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .csw-q{corner-shape:squircle;border-radius:var(--r-field-sq)}}
/* tall enough for the demo's longest list (five projects and Create new) to show whole; a longer one scrolls */
.v2 .csw-list{max-height:264px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.v2 .csw-o{flex:none;min-height:34px;cursor:pointer}
/* the row under the pointer or the arrow keys, the current one, and a hovered row in the … menu get a soft grey fill behind
   them, with no edge and no tick */
@media (hover:hover) and (pointer:fine){.v2 .csw-pop .csw-o:is(:hover,.hl,[aria-selected="true"]),.v2 .csw-mpop .mi:is(:hover,.hl){background:color-mix(in srgb,var(--fg) 5%,transparent);box-shadow:none}}
.v2 .csw-o .csw-on{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .csw-o .csw-lg{width:20px;height:20px;font-size:10.5px}
.v2 .csw-o .ck{margin-left:0;flex:none}
.v2 .csw-o .ck{display:none}
.v2 .csw-o[aria-selected="true"] .csw-on{font-weight:500}
/* a hovered row's tint lifts the dark list a step, so a badge on it leans a little toward the text colour and keeps APCA 60 */
.v2 .csw-o:is(.hl,[aria-selected="true"]) .csw-bd{color:color-mix(in srgb,var(--cb-fg) 85%,var(--fg))}
@media (hover:hover) and (pointer:fine){.v2 .csw-o:hover .csw-bd,.v2 .csw-tr:hover .csw-bd{color:color-mix(in srgb,var(--cb-fg) 85%,var(--fg))}}
/* on a highlighted row a tinted chip takes a fuller tint, and a grey one turns white with a quiet edge, so neither fades into
   the row behind it */
@media (hover:hover) and (pointer:fine){.v2 .csw-o:is(:hover,.hl,[aria-selected="true"]) .csw-bd,.v2 .csw-tr:hover .csw-bd,.v2 .mi:is(:hover,.hl) .bdg{--cb-bg:color-mix(in srgb,var(--cb-fg) 16%,var(--surface));--bdg-bg:color-mix(in srgb,var(--bdg-fg) 16%,var(--surface))}}
@media (hover:hover) and (pointer:fine){.v2 .csw-o:is(:hover,.hl,[aria-selected="true"]) .csw-bd:is(:not([data-tone]),[data-tone="neutral"]),.v2 .csw-tr:hover .csw-bd:is(:not([data-tone]),[data-tone="neutral"]),.v2 .mi:is(:hover,.hl) .bdg:is(:not([data-tone]),[data-tone="neutral"]){--cb-bg:var(--surface);--bdg-bg:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}}
.v2 .csw-new,.v2 .csw-new>.i{color:var(--fg2)}
.v2 .csw-none{padding:var(--s-2);font-size:12.5px;color:var(--muted)}
.v2 .csw-mpop{width:248px}
.v2 .csw-mpop .mi>.t{flex:1;min-width:0}
.v2 .csw-mpop .mi>.t>b{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .csw-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* short of room, the organisation's tile goes first, so its name keeps more of its length */
@container csw (max-width:560px){.v2 .csw-tr>.csw-lg{display:none}}
/* phone narrow: the last part, and a … menu for the parts before it */
@container csw (max-width:440px){
  .v2 .csw-path>.csw-seg:not(:last-child),.v2 .csw-path>.csw-sep:not(.m){display:none}
  .v2 .csw-path>.csw-mi,.v2 .csw-path>.csw-sep.m{display:flex}
  .v2 .csw-nm{max-width:none}
}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .csw-bd{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cb-fg) 14%,transparent);font-size:10.5px;letter-spacing:.03em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .csw-bd[data-tone="accent"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 50%,transparent)}
/* Studio: the bar is a card with 22px corners, its words 16px in; the tiles are monochrome; the switchers take the card's corners
   with their rows concentric inside them */
/* Studio (owner, 21 Nov): the bar's hairline at half strength; a part under the pointer, or open, is a pill inside the pill,
   in Studio's one hover fill, easing in and out; the menu's rows take the same fill, and the picked one a step stronger */
:root[data-style="studio"] .v2 .csw-bar{box-shadow:0 0 0 1px rgba(0,0,0,.035),0 1px 1px rgba(0,0,0,.04),0 2px 10px -4px rgba(0,0,0,.12)}
:root[data-style="studio"][data-theme="dark"] .v2 .csw-bar{box-shadow:0 0 0 1px rgba(255,255,255,.05),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .csw-bar{box-shadow:0 0 0 1px rgba(255,255,255,.05),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6)}}
:root[data-style="studio"] .v2 :is(.csw-tr,.csw-more){border-radius:var(--r-pill);transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.csw-tr,.csw-more):hover{background:var(--row)}}
:root[data-style="studio"] .v2 :is(.csw-tr,.csw-more)[aria-expanded="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .csw-o{border-radius:10px;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .csw-pop .csw-o:is(:hover,.hl),:root[data-style="studio"] .v2 .csw-mpop .mi:is(:hover,.hl){background:var(--row)}}
:root[data-style="studio"] .v2 .csw-pop .csw-o[aria-selected="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 .csw-lg[data-t]{background:var(--chip);color:var(--fg2);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 :is(.csw-pop,.csw-mpop){padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 :is(.csw-pop,.csw-mpop) .mi{border-radius:calc(var(--r-card) - 6px)}
/* ---------- Filter menu ---------- */
/* a list's filter bar: a Filter button that opens a two-step menu (a field, then its value), the filters as chips, and
   the issues that match under them. Its content sits 16px in from every edge in every style; each issue's row has its hover
   fill reaching out 8px round its dot and words, with the card's rounding. The menu opens over the list, under the button,
   and never moves the card; the list grows and shrinks with what matches (grow()), keeping no room for rows to come */
.v2 .flm{width:100%;max-width:440px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .flm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.v2 .flm-chips{display:contents}
.v2 .flm-tr{padding:0 11px 0 9px}
.v2 .flm-tr .i{color:var(--fg2)}
.v2 .flm-tr[aria-expanded="true"]{background:var(--chip)}
.v2 .flm :is(.pill,.ib):active{transform:none}
.v2 .flm-ch{display:inline-flex;align-items:center;height:28px;padding-left:9px;border-radius:calc(9px * var(--rk-m,var(--rk)));background:var(--chip);font-size:12.5px;white-space:nowrap;max-width:100%;animation:v2-popin .4s var(--ease) backwards}
.v2 .flm-ch.seen{animation:none}
.v2 .flm-ch .k{color:var(--fg2)}
.v2 .flm-ch .op{height:22px;padding:0 5px;margin:0 1px;border-radius:calc(6px * var(--rk-s,var(--rk)));color:var(--muted);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .flm-ch .op:hover{background:var(--row);color:var(--fg)}}
.v2 .flm-ch .v{font-weight:500;overflow:hidden;text-overflow:ellipsis}
.v2 .flm-ch .x{width:26px;height:28px;display:grid;place-items:center;flex:none;color:var(--muted);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .flm-ch .x:hover{background:var(--row);color:var(--fg)}}
.v2 .flm-ch.gone{animation:v2-leave .3s var(--ease) both}
.v2 .flm-pop{width:232px}
.v2 .flm-lv[hidden]{display:none}
.v2 .flm-pop .mi .r{margin-left:auto}
.v2 .flm-pop .mi .ck{margin-left:0}
.v2 .flm-pop .mi .r+.ck,.v2 .flm-pop .mi .r+.i{margin-left:0}
.v2 .flm-pop .mi>.i:last-child{color:var(--muted)}
.v2 .flm-pop .mi .av{width:20px;height:20px;font-size:9px}
.v2 .flm-pop .mi .dot{width:8px;height:8px;margin:0 3px}
.v2 .flm-bk{color:var(--fg2)}
/* the count and Clear all: the count on the content's left edge, Clear all's words ending on its right edge with its hover box
   reaching out round them */
/* the count and Clear all's words sit 16px from the hairline and from the card's bottom edge: the row keeps Clear all's 28px
   height whether it shows or not, its words 4px inside it, so the row reaches 4px into the card's bottom padding (Studio: as was) */
.v2 .flm-sum{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:calc(28px + var(--s-3) + 1px);margin:0 calc(-1 * var(--s-4)) calc(-1 * var(--s-1));padding:var(--s-3) var(--s-4) 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px;color:var(--fg2)}
:root[data-style="studio"] .v2 .flm-sum{min-height:28px;margin-bottom:0}
.v2 .flm-clr{margin-right:-11px}
/* text buttons here (Clear all, and Ticket list's Edit and Context menu's Undo) hover with a quiet fill that shows on a white card */
@media (hover:hover) and (pointer:fine){.v2 :is(.flm,.tkx,.cxm) .pill.ghost:hover{background:var(--row)}}
.v2 .flm-list{display:flex;flex-direction:column;margin:-4px -8px -8px}
.v2 .flm-r{display:grid;grid-template-columns:auto minmax(0,1fr) auto 44px;align-items:center;gap:10px;padding:var(--s-2);border-radius:calc(var(--r-card) - 8px);font-size:13px;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .flm-r:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.v2 .flm-r .dot{width:8px;height:8px}
.v2 .flm-r .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .flm-r .av{width:20px;height:20px;font-size:9px}
.v2 .flm-r .a{font-size:12px;color:var(--muted);text-align:right}
.v2 .flm-more{padding:6px var(--s-2) var(--s-2);font-size:12.5px;color:var(--muted)}
/* nothing matches: the empty state, a small sketch of a list on a card, a title and one muted line */
.v2 .flm-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--s-4) var(--s-2) var(--s-3);text-align:center}
.v2 .flm-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .flm-em>span:not(.flm-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .flm-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 12px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .flm-em-art::before{content:"";position:absolute;left:14px;top:16px;width:8px;height:8px;border-radius:50%;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 55%,var(--surface)))}
.v2 .flm-em-art::after{content:"";position:absolute;left:32px;top:17px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 55%,var(--surface)))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .flm-em-art{box-shadow:0 0 0 1px var(--line)}
.v2 .flm .dot[data-s="open"]{color:var(--flm-open)}.v2 .flm .dot[data-s="prog"]{color:var(--flm-prog)}.v2 .flm .dot[data-s="done"]{color:var(--flm-done)}
/* the status dots are the vivid marks, 3:1 on the surface in every style and theme: open is the accent's mark, in progress the
   warning's and done the green's. Blueprint's accent mark is the same green as done, so its open dot takes the chart palette's
   blue (--c3) instead */
.v2 .flm{--flm-open:var(--accent-mark);--flm-prog:var(--warn-mark);--flm-done:var(--ok-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .flm{--flm-open:var(--c3)}
.v2 .flm .av[data-o="MK"]{background:var(--av-l);color:var(--av-l-ink)}.v2 .flm .av[data-o="LP"]{background:var(--av-b);color:var(--av-b-ink)}.v2 .flm .av[data-o="AR"]{background:var(--av-m);color:var(--av-m-ink)}.v2 .flm .av[data-o="SC"]{background:var(--av-p);color:var(--av-p-ink)}
/* Studio: 16px in all round with 22px corners; the Filter button is the flat secondary, a step deeper while its menu is open;
   the chips are pills; the menu takes the card's corners with its rows concentric inside them */
:root[data-style="studio"] .v2 .flm-tr[aria-expanded="true"]{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-press)}
:root[data-style="studio"] .v2 .flm-ch{border-radius:var(--r-pill);padding-left:12px}
:root[data-style="studio"] .v2 .flm-ch .op{border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .flm-ch .x{width:28px;border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .flm-pop{padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .flm-pop .mi{border-radius:calc(var(--r-card) - 6px)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .flm-r:hover{background:var(--row)}}
/* ---------- Number field ---------- */
/* a number you can type or step: minus and plus at the ends of the field, a unit beside the value, and a hint under it that
   gives the range, or says what changed when a typed value was rounded to the step or kept inside the range */
.v2 .nmf{width:100%;max-width:320px;margin:0 auto;padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .nmf-h{display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .nmf-h b{font-weight:500}
.v2 .nmf-h .muted{font-size:12px}
.v2 .nmf-f{display:flex;flex-direction:column;gap:6px}
.v2 .nmf-l{font-size:13px;color:var(--fg2);cursor:default;align-self:flex-start}
.v2 .nmf-in{display:flex;align-items:center;gap:2px;height:36px;padding:0 3px;border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
.v2 .nmf-in:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .nmf-in:has(input[aria-invalid]){box-shadow:inset 0 0 0 1px var(--bad)}
.v2 .nmf-in .ib{width:28px;height:28px;flex:none;border-radius:calc(5px * var(--rk-s,var(--rk)));touch-action:manipulation}
/* the steppers carry the accent (owner, 4 Nov: the field read empty), as small squircles, not circles */
.v2 .nmf-in .ib:not(:disabled){background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
@media (hover:hover) and (pointer:fine){.v2 .nmf-in .ib:not(:disabled):hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}}
.v2 .nmf-in .ib:disabled{color:var(--dis);background:none;cursor:not-allowed}
.v2 .nmf-v{flex:1;min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:center;gap:3px;cursor:text}
.v2 .nmf-v input{field-sizing:content;min-width:1ch;max-width:100%;height:100%;border:0;outline:0;padding:0;background:none;font:inherit;font-size:14px;color:var(--fg);text-align:center}
@supports not (field-sizing:content){.v2 .nmf-v input{width:7ch}}
.v2 .nmf-u{flex:none;font-size:13px;color:var(--muted)}
.v2 .nmf-in.bump input{animation:v2-nmfbump .22s var(--ease)}
@keyframes v2-nmfbump{40%{transform:translateY(-1px)}}
.v2 .nmf-hint{font-size:12px;line-height:1.4}
.v2 .nmf-f.noted .nmf-hint{color:var(--fg2)}
.v2 .nmf-sum{margin:0;padding-top:var(--s-3);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;line-height:1.5}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .nmf.panel{padding:19px 17px 18px 20px}
/* ---------- Ticket list ---------- */
/* support tickets the agent has triaged. Its content sits 16px in from every edge in every style: the title and the switch in
   the head, then the tickets, each a row whose hover fill reaches out 8px round its dot and words with the card's rounding
   (never a sharp band across the card). An open ticket shows the question and the suggested reply on the title's column,
   with no band behind it; the reply is a field you can edit, and Send and solve ends on the content's right edge. The card
   grows and shrinks with what it shows (grow()), so it keeps no room for a ticket to open */
.v2 .tkx{padding:var(--s-4) var(--s-4) var(--s-2);display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .tkx-h{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:28px;font-size:14px}
.v2 .tkx-h b{font-weight:500}
.v2 .tkx-sg button{font-size:12px;height:24px;padding:0 10px}
.v2 .tkx-list{display:flex;flex-direction:column;gap:2px;margin:0 calc(-1 * var(--s-2))}
.v2 .tkx :is(.pill,.ib):active{transform:none}
.v2 .tkx-r{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:var(--s-2);border-radius:calc(var(--r-card) - 8px);text-align:left;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .tkx-r:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.v2 .tkx-r .pr{display:flex;align-items:center;justify-content:center;width:18px;height:18px}
.v2 .tkx-r .pr .dot{width:8px;height:8px}
.v2 .tkx-r .t{display:flex;flex-direction:column;min-width:0;font-size:13px}
.v2 .tkx-r .t b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tkx-r .t span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .tkx-r .m{display:flex;align-items:center;gap:6px}
.v2 .tkx-r .m .av{width:20px;height:20px;font-size:9px}
.v2 .tkx-r .w{font-size:11.5px;color:var(--muted)}
/* a ticket's priority is a vivid mark, 3:1 on the surface: urgent red, high orange, normal the accent's mark, low a grey that
   holds 3:1 too */
.v2 .tkx-r .dot[data-p="urgent"]{color:var(--bad-mark)}.v2 .tkx-r .dot[data-p="high"]{color:var(--warn-mark)}.v2 .tkx-r .dot[data-p="normal"]{color:var(--accent-mark,var(--accent))}.v2 .tkx-r .dot[data-p="low"]{color:color-mix(in srgb,var(--muted) 80%,var(--surface))}
.v2 .tkx-d{padding:4px var(--s-2) var(--s-3) 36px;display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .tkx-q{font-size:12.5px;line-height:1.5;color:var(--fg2)}
/* the suggested reply is a field: a quiet grey edge at rest, one step stronger while you edit it, and nothing else changes */
.v2 .tkx-s{padding:10px var(--s-3) var(--s-3);border-radius:var(--r-box);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);font-size:12.5px;line-height:1.5;color:var(--fg);transition:box-shadow var(--t-fast)}
.v2 .tkx-s:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
@supports (corner-shape:squircle){.v2 .tkx-s{corner-shape:squircle;border-radius:var(--r-box-sq)}}
.v2 .tkx-s .lb{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--accent-fg,var(--accent));font-weight:500;margin-bottom:var(--s-1)}
/* the reply reads as text you can edit: the text cursor over it, and an accent caret once it has focus */
.v2 .tkx-s [contenteditable]{outline:0;cursor:text;caret-color:var(--accent-fg,var(--accent))}
.v2 .tkx-a{display:flex;gap:var(--s-2);justify-content:flex-end}
/* nothing left in a view: the empty state, a small sketch of a list on a card, a title and one muted line */
.v2 .tkx-em{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--s-4) var(--s-2) var(--s-5);text-align:center}
.v2 .tkx-em b{font-size:13.5px;line-height:18px;font-weight:500;color:var(--fg)}
.v2 .tkx-em>span:not(.tkx-em-art){max-width:290px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .tkx-em-art{position:relative;display:block;width:136px;height:70px;margin:0 0 12px;border-radius:calc(10px * var(--rk-l,var(--rk)));background:var(--surface);box-shadow:var(--shadow)}
.v2 .tkx-em-art::before{content:"";position:absolute;left:14px;top:16px;width:8px;height:8px;border-radius:50%;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 55%,var(--surface)))}
.v2 .tkx-em-art::after{content:"";position:absolute;left:32px;top:17px;width:58px;height:6px;border-radius:3px;background:var(--ghost,var(--chip));box-shadow:0 16px 0 var(--ghost,var(--chip)),0 32px 0 var(--ghost-2,color-mix(in srgb,var(--chip) 55%,var(--surface)))}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tkx-em-art{box-shadow:0 0 0 1px var(--line)}
.v2 .tkx-t.leave{animation:v2-leave .35s var(--ease) both}
/* Studio: the head is an off-white strip with the switch 16px from the card's top and right edges and the
   strip's hairline (owner, 23 Nov) and the title 16px in; the reply's label is grey like the rest of the chrome, and Edit is the flat
   secondary beside the ink Send and solve */
:root[data-style="studio"] .v2 .tkx{padding-top:0}
:root[data-style="studio"] .v2 .tkx-h{margin:0 -16px;padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0;line-height:28px}
:root[data-style="studio"] .v2 .tkx-s .lb{color:var(--fg2)}
:root[data-style="studio"] .v2 .tkx-a .pill.ghost{color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .tkx-a .pill.ghost:hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 .tkx-a .pill.ghost:active{box-shadow:var(--btn2-press)}
/* ---------- Kanban ---------- */
/* a sprint board: a header with the project, its people (a facepile that filters by person), a search and a Board / List
   switch; filter chips for assignee, label and priority; then the columns. The board never scrolls sideways: under 640px it
   shows one column at a time, picked with tabs, so the columns always fit */
.v2 .kbx{width:100%;position:relative;container:kbx/inline-size;display:flex;flex-direction:column;gap:10px}
.v2 .kbx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .kbx-sp{flex:1}
.v2 .kbx-hd{display:flex;align-items:center;gap:var(--s-3);min-height:32px}
.v2 .kbx-ti{display:flex;align-items:baseline;gap:var(--s-2);min-width:0}
.v2 .kbx-ti b{flex:none;font-size:14px;font-weight:500;white-space:nowrap}
/* the summary gives way first when the header is short of room */
.v2 .kbx-ti span{min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the people on the board: pressing a face shows only their cards, the same filter as the Assignee chip */
.v2 .kbx-fp{display:flex;flex:none;align-items:center;padding-left:5px}
.v2 .kbx-fp button{position:relative;display:grid;margin-left:-4px;border-radius:50%;transition:opacity .2s,filter .2s,transform .3s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-fp button:hover{transform:translateY(-1px)}}
.v2 .kbx-fp .av{width:24px;height:24px;font-size:10px;box-shadow:0 0 0 2px var(--stage)}
.v2 .kbx-fp button[aria-pressed="true"] .av{box-shadow:0 0 0 2px var(--stage),0 0 0 3.5px var(--line-strong)}
.v2 .kbx-fp button[aria-pressed="true"]{z-index:1}
.v2 .kbx-fp.some button[aria-pressed="false"]{opacity:.45;filter:grayscale(1)}
.v2 .kbx-fp button:focus-visible{outline-offset:3px;border-radius:50%}
.v2 .kbx-q{display:flex;align-items:center;gap:6px;flex:0 1 176px;min-width:136px;height:30px;padding:0 var(--s-1) 0 var(--s-2);border-radius:var(--r-field);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);color:var(--muted);transition:box-shadow var(--t-fast)}
@supports (corner-shape:squircle){.v2 .kbx-q{border-radius:var(--r-field-sq)}}
.v2 .kbx-q:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .kbx-q input{flex:1;min-width:0;height:100%;border:0;outline:0;padding:0;background:none;font:inherit;font-size:13px;color:var(--fg)}
.v2 .kbx-q input::placeholder{color:var(--muted)}
.v2 .kbx-q input::-webkit-search-cancel-button{appearance:none}
.v2 .kbx-qx{width:22px;height:22px;flex:none;color:var(--muted)}
.v2 .kbx-qx[hidden]{display:none}
.v2 .kbx-vw{flex:none}
.v2 .kbx-vw button{display:inline-flex;align-items:center;gap:5px}
.v2 .kbx-vw .i{color:var(--muted)}
.v2 .kbx-vw button[aria-pressed="true"] .i{color:var(--fg2)}
/* the filter chips: grey at rest, a white tile with the dimmed edge once they filter, saying what they filter by */
.v2 .kbx-fl{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:28px}
.v2 .kbx-f .v{color:var(--fg);font-weight:500}
.v2 .kbx-f .i:last-child{color:var(--muted);margin-right:-3px}
.v2 .kbx-f[aria-expanded="true"]{background:var(--hover);color:var(--fg)}
.v2 .kbx-f.on[aria-expanded="true"]{background:var(--surface)}
.v2 .kbx-clr[hidden]{display:none}
.v2 .kbx-cnt{font-size:12.5px;color:var(--muted);white-space:nowrap}
/* the columns, and the room they keep: each has space for four cards, the most one holds as the agent fills Done, so the
   board keeps one height while it plays, as you filter, and as a column folds away */
.v2 .kbx-bd{position:relative}
.v2 .kbx-cols{display:grid;grid-template-columns:var(--kbx-gt,repeat(3,minmax(0,1fr)));gap:var(--s-3);transition:grid-template-columns var(--t) var(--ease)}
.v2 .kbx-c{display:flex;flex-direction:column;gap:var(--s-2);min-width:0;padding:var(--s-1) var(--s-2) var(--s-2);border-radius:calc(14px * var(--rk-l,var(--rk)));background:color-mix(in srgb,var(--fg) 3.5%,transparent);transition:background .25s,box-shadow .25s;min-height:600px}
.v2 .kbx-c.over{background:var(--sel);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent-mark,var(--accent)) 40%,transparent)}
.v2 .kbx-ch{display:flex;align-items:center;gap:6px;height:36px;padding:0;font-size:13px}
.v2 .kbx-ch b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the count is a grey chip; with a limit it says how full the column is, and turns into a warning once it is over */
.v2 .kbx-ch .n{display:inline-flex;white-space:nowrap}
.v2 .kbx-ch .tag{height:20px;padding:0 6px;gap:3px;cursor:default}
.v2 .kbx-ch .ib{width:24px;height:24px;flex:none;color:var(--muted)}
.v2 .kbx-ch .ib[aria-expanded="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-ch .ib:hover{color:var(--fg)}}
.v2 .kbx-tg .i{transition:transform var(--t) var(--ease)}
.v2 .kbx-c.shut .kbx-tg .i{transform:rotate(-90deg)}
.v2 .kbx-list{display:flex;flex-direction:column;gap:6px;flex:1}
.v2 .kbx-none{padding:var(--s-4) var(--s-2);font-size:12px;color:var(--muted);text-align:center}
/* a folded column is a narrow strip with its name running down it; pressing it opens it again, and a card dropped on it
   goes to its end */
.v2 .kbx-c.shut{align-items:center;padding:6px 0;cursor:pointer}
@media (hover:hover) and (pointer:fine){.v2 .kbx-c.shut:hover{background:color-mix(in srgb,var(--fg) 5.5%,transparent)}}
.v2 .kbx-c.shut .kbx-ch{flex-direction:column;height:auto;padding:0;gap:var(--s-2)}
.v2 .kbx-c.shut .kbx-ch b{writing-mode:vertical-rl}
.v2 .kbx-c.shut :is(.kbx-list,.kbx-sp,.kbx-cadd,.kbx-cmn,.kbx-none){display:none}
/* a card: its key with its people at the top right, one row of chips (its priority in colour, the project it belongs to in
   grey, then its labels in their colours), the title, then one muted line with its due date, subtasks, comments and files */
.v2 .kbx-k{position:relative;padding:var(--s-3);border-radius:calc(12px * var(--rk-l,var(--rk)));background:var(--raised);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:var(--s-1);cursor:grab;transition:box-shadow .25s,opacity .2s;touch-action:none;user-select:none;-webkit-user-select:none}
@media (hover:hover) and (pointer:fine){.v2 .kbx-k:hover{box-shadow:var(--shadow-pop)}}
.v2 .kbx-k:focus-visible{outline-offset:1px;border-radius:calc(12px * var(--rk-l,var(--rk)))}
.v2 .kbx-k.drag{opacity:.35}
.v2 .kbx-k.ghost{position:fixed;z-index:100;pointer-events:none;transform:rotate(2deg) scale(1.03);box-shadow:var(--shadow-pop);cursor:grabbing}
.v2 .kbx-k1{display:flex;align-items:center;gap:6px;height:20px}
.v2 .kbx-id{font-size:11.5px;color:var(--muted);white-space:nowrap}
.v2 .kbx-k>.t{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* the title is the card's own .t (a teal label chip is a .tag.t too). It is written in place (a new card, or a
   double-click on one): while you write it, it is a field, white with the dimmed field edge, one step stronger while it
   has the focus, drawn outside the words so they keep their place */
.v2 .kbx-k>.t[contenteditable="true"]{display:block;outline:0;border-radius:var(--r-xs);padding:0 var(--s-1);margin:0 calc(-1 * var(--s-1));background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);cursor:text;-webkit-user-select:text;user-select:text}
.v2 .kbx-k>.t[contenteditable="true"]:focus{box-shadow:0 0 0 1px color-mix(in srgb,var(--field-line-strong) 50%,transparent)}
.v2 .kbx-m{display:flex;align-items:center;flex-wrap:wrap;gap:2px var(--s-2);min-height:20px;font-size:12px;color:var(--muted)}
.v2 .kbx-m:empty{display:none}
.v2 .kbx-tags{display:flex;gap:4px}
/* the chip row: the priority opens its menu; the project and the labels say what the card belongs to and is about */
.v2 .kbx-cr{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0;margin:2px 0 var(--s-1)}
.v2 .kbx-cr .tag{flex:none}
.v2 .kbx-cr .kbx-pj{flex:0 1 auto;min-width:0}
.v2 .kbx-pj span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .kbx-mt{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.v2 .kbx-mt .i{width:12px;height:12px}
.v2 .kbx-mt.late{color:var(--bad)}
.v2 .kbx-mt.ok{color:var(--ok)}
/* subtasks done: a count and a thin bar, grey while there is work left and green once it is all done */
.v2 .kbx-sb{width:22px;height:3px;border-radius:var(--r-tiny,2px);background:color-mix(in srgb,var(--muted) 25%,transparent);overflow:hidden}
.v2 .kbx-sb i{display:block;height:100%;border-radius:inherit;background:var(--fg2);transition:width .35s var(--ease)}
.v2 .kbx-mt.ok .kbx-sb i{background:var(--ok-mark)}
/* the card's quick controls: its priority chip and its people open their menus, and the dots its Move to menu */
.v2 .kbx-who,.v2 .kbx-mv{display:inline-grid;place-items:center;flex:none;border-radius:calc(6px * var(--rk-s,var(--rk)));transition:background var(--t-fast),color var(--t-fast),opacity var(--t-fast)}
.v2 .kbx-pri{transition:box-shadow var(--t-fast)}
.v2 .kbx-pri[aria-expanded="true"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-pri:hover{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 35%,transparent)}}
.v2 .kbx-who[aria-expanded="true"],.v2 .kbx-mv[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-who:hover,.v2 .kbx-mv:hover{background:var(--row)}}
.v2 .kbx-who{display:inline-flex;align-items:center;height:22px;padding:0 1px 0 6px;border-radius:calc(11px * var(--rk-l,var(--rk)))}
.v2 .kbx-who .av{width:20px;height:20px;font-size:9px;margin-left:-5px;box-shadow:0 0 0 1.5px var(--surface)}
.v2 .kbx-who:empty{width:22px;padding:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);border-radius:50%}
.v2 .kbx-who .none{display:grid;place-items:center;width:20px;height:20px;margin-left:-5px;border-radius:50%;color:var(--muted);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--muted) 45%,transparent)}
/* the dots show on hover or focus just left of the people, without a space of their own, so the avatar sits at the card's edge */
.v2 .kbx-mv{width:22px;height:22px;margin-left:-28px;color:var(--muted);opacity:0}
.v2 .kbx-mv[aria-expanded="true"]{opacity:1}
@media (hover:hover) and (pointer:fine){.v2 .kbx-k:is(:hover,:focus-within,.open) .kbx-mv{opacity:1}}
.v2 .kbx-mv[aria-expanded="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-mv:hover{color:var(--fg)}}
@media (pointer:coarse){.v2 .kbx-mv{opacity:1}}
/* three bars that fill from the left, a strength mark (the board itself shows priority as a coloured chip) */
.v2 .kbx-pb{display:inline-flex;align-items:flex-end;gap:1.5px;width:12px;height:11px}
.v2 .kbx-pb i{flex:1;border-radius:1px;background:color-mix(in srgb,var(--muted) 35%,transparent)}
.v2 .kbx-pb i:nth-child(1){height:45%}.v2 .kbx-pb i:nth-child(2){height:72%}.v2 .kbx-pb i:nth-child(3){height:100%}
.v2 .kbx-pb[data-p="low"] i:nth-child(1),.v2 .kbx-pb[data-p="med"] i:nth-child(-n+2),.v2 .kbx-pb[data-p="high"] i{background:var(--fg2)}
.v2 .kbx-pb[data-p="none"] i{height:1.5px}
/* picked cards: a checkbox on each card while any is picked, and a slightly stronger edge on the picked ones */
.v2 .kbx-sel{display:none;place-items:center;width:14px;height:14px;flex:none;border-radius:calc(4px * var(--rk-s,var(--rk)));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--muted) 80%,var(--surface));color:var(--on-accent,#fff);transition:background-color .2s,box-shadow .2s}
.v2 .kbx.selecting .kbx-sel{display:grid}
.v2 .kbx-sel .i{width:10px;height:10px;opacity:0;transform:scale(.4);transition:opacity .15s,transform .3s cubic-bezier(.34,1.4,.64,1)}
.v2 .kbx-k.sel .kbx-sel{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent))}
.v2 .kbx-k.sel .kbx-sel .i{opacity:1;transform:none}
.v2 .kbx-k.sel,.v2 .kbx-k.open{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 70%,transparent),var(--shadow)}
/* the agent's card: an accent edge, what it is doing now, and a bar that fills as it works */
.v2 .kbx-k.agent{box-shadow:0 0 0 1.5px var(--accent-mark,var(--accent)),var(--shadow)}
.v2 .kbx-ag{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--accent-fg,var(--accent))}
.v2 .kbx-ag .think{color:var(--accent-fg,var(--accent))}
.v2 .kbx-ag .s{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .kbx-ag .pc{color:var(--muted)}
.v2 .kbx-pr{height:3px;border-radius:var(--r-tiny,2px);background:color-mix(in srgb,var(--muted) 25%,transparent);overflow:hidden}
.v2 .kbx-pr i{display:block;height:100%;background:var(--accent-mark,var(--accent));width:0;transition:width .3s linear}
.v2 .kbx-ph{border-radius:calc(12px * var(--rk-l,var(--rk)));background:color-mix(in srgb,var(--accent) 8%,transparent);border:1.5px dashed color-mix(in srgb,var(--accent-mark,var(--accent)) 50%,transparent)}
/* nothing matches the filters: one note over the board, with a way back */
.v2 .kbx-em{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;pointer-events:none}
.v2 .kbx-em[hidden]{display:none}
.v2 .kbx-em .ic{display:grid;place-items:center;width:36px;height:36px;margin-bottom:var(--s-2);border-radius:var(--r-in);background:var(--chip);color:var(--muted)}
.v2 .kbx-em b{font-size:13.5px;font-weight:500}
.v2 .kbx-em span{font-size:12.5px;color:var(--muted)}
.v2 .kbx-em .pill{margin-top:10px;pointer-events:auto}
/* picked cards move together from a bar over the foot of the board */
.v2 .kbx-bk{position:absolute;left:50%;bottom:var(--s-3);z-index:3;display:flex;align-items:center;gap:2px;max-width:calc(100% - 16px);padding:var(--s-1) var(--s-1) var(--s-1) var(--s-3);border-radius:calc(14px * var(--rk-l,var(--rk)));background:var(--raised);box-shadow:var(--shadow-pop);font-size:12.5px;white-space:nowrap;transform:translate(-50%,8px);opacity:0;visibility:hidden;transition:opacity .2s var(--ease),transform .35s var(--ease),visibility 0s .2s}
.v2 .kbx-bk.on{transform:translate(-50%,0);opacity:1;visibility:visible;transition-property:opacity,transform}
.v2 .kbx-bk .n{font-weight:500;margin-right:var(--s-2)}
.v2 .kbx-bk .l{color:var(--muted);margin-right:2px}
.v2 .kbx-bk .sep{width:1px;height:18px;margin:0 var(--s-1);background:color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .kbx-bk .ib{width:28px;height:28px}
.v2 .kbx-bk .sh{display:none}
/* a card's details, in a sheet over the right of the board: what it is, its fields (each opens its menu), the agent's
   progress, a checklist you can tick and how much talk and how many files it has */
.v2 .kbx-pk{position:absolute;top:0;right:0;bottom:0;z-index:4;width:min(300px,100%);display:flex;flex-direction:column;gap:var(--s-2);padding:var(--s-2) var(--s-2) var(--s-3) var(--s-4);border-radius:var(--r-card);background:var(--raised);box-shadow:var(--shadow-pop);overflow:auto;overscroll-behavior:contain;opacity:0;visibility:hidden;transform:translateX(12px);transition:opacity .2s var(--ease),transform .4s var(--ease),visibility 0s .2s}
.v2 .kbx-pk.on{opacity:1;visibility:visible;transform:none;transition-property:opacity,transform}
.v2 .kbx-pk-h{display:flex;align-items:center;gap:var(--s-2);min-height:30px}
.v2 .kbx-pk-h .ib{width:28px;height:28px}
.v2 .kbx-pk-t{font-size:14px;font-weight:500;line-height:1.4;padding-right:var(--s-2)}
.v2 .kbx-pk-ag{display:flex;flex-direction:column;gap:6px;padding:var(--s-2) 10px;margin-right:var(--s-2);border-radius:var(--r-in);background:var(--accent-bg)}
.v2 .kbx-pk-ag .kbx-ag{color:var(--accent-fg,var(--accent))}
.v2 .kbx-pk-ag .pc{color:var(--fg2)}
.v2 .kbx-pk-rows{display:flex;flex-direction:column}
.v2 .kbx-pk-r{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;min-height:32px;font-size:13px}
.v2 .kbx-pk-r .k{color:var(--muted)}
.v2 .kbx-pv{display:inline-flex;align-items:center;gap:7px;justify-self:start;max-width:100%;height:28px;padding:0 var(--s-2);margin-left:calc(-1 * var(--s-2));border-radius:var(--r-sm);color:var(--fg);white-space:nowrap;transition:background .2s}
.v2 button.kbx-pv[aria-expanded="true"]{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 button.kbx-pv:hover{background:var(--row)}}
.v2 .kbx-pv>.i{color:var(--muted)}
.v2 .kbx-pv .av{width:20px;height:20px;font-size:9px}
.v2 .kbx-pv .avs{display:inline-flex}
.v2 .kbx-pv .avs .av+.av{margin-left:-5px;box-shadow:0 0 0 1.5px var(--raised)}
.v2 .kbx-pv.late{color:var(--bad)}
.v2 .kbx-pv .dot{width:8px;height:8px}
.v2 .kbx-pk .kbx-tags{flex-wrap:wrap}
.v2 .kbx-pk-s{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-2) 2px 0;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--muted)}
.v2 .kbx-pk-s b{font-weight:500;color:var(--fg);font-size:13px}
.v2 .kbx-pk-s .kbx-sb{width:48px}
.v2 .kbx-pk-cl{display:flex;flex-direction:column;margin:0 0 0 -6px}
.v2 .kbx-ci{display:flex;align-items:flex-start;gap:var(--s-2);width:100%;padding:5px 6px;border-radius:var(--r-sm);font-size:13px;line-height:1.4;text-align:left;transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .kbx-ci:hover{background:var(--row)}}
.v2 .kbx-ci:focus-visible{outline-offset:-2px}
.v2 .kbx-ci[aria-checked="true"]>span:last-child{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 60%,transparent)}
.v2 .kbx-cb{display:grid;place-items:center;width:16px;height:16px;flex:none;margin-top:1px;border-radius:var(--r-tiny,5px);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--muted) 80%,var(--surface));color:var(--on-accent,#fff);transition:background-color .2s,box-shadow .2s}
.v2 .kbx-cb .i{width:11px;height:11px;opacity:0;transform:scale(.4);transition:opacity .15s,transform .3s cubic-bezier(.34,1.4,.64,1)}
.v2 .kbx-ci[aria-checked="true"] .kbx-cb{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-mark,var(--accent))}
.v2 .kbx-ci[aria-checked="true"] .kbx-cb .i{opacity:1;transform:none}
.v2 .kbx-ci:disabled{cursor:default}
@media (hover:hover) and (pointer:fine){.v2 .kbx-ci:disabled:hover{background:none}}
.v2 .kbx-pk-f{display:flex;gap:var(--s-3);padding-top:var(--s-2);margin-top:auto;border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:12px;color:var(--muted)}
.v2 .kbx-pk-f .kbx-mt .i{width:13px;height:13px}
/* the menus: Move to, a card's priority and people, a column's actions and the filters */
.v2 .kbx-mp,.v2 .kbx-pm{min-width:184px}
.v2 .kbx-am,.v2 .kbx-fm{min-width:208px}
.v2 .kbx-cm{min-width:196px}
.v2 .kbx-pop .mi .av{width:20px;height:20px;font-size:9px}
.v2 .kbx-pop .mi .r{margin-left:auto}
.v2 .kbx-pop .mi .r+.ck{margin-left:0}
.v2 .kbx-pop .mi .tag{height:18px;padding:0 6px}
/* the list: the same cards as rows, grouped by column under a header each, in one panel that keeps the board's height */
.v2 .kbx.list .kbx-cols{display:flex;flex-direction:column;gap:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.v2 .kbx.list .kbx-c{min-height:0;padding:0;gap:0;border-radius:0;background:none;cursor:default}
.v2 .kbx.list .kbx-c.over{background:var(--sel);box-shadow:none}
.v2 .kbx.list .kbx-ch{height:32px;padding:0 var(--s-2) 0 6px;background:var(--row);box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .kbx.list .kbx-c+.kbx-c .kbx-ch{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--line) 50%,transparent),inset 0 -1px 0 color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .kbx.list .kbx-c.shut{align-items:stretch}
.v2 .kbx.list .kbx-c.shut .kbx-ch{flex-direction:row;height:32px;padding:0 var(--s-2) 0 6px;gap:6px}
.v2 .kbx.list .kbx-c.shut .kbx-ch b{writing-mode:horizontal-tb}
.v2 .kbx.list .kbx-c.shut .kbx-sp{display:block}
.v2 .kbx.list .kbx-list{gap:0}
.v2 .kbx.list .kbx-k{flex-direction:row;align-items:center;gap:10px;height:38px;padding:0 var(--s-3) 0 var(--s-3);border-radius:0;box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .kbx.list .kbx-k:last-child{box-shadow:none}
@media (hover:hover) and (pointer:fine){.v2 .kbx.list .kbx-k:hover{box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--line) 50%,transparent);background:var(--row)}}
.v2 .kbx.list .kbx-k.sel,.v2 .kbx.list .kbx-k.open{background:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .kbx.list .kbx-k.agent{box-shadow:inset 2px 0 0 var(--accent-mark,var(--accent)),inset 0 -1px 0 color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .kbx.list .kbx-k:focus-visible{outline-offset:-2px;border-radius:0}
.v2 .kbx.list .kbx-k.ghost{border-radius:calc(10px * var(--rk-m,var(--rk)));box-shadow:var(--shadow-pop)}
.v2 .kbx.list .kbx-k1{display:contents}
.v2 .kbx.list .kbx-sel{order:0}.v2 .kbx.list .kbx-id{order:1;width:52px}
.v2 .kbx.list .kbx-k>.t{order:2;flex:1;min-width:0;display:block;white-space:nowrap;text-overflow:ellipsis}
.v2 .kbx.list .kbx-cr{order:3;flex:none;flex-wrap:nowrap;margin:0}
.v2 .kbx.list .kbx-ag{order:4;flex:none}.v2 .kbx.list .kbx-ag .s{display:none}
.v2 .kbx.list .kbx-pr{order:5;width:40px;flex:none}
.v2 .kbx.list .kbx-m{order:6;flex-wrap:nowrap}
.v2 .kbx.list .kbx-k1 .kbx-sp{display:none}
.v2 .kbx.list .kbx-who{order:7}.v2 .kbx.list .kbx-mv{order:8;margin:0 -4px 0 0}
.v2 .kbx.list .kbx-none{padding:10px var(--s-3);text-align:left}
.v2 .kbx.list .kbx-ph{border-radius:0;border-width:1.5px 0}
/* a narrow board, on a phone or in a narrow card: the header stacks, one column at a time, picked with tabs that count each
   column's cards, and the details sheet covers the board */
.v2 .kbx-bar{display:none}
@container kbx (max-width:639px){
  .v2 .kbx-hd{flex-wrap:wrap;row-gap:var(--s-2)}
  .v2 .kbx-hd .kbx-sp{display:none}
  .v2 .kbx-ti{flex:1 0 auto}
  .v2 .kbx-ti span{display:none}
  .v2 .kbx-q{order:3;flex:1 1 180px;min-width:0;width:auto}
  .v2 .kbx-vw{order:4}
  .v2 .kbx-vw .lb{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .v2 .kbx-vw button{padding:0 9px}
  .v2 .kbx-cnt{display:none}
  .v2 .kbx:not(.list) .kbx-bar{display:flex;align-items:center;gap:var(--s-2)}
  .v2 .kbx-tabs{flex:1;display:flex;min-width:0}
  .v2 .kbx-tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:0 var(--s-2);white-space:nowrap}
  .v2 .kbx-tabs .n{font-size:12px;color:var(--muted)}
  .v2 .kbx-add{flex:none;width:30px;height:30px;color:var(--muted)}
  @media (hover:hover) and (pointer:fine){.v2 .kbx-add:hover{color:var(--fg)}}
  .v2 .kbx:not(.list) .kbx-cols{grid-template-columns:minmax(0,1fr)}
  .v2 .kbx:not(.list) .kbx-c:not(.on){display:none}
  .v2 .kbx:not(.list) .kbx-ch{display:none}
  .v2 .kbx:not(.list) .kbx-c.shut{align-items:stretch;padding:6px 6px 8px;cursor:default}
  .v2 .kbx:not(.list) .kbx-c.shut .kbx-list{display:flex}
  .v2 .kbx:not(.list) .kbx-c{min-height:520px}
  .v2 .kbx-k{touch-action:pan-y}
  .v2 .kbx-mv{opacity:1}
  .v2 .kbx.list .kbx-id,.v2 .kbx.list .kbx-m,.v2 .kbx.list .kbx-pr,.v2 .kbx.list .kbx-cr>:not(.kbx-pri){display:none}
  .v2 .kbx-pk{width:100%}
  .v2 .kbx-bk{left:var(--s-2);right:var(--s-2);max-width:none;transform:translateY(8px)}
  .v2 .kbx-bk.on{transform:none}
  .v2 .kbx-bk .lg{display:none}
  .v2 .kbx-bk .sh{display:inline}
  .v2 .kbx-bk .l{display:none}
  .v2 .kbx-bk .n{margin-right:auto}
}

/* Phase II (owner, 21 Nov): Kanban stays as it is on staging until its own Studio pass, so its menus keep the rows they had
   there in Studio: Studio's solid row fill for hover and picked rows, the rows' own rounding, and in dark mode the blue accent
   for the ticks, not the white one Studio's reviewed components took on 21 Nov */
:root[data-style="studio"] .v2 .kbx{--row:#f7f7f7;--row-on:#f7f7f7}
:root[data-style="studio"][data-theme="dark"] .v2 .kbx{--row:#1a1a1a;--row-on:#1a1a1a;--accent:#116ff8;--accent-2:color-mix(in srgb,#116ff8 84%,#fff);--on-accent:#ffffff;--accent-fg:#9dc4ff;--accent-mark:#2f86ff;--accent-bg:color-mix(in srgb,#116ff8 13%,transparent);--sel:color-mix(in srgb,#116ff8 9%,transparent)}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .kbx{--row:#1a1a1a;--row-on:#1a1a1a;--accent:#116ff8;--accent-2:color-mix(in srgb,#116ff8 84%,#fff);--on-accent:#ffffff;--accent-fg:#9dc4ff;--accent-mark:#2f86ff;--accent-bg:color-mix(in srgb,#116ff8 13%,transparent);--sel:color-mix(in srgb,#116ff8 9%,transparent)}}
:root[data-style="studio"] .v2 .kbx .mi{border-radius:calc(9px * var(--rk-m,var(--rk)));transition:background var(--t-fast)}
/* ---------- Context menu ---------- */
/* an agent reply with a menu of its own: right-click, long-press, Shift+F10 or the Menu key opens it where you are, over the
   reply, and the reply never moves. The reply's content sits 16px in from every edge in every style. While its menu is open
   the reply takes a quiet, deeper fill (no ring or shadow round it). What the agent writes when asked (a summary, an
   explanation) appears under the reply as plain text with its label, once it is written; the reply grows to hold it, and
   shrinks to the Undo row when it is deleted (grow()). A short confirmation (Copied, Quoted) shows for a moment on the
   reply's head line, never as a line under the card */
.v2 .cxm{position:relative;width:100%;display:flex;flex-direction:column;gap:var(--s-2)}
.v2 .cxm.growing{overflow:visible}
.v2 .cxm-msg{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-2);font-size:13.5px;line-height:1.55;-webkit-touch-callout:none;transition:background-color var(--t-fast) var(--ease)}
.v2 .cxm-msg:focus-visible{outline-offset:3px;border-radius:var(--r-card)}
/* the reply's fill while its menu is open is the grey chip fill, so it reads on white (check-rules R6, 27 Nov: 3% barely
   showed); Studio keeps its own quieter fill */
.v2 .cxm-msg.on{background:var(--chip-fill)}
:root[data-style="studio"] .v2 .cxm-msg.on{background:color-mix(in srgb,var(--fg) 3%,var(--surface))}
.v2 .cxm-hd{display:flex;align-items:center;gap:var(--s-2);min-height:22px;font-size:13px}
.v2 .cxm-hd b{font-weight:500}
.v2 .cxm-hd .muted{font-size:12px}
/* (the name and its time share one baseline; the mark stays centred on their line) */
.v2 .cxm-ht{display:flex;align-items:baseline;gap:var(--s-2)}
.v2 .cxm-av{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .cxm-pin,.v2 .cxm-ok{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .cxm-ok+.cxm-pin{margin-left:var(--s-2)}
.v2 .cxm-ok .i{color:var(--ok-mark)}
.v2 .cxm-ok{transition:opacity var(--t-fast) var(--ease)}
.v2 .cxm-ok.out{opacity:0}
.v2 .cxm-tx{margin:0;color:var(--fg)}
.v2 .cxm-out:empty{display:none}
.v2 .cxm-res{display:flex;flex-direction:column;gap:var(--s-1);margin-top:var(--s-1);font-size:13px;color:var(--fg2)}
.v2 .cxm-res .k{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.v2 .cxm-res .k .i{color:var(--accent-fg,var(--accent))}
.v2 .cxm-res .w{animation:v2-tkword .42s var(--ease) backwards}
/* what an action did is said to screen readers here; on screen it shows on the reply's head line */
.v2 .cxm-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .cxm-gone{display:flex;align-items:center;justify-content:center;gap:var(--s-2);padding:var(--s-3);font-size:13px;color:var(--muted)}
.v2 .cxm :is(.pill,.ib):active{transform:none}
.v2 .cxm-pop,.v2 .cxm-pop2{top:0;left:0;min-width:220px}
.v2 .cxm-pop2{min-width:180px}
.v2 .cxm-pop .mi .r .i{color:var(--muted)}
.v2 .cxm-sub[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .cxm-del,.v2 .cxm-del .i{color:var(--bad)}
/* asking, its words lean a little toward the text colour so they keep APCA Lc 60 on the red tint in dark mode too */
.v2 .cxm-del.ask{background:var(--bad-bg)}
.v2 .cxm-del.ask,.v2 .cxm-del.ask .i{color:color-mix(in srgb,var(--bad) 85%,var(--fg))}
/* Studio: 22px corners and 16px in; the label of what the agent wrote is grey like the chrome; no red fill behind the delete
   that asks again, only its red words on the row's grey; the menus take the card's corners with their rows concentric */
:root[data-style="studio"] .v2 .cxm-res .k .i{color:var(--fg2)}
:root[data-style="studio"] .v2 .cxm-del.ask{background:var(--row)}
:root[data-style="studio"] .v2 :is(.cxm-pop,.cxm-pop2){padding:6px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 :is(.cxm-pop,.cxm-pop2) .mi{border-radius:calc(var(--r-card) - 6px)}
/* ---------- Progress and meter ---------- */
/* one run, three ways to read it: the ring is the whole run, the segments its steps (n of m), the bar the step in hand.
   Its colour says how it is going: the accent while it runs, grey while paused, red when a step fails, green once done */
.v2 .prg{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3);--prg-c:var(--accent-mark,var(--accent))}
.v2 .prg[data-s="paused"]{--prg-c:var(--line-strong)}
.v2 .prg[data-s="err"]{--prg-c:var(--bad-mark)}
.v2 .prg[data-s="done"]{--prg-c:var(--ok-mark)}
.v2 .prg-h{display:flex;align-items:center;gap:var(--s-3)}
.v2 .prg-ring{position:relative;width:44px;height:44px;flex:none;display:grid;place-items:center;color:var(--ok-mark)}
.v2 .prg-ring>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.v2 .prg-ring circle{fill:none;stroke-width:3}
.v2 .prg-ring .tr{stroke:var(--chip)}
.v2 .prg-ring .fl{stroke:var(--prg-c);stroke-dasharray:0 100;stroke-linecap:round;transition:stroke-dasharray .6s var(--ease),stroke .3s}
/* not knowing how long it will take, the ring turns a short arc and the bar sweeps */
.v2 .prg[data-s="ind"] .prg-ring>svg{animation:v2-rot 1.1s linear infinite}
.v2 .prg[data-s="ind"] .prg-ring .fl{stroke-dasharray:25 100;transition:none}
.v2 .prg-pc{font-size:13px;font-weight:500;color:var(--fg);line-height:1;letter-spacing:-.02em}
.v2 .prg-t{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .prg-t b{font-weight:500}
.v2 .prg-vt{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .prg-st{flex:none}
/* the bare pause button reaches out by its glyph's inset, so the glyph ends on the content's right edge with the bars below */
.v2 .prg-btn{margin-right:-7px}
.v2 .prg-st.run{background:var(--accent-bg);color:var(--accent-fg,var(--accent))}
.v2 .prg-seg{display:flex;gap:var(--s-1)}
.v2 .prg-seg i,.v2 .prg-lin{position:relative;flex:none;height:6px;border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .prg-seg i{flex:1}
.v2 .prg-seg b{position:absolute;inset:0;border-radius:inherit;background:var(--prg-c);transform-origin:left;transform:scaleX(var(--f,0));transition:transform .45s var(--ease),background .3s}
.v2 .prg-ll{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:28px;margin-bottom:calc(var(--s-1) * -1);font-size:12.5px;color:var(--fg2)}
.v2 .prg-ll .n{color:var(--muted)}
.v2 .prg-ll .e{display:flex;align-items:center;gap:6px;min-width:0;color:var(--bad)}
.v2 .prg-ll .e span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .prg-lin i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:var(--prg-c);transition:width .45s var(--ease),background .3s}
.v2 .prg-lin.ind i{width:32%;animation:v2-prgsweep 1.3s var(--ease-io) infinite;transition:none}
@keyframes v2-prgsweep{from{transform:translateX(-100%)}to{transform:translateX(320%)}}
.v2 .prg-meter{display:flex;flex-direction:column;gap:var(--s-2);margin-top:var(--s-1);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .prg-mh{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-2);font-size:13px}
.v2 .prg-mh b{font-weight:500;color:var(--fg)}
.v2 .prg-mh .muted{font-size:12.5px}
.v2 .prg-mb{position:relative;height:8px;border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--chip)}
.v2 .prg-mb .fl{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:var(--accent-mark,var(--accent));transition:width .6s var(--ease),background .3s}
.v2 .prg-mb.warn .fl{background:var(--warn-mark)}
.v2 .prg-mb.bad .fl{background:var(--bad-mark)}
/* where the meter starts to warn: a notch through the bar at 75% and 90% */
.v2 .prg-mb .th{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:color-mix(in srgb,var(--fg) 35%,transparent)}
/* where the meter stops (a hard limit, such as runs pausing at 90%): a dashed line through the bar instead of a notch (owner, 10 Nov) */
.v2 .prg-mb .th.stop{top:-4px;bottom:-4px;width:0;margin-left:0;border-radius:0;background:none;border-left:1.5px dashed color-mix(in srgb,var(--fg) 55%,transparent)}
.v2 .prg-ml{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--s-1) var(--s-2);min-height:20px;font-size:12px}
.v2 .prg-ml .tag .i{margin-left:-1px}
.v2 .prg-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.v2 .prg[data-s="ind"] .prg-ring>svg{animation:none}.v2 .prg-lin.ind i{animation:none;width:100%;opacity:.35}}
/* Studio: its content 16px in from every edge, the panel's own padding (owner, 18 Nov) */
/* Studio (owner, 21 Nov: "no different than soft, need more segmentation and studio components"): three sections. The run is an
   off-white head strip (the ring, Indexing the docs, its status chip and Pause, a ghost icon button) under a hairline; the steps
   bar and the step's own bar (Pages) are one section under it; Credits is a section of its own under a hairline, with its
   status and Resets Dec 1 in an off-white foot strip. Every track, the ring's too, is sunk with Studio's inner shadow, which
   lies over its fill; the meter's thresholds are crisp 1px hairlines */
:root[data-style="studio"] .v2 .prg.panel{padding:0;gap:0}
:root[data-style="studio"] .v2 .prg-h{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-bottom:1px solid var(--line);border-radius:var(--r-card) var(--r-card) 0 0}
:root[data-style="studio"] .v2 .prg-btn{margin-right:-8px;border-radius:50%}
:root[data-style="studio"] .v2 .prg-seg{margin:16px 16px 0}
:root[data-style="studio"] .v2 .prg-ll{margin:8px 16px -4px}
:root[data-style="studio"] .v2 .prg-lin{margin:8px 16px 0}
:root[data-style="studio"] .v2 .prg-meter{margin-top:16px;padding:16px 16px 0;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .prg-ml{margin:8px -16px 0;padding:var(--strip-y) 16px;min-height:calc(28px + 2 * var(--strip-y) + 1px);line-height:20px;background:var(--strip);border-top:1px solid var(--line);border-radius:0 0 var(--r-card) var(--r-card)}
:root[data-style="studio"] .v2 .prg :is(.prg-seg i,.prg-lin,.prg-mb){background:var(--soft);border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .prg :is(.prg-seg i,.prg-lin,.prg-mb)::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;box-shadow:var(--track-ring);pointer-events:none}
:root[data-style="studio"] .v2 .prg .prg-mb .th{z-index:2;width:1px;margin-left:-.5px;border-radius:0;background:color-mix(in srgb,var(--fg) 45%,transparent)}
:root[data-style="studio"] .v2 .prg .prg-mb .th.stop{width:0;border-left-width:1px;background:none}
:root[data-style="studio"] .v2 .prg-ring .tr{stroke:transparent}
:root[data-style="studio"] .v2 .prg-ring::before{content:"";position:absolute;inset:calc(100% * 3 / 72);border-radius:50%;background:var(--soft);box-shadow:var(--track-ring);-webkit-mask:radial-gradient(circle closest-side,transparent calc(100% * 27 / 33 - .5px),#000 calc(100% * 27 / 33));mask:radial-gradient(circle closest-side,transparent calc(100% * 27 / 33 - .5px),#000 calc(100% * 27 / 33))}
/* the words that say what the run is doing shimmer while it works (.shim, owner, 19 Nov): the sweep's colours, not the line's own */
.v2 :is(.prg-vt,.pva-st .w,.pvb-sum,.pvc-vt).shim{color:transparent}
/* ---------- Progress designs ---------- */
/* the homepage card's design switch (its footer tabs on designme.dev): Compact, Steps and Budget, three ways to show one agent
   run and what it costs, in the place of the ring and three bars (owner, 8 Nov). The registry, the code view and the
   component page install the classic component above (build.js leaves a data-designs="card" switch out of them) */
.v2 .dm.prg-dm>.dm-main{align-items:center}
/* words for screen readers only */
.v2 .prg-dm .sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* ---------- A · progressive disclosure ----------
   At rest: the run's name, its state in words, one bar for the whole run and the time left. Steps and Credits open
   layers with the detail: each step's count, timing and what it is on now; the run's spend and its share of the month */
.v2 .pva{width:100%;display:flex;flex-direction:column;padding:var(--s-4) var(--s-4) var(--s-2);font-size:13px;line-height:1.45;color:var(--fg);--pva-c:var(--accent-mark)}
.v2 .pva[data-s="paused"]{--pva-c:var(--line-strong)}
.v2 .pva[data-s="err"]{--pva-c:var(--bad)}
.v2 .pva[data-s="done"]{--pva-c:var(--ok-mark)}
.v2 .pva-top{display:flex;align-items:flex-start;gap:var(--s-3)}
.v2 .pva-id{flex:1;min-width:0}
.v2 .pva-name{font-size:14px;font-weight:500;line-height:20px}
.v2 .pva-st{display:flex;align-items:center;gap:var(--s-2);min-width:0;min-height:20px;margin-top:2px;color:var(--fg2)}
.v2 .pva-st .w{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pva[data-s="err"] .pva-st{color:var(--bad)}
/* the state's mark: a dot that breathes while the run works, a still grey one while paused, an icon when it stops */
.v2 .pva-mk{position:relative;flex:none;display:grid;place-items:center;width:12px;height:12px}
.v2 .pva-mk>i{width:6px;height:6px;border-radius:50%;corner-shape:round;background:var(--pva-c)}
.v2 .pva-mk>i::after{content:"";position:absolute;inset:3px;border-radius:50%;corner-shape:round;background:var(--pva-c);opacity:0}
.v2 .pva:is([data-s="run"],[data-s="ind"]) .pva-mk>i::after{animation:v2-pvaping 1.8s var(--ease) infinite}
@keyframes v2-pvaping{0%{transform:scale(1);opacity:.45}80%,100%{transform:scale(2.6);opacity:0}}
.v2 .pva-mk .i{display:none}
.v2 .pva:is([data-s="err"],[data-s="done"]) .pva-mk>i{display:none}
.v2 .pva[data-s="err"] .pva-mk .e,.v2 .pva[data-s="done"] .pva-mk .d{display:block}
.v2 .pva[data-s="done"] .pva-mk{color:var(--ok)}
.v2 .pva-act{flex:none;display:flex;align-items:center;gap:var(--s-1);margin:-3px -6px 0 0}
.v2 .pva-act .pill{gap:6px}
.v2 .pva-act .ib[disabled]{color:var(--dm-dis);cursor:default}
/* the failure, in a sentence, under the state while the run is stopped */
.v2 .pva-err p{margin:0;padding-top:var(--s-1);font-size:12.5px;line-height:1.5;color:var(--fg2);text-wrap:pretty}
/* the one bar: the whole run, in proportion to how long each step takes; hairline gaps mark where steps meet */
.v2 .pva-bar{position:relative;height:6px;margin-top:var(--s-3);border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .pva-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:var(--pva-c);transition:width .2s linear,background var(--t-fast)}
.v2 .pva[data-s="ind"] .pva-fill{width:30%;animation:v2-pvasweep 1.3s var(--ease-io) infinite;transition:none}
@keyframes v2-pvasweep{from{transform:translateX(-100%)}to{transform:translateX(340%)}}
.v2 .pva-tk{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--surface)}
.v2 .pva[data-s="ind"] .pva-tk{opacity:0}
.v2 .pva-meta{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:28px;margin-top:var(--s-2);font-size:12.5px;color:var(--fg2)}
.v2 .pva-eta{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pva-eta b{font-weight:500;color:var(--fg)}
/* the credits control: this run's spend, opening a layer with its projection and the month */
.v2 .pva-cr{position:relative;flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 8px;margin-right:-8px;border-radius:var(--r-sm);color:var(--fg2);font-size:12.5px;transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .pva-cr:hover{background:var(--row);color:var(--fg)}}
.v2 .pva-cr[aria-expanded="true"]{background:var(--chip);color:var(--fg)}
.v2 .pva-cr .v{font-weight:500;color:var(--fg)}
.v2 .pva-cr .cv{transition:transform var(--t) var(--ease)}
.v2 .pva-cr[aria-expanded="true"] .cv{transform:rotate(180deg)}
.v2 .pva-cr .wd{position:absolute;top:4px;left:19px;width:6px;height:6px;border-radius:50%;corner-shape:round;background:var(--warn-mark);box-shadow:0 0 0 1.5px var(--surface)}
.v2 .pva-sep{height:1px;margin-top:var(--s-3);background:color-mix(in srgb,var(--line) 50%,transparent)}
/* Steps: the toggle that opens the step list */
.v2 .pva-tog{display:flex;align-items:center;gap:var(--s-2);width:calc(100% + var(--s-4));height:36px;margin:var(--s-2) calc(var(--s-2) * -1) 0;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:13px;text-align:left;transition:background var(--t-fast)}
:root[data-style="studio"] .v2 .pva-tog{margin-top:var(--s-1)}
@media (hover:hover) and (pointer:fine){.v2 .pva-tog:hover{background:var(--row)}}
.v2 .pva-tog .cv{color:var(--fg2);transition:transform var(--t) var(--ease)}
.v2 .pva-tog[aria-expanded="true"] .cv{transform:rotate(180deg)}
.v2 .pva-tog .l{font-weight:500}
.v2 .pva-tog .n{min-width:0;flex:1;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pva-tog .el{flex:none;color:var(--muted);font-size:12.5px}
/* the step list */
.v2 .pva-list{list-style:none;margin:0;padding:0 0 var(--s-2);display:flex;flex-direction:column;gap:2px}
.v2 .pva-sh{display:grid;grid-template-columns:16px minmax(0,1fr) auto 40px 12px;align-items:center;column-gap:var(--s-2);width:100%;min-height:32px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:13px;text-align:left}
.v2 button.pva-sh{transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 button.pva-sh:hover{background:var(--row)}}
.v2 .pva-si{display:grid;place-items:center;width:16px;height:16px;color:var(--fg2)}
.v2 .pva-si .spin{width:11px;height:11px;color:var(--accent-mark)}
.v2 .pva-o{width:9px;height:9px;border-radius:50%;corner-shape:round;box-shadow:inset 0 0 0 1.5px var(--line-strong)}
/* (a step's name, count and time share one baseline on the row's own columns; its mark and chevron stay centred) */
.v2 .pva-sw{grid-column:2 / -2;display:grid;grid-template-columns:subgrid;align-items:baseline}
.v2 .pva-sn{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pva-sc,.v2 .pva-sd{font-size:12.5px;color:var(--muted);white-space:nowrap}
.v2 .pva-sd{text-align:right}
.v2 .pva-sv{display:grid;place-items:center;color:var(--fg2)}
.v2 .pva-sv .i{transition:transform var(--t) var(--ease)}
.v2 button.pva-sh[aria-expanded="true"] .pva-sv .i{transform:rotate(180deg)}
.v2 .pva-s[data-st="up"] .pva-sn{color:var(--muted)}
.v2 .pva-s:is([data-st="live"],[data-st="err"]) .pva-sn{font-weight:500}
.v2 .pva-s[data-st="live"] .pva-sc{color:var(--fg)}
.v2 .pva-s[data-st="err"] .pva-si{color:var(--bad)}
.v2 .pva-s[data-st="err"] .pva-sc{color:var(--fg)}
/* a step's detail sits under its name: what it is on now, or its log once it is done */
.v2 .pva-sxi{display:flex;flex-direction:column;gap:2px;padding:0 var(--s-2) var(--s-2) calc(var(--s-2) * 2 + 16px);font-size:12.5px;line-height:1.5;color:var(--fg2)}
.v2 .pva-sxi p{margin:0;text-wrap:pretty}
.v2 .pva-now{display:flex;align-items:baseline;gap:6px;min-width:0}
.v2 .pva-now .p{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg)}
.v2 .pva-s[data-st="err"] .pva-e{color:var(--bad)}
.v2 .pva-k{flex:none;color:var(--muted)}
.v2 .pva-sub .nw{display:none}
.v2 :where(.pva) :is(.pva-sh,.pva-tog):focus-visible{outline-offset:-2px}
/* on a phone the names keep their room: done rows drop their count (their log has it), and the running step's count moves
   into its detail */
@container (max-width:400px){
  .v2 .pva-sh{grid-template-columns:16px minmax(0,1fr) 36px 12px;column-gap:6px}
  .v2 .pva-sc{display:none}
  .v2 .pva-sub .nw{display:inline}
  .v2 .pva-sub .ww{display:none}
  .v2 .pva-sxi{padding-left:calc(var(--s-2) + 16px + 6px)}
}
/* the credits layer */
.v2 .pop.pva-pop{width:300px;max-width:calc(100% - 16px);padding:var(--s-3) var(--s-4) var(--s-4);font-size:12.5px;line-height:1.5;color:var(--fg2);cursor:default}
.v2 .pva-ph{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-2);margin-bottom:var(--s-1)}
.v2 .pva-ph .pva-k{font-size:12px}
.v2 .pva-kv{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-3);min-height:22px}
.v2 .pva-kv b{font-weight:500;color:var(--fg)}
.v2 .pva-kv .x{color:var(--fg)}
.v2 .pva-ps{height:1px;margin:var(--s-3) 0;background:color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .pva-ph .num b{font-weight:500;color:var(--fg)}
.v2 .pva-mb{position:relative;height:8px;margin:var(--s-2) 0 var(--s-3);border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--chip)}
.v2 .pva-mb>i{position:absolute;top:0;bottom:0;left:0;width:0;transition:left .3s var(--ease),width .3s var(--ease)}
.v2 .pva-mb .a{background:var(--line-strong);border-radius:calc(4px * var(--rk-s,var(--rk))) 0 0 calc(4px * var(--rk-s,var(--rk)))}
.v2 .pva-mb .b{background:var(--accent-mark)}
.v2 .pva-mb .c{background:repeating-linear-gradient(135deg,var(--accent-mark) 0 1.5px,transparent 1.5px 4px);opacity:.7}
.v2 .pva-mb .th{width:2px;top:-3px;bottom:-3px;margin-left:-1px;border-radius:1px;background:color-mix(in srgb,var(--fg) 40%,transparent)}
.v2 .pva-lg{display:flex;flex-direction:column;gap:2px}
.v2 .pva-lg>span{display:flex;align-items:center;gap:var(--s-2)}
.v2 .pva-lg .sw{flex:none;width:8px;height:8px;border-radius:var(--r-tiny,2px)}
.v2 .pva-lg .sw.a{background:var(--line-strong)}
.v2 .pva-lg .sw.b{background:var(--accent-mark)}
.v2 .pva-lg .sw.c{background:repeating-linear-gradient(135deg,var(--accent-mark) 0 1.5px,transparent 1.5px 3.5px);box-shadow:inset 0 0 0 1px var(--accent-mark)}
.v2 .pva-lg .t{flex:1}
.v2 .pva-lg .num{color:var(--fg)}
.v2 .pva-wn{display:flex;align-items:flex-start;gap:var(--s-2);margin:var(--s-3) 0 0;color:var(--fg2);text-wrap:pretty}
.v2 .pva-wn .tag{flex:none;margin-top:1px}
/* Blueprint: square, with small uppercase labels */
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.pva-k,.pva-tog .l){font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pva-ph .pva-k{font-size:10.5px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pva-mk>i,:root:not([data-style="soft"],[data-style="studio"]) .v2 .pva-mk>i::after,:root:not([data-style="soft"],[data-style="studio"]) .v2 .pva-o,:root:not([data-style="soft"],[data-style="studio"]) .v2 .pva-cr .wd{border-radius:50%!important}
@media (prefers-reduced-motion:reduce){
  .v2 .pva-mk>i::after{animation:none!important;opacity:0!important}
  .v2 .pva[data-s="ind"] .pva-fill{animation:none;width:100%;opacity:.35}
  .v2 .pva-fill,.v2 .pva-mb>i{transition:none}
}
/* ---------- Progress B: the steps are the progress ---------- */
/* a vertical rail of the run's steps. Finished steps fold to one line (open one to see what it made), the step in hand is a
   raised card on the rail with its own bar, count, speed, the item it is on and its time left, and the steps ahead wait in
   grey with their size. The card slides down the rail as each step finishes. Credits wait in the footer as one line */
.v2 .pvb{width:440px;max-width:100%;display:flex;flex-direction:column;--mk:var(--accent-mark);
  --rl:color-mix(in srgb,var(--rail) 50%,transparent);--hl:color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .pvb[data-s="paused"]{--mk:var(--faint)}
.v2 .pvb[data-s="err"]{--mk:var(--bad)}
.v2 .pvb-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* labels: quiet words in Soft, small capitals in Blueprint */
.v2 .pvb-k{font-size:12px;color:var(--muted)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvb-k{font-size:10.5px;font-weight:500;letter-spacing:.04em;text-transform:uppercase}

/* the header: what runs, how it is going in words, and the one control */
.v2 .pvb-h{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-4) var(--s-3) var(--s-3) var(--s-4)}
.v2 .pvb-ht{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
.v2 .pvb-ht b{font-size:13.5px;font-weight:500}
.v2 .pvb-sum{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvb-tag{flex:none}
.v2 .pvb-tag.run{background:var(--accent-bg);color:var(--accent-fg)}
.v2 .pvb-btn{flex:none}

/* the rail: a line from step to step, solid where the run has been and dashed where it is going */
.v2 .pvb-rw{position:relative;z-index:0;padding:0 var(--s-2) var(--s-2)}
.v2 .pvb-rail{list-style:none;margin:0;padding:0}
.v2 .pvb-st{position:relative;transition:padding var(--t) var(--ease)}
.v2 .pvb-st::before{content:"";position:absolute;z-index:0;left:16px;top:18px;width:2px;height:100%;background:repeating-linear-gradient(to bottom,var(--rl) 0 4px,transparent 4px 8px)}
.v2 .pvb-st[data-k="done"]::before{background:var(--rl)}
.v2 .pvb-st:last-child::before{display:none}
/* the live card: one raised surface that slides from step to step (placed by the script) */
.v2 .pvb-lift{position:absolute;left:var(--s-2);right:var(--s-2);top:0;height:0;z-index:1;border-radius:var(--r-in);background:var(--raised);box-shadow:var(--shadow-pop);pointer-events:none;opacity:0;transition:opacity var(--t) var(--ease)}
.v2 .pvb-lift.on{opacity:1}
.v2 .pvb-st:is([data-k="live"],[data-k="end"]){padding-block:var(--s-1)}

/* a step's line: its marker, its name and its size or time */
.v2 .pvb-row{position:relative;z-index:2;width:100%;display:flex;align-items:center;gap:var(--s-3);min-height:36px;padding:9px var(--s-2);border-radius:var(--r-sm);font-size:13px;line-height:18px;text-align:left;color:var(--fg)}
/* the hover grey is see-through, so the rail still shows under it */
@media (hover:hover) and (pointer:fine){.v2 button.pvb-row:hover{background:color-mix(in srgb,var(--fg) 3%,transparent)}}
.v2 button.pvb-row:focus-visible{outline-offset:-2px}
.v2 .pvb-nd{position:relative;z-index:3;flex:none;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;corner-shape:round;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--rail);color:var(--muted)}
/* (a step's name and its count share one baseline; its node and chevron stay centred on the row) */
.v2 .pvb-tx{flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--s-3)}
.v2 .pvb-nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvb-mt{flex:none;font-size:12.5px;color:var(--muted)}
.v2 .pvb-cv{flex:none;color:var(--muted);margin-left:calc(var(--s-1) * -1);transition:transform var(--t) var(--ease)}
.v2 .pvb-row[aria-expanded="true"] .pvb-cv{transform:rotate(180deg)}
/* ahead: grey, with the size it expects */
.v2 .pvb-st[data-k="next"] .pvb-nm{color:var(--muted)}
/* done: a green tick, a quiet line you can open */
.v2 .pvb-st[data-k="done"] .pvb-nd{background:linear-gradient(var(--ok-bg),var(--ok-bg)),var(--surface);box-shadow:none;color:var(--ok)}
/* live: the name steps up, the marker says how it is going */
.v2 .pvb-st:is([data-k="live"],[data-k="end"]) .pvb-nm{font-weight:500}
.v2 .pvb-st[data-k="live"] .pvb-nd{background:var(--raised);box-shadow:none;color:var(--mk)}
.v2 .pvb-st[data-k="live"] .pvb-nd .spin{width:14px;height:14px;border-width:2px}
.v2 .pvb[data-s="paused"] .pvb-st[data-k="live"] .pvb-nd{background:var(--chip);color:var(--fg2)}
.v2 .pvb[data-s="err"] .pvb-st[data-k="live"] .pvb-nd{background:linear-gradient(var(--bad-bg),var(--bad-bg)),var(--raised);color:var(--bad)}
.v2 .pvb[data-s="err"] .pvb-st[data-k="live"] .pvb-mt{color:var(--bad)}
.v2 .pvb-st[data-k="end"] .pvb-nd{background:linear-gradient(var(--ok-bg),var(--ok-bg)),var(--raised);box-shadow:none;color:var(--ok)}

/* folds: a step's detail, the live card's body, the log and the credits meter open in place */
.v2 .pvb-fold{position:relative;z-index:2;display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--t) var(--ease),opacity var(--t-fast) var(--ease),visibility 0s linear var(--t)}
.v2 .pvb-fold.open{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows var(--t) var(--ease),opacity var(--t) var(--ease),visibility 0s}
.v2 .pvb-fold>div{min-height:0;overflow:hidden}
.v2 .pvb-in{padding:0 var(--s-3) var(--s-3) 38px}

/* the live card's body */
.v2 .pvb-bar{position:relative;height:6px;margin-top:2px;border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .pvb-bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:inherit;background:var(--mk);transition:width .12s linear,background .3s}
.v2 .pvb-bar.ind i{width:32%;animation:v2-pvbsweep 1.3s var(--ease-io) infinite;transition:none}
@keyframes v2-pvbsweep{from{transform:translateX(-100%)}to{transform:translateX(320%)}}
.v2 .pvb-nums{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-2);margin-top:var(--s-2);font-size:12.5px;line-height:18px}
.v2 .pvb-cnt{color:var(--fg)}
.v2 .pvb-rate{color:var(--muted);white-space:nowrap}
.v2 .pvb-now{display:flex;align-items:baseline;gap:6px;min-width:0;margin-top:2px;font-size:12.5px;line-height:18px}
.v2 .pvb-now .pvb-k{flex:none}
.v2 .pvb-nowt{min-width:0;color:var(--fg2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the failure takes the card's body: what happened, Retry and the log */
.v2 .pvb-er{display:none}
.v2 .pvb[data-s="err"] .pvb-er{display:block}
.v2 .pvb[data-s="err"] .pvb-go{display:none}
.v2 .pvb-em{margin:var(--s-2) 0 0;font-size:12.5px;line-height:1.5;color:var(--fg2);text-wrap:pretty}
.v2 .pvb-ea{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-3)}
.v2 .pvb-ea .pill .i{margin-left:-2px}
.v2 .pvb-log>div>div{padding:2px 2px 0}
.v2 .pvb-log ol{list-style:none;margin:var(--s-3) 0 0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:18px;color:var(--fg2)}
.v2 .pvb-log li{display:flex;gap:var(--s-3)}
.v2 .pvb-log time{flex:none;color:var(--muted)}

/* a finished step's detail: plain lines, no card */
.v2 .pvb-dp{margin:0;font-size:12.5px;line-height:1.5;color:var(--fg)}
.v2 .pvb-dm{margin:2px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.v2 .pvb-dt .pvb-k{display:block;margin-top:var(--s-2)}
.v2 .pvb-ls{list-style:none;margin:2px 0 0;padding:0;font-size:12.5px;line-height:20px;color:var(--fg2)}
.v2 .pvb-ls li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the footer: credits as one line that opens into the month's meter */
.v2 .pvb-f{padding:var(--s-2);border-top:1px solid var(--hl)}
:root[data-style="studio"] .v2 .pvb-f{padding:var(--s-1) var(--s-2) var(--s-2)}
.v2 .pvb-cr{width:100%;display:flex;align-items:center;gap:var(--s-2);min-height:36px;padding:0 var(--s-2);border-radius:var(--r-sm);font-size:12.5px;color:var(--muted);text-align:left;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .pvb-cr:hover{background:var(--row)}}
.v2 .pvb-cr:focus-visible{outline-offset:-2px}
.v2 .pvb-crl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvb-cr b{font-weight:500;color:var(--fg)}
.v2 .pvb-crw{flex:none;display:inline-flex}
.v2 .pvb-cr .pvb-cv{margin-left:0}
.v2 .pvb-cr[aria-expanded="true"] .pvb-cv{transform:rotate(180deg)}
.v2 .pvb-cm .pvb-in{padding:var(--s-1) var(--s-2) var(--s-2)}
.v2 .pvb-mb{--mtr:var(--accent-mark);position:relative;height:8px;margin-top:var(--s-2);border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--chip)}
.v2 .pvb-mb.warn{--mtr:var(--warn-mark)}
.v2 .pvb-mb.bad{--mtr:var(--bad)}
.v2 .pvb-mb>i{position:absolute;top:0;bottom:0;display:block}
/* earlier this month is a tint of the meter's colour, this run the solid slice at its end */
.v2 .pvb-mb .fl{left:0;width:0;border-radius:inherit;background:color-mix(in srgb,var(--mtr) 38%,var(--chip));transition:width .3s var(--ease),background .3s}
.v2 .pvb-mb .rn{width:0;border-radius:0 calc(4px * var(--rk-s,var(--rk))) calc(4px * var(--rk-s,var(--rk))) 0;background:var(--mtr);transition:width .3s var(--ease),background .3s}
/* where the meter starts to warn: a notch through the bar at 75% and 90% */
.v2 .pvb-mb .th{top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:color-mix(in srgb,var(--fg) 35%,transparent)}
.v2 .pvb-ml{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-1) var(--s-4);margin-top:var(--s-3);font-size:12px;color:var(--muted)}
.v2 .pvb-ml span{display:inline-flex;align-items:center;gap:6px}
.v2 .pvb-ml b{font-weight:500;color:var(--fg)}
.v2 .pvb-ml i{width:8px;height:8px;border-radius:var(--r-tiny,2px);background:var(--mtr,var(--accent-mark))}
.v2 .pvb-ml i.e{background:color-mix(in srgb,var(--mtr,var(--accent-mark)) 38%,var(--chip))}
.v2 .pvb-mn{margin:var(--s-2) 0 0;font-size:12px;color:var(--muted)}
.v2 .pvb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* a narrow column keeps the warning as its icon */
@container (max-width:400px){.v2 .pvb-crw .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.v2 .pvb-crw .tag{padding:0 5px}.v2 .pvb-cr .pvb-x{display:none}}
@media (prefers-reduced-motion:reduce){
  .v2 .pvb *,.v2 .pvb-lift{transition-duration:.01ms!important}
  .v2 .pvb-bar.ind i{animation:none;width:100%;opacity:.35}
  .v2 .pvb .spin{animation:none}
  .v2 .prg-dm *{animation-duration:.01ms!important}
}
/* ---------- C: budget-aware layered meter ---------- */
/* three cards in one pile: the live run in front, the queue and the month's usage peeking out behind it. Each peek is a tab;
   picking one lifts it out of the pile and lays it on top. --pk is how much of each card behind shows */
.v2 .pvc{position:relative;width:100%;--pk:36px;--pvc-c:var(--accent-mark)}
.v2 .pvc[data-s="paused"]{--pvc-c:var(--line-strong)}
.v2 .pvc[data-s="done"]{--pvc-c:var(--ok-mark)}
.v2 .pvc-c{position:absolute;left:0;right:0;top:calc(var(--pk) * 2);overflow:hidden;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);transform-origin:50% 0;transition:transform var(--t-slow) var(--ease),background-color var(--t) var(--ease)}
/* a card behind sits higher and a little narrower, on a fill that recedes toward the page */
.v2 .pvc-c[data-d="1"]{transform:translateY(calc(var(--pk) * -1)) scale(.95);background:color-mix(in srgb,var(--surface) 72%,var(--page))}
.v2 .pvc-c[data-d="2"]{transform:translateY(calc(var(--pk) * -2)) scale(.9);background:color-mix(in srgb,var(--surface) 50%,var(--page))}
/* a pointer over the pile fans the cards behind apart a little, and the one under it a little more */
@media (hover:hover) and (pointer:fine){
  .v2 .pvc:hover .pvc-c[data-d="1"]{transform:translateY(calc(var(--pk) * -1 - 3px)) scale(.95)}
  .v2 .pvc:hover .pvc-c[data-d="2"]{transform:translateY(calc(var(--pk) * -2 - 6px)) scale(.9)}
  .v2 .pvc .pvc-c[data-d="1"]:has(.pvc-lip:hover){transform:translateY(calc(var(--pk) * -1 - 7px)) scale(.95)}
  .v2 .pvc .pvc-c[data-d="2"]:has(.pvc-lip:hover){transform:translateY(calc(var(--pk) * -2 - 10px)) scale(.9)}
}
.v2 .pvc.swap,.v2 .pvc.swap .pvc-c{transition:height var(--t) var(--ease),transform var(--t-slow) var(--ease),background-color var(--t) var(--ease)}
.v2 .pvc.swap{transition:height var(--t) var(--ease)}
/* the peek: a tab across the top of each card */
.v2 .pvc-lip{position:relative;display:flex;align-items:center;gap:var(--s-2);width:100%;height:40px;padding:0 var(--s-4);text-align:left;font-size:13.5px;font-weight:500;color:var(--fg);border-radius:var(--r-card) var(--r-card) 0 0}
.v2 .pvc-lip:focus-visible{outline-offset:-2px}
.v2 .pvc-c:not([data-d="0"]) .pvc-lip{color:var(--fg2)}
.v2 .pvc-c[data-d="0"] .pvc-lip{cursor:default}
.v2 .pvc-li{display:grid;place-items:center;width:14px;height:14px;flex:none;color:var(--muted)}
.v2 .pvc-li .spin{width:11px;height:11px;color:var(--accent-fg)}
.v2 .pvc[data-s="err"] .pvc-c[data-k="run"] .pvc-li{color:var(--bad)}
.v2 .pvc[data-s="done"] .pvc-c[data-k="run"] .pvc-li{color:var(--ok)}
.v2 .pvc-lt{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.v2 .pvc-lm{flex:none;font-size:12.5px;font-weight:400;color:var(--muted)}
.v2 .pvc-c[data-k="run"][data-d="0"] .pvc-lm{visibility:hidden}
.v2 .pvc-c[data-k="run"][data-d="0"] .pvc-lip{padding-right:136px}
.v2 .pvc-b{padding:0 var(--s-4) var(--s-4)}
.v2 .pvc-act{position:absolute;top:5px;right:9px;display:flex;align-items:center;gap:var(--s-1);height:30px;transition:opacity var(--t-fast)}
.v2 .pvc-c:not([data-d="0"]) .pvc-act{opacity:0;visibility:hidden}
.v2 .pvc-pp.gone{visibility:hidden}
.v2 .pvc-st.run{background:var(--accent-bg);color:var(--accent-fg)}
/* the run: what it is doing now, and the way to more */
.v2 .pvc-sub{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);min-height:28px;margin-top:-6px}
.v2 .pvc-vt{min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvc-more{margin-right:-10px;color:var(--fg2)}
.v2 .pvc-more .i{transition:transform var(--t) var(--ease)}
.v2 .pvc-more[aria-expanded="true"] .i{transform:rotate(180deg)}
/* one bar for the whole run: its fill is the work done, its parts are the five steps, sized by how long each should take */
.v2 .pvc-tr{position:relative;height:24px;margin-top:var(--s-1)}
.v2 .pvc-bar{position:absolute;left:0;right:0;top:8px;height:8px;display:flex;border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .pvc-swp{position:absolute;left:0;top:0;bottom:0;width:30%;background:var(--accent-mark);opacity:0}
.v2 .pvc[data-s="ind"] .pvc-swp{opacity:.85;animation:v2-pvcsweep 1.4s var(--ease-io) infinite}
@keyframes v2-pvcsweep{from{transform:translateX(-100%)}to{transform:translateX(340%)}}
.v2 .pvc-sg{position:relative;flex:none;height:100%;transition:background-color var(--t-fast)}
.v2 .pvc-sg+.pvc-sg{border-left:2px solid var(--surface)}
.v2 .pvc-sg b{position:absolute;inset:0;background:var(--pvc-c);transform-origin:left;transform:scaleX(var(--f,0));transition:transform .45s var(--ease),background-color .3s,opacity var(--t-fast)}
.v2 .pvc-sg.bad b{background:var(--bad-mark)}
.v2 .pvc-tr.scr .pvc-sg.hot{background:var(--hover)}
.v2 .pvc-tr.scr .pvc-sg:not(.hot) b{opacity:.35}
.v2 .pvc-hits{position:absolute;inset:0;display:flex}
.v2 .pvc-hit{flex:none;height:100%;border-radius:calc(4px * var(--rk-s,var(--rk)))}
.v2 .pvc-hit:focus-visible{outline-offset:0}
.v2 .pvc-mk{position:absolute;top:2px;left:0;width:2px;height:20px;margin-left:-1px;border-radius:1px;background:var(--fg);opacity:0;pointer-events:none;transition:opacity var(--t-fast)}
.v2 .pvc-tr.scr .pvc-mk{opacity:1}
/* the line under the bar: the count in hand, the step under the pointer, or what failed and a way on */
.v2 .pvc-ro{display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);min-height:28px;font-size:12.5px;color:var(--fg2)}
.v2 .pvc-ro .a{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvc-ro .a b{color:var(--fg)}
.v2 .pvc-ro .z{flex:none;color:var(--muted)}
.v2 .pvc-ro .z b{color:var(--fg)}
.v2 .pvc-e{display:flex;align-items:center;gap:6px;min-width:0;color:var(--bad)}
.v2 .pvc-e span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvc-retry{flex:none;gap:6px}
/* details, on demand: how long, how much longer, what it has cost; and, after a failure, what happened */
.v2 .pvc-det>div{display:flex;flex-direction:column}
.v2 .pvc-ed{margin:var(--s-1) 0 var(--s-1);font-size:12.5px;line-height:1.5;color:var(--fg2);text-wrap:pretty}
.v2 .pvc-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-3);margin:0;padding:var(--s-2) 0 var(--s-1)}
.v2 .pvc-kv div{min-width:0}
.v2 .pvc-kv dt{font-size:12px;color:var(--muted)}
.v2 .pvc-kv dd{margin:0;font-size:13px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the month: used before this run, this run so far, what it should still take, and where it starts to warn */
.v2 .pvc-m{margin-top:var(--s-3);padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
:root[data-style="studio"] .v2 .pvc-m{padding-top:var(--s-3)}
.v2 .pvc-mh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s-1) var(--s-2);min-height:20px;font-size:13px}
.v2 .pvc-mh .pvc-k{white-space:nowrap}
.v2 .pvc-mh .l{display:flex;align-items:center;gap:var(--s-2);min-width:0}
.v2 .pvc-mh .v{flex:none;margin-left:auto;font-size:12.5px;color:var(--muted)}
.v2 .pvc-mh .v b{font-size:13px;color:var(--fg)}
.v2 .pvc-mw{position:relative;margin-top:var(--s-2)}
.v2 .pvc-mb{position:relative;height:8px;border-radius:calc(4px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .pvc-mb i{position:absolute;top:0;bottom:0;left:0;width:0;transition:left var(--t-slow) var(--ease),width var(--t-slow) var(--ease)}
.v2 .pvc-mb .b{background:var(--line-strong)}
.v2 .pvc-mb .r{background:var(--accent-mark);box-shadow:-2px 0 0 var(--surface)}
.v2 .pvc-mb .p{box-shadow:-2px 0 0 var(--surface),inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 70%,transparent)}
.v2 .pvc-mb .q{box-shadow:-2px 0 0 var(--surface),inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 70%,transparent)}
.v2 .pvc-mb .z{box-shadow:none}
.v2 .pvc-hp{background:repeating-linear-gradient(135deg,var(--accent-mark) 0 1.5px,transparent 1.5px 4.5px)}
.v2 .pvc-hq{background:repeating-linear-gradient(135deg,var(--line-strong) 0 1.5px,transparent 1.5px 4.5px)}
.v2 .pvc-th{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:color-mix(in srgb,var(--fg) 35%,transparent);transition:background-color var(--t) var(--ease)}
.v2 .pvc-th.x{background:var(--warn-mark)}
.v2 .pvc-th+.pvc-th.x{background:var(--bad)}
.v2 .pvc-lg{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-1) var(--s-4);min-height:18px;margin-top:var(--s-2);font-size:12px;color:var(--fg2)}
.v2 .pvc-lg>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.v2 .pvc-lg b{font-weight:500;color:var(--fg)}
.v2 .pvc-dot{width:10px;height:8px;flex:none;border-radius:calc(2px * var(--rk-s,var(--rk)))}
.v2 .pvc-dot.b{background:var(--line-strong)}
.v2 .pvc-dot.r{background:var(--accent-mark)}
.v2 .pvc-dot.p{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-mark) 70%,transparent)}
.v2 .pvc-dot.q{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line-strong) 70%,transparent)}
.v2 .pvc-wt .i{margin-left:-1px}
/* behind the run: the month in full, and the runs waiting */
.v2 .pvc-uh{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-2);font-size:13px}
.v2 .pvc-uh .v b{font-weight:500}
.v2 .pvc-uh .muted{font-size:12.5px}
.v2 .pvc-tl{position:relative;height:16px;margin-top:6px;font-size:11.5px;color:var(--muted)}
.v2 .pvc-tl span{position:absolute;top:0;transform:translateX(-50%)}
.v2 .pvc-ul{list-style:none;margin:var(--s-2) 0 0;padding:0;font-size:13px}
.v2 .pvc-ul li{display:flex;align-items:center;gap:var(--s-2);min-height:28px}
.v2 .pvc-ul .n{flex:1;min-width:0;color:var(--fg2)}
.v2 .pvc-ul .v{flex:none;color:var(--fg)}
.v2 .pvc-ul li.t{margin-top:var(--s-1);padding-top:var(--s-1);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .pvc-ul li.t .n{color:var(--fg)}
.v2 .pvc-ul li.t .pvc-dot{background:none}
.v2 .pvc-note{margin:var(--s-2) 0 0;font-size:12.5px;line-height:1.5;color:var(--muted);text-wrap:pretty}
.v2 .pvc-ql{list-style:none;margin:0;padding:0}
.v2 .pvc-ql li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--s-3);padding:6px 0}
.v2 .pvc-ql li+li{border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .pvc-ql .t{font-size:13px;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .pvc-ql .w{grid-column:1;font-size:12.5px;color:var(--muted)}
.v2 .pvc-ql .c{grid-row:1 / span 2;grid-column:2;align-self:center;font-size:12.5px;color:var(--fg2)}
.v2 .pvc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Blueprint: square, hairlines, small uppercase labels */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvc-k{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvc-lm{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvc-kv dt{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvc-tl{font-size:10.5px;letter-spacing:.03em}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pvc-th{border-radius:0}
@media (prefers-reduced-motion:reduce){.v2 .pvc[data-s="ind"] .pvc-swp{animation:none;transform:none;width:100%;opacity:.3}}
/* ---------- Eval radar ---------- */
/* the baseline as an outline, this run filled over it, on grey scale rings; each axis is a label you can point at or tab to */
.v2 .rdx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-2);container-type:inline-size}
.v2 .rdx-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.v2 .rdx-t{display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .rdx-t b{font-weight:500}
.v2 .rdx-t .muted{font-size:12px}
.v2 .rdx-lg{display:flex;gap:var(--s-1)}
.v2 .rdx-k{display:flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:var(--r-pill);font-size:12px;color:var(--muted);transition:color .2s,background .2s}
@media (hover:hover) and (pointer:fine){.v2 .rdx-k:hover{background:var(--row)}}
.v2 .rdx-k[aria-pressed="true"]{color:var(--fg)}
.v2 .rdx-k i{width:10px;height:10px;border-radius:50%;transition:opacity .3s,transform .3s var(--ease)}
.v2 .rdx-k i.c{background:color-mix(in srgb,var(--c1) 22%,transparent);box-shadow:inset 0 0 0 1.5px var(--c1)}
.v2 .rdx-k i.b{box-shadow:inset 0 0 0 1.5px var(--c2)}
.v2 .rdx-k[aria-pressed="false"] i{opacity:.3;transform:scale(.7)}
.v2 .rdx-ch{position:relative;height:280px}
.v2 .rdx-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.v2 .rdx-svg .ring{fill:none;stroke:color-mix(in srgb,var(--line) 50%,transparent);stroke-width:1}
.v2 .rdx-svg .ring.out{stroke:var(--line)}
.v2 .rdx-svg .sp{stroke:color-mix(in srgb,var(--line) 50%,transparent);stroke-width:1;transition:stroke .2s}
.v2 .rdx-svg .sp.on{stroke:var(--faint)}
.v2 .rdx-svg .base{fill:none;stroke:var(--c2);stroke-width:1.5;stroke-linejoin:round;transition:opacity .3s}
.v2 .rdx-svg .cur{fill:color-mix(in srgb,var(--c1) 16%,transparent);stroke:var(--c1);stroke-width:2;stroke-linejoin:round;transition:opacity .3s}
.v2 .rdx-svg .off{opacity:0}
.v2 .rdx-svg .pt{fill:var(--surface);stroke-width:2;transition:opacity .3s,r .2s var(--ease)}
.v2 .rdx-svg .pt.c{stroke:var(--c1)}.v2 .rdx-svg .pt.b{stroke:var(--c2)}
.v2 .rdx-svg .pt.on{r:4.5}
.v2 .rdx-avg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;padding:2px var(--s-2);border-radius:calc(8px * var(--rk-m,var(--rk)));background:color-mix(in srgb,var(--surface) 82%,transparent);line-height:1.25;pointer-events:none}
.v2 .rdx-avg b{font-size:14px;font-weight:500}
.v2 .rdx-avg .muted{font-size:11px}
/* an axis: its name, this run's score and how far it moved; a weak one says so in words */
.v2 .rdx-ax{position:absolute;display:flex;flex-direction:column;gap:1px;max-width:92px;padding:3px 6px;border-radius:calc(7px * var(--rk-m,var(--rk)));font-size:12px;line-height:1.3;color:var(--fg2);transition:background var(--t-fast),color var(--t-fast)}
.v2 .rdx-ax .v{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);white-space:nowrap}
.v2 .rdx-ax .v b{font-weight:500;color:var(--fg)}
.v2 .rdx-ax .tag{height:16px;padding:0 5px;font-size:10.5px}
.v2 .rdx-ax.l{text-align:right;align-items:flex-end}.v2 .rdx-ax.m{text-align:center;align-items:center}
.v2 .rdx-ax.on{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .rdx-ax:hover{background:var(--row);color:var(--fg)}}
.v2 .rdx-ax.hot{animation:v2-rdxpulse 1.1s var(--ease-io) 3}
@keyframes v2-rdxpulse{50%{transform:scale(1.06);background:var(--row)}}
.v2 .rdx-ro{min-height:56px;display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-3);border-radius:var(--r-in);background:var(--row);font-size:12.5px;color:var(--fg2)}
.v2 .rdx-ro>span{display:flex;align-items:center;gap:var(--s-2)}
.v2 .rdx-ro .i{flex:none;color:var(--accent-fg,var(--accent))}
.v2 .rdx-ro b{font-weight:500;color:var(--fg)}
.v2 .rdx-ro .dn{color:var(--bad)}.v2 .rdx-ro .up{color:var(--ok)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .rdx-svg .ring.out{stroke:var(--rail)}
/* on a phone the labels stack their parts, so the rings get more room, and the average gives way to them */
@container (max-width:300px){.v2 .rdx-ax{max-width:68px}.v2 .rdx-ax .v{flex-wrap:wrap;justify-content:inherit}.v2 .rdx-ax.l .v{justify-content:flex-end}.v2 .rdx-ax.m .v{justify-content:center}.v2 .rdx-avg{display:none}.v2 .rdx-ch{height:260px}}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .rdx.panel{padding:20px 20px 8px 20px}
/* ---------- Radial goals ---------- */
/* one ring per agent, each its share of its own target, in the chart palette's colours in order on a neutral track. What is
   still to go, from the share to the target, is a fine diagonal hatch in the ring's colour over the track (owner, 20 Nov), so
   the gap reads at a glance; past the target the ring is whole and the extra goes round again over its start as a second lap
   in a deeper shade of its colour (a brighter one in dark), cutting into the ring under it, with a small cap where it ends.
   Everything moves with the ring as it draws. The middle is the one big number in the card (the type rules' exception for a
   data card's figure), with its words for screen readers only. The content sits 16px in from every edge: each row's mark sits
   on the content's left edge under the title and its share ends on the right edge, and its hover is a quiet fill that reaches
   out round them */
.v2 .rgx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4);--row:color-mix(in srgb,var(--fg) 5%,transparent)}
.v2 .rgx-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.v2 .rgx-t{display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .rgx-t b{font-weight:500}
.v2 .rgx-t .muted{font-size:12px}
.v2 .rgx-sg button{font-size:12px;height:26px;padding:0 10px}
.v2 .rgx-b{display:flex;align-items:center;gap:var(--s-5);flex-wrap:wrap;justify-content:center}
.v2 .rgx-ring{position:relative;width:172px;height:172px;flex:none}
.v2 .rgx-ring svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.v2 .rgx-ring circle{fill:none;stroke-width:var(--rw,14);transition:opacity var(--t-fast) var(--ease)}
.v2 .rgx-ring g{--rgx-deep:color-mix(in oklab,var(--rc) 70%,var(--rgx-shade,#000))}
.v2 .rgx-ring .tr{stroke:var(--chip)}
.v2 .rgx-ring .fl{stroke:var(--rc)}
.v2 .rgx-ring :is(.fl,.ov,.ovb,.rm){transition:stroke-dasharray .9s var(--ease),stroke-dashoffset .9s var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .rgx-ring :is(.fl,.ov,.ovb){stroke-linecap:round}
/* what is still to go: the ring's own colour as a fine diagonal hatch (each line a full-strength mark) over the track */
.v2 .rgx-hp rect{fill:var(--rc)}
/* the lap past the target, a deeper shade of the ring's colour; its end sits on a slightly wider band of the surface, so it
   cuts into the ring under it and reads as a second lap, and a small cap marks where it ends */
.v2 .rgx-ring .ov{stroke:var(--rgx-deep)}
.v2 .rgx-ring .ovb{stroke:var(--surface);stroke-width:calc(var(--rw,14) * 1px + 3px)}
.v2 .rgx-ring .mk{fill:var(--surface);stroke:var(--rgx-deep);stroke-width:2.5;transform-box:view-box;transform-origin:90px 90px;transition:transform .9s var(--ease),opacity var(--t-fast) var(--ease)}
.v2 .rgx-ring.hov g:not(.on) :is(.fl,.ov,.mk,.rm){opacity:.25}
:root[data-theme="dark"] .v2 .rgx{--rgx-shade:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .rgx{--rgx-shade:#fff}}
/* a ring short of its target has no lap and no marker */
.v2 .rgx-ring g:not(.lap) :is(.ov,.ovb,.mk){opacity:0!important}
.v2 .rgx-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;line-height:1.3;text-align:center}
/* the one big figure in the card: as large as the innermost ring comfortably holds, at the data card's weight */
.v2 .rgx-c b{font-size:22px;font-weight:600;letter-spacing:-.03em;line-height:1}
.v2 .rgx-c .rgx-cl{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.v2 .rgx-lg{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px;margin:-6px -8px}
.v2 .rgx-r{display:grid;grid-template-columns:auto 1fr auto;column-gap:9px;row-gap:1px;align-items:center;width:100%;padding:6px var(--s-2);border-radius:calc(9px * var(--rk-m,var(--rk)));font-size:13px;text-align:left;transition:background-color var(--t-fast) var(--ease);cursor:default}
.v2 .rgx-r.on{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .rgx-r:hover{background:var(--row)}}
.v2 .rgx-r i{width:8px;height:8px;border-radius:50%}
.v2 .rgx-r .n{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .rgx-r .p{font-size:12.5px;color:var(--fg2);text-align:right}
.v2 .rgx-r .v{grid-column:2/4;font-size:12px;color:var(--muted)}
.v2 .rgx-r .tag{height:18px;font-size:11px}
.v2 .rgx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.v2 .rgx{container-type:inline-size}
@container (max-width:300px){.v2 .rgx-lg{min-width:0}.v2 .rgx-h{flex-wrap:wrap}}
.v2 .rgx-sr table{table-layout:fixed;width:1px;border-collapse:collapse}
/* (the table is for screen readers only; its headings keep the type's 500 at most all the same) */
.v2 .rgx-sr :is(th,caption){font-weight:500}
/* ---------- Cost vs quality ---------- */
/* runs as dots: cost along, eval score up, size for tokens, a colour and a shape for each model. Dashed median lines cut the
   chart into four named quadrants; a drag draws a box that selects the runs in it */
.v2 .cvq{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .cvq-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.v2 .cvq-t{display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .cvq-t b{font-weight:500}
.v2 .cvq-t .muted{font-size:12px}
.v2 .cvq-lg{display:flex;gap:2px}
.v2 .cvq-k{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--r-pill);font-size:12px;color:var(--muted);transition:color .2s,background .2s}
@media (hover:hover) and (pointer:fine){.v2 .cvq-k:hover{background:var(--row)}}
.v2 .cvq-k[aria-pressed="true"]{color:var(--fg)}
.v2 .cvq-k svg{width:10px;height:10px;overflow:visible;transition:opacity .3s,transform .3s var(--ease)}
.v2 .cvq-k[aria-pressed="false"] svg{opacity:.3;transform:scale(.7)}
.v2 .cvq-pl{position:relative;height:244px;touch-action:pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none;border-radius:var(--r-sm)}
.v2 .cvq-pl:focus-visible{outline-offset:4px}
.v2 .cvq-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.v2 .cvq-svg .gl{stroke:color-mix(in srgb,var(--line) 40%,transparent);stroke-width:1}
.v2 .cvq-svg .ax{stroke:color-mix(in srgb,var(--line) 80%,transparent);stroke-width:1}
.v2 .cvq-svg .md{stroke:color-mix(in srgb,var(--faint) 75%,transparent);stroke-width:1;stroke-dasharray:3 3}
.v2 .cvq-svg text{font-size:10.5px;fill:var(--muted);font-family:var(--sans)}
.v2 .cvq-svg text.q{font-size:10px}
.v2 .cvq-svg text.at{font-size:10.5px}
.v2 .cvq-svg .d{stroke:var(--surface);stroke-width:1;fill-opacity:.85;transition:opacity .25s,fill-opacity .25s}
.v2 .cvq-svg .d.dim{opacity:.18}
.v2 .cvq-svg .d.off{opacity:0}
.v2 .cvq-svg .d.sel{fill-opacity:1;stroke:var(--fg);stroke-width:1.2}
.v2 .cvq-svg .d.on{fill-opacity:1;stroke:var(--fg);stroke-width:1.5}
.v2 .cvq-svg .ring{fill:none;stroke:var(--fg2);stroke-width:1.2;stroke-dasharray:3 2.5}
.v2 .cvq-svg .box{fill:color-mix(in srgb,var(--fg) 5%,transparent);stroke:var(--fg2);stroke-width:1;stroke-dasharray:4 3}
.v2 .cvq-tt{position:absolute;left:0;top:0;padding:6px 9px;border-radius:calc(10px * var(--rk-m,var(--rk)));background:var(--ink);color:var(--on-ink);font-size:11.5px;display:flex;flex-direction:column;opacity:0;transform:translate(-50%,-100%) translateY(-6px);transition:opacity .15s;pointer-events:none;white-space:nowrap;z-index:2}
.v2 .cvq-tt span{opacity:.75}
.v2 .cvq-tt.on{opacity:1}
.v2 .cvq-ft{min-height:72px;display:flex;align-items:center;gap:var(--s-2);padding:var(--s-2) var(--s-3);border-radius:var(--r-in);background:var(--row);font-size:12.5px;color:var(--fg2)}
.v2 .cvq-msg{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-2)}
.v2 .cvq-msg .i{flex:none;color:var(--accent-fg,var(--accent))}
.v2 .cvq-msg b{font-weight:500;color:var(--fg)}
.v2 .cvq-ft .pill{flex:none}
.v2 .cvq-ft .ib{flex:none;width:26px;height:26px}
.v2 .cvq-ft{flex-wrap:wrap}.v2 .cvq-msg{flex:1 1 180px}
/* phones and narrow cards: the plot is a little shorter, and a selection's words sit above its action, which takes the full width */
.v2 .cvq{container-type:inline-size}
@container (max-width:340px){
  .v2 .cvq-pl{height:228px}
  .v2 .cvq-ft{flex-direction:column;align-items:stretch;justify-content:center;gap:10px}
  .v2 .cvq-msg{flex:none}
  .v2 .cvq-msg:has(>.pill){flex-direction:column;align-items:stretch;gap:10px}
  .v2 .cvq-ft .pill{justify-content:center}
}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .cvq.panel{padding:19px 12px 0px 21px}
/* ---------- Score breakdown ---------- */
/* the gauge is split into one segment per factor, sized by its weight, each filled by the points it earned; the rows under it
   say what each earned and why, and the weakest one says so in words */
/* 16px in from every edge (owner, 18 Nov): the last row's 8px of hover room makes up the bottom. The rows reach 8px out round
   their words, so each row's colour key sits on the content's left edge; the first row is 16px under the hairline. A row's key is
   the gauge's colour for its part (the legend), and its bar is the accent on a neutral track, one colour for every row */
.v2 .sbx{padding:var(--s-4) var(--s-4) var(--s-2);display:flex;flex-direction:column;gap:var(--s-4)}
.v2 .sbx-top{display:flex;align-items:center;gap:var(--s-4)}
.v2 .sbx-g{position:relative;width:160px;height:88px;flex:none}
.v2 .sbx-g svg{width:100%;height:100%;overflow:visible}
/* Soft's gauge has round ends (owner, 21 Nov: "Soft needs to have rounded corners for these lines, because it's Soft"): the script
   draws each part --sbx-cap shorter at both ends, so its round caps keep the gaps between the parts. Blueprint and Studio draw
   square ends */
.v2 .sbx-g{--sbx-cap:8}
.v2 .sbx-g path{fill:none;stroke-width:16;stroke-linecap:round;transition:opacity .3s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sbx-g{--sbx-cap:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sbx-g path{stroke-linecap:butt}
.v2 .sbx-g .tr{stroke:var(--chip)}
.v2 .sbx-g.hov g:not(.on) .fl{opacity:.3}
.v2 .sbx-g g{cursor:default}
.v2 .sbx-v{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;line-height:1.25}
.v2 .sbx-v b{font-size:14px;font-weight:500}
.v2 .sbx-v .muted{font-size:11px}
.v2 .sbx-s{display:flex;flex-direction:column;gap:2px;font-size:13.5px;min-width:0}
.v2 .sbx-s b{font-weight:500}
.v2 .sbx-band{display:flex;align-items:baseline;gap:var(--s-2);flex-wrap:wrap;font-size:12.5px}
/* the change chip keeps its centred text when it crossfades (a swapped element is otherwise an inline block, which drops
   its text to the top), and shares a baseline with the band word beside it */
.v2 .sbx-band .tag{display:inline-flex}
.v2 .sbx-list{display:flex;flex-direction:column;gap:2px;padding-top:var(--s-2);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .sbx-r{margin:0 calc(-1 * var(--s-2));border-radius:calc(10px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease)}
.v2 .sbx-r.on,.v2 .sbx-r.open{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .sbx-r:hover{background:var(--row)}}
.v2 .sbx-rh{display:grid;grid-template-columns:8px minmax(0,1fr) auto 56px 12px;align-items:center;column-gap:10px;width:100%;padding:var(--s-2);font-size:13px;text-align:left}
.v2 .sbx-rh>i{width:8px;height:8px;border-radius:calc(2px * var(--rk-s,var(--rk)))}
.v2 .sbx-rh .n{display:flex;align-items:center;gap:6px;min-width:0}
.v2 .sbx-rh .n>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .sbx-rh .tag{display:inline-flex;align-items:center;height:18px;padding-block:0;font-size:11px;line-height:1;flex:none}
.v2 .sbx-rh:focus-visible{outline-offset:-2px;border-radius:inherit}
.v2 .sbx-rh .e{font-size:12px;color:var(--fg2)}
.v2 .sbx-rh .bar{height:5px;border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden;transition:background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .sbx-r:is(:hover,.on,.open) .sbx-rh .bar{background:var(--surface)}}
.v2 .sbx-rh .bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--accent-mark,var(--accent));transition:width .8s var(--ease)}
.v2 .sbx-rh>svg{color:var(--muted);transition:transform .35s var(--ease)}
.v2 .sbx-r.open .sbx-rh>svg{transform:rotate(90deg)}
.v2 .sbx-nt{grid-column:2/-1;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover) and (pointer:fine){.v2 .sbx-r:is(:hover,.on,.open) .sbx-nt{color:var(--fg2)}}
.v2 .sbx-d{padding:0 var(--s-2) var(--s-2) calc(var(--s-2) + 18px);display:flex;flex-direction:column;gap:var(--s-2);font-size:12.5px;color:var(--fg2);line-height:1.5}
.v2 .sbx-d .acts{display:flex;gap:6px;flex-wrap:wrap}
.v2 .sbx-pr{display:flex;flex-direction:column;gap:6px;padding:10px var(--s-3);border-radius:var(--r-in);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .sbx-pr .k{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.v2 .sbx-pr .k .i{color:var(--accent-fg,var(--accent))}
.v2 .sbx-pr .gain{font-size:12px;color:var(--fg2)}
.v2 .sbx-pr .gain b{font-weight:500;color:var(--ok);white-space:nowrap}
/* on a phone the gauge sits over its title, and the rows drop their small bars */
.v2 .sbx{container-type:inline-size}
@container (max-width:340px){.v2 .sbx-top{flex-direction:column;gap:var(--s-2)}.v2 .sbx-s{align-items:center;text-align:center}.v2 .sbx-band{justify-content:center}.v2 .sbx-rh{grid-template-columns:8px minmax(0,1fr) auto 12px}.v2 .sbx-rh .bar{display:none}}
:root[data-style="studio"] .v2 .sbx-pr .k .i{color:var(--fg2)}
/* Studio (owner, 21 Nov: Studio must differ from Soft). The gauge is thinner, with square ends and a neutral track; the factors sit
   under a hairline that runs the card's width, as Studio's sections do. Each factor is a 10px row under one gliding hover
   (hoverGlide), an open one taking the one selected fill; its key is a round dot, and its bar a sunk track (Studio's inner
   shadow over the fill). The agent's fix inside an open factor is an inset off-white note with 10px corners */
:root[data-style="studio"] .v2 .sbx-g{--sbx-cap:0}
:root[data-style="studio"] .v2 .sbx-g path{stroke-width:12;stroke-linecap:butt}
:root[data-style="studio"] .v2 .sbx-g .tr{stroke:var(--soft)}
:root[data-style="studio"] .v2 .sbx-list{margin:0 -16px;padding:8px 16px 0;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .sbx-r{border-radius:10px}
:root[data-style="studio"] .v2 .sbx-r.open{background:var(--row-on)}
:root[data-style="studio"] .v2 .sbx-rh>i{border-radius:50%}
:root[data-style="studio"] .v2 .sbx-rh .bar{position:relative;background:var(--soft);border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 .sbx-rh .bar::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:var(--track-ring);pointer-events:none}
:root[data-style="studio"] .v2 .sbx-pr{background:var(--strip);box-shadow:none;border-radius:10px}
/* in dark mode a track on a lit row takes the hover grey, so it still shows */
@media (hover:hover) and (pointer:fine){:root[data-theme="dark"] .v2 .sbx-r:is(:hover,.on,.open) .sbx-rh .bar{background:var(--hover)}}
@media (prefers-color-scheme:dark){@media (hover:hover) and (pointer:fine){:root:not([data-theme="light"]) .v2 .sbx-r:is(:hover,.on,.open) .sbx-rh .bar{background:var(--hover)}}}
/* ---------- Slider ---------- */
/* three sliders on one grey track style: a knob you drag or move with the keys, the value over it while it moves, and the
   part of the track it covers in the accent */
.v2 .sdx{padding:var(--s-4);display:flex;flex-direction:column;gap:var(--s-4)}
.v2 .sdx-b{display:flex;flex-direction:column;gap:var(--s-1)}
.v2 .sdx-b+.sdx-b{padding-top:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .sdx-h{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s-2);font-size:13px}
.v2 .sdx-v{color:var(--fg2);font-size:12.5px}
.v2 .sdx-tr{position:relative;height:32px;touch-action:none;cursor:pointer;margin:0 10px}
.v2 .sdx-rail{position:absolute;left:-10px;right:-10px;top:50%;height:6px;margin-top:-3px;border-radius:calc(3px * var(--rk-s,var(--rk)));background:var(--chip);overflow:hidden}
.v2 .sdx-fill{position:absolute;top:0;bottom:0;left:0;width:0;background:var(--accent-mark,var(--accent))}
/* the knob: a white squircle you drag (owner, 5 Nov), white in dark mode too, on a hairline and a soft shadow; square in Blueprint.
   It is playful in the hand (owner, 5 Nov): grabbed, it springs up and lifts; dragged, it leans into the way it moves and
   rights itself when you stop; let go, it bounces back down; and it gives a little hop when it snaps to the agent's mark.
   The body (.sdx-kb) moves, so the value above it stays upright. A press never shows the focus ring (.ptr); keys do */
.v2 .sdx-k{position:absolute;top:50%;left:0;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:calc(6px * var(--rk-s,var(--rk)));cursor:grab;z-index:2}
.v2 .sdx-kb{position:absolute;inset:0;border-radius:calc(6px * var(--rk-s,var(--rk)));corner-shape:squircle;background:#fff;box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 70%,transparent),0 1px 2px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.08);transform:rotate(var(--tilt,0deg)) scale(var(--ks,1));transition:transform .5s cubic-bezier(.34,1.56,.64,1),box-shadow .25s var(--ease)}
.v2 .sdx-tr.drag .sdx-k.on .sdx-kb{--ks:1.2;box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 70%,transparent),0 4px 8px rgba(0,0,0,.12),0 10px 22px rgba(0,0,0,.14);transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .2s var(--ease)}
.v2 .sdx-k.ptr:focus-visible{outline:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sdx-k,:root:not([data-style="soft"],[data-style="studio"]) .v2 .sdx-kb{border-radius:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sdx-kb{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 70%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sdx-tr.drag .sdx-k.on .sdx-kb{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 70%,transparent),0 6px 14px rgba(0,0,0,.18)}
@media (prefers-reduced-motion:reduce){.v2 .sdx-kb{transition:none;transform:none!important}}
.v2 .sdx-k:focus-visible{outline-offset:3px}
.v2 .sdx-tr.glide .sdx-k{transition:left .45s cubic-bezier(.34,1.3,.64,1)}
.v2 .sdx-tr.glide .sdx-fill{transition:left .45s var(--ease),width .45s var(--ease)}
.v2 .sdx-tr.drag .sdx-k.on{cursor:grabbing}
.v2 .sdx-tt{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%) translateY(4px) scale(.7);transform-origin:50% 100%;padding:3px var(--s-2);border-radius:var(--r-pill);background:var(--ink);color:var(--on-ink);font-size:11px;white-space:nowrap;opacity:0;transition:opacity .15s,transform .35s cubic-bezier(.34,1.56,.64,1);pointer-events:none}
.v2 .sdx-k.on.say .sdx-tt,.v2 .sdx-tr.drag .sdx-k.on .sdx-tt{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
@media (hover:hover) and (pointer:fine){.v2 .sdx-k:hover .sdx-tt{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}
.v2 .sdx-tr.drag .sdx-k.on .sdx-tt{transform:translateX(-50%) translateY(-4px) scale(1)}
/* the value the agent recommends: a mark over the track that you can press, and a notch in it; a knob dropped near it snaps to it */
.v2 .sdx-rec{position:absolute;top:-17px;width:20px;height:20px;margin-left:-10px;display:grid;place-items:center;border-radius:calc(6px * var(--rk-s,var(--rk)));color:var(--accent-fg,var(--accent));z-index:1;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .sdx-rec:hover{background:var(--accent-bg)}}
.v2 .sdx-rec .i{width:12px;height:12px}
.v2 .sdx-tr[data-s="cr"] .sdx-rail{box-shadow:none}
.v2 .sdx-notch{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--surface)}
.v2 .sdx-stops{display:flex;justify-content:space-between;margin:0 -6px}
.v2 .sdx-stops button{height:24px;padding:0 6px;border-radius:calc(6px * var(--rk-s,var(--rk)));font-size:12px;color:var(--muted);transition:background var(--t-fast),color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .sdx-stops button:hover{background:var(--row);color:var(--fg)}}
.v2 .sdx-stops button[aria-pressed="true"]{color:var(--fg)}
.v2 .sdx-sm{margin:var(--s-1) 0 0;min-height:calc(2 * 1.5em);font-size:13px;line-height:1.5;color:var(--fg2)}
.v2 .sdx-ticks{position:relative;height:28px;margin:-6px 10px 0}
.v2 .sdx-ticks button{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;gap:3px;width:32px;margin-left:-16px;padding-top:2px;font-size:11.5px;color:var(--muted);border-radius:calc(6px * var(--rk-s,var(--rk)));transition:color var(--t-fast)}
.v2 .sdx-ticks button i{width:1px;height:5px;background:var(--faint)}
.v2 .sdx-ticks button[aria-pressed="true"]{color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .sdx-ticks button:hover{color:var(--fg)}}
.v2 .sdx-ticks button[aria-pressed="true"] i{background:var(--fg2)}
.v2 .sdx-ends{display:flex;justify-content:space-between;font-size:11.5px;margin-top:-2px}
/* Studio: equal padding (owner, 17 Nov): its content 20px in from every edge */
:root[data-style="studio"] .v2 .sdx.panel{padding:19px 26px 18px 26px}
/* ---------- Carousel ---------- */
/* one carousel, two types, picked with the switch under it (owner, 4 Nov). Both run on the same native scroll-snap track: a
   swipe, a trackpad, a mouse drag, the arrows, the dots and the keys all move it, and each slide is a framed picture with
   its caption, the next one peeking in. A picture coming into view comes into focus (Soft: out of a blur; Blueprint never
   blurs, so there a veil wipes off it).
   - Variants: the drafts an agent made from one brief, in a panel with its title. Each fills in as it arrives, can fail
     with Retry, and can be kept: Keep turns from an outline to a fill, its frame's edge steps up and the others step back.
   - Images: a gallery of pictures, bare, with Previous and Next above the track.
   --w is a slide's width (80% for images, 84% for variants; 100% shows one at a time, a fixed width mixes sizes), --gap the
   space between slides, --h one height for every picture, and data-align="center" on .crs-c snaps slides to the middle */
.v2 .crs-c{width:100%;min-width:0;display:flex;flex-direction:column;gap:var(--s-3)}
.v2 .crs-c[hidden]{display:none}
.v2 .crs-c.panel{padding:var(--s-4) 0;--w:84%;--gap:var(--s-3)}
.v2 .crs-h{display:flex;align-items:center;justify-content:flex-end;gap:var(--s-2)}
.v2 .crs-c.panel>.crs-h,.v2 .crs-c.panel>.crs-dots{padding:0 var(--s-4)}
.v2 .crs-t{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13.5px;line-height:1.4}
.v2 .crs-t b{font-weight:500}
.v2 .crs-sub{font-size:12px}
.v2 .crs-nav{width:32px;padding:0}
@media (hover:hover) and (pointer:fine){.v2 .crs-nav:not(:disabled):hover{background:var(--row)}}
.v2 .crs-tr{position:relative;display:flex;gap:var(--gap,var(--s-4));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:calc(14px * var(--rk-l,var(--rk)))}
.v2 .crs-tr::-webkit-scrollbar{display:none}
.v2 .crs-c.panel>.crs-tr{padding:0 var(--s-4);scroll-padding-inline:var(--s-4);border-radius:0}
.v2 .crs-c.panel>.crs-tr:focus-visible{outline-offset:-2px;border-radius:var(--r-in)}
.v2 .crs-tr.drag{scroll-snap-type:none;cursor:grabbing;user-select:none;-webkit-user-select:none}
.v2 .crs-s{flex:0 0 var(--w,80%);min-width:0;display:flex;scroll-snap-align:start;transition:opacity .35s var(--ease)}
.v2 .crs-c[data-align="center"] .crs-s{scroll-snap-align:center}
.v2 .crs-fig{flex:1;min-width:0;margin:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid color-mix(in srgb,var(--line) 50%,transparent);border-radius:calc(14px * var(--rk-l,var(--rk)));overflow:hidden;transition:border-color var(--t-fast)}
.v2 .crs-c.panel .crs-fig{border-radius:var(--r-in)}
/* the picture (or, for a draft, its frame): out of view it is soft and faded, clipped to its frame so the blur never spills
   onto the caption; in view it comes into focus */
.v2 .crs-pic,.v2 .crs-pv{position:relative;aspect-ratio:var(--ar,3/2);height:var(--h,auto);background-color:var(--row);clip-path:inset(0);transition:filter .7s var(--ease),opacity .7s var(--ease)}
.v2 .crs-pic{background-image:var(--art);background-size:cover;background-position:center}
.v2 .crs-s:not(.in) :is(.crs-pic,.crs-pv){filter:blur(10px);opacity:.6}
/* Blueprint's veil, the surface over a picture that is out of view, wipes off from the left as the picture comes in */
.v2 .crs-pic::after,.v2 .crs-pv::after{content:"";position:absolute;inset:0;z-index:1;background:var(--surface);opacity:0;clip-path:inset(0 0 0 100%);pointer-events:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .crs-s:not(.in) :is(.crs-pic,.crs-pv){opacity:1}
:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.crs-pic,.crs-pv)::after{opacity:.6;transition:clip-path var(--t-slow) var(--ease)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .crs-s:not(.in) :is(.crs-pic,.crs-pv)::after{clip-path:inset(0)}
/* the caption: the title over a quieter line, as a draft's label sits over its meta, so every slide keeps one height */
.v2 .crs-cap{display:flex;flex-direction:column;padding:10px var(--s-3);font-size:13px;line-height:1.35}
.v2 .crs-cap b{font-weight:500;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .crs-cap .muted{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a draft is a 3:2 frame that holds its picture once it arrives (owner, 4 Nov). Until then it is a grey frame with an image
   mark; while the agent makes it, it builds up out of pixels on a canvas (crsPixels, with the script), and the picture comes
   into focus over the last of them as it lands. The picture waits in the frame from the start, unseen (.pre), so its colours
   are there to build from */
.v2 .crs-pv{padding:var(--s-4);display:flex;flex-direction:column;justify-content:center;gap:6px;overflow:hidden}
.v2 .crs-pv>.ph{align-self:center;width:24px;height:24px;color:var(--faint)}
.v2 .crs-pv.gen>.ph{animation:v2-crsph .5s var(--ease) forwards}
@keyframes v2-crsph{to{opacity:0;transform:scale(.8)}}
.v2 .crs-px{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.v2 .crs-img{position:absolute;inset:0;background-image:var(--art);background-size:cover;background-position:center;animation:v2-crsin .9s var(--ease) both}
.v2 .crs-img.pre{animation:none;opacity:0}
/* the picture comes into focus as it arrives; Blueprint never blurs, so there it wipes in from the left */
@keyframes v2-crsin{from{opacity:0;filter:blur(16px);transform:scale(1.06)}to{opacity:1;filter:none;transform:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .crs-img{animation-name:v2-crswipe;animation-duration:var(--t-slow)}
@keyframes v2-crswipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
.v2 .crs-pv.fail{align-items:center;text-align:center;gap:var(--s-1)}
.v2 .crs-pv.fail>.i{color:var(--bad)}
.v2 .crs-pv.fail b{font-size:13px;font-weight:500;color:var(--fg)}
.v2 .crs-pv.fail .muted{font-size:12px}
.v2 .crs-pv.fail .pill{margin-top:6px}
.v2 .crs-pv.fail>*{animation:v2-crsup .4s var(--ease) both}
@keyframes v2-crsup{from{opacity:0;transform:translateY(4px)}}
.v2 .crs-f{display:flex;align-items:center;gap:var(--s-2);min-height:28px;padding:10px var(--s-3)}
.v2 .crs-f>div{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px;line-height:1.35}
.v2 .crs-f b{font-weight:500}
.v2 .crs-f .muted{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.v2 .crs-f .tag .spin{width:9px;height:9px}
.v2 .crs-keep[aria-pressed="true"]{background:var(--accent);color:var(--on-accent,#fff);box-shadow:none}
.v2 .crs-c.kept .crs-s:not(.kept){opacity:.45}
.v2 .crs-s.kept .crs-fig{border-color:color-mix(in srgb,var(--pick-on) 70%,transparent)}
.v2 .crs-dots{display:flex;justify-content:center;gap:6px}
.v2 .crs-dots[hidden]{display:none}
.v2 .crs-dots button{width:6px;height:6px;border-radius:var(--r-pill);background:var(--rail);transition:width var(--t) var(--ease),background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .crs-dots button:hover{background:var(--faint)}}
.v2 .crs-dots button[aria-current="true"]{width:16px;background:var(--fg2)}
.v2 .crs-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.v2 :is(.crs-pic,.crs-pv),.v2 :is(.crs-pic,.crs-pv)::after,:root:not([data-style="soft"],[data-style="studio"]) .v2 :is(.crs-pic,.crs-pv)::after{transition:none}}
/* ---------- Image generation ---------- */
/* a prompt and what it made on the left, earlier pictures and style presets on the right (owner, 5 Nov). Each picture is
   made in three stages, the way an image model works: Composing (a grid of dots in the picture's colours grows out of
   grain), Adding detail (the blur lifts step by step while a scan line sweeps down and leaves the detailed picture behind
   it) and Upscaling (the last softness and grain go). The steps are a model's denoising steps: the picture changes a step
   at a time and eases between them. Every picture moves at its own speed, and one can fail with Retry. Upscale sweeps the
   line down once more over a softened copy. Blueprint never blurs: its dots are square cells, the picture shows through
   them at half strength, and its scan line is the accent's mark. With reduced motion a picture fades in once it is done.
   --ar is a picture's width over its height, --art the gradient of its colours that stands in for it; on a picture being
   made, --dot (Blueprint: --sq) is the size of its dots, --bl the blur, --gr the grain, --sc how far the scan has come and
   --stp how long a step takes */
.v2.stage-in.wide:has(>.igx){max-width:900px}
.v2 .igx{width:100%;container:igx/inline-size;text-align:left}
.v2 .igx-in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:var(--s-3);height:572px}
.v2 .igx-main,.v2 .igx-side{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden}
/* both panels' heads are one height: 16px above and below a 28px row (owner, 23 Nov), the words on that row's line, and the
   view switch on a narrow stage 16px in from the sides */
.v2 .igx-h{flex:none;display:flex;align-items:center;gap:var(--s-2);height:calc(28px + 2 * var(--s-4) + 1px);padding:0 var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent);font-size:13px}
.v2 .igx-cr{flex:1;min-width:0;display:flex;align-items:center;gap:2px;line-height:28px;white-space:nowrap;color:var(--muted)}
.v2 .igx-cr .i{color:var(--faint);flex:none}
.v2 .igx-cr b{min-width:0;font-weight:500;color:var(--fg);overflow:hidden;text-overflow:ellipsis}
.v2 .igx-vw{display:none}
/* the feed: the prompt as sent, then what it made */
.v2 .igx-feed{flex:1;min-height:0;display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-4) var(--s-4) var(--s-2)}
.v2 .igx-ask{flex:none;max-width:88%;font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.v2 .igx-ask:empty{display:none}
.v2 .igx-run{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
.v2 .igx-run[hidden]{display:none}
.v2 .igx-rh{flex:none;display:flex;align-items:center;gap:var(--s-3);min-height:20px;font-size:13px}
.v2 .igx-rt{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s-2);white-space:nowrap}
.v2 .igx-rt>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2 .igx-rt .i{color:var(--fg2)}
.v2 .igx-rt .spin{width:11px;height:11px;color:var(--fg2)}
/* "Generating 4 pictures" shimmers while they are made, as every loader's words do (owner, 19 Nov) */
.v2 .igx-rt .shim{font-size:inherit}
/* the three stages and how far the run has come: the stage in hand is ink, the ones done are ticked */
.v2 .igx-steps{flex:none;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);white-space:nowrap}
.v2 .igx-steps span{display:inline-flex;align-items:center;gap:5px;transition:color var(--t-fast)}
.v2 .igx-steps i{width:6px;height:6px;border-radius:50%;background:var(--rail);transition:background var(--t-fast)}
.v2 .igx-steps .on{color:var(--fg)}
.v2 .igx-steps .on i{background:var(--fg2)}
.v2 .igx-steps .done{color:var(--fg2)}
.v2 .igx-steps .done i{display:none}
.v2 .igx-steps .i{display:none;width:12px;height:12px}
.v2 .igx-steps .done .i{display:inline-block}
.v2 .igx-pc{flex:none;min-width:34px;font-size:12px;color:var(--fg2);text-align:right}
/* the pictures share the room left, as large as their shape and number allow: --cols and --rows are the layout that
   gives each the most room, measured by the script */
.v2 .igx-tiles{flex:1;min-height:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:var(--s-2);container-type:size}
.v2 .igx-t{position:relative;flex:none;margin:0;width:min(calc((100cqw - (var(--cols,1) - 1) * var(--s-2)) / var(--cols,1)),calc((100cqh - (var(--rows,1) - 1) * var(--s-2)) / var(--rows,1) * var(--ar,1)));aspect-ratio:var(--ar,1);border-radius:var(--r-in);overflow:hidden;isolation:isolate;background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .igx-o{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:inherit;cursor:zoom-in}
.v2 .igx-o:disabled{cursor:default}
.v2 .igx-o:focus-visible{outline-offset:-2px}
.v2 .igx-ly{position:absolute;inset:0;background-image:var(--art);background-size:cover;background-position:center;pointer-events:none}
/* the base: the picture's colours, soft, seen through the dots while it is composed */
.v2 .igx-b{transform:scale(calc(1.14 * var(--vz,1)));transform-origin:var(--vo,50% 50%);filter:blur(var(--bl,18px)) saturate(1.3);opacity:0;transition:filter var(--stp,.2s) linear,opacity .5s var(--ease)}
.v2 .igx-t:is([data-st="gen"],[data-st="fail"]) .igx-b{opacity:1}
.v2 .igx-t[data-st="gen"] .igx-b{-webkit-mask:radial-gradient(circle,#000 var(--dot,1px),transparent calc(var(--dot,1px) + 1px)) 50% 50%/var(--cell,12px) var(--cell,12px);mask:radial-gradient(circle,#000 var(--dot,1px),transparent calc(var(--dot,1px) + 1px)) 50% 50%/var(--cell,12px) var(--cell,12px)}
.v2 .igx-t[data-st="fail"] .igx-b{filter:blur(var(--bl,18px)) grayscale(1);opacity:.55}
/* the detailed picture, uncovered by the scan */
.v2 .igx-s{transform:scale(var(--vz,1));transform-origin:var(--vo,50% 50%);clip-path:inset(0 0 calc(100% - var(--sc,1) * 100%) 0);filter:blur(var(--sb,0px));transition:clip-path var(--stp,.2s) linear,filter var(--stp,.2s) linear,opacity .5s var(--ease)}
.v2 .igx-t:is([data-st="wait"],[data-st="fail"]) .igx-s{opacity:0}
/* grain, which fades as the picture settles */
.v2 .igx-n{position:absolute;inset:0;pointer-events:none;background-image:var(--noise,none);background-size:96px 96px;opacity:var(--gr,0);transition:opacity var(--stp,.2s) linear}
.v2 .igx-t:is([data-st="wait"],[data-st="gen"]) .igx-n{animation:v2-igxgr .48s steps(1,end) infinite}
.v2 .igx-t[data-st="wait"] .igx-n{opacity:.5}
@keyframes v2-igxgr{0%{background-position:0 0}25%{background-position:-31px 17px}50%{background-position:23px -41px}75%{background-position:-13px -29px}}
/* the scan line: a thin light with a faint wash above it */
.v2 .igx-l{position:absolute;inset:0;pointer-events:none;opacity:0;transform:translateY(calc(var(--sc,0) * 100%));transition:transform var(--stp,.2s) linear,opacity .3s}
.v2 .igx-l>span{position:absolute;left:0;right:0}
.v2 .igx-l>span:first-child{top:-1px;height:2px;background:rgba(255,255,255,.92)}
.v2 .igx-l>span:last-child{bottom:100%;height:32px;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.22))}
.v2 .igx-t[data-st="gen"] .igx-l{opacity:var(--lo,0)}
/* Upscale: the picture softens, and the line sweeps down once leaving it sharp */
.v2 .igx-t.up .igx-b{opacity:1;-webkit-mask:none;mask:none;filter:blur(3px);transition:none}
.v2 .igx-t.up .igx-s{animation:v2-igxrv 1.6s var(--ease-io) both}
.v2 .igx-t.up .igx-l{animation:v2-igxsc 1.6s var(--ease-io) both}
@keyframes v2-igxrv{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
@keyframes v2-igxsc{from{opacity:1;transform:translateY(0)}88%{opacity:1}to{opacity:0;transform:translateY(100%)}}
/* how far a picture has come, until it is done */
/* (a chip over a picture is opaque and neutral, so nothing shows through it) */
.v2 .igx-tp{position:absolute;left:var(--s-2);bottom:var(--s-2);height:20px;padding:0 7px;display:inline-flex;align-items:center;border-radius:var(--r-tag);background:var(--surface);color:var(--fg);font-size:11.5px;font-weight:500;opacity:0;transition:opacity .3s;pointer-events:none}
.v2 .igx-t:is([data-st="wait"],[data-st="gen"]) .igx-tp{opacity:1}
.v2 .igx-tg{position:absolute;left:6px;top:6px;background:var(--surface);color:var(--fg);pointer-events:none}
.v2 .igx-tg:empty{display:none}
/* a picture that failed: what happened and Retry, over its faded colours */
.v2 .igx-f{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-1);padding:var(--s-2);text-align:center;background:color-mix(in srgb,var(--surface) 84%,transparent);font-size:12px;line-height:1.35;color:var(--fg2)}
.v2 .igx-t[data-st="fail"] .igx-f{display:flex}
.v2 .igx-f>.i{color:var(--bad)}
.v2 .igx-f b{font-size:12.5px;font-weight:500;color:var(--fg)}
.v2 .igx-f .pill{margin-top:var(--s-1)}
/* quick actions on a finished picture, under the pointer or the keyboard */
.v2 .igx-q{position:absolute;right:6px;bottom:6px;display:flex;gap:2px;padding:2px;border-radius:calc(11px * var(--rk));background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:var(--shadow);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity var(--t-fast),transform var(--t-fast) var(--ease)}
.v2 .igx-q .ib{width:28px;height:28px}
@media (hover:hover) and (pointer:fine){.v2 .igx-t[data-st="done"]:hover .igx-q{opacity:1;transform:none;pointer-events:auto}}
.v2 .igx-t[data-st="done"]:is(:focus-within,.hov) .igx-q{opacity:1;transform:none;pointer-events:auto}
/* under the pictures: rate them, copy the prompt, and what made them */
.v2 .igx-acts{flex:none;display:flex;align-items:center;gap:2px;min-height:30px;margin-left:-6px}
.v2 .igx-acts .ib[aria-pressed="true"],.v2 .igx-lb .ib[aria-pressed="true"]{background:var(--chip);color:var(--fg)}
.v2 .igx-sep{flex:none;width:1px;height:16px;margin:0 6px;background:color-mix(in srgb,var(--line) 100%,transparent)}
.v2 .igx-meta{flex:1;min-width:0;font-size:12px;color:var(--muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* before anything is made */
.v2 .igx-empty{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-3);font-size:13px;color:var(--muted);text-align:center}
.v2 .igx-empty[hidden]{display:none}
.v2 .igx-ef{display:flex;gap:var(--s-2)}
.v2 .igx-ef span{width:40px;aspect-ratio:3/4;display:grid;place-items:center;border-radius:var(--r-sm);background:var(--row);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);color:var(--faint)}
.v2 .igx-ef span:nth-child(2){transform:translateY(-6px)}
/* the composer: references, the prompt, its styles, and the settings for the run */
.v2 .igx-cmp{flex:none;margin:0 var(--s-4) var(--s-4);display:flex;flex-direction:column;border-radius:var(--r-box);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--field-line) 50%,transparent);transition:box-shadow var(--t-fast)}
.v2 .igx-cmp:focus-within{box-shadow:inset 0 0 0 1px var(--field-line-strong)}
.v2 .igx-refs{display:flex;flex-wrap:wrap;gap:6px;padding:10px var(--s-3) 0}
.v2 .igx-refs:empty{display:none}
.v2 .igx-ref{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 var(--s-1) 0 3px;border-radius:var(--r-tag);background:var(--chip);font-size:12px;color:var(--fg2);white-space:nowrap}
.v2 .igx-ref .igx-rp{position:relative;width:20px;height:20px;border-radius:calc(5px * var(--rk));overflow:hidden;background:var(--row)}
.v2 .igx-ref .ib{width:20px;height:20px}
.v2 .igx-ta{display:block;width:100%;height:58px;border:0;outline:0;resize:none;background:none;color:var(--fg);font:inherit;font-size:14px;line-height:1.45;padding:var(--s-3) var(--s-3) 2px}
.v2 .igx-ta::placeholder{color:var(--muted)}
/* (on its right the chips stop 8px in, where Generate ends below them, so a row that scrolls on a phone ends where it does) */
.v2 .igx-sty{display:flex;flex-wrap:wrap;gap:6px;padding:6px var(--s-2) 0 var(--s-3)}
/* a style chip is a white tile with a dimmed edge; picked, its edge steps up and a tick slides in */
.v2 .igx-sc{display:inline-flex;align-items:center;gap:0;height:26px;padding:0 10px;border-radius:var(--r-tag);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 100%,transparent);font-size:12.5px;color:var(--fg2);white-space:nowrap;transition:background var(--t-fast),color var(--t-fast),box-shadow var(--t-fast),gap var(--t) var(--ease)}
.v2 .igx-sc .i{width:0;opacity:0;transition:width var(--t) var(--ease),opacity var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .igx-sc:hover{background:var(--row);color:var(--fg)}}
.v2 .igx-sc[aria-pressed="true"]{gap:5px;color:var(--fg);box-shadow:inset 0 0 0 1px var(--faint)}
.v2 .igx-sc[aria-pressed="true"] .i{width:12px;opacity:1}
.v2 .igx-sc.hl{background:var(--row)}
/* the settings' icons start on the prompt's column (their hover reaching out round them); Generate sits 8px in from the
   composer's corner */
.v2 .igx-bar{display:flex;align-items:center;gap:var(--s-1);padding:var(--s-2) var(--s-2) var(--s-2) 2px}
.v2 .igx-bar .chip{height:32px;padding:0 10px;gap:6px;background:none;min-width:0;font-size:13px;color:var(--fg2)}
.v2 .igx-bar .chip[aria-expanded="true"]{background:var(--row);color:var(--fg)}
@media (hover:hover) and (pointer:fine){.v2 .igx-bar .chip:hover{background:var(--row);color:var(--fg)}}
.v2 .igx-bar .chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2 .igx-bar .chip>.i:last-child{color:var(--muted)}
.v2 .igx-bar .sp{flex:1}
.v2 .igx-go{flex:none}
/* the settings: shape and how many, two switches in a small panel */
.v2 .igx-pp-set{min-width:236px;padding:var(--s-2) 10px 10px}
.v2 .igx-pp-set .ph{padding:var(--s-1) 0 6px}
.v2 .igx-pp-set .seg2{display:flex;margin-bottom:var(--s-1)}
.v2 .igx-pp-set .seg2 button{flex:1}
/* the side: earlier pictures and style presets */
.v2 .igx-sh{flex:none;display:flex;align-items:center;gap:var(--s-2);height:calc(28px + 2 * var(--s-4) + 1px);padding:0 var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .igx-sh .sp{flex:1}
.v2 .igx-sh .muted{font-size:12px}
.v2 .igx-pane{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--s-4)}
.v2 .igx-pane[hidden]{display:none}
.v2 .igx-pane:focus-visible{outline-offset:-2px}
/* the gallery: two columns, each picture in its own shape, the newest first */
.v2 .igx-gal{display:flex;gap:6px;align-items:flex-start}
.v2 .igx-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.v2 .igx-g{position:relative;display:block;width:100%;aspect-ratio:var(--ar,1);border-radius:var(--r-sm);overflow:hidden;background:var(--row);cursor:zoom-in;transition:opacity var(--t-fast)}
.v2 .igx-g .igx-ly{transform:scale(var(--vz,1));transform-origin:var(--vo,50% 50%);transition:transform .5s var(--ease)}
@media (hover:hover) and (pointer:fine){.v2 .igx-g:hover .igx-ly{transform:scale(calc(var(--vz,1) * 1.04))}}
.v2 .igx-g:focus-visible{outline-offset:-2px}
.v2 .igx-g.new{animation:v2-igxnew .7s var(--ease) both}
@keyframes v2-igxnew{from{opacity:0;filter:blur(8px);transform:translateY(-8px)}to{opacity:1;filter:none;transform:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-g.new{animation:v2-igxwipe var(--t-slow) var(--ease) both}
@keyframes v2-igxwipe{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
/* the style presets, one to a row: a picture, then its name and what it sets beside it (owner, 24 Nov: two to a row was too
   crammed in the side panel) */
.v2 .igx-prs{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s-2)}
.v2 .igx-pr{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;column-gap:var(--s-3);padding:var(--s-2);border-radius:var(--r-in);background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 100%,transparent);text-align:left;transition:background var(--t-fast),box-shadow var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .igx-pr:hover{background:var(--row)}}
.v2 .igx-pr[aria-pressed="true"]{box-shadow:inset 0 0 0 1px var(--faint)}
.v2 .igx-prp{position:relative;display:block;width:48px;aspect-ratio:4/3;border-radius:var(--r-sm);overflow:hidden;background:var(--row)}
.v2 .igx-prt{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:12.5px;line-height:1.35}
.v2 .igx-prt b{font-weight:500;color:var(--fg)}
.v2 .igx-prt .muted{font-size:11.5px;text-wrap:pretty}
/* the larger view: over the whole component, the picture as large as it fits, with every action */
.v2 .igx-lb{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.v2 .igx-lb[hidden]{display:none}
/* while the larger view is open, what it covers is hidden too, once it has faded in (and shows again at once when it closes),
   so nothing under the dialog can be reached or read */
.v2 .igx-in:has(>.igx-lb:not([hidden]))>:is(.igx-main,.igx-side){visibility:hidden;transition:visibility 0s .6s}
.v2 .igx-lb.open{animation:v2-igxlb .42s var(--ease) both}
@keyframes v2-igxlb{from{opacity:0}to{opacity:1}}
.v2 .igx-lb.open .igx-lbs>.igx-t{animation:v2-igxlbp .6s var(--ease) both}
@keyframes v2-igxlbp{from{opacity:0;transform:scale(.94);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-lb.open{animation:v2-igxwipe var(--t-slow) var(--ease) both}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-lb.open .igx-lbs>.igx-t{animation:none}
/* (Close is a bare icon button in the corner: its glyph ends on the 16px column, where Next ends below it) */
.v2 .igx-lbh{flex:none;display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4) var(--s-2) var(--s-4) var(--s-4);border-bottom:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .igx-lbt{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px;line-height:1.35}
.v2 .igx-lbt b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .igx-lbt .muted{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .igx-lbb{flex:1;min-height:0;display:flex;align-items:center;gap:var(--s-2);padding:var(--s-4)}
.v2 .igx-lbs{flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center;container-type:size}
.v2 .igx-lbs>.igx-t{width:min(100cqw,100cqh * var(--ar,1));cursor:default}
.v2 .igx-lbn{flex:none;width:32px;padding:0}
@media (hover:hover) and (pointer:fine){.v2 .igx-lbn:not(:disabled):hover{background:var(--row)}}
.v2 .igx-lbf{flex:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--s-1);padding:var(--s-4);border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}
.v2 .igx-lbf .igx-sep{margin:0 var(--s-1)}
.v2 .igx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* a narrower feed keeps only the stage in hand beside the title */
@container igx (max-width:780px){.v2 .igx-steps span:not(.on){display:none}}
/* between the two, the side gives the pictures a little more room, and a failed picture keeps only its title and Retry */
@container igx (max-width:820px){.v2 .igx-in{grid-template-columns:minmax(0,1fr) 212px}.v2 .igx-f>span{display:none}}
/* narrower: the gallery and the styles take the feed's place, picked in the header */
@container igx (max-width:620px){
  .v2 .igx-in{grid-template-columns:minmax(0,1fr);height:600px}
  .v2 .igx-main,.v2 .igx-side{grid-area:1/1}
  .v2 .igx-side{margin-top:calc(28px + 2 * var(--s-4) + 1px);border-radius:0 0 var(--r-card) var(--r-card);box-shadow:none;visibility:hidden}
  .v2 .igx-sh{display:none}
  .v2 .igx-vw{display:inline-flex}
  .v2 .igx-cr{display:none}
  .v2 .igx-h{justify-content:space-between}
  .v2 .igx-in:is([data-view="gallery"],[data-view="styles"]) .igx-side{visibility:visible;z-index:2}
  .v2 .igx-in:is([data-view="gallery"],[data-view="styles"]) :is(.igx-feed,.igx-cmp){visibility:hidden}
  .v2 .igx-steps span:not(.on){display:none}
  .v2 .igx-pane{padding:var(--s-4)}
  .v2 .igx-gal{gap:var(--s-2)}.v2 .igx-col{gap:var(--s-2)}
  .v2 .igx-prs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container igx (max-width:440px){
  .v2 .igx-in{height:640px}
  /* the prompt as sent takes the feed's width, one line cut short, its words on the composer's column */
  .v2 .igx-ask{display:block;max-width:100%;padding-inline:var(--s-3);white-space:nowrap;text-overflow:ellipsis}
  .v2 .igx-sty{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:var(--s-1)}
  .v2 .igx-sty::-webkit-scrollbar{display:none}
  .v2 .igx-sc{flex:none;padding:0 var(--s-2)}
  .v2 .igx-f>span{display:none}
  .v2 .igx-steps{display:none}
  .v2 .igx-go{width:32px;padding:0}
  .v2 .igx-go span{display:none}
  .v2 .igx-meta{display:none}
  .v2 .igx-prs{grid-template-columns:minmax(0,1fr)}
  .v2 .igx-lbf .igx-lbl{display:none}
  .v2 .igx-lbn{display:none}
}
@container igx (max-width:340px){
  .v2 .igx-bar .chip>.i:first-child{display:none}
  .v2 .igx-bar .chip{padding:0 var(--s-2)}
}
/* Studio: both panels' heads (and the larger view's) are off-white strips, their controls 16px from the card's edges and the
   strip's hairline, and the larger view's actions sit in an off-white foot strip. The style chips, the settings, the presets and
   the rating take Studio's one hover (--row) and, picked, its stronger fill (--row-on) in their own shape, never a stronger edge.
   New pictures and the larger view fade in without a blur */
:root[data-style="studio"] .v2 :is(.igx-h,.igx-sh){height:calc(28px + 2 * var(--strip-y) + 1px);padding:0 16px;background:var(--strip);border-bottom-color:var(--line)}
:root[data-style="studio"] .v2 .igx-lbh{min-height:calc(28px + 2 * var(--strip-y) + 1px);padding:var(--strip-y) 16px;background:var(--strip);border-bottom-color:var(--line)}
/* (a strip's row is 28px: the prompt and what made it share one line there, each cut short if it must) */
:root[data-style="studio"] .v2 .igx-lbt{flex-direction:row;align-items:baseline;gap:8px;line-height:28px}
:root[data-style="studio"] .v2 .igx-lbt>*{min-width:0}
:root[data-style="studio"] .v2 .igx-lbt .muted{flex:0 1 auto}
:root[data-style="studio"] .v2 .igx-lbh .ib{width:28px;height:28px}
:root[data-style="studio"] .v2 .igx-lbf{padding:var(--strip-y) 16px;background:var(--strip);border-top-color:var(--line)}
:root[data-style="studio"] .v2 .igx-sc{box-shadow:var(--btn2-depth);transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),gap var(--t) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .igx-sc:hover{background:var(--surface);box-shadow:var(--btn2-depth),inset 0 0 0 99px var(--row)}}
:root[data-style="studio"] .v2 .igx-sc[aria-pressed="true"]{box-shadow:var(--btn2-depth),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .igx-sc.hl{box-shadow:var(--btn2-depth),inset 0 0 0 99px var(--row-on)}
:root[data-style="studio"] .v2 .igx-bar .chip{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .igx-bar .chip[aria-expanded="true"]{background:var(--row-on)}
:root[data-style="studio"] .v2 :is(.igx-acts,.igx-lbf) .ib[aria-pressed="true"]{background:var(--row-on);color:var(--fg)}
:root[data-style="studio"] .v2 .igx-pr{box-shadow:inset 0 0 0 1px var(--hair);transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .igx-pr[aria-pressed="true"]{background:var(--row-on);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .igx-g.new{animation:v2-clpiece var(--t-slow) var(--ease) both}
:root[data-style="studio"] .v2 .igx-lb.open .igx-lbs>.igx-t{animation:v2-clcard var(--t-slow) var(--ease) both}
/* Blueprint: square dots of the picture itself at half strength, a hard scan line in the accent's mark */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-t[data-st="gen"] .igx-b{opacity:.55;-webkit-mask:linear-gradient(90deg,#000 var(--sq,2px),transparent 0) 0 0/var(--cell,12px) var(--cell,12px),linear-gradient(#000 var(--sq,2px),transparent 0) 0 0/var(--cell,12px) var(--cell,12px);-webkit-mask-composite:source-in;mask:linear-gradient(90deg,#000 var(--sq,2px),transparent 0) 0 0/var(--cell,12px) var(--cell,12px),linear-gradient(#000 var(--sq,2px),transparent 0) 0 0/var(--cell,12px) var(--cell,12px);mask-composite:intersect}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-t.up .igx-b{opacity:.45}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-l>span:first-child{height:1px;top:0;background:var(--accent-mark)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-l>span:last-child{display:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-t.up .igx-l,:root:not([data-style="soft"],[data-style="studio"]) .v2 .igx-t.up .igx-s{animation-timing-function:steps(14,end)}
@media (prefers-reduced-motion:reduce){
  .v2 .igx .igx-t :is(.igx-b,.igx-n,.igx-l){display:none}
  .v2 .igx .igx-t .igx-s{clip-path:none;filter:none;animation:none;transition:opacity .4s}
  .v2 .igx .igx-t:is([data-st="wait"],[data-st="gen"],[data-st="fail"]) .igx-s{opacity:0}
  .v2 .igx-g.new,.v2 .igx-lb.open,.v2 .igx-lb.open .igx-lbs>.igx-t{animation:none}
  .v2 .igx-sc,.v2 .igx-sc .i{transition:none}
}
/* ---------- Web search ---------- */
/* the agent's searches as a trail: each query with what came back, each page with whether it was read, skimmed or skipped and
   why; once done it folds to one line, and the answer under it points back at its pages */
/* hover fills are a quiet 5%, so they show wherever the trail sits (on the stage, --row is the stage's own colour) */
.v2 .wsx{padding:6px;display:flex;flex-direction:column;font-size:13px;--row:color-mix(in srgb,var(--fg) 5%,transparent)}
/* its motion (the core's motion pieces, owner, 26 Nov): a press on the head or a search shows at once, a step deeper than its
   hover (.mx-press); the spinner crossfades to the globe when it is done (.mx-ic); the card grows on the spring (.mx-grow) */
.v2 .wsx{--row-press:color-mix(in srgb,var(--fg) 9%,transparent)}
:root[data-style="studio"] .v2 .wsx{--row-press:var(--row-on)}
/* the head's mark sits as far from the top as from the side: 16px in from the panel's edges (owner, 21 Nov: "more padding at
   the top of the card?") */
.v2 .wsx-h{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border-radius:var(--r-in);text-align:left;font-size:13.5px;transition:background var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .wsx-h:hover{background:var(--row)}}
/* every part on shared columns, in every style (owner, 18 Nov): the head's mark and every row's mark (the search glass, the
   asked-again arrow, a page's site initial) are centred in one 20px column, and every row's words start where the head's do */
.v2 .wsx-ic{width:20px;height:20px;flex:none;display:grid;place-items:center;color:var(--fg2)}
.v2 .wsx-ic .spin{width:11px;height:11px}
.v2 .wsx-st{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .wsx-h>.i{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .wsx-h[aria-expanded="false"]>.i{transform:rotate(-90deg)}
/* the sites it went to, as a small stack of initials, the rest counted */
/* side by side, never stacked over each other (owner, 18 Nov) */
.v2 .wsx-marks{display:flex;align-items:center;gap:2px}
.v2 .wsx-marks span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--chip);color:var(--fg2);font-size:10.5px;font-weight:500;transition:background .2s,color .2s}
.v2 .wsx-marks span.n{background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);font-size:10px}
.v2 .wsx-marks span.hl{background:var(--fg2);color:var(--surface)}
.v2 .wsx-list{display:flex;flex-direction:column;gap:2px;padding:2px 0 var(--s-1)}
.v2 .wsx-q{display:flex;flex-direction:column}
.v2 .wsx-qh{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto 12px;align-items:center;column-gap:10px;width:100%;padding:6px 10px;border-radius:calc(10px * var(--rk-m,var(--rk)));text-align:left;transition:background var(--t-fast)}
.v2 .wsx-q.hl>.wsx-qh{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .wsx-qh:hover{background:var(--row)}}
.v2 .wsx-qh>.i:first-child{justify-self:center;color:var(--muted)}
.v2 .wsx-qh .t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .wsx-qh .n,.v2 .wsx-qh .tm{font-size:12px;color:var(--muted);white-space:nowrap}
/* a query and its Searching have the loader's sweep (.shim) while it runs: their own colours step aside for it */
.v2 .wsx-qh .t:not(.shim){color:var(--fg)}
.v2 .wsx-qh .n.shim{color:transparent}
@media (prefers-reduced-motion:reduce){.v2 .wsx-qh .n.shim{color:var(--fg)}}
.v2 .wsx-qh .n{margin-right:-2px}
.v2 .wsx-qh .n.none{color:var(--warn)}
.v2 .wsx-qh>.i:last-child{color:var(--muted);transition:transform .32s var(--ease)}
.v2 .wsx-qh[aria-expanded="true"]>.i:last-child{transform:rotate(90deg)}
/* a search that found nothing has no chevron and keeps no room for one: its count and time end where the chevrons and the
   pages' tags end (owner, 21 Nov) */
.v2 .wsx-qh.empty{grid-template-columns:20px minmax(0,1fr) auto auto}
.v2 .wsx-qh.empty>.i:last-child{display:none}
/* the asked-again note is a row of the trail like the queries: as tall as a query row, so the lines keep one rhythm (owner, 23 Nov) */
.v2 .wsx-rw{display:flex;align-items:center;gap:10px;min-height:32px;margin-top:2px;padding:0 10px;font-size:12px;color:var(--muted)}
.v2 .wsx-rw .i{margin-inline:4px}
.v2 .wsx-rs{list-style:none;margin:0;padding:2px 0 var(--s-1);display:flex;flex-direction:column;gap:2px}
.v2 .wsx-r{display:grid;grid-template-columns:20px minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:5px 10px;border-radius:calc(9px * var(--rk-m,var(--rk)));transition:background var(--t-fast);cursor:default}
.v2 .wsx-r.hl{background:var(--row)}
@media (hover:hover) and (pointer:fine){.v2 .wsx-r:hover{background:var(--row)}}
.v2 .wsx-r:focus-visible{outline-offset:-2px}
.v2 .wsx-fav{width:20px;height:20px;border-radius:calc(6px * var(--rk-s,var(--rk)));display:grid;place-items:center;background:var(--chip);color:var(--fg2);font-size:10.5px;font-weight:500}
.v2 .wsx-r .tx{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.v2 .wsx-r .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;color:var(--fg)}
.v2 .wsx-r .d{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v2 .wsx-r.skip .t{color:var(--muted)}
.v2 .wsx-r .tag .spin{width:9px;height:9px}
/* on a hovered or lit row the grey Read and Skimmed chips lift to white (one step lighter in dark mode), so they stand out
   against the row's hover fill rather than melting into it (owner, 22 Nov), in every style */
.v2 .wsx{--wsx-lift:var(--surface)}
:root[data-theme="dark"] .v2 .wsx{--wsx-lift:var(--hover)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 .wsx{--wsx-lift:var(--hover)}}
.v2 .wsx-r .tag{transition:background-color var(--t-fast)}
@media (hover:hover) and (pointer:fine){.v2 .wsx-r:is(:hover,.hl) .tag:not(.warn){background:var(--wsx-lift)}}
.v2 .wsx-ans{padding:var(--s-2) 10px 6px;font-size:13.5px;line-height:1.6;color:var(--fg)}
.v2 .wsx-ans:empty{display:none}
/* the number sits in the middle of its circle: its line is as tall as its figures, so a taller line round it (Studio's 22px
   answer lines set it 2.5px low) never moves it (owner, 21 Nov: "padding is off in this number") */
/* a citation number is a true circle, 18 by 18 (owner, 23 Nov: it looked like neither a circle nor a square) */
.v2 .wsx-cite{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;margin:0 1px;border-radius:50%;background:var(--chip);color:var(--fg2);font-size:11px;line-height:1;font-weight:500;vertical-align:1px;transition:background var(--t-fast),color var(--t-fast)}
.v2 .wsx-cite.on{background:var(--fg2);color:var(--surface)}
@media (hover:hover) and (pointer:fine){.v2 .wsx-cite:hover{background:var(--fg2);color:var(--surface)}}
.v2 .wsx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Studio (lead and owner, 18 Nov): a card of its own, bare or not, as Reasoning trail is: a hairline-outlined round card
   with the search head on top and a hairline under it, everything on shared columns. Content sits 16px in from the card's
   edges. The head's spinner (a globe once done) sits in a 28px neutral tile, and every row's leading mark (a query's search
   glass, the asked-again arrow, a page's site initial) is centred in that same 28px column, so every row's words start where
   the head's do. A row's hover fill spans the content, from the tile's left edge to the content's right edge, never wider;
   the chevrons are centred in a 28px column at the end, the one the head's chevron circle (its quiet hover) fills. A row
   with no chevron (a page, a search that found nothing) keeps no room for one: its tag or time ends on the content's right
   edge (owner, 22 Nov). The answer is the card's own paragraph under a hairline. The card grows and
   shrinks with what it holds (grow()), so as the trail folds once the searching is done it eases down to the head and the
   answer, staying centred. Colour only for meaning: "No results" and a skipped page in the warning colour; sites, counts
   and pages read are grey */
:root[data-style="studio"] .v2 .wsx.wsx.wsx{padding:0;background:var(--surface);box-shadow:var(--shadow);border-radius:var(--r-card);overflow:clip;container-type:inline-size}
/* on a phone the head drops its stack of site initials, so its words fit: "3 searches, 6 pages read" whole */
@container (max-width:400px){:root[data-style="studio"] .v2 .wsx-marks{display:none}}
:root[data-style="studio"] .v2 .wsx.growing{overflow-clip-margin:0px}
/* the head's tile sits 16px from the top as from the side, and its chevron's circle 16px from the top and the right */
:root[data-style="studio"] .v2 .wsx-h{min-height:calc(28px + 2 * var(--strip-y));padding:0 23px 0 16px;gap:12px;border-radius:0;font-size:13.5px}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .wsx-h:hover{background:none}}
:root[data-style="studio"] .v2 .wsx-h:focus-visible{outline-offset:-2px;border-radius:var(--r-card)}
:root[data-style="studio"] .v2 .wsx-ic{width:28px;height:28px;border-radius:calc(7px * var(--rk-m,var(--rk)));background:var(--chip);box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .wsx-st{font-weight:500}
:root[data-style="studio"] .v2 .wsx-st:not(.shim){color:var(--fg)}
:root[data-style="studio"] .v2 .wsx-marks{margin-right:2px}
:root[data-style="studio"] .v2 .wsx-h>.i{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 7px transparent;transition:transform var(--t) var(--ease),background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .wsx-h:hover>.i{background:var(--row);box-shadow:0 0 0 7px var(--row);color:var(--fg)}}
/* the first row's words sit 16px under the divider, its hover box reaching out 6px round them (owner, 19 Nov: a body's
   first row sits 16px under a divider, no more), and the list ends as far under its last row */
:root[data-style="studio"] .v2 .wsx-list{gap:0;padding:10px 16px;border-top:1px solid var(--line)}
:root[data-style="studio"] .v2 .wsx-qh{grid-template-columns:28px minmax(0,1fr) auto auto 28px;column-gap:12px;width:100%;margin-inline:0;padding:6px 0;border-radius:calc(7px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .wsx-qh>.i{justify-self:center}
:root[data-style="studio"] .v2 .wsx-qh .n{margin-right:-4px}
:root[data-style="studio"] .v2 .wsx-qh.empty{grid-template-columns:28px minmax(0,1fr) auto auto;padding-right:6px}
:root[data-style="studio"] .v2 .wsx-qh .n,:root[data-style="studio"] .v2 .wsx-qh .tm{font-variant-numeric:tabular-nums}
:root[data-style="studio"] .v2 .wsx-rw{margin-top:0;padding:0;gap:12px}
:root[data-style="studio"] .v2 .wsx-rw .i{margin-inline:8px}
:root[data-style="studio"] .v2 .wsx-rs{padding:0 0 4px;gap:0}
/* a row's hover fill reaches 8px out round its content, so nothing in it (the Read chip, the mark) touches the fill's edge (owner, 23 Nov) */
:root[data-style="studio"] .v2 .wsx-r{grid-template-columns:28px minmax(0,1fr) auto;column-gap:12px;margin-inline:-8px;padding:6px 8px;border-radius:calc(7px * var(--rk-m,var(--rk)));transition:background-color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .wsx-fav{justify-self:center;border-radius:calc(4px * var(--rk-s,var(--rk)));box-shadow:inset 0 0 0 1px var(--hair)}
:root[data-style="studio"] .v2 .wsx-ans{padding:16px;border-top:1px solid var(--line);line-height:22px}
/* Studio dark's hover fill is lighter than its --hover, so a lifted chip steps further up to stand out on it */
:root[data-style="studio"][data-theme="dark"] .v2 .wsx{--wsx-lift:color-mix(in srgb,var(--fg) 16%,var(--surface))}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2 .wsx{--wsx-lift:color-mix(in srgb,var(--fg) 16%,var(--surface))}}
:root[data-style="studio"] .v2 .wsx-cite{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* ---------- Blueprint 2 ---------- */
/* Blueprint 2: the same components drawn as a technical sheet. Square corners, hairline edges instead of shadows,
   a lime accent, and motion that wipes and ticks into place in short, hard beats instead of blurring in */
:root:not([data-style="soft"],[data-style="studio"]) .v2{
  --motion:bp;
  --page:#f3f3f0; --stage:#fafaf8; --surface:#ffffff; --raised:#ffffff;
  --fg:#121212; --fg2:#4a4a46; --muted:#666660; --faint:#bdbdb6; --rail:#d2d2cb; --line:#e3e3dd; --field-line:#d2d2cb; --line-strong:#858580; --field-line-strong:#b0b0a9;
  --chip:#f1f1ed; --hover:#e8e8e3; --press:#dededa; --wash:#f6f6f3; --row:#fafaf8;
  --soft:#ebebe6; --soft-h:#e1e1db; --soft-ring:inset 0 0 0 1px rgba(20,20,12,.045); --dis:#a3a39c; --accent-fg:var(--fg); --sel:color-mix(in srgb,var(--accent) 7%,transparent);
  --ink:#121212; --on-ink:#ffffff;
  --shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);
  --shadow-pop:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),0 12px 28px -14px rgba(20,20,12,.22);
  --shadow-toast:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent),0 10px 24px -14px rgba(20,20,12,.24);
  --shadow-lift:0 0 0 1px color-mix(in srgb,var(--fg) 50%,transparent);
  --grid:rgba(20,20,12,.09); --tick:#b5b5ad;
  --dis-hatch:repeating-linear-gradient(135deg,transparent 0 4px,var(--grid) 4px 5px);
  --ease:cubic-bezier(.65,0,.25,1); --ease-io:cubic-bezier(.65,0,.25,1);
  --t-fast:.14s; --t:.3s; --t-slow:.44s;
  --on-tint-btn:var(--shadow); --on-tint-btn-h:var(--shadow-pop);
}
:root:not([data-style="soft"],[data-style="studio"]):not(.acc-on) .v2{
  --accent:#c2f23c; --on-accent:#121212; --accent-mark:#00a23d;
}
@media (prefers-color-scheme:dark){:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]) .v2{
  --page:#111111; --stage:#1c1c1c; --surface:#262626; --raised:#363636;
  --fg:#f2f2f2; --fg2:#c9c9c9; --muted:#c0c0c0; --faint:#555555; --rail:#414141; --line:#333333; --field-line:#747474; --line-strong:#80807a; --field-line-strong:#a3a3a3;
  --chip:#303030; --hover:#373737; --press:#3f3f3f; --wash:#2c2c2c; --row:color-mix(in srgb,var(--fg) 5.5%,transparent);
  --soft:#323232; --soft-h:#3a3a3a; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.04); --dis:#737373; --sel:color-mix(in srgb,var(--accent) 10%,transparent);
  --ink:#f2f2f2; --on-ink:#161616; --seg-k-shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.35); --tip-bg:#3d3d3b; --tip-fg:var(--fg); --tip-ring:0 0 0 1px rgba(255,255,255,.12);
  --shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);
  --shadow-pop:0 0 0 1px color-mix(in srgb,var(--line-strong) 45%,transparent),0 16px 32px -14px rgba(0,0,0,.7);
  --shadow-toast:0 0 0 1px color-mix(in srgb,var(--line-strong) 45%,transparent),0 12px 28px -14px rgba(0,0,0,.7);
  --shadow-lift:0 0 0 1px color-mix(in srgb,var(--fg2) 50%,transparent);
  --grid:rgba(255,255,255,.07); --tick:#55554f;
  --dis-hatch:repeating-linear-gradient(135deg,transparent 0 4px,var(--grid) 4px 5px);
  --ease:cubic-bezier(.65,0,.25,1); --ease-io:cubic-bezier(.65,0,.25,1);
  --t-fast:.14s; --t:.3s; --t-slow:.44s}:root:not([data-style="soft"],[data-style="studio"]):not([data-theme="light"]):not(.acc-on) .v2{
  --accent:#d4f84a; --on-accent:#121212; --accent-fg:#d4f84a; --accent-mark:#d4f84a}}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"] .v2{
  --page:#111111; --stage:#1c1c1c; --surface:#262626; --raised:#363636;
  --fg:#f2f2f2; --fg2:#c9c9c9; --muted:#c0c0c0; --faint:#555555; --rail:#414141; --line:#333333; --field-line:#747474; --line-strong:#80807a; --field-line-strong:#a3a3a3;
  --chip:#303030; --hover:#373737; --press:#3f3f3f; --wash:#2c2c2c; --row:color-mix(in srgb,var(--fg) 5.5%,transparent);
  --soft:#323232; --soft-h:#3a3a3a; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.04); --dis:#737373; --sel:color-mix(in srgb,var(--accent) 10%,transparent);
  --ink:#f2f2f2; --on-ink:#161616; --seg-k-shadow:0 0 0 1px rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.35); --tip-bg:#3d3d3b; --tip-fg:var(--fg); --tip-ring:0 0 0 1px rgba(255,255,255,.12);
  --shadow:0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent);
  --shadow-pop:0 0 0 1px color-mix(in srgb,var(--line-strong) 45%,transparent),0 16px 32px -14px rgba(0,0,0,.7);
  --shadow-toast:0 0 0 1px color-mix(in srgb,var(--line-strong) 45%,transparent),0 12px 28px -14px rgba(0,0,0,.7);
  --shadow-lift:0 0 0 1px color-mix(in srgb,var(--fg2) 50%,transparent);
  --grid:rgba(255,255,255,.07); --tick:#55554f;
  --dis-hatch:repeating-linear-gradient(135deg,transparent 0 4px,var(--grid) 4px 5px);
  --ease:cubic-bezier(.65,0,.25,1); --ease-io:cubic-bezier(.65,0,.25,1);
  --t-fast:.14s; --t:.3s; --t-slow:.44s}
:root:not([data-style="soft"],[data-style="studio"])[data-theme="dark"]:not(.acc-on) .v2{
  --accent:#d4f84a; --on-accent:#121212; --accent-fg:#d4f84a; --accent-mark:#d4f84a}

/* every corner is square, only the turning loaders stay round */
:root:not([data-style="soft"],[data-style="studio"]) .v2 *,:root:not([data-style="soft"],[data-style="studio"]) .v2 *::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 *::after{border-radius:0!important}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .spin,:root:not([data-style="soft"],[data-style="studio"]) .v2 .radar::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 .radar::after{border-radius:50%!important}
:root:not([data-style="soft"],[data-style="studio"]) .v2 svg:not(.i):not(.brand) rect{rx:0;ry:0}
:root:not([data-style="soft"],[data-style="studio"]) .v2 svg:not(.i):not(.brand) :is(path,line,polyline,circle){stroke-linecap:butt}
/* no blur anywhere: things wipe in or cut, they never soften */
:root:not([data-style="soft"],[data-style="studio"]) .v2 *,:root:not([data-style="soft"],[data-style="studio"]) .v2 *::before,:root:not([data-style="soft"],[data-style="studio"]) .v2 *::after{filter:none!important}

/* the sheet: cards share their hairlines, every stage is drafting paper with crop marks in the corners */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .seg2 .knob{box-shadow:0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}

/* parts: mono labels, hairline controls, hatched when disabled */
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tag{font-size:10.5px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;height:19px;padding:0 6px}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .kbd{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rail) 50%,transparent)}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .pill.line:hover{background:var(--wash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faint) 50%,transparent)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pill:active,:root:not([data-style="soft"],[data-style="studio"]) .v2 .ib:active{transform:translateY(1px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .chip.on{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pick-on) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .bub{background:var(--chip);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .tip{box-shadow:none}

/* motion: a top-down wipe that settles on a hard ease, stepped loaders, a blinking cursor instead of a soft ping */
@keyframes v2-bpin{0%{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(4px)}30%{opacity:1}100%{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
@keyframes v2-bpout{to{opacity:0;clip-path:inset(0 0 100% 0)}}
@keyframes v2-bpblink{0%,55%{opacity:1}56%,100%{opacity:.2}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .enter,:root:not([data-style="soft"],[data-style="studio"]) .v2 .pop-in{animation-name:v2-bpin;animation-duration:var(--t-slow);animation-timing-function:var(--ease);animation-fill-mode:backwards}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .leave{animation:v2-bpout .26s var(--ease) both}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .chx-card.mx-pop:not(.show){transform:translateY(4px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .sw.out{transform:translateY(-3px)}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pop{transform:translateY(4px);transition-duration:.16s}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pop.open{transform:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .spin{animation:v2-rot .9s steps(8) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .radar::after{animation:v2-rot 1s steps(8) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pulse{animation:v2-bpblink 1.1s steps(1,end) infinite}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .pulse::after{display:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .btx-ask::after{background:linear-gradient(90deg,transparent 0 40%,rgba(255,255,255,.38) 40% 46%,transparent 46%)}
@media (hover:hover) and (pointer:fine){:root:not([data-style="soft"],[data-style="studio"]) .v2 .btx-ask:hover::after{transition:transform .5s steps(10)}}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .btx-live::after{display:none}
:root:not([data-style="soft"],[data-style="studio"]) .v2 .btx-live{animation:v2-bpblink 1.1s steps(1,end) infinite}
/* dark mode: outlined buttons and the segmented switch read on the dark surface, at the text colour 22% over the surface
   (owner, 10 Nov: their edges were barely visible in dark mode; light mode keeps its half-strength hairline) */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .v2 .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 22%,var(--surface))}
  :root:not([data-theme="light"]) .v2 :is(.seg2 .knob,.sgc-seg .sgc-k){background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 22%,transparent)}
}
:root[data-theme="dark"] .v2 .pill.line{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 22%,var(--surface))}
:root[data-theme="dark"] .v2 :is(.seg2 .knob,.sgc-seg .sgc-k){background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 22%,transparent)}
/* owner, 10 Nov: in dark mode an outlined button inside a menu, popover or event card is clear with its edge, not a darker fill
   than the surface it sits on */
:root[data-theme="dark"] .v2 :is(.pop,.ecx-pop) .pill.line{background:transparent}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .v2 :is(.pop,.ecx-pop) .pill.line{background:transparent}}
/* ---------- Studio ---------- */
/* Studio (owner, 17 Nov): the third style, a layer over Soft. The chrome is black, white and one neutral grey ramp: surfaces,
   text, hairlines, the primary button in ink (black in light, white in dark, its own --btn tokens), secondary buttons,
   switchers, knobs and toggles. Data and status keep Soft's colours: the blue accent for data, selection and links, the
   chart palette, agents' own colours and pastel avatars, and the vivid status colours (a green tick, never a black one;
   no red fill behind an error, only its red words and mark). Hairline outlines with a 1px contact shadow and one short soft shadow on cards; off-white
   head and foot strips; everything fully round: chips, tags, icon tiles, bars, tracks,
   rows and fields are pills or circles (the radii scale with --rk-s, --rk-m and --r-tiny), and cards, panels and popovers
   take 22px round corners (--rk-l), never squircles. Buttons have depth inside their fill: a blurred light along the top,
   a soft shade along the bottom and a near-solid edge; checkboxes and tracks have a soft inner shadow. In dark only, a faint
   neutral glow sits around the white primary button, never around cards (owner, 18 Nov; an approved exception to "no glows": white
   or neutral only, never a hue). Status colour only on small marks. Motion is calm: ease-out quint, hovers 150ms, presses
   at .97, menus scale and fade from their trigger, and a card rises 8px from .98 with its pieces 40ms apart (REVEAL.studio) */
:root[data-style="studio"] .v2{
  --motion:studio;
  --page:#f7f7f7; --stage:#f7f7f7; --surface:#ffffff; --raised:#ffffff; --strip:#fafafa;
  --fg:#0a0a0a; --fg2:#404040; --muted:#6b6b6b; --faint:#d4d4d4; --rail:#e5e5e5;
  --line:#e5e5e5; --hair:rgba(0,0,0,.08); --field-line:#e0e0e0; --line-strong:#8f8f8f; --field-line-strong:#b3b3b3;
  /* one hover and one selected fill for every row, option, segment, tab and ghost control (owner, 21 Nov: "hover and active
     states are inconsistent for studio style all over the components"): see-through, so they read the same on a card, a strip
     or a menu, and clearly visible in light and dark; selected is the same shape a step stronger */
  --chip:#f3f3f3; --hover:#ededed; --press:#e6e6e6; --wash:#fafafa; --row:rgba(0,0,0,.04); --row-on:rgba(0,0,0,.065);
  --soft:#f3f3f3; --soft-h:#ededed; --soft-ring:inset 0 0 0 1px rgba(0,0,0,.06); --dis:#a3a3a3;
  --ghost:#ededed; --ghost-2:#f4f4f4;
  --ink:#0a0a0a; --on-ink:#ffffff; --on-btn:#ffffff;
  --shadow:0 0 0 1px rgba(0,0,0,.07),0 1px 1px rgba(0,0,0,.04),0 2px 10px -4px rgba(0,0,0,.12);
  --shadow-pop:0 0 0 1px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.04),0 12px 28px -12px rgba(0,0,0,.22);
  --shadow-toast:var(--shadow-pop); --shadow-lift:var(--shadow-pop);
  --tip-bg:#ffffff; --tip-fg:#0a0a0a; --tip-ring:0 0 0 1px rgba(0,0,0,.08),0 1px 1px rgba(0,0,0,.04),0 6px 16px -6px rgba(0,0,0,.18);
  --btn-1:#2a2a2a; --btn-2:#0a0a0a;
  --btn-depth:inset 0 0 0 1px rgba(10,10,10,.92),inset 0 3px 6px -2px rgba(255,255,255,.42),inset 0 0 0 1px rgba(255,255,255,.06),inset 0 -3px 5px -3px rgba(0,0,0,.45),0 1px 2px rgba(0,0,0,.08),0 4px 12px -4px rgba(0,0,0,.16);
  --btn-press:inset 0 0 0 1px rgba(10,10,10,.92),inset 0 1px 3px rgba(0,0,0,.5),inset 0 -3px 5px -3px rgba(0,0,0,.5),0 1px 1px rgba(0,0,0,.1);
  /* every button's edge is drawn inside it, so a primary and a secondary beside it are exactly the same height (owner, 18 Nov) */
  /* secondary buttons and dropdown triggers are flat (owner, 18 Nov): a hairline border and a light fill, no glow, shade or
     shadow; hover and press deepen the fill a little (the inset shadow is the fill) */
  --btn2-1:#ffffff; --btn2-2:#ffffff;
  --btn2-depth:inset 0 0 0 1px rgba(0,0,0,.12);
  --btn2-hover:inset 0 0 0 1px rgba(0,0,0,.16),inset 0 0 0 99px rgba(0,0,0,.025);
  --btn2-press:inset 0 0 0 1px rgba(0,0,0,.18),inset 0 0 0 99px rgba(0,0,0,.05);
  --knob:#ffffff; --knob-shadow:0 0 0 1px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.07); --track-ring:inset 0 0 0 1px rgba(0,0,0,.03),inset 0 1px 3px rgba(0,0,0,.09);
  --area:.07;
  /* round, never a squircle (owner, 18 Nov, replacing "everything fully round" of 17 Nov): pills and circles only for
     controls (buttons, chips, tags, toggles, switchers), avatars and dots, which have their own pill tokens (--r-pill,
     --r-tag). Everything else keeps ordinary rounded corners, a little rounder than Soft: fields, rows, panels, images, cells,
     events, flags and code boxes. Cards are 22px */
  --rk:1; --rk-s:1.6; --rk-m:1.4; --rk-l:1.3; --r-tiny:4px;
  --r-card:22px; --r-lg:24px; --r-in:10px; --r-sm:8px; --r-xs:6px; --r-pill:999px;
  --r-field:10px; --r-field-sq:10px; --r-box:16px; --r-box-sq:16px; --r-tag:999px; --r-tag-sq:999px;
  --ease:cubic-bezier(.23,1,.32,1); --ease-io:cubic-bezier(.65,0,.35,1);
  /* calmer than it was (owner, 18 Nov: "it should be smoother"): hovers and fades 220ms, moves 340ms, entrances 560ms */
  --t-fast:.22s; --t:.34s; --t-slow:.56s;
  --on-tint-btn:var(--btn2-depth); --on-tint-btn-h:var(--btn2-hover);
  /* a head or foot strip's room above and below its 28px row (owner, 23 Nov, replacing 8px): its controls sit 16px from the
     card's edge and from the strip's hairline, as they sit 16px from the card's sides, so a strip is 60px plus its hairline.
     Every strip's row is 28px, whether it holds a control or only words, so a strip never changes height as its controls
     come and go */
  --strip-y:16px;
}
@media (prefers-color-scheme:dark){:root[data-style="studio"]:not([data-theme="light"]) .v2{
  --page:#0a0a0a; --stage:#0a0a0a; --surface:#141414; --raised:#1c1c1c; --strip:#181818;
  --fg:#f5f5f5; --fg2:#cfcfcf; --muted:#bdbdbd; --faint:#474747; --rail:#2e2e2e;
  --line:#2a2a2a; --hair:rgba(255,255,255,.09); --field-line:#4d4d4d; --line-strong:#7a7a7a; --field-line-strong:#8f8f8f;
  --chip:#1f1f1f; --hover:#232323; --press:#2a2a2a; --wash:#181818; --row:rgba(255,255,255,.07); --row-on:rgba(255,255,255,.12);
  --soft:#1f1f1f; --soft-h:#262626; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.06); --dis:#666666;
  --ghost:#262626; --ghost-2:#1e1e1e;
  --ink:#f5f5f5; --on-ink:#0a0a0a; --on-btn:#0a0a0a;
  --shadow:0 0 0 1px rgba(255,255,255,.1),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6);
  --shadow-pop:0 0 0 1px rgba(255,255,255,.1),0 1px 1px rgba(0,0,0,.5),0 12px 28px -12px rgba(0,0,0,.8);
  --tip-bg:#1f1f1f; --tip-fg:#f5f5f5; --tip-ring:0 0 0 1px rgba(255,255,255,.1),0 6px 16px -6px rgba(0,0,0,.7);
  --btn-1:#ffffff; --btn-2:#e0e0e0;
  --btn-depth:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 3px 5px -2px #ffffff,inset 0 -3px 5px -3px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5),0 0 14px rgba(255,255,255,.16);
  --btn-press:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 1px 3px rgba(0,0,0,.3),inset 0 -3px 5px -3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.4);
  --btn2-1:#1f1f1f; --btn2-2:#1f1f1f;
  --btn2-depth:inset 0 0 0 1px rgba(255,255,255,.1);
  --btn2-hover:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 0 99px rgba(255,255,255,.035);
  --btn2-press:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 0 0 99px rgba(255,255,255,.06);
  --knob:#2a2a2a; --knob-shadow:0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.5); --track-ring:inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px 3px rgba(0,0,0,.35);
  --area:.09;
  /* in dark mode Studio's accent is white (owner, 21 Nov, four times: "dark mode studio has white as accents and accent color
     in light mode"): everything drawn in the accent turns white, with dark words on a white fill: count badges, loaders,
     spinners, animated dots, step and progress bars, playheads, relevance meters, selected marks, toggles, links (which keep
     their underline) and accent text. Its tints (--accent-bg, --sel) follow it, so they are neutral greys, and the tracks
     under its marks stay the neutral rail. Status colours, agents' own colours, avatars and the chart palette's other series
     keep their hues; the chart's first series follows the accent, so it is white too. Light mode keeps the blue */
  color-scheme:dark}:root[data-style="studio"]:not([data-theme="light"]):not(.acc-on) .v2{
  --accent:#f5f5f5; --accent-2:#ffffff; --on-accent:#0a0a0a; --accent-fg:#f5f5f5; --accent-mark:#f5f5f5}}
:root[data-style="studio"][data-theme="dark"] .v2{
  --page:#0a0a0a; --stage:#0a0a0a; --surface:#141414; --raised:#1c1c1c; --strip:#181818;
  --fg:#f5f5f5; --fg2:#cfcfcf; --muted:#bdbdbd; --faint:#474747; --rail:#2e2e2e;
  --line:#2a2a2a; --hair:rgba(255,255,255,.09); --field-line:#4d4d4d; --line-strong:#7a7a7a; --field-line-strong:#8f8f8f;
  --chip:#1f1f1f; --hover:#232323; --press:#2a2a2a; --wash:#181818; --row:rgba(255,255,255,.07); --row-on:rgba(255,255,255,.12);
  --soft:#1f1f1f; --soft-h:#262626; --soft-ring:inset 0 0 0 1px rgba(255,255,255,.06); --dis:#666666;
  --ghost:#262626; --ghost-2:#1e1e1e;
  --ink:#f5f5f5; --on-ink:#0a0a0a; --on-btn:#0a0a0a;
  --shadow:0 0 0 1px rgba(255,255,255,.1),0 1px 1px rgba(0,0,0,.5),0 2px 10px -4px rgba(0,0,0,.6);
  --shadow-pop:0 0 0 1px rgba(255,255,255,.1),0 1px 1px rgba(0,0,0,.5),0 12px 28px -12px rgba(0,0,0,.8);
  --tip-bg:#1f1f1f; --tip-fg:#f5f5f5; --tip-ring:0 0 0 1px rgba(255,255,255,.1),0 6px 16px -6px rgba(0,0,0,.7);
  --btn-1:#ffffff; --btn-2:#e0e0e0;
  --btn-depth:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 3px 5px -2px #ffffff,inset 0 -3px 5px -3px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.5),0 0 14px rgba(255,255,255,.16);
  --btn-press:inset 0 0 0 1px rgba(245,245,245,.9),inset 0 1px 3px rgba(0,0,0,.3),inset 0 -3px 5px -3px rgba(0,0,0,.2),0 1px 1px rgba(0,0,0,.4);
  --btn2-1:#1f1f1f; --btn2-2:#1f1f1f;
  --btn2-depth:inset 0 0 0 1px rgba(255,255,255,.1);
  --btn2-hover:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 0 99px rgba(255,255,255,.035);
  --btn2-press:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 0 0 99px rgba(255,255,255,.06);
  --knob:#2a2a2a; --knob-shadow:0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.5); --track-ring:inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px 3px rgba(0,0,0,.35);
  --area:.09;
  color-scheme:dark}
:root[data-style="studio"][data-theme="dark"]:not(.acc-on) .v2{
  --accent:#f5f5f5; --accent-2:#ffffff; --on-accent:#0a0a0a; --accent-fg:#f5f5f5; --accent-mark:#f5f5f5}
/* no red fill behind an error (owner, 17 Nov): a failed row in the inbox or the eval results, an error line in the run
   drawer's log and a wrong code digit keep their red words and marks on the row as it is */
:root[data-style="studio"] .v2 :is(.aib-i.fail,.aib-i.mv.fail,.evr-i.fail):not(:hover){background:transparent}
:root[data-style="studio"] .v2 .rdr-l[data-l="error"]{background:transparent}
:root[data-style="studio"] .v2 .otp-in.bad .otp-d{background:var(--surface)}
/* every corner round, never a squircle */
:root[data-style="studio"] .v2 *,:root[data-style="studio"] .v2 *::before,:root[data-style="studio"] .v2 *::after{corner-shape:round!important}
/* icons a little finer; words that swap fade without a blur; the tooltip and menus scale and fade, never blur */
:root[data-style="studio"] .v2 .i{stroke-width:1.5}
:root[data-style="studio"] .v2 .sw{transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .sw.out{filter:none}
@keyframes v2-clpiece{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes v2-clcard{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes v2-clout{to{opacity:0;transform:translateY(-4px)}}
:root[data-style="studio"] .v2 .enter{animation:v2-clpiece var(--t-slow) var(--ease) backwards}
:root[data-style="studio"] .v2 .pop-in{animation:v2-clcard var(--t) var(--ease) backwards}
:root[data-style="studio"] .v2 .leave{animation:v2-clout .18s var(--ease) both}
:root[data-style="studio"] .v2 .tip{filter:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
:root[data-style="studio"] .v2 .pop{transform:scale(.96);filter:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),visibility 0s var(--t-fast)}
:root[data-style="studio"] .v2 .pop.open{transform:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease)}
/* the motion pieces (core's "motion pieces", owner's trial of 26 Nov) at Studio's own pace and with no blur: what opens scales and
   fades from its trigger over Studio's move and goes back into it at the fade's pace; a menu's rows follow 30ms apart (a card's
   pieces keep their 50ms), so a menu is whole as soon as Soft's;
   a press is the selected fill; an icon that changes only fades through a slight scale */
:root[data-style="studio"] .v2{--t-in:var(--t);--t-out:var(--t-fast);--t-glide:var(--t-fast);--ease-spring:var(--ease);--ease-pop:var(--ease);--blur-in:0px;--blur-ic:0px;--ic-scale:.8;--mx-step:30ms;--row-press:var(--row-on)}
:root[data-style="studio"] .v2 .mx-pop{transform:scale(.96);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),filter var(--t-fast) var(--ease),visibility 0s var(--t-fast)}
:root[data-style="studio"] .v2 .mx-pop:is(.open,.show){transform:none;transition:opacity var(--t-fast) var(--ease),transform var(--t) var(--ease),filter var(--t) var(--ease),visibility 0s}
:root[data-style="studio"] .v2 :is(.ib,.pill.ghost,.aab-rd,.dpx-o,.mpk-o,.mi,.mpk-tr).mx-press:not([disabled],[aria-pressed="true"],[aria-checked="true"],.on):active{background-color:var(--row-press)}

/* buttons. Primary: ink with a slight gradient, a near-solid edge, a blurred light inside its top and a shade inside its
   bottom; a press sinks it (.97, the inner shade deepens). Secondary and dropdown triggers: flat, a hairline border and a light
   fill that deepens a little on hover and press, with no scale (owner, 18 Nov) */
:root[data-style="studio"] .v2 .pill{font-weight:500;transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .pill:is(.primary,.accent):not([disabled]):active{transform:scale(.97)}
:root[data-style="studio"] .v2 .pill:not(.primary,.accent):active{transform:none}
:root[data-style="studio"] .v2 .pill:is(.primary,.accent):not([disabled]){color:var(--on-btn);background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:var(--btn-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pill:is(.primary,.accent):not([disabled]):hover{background:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2))}}
:root[data-style="studio"] .v2 .pill:is(.primary,.accent):not([disabled]):active{box-shadow:var(--btn-press)}
:root[data-style="studio"] .v2 :is(.pill.line,.pill.soft):not([disabled]){color:var(--fg);background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-depth)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.pill.line,.pill.soft):not([disabled]):hover{background:linear-gradient(180deg,var(--btn2-1),var(--btn2-2));box-shadow:var(--btn2-hover)}}
:root[data-style="studio"] .v2 :is(.pill.line,.pill.soft):not([disabled]):active{box-shadow:var(--btn2-press)}
/* ghost and icon buttons: no fill until hovered, then the one hover (--row) in the button's own shape, easing in and out over
   220ms; a button that is on, pressed or holding its menu open has the same shape with the stronger fill (--row-on), never a
   ring or a hue (owner, 21 and 22 Nov). Components that sit on the stage set --row for their bar, and Studio hands it back */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.pill.ghost,.ib:not(.fill)):not([disabled],[aria-pressed="true"],[aria-expanded="true"],.on):hover{background-color:var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .ib.on{background:var(--row-on);color:var(--fg)}
/* the controls in a head or foot strip sit on the content's 16px column at the sides, as the rows do (owner, 21 Nov), and
   --strip-y (16px) from the strip's top and bottom (owner, 23 Nov, replacing 8px): each strip sets its own padding with it */
/* one hover for every ghost and icon button (owner, 21 Nov: "you use like 10 different hover styles"): the quiet grey of what
   it sits on (--row) in the button's own shape, with no edge, shadow or change of size, in every style. On an off-white strip
   the grey is a step under the strip, so it shows as it does on the card. (A remove × inside a filled chip, a tinted banner
   or the ink save bar takes a little of its own colour instead, color-mix(currentColor 12%), as no grey shows on a fill) */
/* the cards that set a stronger grey of their own for the stage take Studio's, so every hover in Studio is the same fill */
:root[data-style="studio"] .v2 :is(.tst-t,.tsk-c,.lva,.plx,.ssx,.ahx,.lnx,.dnx,.cmx,.ntx.panel,.rxx,.rgx,.wsx,.rvx-bar,.fbx-bar){--row:inherit}
/* menus: rows with 10px corners, the hover and the picked row's fill easing in and out over 220ms */
:root[data-style="studio"] .v2 .mi{border-radius:10px;transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* Studio's menus have the cards' corners, and their rows stay concentric with them (owner, 30 Nov) */
:root[data-style="studio"] .v2 .pop{--pop-r:var(--r-card)}
:root[data-style="studio"] .v2 .pop .mi{border-radius:max(0px,calc(var(--pop-r) - var(--pop-p)))}
:root[data-style="studio"] .v2 .pop :is(.mi[aria-checked="true"],.mi[aria-selected="true"],[role="option"][aria-selected="true"]){background:var(--row-on)}
:root[data-style="studio"] .v2 .ib{transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)}
/* small ghost controls that kept a timing of their own ease over the same 220ms */
:root[data-style="studio"] .v2 :is(.aab-rd,.msc-clr,.pva-cr,.pva-tog,.pvb-cr,.aln-lane,.pfm-tr,.atr-tg){transition:background-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
/* progress's credits button is a pill and the rows that open a layer have Studio's 10px row corners; the emoji in the
   reactions picker are 10px cells */
:root[data-style="studio"] .v2 .pva-cr{border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 :is(.pva-tog,.pvb-cr,.rxx-grid button){border-radius:10px}
:root[data-style="studio"] .v2 .atx-ctx-it{transition:background-color var(--t-fast) var(--ease),opacity .3s}
/* a file chip keeps its quiet edge and takes the one hover as a fill inside it (owner, 21 Nov: never a stronger edge) */
:root[data-style="studio"] .v2 .fchip.lnk{transition:background-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .fchip.lnk:hover{background:var(--surface);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 50%,transparent),inset 0 0 0 99px var(--row)}}
/* the account menu's button: the one hover, and the stronger fill while its menu is open */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 .pfm-tr:hover{background:var(--row)}}
:root[data-style="studio"] .v2 .pfm-tr[aria-expanded="true"]{background:var(--row-on)}
/* a field's own Send (Comments, Composer, Attachment tray's composer, Parallel agents' note; owner, 21 Nov): it sits in the field's
   corner with the same room above, below and beside it, and its corners are the field's less that room (each component sets
   the radius). Empty, it is a quiet glyph with no fill; once there is something to send, the ink button fades in under it.
   Only the ink presses */
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go){position:relative;isolation:isolate;background:none;box-shadow:none;transition:transform var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go)::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,var(--btn-1),var(--btn-2));box-shadow:var(--btn-depth);opacity:0;pointer-events:none;transition:opacity var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go):not([disabled]){color:var(--on-btn)}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go):not([disabled])::before{opacity:1}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go):not([disabled]):hover::before{background:linear-gradient(180deg,color-mix(in srgb,var(--btn-1) 88%,#808080),var(--btn-2))}}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go):not([disabled]):active{transform:scale(.97)}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go):not([disabled]):active::before{box-shadow:var(--btn-press)}
:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go)[disabled]{color:var(--dis);transform:none}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 :is(.cmx-go,.cpx-send,.atx-cmp-send,.aln-cw-go)::before{transition:none}}
/* the gliding highlight in a menu or a list (hoverGlide() in the core script; owner, 21 Nov): one fill, the list's own ::before
   or ::after, drawn under its rows. It moves and resizes to the row under the pointer, the keyboard's row or the arrows' row over
   220ms with Studio's ease, and fades in and out as the pointer enters and leaves the list; with reduced motion it only fades.
   The rows' own hover fills give way to it; a picked row (data-hgr="k") keeps its stronger fill, which shows over it */
:root[data-style="studio"] .v2 .hg{isolation:isolate}
:root[data-style="studio"] .v2 .hg.hg-pos{position:relative}
:root[data-style="studio"] .v2 .hg[data-hg="b"]::before,:root[data-style="studio"] .v2 .hg[data-hg="a"]::after{content:"";position:absolute;left:0;top:0;z-index:-1;pointer-events:none;width:var(--hg-w,0px);height:var(--hg-h,0px);transform:translate(var(--hg-x,0px),var(--hg-y,0px));border-radius:var(--hg-r,10px);background:var(--hg-bg,var(--row));opacity:var(--hg-o,0);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),width var(--t-fast) var(--ease),height var(--t-fast) var(--ease),border-radius var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .hg.hg-jump[data-hg="b"]::before,:root[data-style="studio"] .v2 .hg.hg-jump[data-hg="a"]::after{transition:opacity var(--t-fast) var(--ease)}
:root[data-style="studio"] .v2 .hg [data-hgr=""]{background-color:transparent!important}
@media (prefers-reduced-motion:reduce){:root[data-style="studio"] .v2 .hg[data-hg="b"]::before,:root[data-style="studio"] .v2 .hg[data-hg="a"]::after{transition-property:opacity!important;transition-duration:var(--t-fast)!important}}
/* switchers: a white knob with a hairline and a 1px shadow, gliding on a grey track with a soft inner shadow (the site's own
   switches and Segmented control's alike) */
:root[data-style="studio"] .v2 :is(.seg2,.sgc-seg){box-shadow:var(--track-ring)}
:root[data-style="studio"] .v2 :is(.seg2 .knob,.sgc-seg .sgc-k){background:var(--knob);box-shadow:var(--knob-shadow);transition:left var(--t) var(--ease),width var(--t) var(--ease)}
:root[data-style="studio"] .v2 :is(.seg2,.sgc-seg) button{color:var(--muted);font-weight:500;transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
/* a segment that is not picked takes the one hover under the pointer, a pill in its own shape (owner, 21 Nov) */
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.seg2,.sgc-seg,.asx-steps,.asx-tb-tabs) :is(button,.asx-tb-t):not([aria-pressed="true"],[aria-selected="true"],[aria-checked="true"],[disabled]):hover{background:var(--row);color:var(--fg)}}
:root[data-style="studio"] .v2 .asx-steps button{border-radius:var(--r-pill)}
:root[data-style="studio"] .v2 :is(.asx-steps button,.asx-tb-t){transition:color var(--t-fast) var(--ease),background-color var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){:root[data-style="studio"] .v2 :is(.seg2 button[aria-pressed="true"],.sgc-seg button:is(:hover,[aria-selected="true"],[aria-checked="true"])){color:var(--fg)}}
/* toggles: ink when on (a switcher is chrome), a knob with a hairline, and a soft inner shadow in the track */
:root[data-style="studio"] .v2 .toggle[aria-checked="true"]{background:var(--btn-2);box-shadow:inset 0 0 0 1px var(--btn-2),inset 0 2px 4px -1px rgba(0,0,0,.3)}
:root[data-style="studio"] .v2 .toggle[aria-checked="true"]::after{background:var(--on-btn)}
:root[data-style="studio"] .v2 .toggle{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05),inset 0 2px 4px -1px rgba(0,0,0,.18)}
:root[data-style="studio"] .v2 .toggle::after{box-shadow:0 0 0 .5px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.2);transition:transform var(--t) var(--ease)}

/* a card far from the screen is hidden and its animations paused (see dm-idle in the mount script) */
/* its contents are skipped entirely (no layout, paint or layers) while the stage keeps its measured height */
.comp.dm-idle .stage-in{content-visibility:hidden}
.comp.dm-idle .stage-in *,.comp.dm-idle .stage-in *::before,.comp.dm-idle .stage-in *::after{animation-play-state:paused!important}
/* base for the mount root, which sits inside the site's stage */
.v2{font-family:var(--sans);font-size:14px;line-height:1.5;color:var(--fg);font-weight:400;letter-spacing:normal;text-align:left;-webkit-font-smoothing:antialiased}
.v2.stage-in{display:block}
.v2-layer{position:static}
/* the variant switch lives in the card footer on the site */
.v2 .dm>.demo{display:none}
.v2-host{overflow:visible}
