/* node_modules/.bun/@fontsource-variable+manrope@5.3.0/node_modules/@fontsource-variable/manrope/index.css */
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0460-052F,
    U+1C80-1C8A,
    U+20B4,
    U+2DE0-2DFF,
    U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-greek-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0370-0377,
    U+037A-037F,
    U+0384-038A,
    U+038C,
    U+038E-03A1,
    U+03A3-03FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-vietnamese-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* packages/ui/src/library-theme.css */
@layer desktop {
  @font-face {
    font-family: "JetBrains Mono";
    src: url("./fonts/JetBrainsMono.ttf") format("truetype");
    font-weight: 100 800;
    font-display: swap;
  }
  .library-shell,
  .assistant-robot,
  .cedar-chat-overlay,
  .cedar-chat-scope {
    --canopy-50: #edfaf6;
    --canopy-100: #d1f6ea;
    --canopy-200: #82f5d3;
    --canopy-300: #4de2ba;
    --canopy-400: #21c59c;
    --canopy-500: #00a781;
    --canopy-600: #008967;
    --cedar-accent: #006c4f;
    --canopy-700: var(--cedar-accent);
    --canopy-800: #00533a;
    --canopy-900: #003b27;
    --canopy-950: #002617;
    --lagoon-50: #ebfaf9;
    --lagoon-100: #ccf6f4;
    --lagoon-200: #80f1f0;
    --lagoon-300: #4dddde;
    --lagoon-400: #20c0c3;
    --lagoon-500: #00a2a8;
    --lagoon-600: #00848b;
    --lagoon-700: #00686e;
    --lagoon-800: #004f56;
    --lagoon-900: #00383d;
    --lagoon-950: #002428;
    --indigo-50: #f1f8ff;
    --indigo-100: #e0eeff;
    --indigo-200: #c4deff;
    --indigo-300: #9ec8ff;
    --indigo-400: #6daaff;
    --indigo-500: #3a8bff;
    --indigo-600: #296fdb;
    --indigo-700: #2256af;
    --indigo-800: #1a408a;
    --indigo-900: #112c65;
    --indigo-950: #0a1b45;
    --orchid-50: #fff3fa;
    --orchid-100: #ffe3f5;
    --orchid-200: #ffc8ee;
    --orchid-300: #ffa0e6;
    --orchid-400: #f967dd;
    --orchid-500: #d552bf;
    --orchid-600: #af419f;
    --orchid-700: #8a317f;
    --orchid-800: #6b2364;
    --orchid-900: #4d1649;
    --orchid-950: #330b30;
    --mist-50: #f8fcfb;
    --mist-100: #eff6f4;
    --mist-200: #dfebe8;
    --mist-300: #ccdbd7;
    --mist-400: #adbfbb;
    --mist-500: #879894;
    --mist-600: #687874;
    --mist-700: #546360;
    --mist-800: #3e4b48;
    --mist-900: #27322f;
    --mist-950: #161d1c;
    --deep: #00201d;
    --deep-raised: #00332e;
    --grass-50: #e6fae4;
    --grass-200: #b3e7b0;
    --grass-500: #0a1;
    --grass-600: #00800a;
    --grass-800: #005804;
    --amber-50: #fff1de;
    --amber-200: #facf92;
    --amber-400: #ffb920;
    --amber-600: #ba7f00;
    --amber-700: #8c5f00;
    --amber-900: #614000;
    --red-50: #ffefed;
    --red-200: #ffc7c2;
    --red-300: #ffa7a0;
    --red-400: #ff7a78;
    --red-500: #ff2334;
    --red-600: #c6001f;
    --red-800: #811d1e;
    --blossom-500: #d83548;
    --white: #fff;
    --cedar-paper: #f9f9f8;
    --stone-50: var(--cedar-paper);
    --stone-100: #f2f0ea;
    --stone-200: #e6e5e2;
    --cedar-divider: #d8d3c9;
    --stone-300: var(--cedar-divider);
    --stone-500: #938e85;
    --stone-600: #736e66;
    --stone-800: #4a463f;
    --stone-950: #1c1b18;
    --neutral-paper: #f5f5f4;
    --neutral-sunken: #ebebea;
    --neutral-border: #dededd;
    --neutral-divider: #c7c7c5;
    --neutral-control: #898987;
    --neutral-muted: #656563;
    --neutral-secondary: #50504e;
    --neutral-ink: #30302e;
    --sage-accent: #607658;
    --forest-accent: #2e493b;
    --cp-bg: var(--stone-50);
    --cp-surface: var(--white);
    --cp-surface-sunken: var(--stone-100);
    --cp-border: var(--stone-200);
    --cp-border-strong: var(--stone-300);
    --cp-border-control: var(--stone-500);
    --cp-text: var(--stone-950);
    --cp-text-secondary: var(--stone-800);
    --cp-text-muted: var(--stone-600);
    --cp-link: var(--canopy-700);
    --cp-link-hover: var(--canopy-800);
    --cp-note-highlight-yellow: #fdeb8b;
    --cp-note-highlight-green: #c9efc4;
    --cp-note-highlight-blue: #c6e9f7;
    --cp-note-highlight-pink: #ffd2cf;
    --cp-note-highlight-purple: #efd5f7;
    --cp-note-text-black: #161d1c;
    --cp-note-text-charcoal: #546360;
    --cp-note-text-gray: #687874;
    --cp-note-text-silver: #ccdbd7;
    --cp-note-text-white: #fefefe;
    --cp-note-text-plum: #6b2364;
    --cp-note-text-purple: #af419f;
    --cp-note-text-red: #c6001f;
    --cp-note-text-orange: #8c5f00;
    --cp-note-text-yellow: #ffb920;
    --cp-note-text-green: #00800a;
    --cp-note-text-teal: #00686e;
    --cp-note-text-blue: #296fdb;
    --cp-note-text-navy: #1a408a;
    --cp-action: var(--canopy-700);
    --cp-action-hover: var(--canopy-800);
    --cp-on-action: var(--white);
    --cp-action-soft: var(--canopy-100);
    --cp-action-soft-text: var(--canopy-800);
    --cp-focus: var(--canopy-500);
    --cp-focus-ring: var(--canopy-200);
    --cp-cmd-cap-shadow: 0 2px 6px rgb(0 32 29 / 26%);
    --cp-cmd-flash-ring: 0 0 0 var(--ring-2) var(--canopy-200);
    --cp-inverse-text-secondary: var(--mist-300);
    --cp-inverse-sunken: var(--mist-900);
    --cp-inverse-hover: var(--mist-800);
    --cp-inverse-border: var(--mist-600);
    --cp-inverse-accent: var(--canopy-300);
    --cp-indigo: var(--indigo-600);
    --cp-indigo-soft: var(--indigo-100);
    --cp-indigo-soft-text: var(--indigo-800);
    --cp-orchid: var(--orchid-500);
    --cp-orchid-text: var(--orchid-600);
    --cp-orchid-soft: var(--orchid-100);
    --cp-success: var(--canopy-700);
    --cp-success-fill: var(--canopy-500);
    --cp-success-soft: var(--canopy-50);
    --cp-success-border: var(--canopy-100);
    --cp-success-text: var(--canopy-800);
    --cp-warning: var(--amber-400);
    --cp-warning-fill: var(--amber-400);
    --cp-warning-soft: var(--amber-50);
    --cp-warning-border: var(--amber-200);
    --cp-warning-text: var(--amber-900);
    --cp-danger: var(--red-600);
    --cp-danger-fill: var(--red-500);
    --cp-danger-soft: var(--red-50);
    --cp-danger-border: var(--red-200);
    --cp-danger-text: var(--red-800);
    --cp-info: var(--indigo-600);
    --cp-info-soft: var(--indigo-100);
    --cp-info-border: var(--indigo-200);
    --cp-info-text: var(--indigo-800);
    --cp-speaker-1: var(--indigo-600);
    --cp-speaker-2: var(--canopy-600);
    --cp-speaker-3: var(--amber-600);
    --cp-speaker-4: var(--orchid-600);
    --cp-speaker-5: var(--lagoon-600);
    --cp-speaker-6: var(--blossom-500);
    --cp-mark-current-bg: var(--canopy-50);
    --cp-reading-size: 15px;
    --cp-reading-leading: 1.65;
    --cp-gradient:
      linear-gradient(
        170deg,
        #008967 0%,
        #00786e 52%,
        #00686e 100%);
    --side-fg: var(--cp-text);
    --side-muted: var(--cp-text-muted);
    --side-hi: var(--stone-100);
    --side-on: var(--cp-action-soft);
    --panel: var(--cp-surface);
    --ink: var(--cp-text);
    --faint: var(--stone-500);
    --line: var(--cp-border);
    --chip: var(--cp-surface-sunken);
    --mention: var(--cp-action-soft);
    --new: var(--cp-danger-fill);
    --black: #000;
    --live-green: var(--canopy-500);
    --live-green-halo: rgb(0 167 129 / 16%);
    --alert-red: #e5484d;
    --alert-red-halo: rgb(229 72 77 / 16%);
    --wait-amber: #f5a623;
    --wait-amber-halo: rgb(245 166 35 / 18%);
    --presence-away: #a1a1aa;
    --signout: #d4444a;
    --slot-border: #b5bdbb;
    --error-card-border: #f3c3c5;
    --suggest-border: #9fd6c5;
    --tier-urgent: #d13b3b;
    --tier-today: #c27803;
    --tier-fyi: #3c6fb0;
    --tier-today-stripe: #e9a23b;
    --star-on: #b7791f;
    --pill-urgent-bg: #fde2df;
    --pill-urgent-fg: #b42318;
    --diff-del-bg: #fdecea;
    --diff-del-fg: #a3271c;
    --diff-add-bg: #e6f5ea;
    --diff-add-fg: #1b6e35;
    --note-highlight-purple: #e4d7ff;
    --note-fill-gray: var(--mist-100);
    --note-fill-red: var(--red-50);
    --note-fill-orange: var(--amber-50);
    --note-fill-yellow: #fff6cc;
    --note-fill-green: var(--grass-50);
    --note-fill-teal: var(--lagoon-50);
    --note-fill-blue: var(--indigo-100);
    --note-fill-purple: var(--note-highlight-purple);
    --note-table-header: var(--stone-100);
    --kind-bg: var(--stone-100);
    --kind-fg: var(--stone-800);
    --kind-decision-bg: #fff1d6;
    --kind-decision-fg: #8a5300;
    --ptag-bg: var(--canopy-50);
    --ptag-fg: var(--canopy-800);
    --signed-text: var(--canopy-700);
    --reaction-mine-border: var(--canopy-200);
    --reaction-mine-bg: var(--canopy-50);
    --reaction-mine-fg: var(--canopy-800);
    --violet: #8e4ec6;
    --violet-text: #7a3cb8;
    --wash: #fafafb;
    --file-mine-bg: #fff8ec;
    --agent-idle: #c9ccd1;
    --send-idle: #b9bcc2;
    --send-hover: #005a42;
    --call-wave: #bff5e3;
    --on-brand-muted: #bfe3da;
    --on-brand-tint: rgb(255 255 255 / 16%);
    --white-a70: rgb(255 255 255 / 70%);
    --toast-bg: #1f2124;
    --toast-action: #7fe3c1;
    --ink-a06: rgb(0 0 0 / 6%);
    --ink-a07: rgb(0 0 0 / 7%);
    --ink-a08: rgb(0 0 0 / 8%);
    --ink-a12: rgb(0 0 0 / 12%);
    --ink-a70: rgb(0 0 0 / 70%);
    --accent-tint: rgb(0 108 79 / 9%);
    --accent-hover-tint: rgb(0 108 79 / 8%);
    --library-tint: rgb(0 108 79 / 6%);
    --resizer-hover: rgb(0 108 79 / 60%);
    --drop-tint: rgb(0 167 129 / 8%);
    --scrim: rgb(15 17 20 / 45%);
    --sheet-scrim: rgb(0 20 18 / 32%);
    --hold-scrim: rgb(0 20 18 / 38%);
    --mark-bg: #fff1b8;
    --msg-hover: #fafafb;
    --ctx-bg: #fafafb;
    --ostroke: var(--stone-300);
    --o-bg: var(--cp-surface);
    --o-bg2: var(--cp-bg);
    --o-bg3: var(--stone-100);
    --o-can: var(--cp-bg);
    --o-tabs: var(--stone-100);
    --o-hover: var(--stone-200);
    --o-line: var(--cp-border);
    --o-line2: var(--cp-border-strong);
    --o-line3: var(--stone-300);
    --o-fg: var(--cp-text);
    --o-fg2: var(--cp-text-secondary);
    --o-dim: var(--cp-text-muted);
    --o-hi: var(--cp-text);
    --o-mute: var(--cp-text-muted);
    --o-faint: var(--stone-500);
    --o-link: var(--cp-link);
    --o-link2: var(--cp-link-hover);
    --o-sel: var(--cp-action-soft);
    --o-selfg: var(--cp-action-soft-text);
    --o-slider: var(--canopy-600);
    --o-pill: rgb(255 255 255 / 94%);
    --o-knob: #fff;
    --o-shadow: rgb(0 0 0 / 18%);
    --o-edge: rgb(74 70 63 / 18%);
    --o-edge-faint: rgb(74 70 63 / 5%);
    --o-edge-on: rgb(0 108 79 / 80%);
    --o-edge-sel: rgb(0 108 79 / 45%);
    --o-ring: var(--cp-text);
    --o-label: var(--cp-text-muted);
    --o-label-hi: var(--cp-text);
    --o-violet: var(--canopy-500);
    --o-violet-soft: var(--canopy-300);
    --o-index-end: var(--canopy-300);
    --o-graph-line: #4a4d55;
    --o-graph-line-sl: #6e6a86;
    --o-graph-ring: #6e717a;
    --o-graph-text: #c9cbd1;
    --o-graph-halo: #1b1c20;
    --o-graph-dim: #9ea1a9;
    --o-graph-input: #e8e9eb;
    --o-graph-hint: #7a7d86;
    --o-glass-6: rgb(255 255 255 / 6%);
    --o-glass-8: rgb(255 255 255 / 8%);
    --o-glass-10: rgb(255 255 255 / 10%);
    --o-glass-14: rgb(255 255 255 / 14%);
    --o-wikilink: var(--cp-link);
    --o-wikilink-line: rgb(0 108 79 / 35%);
    --o-wikilink-hover: rgb(0 108 79 / 8%);
    --o-owl-line: rgb(0 167 129 / 40%);
    --cp-font-sans:
      "Manrope Variable",
      -apple-system,
      blinkmacsystemfont,
      "Segoe UI",
      roboto,
      "Helvetica Neue",
      arial,
      sans-serif;
    --cp-font-mono:
      "JetBrains Mono",
      ui-monospace,
      sfmono-regular,
      "SF Mono",
      menlo,
      consolas,
      monospace;
    --font: var(--cp-font-sans);
    --mono: var(--cp-font-mono);
    --font-code:
      ui-monospace,
      menlo,
      monospace;
    --text-9: 9px;
    --text-9-5: 9.5px;
    --text-10: 10px;
    --text-10-5: 10.5px;
    --text-11: 11px;
    --text-11-5: 11.5px;
    --text-12: 12px;
    --text-12-5: 12.5px;
    --text-13: 13px;
    --text-13-5: 13.5px;
    --text-14: 14px;
    --text-14-5: 14.5px;
    --text-15: 15px;
    --text-15-5: 15.5px;
    --text-16: 16px;
    --text-17: 17px;
    --text-18: 18px;
    --text-19: 19px;
    --text-20: 20px;
    --text-21: 21px;
    --text-22: 22px;
    --text-24: 24px;
    --text-30: 30px;
    --body-size: var(--text-14);
    --body-leading: var(--leading-145);
    --leading-100: 1;
    --leading-120: 1.2;
    --leading-125: 1.25;
    --leading-130: 1.3;
    --leading-135: 1.35;
    --leading-140: 1.4;
    --leading-145: 1.45;
    --leading-150: 1.5;
    --leading-155: 1.55;
    --leading-160: 1.6;
    --leading-165: 1.65;
    --leading-180: 1.8;
    --weight-400: 400;
    --weight-500: 500;
    --weight-600: 600;
    --weight-650: var(--cp-weight-medium);
    --weight-700: 700;
    --weight-800: 800;
    --cp-weight-medium: 650;
    --cp-tracking-label: 0.07em;
    --cp-tracking-eyebrow: 0.13em;
    --cp-tracking-heading: -0.028em;
    --tracking-snug: -0.01em;
    --tracking-tile: -0.02em;
    --tracking-subtle: 0.02em;
    --tracking-badge: 0.04em;
    --tracking-caps: 0.06em;
    --tracking-section: 0.09em;
    --cp-radius-xs: 5px;
    --cp-radius-sm: 6px;
    --cp-radius-md: 9px;
    --cp-radius-lg: 11px;
    --cp-radius-xl: 13px;
    --cp-radius-card: 14px;
    --cp-radius-panel: 16px;
    --cp-radius-pill: 999px;
    --radius-1: 1px;
    --radius-1-5: 1.5px;
    --radius-2: 2px;
    --radius-3: 3px;
    --radius-4: 4px;
    --radius-7: 7px;
    --radius-8: 8px;
    --radius-10: 10px;
    --radius-12: 12px;
    --radius-17: 17px;
    --radius-18: 18px;
    --radius-22: 22px;
    --radius-round: 50%;
    --space-1: 1px;
    --space-1-5: 1.5px;
    --space-2: 2px;
    --space-3: 3px;
    --space-4: 4px;
    --space-5: 5px;
    --space-6: 6px;
    --space-7: 7px;
    --space-8: 8px;
    --space-9: 9px;
    --space-10: 10px;
    --space-11: 11px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-18: 18px;
    --space-20: 20px;
    --space-22: 22px;
    --space-24: 24px;
    --space-26: 26px;
    --space-28: 28px;
    --space-30: 30px;
    --space-32: 32px;
    --space-36: 36px;
    --space-40: 40px;
    --space-44: 44px;
    --space-56: 56px;
    --space-70: 70px;
    --space-160: 160px;
    --logo-inset: 12%;
    --ring-2: 2px;
    --ring-3: 3px;
    --ring-4: 4px;
    --halo-mix: 25%;
    --cp-shadow-sm: 0 8px 22px -8px rgb(0 32 29 / 35%);
    --cp-shadow-md: 0 12px 30px -10px rgb(0 32 29 / 45%);
    --cp-shadow-lg: 0 20px 44px -22px rgb(0 32 29 / 60%);
    --cp-focus-shadow: 0 0 0 3px var(--canopy-200);
    --halo-error: 0 0 0 var(--ring-3) var(--alert-red-halo);
    --halo-wait: 0 0 0 var(--ring-3) var(--wait-amber-halo);
    --halo-ok: 0 0 0 var(--ring-3) var(--live-green-halo);
    --halo-working: 0 0 0 var(--ring-3) var(--cp-success-soft);
    --ring-accent: 0 0 0 var(--ring-2) var(--cp-action);
    --ring-accent-inset: inset 0 0 0 var(--ring-2) var(--cp-action);
    --ring-focus-inset: inset 0 0 0 var(--ring-2) var(--cp-focus);
    --ring-away: inset 0 0 0 var(--ring-2) var(--presence-away);
    --ring-white: 0 0 0 var(--ring-2) var(--white);
    --ring-white-soft: 0 0 0 var(--ring-2) var(--white-a70);
    --ring-ink: 0 0 0 var(--ring-2) var(--ink);
    --ring-panel: 0 0 0 var(--ring-2) var(--panel);
    --ring-clear: 0 0 0 var(--ring-2) transparent;
    --ring-check-hover: 0 0 0 var(--ring-3) rgb(0 108 79 / 15%);
    --ring-line-inset: inset 0 0 0 1px var(--line);
    --ring-swatch: inset 0 0 0 1px var(--ink-a07);
    --ring-swatch-on: 0 0 0 var(--ring-2) var(--panel), 0 0 0 var(--ring-4) var(--cp-text);
    --shadow-rest: 0 1px 2px rgb(0 32 29 / 4%);
    --shadow-segment: 0 1px 2px rgb(0 32 29 / 8%);
    --shadow-row-on: 0 1px 3px rgb(0 32 29 / 8%);
    --shadow-hover-bar: 0 4px 12px -6px rgb(0 32 29 / 25%);
    --shadow-slide: 0 2px 10px -4px rgb(0 32 29 / 30%);
    --shadow-float: 0 24px 60px -18px rgb(0 32 29 / 45%);
    --shadow-fab: 0 10px 24px -8px rgb(0 32 29 / 55%);
    --shadow-drawer: 20px 0 40px -20px rgb(0 32 29 / 40%);
    --shadow-roz-fab:
      0 0 0 3px var(--white),
      0 0 0 5px var(--canopy-500),
      0 14px 30px -8px rgb(0 32 29 / 55%);
    --rule-top: 0 -1px 0 var(--line);
    --o-shadow-pop: 0 10px 24px -12px var(--o-shadow);
    --o-shadow-preview: 0 14px 30px -12px var(--o-shadow);
    --o-tab-on: inset 0 1px 0 var(--o-line2);
    --roz-head-gradient:
      linear-gradient(
        170deg,
        rgb(0 137 103 / 10%),
        rgb(0 104 110 / 4%));
    --o-graph-gradient:
      radial-gradient(
        circle at 50% 45%,
        #23252b,
        #18191d 70%);
    --o-index-gradient:
      linear-gradient(
        90deg,
        var(--o-violet),
        var(--o-index-end));
    --link-thumb-gradient:
      linear-gradient(
        160deg,
        var(--stone-200),
        var(--stone-500));
    --link-thumb-x:
      linear-gradient(
        160deg,
        var(--mist-900),
        var(--black));
    --link-thumb-video:
      linear-gradient(
        160deg,
        var(--mist-800),
        var(--mist-950));
    --phone-stage-gradient:
      radial-gradient(
        
        circle at 30% 20%,
        color-mix(in srgb, var(--cp-action) 10%, var(--cp-bg)),
        var(--cp-bg) 60% );
    --layer-shell-top: 70;
    --layer-kit-popups: calc(var(--layer-shell-top) + 10);
    --topbar-h: 36px;
    --sidebar-w: 228px;
    --search-panel-w: 560px;
    --search-panel-h: 70vh;
    --roz-dock-w: 340px;
    --workspace-min-w: 360px;
    --library-header-h: 48px;
    --todo-row-h: 48px;
    --todo-due-menu-w: 260px;
    --todo-detail-w: 760px;
    --todo-notes-h: 72px;
    --todo-summary-w: 180px;
    --todo-modal-h: 86vh;
    --todo-peek-w: 420px;
    --todo-peek-h: 70vh;
    --todo-side-w: 300px;
    --insights-plot-h: 200px;
    --todo-menu-w: 280px;
    --todo-sync-w: 184px;
    --todo-display-w: 320px;
    --timeline-names-w: 230px;
    --timeline-row-h: 26px;
    --todo-filters-w: 640px;
    --todo-filters-nav-w: 210px;
    --todo-filters-h: 420px;
    --todo-describe-h: 72px;
    --project-overview-w: 860px;
    --todo-command-w: 560px;
    --todo-command-h: 420px;
    --todo-column-w: 280px;
    --todo-leave-h: 240px;
    --todo-check: 18px;
    --todo-check-large: 22px;
    --todo-attachment-w: 220px;
    --project-dot: 8px;
    --project-ring: 14px;
    --project-progress-w: 140px;
    --project-progress-h: 6px;
    --project-update-lines: 3;
    --roz-float-w: 380px;
    --flow-arrow-drop: 62px;
    --phone-w: 390px;
    --phone-h: 844px;
    --phone-bezel: 12px;
    --phone-radius: 64px;
    --phone-screen-radius: 52px;
    --phone-status-h: 54px;
    --phone-island-w: 124px;
    --phone-island-h: 36px;
    --phone-island-top: 11px;
    --phone-island-radius: 20px;
    --phone-home-w: 134px;
    --phone-home-h: 5px;
    --phone-body: #111614;
    --phone-edge: #2b3330;
    --phone-shadow: 0 0 0 2px var(--phone-edge), 0 40px 80px -30px rgb(0 32 29 / 55%);
  }
  .library-workspace-row {
    display: flex;
    align-items: center;
    padding: 0 var(--space-10) var(--space-10) 0;
  }
  .library-account-menu {
    font: var(--text-14)/1.45 var(--font);
    color: var(--ink);
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: 300px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--cp-radius-card);
    padding: 6px;
    box-shadow: var(--cp-shadow-md);
  }
  .library-account-menu header {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
  }
  .library-account-menu small {
    display: block;
    color: var(--cp-text-muted);
  }
  .library-account-menu > small {
    margin: 10px;
    font: var(--text-11) var(--mono);
    letter-spacing: var(--tracking-section);
    text-transform: uppercase;
  }
  .library-account-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    outline: 1px solid var(--border);
    outline-offset: -1px;
    object-fit: cover;
  }
  .library-account-menu button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    text-align: left;
  }
  .library-account-status {
    display: flex;
    gap: var(--space-4);
  }
  .library-account-menu .library-status-set {
    min-width: 0;
  }
  .library-status-set > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .library-account-menu .library-status-clear {
    flex: none;
    width: 30px;
    justify-content: center;
    color: var(--cp-text-muted);
  }
  .library-sidebar-search {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin: 0 var(--space-4) var(--space-8);
    padding: 0 var(--space-10);
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: var(--cp-radius-md);
    color: var(--side-muted);
    background: var(--side-hi);
  }
  .library-sidebar-search:focus-within {
    border-color: var(--cp-focus);
  }
  .library-sidebar-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: var(--space-4) 0;
    background: transparent;
    color: var(--ink);
    font: 14px/1.45 var(--font);
  }
  .library-sidebar-search input:focus {
    outline: 0;
  }
  .library-menu-shortcut {
    margin-left: auto;
    color: var(--cp-text-muted);
    font: var(--text-11) var(--mono);
  }
  .library-sidebar-search kbd {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--space-18);
    height: var(--space-18);
    padding: 0 var(--space-4);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius-sm);
    font: var(--weight-600) var(--text-11) / var(--leading-100) var(--mono);
  }
  .library-workspace-menu .library-picker-heading {
    padding: var(--space-4) var(--space-10) var(--space-2);
    color: var(--cp-text-muted);
    font: var(--text-12) / var(--leading-145) var(--font);
  }
  .library-sidebar-footer {
    flex: none;
    margin-top: auto;
    padding: 8px 4px 4px;
    border-top: 1px solid var(--line);
  }
  .library-sidebar-footer button {
    --row-bg: var(--cp-bg);
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--side-fg);
    font: 13.5px/1.45 var(--font);
  }
  .library-account-menu button:hover {
    background: var(--side-hi);
  }
  .library-sidebar-footer button:hover {
    --row-bg: var(--side-hi);
    background: var(--row-bg);
  }
}

