/* Ink Studio: shared work surfaces and task-oriented layouts. */
:root {
  --ink: #202b38;
  --muted: #536171;
  --subtle: #657283;
  --border: #dce1e7;
  --surface: #fff;
  --canvas: #fff;
  --accent: #315b84;
  --accent-dark: #263e58;
  --accent-soft: #edf2f8;
  --page-title-size: 24px;
  --control-height: 38px;
  --compact-control-height: 32px;
  --panel-padding: 20px;
  --workspace-gap: 18px;
  --workspace-header-height: 56px;
  --shadow: none;
  --rail: #182635;
  --rail-text: #c2ccd7;
  --rail-muted: #9baabd;
  --rail-line: #354354;
  --action: #263e58;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.55;
}
::selection {background:#dce6f1; color:#202b38}
input, textarea {caret-color:var(--accent)}
button, summary, a, input, textarea {transition:background-color 150ms ease-out,border-color 150ms ease-out,color 150ms ease-out}
h1 {font-size:28px; font-weight:650; line-height:1.2; letter-spacing:-.03em}
h2 {font-size:16px; font-weight:650; letter-spacing:-.02em}
h3 {font-size:14px; font-weight:620}
button:focus-visible, summary:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {outline:2px solid var(--accent); outline-offset:3px}

.shell {--workspace-canvas:var(--canvas); grid-template-columns:220px minmax(0,1fr); background:var(--canvas)}
.shell .sidebar {background:var(--rail); border-right:0; padding:20px 12px 16px; color:var(--rail-text); scrollbar-color:#58707e var(--rail)}
.shell .sidebar-header {margin:0 10px 22px; min-height:32px}
.shell .sidebar .brand {color:#f0f6f8; font-size:18px; font-weight:650; letter-spacing:-.025em; gap:11px}
.shell .sidebar .mark {width:30px; height:30px}
.shell .sidebar .nav-label {font-size:11px; line-height:18px; font-weight:550; color:var(--rail-muted); padding:0 12px 7px; letter-spacing:0}
.shell .sidebar .nav-label.group {margin-top:24px}
.shell .sidebar .observe-nav-label {margin-top:24px}
.shell .sidebar .nav {height:34px; min-height:34px; margin:3px 0; padding:6px 12px; gap:11px; line-height:20px; font-size:13px; font-weight:450; border:0; border-radius:5px; color:var(--rail-text)}
.shell .sidebar .nav .ui-icon {width:18px; height:18px; color:#9db4c0; stroke-width:1.6}
.shell .sidebar .nav:hover {background:#243649; color:#f1f7f9}
.shell .sidebar .nav.active {background:#304257; color:#fff; font-weight:600}
.shell .sidebar .nav.active .ui-icon {color:#d2dfed}
.shell .sidebar .nav:focus-visible, .shell .sidebar .button:focus-visible {outline-color:#b7cfe9}
.shell .sidebar nav {padding-bottom:22px}
.sidebar-foot {display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding:16px 12px 0; border-top:1px solid var(--rail-line); font-size:12px; color:var(--rail-text)}
.sidebar-foot small {font-size:11px; color:var(--rail-muted)}
.shell #sidebar-agent-context .icon-button {color:var(--rail-muted)}
.shell #sidebar-agent-context .icon-button:hover {color:#d2dfed; background:#304257}
.shell #sidebar-agent-context .nav .agent-avatar {color:#d3dfed; background:#35495f; border:0}
.shell .top {height:56px; min-height:56px; padding:8px 32px; background:var(--surface); border-color:var(--border)}
.shell .breadcrumb {font-size:13px; line-height:20px; color:var(--muted)}
.shell .breadcrumb strong {color:var(--ink); font-weight:550}
.shell .sidebar-toggle {color:var(--subtle)}
.shell #agent-switcher {padding:0; border:0; margin:0}
.shell .content {max-width:1512px; padding:28px 32px 48px}
.shell .heading h1, .shell .module-heading h1 {font-size:24px; font-weight:600; letter-spacing:-.025em}
.shell .heading p, .shell .module-heading p {font-size:13px; line-height:1.65; margin-top:8px}
.shell .module-heading, .shell .heading {margin-bottom:24px}
.shell :is(.button,.select-trigger,input,select,textarea) {font-size:13px; border-radius:6px; color:var(--ink); box-shadow:none}
.shell .button {font-weight:550; gap:7px}
.shell .button.primary {background:var(--action); color:#fff; border:1px solid transparent; font-weight:550; box-shadow:none}
.shell .button.primary:hover:not(:disabled) {background:#1c3046; border-color:transparent}
.shell .button:hover:not(:disabled), .shell .select-trigger:hover:not(:disabled) {background:#f3f5f8; border-color:#b9c5d2}
.shell .button.quiet {color:var(--muted); background:transparent; border-color:transparent}
.shell .button.quiet:hover:not(:disabled) {background:#edf1f6; color:var(--ink); border-color:transparent}
.shell .button:disabled {opacity:.55; cursor:default}
.shell :is(input,textarea)::placeholder {color:var(--muted); opacity:1}
.shell .panel, .shell .metric {border:0; border-radius:0; box-shadow:none; background:transparent}
.shell .module-grid {gap:28px}
.shell .module-grid > .panel {border-top:1px solid var(--border); padding:20px 0 0}
.shell .metrics {gap:0; border-block:1px solid var(--border)}
.shell .metric {border-inline-start:1px solid var(--border); padding:18px 20px}
.shell .metric:first-child {border-inline-start:0}
.shell .model-library-header {padding:16px 0}
.shell .provider-grid {gap:0; border-block:1px solid var(--border)}
.shell .provider-card {border:0; border-inline-start:1px solid var(--border); border-radius:0; padding:16px; background:transparent}
.shell .provider-card:first-child {border-inline-start:0}
.shell .panel-head {padding:20px 0}
.shell .panel-head p {font-size:12px}
.shell :is(table,.registry-table table,.model-library table) {font-size:13px}
.shell :is(th,.registry-table th,.model-library th) {font-size:11px; font-weight:600; color:var(--muted); background:transparent; border-color:var(--border)}
.shell :is(td,th) {padding:12px 16px; border-color:#e9edf1}
.shell tbody tr:hover {background:#f7f9fb}
.shell #trace-run-list > table {min-width:1080px; table-layout:fixed}
.shell #trace-run-list th:first-child {width:24%}
.shell #trace-run-list th:nth-child(2) {width:22%}
.shell #trace-run-list th:nth-child(3), .shell #trace-run-list th:nth-child(4) {width:9%}
.shell #trace-run-list th:nth-child(5), .shell #trace-run-list th:nth-child(6), .shell #trace-run-list th:nth-child(7) {width:8%}
.shell #trace-run-list th:last-child {width:12%}
.shell #trace-run-list td {white-space:normal; overflow-wrap:anywhere}
.shell #trace-run-list .trace-row-identity {min-width:0; width:100%; grid-template-columns:minmax(0,1fr)}
.shell #trace-run-list .trace {max-width:100%; white-space:normal; overflow-wrap:anywhere}
.shell #trace-run-list .trace-input-preview {display:block; width:100%; max-width:100%; min-width:0}
.shell .pill {font-size:11px; font-weight:550; background:#eff2f5; color:#526a76; padding:3px 8px}
.shell .pill.success {background:#e5f2ea; color:#2b6b50}
.shell .pill.error {background:#f9e9e8; color:#a23e3d}
.shell .agent-avatar {--avatar-hue:0; background:#edf1f7; color:#405979; border-color:#dce3ec; font-weight:600}
.shell .metric strong {font-size:24px; letter-spacing:-.025em}
.shell .agent-name {font-size:13px; font-weight:600}
.shell .agent-registry-view {border-top:1px solid var(--border); border-radius:0}
.shell .registry-toolbar {padding:16px 0; gap:10px}
.shell .registry-table td {height:72px}
.shell .registry-table .agent-avatar {width:38px; height:38px; border-radius:10px}
.shell .registry-table .agent-identity {gap:12px}
.shell .registry-table .agent-identity p {font-size:12px}
.shell .registry-table .button {font-size:12px}

.shell .ink-launchpad {width:min(100%,1240px); min-height:0; margin:0 auto; padding:0; display:grid; gap:26px; justify-items:stretch; align-content:start}
.shell .ink-launchpad .studio-launch-header {display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0; min-width:0; background:transparent; border-radius:0}
.shell .studio-launch-header > div {min-width:0}
.shell .ink-launchpad h1 {font-size:26px; font-weight:600; letter-spacing:-.025em; margin:0; line-height:1.3}
.shell .studio-launch-header p {font-size:13px; line-height:1.6; max-width:65ch; margin-top:6px; color:var(--muted)}
.shell .studio-launch-header > .button {min-height:36px; padding:8px 13px; flex:none; font-size:12px}
.shell .studio-launch-agents {width:100%; min-width:0}
.studio-launch-toolbar {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-bottom:18px}
.studio-launch-filters {display:flex; flex-wrap:wrap; align-items:center; gap:18px; border-bottom:1px solid var(--border)}
.shell .studio-launch-filter {min-height:36px; padding:7px 0 10px; border:0; border-bottom:2px solid transparent; border-radius:0; font-size:12px}
.shell .studio-launch-filter:hover:not(:disabled) {background:transparent; border-color:#bac6d3}
.shell .studio-launch-filter[aria-pressed="true"] {background:transparent; color:var(--ink); border-bottom-color:var(--accent); font-weight:600}
.shell .studio-launch-toolbar > input {width:260px; max-width:100%; min-height:34px; padding:7px 11px; background:var(--surface); font-size:12px}
.studio-launch-columns, .shell .studio-launch-agent {display:grid; grid-template-columns:minmax(0,1fr) 210px 220px 18px; column-gap:24px; align-items:center}
.studio-launch-columns {padding:10px 20px; font-size:11px; font-weight:550; color:var(--muted); border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent}
.shell .studio-launch-agent-list {display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-width:0; border:0; border-radius:0; background:var(--surface); overflow:hidden}
.shell .studio-launch-agent {padding:16px 20px; min-width:0; width:100%; border:0; border-bottom:1px solid #e9edf1; border-radius:0; background:var(--surface); color:var(--ink); text-align:left; font-weight:400; min-height:80px; transition:background-color 140ms ease-out}
.shell .studio-launch-agent:last-child {border-bottom:0}
.shell .studio-launch-agent:hover {background:#f7f9fc}
.shell .studio-launch-agent:focus-visible {outline:2px solid var(--accent); outline-offset:-3px}
.studio-launch-agent-body, .studio-launch-agent-footer {display:contents}
.shell .studio-launch-agent-identity {display:flex; align-items:center; gap:12px; min-width:0; width:100%}
.shell .studio-launch-agent-identity .agent-avatar {width:34px; height:34px; flex:none; border:1px solid #dce3ec; border-radius:7px; font-size:11px; background:#edf1f7; color:#405979}
.studio-launch-agent-labels {display:grid; gap:4px; min-width:0}
.studio-launch-agent-name {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:14px; font-weight:600; line-height:1.5; letter-spacing:0}
.shell .studio-launch-agent-model {display:block; color:var(--muted); font-size:12px; font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.studio-launch-agent-description {display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:12px; font-weight:400; line-height:1.5; color:var(--muted)}
.shell .studio-launch-agent-release {display:grid; justify-items:start; gap:5px; min-width:0; max-width:100%; grid-column:auto; grid-row:auto}
.shell .studio-launch-agent-release .pill {background:transparent; padding:0; gap:6px; font-size:12px; font-weight:500; color:var(--muted)}
.shell .studio-launch-agent-release .pill::before {content:""; width:5px; height:5px; border-radius:50%; background:#8794a3}
.studio-launch-release-item {display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px; width:100%; min-width:0}
.shell .studio-launch-agent-release .pill.release-preview {color:#496581}
.shell .studio-launch-agent-release .pill.release-preview::before {background:#6e89a6}
.shell .studio-launch-agent-release .pill.success {color:#296847}
.shell .studio-launch-agent-release .pill.success::before {background:#32825a}
.shell .studio-launch-agent-release small {font-size:12px; line-height:1.5; color:var(--muted); max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:400}
.studio-launch-agent-open {display:flex; align-items:center; justify-content:flex-end; color:#7b8b9d}
.studio-launch-agent-open .ui-icon {width:16px; height:16px}
.shell .studio-launch-agent:hover .studio-launch-agent-open {color:var(--accent)}
.studio-launch-count {font-size:11px; color:var(--muted); margin-top:12px}
.studio-launch-empty {grid-column:1/-1; min-height:220px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:12px; padding:30px; background:var(--surface)}
.studio-launch-empty > .ui-icon {width:26px; height:26px; color:#738399}
.studio-launch-empty p {max-width:46ch; font-size:13px}

.shell #platform-content:has(> .studio-split > .studio-split-build) {max-width:none; padding:0}
.shell .studio-split {--studio-build-min:420px; --studio-debug-min:360px; position:relative; width:100%; gap:0; align-items:stretch}
.shell .studio-split-resizer {display:none; position:absolute; top:0; bottom:0; left:clamp(var(--studio-build-min),var(--studio-build-width,40%),calc(100% - var(--studio-debug-min))); transform:translateX(-50%); width:12px; z-index:4; cursor:col-resize; touch-action:none; user-select:none}
.shell .studio-split-resizer::before {content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; transform:translateX(-50%); background:var(--border); opacity:0}
.shell .studio-split-resizer::after {content:""; position:absolute; top:50%; left:50%; width:2px; height:28px; border-radius:2px; transform:translate(-50%,-50%); background:#8b9caf}
.shell .studio-split-resizer:is(:hover,:focus-visible)::before, .shell .is-resizing > .studio-split-resizer::before {opacity:1}
.shell .studio-split-resizer:is(:hover,:focus-visible)::after, .shell .is-resizing > .studio-split-resizer::after {background:var(--muted)}
.shell .studio-split-resizer:focus-visible {outline:none}
.shell .studio-split-resizer:focus-visible::after {outline:none; background:var(--ink)}
.shell .studio-split.is-resizing, .shell .studio-split.is-resizing * {cursor:col-resize; user-select:none}
@media (pointer:coarse) {.shell .studio-split-resizer {width:44px}}
/* Thin Studio scrollbars; the resize separator keeps its larger pointer target. */
.shell :is(.studio-split-build,.studio-split-debug,.studio-split .agent-chat-conversation,.studio-split-sessions) {scrollbar-width:thin; scrollbar-color:var(--subtle) transparent}
.shell :is(.studio-split-build,.studio-split-debug,.studio-split .agent-chat-conversation,.studio-split-sessions)::-webkit-scrollbar {width:6px; height:6px}
.shell :is(.studio-split-build,.studio-split-debug,.studio-split .agent-chat-conversation,.studio-split-sessions)::-webkit-scrollbar-thumb {background:var(--subtle); border-radius:6px}
.shell :is(.studio-split-build,.studio-split-debug,.studio-split .agent-chat-conversation,.studio-split-sessions)::-webkit-scrollbar-track {background:transparent}
.shell .studio-split-build > * {width:100%; min-width:0; margin-inline:0}
.shell .studio-split-build > .studio-config-embedded {max-width:960px}
.shell main:has(> #platform-content:not([hidden]) .studio-split-build) {--studio-header-height:56px}
.shell .studio-split-build {width:100%; min-height:calc(100dvh - 56px); background:transparent; padding:24px 32px 40px; border:0; border-radius:0; min-width:0; container:studio-build / inline-size}
.shell .studio-split-header {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; min-height:42px; margin-bottom:18px}
.shell .studio-split-header h1 {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-width:0; font-size:21px; line-height:1.35; font-weight:600; letter-spacing:-.025em; overflow-wrap:anywhere}
.shell .studio-split-header button {font-size:12px; min-height:34px; padding:7px 10px}
.shell .studio-split-section-bar {margin-bottom:24px; gap:8px 12px; padding-bottom:0; border-color:var(--border)}
.shell .studio-split-tabs {gap:12px}
.shell .studio-split-tabs .button {padding:9px 6px 13px; border-radius:0; color:var(--muted); background:none}
.shell .studio-split-tabs .button[aria-pressed="true"] {color:var(--accent-dark); border-bottom:2px solid var(--accent); font-weight:600}
.shell .studio-split-management .studio-icon-action {width:auto; min-height:32px; gap:6px; padding:6px 8px}
.shell .studio-split-management .studio-icon-action > span {display:inline; font-size:12px}
.shell .studio-split-management .studio-icon-action[aria-label="View YAML"] {width:32px; padding:6px}
.shell .studio-split-management .studio-icon-action[aria-label="View YAML"] > span {display:none}
.shell .studio-config-embedded .agent-config-section {margin:0; padding:0 0 24px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; box-shadow:none; gap:16px}
.shell .studio-config-embedded .agent-config-column {gap:24px}
.shell .studio-config-embedded .studio-config-group {gap:16px}
.shell .studio-config-embedded label {font-size:12px; font-weight:550; gap:7px}
.shell .studio-config-embedded :is(input,textarea,.select-trigger) {background:#fbfcfd; font-size:13px; line-height:1.6; border-color:#dce1e7; padding:9px 12px}
.shell .studio-config-embedded input:focus, .shell .studio-config-embedded textarea:focus {background:#fff}
.shell .studio-config-embedded textarea[name="instructions"] {min-height:180px; line-height:1.75; resize:vertical}
.shell .studio-config-embedded .agent-config-disclosure {border:0; border-bottom:1px solid var(--border); border-radius:0; padding-bottom:22px; background:transparent}
.shell .studio-config-embedded .agent-config-disclosure > summary {padding:0; font-size:15px; font-weight:600; color:var(--ink)}
.shell .studio-config-embedded .agent-config-disclosure[open] > summary {margin-bottom:20px}
.shell .studio-config-embedded .agent-config-disclosure > :not(summary) {margin:0}
.shell .studio-config-embedded .studio-attachments {gap:20px}
.shell .studio-config-embedded .connector-toggle-list {max-height:none; overflow:visible}
.shell .studio-config-embedded .studio-attachment-section {padding:0 0 20px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; box-shadow:none; gap:12px}
.shell .studio-config-embedded .studio-attachment-section:last-child {padding-bottom:0; border-bottom:0}
.shell .studio-config-embedded .studio-attachment-section h2 {font-size:14px}
.shell .connector-toggle-row {padding:9px 4px; gap:10px}
.shell .connector-toggle-text strong {font-size:12px; font-weight:550}
.shell .connector-toggle-text small {font-size:11px; color:var(--muted)}
.shell .studio-config-embedded input.connector-toggle {background:#cbd3dd}
.shell .studio-config-embedded input.connector-toggle:checked {background:#315b84}
.shell .connector-toggle-row input.connector-toggle {min-height:0; height:18px; width:31px; padding:0; border:0}
.shell .studio-config-embedded .studio-config-footer {padding:0; margin-top:4px; border:0; background:transparent}
.shell .studio-config-footer .section-actions {gap:10px}
.shell .studio-config-footer .button {font-size:12px}
.shell .studio-split-debug {background:transparent; border:0; border-radius:0; padding:24px 32px; overflow:auto}
.shell .studio-split-debug-header {min-height:44px; margin:0 0 20px; padding-bottom:12px; border-bottom:1px solid var(--border); gap:16px}
.shell .studio-split-debug-header h2 {font-size:14px; font-weight:600; flex:none}
.shell .studio-split-debug-identity {display:flex; align-items:center; gap:10px; min-width:0}
.shell .studio-split-debug-identity .agent-chat-identity {flex:0 1 auto; gap:6px}
.shell .studio-split-debug-header .section-actions {flex:none; gap:8px}
.shell .studio-split-debug-header .button {min-height:32px; height:32px; font-size:12px}
.shell .studio-split-debug-header .studio-debug-new-chat {padding:4px 8px; gap:6px}
.shell .studio-split-debug-header .studio-debug-new-chat .ui-icon {width:16px; height:16px}
.shell .studio-split-debug-header .icon-button {width:32px; padding:6px}
@media (pointer:coarse) {
  .shell .studio-split-debug-header .button {min-height:44px; height:44px}
  .shell .studio-split-debug-header .icon-button {width:44px}
}
.shell .studio-split-debug .studio-workbench {gap:0; min-width:0; background:transparent}
.shell .studio-split-debug .studio-workbench .agent-chat-builder {padding:0; border:0; border-radius:0; background:transparent; min-width:0}
.shell .studio-split-debug .agent-chat-heading {padding-bottom:12px; border-color:var(--border)}
.shell .studio-test-version .select-control {max-width:min(270px,100%)}
.shell .studio-test-version .select-trigger {font-size:12px; min-height:32px; color:var(--muted)}
.shell .studio-split-debug .studio-run-column {width:100%; min-width:0}
.shell .studio-split-debug .studio-conversation-empty {gap:12px; padding:28px 12px}
.shell .studio-split-debug .studio-conversation-empty > .ui-icon {background:transparent; color:#7a8a9c; width:25px; height:25px; padding:8px}
.shell .studio-split-debug .studio-conversation-empty h2 {font-size:16px; line-height:1.45; font-weight:600; letter-spacing:-.02em}
.shell .studio-split-debug .studio-starter-question {border:0; background:transparent; border-radius:0; padding:8px 0; color:var(--accent); font-size:12px; line-height:1.65; width:min(100%,360px)}
.shell .studio-split-debug .studio-starter-question .ui-icon {color:var(--accent); background:transparent}
.shell .studio-split-debug .agent-chat-composer {border:1px solid #d5dee8; border-radius:8px; background:#f8f9fb; padding:12px; box-shadow:none}
.shell .studio-split-debug .agent-chat-composer:focus-within {border-color:#829ab5; box-shadow:none}
.shell .studio-split-debug .agent-chat-composer > textarea {padding:8px 3px 12px; font-size:13px; line-height:1.65; min-height:56px; background:transparent; border:0}
.shell .studio-split-debug .agent-chat-controls {padding-top:6px}
.shell .studio-split-debug .agent-chat-controls .select-trigger {font-size:11px; color:var(--muted)}
.shell .studio-split-debug .agent-chat-send {width:34px; height:34px; min-height:34px; padding:0; border-radius:6px; background:var(--action); border:0; color:#fff}
.shell .studio-split-debug .agent-chat-send:disabled {background:#e6ebf1; color:#738092; opacity:1}
@container studio-build (min-width:1200px) {
  .shell .studio-split-build > :is(.studio-split-header,.studio-split-section-bar,.studio-config-embedded) {max-width:1920px}
  .shell .studio-config-embedded .agent-config-column {grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; column-gap:32px}
  .shell .studio-config-embedded .agent-config-column > :is(.agent-config-disclosure,.studio-attachment-section) {grid-column:1/-1}
  .shell .studio-config-embedded .agent-config-column > .agent-config-section {align-self:stretch; align-content:start}
  .shell .studio-config-embedded .studio-attachments {grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; column-gap:32px}
  .shell .studio-config-embedded .studio-attachments > .studio-attachment-section {border-bottom:0; padding-bottom:0}
}
.shell .studio-workbench .agent-chat-user {background:#edf2f8; border-radius:10px; font-size:13px}
.shell .agent-chat-reply {font-size:13px; line-height:1.7}
.shell .agent-chat-attachments {list-style:none; margin:0; padding:0; max-height:min(180px,24dvh); overflow:auto; overscroll-behavior:contain}
.shell .agent-chat-attachments > li {display:grid; grid-template-columns:minmax(0,1fr) 32px; align-items:start; gap:8px; border-bottom:1px solid var(--border); padding:4px 0}
.shell .agent-chat-attachments details {border:0; margin:0; padding:0; min-width:0}
.shell .agent-chat-attachments summary {display:flex; align-items:center; gap:8px; min-height:32px; padding:4px; cursor:pointer; font-size:12px}
.shell .agent-chat-attachments summary > .ui-icon {flex:none; width:16px; height:16px; color:var(--muted)}
.shell .agent-chat-attachments summary > span {min-width:0; overflow-wrap:anywhere}
.shell .agent-chat-attachments summary > small {margin-inline-start:auto; flex:none; color:var(--muted); font-size:11px}
.shell .agent-chat-attachments pre {margin:8px 4px; padding:8px; max-height:120px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; background:var(--canvas); border:0}
.shell .agent-chat-attachments .icon-button {width:32px; height:32px; min-height:32px; padding:0}
.shell .agent-chat-attachments .icon-button > span {display:none}
.shell .agent-composer-add {color:var(--muted)}
.shell .agent-chat-composer .studio-run-notice {white-space:pre-wrap; overflow-wrap:anywhere}
@media (pointer:coarse) {
  .shell .agent-composer-add, .shell .agent-chat-attachments .icon-button {width:44px; height:44px; min-height:44px}
  .shell .agent-chat-attachments > li {grid-template-columns:minmax(0,1fr) 44px}
}
.shell .agent-overview {gap:20px}
.shell .agent-overview .panel {border-radius:0}
.shell .agent-overview .agent-overview-metrics {border-block:1px solid var(--border); background:transparent; border-radius:0; gap:0}
.shell .agent-overview-metrics > div {padding:18px; background:transparent; border-inline-end:1px solid var(--border); gap:8px}
.shell .agent-overview-metrics > div:last-child {border-inline-end:0}
.shell .agent-overview-metrics strong {font-size:24px; font-weight:620}
.shell .agent-overview :is(small,.agent-overview-note), .shell .agent-overview table {font-size:12px}
.shell .agent-overview-run-identity a {font-weight:550; text-decoration:none}
.shell .agent-overview-run-identity a:hover {text-decoration:underline; text-underline-offset:3px; color:var(--accent)}
.shell .agent-overview-runs li {padding:13px 0; gap:7px}
.shell .agent-overview-bars .other, .shell .agent-overview-legend span::before {background:#547ba0}
.shell .legend {font-size:11px}
.shell .legend i, .shell .stack i {background:#547ba0}
.shell .legend i:nth-of-type(2), .shell .stack i:first-child {background:#c97978}

dialog {border-color:var(--border); border-radius:10px; color:var(--ink); box-shadow:0 18px 70px #142b3730}
dialog::backdrop {background:#142b376b}
dialog .modal-head {padding:22px 24px; border-color:var(--border)}
dialog :is(input,textarea,.select-trigger,.button) {font-size:13px; border-radius:6px}
dialog .button.primary {background:var(--action); border-color:transparent; color:#fff}
dialog .pill.success {background:#e5f2ea; color:#2b6b50}
.select-menu {border-color:var(--border); border-radius:10px; box-shadow:0 10px 32px #1523331c}
.select-option {font-size:13px}
.select-option[aria-selected="true"] {background:var(--accent-soft); color:var(--accent-dark)}
.account-popover {border-color:var(--border); border-radius:8px; box-shadow:0 10px 32px #1523331c}
:is(.shell,dialog) .select-trigger[aria-expanded="true"]:not([aria-invalid="true"]),
.shell .studio-config-embedded .select-trigger[aria-expanded="true"]:not([aria-invalid="true"]) {border-color:#829ab5; background:#f0f4f9}
:is(.shell,dialog) .select-trigger[aria-invalid="true"],
.shell .studio-config-embedded .select-trigger[aria-invalid="true"] {border-color:#a23e3d; background:#fff4f3; outline-color:#a23e3d}

/* Evaluation workspace: shared content edges, stronger action and status cues. */
.shell .experiments-column {
  --ink:#172b45; --muted:#455973; --border:#cbd5e3;
  --accent:#3159d8; --accent-dark:#2545af; --accent-soft:#edf2ff; --action:#3159d8;
  width:100%; max-width:none; min-width:0; color:var(--ink);
}
.shell .module-heading.experiments-column {align-items:center}
.shell .experiments-column .button.primary:hover:not(:disabled) {background:#2545af}
.shell .experiments-column .button.primary:focus-visible {outline-color:#3159d8}
.shell .experiments-column .panel {border:0; border-top:1px solid var(--border); border-radius:0; padding:20px 0 0}
.shell .experiment-results > h2 {display:flex; align-items:center; gap:10px; color:var(--ink)}
.shell .experiment-results > h2 > .ui-icon {width:18px; height:18px; color:#3159d8; flex:none}
.shell .experiment-results > [role="status"] {font-size:12px; color:var(--muted); margin-top:6px}
.shell .experiment-results > [role="status"]:empty {display:none}
.shell .experiments-column .benchmark-run {border:0; border-bottom:1px solid #cbd5e3; border-radius:0; background:transparent; margin:0; padding-inline:16px; transition:background-color 150ms ease-out}
.shell .experiments-column .benchmark-run > summary {margin-inline:-16px; padding:15px 16px; color:var(--ink); min-width:0}
.shell .experiments-column .benchmark-run > summary > span:first-child {min-width:0; overflow-wrap:anywhere; font-size:13px; font-weight:600}
.shell .experiments-column .benchmark-run > summary small {font-size:12px; line-height:1.6; color:var(--muted)}
.shell .experiments-column .benchmark-run > summary:hover {background:#f3f6ff}
.shell .experiments-column .benchmark-run[open] {border-color:#cbd5e3}
.shell .experiments-column .benchmark-run[open] > summary {background:transparent; color:#234bbd}
.shell .experiments-column .benchmark-run[open] > summary::before {border-color:#3159d8}
.shell .experiments-column :is(.benchmark-run,.benchmark-case) > summary:focus-visible {outline:2px solid #3159d8; outline-offset:-3px}
.shell .experiments-column .pill {font-size:11px; font-weight:600; line-height:1.5; border:1px solid #d3dce8; background:#f0f3f8; color:#435773; gap:6px; padding:3px 8px; font-variant-numeric:tabular-nums}
.shell .experiments-column .pill.info {background:#e9efff; border-color:#b8caff; color:#234bbd}
.shell .experiments-column .pill.info::before {content:""; width:6px; height:6px; border-radius:50%; background:currentColor; flex:none}
.shell .experiments-column .pill.success {background:#e5f5ec; border-color:#aad9bd; color:#17633d}
.shell .experiments-column .pill.error {background:#fff0f0; border-color:#edb7bb; color:#b02e39}
.shell .experiments-column .pill.warning {background:#fff4dc; border-color:#e8cc88; color:#805310}
.shell .experiments-column .benchmark-case[open] {background:transparent; border-radius:0}
.shell .experiments-column .benchmark-timeline {border-color:#b5c8f3}
.shell .experiments-column .benchmark-run pre {background:#f3f6fb; border-color:#cbd5e3; color:#203853}
@media (max-width:540px) {
  .shell .module-heading.experiments-column {align-items:flex-start}
  .shell .experiments-column .benchmark-run > summary {margin-inline:-10px; padding-inline:10px}
}
@media (prefers-reduced-motion:reduce) {
  .shell .experiments-column .benchmark-run {transition:none}
}

@media (min-width:1100px) {
  .shell > main:has(> #platform-content:not([hidden]) > .studio-split) {display:flex; flex-direction:column; height:100dvh; overflow:hidden}
  .shell > main:has(> #platform-content:not([hidden]) > .studio-split) > .top {position:relative; flex:none}
  .shell #platform-content:has(> .studio-split) {flex:1; min-height:0; margin:0; overflow:hidden}
  .shell .studio-split {height:100%; min-height:0; grid-template-rows:minmax(0,1fr)}
  .shell .studio-split:has(.studio-split-debug:not([hidden])) {grid-template-columns:clamp(var(--studio-build-min),var(--studio-build-width,40%),calc(100% - var(--studio-debug-min))) minmax(0,1fr)}
  .shell .studio-split-resizer {display:block}
  .shell .studio-split-build {height:100%; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable}
  .shell .studio-split:has(> .studio-split-debug:not([hidden])) > .studio-split-build {border-inline-end:1px solid var(--border)}
  .shell .studio-split-debug:not([hidden]) {position:static; height:100%; min-height:0; overscroll-behavior:contain}
}
@media (min-width:681px) {
  .shell.sidebar-collapsed {grid-template-columns:68px minmax(0,1fr)}
  .shell.sidebar-collapsed .sidebar {padding-inline:10px}
  .shell.sidebar-collapsed .sidebar-header {margin-inline:0; justify-content:center}
  .shell.sidebar-collapsed .sidebar .nav {padding-inline:0; justify-content:center}
  .shell.sidebar-collapsed .sidebar .nav-label {height:25px; overflow:hidden; color:transparent; padding-inline:0; margin-top:24px}
  .shell.sidebar-collapsed .sidebar .workspace-nav-label {margin-top:0}
  .shell.sidebar-collapsed .nav-label::after {border-color:var(--rail-line)}
  .shell.sidebar-collapsed .sidebar-foot {display:none}
}
@media (max-width:1099px) {
  .shell .studio-split-debug {min-height:520px; border-top:1px solid var(--border)}
  .shell .studio-split-header h1 {font-size:22px}
  .shell .studio-split .studio-workbench .agent-chat-builder {min-height:420px}
}
@media (max-width:1100px) {
  .studio-launch-columns, .shell .studio-launch-agent {grid-template-columns:minmax(0,1fr) 170px 18px; column-gap:18px}
  .studio-launch-columns > :nth-child(2), .shell .studio-launch-agent-model {display:none}
}
@media (max-width:900px) {
  .shell .content {padding:24px}
}
@media (max-width:800px) {
  .shell .provider-card:nth-child(2n+1) {border-inline-start:0}
  .shell .provider-card:nth-child(n+3) {border-top:1px solid var(--border)}
  .shell .metric:nth-child(2n+1) {border-inline-start:0}
  .shell .metric:nth-child(n+3) {border-top:1px solid var(--border)}
}
@media (max-width:680px) {
  .shell {display:block}
  .shell .sidebar {height:auto; position:static; padding:16px; border:0; overflow:visible}
  .shell .sidebar-header {margin:0; min-height:32px}
  .shell .sidebar .brand {font-size:17px}
  .shell .sidebar .menu-toggle {background:#293c50; color:#edf2f7; border-color:var(--rail-line); min-height:34px; padding:6px 10px; font-size:12px}
  .shell .sidebar nav {padding-bottom:4px}
  .shell .sidebar.menu-open nav {margin-top:20px}
  .sidebar-foot {display:none}
  .shell .top {min-height:52px; padding:8px 16px; gap:10px}
  .shell .top-location {flex:1; min-width:0}
  .shell .header-actions {width:auto; flex:none}
  .shell .top-location #agent-switcher {max-width:100%}
  .shell .content {padding:20px 16px 32px}
  .shell .ink-launchpad {gap:22px}
  .shell .ink-launchpad .studio-launch-header {padding:0; gap:18px; align-items:flex-start; flex-wrap:wrap}
  .shell .ink-launchpad h1 {font-size:24px}
  .shell .studio-launch-header p {font-size:12px; margin-top:6px}
  .shell .studio-launch-header > .button {width:auto; min-height:36px}
  .studio-launch-toolbar {gap:12px; margin-bottom:16px}
  .shell .studio-launch-toolbar > input {width:100%; font-size:16px; min-height:40px}
  .studio-launch-filters {width:100%}
  .shell .studio-launch-filter {min-height:38px}
  .studio-launch-columns {display:none}
  .shell .studio-launch-agent-list {gap:0; border-radius:0}
  .shell .studio-launch-agent {grid-template-columns:minmax(0,1fr) 18px; gap:12px; padding:18px 16px; min-height:0}
  .shell .studio-launch-agent-identity {grid-column:1; grid-row:1}
  .shell .studio-launch-agent-identity .agent-avatar {width:32px; height:32px}
  .studio-launch-agent-name {font-size:13px}
  .studio-launch-agent-description {-webkit-line-clamp:2}
  .shell .studio-launch-agent-release {display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; grid-column:1; grid-row:2; padding-left:44px}
  .studio-launch-release-item {grid-template-columns:auto minmax(0,1fr); gap:10px}
  .shell .studio-launch-agent-release small {max-width:100%; font-size:12px}
  .studio-launch-agent-open {grid-column:2; grid-row:1/3}
  .shell .studio-split {gap:0}
  .shell .studio-split-build {padding:20px 16px; min-height:0}
  .shell .studio-split-header {grid-template-columns:minmax(0,1fr); gap:12px}
  .shell .studio-split-header h1 {font-size:22px}
  .shell .studio-split-header > button {justify-self:start}
  .shell .studio-split-section-bar {gap:10px; margin-bottom:20px}
  .shell .studio-config-embedded :is(input,textarea,.select-trigger) {font-size:16px}
  .shell .studio-split-debug {padding:16px; min-height:540px}
  .shell .studio-split-debug .agent-chat-composer > textarea {font-size:16px}
  .shell .studio-split-debug .studio-workbench .agent-chat-builder {min-height:440px}
  .shell .registry-toolbar {padding:14px 0}
  .shell .provider-card {border-inline-start:0; border-top:1px solid var(--border)}
  .shell .provider-card:first-child {border-top:0}
  .shell .registry-table :is(td,th) {padding-inline:12px}
  .shell .agent-overview-metrics > div {padding:14px}
  .shell .metric {padding:16px}

  dialog .modal-head {padding:18px}
}
@media (prefers-reduced-motion:reduce) {
  button, summary, a, input, textarea {transition:none}
}

/* Recorded commands and outputs share one ordered, line-separated timeline. */
.shell .benchmark-execution-log {margin-top:16px}
.shell .benchmark-execution-log > summary {font-weight:600; padding:8px 0; color:var(--ink)}
.shell .benchmark-log-note {font-size:12px; line-height:1.65; color:var(--muted); max-width:80ch; margin:4px 0 12px}
.shell .benchmark-log-steps {margin:0; padding:0 0 0 28px; list-style:decimal; min-width:0}
.shell .benchmark-log-steps > li {padding:0; border-bottom:1px solid var(--border); min-width:0}
.shell .benchmark-log-steps > li::marker {color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums}
.shell .benchmark-log-steps > li > details {border:0; padding:0; min-width:0}
.shell .benchmark-log-action {display:grid; grid-template-columns:10px minmax(0,1fr) auto; gap:5px 10px; align-items:start; cursor:pointer; list-style:none; padding:12px 0; min-width:0}
.shell .benchmark-log-action::-webkit-details-marker {display:none}
.shell .benchmark-log-action::before {content:""; grid-column:1; grid-row:1; width:5px; height:5px; margin-top:7px; border:solid var(--muted); border-width:0 1.5px 1.5px 0; transform:rotate(-45deg)}
.shell details[open] > .benchmark-log-action::before {transform:rotate(45deg)}
.shell .benchmark-log-action > .pill {grid-column:3; grid-row:1; white-space:nowrap}
.shell .benchmark-log-title {grid-column:2; grid-row:1; min-width:0; font-size:12px; line-height:1.65; font-weight:600; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.shell code.benchmark-log-title {font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:500}
.shell :is(.benchmark-log-meta,.benchmark-log-preview) {grid-column:2/-1; min-width:0; font-size:11px; line-height:1.65; color:var(--muted); overflow-wrap:anywhere}
.shell .benchmark-log-preview {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:12px}
.shell .benchmark-log-steps .benchmark-log-payload {padding-left:20px; margin:4px 0 12px; min-width:0}
.shell .benchmark-log-steps .benchmark-log-payload > h4 {font-size:12px; font-weight:600}
.shell .benchmark-log-steps pre {white-space:pre-wrap; overflow-wrap:anywhere; max-width:100%; max-height:280px; overflow:auto; padding:12px; background:#f5f7fb; color:var(--ink); font-size:12px}
.shell .benchmark-runner-events {border:0; margin-top:12px; padding:0}
.shell .benchmark-runner-events > summary {font-size:12px; color:var(--muted); padding:8px 0}
.shell .benchmark-log-action:focus-visible {outline:2px solid var(--accent); outline-offset:-2px}
@media (max-width:680px) {
  .shell .benchmark-log-steps {padding-left:22px}
  .shell .benchmark-log-action {column-gap:7px}
}

.shell .benchmark-log-phase {display:grid; gap:4px; padding:12px 0; font-size:12px}
.shell .benchmark-log-phase small {color:var(--muted); font-size:11px}

/* Verdict first, supporting execution evidence second. Keep a shared reading edge. */
.shell .benchmark-verdict {max-width:960px; padding:10px 0 18px; margin-bottom:14px; border-bottom:1px solid var(--border); min-width:0}
.shell .benchmark-verdict h4 {font-size:14px; line-height:1.5; margin:0 0 6px; color:var(--ink)}
.shell .benchmark-verdict[data-outcome="passed"] h4 {color:#17633d}
.shell .benchmark-verdict[data-outcome="failed"] h4 {color:#b02e39}
.shell .benchmark-verdict-reason {font-size:13px; line-height:1.65; margin:0 0 6px; max-width:75ch}
.shell .benchmark-verdict-note {font-size:12px; line-height:1.65; color:var(--muted); max-width:80ch; margin:4px 0 8px}
.shell .benchmark-evidence-missing {font-size:12px; line-height:1.65; max-width:80ch; color:#805310; margin:10px 0}
.shell .benchmark-verdict-source {display:block; font-size:11px; color:var(--muted); margin:10px 0 0}
.shell .benchmark-test-groups {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; margin:14px 0 6px}
.shell .benchmark-test-group {min-width:0; padding:12px 0; border-top:1px solid var(--border)}
.shell .benchmark-test-heading {display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; font-size:12px; line-height:1.6}
.shell .benchmark-test-heading > span {font-variant-numeric:tabular-nums; white-space:nowrap}
.shell .benchmark-test-unmet {color:#b02e39; font-weight:600}
.shell .benchmark-test-met {color:#17633d; font-weight:600}
.shell .benchmark-test-group h5 {font-size:12px; color:#b02e39; margin:12px 0 6px}
.shell .benchmark-test-names {margin:4px 0 10px; padding:0 0 0 18px; max-height:240px; overflow:auto; font-size:12px; line-height:1.7; overflow-wrap:anywhere}
.shell .benchmark-test-names code {white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px}
.shell :is(.benchmark-passed-tests,.benchmark-official-output) {border:0; padding:0; margin:8px 0 0; min-width:0}
.shell :is(.benchmark-passed-tests,.benchmark-official-output) > summary {font-size:12px; padding:6px 0; color:var(--muted)}
.shell .benchmark-official-output pre {max-height:280px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px}
.shell .benchmark-case-meta {display:flex; flex-wrap:wrap; gap:6px 16px; align-items:baseline; font-size:12px; color:var(--muted); margin:0 0 14px}
.shell .benchmark-case-meta a {color:var(--accent-dark); text-underline-offset:3px}
@media (max-width:900px) {
  .shell .benchmark-test-groups {grid-template-columns:minmax(0,1fr)}
}

/* Agent identity colors are independent of execution status colors. */
.shell .agent-avatar-trigger {display:inline-flex; flex:none; border:0; padding:0; border-radius:10px; background:transparent; cursor:pointer; color:inherit}
.shell .agent-avatar-trigger:hover .agent-avatar {outline:1px solid #6c83a4; outline-offset:2px}
.shell .agent-avatar-trigger:focus-visible {outline:2px solid var(--accent); outline-offset:4px}
.agent-color-popover {position:fixed; inset:auto; box-sizing:border-box; width:264px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; margin:0; padding:16px; border:1px solid #cbd5e3; border-radius:10px; background:#fff; color:#172b45; box-shadow:0 8px 28px #152b4526; font-size:13px}
.agent-color-header {display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px}
.agent-color-header h3 {font-size:14px; line-height:1.5; margin:0}
.agent-color-header .icon-button {min-width:28px; width:28px; height:28px; padding:5px; border:0; background:transparent; color:#455973}
.agent-color-popover :is(.agent-color-automatic,.icon-button):focus-visible {outline:2px solid #3159d8; outline-offset:2px}
.agent-color-identity {display:flex; align-items:center; gap:10px; min-width:0; margin-bottom:20px}
.agent-color-identity .agent-avatar {width:32px; height:32px; flex:none; border-radius:8px}
.agent-color-identity strong {font-size:12px; font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.agent-color-options {display:grid; grid-template-columns:repeat(4,40px); gap:14px; padding:4px; justify-content:space-between}
.agent-color-option {display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; border-radius:9px; background:var(--swatch); color:#fff; cursor:pointer}
.agent-color-option .ui-icon {width:20px; height:20px; opacity:0}
.agent-color-option[aria-pressed="true"] {outline:2px solid var(--swatch); outline-offset:3px}
.agent-color-option[aria-pressed="true"] .ui-icon {opacity:1}
.agent-color-option:hover:not(:disabled) {filter:brightness(1.12)}
.agent-color-option:focus-visible {outline:2px solid #172b45; outline-offset:4px}
.agent-color-option:disabled {cursor:wait; opacity:.6}
.agent-color-popover .agent-color-automatic {margin-top:16px; min-height:36px; padding:6px 0; width:100%; justify-content:flex-start; font-size:12px; color:#455973; border:0; background:transparent; text-align:left}
.agent-color-automatic[aria-pressed="true"] {font-weight:600; color:#244baf}
.agent-color-automatic[aria-pressed="true"]::after {content:" · Current"}
.agent-color-notice {font-size:12px; line-height:1.6; color:#8d2f3a; margin:10px 0 0; overflow-wrap:anywhere}
.agent-color-notice:empty {display:none}

.output-token-setting { display: grid; gap: 8px; min-width: 0; }
.output-token-setting > label { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 16px; }
.output-token-setting input[type="range"] { width: 100%; min-width: 0; min-height: 28px; margin: 0; padding: 0; accent-color: var(--accent); border: 0; box-shadow: none; cursor: pointer; }
.output-token-setting input[type="number"] { width: 100%; font-variant-numeric: tabular-nums; }
.output-token-bounds { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.output-token-setting > small { font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 600px) { .output-token-setting > label { grid-template-columns: minmax(0, 1fr) 116px; gap: 8px; } }

/* Studio sections share one frame and the user's debugger width and visibility. */
.shell .studio-split-section-bar {display:grid; grid-template-columns:minmax(0,1fr); align-items:center}
.shell .studio-split-tabs {min-width:0; width:100%; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--subtle) transparent}
.shell .studio-split-tabs .button {flex:none; white-space:nowrap}
.shell .studio-split-management {justify-self:end}
.shell .studio-split-management.is-inactive {visibility:hidden}
.shell .studio-resource-panel {min-width:0; max-width:1120px}
.shell .studio-resource-description {margin:0 0 24px; color:var(--muted); max-width:75ch}
.shell .studio-resource-panel .module-grid {width:100%; margin:0}
.shell .studio-resource-panel .memory-panel {max-width:none}
@container studio-build (min-width:800px) {
  .shell .studio-split-section-bar {grid-template-columns:minmax(0,1fr) auto}
}

.shell .studio-split-tabs .button[aria-pressed="true"],
.shell .studio-split-tabs .button[aria-pressed="true"]:hover {color:var(--accent-dark); background:transparent; border-bottom:2px solid var(--accent)}
.shell .studio-resource-panel .agent-knowledge-library {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px}
.shell .studio-resource-panel .agent-knowledge-library > .release-entry {grid-column:1/-1; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; overflow-wrap:anywhere}
.shell .studio-resource-panel .agent-knowledge-library > .release-entry > .button {justify-self:end; margin-top:0}
@container studio-build (max-width:800px) {
  .shell .studio-resource-panel .environment-browser {grid-template-columns:minmax(0,1fr); gap:24px; padding-top:20px}
  .shell .studio-resource-panel .environment-navigation {display:none}
  .shell .studio-resource-panel .environment-mobile-choice {display:grid; margin:0; max-width:100%}
  .shell .studio-resource-panel .environment-content {border-inline-start:0; padding-inline-start:0}
}
@container studio-build (max-width:600px) {
  .shell .studio-resource-panel .environment-header {flex-direction:column; gap:16px}
  .shell .studio-resource-panel .environment-publish-actions {justify-items:start; max-width:100%; gap:6px}
  .shell .studio-resource-panel .environment-publish-actions small {text-align:left}
  .shell .studio-resource-panel .environment-current-release {padding:16px; flex-direction:column; gap:16px}
  .shell .studio-resource-panel .environment-version {align-items:flex-start; flex-direction:column; gap:12px}
  .shell .studio-resource-panel .environment-version .section-actions {justify-content:flex-start; max-width:100%}
  .shell .studio-resource-panel .agent-knowledge-library {grid-template-columns:minmax(0,1fr); align-items:start}
  .shell .studio-resource-panel .agent-knowledge-library > .button {justify-self:start}
  .shell .studio-resource-panel .agent-knowledge-library > .release-entry {grid-template-columns:minmax(0,1fr)}
  .shell .studio-resource-panel .agent-knowledge-library > .release-entry > .button {justify-self:start}
}

.shell .mmmu-case-content {max-width:960px; min-width:0; overflow-wrap:anywhere; padding:12px 0}
.shell .mmmu-images {display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; margin:16px 0}
.shell .mmmu-images figure {margin:0; max-width:100%; min-width:0}
.shell .mmmu-images img {display:block; width:auto; height:auto; max-width:100%; max-height:480px; object-fit:contain; background:#fff}
.shell .mmmu-images figcaption {font-size:11px; color:var(--muted); margin-top:6px}
.shell .mmmu-options {list-style:none; padding:0; line-height:1.8}

.shell .studio-split-sessions {max-width:1120px}
.shell .studio-trace-heading {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px}
.shell .studio-trace-heading h2 {margin:0}
.shell .studio-trace-heading .section-actions {display:flex; flex-wrap:wrap; gap:4px}
.shell .studio-trace-heading .icon-button > span {display:none}
.shell .studio-trace-overview .agent-overview-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.shell .studio-trace-overview .agent-overview-metrics > div {padding:12px; gap:6px; border-inline-end:0}
.shell .studio-trace-overview .agent-overview-metrics strong {font-size:20px}
.shell .studio-trace-breakdown > summary {cursor:pointer; font-weight:600}
.shell .studio-trace-overview .agent-overview-legend span:last-child::before {background:#c95166}
@container studio-build (max-width:480px) {.shell .studio-trace-overview .agent-overview-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The benchmark, saved evaluation and selected case follow the dataset browsing order. */
.shell .experiments-column {width:min(100%,1600px); margin-inline:auto}
.shell .experiment-results {padding-top:0!important; border-top:0!important}
.shell .experiment-results > h2 {font-size:14px; margin-bottom:20px}
.shell .experiment-benchmark {margin:0 0 24px; padding-top:20px}
.shell .experiment-benchmark-body {min-width:0; padding-top:24px}
.shell .experiment-run-choice {display:grid; gap:8px; width:100%; max-width:760px; margin-bottom:24px; font-size:12px; font-weight:600}
.shell .experiment-run-choice .select-trigger {white-space:normal; text-align:left; overflow-wrap:anywhere; font-weight:400}
.shell .experiment-run-choice .select-trigger span {white-space:normal}
.shell .experiments-column .experiment-benchmark .benchmark-run {padding:0; border:0; min-width:0}
.shell .experiment-benchmark :is(.benchmark-run,.benchmark-case) > summary[hidden] {display:none!important}
.shell .experiment-run-heading {display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px}
.shell .experiment-run-heading h3 {font-size:18px; line-height:1.5; margin:0; min-width:0; overflow-wrap:anywhere}
.shell .experiment-run-metadata {display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px 20px; font-size:12px; line-height:1.6; margin:0 0 20px}
.shell .experiment-run-metadata dt {color:var(--muted)}
.shell .experiment-run-metadata dd {margin:0; overflow-wrap:anywhere}
.shell .experiment-case-browser {margin-top:24px}
.shell .experiment-case-browser .benchmark-case {margin:0; border:0; padding:0 8px 12px 0; background:transparent}
.shell .experiment-case-browser .benchmark-verdict {margin:0; padding:0; border:0; max-width:none}
.shell .experiment-case-browser .benchmark-test-groups {grid-template-columns:minmax(0,1fr)}
.shell .experiment-case-browser .benchmark-verdict p {margin-bottom:12px}
.shell .experiment-case-browser .benchmark-case-meta {margin-top:24px; padding-top:16px; border-top:1px solid var(--border)}
.shell .experiment-answer {min-width:0}
.shell .experiment-answer > * + * {margin-top:16px}
.shell .experiment-answer .mmmu-options {margin-top:0}
.shell .experiment-case-browser .mmmu-images {margin-top:16px}
.shell .experiment-case-browser .mmmu-images img {object-fit:contain}
.shell .evaluation-runners > summary {cursor:pointer; color:var(--muted); font-size:13px; padding-block:16px; border-top:1px solid var(--border)}
@media(max-width:540px) {
  .shell .experiment-run-metadata {grid-template-columns:minmax(0,1fr); gap:4px}
  .shell .experiment-run-metadata dd {margin-bottom:8px}
}

/* Studio artifact toolbar sizing. */
.shell .studio-split-debug {container-type:inline-size}
@container (max-width:340px) {
  .shell .studio-split-debug-header .studio-debug-new-chat {width:32px; padding:6px; flex:none}
  .shell .studio-split-debug-header .studio-debug-new-chat > span {display:none}
}

/* Artifacts share the workspace with the conversation and collapse independently. */
.shell .studio-split > .studio-artifacts {padding:24px; min-height:0; overflow:auto; overscroll-behavior:contain; border-top:1px solid var(--border)}
@media (min-width:1100px) and (max-width:1359px) {
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) {grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) > .studio-split-build {grid-row:1 / -1}
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) > .studio-split-debug {grid-column:2; grid-row:1}
  .shell .studio-split > .studio-artifacts {grid-column:2; grid-row:2; height:100%}
}
@media (min-width:1360px) {
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) {--studio-artifact-width:clamp(320px,24vw,480px); grid-template-columns:clamp(var(--studio-build-min),var(--studio-build-width,40%),calc(100% - var(--studio-debug-min) - var(--studio-artifact-width))) minmax(0,1fr) var(--studio-artifact-width)}
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) > .studio-split-resizer {left:clamp(var(--studio-build-min),var(--studio-build-width,40%),calc(100% - var(--studio-debug-min) - var(--studio-artifact-width)))}
  .shell .studio-split:has(> .studio-artifacts:not([hidden])) > .studio-split-debug {padding-inline:24px}
  .shell .studio-split > .studio-artifacts {grid-column:3; grid-row:1; height:100%; border-top:0; border-inline-start:1px solid var(--border)}
}
@media (pointer:coarse) {
  .studio-artifact-panel-header .icon-button {width:44px; height:44px; min-height:44px}
}
@media (pointer:coarse) {
  @container (max-width:340px) {
    .shell .studio-split-debug-header .studio-debug-new-chat {width:44px}
  }
}


/* Agent directory and version context reuse the existing working surfaces. */
.shell .registry-intent {margin:0; padding:8px 0 0; color:var(--muted); font-size:12px}
.shell .registry-releases {display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:8px; min-width:0}
.shell .registry-release {display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100%}
.shell .registry-release small {max-width:28ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:11px}
.shell .registry-toolbar .select-control {max-width:100%}
.shell .studio-resource-panel[aria-label="Evaluations"] .module-grid {grid-template-columns:minmax(0,1fr)}
.shell .evaluation-version-summary {max-width:75ch; font-size:12px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere}
.shell .evaluation-destinations {margin-top:12px; justify-content:flex-start; flex-wrap:wrap}
.shell .environment-evaluation-result {font-size:12px; color:var(--muted); margin-top:12px}
.shell .environment-version-actions {justify-content:flex-start; gap:6px 12px; flex-wrap:wrap; margin-top:12px}
.shell .environment-version-actions .button {font-size:12px; min-height:32px}
.shell .publish-version-review {padding-block:16px; border-block:1px solid var(--border); display:grid; gap:8px; min-width:0}
.shell .publish-version-review h3 {margin:0; font-size:14px}
.shell .publish-version-review p {margin:0; font-size:12px; line-height:1.7; overflow-wrap:anywhere}
.shell .publish-version-review .button {justify-self:start}
@media(max-width:680px) {
  .shell .registry-release {flex-wrap:wrap; gap:3px 6px}
  .shell .registry-release small {max-width:22ch}
}
.shell .evaluation-benchmark-entry {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; padding:16px 0 24px}
.shell .evaluation-benchmark-entry p {flex:1 1 320px; margin:0; max-width:70ch; color:var(--muted); font-size:12px; line-height:1.7}
.shell .studio-resource-panel[aria-label="Evaluations"] {max-width:960px}
.shell .studio-resource-panel[aria-label="Evaluations"] .module-form {max-width:760px}


/* Usage and development share Agent identity, with separate task navigation. */
.shell .workspace-mode-switch {display:flex; gap:2px; padding:3px; margin:0 0 18px; border:1px solid var(--border); border-radius:6px}
.shell .workspace-mode-switch .button {flex:1; min-width:0; min-height:34px; padding:6px 8px; border:0; color:var(--rail-text)}
.shell .workspace-mode-switch .button[aria-pressed="true"] {background:var(--surface); color:var(--accent-dark); font-weight:600}
.shell[data-workspace-mode="use"] [data-mode-navigation="develop"],
.shell[data-workspace-mode="develop"] [data-mode-navigation="use"] {display:none}
.shell[data-workspace-mode="use"] #sidebar-agent-context:not([hidden]) ~ [data-module="current-agent"] {display:none}
.shell[data-workspace-mode="use"] #sidebar-agent-context:not([hidden]) + [data-module="console-agents"] {display:flex}
.shell .agent-usage-directory {width:100%; max-width:1100px; margin:0 auto; padding:12px 0}
.agent-usage-directory > h1 {margin:0 0 8px}
.agent-usage-directory > p {margin:0 0 24px; color:var(--muted)}
.agent-usage-directory > input {width:100%; max-width:440px; margin-bottom:24px}
.agent-usage-row {display:flex; align-items:center; gap:24px; padding:24px 0; border-top:1px solid var(--border)}
.agent-usage-identity {display:flex; flex:1; min-width:0; align-items:flex-start; gap:14px}
.agent-usage-identity > div {min-width:0}
.agent-usage-identity .agent-avatar {flex-shrink:0}
.agent-usage-identity .agent-name {text-align:left; overflow-wrap:anywhere}
.agent-usage-description {margin:6px 0; color:var(--muted); max-width:70ch; overflow-wrap:anywhere}
.agent-usage-releases {margin:6px 0 0; font-size:12px; color:var(--muted)}
.agent-usage-row > .button {flex-shrink:0}
@media (min-width:681px) {
  .shell.sidebar-collapsed .workspace-mode-switch {flex-direction:column; margin-bottom:14px; padding:2px}
  .shell.sidebar-collapsed .workspace-mode-switch .button {padding:6px 2px; font-size:12px}
}
@media (max-width:680px) {
  .shell .workspace-mode-switch {width:180px; margin:16px 0 0}
  .agent-usage-row {align-items:flex-start; flex-wrap:wrap; gap:14px}
  .agent-usage-row > .button {margin-left:62px}
}