/* apps/studio-console/src/base.css */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.glyph {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
html:has(dialog:modal) {
  overflow: hidden;
}
html:has(#studio:not([hidden])) {
  scrollbar-gutter: stable;
}
body {
  color-scheme: light dark;
  --studio-action: light-dark(var(--cp-action), var(--canopy-300));
  --studio-action-soft: light-dark( var(--cp-action-soft), color-mix(in srgb, var(--canopy-400) 16%, transparent) );
  --studio-action-soft-text: light-dark(var(--cp-action-soft-text), var(--canopy-200));
  --studio-action-line: light-dark( color-mix(in srgb, var(--canopy-600) 45%, var(--mist-200)), color-mix(in srgb, var(--canopy-400) 45%, transparent) );
  --studio-danger-text: light-dark(var(--cp-danger-text), var(--red-200));
  --studio-danger-soft: light-dark( var(--cp-danger-soft), color-mix(in srgb, var(--red-500) 18%, transparent) );
  --studio-danger-fill: light-dark(var(--cp-danger), var(--red-400));
  --studio-success-text: light-dark(var(--cp-success-text), var(--grass-200));
  --studio-success-soft: light-dark( var(--cp-success-soft), color-mix(in srgb, var(--grass-500) 18%, transparent) );
  --studio-warning-text: light-dark(var(--cp-warning-text), var(--amber-200));
  --studio-warning-soft: light-dark( var(--cp-warning-soft), color-mix(in srgb, var(--amber-400) 16%, transparent) );
  --studio-warning-fill: light-dark(var(--cp-warning), var(--amber-400));
  --studio-info-text: light-dark(var(--cp-info-text), var(--indigo-200));
  --studio-info-soft: light-dark( var(--cp-info-soft), color-mix(in srgb, var(--indigo-500) 20%, transparent) );
  --studio-info-fill: light-dark(var(--cp-info), var(--indigo-400));
  --studio-text-muted: light-dark(var(--cp-text-muted), var(--mist-400));
  --studio-text-secondary: light-dark(var(--cp-text-secondary), var(--mist-200));
  --studio-text: light-dark(var(--cp-text), var(--mist-50));
  --studio-border-strong: light-dark(var(--cp-border-strong), var(--mist-700));
  --studio-border: light-dark(var(--cp-border), var(--mist-800));
  --studio-surface-sunken: light-dark(var(--cp-surface-sunken), var(--mist-900));
  --studio-surface: light-dark(var(--cp-surface), var(--mist-950));
  --studio-bg: light-dark(var(--cp-bg), var(--deep));
  --studio-hover: light-dark(var(--mist-100), color-mix(in srgb, var(--mist-50) 7%, transparent));
  --studio-ring: 0 0 0 3px color-mix(in srgb, var(--cp-focus) 24%, transparent);
  --studio-ease: 140ms cubic-bezier(0.2, 0, 0, 1);
  margin: 0;
  background: var(--studio-surface);
  color: var(--studio-text);
  font: var(--body-size)/var(--body-leading) var(--font);
  word-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}
:is(code, pre, kbd, samp, input, textarea, select, .blueprint-mono, .template-layer, .code-view, .diff-view) {
  word-spacing: normal;
}
::selection {
  background: color-mix(in srgb, var(--canopy-400) 32%, transparent);
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
.view-caption {
  color: var(--studio-text);
  font-size: var(--text-30);
  font-weight: var(--weight-650);
  line-height: var(--leading-120);
  letter-spacing: var(--cp-tracking-heading);
  overflow-wrap: anywhere;
}
h2 {
  font-size: var(--text-17);
  font-weight: var(--weight-650);
  line-height: var(--leading-130);
  letter-spacing: var(--tracking-snug);
}
h3 {
  font-size: var(--text-14);
  font-weight: var(--weight-650);
  line-height: var(--leading-140);
}
.support {
  margin-top: var(--space-8);
  color: var(--studio-text-muted);
}
code {
  font-family: var(--mono);
  font-size: 0.93em;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--cp-focus);
  outline-offset: 2px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  width: fit-content;
  min-height: var(--space-32);
  padding: var(--space-6) var(--space-12);
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-8);
  background: var(--studio-surface);
  color: var(--studio-text);
  font-weight: var(--weight-600);
  font-size: var(--text-13);
  line-height: var(--leading-125);
  cursor: pointer;
  transition:
    background-color var(--studio-ease),
    border-color var(--studio-ease),
    color var(--studio-ease),
    box-shadow var(--studio-ease);
}
button:where(:hover:enabled) {
  background: var(--studio-hover);
}
button:where(:disabled) {
  opacity: 0.5;
  cursor: default;
}
:where(button) .glyph {
  width: 16px;
  height: 16px;
}
.primary {
  border-color: transparent;
  background: var(--cp-action);
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--deep) 22%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 14%, transparent);
}
.primary:hover:enabled {
  background: var(--cp-action-hover);
}
:is(#recent-runs, #versions, #close-switcher, #close-settings, #listening-close, #listening-refresh, #inbox-filter button, .dialog-close) {
  flex: none;
  width: var(--space-32);
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-muted);
}
:is(#recent-runs, #versions, #close-switcher, #close-settings, #listening-close, #listening-refresh, #inbox-filter button, .dialog-close):hover:enabled {
  background: var(--studio-hover);
  color: var(--studio-text);
}
form,
label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  min-width: 0;
}
form {
  gap: var(--space-16);
}
label,
legend {
  color: var(--studio-text-secondary);
  font-weight: var(--weight-600);
  font-size: var(--text-13);
}
input,
textarea,
select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-8);
  padding: var(--space-8) var(--space-12);
  background: var(--studio-surface);
  color: var(--studio-text);
  font-weight: var(--weight-400);
  font-size: var(--text-14);
  line-height: var(--leading-150);
  transition: border-color var(--studio-ease), box-shadow var(--studio-ease);
}
:is(input, textarea, select):where(:hover:enabled:not(:focus-visible)) {
  border-color: var(--cp-border-control);
}
:is(input, textarea, select):where(:focus-visible) {
  outline: none;
  border-color: var(--cp-focus);
  box-shadow: var(--studio-ring);
}
:is(input, textarea):read-only:not([type=checkbox], [type=radio]) {
  background: var(--studio-bg);
}
select {
  appearance: none;
  padding-inline-end: var(--space-36);
  background-image:
    linear-gradient(
      45deg,
      transparent calc(50% - 0.8px),
      var(--studio-text-muted) calc(50% - 0.8px) calc(50% + 0.8px),
      transparent calc(50% + 0.8px)),
    linear-gradient(
      135deg,
      transparent calc(50% - 0.8px),
      var(--studio-text-muted) calc(50% - 0.8px) calc(50% + 0.8px),
      transparent calc(50% + 0.8px));
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5.5px 5.5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select:disabled {
  opacity: 0.6;
  cursor: default;
}
textarea {
  display: block;
  resize: vertical;
  line-height: var(--leading-155);
}
input::placeholder,
textarea::placeholder {
  color: var(--studio-text-muted);
}
input[type=checkbox] {
  flex: none;
  width: var(--space-16);
  height: var(--space-16);
  margin: 0;
  padding: 0;
  accent-color: var(--studio-action);
  box-shadow: none;
}
label:where(:has(input[type=checkbox])) {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  min-width: 0;
  margin: 0;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: var(--text-12)/var(--leading-155) var(--mono);
  margin: var(--space-8) 0;
}
details {
  margin: var(--space-12) 0;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  padding: 0 var(--space-16);
}
summary {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-height: 46px;
  cursor: pointer;
  list-style: none;
  font-weight: var(--weight-600);
  border-radius: var(--radius-8);
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-inline: var(--space-3) var(--space-2);
  border: solid var(--studio-text-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform var(--studio-ease);
}
details[open] > summary::before {
  transform: translateY(-2px) rotate(45deg);
}
details[open] > summary {
  margin-bottom: var(--space-4);
}
details[open] > :last-child:not(summary) {
  margin-bottom: var(--space-16);
}
:where(details) > button,
details > div:not(:empty),
:where(details) > pre:where(:not(:empty)) {
  margin-top: var(--space-8);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.copy-contact {
  width: 24px;
  min-height: 24px;
  margin-left: var(--space-2);
  padding: 0;
  border: 0;
  border-radius: var(--cp-radius-sm);
  background: transparent;
  color: var(--studio-text-muted);
  vertical-align: middle;
}
.copy-contact:hover:enabled {
  color: var(--studio-text);
}
:where(.copy-contact) .glyph {
  width: 14px;
  height: 14px;
}
button.review-copy,
button.file-download {
  white-space: nowrap;
}

/* apps/studio-console/src/runs.css */
[data-tone=info] {
  --tone: var(--studio-info-text);
  --tone-soft: var(--studio-info-soft);
}
[data-tone=action] {
  --tone: var(--studio-action-soft-text);
  --tone-soft: var(--studio-action-soft);
}
[data-tone=warning] {
  --tone: var(--studio-warning-text);
  --tone-soft: var(--studio-warning-soft);
}
[data-tone=danger] {
  --tone: var(--studio-danger-text);
  --tone-soft: var(--studio-danger-soft);
}
[data-tone=success] {
  --tone: var(--studio-success-text);
  --tone-soft: var(--studio-success-soft);
}
[data-tone=neutral] {
  --tone: var(--studio-text-muted);
  --tone-soft: var(--studio-surface-sunken);
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--space-28);
  height: var(--space-28);
  border-radius: var(--radius-8);
  background: var(--tone-soft);
  color: var(--tone);
  transition: background-color var(--studio-ease), color var(--studio-ease);
}
:where(.tile) .glyph {
  width: 15px;
  height: 15px;
}
:where(.tile:has([href="#ico-running"])) .glyph {
  animation: loop-spin 0.9s linear infinite;
}
article:has(#play:not([hidden])) {
  max-width: 96rem;
  padding: var(--space-24) clamp(1.25rem, 2.4vw, 2rem) var(--space-44);
}
article:has(#play:not([hidden])) #agent-title {
  margin-bottom: var(--space-20);
}
article:has(#play:not([hidden])) .identity-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-16);
}
article:has(#play:not([hidden])) .identity-copy > * {
  grid-column: 1;
}
article:has(#play:not([hidden])) .view-caption {
  margin-bottom: var(--space-4);
  color: var(--studio-text-muted);
  font: var(--weight-600) var(--text-11) / var(--leading-140) var(--mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
article:has(#play:not([hidden])) .identity-meta {
  order: 0;
  align-items: center;
  gap: var(--space-6) var(--space-10);
  margin: 0;
}
article:has(#play:not([hidden])) #heading {
  color: var(--studio-text);
  font-size: var(--text-22);
  font-weight: var(--weight-650);
  line-height: var(--leading-120);
  letter-spacing: var(--cp-tracking-heading);
}
article:has(#play:not([hidden])) #agent-meta {
  padding: var(--space-2) var(--space-8);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-pill);
  color: var(--studio-text-secondary);
  font-size: var(--text-11);
  white-space: nowrap;
}
article:has(#play:not([hidden])) #agent-meta::before {
  content: none;
}
article:has(#play:not([hidden])) #instructions-preview {
  max-width: 88ch;
  margin-top: var(--space-4);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
  -webkit-line-clamp: 1;
}
article:has(#play:not([hidden])) .identity-copy [data-open-desktop] {
  grid-area: 1 / 2 / span 3;
  margin-top: 0;
}
#play {
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-28);
}
.loop-panel {
  position: sticky;
  top: var(--space-16);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-4);
  max-height: calc(100dvh - var(--space-32));
  padding: var(--space-12);
  overflow-y: auto;
  border-radius: var(--cp-radius-panel);
  background: var(--studio-bg);
  scrollbar-width: thin;
}
.run-pane {
  container-type: inline-size;
  min-width: 0;
}
.composer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-12) var(--space-14) var(--space-12);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
  box-shadow: var(--shadow-rest);
  transition: border-color var(--studio-ease), box-shadow var(--studio-ease);
}
.composer:focus-within,
.composer[data-status=current] {
  border-color: var(--studio-action-line);
  box-shadow: var(--studio-ring);
}
.composer-heading {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
:where(.composer-heading) h2 {
  font-size: var(--text-15);
}
:where(.composer) form {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-10);
}
:where(.composer) textarea {
  flex: 1;
  min-width: 0;
  min-height: 92px;
  padding: var(--space-10) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.compose-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  gap: var(--space-8) var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--studio-border);
}
.compose-actions label {
  order: -1;
  flex-basis: 100%;
  font-weight: var(--weight-500);
}
.compose-actions .primary {
  min-height: var(--space-32);
  padding-inline: var(--space-12);
}
.submit-hint {
  margin-right: auto;
  color: var(--studio-text-muted);
  font: var(--text-11) / var(--leading-140) var(--mono);
}
#task[aria-busy=true] .primary {
  opacity: 0.6;
  cursor: progress;
}
#play:has(#inspection:not([hidden])) .composer-heading,
#play:has(#inspection:not([hidden])) .submit-hint {
  display: none;
}
#play:has(#inspection:not([hidden])) #task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-8) var(--space-10);
}
#play:has(#inspection:not([hidden])) .compose-actions {
  display: contents;
}
#play:has(#inspection:not([hidden])) .compose-actions label {
  grid-area: 2 / 1 / auto / -1;
}
#play:has(#inspection:not([hidden])) .compose-actions .primary {
  grid-area: 1 / 2;
}
#play:has(#inspection:not([hidden])) .composer textarea {
  grid-area: 1 / 1;
  min-height: var(--space-32);
  max-height: 12rem;
  padding-block: var(--space-6);
  field-sizing: content;
}
#model-connection {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-12);
  margin-top: var(--space-10);
  color: var(--studio-text-secondary);
}
.blueprint {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.blueprint-heading {
  display: none;
}
.loop {
  position: relative;
  width: 304px;
  height: 270px;
  margin: 0 auto;
}
details.blueprint[open] > .loop {
  margin-block: 0;
}
.loop-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
:where(.loop-edges) path {
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.5;
}
:where(.loop-edges) polygon {
  fill: currentcolor;
}
:where(.loop-edges) text {
  fill: var(--studio-text-muted);
  font: var(--weight-500) var(--text-10) / 1 var(--mono);
}
.loop-turn {
  fill: none;
  stroke: var(--studio-border-strong);
  stroke-dasharray: 4 4;
}
.loop-mask {
  fill: var(--studio-bg);
}
.loop-edges .loop-turn-label {
  font-weight: var(--weight-600);
  letter-spacing: 0.08em;
}
:where([data-run]:not([data-run=idle])) .loop-edges .loop-turn-label {
  fill: var(--studio-action);
}
[data-edge] {
  color: color-mix(in srgb, var(--studio-text-muted) 55%, transparent);
  transition: color var(--studio-ease);
}
[data-edge][data-status=taken] {
  color: var(--studio-text-secondary);
}
[data-edge]:is([data-status=active], [data-status=current], [data-status=next]) {
  color: var(--studio-action);
}
[data-edge]:is([data-status=active], [data-status=current], [data-status=next]) path {
  stroke-width: 2;
}
[data-edge=prompt-model] {
  --edge-length: 34;
}
[data-edge=model-decide] {
  --edge-length: 22;
}
[data-edge=decide-tools] {
  --edge-length: 32;
}
[data-edge=tools-model] {
  --edge-length: 196;
}
[data-edge=decide-reply] {
  --edge-length: 46;
}
[data-edge=reply-prompt] {
  --edge-length: 110;
}
:where([data-edge]:not([data-status=pending])) text {
  fill: currentcolor;
}
[data-run=live] [data-edge][data-status=current] path {
  stroke-dasharray: 5 4;
  animation: loop-flow 0.5s linear infinite;
}
.loop-decide polygon {
  fill: var(--studio-surface);
  stroke: var(--studio-border-strong);
  stroke-width: 1.25;
  stroke-linejoin: round;
  transition: stroke var(--studio-ease);
}
:where(.loop-decide) text {
  fill: var(--studio-text);
  font: var(--weight-650) var(--text-12) / 1 var(--font);
}
.loop-decide[data-status=visited] polygon {
  stroke: var(--studio-text-secondary);
}
.loop-decide:is([data-status=active], [data-status=current]) polygon {
  stroke: var(--studio-action);
  stroke-width: 1.75;
}
:where([data-run]:not([data-run=idle]) .loop-decide[data-status=pending]) text {
  fill: var(--studio-text-muted);
}
.loop-node {
  position: absolute;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-10);
  width: 180px;
  height: 52px;
  min-height: 0;
  padding: 0 var(--space-10);
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
  color: var(--studio-text);
  font-weight: var(--weight-400);
  text-align: start;
  box-shadow: var(--shadow-rest);
  transition:
    background-color var(--studio-ease),
    border-color var(--studio-ease),
    box-shadow var(--studio-ease);
}
#model-node {
  top: 34px;
}
#model-node:hover {
  border-color: var(--studio-action-line);
  background: var(--studio-surface);
}
#tool-branch {
  top: 196px;
}
.loop-end {
  top: 110px;
  left: 232px;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  width: 72px;
  padding: 0;
  color: var(--studio-success-text);
}
:where(.loop-end) .glyph {
  width: 15px;
  height: 15px;
}
.loop-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
:where(.loop-node) strong {
  color: var(--studio-text);
  font-size: var(--text-13);
  font-weight: var(--weight-650);
  line-height: var(--leading-130);
}
:where(.loop-end) strong {
  font-size: var(--text-12);
}
:where(.loop-copy) small {
  overflow: hidden;
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  line-height: var(--leading-140);
  text-overflow: ellipsis;
  white-space: nowrap;
}
#model-value {
  font-family: var(--mono);
}
:where([data-run=idle]) #tool-branch:not(.has-tools),
:where([data-run]:not([data-run=idle])) .loop-node[data-status=pending] {
  --tone: var(--studio-text-muted);
  --tone-soft: var(--studio-surface-sunken);
  border-color: var(--studio-border);
  color: var(--studio-text-muted);
  box-shadow: none;
}
:where([data-run=idle] #tool-branch:not(.has-tools)) strong,
:where([data-run]:not([data-run=idle]) .loop-node[data-status=pending]) strong {
  color: var(--studio-text-secondary);
}
.loop-node[data-status=visited] {
  border-color: color-mix(in srgb, var(--studio-text-muted) 70%, transparent);
}
.loop-node[data-status=active] {
  border-color: var(--studio-action);
}
.loop-node[data-status=current] {
  border-color: var(--studio-action);
  background: color-mix(in srgb, var(--studio-action-soft) 55%, var(--studio-surface));
  box-shadow: 0 0 0 3px var(--studio-action-soft);
}
[data-outcome=failed] .loop-end[data-status=current] {
  border-color: var(--studio-danger-fill);
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
  box-shadow: 0 0 0 3px var(--studio-danger-soft);
}
[data-outcome=interrupted] .loop-end[data-status=current] {
  border-color: var(--studio-warning-fill);
  background: var(--studio-warning-soft);
  color: var(--studio-warning-text);
  box-shadow: 0 0 0 3px var(--studio-warning-soft);
}
.loop-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-10) 0 var(--space-4);
  padding: 0;
  list-style: none;
}
.loop-tools:empty {
  display: none;
}
:where(.loop-tools) li {
  padding: var(--space-2) var(--space-8);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface);
  color: var(--studio-text-secondary);
  font-size: var(--text-11-5);
  font-weight: var(--weight-500);
  line-height: var(--leading-140);
}
[data-run=live] .loop-node[data-status=current] {
  animation: loop-pulse 1.8s ease-in-out infinite;
}
[data-run=live] .loop-node[data-status=current]::after {
  content: "NOW";
  position: absolute;
  top: -8px;
  right: var(--space-8);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--cp-radius-xs);
  background: var(--studio-action);
  color: var(--studio-surface);
  font: var(--weight-700) var(--text-9) / 1.2 var(--mono);
  letter-spacing: 0.06em;
}
#past-runs .section-heading,
.trace-heading {
  min-height: var(--space-32);
}
#run-list,
#run-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-2);
}
#run-path {
  max-height: 64dvh;
  margin: var(--space-8) 0 var(--space-12);
  padding: var(--space-2) var(--space-8) var(--space-8);
  overflow-y: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  scrollbar-width: thin;
}
#run-list:not(:has(button), :empty) {
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-56) var(--space-16);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--radius-12);
  color: var(--studio-text-muted);
  text-align: center;
}
:where(#run-list) > .tile {
  width: var(--space-40);
  height: var(--space-40);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-12);
}
:where(#run-list) > strong {
  color: var(--studio-text);
  font-size: var(--text-15);
  font-weight: var(--weight-650);
}
#threads:not(:has(details), :empty),
#listening-decisions:not(:has(.decision-row), :empty) {
  padding: var(--space-28) var(--space-16);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--radius-12);
  color: var(--studio-text-muted);
  text-align: center;
}
:where(#run-list, #run-path) button {
  position: relative;
  justify-content: flex-start;
  gap: var(--space-12);
  width: 100%;
  min-height: 48px;
  padding: var(--space-6) var(--space-12) var(--space-6) var(--space-8);
  border-color: transparent;
  border-radius: var(--radius-10);
  background: transparent;
  font-weight: var(--weight-400);
  text-align: start;
}
:where(#run-list, #run-path) button:hover {
  background: var(--studio-hover);
}
.row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: var(--space-1);
  min-width: 0;
}
:where(.row-main) strong,
:where(.row-main) small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:where(.row-main) strong {
  color: var(--studio-text);
  font-size: var(--text-13-5);
  font-weight: var(--weight-600);
  line-height: var(--leading-135);
}
:where(.row-main) small {
  color: var(--studio-text-muted);
  font: var(--text-11) / var(--leading-140) var(--mono);
}
:where(#run-list, #run-path) time {
  flex: none;
  color: var(--studio-text-muted);
  font: var(--text-11) / 1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
:where(#run-list) time {
  min-width: 9.5rem;
  text-align: end;
}
.run-state {
  flex: none;
  width: 6rem;
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
  text-transform: capitalize;
}
#run-state,
.decision-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  text-transform: capitalize;
}
#run-state::before,
.decision-state::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-round);
  background: var(--studio-text-muted);
}
#run-state[data-state=completed]::before,
.decision-state:is([data-state=replied], [data-state=sending])::before {
  background: var(--live-green);
}
#run-state[data-state=failed]::before,
.decision-state:is([data-state=failed], [data-state=unavailable], [data-state=revoked])::before {
  background: var(--studio-danger-fill);
}
#run-state[data-state=interrupted]::before,
.decision-state:is([data-state=allowance], [data-state=uncertain])::before {
  background: var(--studio-warning-fill);
}
#run-state[data-state=queued]::before,
#run-state[data-state=running]::before,
.decision-state:is([data-state=queued], [data-state=processing])::before {
  background: var(--studio-info-fill);
  animation: studio-pulse 1.4s ease-in-out infinite;
}
#play:has(#inspection:not([hidden])) #past-runs {
  display: none;
}
#inspection {
  scroll-margin-top: var(--space-70);
}
.review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: var(--space-32);
  margin-bottom: var(--space-12);
}
#back-to-agent {
  margin-left: calc(-1 * var(--space-10));
  padding-inline: var(--space-10);
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
}
#back-to-agent:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}
.run-header {
  margin-bottom: var(--space-16);
}
.run-title,
.trace-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-12);
}
#run-title {
  font-size: var(--text-22);
}
#run-title:focus-visible {
  outline: none;
}
#run-state {
  padding: var(--space-4) var(--space-10);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-650);
}
#run-state[data-state=completed] {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
#run-state[data-state=failed] {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
}
#run-state[data-state=interrupted] {
  background: var(--studio-warning-soft);
  color: var(--studio-warning-text);
}
#run-state[data-state=queued],
#run-state[data-state=running] {
  background: var(--studio-info-soft);
  color: var(--studio-info-text);
}
.run-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-16);
  margin: var(--space-6) 0 0;
}
.run-facts > div {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  min-width: 0;
}
.run-facts dt,
.cedar-facts dt,
#stage-facts dt {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.run-facts dd {
  margin: 0;
  font: var(--text-12) / var(--leading-150) var(--mono);
  overflow-wrap: anywhere;
}
#run-answer {
  margin-bottom: var(--space-16);
  padding: var(--space-14) var(--space-18) var(--space-18);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-surface);
  box-shadow: var(--shadow-rest);
}
#run-answer .section-heading {
  margin-bottom: var(--space-6);
}
#run-answer h2 {
  font-size: var(--text-15);
}
#run-answer .markdown-body {
  max-width: 75ch;
  font-size: var(--text-15);
}
#answer-body .reply-excerpt {
  max-width: 75ch;
  margin: 0;
  font-size: var(--text-15);
  overflow-wrap: anywhere;
}
.loop-panel > #run-answer {
  min-width: 0;
  margin: var(--space-8) 0 0;
  padding: var(--space-12) var(--space-16) var(--space-14);
}
.loop-panel > #run-answer :is(.markdown-body, .reply-excerpt) {
  font-size: var(--text-13-5);
}
.loop-panel > #run-answer .reply-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.reply-disclosure {
  margin: var(--space-8) 0 0;
  padding: 0;
  border: 0;
}
.reply-disclosure > summary,
.reviewed-input > summary,
details.markdown-preview > summary {
  width: fit-content;
  min-height: var(--space-28);
  gap: var(--space-6);
  color: var(--studio-action);
  font-size: var(--text-13);
}
:is(.reply-disclosure, .reviewed-input, .markdown-preview) > summary::before {
  border-color: currentcolor;
}
.reply-disclosure[open] > :last-child:not(summary) {
  margin-bottom: 0;
}
#playback,
#files {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
#files:not(:empty) {
  margin-bottom: var(--space-16);
}
.trace-heading {
  margin-top: var(--space-4);
}
#trace-meta {
  color: var(--studio-text-muted);
  font: var(--text-11-5) / 1 var(--mono);
}
#playback {
  gap: var(--space-4);
  margin-left: auto;
}
#playback button {
  min-height: var(--space-28);
  padding-block: var(--space-4);
  font-size: var(--text-12);
}
:is(#previous, #next) {
  width: var(--space-28);
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-muted);
}
:is(#previous, #next):hover:enabled {
  background: var(--studio-hover);
  color: var(--studio-text);
}
.turn-label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: var(--space-10) 0 var(--space-2);
  color: var(--studio-text-muted);
  font: var(--weight-600) var(--text-11) / 1 var(--mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.turn-label::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--studio-text-muted);
  border-radius: var(--radius-round);
}
.turn-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--studio-border);
}
#run-path .in-turn {
  width: calc(100% - var(--space-16));
  margin-left: var(--space-16);
}
#run-path .in-turn::before {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: -12.5px;
  width: 1px;
  background: var(--studio-border);
}
#run-path button[aria-current=step] {
  border-color: var(--studio-action-line);
  background: var(--studio-action-soft);
}
.row-duration,
.row-now {
  flex: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--cp-radius-sm);
  font: var(--weight-500) var(--text-11) / 1 var(--mono);
}
.row-duration {
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
}
.row-now {
  background: var(--studio-action);
  color: var(--studio-surface);
  font-weight: var(--weight-700);
  font-size: var(--text-9-5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  min-width: 0;
  margin-top: var(--space-8);
  padding: var(--space-14) var(--space-16) var(--space-16);
  overflow: hidden;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
  box-shadow: var(--shadow-rest);
}
.step-detail:focus-visible {
  outline-offset: 0;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
:where(.step-heading) .tile {
  width: var(--space-32);
  height: var(--space-32);
}
#step-title {
  font-size: var(--text-15);
  letter-spacing: var(--tracking-snug);
}
#step-meta {
  margin-top: var(--space-1);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
  line-height: var(--leading-140);
}
.step-strip {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-inline: calc(-1 * var(--space-16));
  padding: var(--space-10) var(--space-16);
  border-block: 1px solid var(--studio-border);
  background: var(--studio-bg);
  color: var(--studio-text-secondary);
  font-size: var(--text-12-5);
  line-height: var(--leading-150);
}
.step-detail > .step-strip:last-child,
.step-detail > .step-strip:has(+ [hidden] + [hidden]) {
  margin-bottom: calc(-1 * var(--space-16));
  border-bottom: 0;
}
.node-chip {
  flex: none;
  padding: var(--space-2) var(--space-8);
  border-radius: var(--cp-radius-sm);
  background: var(--tone-soft);
  color: var(--tone);
  font-size: var(--text-11-5);
  font-weight: var(--weight-600);
  white-space: nowrap;
}
#step-explain {
  flex: 1 1 12rem;
  min-width: 0;
}
#detail {
  max-height: 18rem;
  margin: 0;
  overflow: auto;
  font: var(--text-13) / var(--leading-155) var(--font);
}
#stage-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-6) var(--space-12);
  margin: 0;
}
#stage-facts dt {
  font: var(--weight-600) var(--text-10-5) / var(--leading-140) var(--mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
#stage-facts dd {
  margin: 0;
  font-size: var(--text-13);
  font-weight: var(--weight-500);
  overflow-wrap: anywhere;
}
.run-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  margin-left: calc(-1 * var(--space-8));
}
.run-more > details {
  margin: 0;
  padding: 0;
  border-color: transparent;
}
.run-more > details > summary {
  min-height: var(--space-32);
  padding-inline: var(--space-8) var(--space-10);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.run-more > details > summary:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}
.run-more > details[open] {
  order: 1;
  flex-basis: 100%;
  margin: var(--space-4) 0 0 var(--space-8);
  padding: 0 var(--space-16);
  border-color: var(--studio-border);
}
.run-more > details[open] > summary {
  margin-left: calc(-1 * var(--space-8));
  color: var(--studio-text);
}
#studio-run-context {
  max-height: 24rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
#studio-run-context > .customer-timeline-title {
  display: none;
}
#events {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-2);
  max-height: 20rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
#events::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--space-20);
  bottom: var(--space-20);
  left: 20px;
  width: 1px;
  background: var(--studio-border-strong);
}
#events button {
  justify-content: start;
  gap: var(--space-10);
  width: 100%;
  min-height: 42px;
  padding: var(--space-6) var(--space-10);
  border: 0;
  background: transparent;
  text-align: start;
  overflow-wrap: anywhere;
}
#events button:where(:hover) {
  background: var(--studio-hover);
}
#events button[aria-current=true] {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
:where(#events) strong {
  display: block;
}
:where(#events) small {
  display: block;
  color: var(--studio-text-muted);
  font: var(--text-11) var(--mono);
}
.step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-round);
  background: var(--studio-surface);
  color: var(--studio-text-secondary);
  font: var(--text-11) var(--mono);
}
#events button[aria-current=true] .step-number {
  border-color: var(--studio-action);
  color: var(--studio-action);
}
.step-elapsed {
  margin-left: auto;
  white-space: nowrap;
}
#comparison {
  margin-block: var(--space-18);
}
#comparison:not(:empty) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
}
#comparison > button {
  grid-column: 1 / -1;
}
[data-run=open] [data-edge]:is([data-status=current], [data-status=next]) path {
  animation: loop-travel 0.3s ease-out backwards;
}
[data-run=open] [data-edge]:is([data-status=current], [data-status=next]) polygon {
  animation: loop-arrive 0.3s step-end backwards;
}
[data-run=open] [data-edge=tools-model][data-status=current] :is(path, polygon) {
  animation-duration: 0.5s;
}
[data-run=open] [data-edge]:is([data-edge=decide-tools], [data-edge=decide-reply])[data-status=current] :is(path, polygon) {
  animation-delay: 0.18s;
}
[data-run=open] [data-edge=reply-prompt][data-status=next] :is(path, polygon) {
  animation-delay: 0.4s;
}
@keyframes loop-flow {
  to {
    stroke-dashoffset: -9;
  }
}
@keyframes loop-travel {
  from {
    stroke-dasharray: var(--edge-length);
    stroke-dashoffset: var(--edge-length);
  }
  to {
    stroke-dasharray: var(--edge-length);
    stroke-dashoffset: 0;
  }
}
@keyframes loop-arrive {
  from {
    opacity: 0;
  }
}
@keyframes loop-pulse {
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}
@keyframes loop-spin {
  to {
    transform: rotate(360deg);
  }
}
@container (width < 30rem) {
  .run-state {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }
  .run-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #comparison:not(:empty) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (width > 68rem) and (height >= 40rem) {
  article:has(#play:not([hidden])) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding-bottom: var(--space-20);
  }
  #try:has(> #play:not([hidden])) {
    flex: 1;
    min-width: 0;
    min-height: 0;
  }
  #play {
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
  }
  .loop-panel {
    position: static;
    max-height: 100%;
  }
  .run-pane,
  #inspection,
  #past-runs {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .run-pane {
    height: 100%;
  }
  #inspection,
  #past-runs {
    flex: 1;
    min-width: 0;
  }
  #inspection {
    margin-inline: calc(-1 * var(--space-12));
    padding-inline: var(--space-12);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  #inspection > * {
    flex: none;
  }
  #inspection > #run-path {
    flex: 0 1 auto;
    min-height: 10rem;
    max-height: none;
  }
  #run-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
@media (width <= 68rem) {
  #play {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-24);
  }
  .loop-panel {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-16);
    max-height: none;
  }
  #play:has(#inspection:not([hidden])) .loop-panel {
    order: 1;
  }
  .step-detail {
    grid-column: 1 / -1;
    order: -1;
    margin-top: 0;
  }
}
@media (width <= 44rem) {
  article:has(#play:not([hidden])) {
    padding: var(--space-16) var(--space-14) calc(78px + env(safe-area-inset-bottom, 0px));
  }
  article:has(#play:not([hidden])) #instructions-preview {
    display: none;
  }
  .loop-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    overflow: hidden;
  }
  .blueprint-heading {
    display: flex;
    justify-content: space-between;
    min-height: var(--space-40);
    padding-inline: var(--space-6);
    color: var(--studio-text-secondary);
    font-size: var(--text-13);
  }
  .blueprint-heading::before {
    order: 1;
    margin-inline: var(--space-8) var(--space-4);
  }
  #path-model {
    flex: 1;
    overflow: hidden;
    color: var(--studio-text-muted);
    font: var(--text-11) var(--mono);
    text-align: end;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .blueprint[open] #path-model {
    visibility: hidden;
  }
  .blueprint {
    overflow-x: auto;
  }
  .submit-hint {
    display: none;
  }
  #run-share .review-copy span {
    display: none;
  }
}

/* apps/studio-console/src/inbox.css */
#mailbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 var(--space-12);
}
#inbox-contact,
#threads,
#inbox-status,
#older {
  grid-column: 1 / -1;
}
#inbox-contact:not(:empty) {
  margin-bottom: var(--space-28);
}
#inbox-title:has(+ #inbox-filter[hidden]) {
  display: none;
}
#inbox-filter {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.channels {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-10);
  background: var(--studio-surface-sunken);
}
.channels label {
  position: relative;
  display: block;
  cursor: pointer;
}
:where(.channels) span {
  display: block;
  padding: var(--space-5) var(--space-12);
  border-radius: var(--radius-7);
  color: var(--studio-text-secondary);
  font-weight: var(--weight-600);
  transition: background-color var(--studio-ease), color var(--studio-ease);
}
:where(.channels label:hover) span {
  color: var(--studio-text);
}
:where(.channels :checked) + span {
  background: var(--studio-surface);
  color: var(--studio-text);
  box-shadow: var(--shadow-segment);
}
:where(.channels :focus-visible) + span {
  outline: 2px solid var(--cp-focus);
  outline-offset: 1px;
}
#threads:not(:empty) {
  margin-top: var(--space-14);
}
#threads details {
  margin: 0;
  padding: 0;
  border-width: 0 0 1px;
  border-radius: 0;
}
#threads details:first-child {
  border-top-width: 1px;
}
#threads summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--space-12);
  align-items: baseline;
  gap: var(--space-2) var(--space-12);
  min-height: 0;
  margin: 0;
  padding: var(--space-14) var(--space-10);
  border-radius: 0;
  transition: background-color var(--studio-ease);
}
#threads summary:hover {
  background: var(--studio-bg);
}
#threads summary::before {
  content: none;
}
#threads summary::after {
  content: "";
  grid-row: 1;
  grid-column: 3;
  align-self: center;
  width: 6px;
  height: 6px;
  border: solid var(--studio-text-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform var(--studio-ease);
}
#threads details[open] summary::after {
  transform: rotate(45deg);
}
:where(#threads summary) strong,
.thread-peer,
.thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:where(#threads summary) strong {
  font-weight: var(--weight-650);
}
:where(#threads summary) time,
.thread-peer {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
  font-variant-numeric: tabular-nums;
}
.thread-preview {
  color: var(--studio-text-secondary);
  font-weight: var(--weight-400);
}
.thread-peer,
.thread-preview {
  grid-column: 1 / 3;
}
.thread-preview:empty,
#threads details[open] .thread-preview {
  display: none;
}
#threads details[open] {
  padding-bottom: var(--space-16);
}
#threads details form {
  grid-template-columns: minmax(0, 24rem) auto;
  align-items: end;
  justify-content: start;
  gap: var(--space-8);
  margin: var(--space-4) var(--space-10) var(--space-16);
}
:where(#threads details form) button {
  min-height: 39px;
}
.message {
  width: fit-content;
  max-width: min(88%, 44rem);
  margin: var(--space-10) var(--space-10) 0;
  padding: var(--space-10) var(--space-14) var(--space-12);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12) var(--radius-12) var(--radius-12) var(--radius-4);
  background: var(--studio-bg);
  overflow-wrap: anywhere;
}
.message[data-direction=outbound] {
  margin-left: auto;
  border-color: transparent;
  border-radius: var(--radius-12) var(--radius-12) var(--radius-4);
  background: var(--studio-action-soft);
}
.message-meta,
.message > p {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.message[data-direction=outbound] :is(.message-meta, p) {
  color: color-mix(in srgb, var(--studio-action-soft-text) 78%, transparent);
}
.message pre {
  margin: var(--space-4) 0 var(--space-6);
  color: var(--studio-text);
  font: var(--text-14)/var(--leading-155) var(--font);
}
.message pre:empty {
  display: none;
}
.message button {
  min-height: var(--space-28);
  margin-top: var(--space-6);
  padding-block: var(--space-3);
  font-size: var(--text-12);
}
.message[data-direction=outbound] button {
  border-color: color-mix(in srgb, var(--studio-action) 30%, transparent);
  background: transparent;
  color: var(--studio-action-soft-text);
}
#inbox-status:not(:empty) {
  margin-top: var(--space-12);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
#older {
  justify-self: center;
  margin-top: var(--space-16);
}
@media (width <= 44rem) {
  #mailbox {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-10);
  }
  #inbox-filter {
    justify-content: space-between;
  }
  #threads details form {
    grid-template-columns: minmax(0, 1fr);
  }
  .message {
    max-width: 94%;
  }
}

/* apps/studio-console/src/evaluations.css */
.eval-review-tools {
  display: flex;
  gap: var(--space-8);
  flex-shrink: 0;
}
.eval-context {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-10);
  margin: 0 0 var(--space-6);
  overflow-wrap: anywhere;
}
.eval-context span::before {
  content: "\b7";
  margin-right: var(--space-10);
}
.eval-context ~ .eval-context {
  max-width: 48rem;
  margin: var(--space-16) 0;
  font-weight: var(--weight-400);
}
.section-heading.eval-page-heading {
  align-items: flex-start;
  margin-bottom: var(--space-24);
}
.eval-page-heading h1:focus-visible {
  outline: none;
}
.eval-page-heading button {
  margin-top: var(--space-2);
}
.eval-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-16) 0;
}
.eval-case-result {
  padding: var(--space-20) 0;
  border-top: 1px solid var(--studio-border);
}
.case-heading h3 {
  font-size: var(--text-15);
}
.experiment-editor,
.case-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
}
.experiment-editor {
  max-width: 48rem;
}
:where(.experiment-editor) fieldset {
  gap: var(--space-14);
  padding: var(--space-8) var(--space-18) var(--space-18);
  background: var(--studio-bg);
}
:where(.experiment-editor) legend {
  padding-inline: var(--space-6);
  color: var(--studio-text);
  font-weight: var(--weight-650);
}
:where(.experiment-editor) fieldset details {
  margin: 0;
  background: var(--studio-surface);
}
:where(.experiment-editor) fieldset details > div > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-8);
  margin-top: var(--space-12);
}
:where(.experiment-editor) fieldset details label {
  justify-self: stretch;
}
.experiment-editor .eval-actions {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--studio-border);
  background: var(--studio-surface);
}
.experiment-editor .eval-actions .primary {
  min-height: var(--space-36);
  margin-left: auto;
}
.eval-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-12);
}
.baseline {
  padding: var(--space-12) var(--space-16) var(--space-14);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
}
.baseline > span,
.baseline > h3 {
  display: block;
  color: var(--studio-text);
  font-size: var(--text-13);
  font-weight: var(--weight-650);
}
.baseline .markdown-body {
  margin-top: var(--space-8);
  color: var(--studio-text-secondary);
}
#baseline-instructions {
  max-height: 12rem;
  overflow: auto;
  overflow-wrap: anywhere;
}
.score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: var(--space-6) var(--space-12);
  min-width: 0;
  padding: var(--space-14) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
}
.score-card h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-13);
}
.score-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: currentcolor;
}
.score-card[data-passed=true] h3 {
  color: var(--studio-success-text);
}
.score-card[data-passed=false] h3 {
  color: var(--studio-danger-text);
}
.score-card[data-passed=false] {
  border-color: color-mix(in srgb, var(--studio-danger-fill) 28%, var(--studio-border));
}
.score-card small {
  color: var(--studio-text-muted);
  font: var(--text-11)/var(--leading-160) var(--mono);
}
.score-card pre {
  grid-column: 1 / -1;
  margin: var(--space-4) 0;
  font: var(--text-14)/var(--leading-155) var(--font);
}
.score-card details {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
}
.score-card details > summary {
  width: fit-content;
  min-height: var(--space-28);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
}
.score-card ol {
  margin: 0;
  padding-inline-start: var(--space-20);
  color: var(--studio-text-secondary);
  font: var(--text-12)/var(--leading-160) var(--mono);
}
:where(.experiment-editor, .experiment-definition, .eval-case-result) p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (width <= 44rem) {
  .section-heading:has(.eval-review-tools) {
    flex-direction: column;
    align-items: flex-start;
  }
}
.rubric-reason {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  padding-top: var(--space-10);
  border-top: 1px solid var(--studio-border);
}
.eval-call-count {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.rubric-reason p {
  margin: var(--space-2) 0 0;
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
  overflow-wrap: anywhere;
}
.expectation {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-6) 0 var(--space-2);
}
.expectation > span {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.expectation code {
  padding: var(--space-1) var(--space-6);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-xs);
  background: var(--studio-bg);
  font: var(--text-12)/var(--leading-150) var(--mono);
  overflow-wrap: anywhere;
}
.reviewed-input {
  margin: 0 0 var(--space-10);
  padding: 0;
  border: 0;
}
.reviewed-input[open] > :last-child:not(summary) {
  margin-bottom: 0;
}
.reviewed-input > p,
.reviewed-input > pre {
  margin: 0 0 var(--space-8);
  padding: var(--space-10) var(--space-14);
  border-radius: var(--radius-8);
  background: var(--studio-bg);
}
.reviewed-input > strong {
  display: block;
  margin-bottom: var(--space-4);
  font: var(--weight-500) var(--text-12) var(--mono);
}
.experiment-definition {
  margin: 0;
}
.experiments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.experiments button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: start;
  font-weight: var(--weight-500);
}
.latest-comparison {
  --pass-track: var(--canopy-800);
  --baseline-fill: var(--canopy-100);
  --candidate-fill: var(--canopy-300);
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.85fr) auto;
  gap: clamp(1rem, 2.8vw, 2.5rem);
  padding: clamp(1.25rem, 2.7vw, 2rem);
  align-items: center;
  border: 1px solid var(--canopy-800);
  border-radius: var(--cp-radius-panel);
  background:
    linear-gradient(
      120deg,
      var(--deep) 30%,
      var(--canopy-900));
  color: var(--canopy-50);
}
.latest-comparison:hover:enabled {
  border-color: var(--canopy-600);
  background:
    linear-gradient(
      120deg,
      var(--deep) 30%,
      var(--canopy-900));
}
.comparison-info,
.latest-scores {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  justify-items: start;
  overflow-wrap: anywhere;
}
.latest-comparison .comparison-info {
  gap: var(--space-8);
}
:where(.latest-comparison) .comparison-info > strong {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: var(--weight-650);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}
.comparison-info small,
.latest-scores > small,
.earlier-title small,
.empty-experiments p,
.eval-status,
.baseline small {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.baseline small {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--mono);
}
.eval-status:not(:empty) {
  margin: calc(-1 * var(--space-12)) 0 var(--space-20);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.latest-comparison small {
  color: var(--canopy-100);
}
.latest-label,
.latest-scores > small {
  margin-bottom: var(--space-6);
}
.latest-scores {
  gap: var(--space-8);
}
.pass-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.pass-chart-row {
  display: grid;
  align-items: center;
  grid-template-columns: 5rem minmax(2rem, 1fr) auto;
  gap: var(--space-10);
  font-size: var(--text-13);
}
.pass-chart-row strong,
.past-scores {
  font-family: var(--mono);
  font-weight: 500;
}
.pass-chart-row meter {
  width: 100%;
  height: 10px;
}
.pass-chart-row meter::-webkit-meter-bar {
  height: 6px;
  border: 0;
  border-radius: var(--cp-radius-pill);
  background: var(--pass-track, var(--studio-border));
}
.pass-chart-row meter::-webkit-meter-optimum-value {
  border-radius: var(--cp-radius-pill);
  background: var(--baseline-fill, var(--studio-text-secondary));
}
.pass-chart-row:last-child meter::-webkit-meter-optimum-value {
  background: var(--candidate-fill, var(--studio-action));
}
.comparison-arrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  justify-self: end;
  color: var(--studio-text-muted);
  transition: transform var(--studio-ease), background-color var(--studio-ease);
}
.latest-comparison .comparison-arrow {
  width: var(--space-32);
  height: var(--space-32);
  border: 1px solid var(--canopy-700);
  border-radius: 50%;
  color: var(--canopy-100);
}
.latest-comparison:hover .comparison-arrow {
  background: var(--canopy-800);
  transform: translateX(2px);
}
.past-comparison:hover .comparison-arrow {
  color: var(--studio-text);
  transform: translateX(2px);
}
.earlier-title,
.past-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem 10.5rem 1rem;
  gap: var(--space-12);
  padding-inline: var(--space-8);
}
.earlier-title {
  align-items: baseline;
  margin-top: var(--space-32);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--studio-border);
}
.earlier-title small {
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.history-count {
  margin-inline-start: var(--space-8);
  padding: var(--space-1) var(--space-7);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font: var(--weight-600) var(--text-11) var(--mono);
  letter-spacing: 0;
  vertical-align: 2px;
}
.history-count:empty {
  display: none;
}
.past-comparison {
  align-items: center;
  padding-block: var(--space-12);
  border: 0;
  border-bottom: 1px solid var(--studio-border);
  border-radius: 0;
  background: transparent;
}
.past-comparison:hover:enabled {
  background: var(--studio-bg);
}
.past-comparison .comparison-info {
  color: var(--studio-text);
  gap: var(--space-4);
}
.past-comparison .comparison-info > strong {
  font-size: var(--text-14);
}
.pass-difference,
.case-change,
.comparison-state {
  width: fit-content;
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.pass-difference[data-direction=up],
.case-change[data-gain=true] {
  color: var(--studio-success-text);
}
.pass-difference[data-direction=down],
.case-change[data-gain=false] {
  color: var(--studio-danger-text);
}
.pass-difference[data-direction=mixed] {
  color: var(--studio-warning-text);
}
.case-change {
  padding: var(--space-2) var(--space-8);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-danger-soft);
}
.case-change[data-gain=true] {
  background: var(--studio-success-soft);
}
.past-comparison .pass-difference[data-direction=equal] {
  color: var(--studio-text-secondary);
  font-weight: var(--weight-500);
}
.latest-comparison .pass-difference {
  color: var(--canopy-50);
  border-radius: var(--radius-4);
  padding: 3px 8px;
  background: var(--canopy-800);
}
.comparison-state {
  color: var(--studio-text-secondary);
  text-transform: capitalize;
}
.past-comparison .comparison-state {
  grid-column: span 2;
}
.empty-experiments {
  padding: clamp(2rem, 6vw, 3.5rem) var(--space-24);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--cp-radius-card);
  background: var(--studio-bg);
  text-align: center;
}
.empty-experiments p {
  margin: var(--space-8) auto 0;
  max-width: 36ch;
  font-size: var(--text-14);
}
.eval-verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 1fr);
  gap: var(--space-24);
  align-items: center;
  padding: var(--space-20) var(--space-24);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-bg);
}
.verdict-summary p {
  margin: var(--space-6) 0 0;
  color: var(--studio-text-secondary);
  overflow-wrap: anywhere;
}
.case-review-header,
.case-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.case-review-header {
  margin: var(--space-28) 0 var(--space-12);
}
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-10);
  background: var(--studio-surface-sunken);
}
.case-filters button {
  min-height: var(--space-28);
  padding: var(--space-3) var(--space-10);
  border: 0;
  border-radius: var(--radius-7);
  background: transparent;
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
}
.case-filters button[aria-pressed=true] {
  background: var(--studio-surface);
  color: var(--studio-text);
  box-shadow: var(--shadow-segment);
}
.case-filters button:where(:hover:enabled:not([aria-pressed=true])) {
  background: transparent;
  color: var(--studio-text);
}
.experiment-editor fieldset > button {
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
  justify-self: start;
  margin-left: calc(-1 * var(--space-12));
}
.experiment-editor fieldset > button:where(:hover:enabled) {
  color: var(--studio-danger-text);
}
@media (width <= 44rem) {
  .eval-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .experiment-editor .eval-actions {
    position: static;
  }
}
@media (width <= 54rem) {
  .latest-comparison,
  .eval-verdict {
    grid-template-columns: minmax(0, 1fr);
  }
  .latest-comparison {
    position: relative;
  }
  .latest-comparison .comparison-info {
    padding-inline-end: var(--space-32);
  }
  .latest-comparison .comparison-arrow {
    position: absolute;
    top: var(--space-16);
    right: var(--space-16);
  }
  .earlier-title,
  .past-comparison {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4) var(--space-8);
  }
  .past-comparison .comparison-state {
    grid-column: auto;
    justify-self: end;
  }
  .past-comparison .comparison-info {
    grid-row: span 2;
  }
  .past-comparison :is(.past-scores, .pass-difference) {
    justify-self: end;
  }
  .earlier-title small:last-child,
  .past-comparison .comparison-arrow {
    display: none;
  }
}
@media (width <= 24rem) {
  .section-heading.eval-page-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .earlier-title {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
  .latest-comparison .comparison-info > strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}

/* apps/studio-console/src/cedar-inspector.css */
.decisions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--space-20);
}
.decisions-layout:has(#cedar-run:not(:empty)) {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.decision-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-14) var(--space-4);
  border-bottom: 1px solid var(--studio-border);
}
.decision-row:first-child {
  border-top: 1px solid var(--studio-border);
}
.decision-meta,
.customer-run-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-10);
}
.decision-time,
.decision-note,
.timeline-message,
.timeline-event time,
.timeline-event span {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.decision-time {
  font-variant-numeric: tabular-nums;
}
.decision-state {
  font-weight: var(--weight-650);
  text-transform: none;
}
.decision-subject {
  margin-top: var(--space-4);
}
.decision-row > button {
  justify-self: start;
  min-height: var(--space-28);
  margin-top: var(--space-6);
  padding-block: var(--space-3);
  font-size: var(--text-12);
}
.decision-outcome {
  padding: var(--space-3) var(--space-9);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
}
.decision-outcome[data-outcome=run],
.decision-outcome[data-outcome=mention] {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.decision-outcome:is([data-outcome=cap], [data-outcome=allowance]) {
  background: var(--studio-warning-soft);
  color: var(--studio-warning-text);
}
.decision-outcome[data-outcome=error] {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
}
button.inspect-decision[aria-pressed=true] {
  border-color: var(--studio-action-line);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.customer-run-header {
  justify-content: flex-start;
}
.customer-run-header button {
  min-height: var(--space-28);
  padding-block: var(--space-3);
  font-size: var(--text-12);
}
.customer-run-title {
  margin-right: auto;
  font-size: var(--text-16);
}
.customer-run-title:focus-visible {
  outline: none;
}
.customer-timeline-title {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.customer-timeline {
  margin: var(--space-14) 0 0;
  padding: 0;
  list-style: none;
}
.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-1) var(--space-10);
  margin-left: var(--space-5);
  padding: 0 0 var(--space-16) var(--space-20);
  border-left: 1px solid var(--studio-border-strong);
}
.timeline-event::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -4.5px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--studio-text-muted);
  box-shadow: 0 0 0 3px var(--studio-surface);
}
.timeline-event[data-kind="run.state_changed"]::before,
.timeline-event[data-kind="reply.delivery_changed"]::before {
  background: var(--studio-action);
}
.timeline-event:last-child {
  padding-bottom: var(--space-6);
  border-color: transparent;
}
.timeline-event strong {
  font-weight: var(--weight-600);
}
.timeline-event span {
  grid-column: 1/-1;
}
.timeline-event time {
  font-family: var(--mono);
  font-size: var(--text-11);
}
.timeline-message:not(:empty) {
  margin: var(--space-10) 0;
}
.cedar-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  margin: 0 0 var(--space-24);
  overflow: hidden;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
}
.cedar-facts > div {
  min-width: 0;
  padding: var(--space-12) var(--space-16);
  box-shadow: -1px -1px 0 var(--studio-border);
}
.cedar-facts dd {
  margin-top: var(--space-2);
  font-size: var(--text-14);
  font-weight: var(--weight-600);
  overflow-wrap: anywhere;
}
#cedar-agent form {
  max-width: 48rem;
  margin-block: var(--space-18);
}
#cedar-agent form .primary {
  min-height: var(--space-36);
  padding-inline: var(--space-16);
}
#cedar-agent > section > h2 {
  margin-bottom: var(--space-4);
}
#cedar-run:not(:empty),
#cedar-invocation-result:not(:empty) {
  margin-top: var(--space-16);
  padding: var(--space-16) var(--space-20) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-surface);
  box-shadow: var(--shadow-rest);
  overflow-wrap: anywhere;
}
#cedar-run .cedar-facts,
#cedar-invocation-result .cedar-facts {
  margin: var(--space-14) 0 var(--space-20);
}
:is(#cedar-run, #cedar-invocation-result) > button {
  margin-top: var(--space-8);
}
.decisions-layout #cedar-run:not(:empty) {
  position: sticky;
  top: var(--space-20);
  margin-top: 0;
}
#message-link-help {
  margin-top: calc(-1 * var(--space-8));
  color: var(--studio-text-muted);
  font-size: var(--text-13);
}
#invocation-ids {
  margin: 0;
}
#invocation-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  padding: 0;
  border: 0;
}
@media (width <= 66rem) {
  .decisions-layout:has(#cedar-run:not(:empty)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .decisions-layout #cedar-run:not(:empty) {
    position: static;
  }
}

/* apps/studio-console/src/listening.css */
.listening-heading {
  margin-bottom: var(--space-24);
}
.listening-heading h1 {
  margin: var(--space-6) 0 0;
}
#listening .support {
  color: var(--studio-text-muted);
  font-size: var(--text-13);
}
#listening-state:not(:empty) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-bg);
  color: var(--studio-text-secondary);
  line-height: var(--leading-155);
}
#listening-policy {
  padding: var(--space-18) var(--space-20) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-surface);
  box-shadow: var(--shadow-rest);
}
.listening-policy-header,
.listening-actions,
#listening-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.listening-policy-header {
  justify-content: space-between;
  gap: var(--space-12);
  min-height: var(--space-32);
}
.listening-policy-header h2 {
  font-size: var(--text-15);
}
#listening-source {
  max-width: 100%;
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
#listening-single-source {
  padding: var(--space-3) var(--space-10);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-weight: var(--weight-600);
}
#listening-installation {
  width: auto;
  max-width: 100%;
  padding-block: var(--space-5);
  font-size: var(--text-13);
  font-weight: var(--weight-600);
}
#listening-active {
  max-width: 68ch;
  margin-block: var(--space-10) var(--space-18);
  font-size: var(--text-16);
  line-height: var(--leading-155);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#listening-edit-fields {
  margin-block: var(--space-12) var(--space-16);
}
#listening-hint,
#listening-save-status {
  margin-top: var(--space-8);
}
#listening-save-status:not(:empty) {
  margin-top: var(--space-12);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
#listening-try {
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
}
#listening-try:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}
#listening-history {
  margin-top: var(--space-32);
}
#listening-test {
  padding: 0 var(--space-20) var(--space-20);
}
#listening-test .support {
  margin: 0;
}
#listening-test button {
  justify-self: start;
}
#listening-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  padding: var(--space-14) var(--space-16);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
  color: var(--studio-text-secondary);
}
#listening-result strong {
  color: var(--studio-text);
}
.listening-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  margin: 0;
}
.listening-comparison dt {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.listening-comparison dd {
  margin: var(--space-2) 0 0;
  color: var(--studio-text);
  font-weight: var(--weight-650);
}
#listening-state:empty,
#listening-save-status:empty,
#listening-result:empty {
  display: none;
}

/* apps/studio-console/src/context.css */
.context-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-14);
  max-width: 64rem;
}
#cedar-context {
  margin-top: var(--space-32);
}
.context-purpose {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.context-purpose button[aria-pressed=true] {
  border-color: var(--studio-action-line);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.context-settings {
  max-width: 48rem;
}
.context-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-14);
}
.context-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-12);
  margin: 0;
  padding: var(--space-14) var(--space-16) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
}
.context-group > :is(legend, .support, .context-check, .context-tools) {
  grid-column: 1 / -1;
}
.context-group > .support {
  margin: 0;
  font-size: var(--text-13);
}
.context-inherited {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.context-field input[aria-invalid=true] {
  border-color: var(--studio-danger-fill);
}
.context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.context-notice,
.context-failure {
  color: var(--studio-danger-text);
  font-size: var(--text-13);
}
.context-notice:empty {
  display: none;
}
.context-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  padding-top: var(--space-16);
  border-top: 1px solid var(--studio-border);
}
.context-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-12);
  max-width: 48rem;
}
.context-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-14);
  min-width: 0;
}
.context-result[aria-busy=true] {
  opacity: 0.6;
}
.context-target,
.context-method {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.context-summary {
  font-weight: var(--weight-600);
}
.context-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-12);
}
.context-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-8);
  min-width: 0;
  padding: var(--space-14);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
}
.context-variant header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-8);
}
.context-variant h4,
.context-variant h5,
.context-record h4 {
  margin: 0;
  font-size: var(--text-14);
}
.context-variant .cedar-facts {
  margin: 0;
}
.context-print {
  color: var(--studio-text-muted);
  font: var(--text-12) / var(--leading-150) var(--mono);
}
.context-state {
  justify-self: start;
  padding: var(--space-3) var(--space-9);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-success-soft);
  color: var(--studio-success-text);
  font-size: var(--text-12);
}
.context-state[data-status=compacted] {
  background: var(--studio-info-soft);
  color: var(--studio-info-text);
}
.context-state[data-status=target_unreachable] {
  background: var(--studio-warning-soft);
  color: var(--studio-warning-text);
}
.context-meter {
  position: relative;
  height: var(--space-10);
  overflow: hidden;
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
}
.context-meter-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: var(--studio-action);
}
.context-meter-fill[data-status=compacted] {
  background: var(--studio-info-fill);
}
.context-meter-fill[data-status=target_unreachable] {
  background: var(--studio-warning-fill);
}
.context-meter-mark {
  position: absolute;
  inset-block: 0;
  width: 2px;
  background: var(--studio-text);
}
.context-meter-mark[data-mark=target] {
  background: var(--studio-text-muted);
}
.context-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-13);
}
.context-table caption {
  padding-bottom: var(--space-8);
  font-weight: var(--weight-650);
  text-align: start;
}
.context-table :is(th, td) {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--studio-border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.context-table thead th {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.context-table tbody th {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  font-weight: var(--weight-500);
}
.context-table tr[data-changed=true] {
  background: color-mix(in srgb, var(--studio-action-soft) 55%, transparent);
}
.context-table code,
.context-rendered pre {
  font: var(--text-12) / var(--leading-155) var(--mono);
}
.context-category {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  text-transform: capitalize;
}
.context-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.context-rendered summary,
.context-call summary {
  cursor: pointer;
  font-weight: var(--weight-600);
}
.context-rendered pre {
  max-height: 24rem;
  margin: var(--space-8) 0 0;
  padding: var(--space-12);
  overflow: auto;
  border-radius: var(--radius-8);
  background: var(--studio-surface-sunken);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.context-omitted {
  margin: 0;
  padding-inline-start: var(--space-18);
  font-size: var(--text-13);
}
.context-calls,
.context-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-20);
}
.context-record .cedar-facts,
.context-call .cedar-facts {
  margin: var(--space-8) 0 0;
}
.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.decision-actions > button {
  min-height: var(--space-28);
  margin-top: var(--space-6);
  padding-block: var(--space-3);
  font-size: var(--text-12);
}
@media (width <= 44rem) {
  .context-table thead {
    display: none;
  }
  .context-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: var(--space-6);
    border-bottom: 1px solid var(--studio-border);
  }
  .context-table tbody th {
    grid-column: 1 / -1;
  }
  .context-table :is(th, td) {
    border-bottom: 0;
    padding-block: var(--space-2);
  }
  .context-table td[data-label]::before {
    display: block;
    color: var(--studio-text-muted);
    font-size: var(--text-11);
    content: attr(data-label);
  }
}

/* apps/studio-console/src/desktop.css */
.identity-copy [data-open-desktop] {
  margin-top: var(--space-16);
}
#desktop-retry {
  border-color: color-mix(in srgb, var(--white) 22%, transparent);
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--canopy-50);
}
.desktop-identity,
.desktop-tools,
.desktop-bar {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
#machine-agent-id {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  overflow-wrap: anywhere;
}
#desktop-dialog {
  inset: 0;
  padding: 0;
  width: min(76rem, calc(100% - 2rem));
  max-height: 96dvh;
  overflow: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-panel);
  background: var(--studio-surface);
  color: var(--studio-text);
  box-shadow: var(--shadow-float);
}
.desktop-bar {
  justify-content: space-between;
  padding: var(--space-12) var(--space-16);
}
.desktop-identity {
  min-width: 0;
  gap: var(--space-12);
}
.desktop-identity > .glyph {
  flex: none;
  color: var(--studio-action);
}
.desktop-identity > div {
  min-width: 0;
}
#desktop-agent {
  font-size: var(--text-15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#desktop-title {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
}
.desktop-tools {
  flex: none;
}
.desktop-tools button {
  min-width: var(--space-32);
  padding: var(--space-6);
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
}
.desktop-tools button:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}
#desktop-screen {
  position: relative;
  background: var(--deep);
  color: var(--canopy-50);
  width: 100%;
  height: min(62vw, 68dvh);
  min-height: 12rem;
}
.desktop-stream iframe,
#desktop-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.desktop-stream {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
#desktop-notice {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-content: center;
  justify-items: center;
  gap: var(--space-12);
  padding: var(--space-16);
  text-align: center;
}
#desktop-notice > .glyph {
  width: var(--space-32);
  height: var(--space-32);
  color: var(--canopy-200);
}
#desktop-hint {
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-12);
  color: var(--studio-text-secondary);
}
.desktop-touch-hint {
  display: none;
}
#desktop-window:fullscreen {
  background: var(--studio-surface);
  color: var(--studio-text);
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  max-height: none;
  height: 100%;
  border-radius: 0;
}
#desktop-window:fullscreen #desktop-screen {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
@media (width <= 44rem) {
  #desktop-dialog {
    width: calc(100% - 1rem);
  }
  .desktop-bar {
    padding: var(--space-8);
  }
  .desktop-tools {
    gap: var(--space-4);
  }
}
@media (width <= 44rem) and (orientation: portrait) {
  .desktop-pointer-hint {
    display: none;
  }
  .desktop-touch-hint {
    display: inline;
  }
  .desktop-tools button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}
@media (height <= 30rem) and (orientation: landscape) {
  #desktop-dialog {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  #desktop-window {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #desktop-screen {
    flex: 1;
    min-width: 0;
    min-height: 0;
  }
  #desktop-hint {
    display: none;
  }
}

/* apps/studio-console/src/onboarding.css */
#editor {
  gap: var(--space-20);
  width: 100%;
  max-width: 48rem;
  margin: var(--space-24) 0;
}
#editor[data-mode=create] {
  margin-top: 0;
}
:where(#editor) label {
  align-content: start;
}
.identity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}
.editor-actions,
.template-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.editor-actions {
  padding-top: var(--space-4);
}
.editor-actions .primary {
  min-height: var(--space-36);
  padding-inline: var(--space-16);
}
#template-toggle {
  min-height: var(--space-36);
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
}
#template-toggle:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}
#template {
  padding: var(--space-18) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-bg);
}
.template-heading h2 {
  font-size: var(--text-15);
}
.template-glyph {
  display: grid;
  place-items: center;
  width: var(--space-40);
  height: var(--space-40);
  border-radius: var(--radius-10);
  background: var(--deep);
  color: var(--canopy-200);
}
#template-model {
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font: var(--text-12)/var(--leading-140) var(--mono);
}
#template-capabilities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: var(--space-14) 0 0;
  padding: 0;
  list-style: none;
}
#template-capabilities:empty {
  display: none;
}
#template-capabilities li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-10) var(--space-3) var(--space-8);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
#template-capabilities li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--studio-action);
}
#editor[data-mode=create]:not(.customizing) :is(#agent-instructions, #model-label, #custom-model, #tool-settings) {
  display: none;
}
#editor[data-mode=create]:not(.customizing) .identity-fields {
  grid-template-columns: minmax(0, 1fr);
}
#customer-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-16);
  padding: var(--space-16) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
}
#customer-connect h2 {
  font-size: var(--text-15);
}
#customer-connect p {
  grid-column: 1;
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
#customer-connect button {
  grid-area: 1 / 2 / 3;
}
#setup-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
  max-width: 64rem;
}
#setup-nav button {
  justify-content: flex-start;
  gap: var(--space-12);
  width: 100%;
  padding: var(--space-12);
  border-color: var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
  text-align: start;
}
#setup-nav button:hover {
  border-color: var(--studio-border-strong);
  background: var(--studio-bg);
}
#setup-nav .glyph {
  width: var(--space-32);
  height: var(--space-32);
  padding: var(--space-7);
  border-radius: var(--radius-8);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
}
#setup-nav button[aria-pressed=true] {
  border-color: var(--studio-action-line);
  background: color-mix(in srgb, var(--studio-action-soft) 40%, var(--studio-surface));
}
#setup-nav button[aria-pressed=true] .glyph {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
#setup-nav span {
  min-width: 0;
}
:where(#setup-nav) strong,
:where(#setup-nav) small {
  display: block;
}
:where(#setup-nav) strong {
  font-weight: var(--weight-650);
}
:where(#setup-nav) small {
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.setup-panel,
#calendar-settings {
  max-width: 48rem;
  margin-top: var(--space-24);
}
.setup-panel > *,
#contact-settings > *,
#tool-settings > * {
  margin-block: 0 var(--space-12);
}
#tool-settings .section-heading {
  min-height: var(--space-32);
  margin-bottom: var(--space-4);
}
#tool-settings > .support {
  margin-bottom: var(--space-14);
  font-size: var(--text-13);
}
.setup-panel ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-inline-start: var(--space-20);
}
#contact-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
#contact-settings:empty,
#computer-status:empty {
  display: none;
}
#toolset {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}
.tool-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}
.tool-options label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-14);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-10);
  cursor: pointer;
  transition: background-color var(--studio-ease), border-color var(--studio-ease);
}
.tool-options label:hover {
  border-color: var(--studio-border-strong);
}
.tool-options label:has(input:checked) {
  border-color: var(--studio-action-line);
  background: color-mix(in srgb, var(--studio-action-soft) 40%, var(--studio-surface));
}
.tool-options label:has(input:focus-visible) {
  outline: 2px solid var(--cp-focus);
  outline-offset: 2px;
}
.tool-options input {
  margin-top: var(--space-2);
}
.tool-options input:focus-visible {
  outline: none;
}
#tool-preview label {
  background: var(--studio-bg);
  cursor: default;
}
#tool-preview label:hover {
  border-color: var(--studio-border);
}
.tool-options strong,
.tool-options small {
  display: block;
  overflow-wrap: anywhere;
}
.tool-options strong {
  color: var(--studio-text);
  font-weight: var(--weight-600);
  line-height: var(--leading-140);
}
.tool-options small {
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-400);
  line-height: var(--leading-150);
}
#customer-tools-heading {
  margin: var(--space-16) 0 var(--space-8);
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.address-book {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
}
.address-book > div {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-12) var(--space-16);
  box-shadow: -1px -1px 0 var(--studio-border);
}
.address-book dt,
.route-facts dt {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-500);
}
.address-book dd {
  margin-top: var(--space-2);
  font-size: var(--text-14);
  font-weight: var(--weight-600);
  overflow-wrap: anywhere;
}
#imessage-route {
  margin-top: 0;
}
#imessage-instructions {
  overflow-wrap: anywhere;
}
.route-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-14) var(--space-32);
}
.route-facts dd {
  margin-top: var(--space-2);
}
#inbox-availability {
  color: var(--studio-text-secondary);
}
#inbox-availability:not(:empty) {
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
  font-size: var(--text-13);
  line-height: var(--leading-155);
}
#reply-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  width: fit-content;
  padding: var(--space-4) var(--space-10) var(--space-4) var(--space-8);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
#reply-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--live-green);
}
#contact-settings > :is(dl, details, p) {
  justify-self: stretch;
}
#computer-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-8);
}
#computer-options .danger {
  color: var(--studio-danger-text);
}
#computer-state[data-state=ready]::before {
  background: var(--studio-action);
}
#computer-options form {
  flex-basis: 100%;
  grid-template-columns: minmax(0, 20rem) auto;
  align-items: end;
  justify-content: start;
  gap: var(--space-8);
}
#computer-options .primary {
  min-height: 39px;
}
#computer-status:not(:empty) {
  color: var(--studio-text-secondary);
}
#machine-agent-id {
  position: relative;
}
#machine-agent-id pre {
  width: 100%;
  margin: 0;
  padding: var(--space-12) var(--space-40) var(--space-12) var(--space-14);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-8);
  background: var(--studio-bg);
  white-space: pre-wrap;
}
#machine-agent-id .copy-contact {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
}
#calendar-settings details {
  margin: 0;
}
#google[open] {
  padding-bottom: var(--space-16);
}
#google > :is(button, a) {
  margin: 0 var(--space-8) 0 0;
}
#google-consent {
  color: var(--studio-action);
  font-weight: var(--weight-600);
}
@media (width <= 44rem) {
  .identity-fields,
  .tool-options {
    grid-template-columns: minmax(0, 1fr);
  }
  #setup-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
  #setup-nav button {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-8);
    padding: var(--space-10);
  }
  #setup-nav small {
    font-size: var(--text-11);
  }
  #customer-connect {
    grid-template-columns: minmax(0, 1fr);
  }
  #customer-connect button {
    grid-area: auto;
    margin-top: var(--space-8);
  }
}

/* apps/studio-console/src/blueprints.css */
#blueprints {
  min-width: 0;
  container: blueprints / inline-size;
}
.section-heading.blueprint-title {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-24);
  margin-bottom: var(--space-24);
}
.blueprint-title-copy {
  flex: 1 1 22rem;
  min-width: 0;
}
.blueprint-title .support {
  max-width: 68ch;
  font-size: var(--text-14);
}
.blueprint-title-actions {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-2);
}
.blueprint-crumbs {
  margin: 0 0 var(--space-12) calc(-1 * var(--space-8));
}
.blueprint-crumb {
  max-width: 100%;
  min-height: var(--space-28);
  padding: var(--space-4) var(--space-8);
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
  font-weight: var(--weight-500);
  overflow-wrap: anywhere;
  text-align: start;
}
.blueprint-crumb:hover:enabled {
  color: var(--studio-text);
}
.blueprint-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-10);
  margin-top: var(--space-8);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.blueprint-meta > span:nth-child(2)::before {
  content: "\b7";
  margin-right: var(--space-10);
  color: var(--studio-text-muted);
}
.blueprint-id {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.blueprint-id code,
.credential {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  overflow-wrap: anywhere;
}
.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.blueprint-table :is(th, td) {
  padding: var(--space-14) var(--space-12);
  border-bottom: 1px solid var(--studio-border);
  text-align: start;
  vertical-align: middle;
  font-size: var(--text-13);
  font-weight: var(--weight-400);
  overflow-wrap: anywhere;
}
.blueprint-table thead th {
  padding-block: var(--space-8);
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.blueprints-table thead th:nth-child(2) {
  width: 9rem;
}
.blueprints-table thead th:nth-child(3) {
  width: 10.5rem;
}
.blueprints-table thead th:nth-child(4) {
  width: 6rem;
}
.blueprints-table thead th:nth-child(5) {
  width: 8.5rem;
}
.blueprint-table tbody tr {
  position: relative;
  transition: background-color var(--studio-ease);
}
.blueprint-table tbody tr:hover {
  background: var(--studio-hover);
}
.blueprint-table tbody tr:has(.blueprint-open:focus-visible) {
  outline: 2px solid var(--cp-focus);
  outline-offset: -2px;
  border-radius: var(--radius-8);
}
.blueprint-open {
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--text-14);
  font-weight: var(--weight-650);
  line-height: var(--leading-140);
  text-align: start;
  overflow-wrap: anywhere;
}
.blueprint-open:focus-visible {
  outline: none;
}
.blueprint-open:hover:enabled {
  background: transparent;
}
.blueprint-open::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blueprint-latest {
  font-family: var(--mono);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.blueprint-ahead {
  margin-left: var(--space-8);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.blueprint-created {
  color: var(--studio-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.blueprint-more {
  margin-top: var(--space-16);
}
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-8);
  border-radius: var(--cp-radius-pill);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
  line-height: var(--leading-140);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.version-pill[data-tone=published] {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.version-pill[data-tone=latest] {
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
}
.version-pill[data-tone=quiet] {
  box-shadow: inset 0 0 0 1px var(--studio-border-strong);
  color: var(--studio-text-secondary);
}
.version-pill .glyph {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}
.blueprint-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-8);
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--space-24);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--cp-radius-card);
  background: var(--studio-bg);
  text-align: center;
}
.blueprint-empty-mark {
  display: grid;
  place-items: center;
  width: var(--space-44);
  height: var(--space-44);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-12);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.blueprint-empty strong {
  font-size: var(--text-16);
  font-weight: var(--weight-650);
}
.blueprint-empty p {
  max-width: 46ch;
  margin-bottom: var(--space-8);
  color: var(--studio-text-secondary);
  font-size: var(--text-14);
}
.blueprint-loading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--studio-border);
}
.blueprint-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-24);
  padding: var(--space-18) var(--space-12);
  border-bottom: 1px solid var(--studio-border);
}
.blueprint-skeleton span {
  height: var(--space-10);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  animation: studio-pulse 1.4s ease-in-out infinite;
}
.blueprint-skeleton span:first-child {
  width: min(100%, 18rem);
}
.blueprint-failure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-12) var(--space-16);
  padding: var(--space-16) var(--space-20);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  border-radius: var(--radius-12);
  background: var(--studio-danger-soft);
}
.blueprint-failure-mark {
  display: flex;
  color: var(--studio-danger-text);
}
.blueprint-failure-copy strong {
  display: block;
  font-size: var(--text-14);
  font-weight: var(--weight-650);
}
.blueprint-failure-copy p {
  margin-top: var(--space-2);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.blueprint-failure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.blueprint-inline-error {
  color: var(--studio-danger-text);
  font-size: var(--text-13);
  font-weight: var(--weight-500);
}
.published-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-16) var(--space-20);
  margin-bottom: var(--space-32);
  padding: var(--space-20) var(--space-24);
  border: 1px solid var(--studio-action-line);
  border-radius: var(--cp-radius-card);
  background: var(--studio-action-soft);
}
.published-banner[data-state=unpublished] {
  border: 1px dashed var(--studio-border-strong);
  background: var(--studio-bg);
}
.published-mark {
  display: grid;
  place-items: center;
  width: var(--space-44);
  height: var(--space-44);
  border-radius: var(--radius-round);
  background: var(--cp-action);
  color: var(--white);
}
.published-mark .glyph {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
[data-state=unpublished] > .published-mark {
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
}
.published-eyebrow {
  color: var(--studio-action-soft-text);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
[data-state=unpublished] .published-eyebrow {
  color: var(--studio-text-secondary);
}
.published-banner h2 {
  margin-top: var(--space-2);
  font-size: var(--text-24);
  line-height: var(--leading-120);
  letter-spacing: var(--cp-tracking-heading);
}
.published-note {
  margin-top: var(--space-4);
  color: var(--studio-text);
  font-size: var(--text-14);
}
.version-byline {
  margin-top: var(--space-4);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
}
.published-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-8);
  white-space: nowrap;
}
.published-newer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  padding-top: var(--space-14);
  border-top: 1px solid var(--studio-action-line);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.published-newer button {
  min-height: var(--space-28);
  padding-block: var(--space-4);
}
.blueprint-columns {
  display: grid;
  grid-template: "rail panel" auto "log panel" minmax(0, 1fr) / minmax(0, 18rem) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-28) var(--space-32);
}
.version-rail {
  grid-area: rail;
  min-width: 0;
}
.version-panel {
  grid-area: panel;
  min-width: 0;
}
.publication-log {
  grid-area: log;
  min-width: 0;
}
:is(.version-rail, .publication-log) > h2 {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
  font-weight: var(--weight-650);
  letter-spacing: 0;
}
.rail-count {
  padding: 0 var(--space-6);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-size: var(--text-11);
  font-variant-numeric: tabular-nums;
}
.version-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  max-height: 21.5rem;
  margin: 0;
  padding: var(--space-4);
  overflow-y: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  list-style: none;
  scrollbar-width: thin;
}
.version-list button {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  width: 100%;
  min-height: var(--space-36);
  padding: var(--space-6) var(--space-10);
  border: 0;
  background: transparent;
  font-weight: var(--weight-500);
}
.version-list button:hover {
  background: var(--studio-hover);
}
.version-list button[aria-current=true] {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.version-list button:focus-visible {
  outline-offset: -2px;
}
.version-row-name {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  word-spacing: normal;
}
.version-row-name strong,
.publication-head strong {
  font-family: var(--mono);
  font-size: var(--text-13);
  font-weight: var(--weight-650);
  font-variant-numeric: tabular-nums;
}
.version-list small {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-weight: var(--weight-400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.version-list :where([aria-current=true]) small {
  color: inherit;
}
.version-list [aria-current=true] .version-pill[data-tone=latest] {
  background: var(--studio-surface);
}
.publication-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-14);
  margin: 0 0 0 var(--space-5);
  padding: var(--space-2) 0 var(--space-2) var(--space-16);
  border-left: 1px solid var(--studio-border-strong);
  list-style: none;
}
.publication-list li {
  position: relative;
}
.publication-list li::before {
  content: "";
  position: absolute;
  top: var(--space-6);
  left: calc(-1 * var(--space-16) - 4px);
  width: 7px;
  height: 7px;
  border-radius: var(--radius-round);
  background: var(--studio-border-strong);
  box-shadow: 0 0 0 3px var(--studio-surface);
}
.publication-list .publication-current::before {
  background: var(--studio-action);
}
.publication-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  font-size: var(--text-13);
}
.publication-list small {
  display: block;
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.publication-more {
  margin-top: var(--space-12);
}
.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.version-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
}
.version-title h2 {
  font-size: var(--text-22);
  letter-spacing: var(--cp-tracking-heading);
}
.version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  white-space: nowrap;
}
.version-content {
  margin-top: var(--space-16);
}
.version-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-border);
}
.version-facts > div {
  min-width: 0;
  padding: var(--space-12) var(--space-16);
  background: var(--studio-surface);
}
.version-facts dt {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-600);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.version-facts dd {
  margin-top: var(--space-4);
  font-size: var(--text-13);
  font-weight: var(--weight-600);
  overflow-wrap: anywhere;
}
.version-facts .version-fact-mono {
  font-family: var(--mono);
  font-size: var(--text-12);
}
.version-section {
  margin-top: var(--space-24);
}
.version-section > h3,
.version-section-head {
  margin-bottom: var(--space-8);
}
.version-section-head {
  display: flex;
  align-items: center;
  gap: var(--space-4) var(--space-12);
}
.version-section-head small {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-variant-numeric: tabular-nums;
}
.version-empty {
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.code-view,
.diff-view,
.profiles-view {
  overflow: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
  font: var(--text-12) / var(--leading-155) var(--mono);
  font-variant-ligatures: none;
  scrollbar-width: thin;
}
.code-view {
  max-height: min(72dvh, 48rem);
}
.code-lines {
  margin: 0;
  padding: var(--space-12) 0;
  list-style: none;
  counter-reset: prompt-line;
}
.code-lines li {
  position: relative;
  min-height: 1lh;
  padding: 0 var(--space-16) 0 4rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  counter-increment: prompt-line;
}
.code-lines li::before {
  content: counter(prompt-line);
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  color: var(--studio-text-muted);
  text-align: end;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.liquid {
  color: var(--studio-info-text);
}
.profiles-view {
  max-height: 22rem;
  margin: 0;
  padding: var(--space-12) var(--space-16);
}
.diff-view {
  max-height: min(60dvh, 36rem);
}
.diff-row {
  display: grid;
  grid-template-columns: 3rem 3rem 1.5rem minmax(0, 1fr);
}
.diff-row:first-child {
  padding-top: var(--space-8);
}
.diff-row:last-child {
  padding-bottom: var(--space-8);
}
.diff-number {
  padding-right: var(--space-8);
  color: var(--studio-text-muted);
  text-align: end;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.diff-sign {
  text-align: center;
  font-weight: var(--weight-700);
  user-select: none;
}
.diff-text {
  min-height: 1lh;
  padding-right: var(--space-12);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diff-row[data-kind=added] {
  background: var(--studio-success-soft);
}
.diff-row[data-kind=added] .diff-sign {
  color: var(--studio-success-text);
}
.diff-row[data-kind=removed] {
  background: var(--studio-danger-soft);
}
.diff-row[data-kind=removed] .diff-sign {
  color: var(--studio-danger-text);
}
.diff-word {
  border-radius: var(--cp-radius-xs);
  color: inherit;
}
[data-kind=added] .diff-word {
  background: color-mix(in srgb, var(--grass-500) 34%, transparent);
}
[data-kind=removed] .diff-word {
  background: color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
}
button.diff-gap {
  width: 100%;
  min-height: var(--space-28);
  padding: var(--space-2) var(--space-12);
  border: 0;
  border-radius: 0;
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font: var(--text-11) / var(--leading-140) var(--font);
  font-weight: var(--weight-500);
}
button.diff-gap:hover {
  color: var(--studio-text);
}
button.diff-gap:focus-visible {
  outline-offset: -2px;
}
.changes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-20);
}
.change-block > h3 {
  margin-bottom: var(--space-8);
}
.change-tally {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-variant-numeric: tabular-nums;
}
.change-added,
.change-removed {
  font-family: var(--mono);
  font-weight: var(--weight-650);
}
.change-added {
  color: var(--studio-success-text);
}
.change-removed {
  color: var(--studio-danger-text);
}
.change-note {
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.change-note + .diff-view {
  margin-top: var(--space-8);
}
.change-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.change-values code {
  padding: var(--space-2) var(--space-8);
  border-radius: var(--radius-8);
  font-size: var(--text-12);
  overflow-wrap: anywhere;
}
.change-was {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
  text-decoration: line-through;
}
.change-now {
  background: var(--studio-success-soft);
  color: var(--studio-success-text);
}
.change-arrow {
  color: var(--studio-text-muted);
}
.change-tools {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-8);
}
.change-tools + .change-tools {
  margin-top: var(--space-8);
}
.change-tools-label {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tool-chip {
  padding: var(--space-2) var(--space-8);
  border-radius: var(--radius-8);
  background: var(--studio-surface-sunken);
  color: var(--studio-text);
  font: var(--text-12) / var(--leading-155) var(--mono);
  overflow-wrap: anywhere;
}
.tool-chip[data-tone=added] {
  background: var(--studio-success-soft);
  color: var(--studio-success-text);
}
.tool-chip[data-tone=removed] {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
  text-decoration: line-through;
}
.blueprint-form {
  gap: 0;
}
.editor-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24);
}
.editor-step > h2 {
  font-size: var(--text-22);
  letter-spacing: var(--cp-tracking-heading);
}
.editor-step > h2 + .support {
  margin-top: calc(-1 * var(--space-16));
  max-width: 72ch;
  font-size: var(--text-13);
}
.blueprint-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  min-width: 0;
}
.blueprint-field > input {
  max-width: 34rem;
}
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-12);
}
.field-hint {
  max-width: 72ch;
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-400);
}
.field-error {
  padding: var(--space-8) var(--space-12);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  border-radius: var(--radius-8);
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
  font-size: var(--text-13);
  font-weight: var(--weight-500);
  overflow-wrap: anywhere;
}
.field-error-action {
  display: inline-flex;
  min-height: var(--space-24);
  margin-left: var(--space-4);
  padding: var(--space-2) var(--space-8);
  font-size: var(--text-12);
}
.blueprint-form :is(input, textarea, select)[aria-invalid=true] {
  border-color: var(--studio-danger-fill);
}
.blueprint-form :is(input, textarea, select)[aria-invalid=true]:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-danger-fill) 24%, transparent);
}
.blueprint-mono {
  font-family: var(--mono);
  font-size: var(--text-13);
  font-variant-ligatures: none;
}
.prompt-input {
  height: min(64dvh, 42rem);
  min-height: 16rem;
  max-height: none;
  border-radius: var(--radius-12) var(--radius-12) 0 0;
  font: var(--text-13) / var(--leading-155) var(--mono);
  font-variant-ligatures: none;
  tab-size: 2;
}
@supports (field-sizing: content) {
  .prompt-input {
    height: auto;
    max-height: min(64dvh, 42rem);
    field-sizing: content;
  }
}
.prompt-status {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  margin-top: calc(-1 * var(--space-6));
  padding: var(--space-4) var(--space-12);
  border: 1px solid var(--studio-border-strong);
  border-top: 0;
  border-radius: 0 0 var(--radius-12) var(--radius-12);
  background: var(--studio-bg);
  color: var(--studio-text-secondary);
  font: var(--text-11) / var(--leading-155) var(--mono);
  font-variant-numeric: tabular-nums;
}
.prompt-count {
  color: var(--studio-text-secondary);
  font: var(--text-12) / var(--leading-140) var(--mono);
  font-variant-numeric: tabular-nums;
}
.prompt-count[data-over=true] {
  color: var(--studio-danger-text);
  font-weight: var(--weight-650);
}
.template-help {
  margin: var(--space-4) 0 0;
  font-size: var(--text-13);
}
.template-help > p {
  max-width: 72ch;
  color: var(--studio-text-secondary);
}
.template-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: var(--space-12) 0;
}
.template-values > div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: var(--space-12);
}
.template-values dt {
  font: var(--text-12) / var(--leading-155) var(--mono);
  overflow-wrap: anywhere;
}
.template-values dd,
.template-rules {
  color: var(--studio-text-secondary);
}
.template-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-width: 76ch;
  margin: 0;
  padding-left: var(--space-18);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: start;
  gap: var(--space-20);
}
fieldset.blueprint-tools {
  gap: var(--space-8);
  padding: var(--space-8) var(--space-18) var(--space-18);
}
.blueprint-tools legend {
  padding-inline: var(--space-6);
  color: var(--studio-text);
  font-weight: var(--weight-650);
}
.tool-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-10) var(--space-20);
  margin-bottom: var(--space-10);
}
.tool-choices label {
  align-items: flex-start;
  gap: var(--space-10);
}
.tool-choices input {
  margin-top: var(--space-2);
}
.tool-choices strong,
.tool-choices small {
  display: block;
}
.tool-choices strong {
  color: var(--studio-text);
  font-weight: var(--weight-600);
}
.tool-choices small {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-400);
}
.editor-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-10) var(--space-16);
  margin-top: var(--space-24);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--studio-border);
  background: color-mix(in srgb, var(--studio-surface) 94%, transparent);
  backdrop-filter: blur(10px);
}
.editor-bar-note {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.editor-bar-note.blueprint-inline-error {
  color: var(--studio-danger-text);
}
.editor-bar-actions {
  display: flex;
  gap: var(--space-8);
}
.blueprint-conflict,
.blueprint-rebased {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-6);
  padding: var(--space-16) var(--space-20);
  border: 1px solid color-mix(in srgb, var(--studio-warning-fill) 45%, transparent);
  border-radius: var(--radius-12);
  background: var(--studio-warning-soft);
}
.blueprint-rebased {
  border-color: color-mix(in srgb, var(--studio-info-fill) 35%, transparent);
  background: var(--studio-info-soft);
}
:is(.blueprint-conflict, .blueprint-rebased) strong {
  color: var(--studio-warning-text);
  font-size: var(--text-14);
  font-weight: var(--weight-650);
}
.blueprint-rebased strong {
  color: var(--studio-info-text);
}
:is(.blueprint-conflict, .blueprint-rebased) p {
  max-width: 76ch;
  font-size: var(--text-13);
}
.blueprint-conflict .primary {
  margin-top: var(--space-6);
}
button.destructive {
  border-color: transparent;
  background: var(--studio-danger-fill);
  color: var(--white);
}
button.destructive:hover:enabled {
  background: color-mix(in srgb, var(--studio-danger-fill) 88%, var(--deep));
}
dialog.blueprint-dialog {
  width: min(48rem, calc(100% - 2rem));
  max-height: min(48rem, 90dvh);
}
dialog.blueprint-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog.blueprint-dialog-compact {
  width: min(27rem, calc(100% - 2rem));
}
.blueprint-dialog .palette-title {
  flex: none;
  align-items: flex-start;
}
.blueprint-dialog .palette-title h2 {
  font-size: var(--text-17);
  overflow-wrap: anywhere;
}
.blueprint-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  min-height: 0;
  padding: var(--space-2) var(--space-20) var(--space-20);
  overflow-y: auto;
}
.blueprint-dialog-compact .blueprint-dialog-body {
  color: var(--studio-text-secondary);
  font-size: var(--text-14);
}
.blueprint-dialog-actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-20);
  border-top: 1px solid var(--studio-border);
  background: var(--studio-bg);
}
.publish-consequence {
  font-size: var(--text-16);
  font-weight: var(--weight-650);
  line-height: var(--leading-140);
}
.publish-scope {
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.publish-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-6);
  padding-top: var(--space-16);
  border-top: 1px solid var(--studio-border);
}
.publish-comparison .diff-view {
  max-height: min(38dvh, 22rem);
}
.blueprint-dialog-body > .blueprint-inline-error {
  padding: var(--space-10) var(--space-12);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  border-radius: var(--radius-8);
  background: var(--studio-danger-soft);
}
#studio[data-session=manager] :is(#agent-picker, article > :not(#blueprints)) {
  display: none;
}
#manager-access code {
  overflow-wrap: anywhere;
}
.blueprint-title h1:focus-visible,
.editor-step h2:focus-visible,
.version-title h2:focus-visible {
  outline: none;
}
@container blueprints (width <= 52rem) {
  .blueprint-columns {
    grid-template: "rail" "panel" "log" / minmax(0, 1fr);
  }
  .version-list {
    max-height: 11.75rem;
  }
}
@container blueprints (width <= 42rem) {
  .published-banner,
  .blueprint-failure {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .published-actions,
  .blueprint-failure-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .blueprints-table thead th:nth-child(5),
  .blueprints-table td:nth-child(5) {
    display: none;
  }
  .blueprints-table thead th:nth-child(2) {
    width: 6.5rem;
  }
  .blueprints-table thead th:nth-child(3) {
    width: 7rem;
  }
  .blueprints-table thead th:nth-child(4) {
    width: 4.5rem;
  }
  .blueprint-ahead {
    display: block;
    margin: var(--space-2) 0 0;
  }
  .template-values > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
@container blueprints (width <= 30rem) {
  .published-banner {
    padding: var(--space-16);
  }
  .blueprints-table thead th:nth-child(2) {
    width: 5.5rem;
  }
  .blueprints-table thead th:nth-child(3) {
    width: 5rem;
  }
  .blueprints-table thead th:nth-child(4) {
    width: 4rem;
  }
  .blueprint-table :is(th, td) {
    padding-inline: var(--space-6);
  }
  .code-lines li {
    padding-left: 3rem;
  }
  .code-lines li::before {
    width: 2.5rem;
  }
  .diff-row {
    grid-template-columns: 2.25rem 2.25rem 1.25rem minmax(0, 1fr);
  }
}
@media (width <= 44rem) {
  #studio[data-session=manager] .environment {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    place-self: center end;
    padding: var(--space-6) var(--space-10);
  }
  #studio[data-session=manager] .environment > .glyph:first-child {
    display: none;
  }
  .editor-bar {
    bottom: calc(57px + env(safe-area-inset-bottom, 0px));
  }
  .blueprint-dialog .diff-row {
    grid-template-columns: 2.25rem 2.25rem 1.25rem minmax(0, 1fr);
  }
  .blueprint-dialog-body {
    padding-inline: var(--space-16);
  }
}

/* apps/studio-console/src/manager.css */
:is(input:not([type=checkbox], [type=radio]), textarea, select):focus-visible {
  outline: none;
}
.inline-link,
.blueprint-reach-link {
  color: light-dark(var(--cp-link), var(--canopy-300));
  font-weight: var(--weight-600);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentcolor 35%, transparent);
  text-underline-offset: 3px;
  border-radius: var(--radius-4);
}
.blueprint-reach-link {
  position: relative;
  z-index: 1;
}
.inline-link:hover,
.blueprint-reach-link:hover {
  color: light-dark(var(--cp-link-hover), var(--canopy-200));
  text-decoration-color: currentcolor;
}
button.credential {
  position: relative;
  display: inline-flex;
  width: auto;
  min-height: 0;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-4);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font: var(--weight-500) var(--text-12) / var(--leading-140) var(--mono);
  vertical-align: baseline;
}
button.credential:hover:enabled {
  background: var(--studio-hover);
  color: var(--studio-text);
}
button.credential::after {
  content: attr(data-full) " \b7  select to copy";
  position: absolute;
  z-index: 6;
  bottom: calc(100% + var(--space-6));
  left: 0;
  display: none;
  width: max-content;
  max-width: min(20rem, 62vw);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-8);
  background: light-dark(var(--toast-bg), var(--mist-100));
  color: light-dark(var(--mist-50), var(--mist-950));
  font-size: var(--text-11);
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-float);
  pointer-events: none;
}
button.credential:is(:hover, :focus-visible)::after {
  display: block;
}
.credential-you {
  color: var(--studio-text);
  font-weight: var(--weight-650);
}
.published-reach {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.published-reach .glyph {
  width: 15px;
  height: 15px;
  color: var(--studio-text-muted);
}
.blueprint-reach {
  font-variant-numeric: tabular-nums;
}
.blueprint-reach-none,
.blueprint-reach-pending,
.agent-muted {
  color: var(--studio-text-muted);
}
.blueprint-form :is(input, textarea:not(.template-input), select)[aria-invalid=true],
.blueprint-form .template-editor:has(> textarea[aria-invalid=true]),
:is(.variables-editor, .try-inputs) input[aria-invalid=true] {
  border-color: var(--studio-danger-fill);
}
.blueprint-form :is(input, textarea:not(.template-input), select)[aria-invalid=true]:focus-visible,
.blueprint-form .template-editor:has(> textarea[aria-invalid=true]:focus-visible),
:is(.variables-editor, .try-inputs) input[aria-invalid=true]:focus-visible {
  outline: none;
  border-color: var(--studio-danger-fill);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-danger-fill) 28%, transparent);
}
.editor-try-mark,
.try-empty-mark {
  display: grid;
  place-items: center;
  width: var(--space-32);
  height: var(--space-32);
  border-radius: var(--radius-8);
  background: var(--studio-info-soft);
  color: var(--studio-info-text);
}
.try-state,
.state-pill,
.health-chip,
.expiry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-8);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
  line-height: var(--leading-140);
  white-space: nowrap;
}
:is(.state-pill, .health-chip, .expiry) .glyph {
  width: 12px;
  height: 12px;
}
.try-state[data-tone=fresh],
.state-pill[data-state=completed] {
  background: var(--studio-success-soft);
  color: var(--studio-success-text);
}
.try-state[data-tone=stale],
.state-pill[data-state=interrupted],
.expiry[data-soon=true] {
  background: var(--studio-warning-soft);
  color: var(--studio-warning-text);
}
.try-state[data-tone=failed],
.state-pill[data-state=failed],
.health-chip[data-tone=failing] {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
}
.try-state[data-tone=busy],
.state-pill:is([data-state=queued], [data-state=running]),
.health-chip[data-tone=running] {
  background: var(--studio-info-soft);
  color: var(--studio-info-text);
}
.variable-remove,
button.icon-only {
  width: var(--space-32);
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-muted);
}
.variable-remove:hover:enabled,
button.icon-only:hover:enabled {
  color: var(--studio-text);
}
.row-actions {
  text-align: end;
}
:is(.previews-table, .agents-table) :is(.inline-link, button, .copy-contact) {
  position: relative;
  z-index: 1;
}
.manager-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  font-size: var(--text-13);
}
.manager-identity > div {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: var(--space-8);
}
.manager-identity dt {
  color: var(--studio-text-muted);
}
.manager-identity dd {
  overflow-wrap: anywhere;
}
#status:not(:empty):has(.toast-close) {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-right: var(--space-6);
}
button.toast-close {
  flex: none;
  width: var(--space-24);
  min-height: var(--space-24);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}
button.toast-close:hover:enabled {
  background: color-mix(in srgb, currentcolor 14%, transparent);
  opacity: 1;
}
.state-pill:is([data-state=queued], [data-state=running]) .glyph {
  animation: preview-spin 1.4s linear infinite;
}
a.blueprint-open {
  color: var(--studio-text);
  text-decoration: none;
}
a.blueprint-open:hover {
  color: light-dark(var(--cp-link), var(--canopy-300));
}
@container blueprints (width <= 34rem) {
  .blueprint-table.stack thead {
    display: none;
  }
  .blueprint-table.stack,
  .blueprint-table.stack tbody {
    display: block;
  }
  .blueprint-table.stack tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10) var(--space-12);
    padding: var(--space-14) var(--space-4);
    border-bottom: 1px solid var(--studio-border);
  }
  .blueprint-table.stack tbody :is(th, td),
  .blueprint-table.stack tbody td:nth-child(n) {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .blueprint-table.stack tbody th {
    grid-column: 1 / -1;
  }
  .blueprint-table.stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: var(--space-2);
    color: var(--studio-text-muted);
    font-size: var(--text-11);
    font-weight: var(--weight-600);
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }
  .blueprint-table.stack td.row-actions {
    position: absolute;
    top: var(--space-8);
    right: 0;
  }
  .blueprint-table.stack .blueprint-ahead {
    display: inline;
    margin-left: var(--space-6);
  }
}
@media (width <= 44rem) {
  button.credential:is(:hover, :focus-visible)::after {
    display: none;
  }
}

/* apps/studio-console/src/editor.css */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: start;
  gap: var(--space-24);
}
.editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  min-width: 0;
}
.editor-rail {
  position: sticky;
  top: var(--space-16);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-20);
  max-height: calc(100dvh - 9rem);
  min-width: 0;
  padding: var(--space-16) var(--space-16) var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
  overflow-y: auto;
  scrollbar-width: thin;
}
.editor-rail-title {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.editor-rail .field-hint {
  font-size: var(--text-12);
}
.editor-rail .tool-choices {
  grid-template-columns: minmax(0, 1fr);
}
.editor-rail .template-help {
  padding-top: var(--space-12);
  border-top: 1px solid var(--studio-border);
}
.editor-summary {
  display: none;
}
.template-editor {
  position: relative;
  height: calc(100dvh - 19rem);
  min-height: 18rem;
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-12) var(--radius-12) 0 0;
  background: var(--studio-surface);
  overflow: hidden;
  transition: border-color var(--studio-ease), box-shadow var(--studio-ease);
}
.template-editor::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3.5rem;
  border-right: 1px solid var(--studio-border);
  background: var(--studio-bg);
}
.template-editor:focus-within {
  border-color: var(--cp-focus);
  box-shadow: var(--studio-ring);
}
.template-layer,
textarea.template-input {
  margin: 0;
  padding: var(--space-12) var(--space-16) var(--space-12) 4.25rem;
  font: var(--text-13) / var(--leading-155) var(--mono);
  font-variant-ligatures: none;
  letter-spacing: normal;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}
.template-layer {
  padding-left: 0;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--studio-text);
  pointer-events: none;
  will-change: transform;
}
.template-chunk {
  padding-left: 4.25rem;
  content-visibility: auto;
  contain-intrinsic-block-size: auto 2600px;
}
.template-measuring .template-chunk {
  content-visibility: visible;
}
.template-line {
  position: relative;
  display: block;
  min-height: 1lh;
}
.template-line::before {
  content: attr(data-n);
  position: absolute;
  top: 0;
  left: -4.25rem;
  width: 3rem;
  color: var(--studio-text-muted);
  text-align: end;
  font-variant-numeric: tabular-nums;
}
textarea.template-input {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  caret-color: var(--studio-text);
  resize: none;
  field-sizing: fixed;
  scrollbar-width: thin;
}
textarea.template-input:focus-visible {
  border: 0;
  box-shadow: none;
}
textarea.template-input::selection {
  background: color-mix(in srgb, var(--canopy-400) 32%, transparent);
  color: transparent;
}
.prompt-field .prompt-status {
  margin-top: calc(-1 * var(--space-6));
}
.editor-try {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
  font-size: var(--text-13);
}
.editor-try p {
  color: var(--studio-text-secondary);
}
.editor-try strong {
  color: var(--studio-text);
}
@container blueprints (width <= 60rem) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .editor-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8) var(--space-12);
    padding: var(--space-8) var(--space-8) var(--space-8) var(--space-12);
    border: 1px solid var(--studio-border);
    border-radius: var(--radius-10);
    background: var(--studio-bg);
  }
  .editor-summary-facts {
    display: flex;
    flex: 1 1 18rem;
    flex-wrap: wrap;
    gap: var(--space-6);
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--studio-text-secondary);
    font-size: var(--text-12);
  }
  .editor-summary-facts li {
    padding: var(--space-2) var(--space-8);
    border-radius: var(--cp-radius-pill);
    background: var(--studio-surface-sunken);
    overflow-wrap: anywhere;
  }
  .editor-summary-facts li:first-child {
    color: var(--studio-text);
    font-family: var(--mono);
  }
  .template-editor {
    height: min(60dvh, 34rem);
  }
  .editor-rail .tool-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container blueprints (width <= 42rem) {
  .editor-rail .tool-choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-try {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .editor-try > button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (width <= 44rem) {
  .template-line::before {
    width: 2.25rem;
    left: -3.25rem;
  }
  .template-editor::before {
    width: 2.75rem;
  }
  textarea.template-input,
  .template-chunk {
    padding-left: 3.25rem;
  }
}

/* apps/studio-console/src/previews.css */
dialog.blueprint-dialog-medium {
  width: min(34rem, calc(100% - 2rem));
}
dialog.blueprint-drawer {
  width: min(72rem, calc(100% - 2rem));
  max-height: min(56rem, calc(100dvh - 2rem));
  height: min(56rem, calc(100dvh - 2rem));
}
.try-intro {
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-20);
  min-height: 0;
}
.try-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  min-width: 0;
}
.try-result {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  min-width: 0;
}
.try-result-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  min-height: var(--space-32);
}
.try-result-head h3 {
  margin-right: auto;
}
.try-measure {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-variant-numeric: tabular-nums;
}
.try-result .code-view {
  max-height: min(60dvh, 40rem);
}
.try-result[data-stale=true] .code-view {
  opacity: 0.6;
}
.try-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-8);
  padding: var(--space-40) var(--space-24);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--radius-12);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
  text-align: center;
}
.try-empty strong {
  color: var(--studio-text);
  font-size: var(--text-14);
}
.try-empty p {
  max-width: 40ch;
}
.try-refusal,
.preview-failure,
.preview-problem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-8) var(--space-12);
  padding: var(--space-14) var(--space-16);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  border-radius: var(--radius-12);
  background: var(--studio-danger-soft);
  font-size: var(--text-13);
}
.try-refusal-copy strong,
.preview-failure strong {
  display: block;
  color: var(--studio-danger-text);
  font-size: var(--text-14);
  font-weight: var(--weight-650);
  overflow-wrap: anywhere;
}
.try-refusal-copy p,
.preview-failure p {
  margin-top: var(--space-4);
  color: var(--studio-text-secondary);
  overflow-wrap: anywhere;
}
.try-refusal-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: var(--space-8);
}
.try-footer-note {
  flex: 1 1 14rem;
  min-width: 0;
  align-self: center;
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.try-tools legend,
.variables-editor legend {
  margin-bottom: var(--space-4);
  padding: 0;
}
.try-tools,
.variables-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.try-tool-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-8);
  scrollbar-width: thin;
}
label.try-tool {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-10);
  border-bottom: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-weight: var(--weight-500);
}
label.try-tool:last-child {
  border-bottom: 0;
}
.try-tool .blueprint-mono {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--text-12);
  overflow-wrap: anywhere;
}
.try-tool small {
  color: var(--studio-text-muted);
  font-size: var(--text-11);
}
.variable-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.variable-rows:empty {
  display: none;
}
.variable-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  gap: var(--space-6);
}
.variable-row input {
  padding-block: var(--space-6);
  font-size: var(--text-13);
}
.variable-add {
  padding-inline: var(--space-8);
}
.preview-limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
.preview-limits li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-10);
}
.preview-limits .glyph {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--studio-text-muted);
}
.preview-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-14);
  margin-top: var(--space-6);
  padding-top: var(--space-16);
  border-top: 1px solid var(--studio-border);
}
.preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-14);
  margin-top: var(--space-10);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
button.destructive-quiet {
  color: var(--studio-danger-text);
}
button.destructive-quiet:hover:enabled {
  border-color: color-mix(in srgb, var(--studio-danger-fill) 40%, transparent);
  background: var(--studio-danger-soft);
}
.preview-about {
  margin-bottom: var(--space-20);
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-bg);
}
.preview-about > summary {
  font-size: var(--text-13);
  font-weight: var(--weight-650);
}
.preview-about .preview-limits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-20);
}
.preview-conversation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  max-width: 52rem;
}
.preview-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}
.preview-thread:empty {
  display: none;
}
.preview-turn {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
}
.preview-ask {
  justify-self: end;
  max-width: min(36rem, 92%);
  padding: var(--space-10) var(--space-14);
  border-radius: var(--radius-12) var(--radius-12) var(--radius-4) var(--radius-12);
  background: var(--studio-action-soft);
  color: var(--studio-text);
  font-size: var(--text-14);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-who {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--studio-text);
  font-size: var(--text-13);
  font-weight: var(--weight-650);
}
.preview-ask .preview-who {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
}
.preview-who-detail {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.preview-who-detail::before {
  content: "\b7";
  margin-right: var(--space-6);
}
.preview-ask-earlier {
  justify-self: stretch;
  max-width: none;
  padding: var(--space-8) var(--space-14);
  border: 1px dashed var(--studio-border-strong);
  background: transparent;
  text-align: center;
}
.preview-ask-missing,
.preview-working,
.preview-empty {
  color: var(--studio-text-muted);
  font-size: var(--text-13);
}
.preview-empty {
  padding: var(--space-24) 0;
  text-align: center;
}
.preview-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  padding: var(--space-14) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
}
.preview-answer:empty {
  display: none;
}
.preview-answer-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
}
.preview-answer-head .preview-who {
  margin: 0;
}
.preview-took {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.preview-failure {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
.preview-failure .glyph {
  width: 15px;
  height: 15px;
}
.preview-timeline > summary {
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.preview-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
}
.preview-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-10);
}
.preview-step-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-size: var(--text-13);
}
.preview-step-copy small,
.preview-step-time {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  font-variant-numeric: tabular-nums;
}
.preview-composer {
  position: sticky;
  bottom: var(--space-12);
  z-index: 2;
  gap: var(--space-8);
  padding: var(--space-10);
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-12);
  background: var(--studio-surface);
  box-shadow: var(--shadow-float);
}
.preview-composer textarea {
  min-height: 4.5rem;
  border-color: transparent;
  resize: vertical;
}
.preview-composer-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-12);
}
button.preview-variables-toggle {
  gap: var(--space-6);
  margin-right: auto;
  padding-inline: var(--space-8);
  border-color: transparent;
  background: transparent;
  color: var(--studio-text-secondary);
  font-weight: var(--weight-600);
}
button.preview-variables-toggle[aria-expanded=true] {
  background: var(--studio-hover);
  color: var(--studio-text);
}
.preview-variables-count {
  color: var(--studio-text-muted);
  font-weight: var(--weight-500);
}
.preview-variables-panel {
  padding: var(--space-12) var(--space-4) var(--space-4);
  border-top: 1px solid var(--studio-border);
}
.preview-variables-panel legend {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.preview-composer-hint {
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.preview-problem {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  color: var(--studio-danger-text);
}
.preview-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-12);
  padding: var(--space-14) var(--space-16);
  border: 1px solid color-mix(in srgb, var(--studio-warning-fill) 45%, transparent);
  border-radius: var(--radius-12);
  background: var(--studio-warning-soft);
  font-size: var(--text-13);
}
.preview-banner > .glyph {
  margin-top: 2px;
  color: var(--studio-warning-text);
}
.preview-banner-copy strong {
  color: var(--studio-warning-text);
  font-size: var(--text-14);
}
.preview-banner-copy p {
  margin-top: var(--space-4);
  color: var(--studio-text-secondary);
}
.preview-ended .blueprint-failure-actions {
  justify-content: center;
}
.previews-table thead th:nth-child(2) {
  width: 30%;
}
.previews-table thead th:nth-child(3) {
  width: 8rem;
}
.previews-table thead th:nth-child(4) {
  width: 10rem;
}
.previews-table thead th:nth-child(5) {
  width: 3.5rem;
}
.preview-blueprint {
  margin-right: var(--space-4);
}
@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .state-pill .glyph {
    animation: none;
  }
}
.preview-about[open] > summary {
  margin-bottom: var(--space-10);
}
@container blueprints (width <= 42rem) {
  .preview-about .preview-limits {
    grid-template-columns: minmax(0, 1fr);
  }
  .previews-table thead th:nth-child(3),
  .previews-table td:nth-child(3) {
    display: none;
  }
  .previews-table thead th:nth-child(2) {
    width: 34%;
  }
  .previews-table thead th:nth-child(4) {
    width: 9.5rem;
  }
}
@media (width <= 52rem) {
  .try-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .try-result {
    position: static;
  }
  dialog.blueprint-drawer {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
}
@media (width <= 44rem) {
  .preview-composer {
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
}
@container blueprints (width <= 34rem) {
  .previews-table.stack tbody th {
    padding-right: var(--space-36);
  }
}
.preview-history-failed,
.preview-facts-failed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-6);
  padding: var(--space-12) var(--space-16);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  border-radius: var(--radius-12);
  background: var(--studio-danger-soft);
  font-size: var(--text-13);
}
.preview-history-failed strong {
  color: var(--studio-danger-text);
}
.preview-history-failed:not([hidden]) ~ .preview-empty {
  display: none;
}
@media (width <= 44rem), (pointer: coarse) {
  .try-footer-note,
  .preview-composer-hint {
    display: none;
  }
}
@media (width <= 44rem) {
  .blueprint-drawer .blueprint-dialog-actions {
    flex-wrap: nowrap;
  }
  .blueprint-drawer .blueprint-dialog-actions .primary {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* apps/studio-console/src/agents.css */
.agents-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-10) var(--space-16);
  margin-bottom: var(--space-12);
}
select.agents-pick {
  width: auto;
  max-width: 18rem;
  padding-block: var(--space-6);
  font-size: var(--text-13);
}
label.agents-failing {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--studio-text);
  font-weight: var(--weight-500);
}
.agents-summary {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--studio-text-muted);
  font-size: var(--text-12);
  text-align: end;
}
.agents-table thead th:nth-child(2) {
  width: 24%;
}
.agents-table thead th:nth-child(3) {
  width: 13.5rem;
}
.agents-table thead th:nth-child(4) {
  width: 9.5rem;
}
.agent-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  font-size: var(--text-14);
}
.agent-name strong {
  font-weight: var(--weight-650);
  overflow-wrap: anywhere;
}
.agent-key {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  margin-top: var(--space-2);
}
.agent-key code {
  min-width: 0;
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-key .copy-contact {
  width: var(--space-24);
  min-height: var(--space-24);
}
.agent-key-none,
.agent-runs-on,
.agent-when {
  display: block;
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.agent-day {
  display: table-cell;
}
.agent-day > * + * {
  margin-left: var(--space-6);
}
.agents-table tr[data-health=failing] > th {
  box-shadow: inset 3px 0 0 var(--studio-danger-fill);
}
.agents-none {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-6);
  padding: var(--space-20);
  border: 1px dashed var(--studio-border-strong);
  border-radius: var(--radius-12);
  font-size: var(--text-13);
}
.agents-none p {
  color: var(--studio-text-secondary);
}
.agents-privacy {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-24);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.agents-privacy .glyph {
  width: 14px;
  height: 14px;
}
.manager-missing {
  border-style: solid;
}
.agents-tally {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: calc(-1 * var(--space-8)) 0 var(--space-16);
}
.agents-tally-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--space-28);
  padding: var(--space-4) var(--space-10);
  border: 0;
  border-radius: var(--cp-radius-pill);
  background: var(--studio-surface-sunken);
  color: var(--studio-text-secondary);
  font-size: var(--text-12);
  font-weight: var(--weight-600);
}
.agents-tally-chip .glyph {
  width: 13px;
  height: 13px;
}
.agents-tally-chip[data-tone=failing] {
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
}
.agents-tally-chip[data-tone=running] {
  background: var(--studio-info-soft);
  color: var(--studio-info-text);
}
button.agents-tally-chip[aria-pressed=true] {
  box-shadow: inset 0 0 0 1.5px currentcolor;
}
@container blueprints (width <= 60rem) {
  .agents-table thead th:nth-child(3),
  .agents-table td:nth-child(3) {
    display: none;
  }
  .agents-table thead th:nth-child(2) {
    width: 30%;
  }
}
@container blueprints (width <= 42rem) {
  .agents-table thead th:nth-child(2) {
    width: 38%;
  }
  .agents-table thead th:nth-child(4) {
    width: 7.5rem;
  }
  .agent-day > * {
    margin: 0 0 var(--space-4);
  }
  .agent-day > * + * {
    margin-left: 0;
  }
  .agents-summary {
    flex-basis: 100%;
    text-align: start;
  }
}
@container blueprints (width <= 34rem) {
  .agents-table.stack tbody tr[data-health=failing] > th {
    box-shadow: none;
  }
  .agents-table.stack tbody tr[data-health=failing] {
    box-shadow: inset 3px 0 0 var(--studio-danger-fill);
    padding-left: var(--space-12);
  }
  .agent-key code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
.agents-scope {
  max-width: 72ch;
  margin-bottom: var(--space-12);
  color: var(--studio-text-muted);
  font-size: var(--text-12);
}
.agents-table tbody :is(th, td) {
  padding-block: var(--space-10);
}
.agent-key,
.agent-key-none {
  min-height: var(--space-24);
}
.agent-key-none {
  display: flex;
  align-items: center;
}
.agent-latest {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: var(--space-4) var(--space-8);
}
.agent-latest .agent-when {
  display: inline;
  margin: 0;
}
.agent-blueprint {
  display: block;
  width: fit-content;
}

/* apps/studio-console/src/markdown.css */
.markdown-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
}
details.markdown-preview {
  margin: 0;
  padding: 0;
  border: 0;
}
details.markdown-preview > summary {
  margin: 0;
  font-size: var(--text-12);
}
details.markdown-preview[open] > :last-child:not(summary) {
  margin-bottom: 0;
}
.markdown-preview[open] > div {
  margin: var(--space-4) 0 0;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-8);
  background: var(--studio-bg);
}
.markdown-body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font: var(--text-14)/1.6 var(--font);
}
.markdown-body :where(p, ul, ol, blockquote, pre, hr, h1, h2, h3, h4, h5, h6) {
  margin: 0;
}
.markdown-body > * + * {
  margin-block-start: var(--space-8);
}
.markdown-body :where(h1, h2, h3, h4, h5, h6) {
  font-size: var(--text-15);
  font-weight: var(--weight-650);
  line-height: 1.4;
}
.markdown-body :where(h1, h2) {
  font-size: var(--text-16);
}
.markdown-body :where(ul, ol) {
  padding-inline-start: 1.5em;
}
.markdown-body blockquote {
  padding-inline-start: var(--space-12);
  border-inline-start: 2px solid var(--studio-border-strong);
  color: var(--studio-text-secondary);
}
.markdown-body code {
  font: var(--text-13)/1.5 var(--mono);
}
.markdown-body :not(pre) > code {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-4);
  background: var(--studio-surface-sunken);
}
.markdown-body pre {
  overflow-x: auto;
  padding: var(--space-8) var(--space-12);
  white-space: pre;
  border: 1px solid var(--studio-border);
  border-radius: var(--radius-8);
  background: var(--studio-surface);
}
.markdown-body a {
  color: var(--studio-action);
  text-decoration: underline;
}

/* apps/studio-console/src/shell.css */
#connect {
  display: grid;
  place-content: start center;
  grid-template-columns: minmax(0, 26rem);
  min-height: 100dvh;
  padding: clamp(2.5rem, 14vh, 9rem) var(--space-20) var(--space-40);
  background:
    radial-gradient(
      60rem 28rem at 50% -8rem,
      color-mix(in srgb, var(--canopy-300) 16%, transparent),
      transparent 70%),
    var(--studio-bg);
}
:where(#connect) .brand {
  margin-bottom: var(--space-28);
}
#connect h1 {
  font-size: var(--text-24);
}
#connect .support {
  margin: var(--space-6) 0 var(--space-24);
  font-size: var(--text-14);
}
#login {
  padding: var(--space-20);
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-card);
  background: var(--studio-surface);
  box-shadow: var(--shadow-hover-bar);
}
#google-signin,
#signin-retry,
#resume-draft {
  width: 100%;
  min-height: var(--space-36);
}
#resume-draft {
  margin-top: var(--space-8);
}
#status:not(:empty) {
  position: fixed;
  bottom: var(--space-20);
  left: 50%;
  z-index: 9;
  width: max-content;
  max-width: min(90vw, 34rem);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-10);
  background: light-dark(var(--toast-bg), var(--mist-100));
  color: light-dark(var(--mist-50), var(--mist-950));
  font-size: var(--text-13);
  font-weight: var(--weight-500);
  box-shadow: var(--shadow-float);
  transform: translateX(-50%);
  pointer-events: none;
}
#connect #status:not(:empty) {
  position: static;
  width: auto;
  max-width: 100%;
  margin-top: var(--space-12);
  padding: var(--space-10) var(--space-12);
  border: 1px solid color-mix(in srgb, var(--studio-danger-fill) 30%, transparent);
  background: var(--studio-danger-soft);
  color: var(--studio-danger-text);
  box-shadow: none;
  transform: none;
}
.layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  height: 100dvh;
  padding: var(--space-20) var(--space-12) var(--space-12);
  overflow-y: auto;
  border-right: 1px solid var(--studio-border);
  background: var(--studio-bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  color: var(--studio-text);
  font-size: var(--text-16);
  font-weight: var(--weight-700);
  letter-spacing: var(--cp-tracking-heading);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: var(--space-28);
  height: var(--space-28);
  border-radius: var(--radius-8);
  background: var(--white);
  box-shadow: inset 0 0 0 1px light-dark(var(--studio-border), transparent);
}
:where(.brand-mark) .glyph {
  width: 15px;
  height: 20px;
}
:where(.sidebar) .brand {
  margin: var(--space-4) var(--space-8) 0;
}
#agent-picker {
  justify-content: start;
  gap: var(--space-10);
  width: 100%;
  padding: var(--space-8);
  border-color: var(--studio-border);
  border-radius: var(--radius-10);
  text-align: left;
  box-shadow: var(--shadow-rest);
}
#agent-picker:hover {
  border-color: var(--studio-border-strong);
  background: var(--studio-surface);
}
:where(#agent-picker) > .glyph {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--studio-text-muted);
}
.agent-glyph,
.initial {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--space-32);
  height: var(--space-32);
  border-radius: var(--radius-8);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
}
.agent-mark {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentcolor;
  stroke-width: 0.65;
}
:where(.initial, .agent-glyph) .agent-mark {
  stroke-width: 3.6;
}
.switch-label {
  min-width: 0;
}
:where(.switch-label) small,
:where(.environment) small,
:where(#agents) small {
  display: block;
  color: var(--studio-text-muted);
  font-size: var(--text-11);
  font-weight: var(--weight-500);
}
:where(.switch-label) strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#views,
#project-views {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
:where(#views, #project-views) button {
  justify-content: start;
  gap: var(--space-10);
  width: 100%;
  min-height: var(--space-36);
  padding: var(--space-8) var(--space-10);
  border: 0;
  background: transparent;
  color: var(--studio-text-secondary);
  font-weight: var(--weight-500);
}
:where(#views, #project-views) button:where(:hover) {
  background: var(--studio-hover);
  color: var(--studio-text);
}
:where(#views, #project-views) button:where([aria-current=true], [aria-current=page]) {
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
  font-weight: var(--weight-650);
}
:where(#views, #project-views) .glyph {
  width: 16px;
  height: 16px;
}
.short-nav-label {
  display: none;
}
button.environment {
  justify-content: start;
  gap: var(--space-10);
  width: 100%;
  margin-top: auto;
  padding: var(--space-8);
  border-color: transparent;
  background: transparent;
  text-align: left;
  overflow-wrap: anywhere;
}
button.environment:hover {
  border-color: var(--studio-border);
  background: var(--studio-surface);
}
.environment > .glyph {
  color: var(--studio-text-muted);
}
.environment > span {
  min-width: 0;
}
.environment > svg:last-child {
  width: 15px;
  height: 15px;
  margin-left: auto;
}
:where(.environment) strong {
  display: block;
  font-size: var(--text-13);
  font-weight: var(--weight-650);
}
:where(.environment) small {
  color: var(--studio-text-secondary);
  font-family: var(--mono);
}
:where(.environment) small:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-6);
  border-radius: var(--radius-round);
  background: var(--live-green);
  box-shadow: 0 0 0 3px var(--live-green-halo);
  vertical-align: 1px;
}
article {
  width: 100%;
  max-width: 72rem;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(1.75rem, 3.4vw, 3rem) clamp(1.5rem, 4.4vw, 4rem) 5rem;
}
#agent-title {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-bottom: var(--space-24);
}
.identity-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.identity-meta {
  order: -1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-10);
  margin-bottom: var(--space-6);
}
#heading,
.page-eyebrow,
.listening-heading p,
.eval-context {
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
  font-weight: var(--weight-600);
  line-height: var(--leading-140);
  letter-spacing: 0;
}
#agent-meta,
.eval-context span {
  color: var(--studio-text-muted);
  font: var(--text-12)/var(--leading-140) var(--mono);
}
#agent-meta:not(:empty)::before {
  content: "\b7";
  margin-right: var(--space-10);
}
.view-caption {
  margin: 0;
}
#agent-art {
  display: none;
}
#instructions-preview {
  display: -webkit-box;
  width: 100%;
  max-width: 62ch;
  margin-top: var(--space-12);
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
article:has(#editor[data-mode=create]:not([hidden])) .view-caption {
  display: none;
}
article:has(#editor[data-mode=create]:not([hidden])) .identity-meta {
  margin: 0;
}
article:has(#editor[data-mode=create]:not([hidden])) #heading {
  color: var(--studio-text);
  font-size: var(--text-30);
  font-weight: var(--weight-650);
  line-height: var(--leading-120);
  letter-spacing: var(--cp-tracking-heading);
}
article:has(:is(#inbox, #activity, #configure):not([hidden])) .identity-copy [data-open-desktop] {
  display: none;
}
dialog {
  color: var(--studio-text);
}
:is(#switcher, #settings, #listening-preview),
.blueprint-dialog {
  position: fixed;
  inset: 0;
  width: min(28rem, calc(100% - 2rem));
  max-height: min(42rem, 84dvh);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--studio-border);
  border-radius: var(--cp-radius-panel);
  background: var(--studio-surface);
  box-shadow: var(--shadow-float);
}
:is(#switcher, #settings, #listening-preview, #desktop-dialog)[open],
.blueprint-dialog[open] {
  animation: studio-dialog-in 160ms cubic-bezier(0.2, 0, 0, 1);
}
:is(#switcher, #settings, #listening-preview, #desktop-dialog)::backdrop,
.blueprint-dialog::backdrop {
  background: color-mix(in srgb, var(--deep) 42%, transparent);
  backdrop-filter: blur(2px);
}
@keyframes studio-dialog-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
}
@keyframes studio-pulse {
  50% {
    opacity: 0.35;
  }
}
.palette-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: var(--space-16) var(--space-16) var(--space-12) var(--space-20);
}
.palette-title h2 {
  font-size: var(--text-16);
}
#switch-scope,
#settings-scope {
  display: block;
  margin-top: var(--space-2);
  color: var(--studio-text-muted);
  font: var(--text-12)/var(--leading-140) var(--mono);
}
.agent-search {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0 var(--space-16) var(--space-8);
  padding-left: var(--space-12);
  border: 1px solid var(--studio-border-strong);
  border-radius: var(--radius-10);
  color: var(--studio-text-muted);
  transition: border-color var(--studio-ease), box-shadow var(--studio-ease);
}
.agent-search:focus-within {
  border-color: var(--cp-focus);
  box-shadow: var(--studio-ring);
}
.agent-search .glyph {
  width: 16px;
  height: 16px;
}
.agent-search input {
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.agent-search input::-webkit-search-cancel-button {
  display: none;
}
#agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  max-height: 44dvh;
  padding: var(--space-4) var(--space-8);
  overflow: auto;
}
:where(#agents) button {
  justify-content: start;
  gap: var(--space-10);
  width: 100%;
  padding: var(--space-8);
  border: 0;
  background: transparent;
  text-align: start;
  overflow-wrap: anywhere;
}
:where(#agents) button:where(:hover, :focus-visible) {
  background: var(--studio-hover);
}
:where(#agents) button:where([aria-current=true]) {
  background: var(--studio-action-soft);
}
:where(#agents) button > span:last-of-type {
  min-width: 0;
}
:where(#agents) strong {
  display: block;
  font-weight: var(--weight-650);
}
:where(#agents) small {
  margin-top: var(--space-1);
  font-family: var(--mono);
}
:where(#agents) button:where([aria-current=true])::after {
  content: "";
  flex: none;
  width: 5px;
  height: 10px;
  margin: 0 var(--space-8) var(--space-3) auto;
  border: solid var(--studio-action);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#no-matches {
  padding: var(--space-24) var(--space-20);
  color: var(--studio-text-muted);
  text-align: center;
}
:where(#switcher, #settings) footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding: var(--space-10) var(--space-12);
  border-top: 1px solid var(--studio-border);
  background: var(--studio-bg);
}
#new,
#switch-settings {
  border-color: transparent;
  background: transparent;
}
#new {
  color: var(--studio-action);
}
#switch-settings {
  color: var(--studio-text-secondary);
  font-weight: var(--weight-500);
}
#settings > section {
  padding: var(--space-20);
  border-top: 1px solid var(--studio-border);
}
#settings h3 {
  font-size: var(--text-14);
}
#settings p {
  margin: var(--space-4) 0 var(--space-14);
  color: var(--studio-text-secondary);
  font-size: var(--text-13);
}
#settings footer {
  justify-content: flex-end;
  margin-top: 0;
  padding-inline: var(--space-20);
}
#disconnect {
  color: var(--studio-danger-text);
}
#trace-id {
  display: block;
}
#mcp-endpoint,
#trace-id {
  font: var(--text-12)/var(--leading-160) var(--mono);
  overflow-wrap: anywhere;
}
#cedar-connection-status:empty,
#cedar-connected-count:empty {
  display: none;
}
.revision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-12);
  padding: var(--space-14) var(--space-4);
  border-top: 1px solid var(--studio-border);
  overflow-wrap: anywhere;
}
.revision-row:last-child {
  border-bottom: 1px solid var(--studio-border);
}
#revision-list p {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
.revision-row strong {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: var(--weight-650);
}
.revision-row small {
  color: var(--studio-text-muted);
  font: var(--text-12)/var(--leading-150) var(--mono);
}
.revision-current {
  padding: var(--space-2) var(--space-8);
  border-radius: var(--cp-radius-pill);
  background: var(--studio-action-soft);
  color: var(--studio-action-soft-text);
  font-size: var(--text-11);
  font-weight: var(--weight-650);
}
.revision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
#revision-status {
  color: var(--studio-text-secondary);
}
#revision-status:not(:empty) {
  margin-bottom: var(--space-12);
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    transition-duration: 0s !important;
    animation: none !important;
  }
}
@media (width <= 56rem) {
  .layout {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }
}
@media (width <= 44rem) {
  html {
    scroll-padding-block-end: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  #studio ~ #status:not(:empty) {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-10);
    height: auto;
    padding: var(--space-10) var(--space-14);
    border-right: 0;
    border-bottom: 1px solid var(--studio-border);
  }
  :where(.sidebar) .brand {
    margin: 0;
    font-size: var(--text-15);
    gap: var(--space-8);
  }
  :where(.switch-label) small,
  .environment,
  .agent-glyph {
    display: none;
  }
  #agent-picker {
    width: fit-content;
    max-width: 100%;
    place-self: center end;
    padding: var(--space-6) var(--space-10);
  }
  #views,
  #project-views {
    position: fixed;
    z-index: 8;
    inset: auto 0 0;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-8) calc(5px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--studio-border);
    background: color-mix(in srgb, var(--studio-surface) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  :where(#views, #project-views) button {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    min-height: 46px;
    padding: var(--space-6) var(--space-2);
    font-size: var(--text-11);
  }
  #cedar {
    grid-column: 1/-1;
  }
  article {
    padding: var(--space-20) var(--space-14) calc(78px + env(safe-area-inset-bottom, 0px));
  }
  h1,
  .view-caption {
    font-size: var(--text-24);
  }
  .palette-title {
    padding-left: var(--space-16);
  }
}
@media (width <= 28rem) {
  .short-nav-label {
    display: inline;
  }
  .full-nav-label {
    display: none;
  }
}
@media (width <= 23rem) {
  #views:has(button[data-view=activity]:not([hidden])) {
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.87fr) minmax(0, 0.76fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.87fr);
  }
}

/* apps/studio-console/src/studio.css */
