@font-face {
  font-family: Inter;
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171c2c;
  background: #f7f8fc;
  font-size: 12.6px;
  line-height: 1.55;
  --page-title-size: 21.6px;
  --control-height: 34px;
  --compact-control-height: 30px;
  --panel-padding: 16px;
  --workspace-gap: 16px;
  --workspace-header-height: 48px;
  --ink: #171c2c;
  --muted: #566176;
  --subtle: #69758b;
  --border: #d8dee8;
  --surface: #fff;
  --canvas: #f5f7fa;
  --accent: #3747ed;
  --accent-dark: #2837c7;
  --accent-soft: #edf0ff;
  --shadow: 0 1px 2px #17234508;
}

* {box-sizing: border-box}
[hidden] {display: none !important}
body {margin: 0}
h1, h2, h3, p {margin: 0}
h1 {font-size: clamp(27px, 3.6vw, 36px); line-height: 1.13; font-weight: 720; letter-spacing: -.055em}
h2 {font-size: 15.3px; line-height: 1.35; font-weight: 680; letter-spacing: -.018em}
h3 {font-size: 13.5px; line-height: 1.45; font-weight: 670}
p {color: var(--muted)}
button, input, select, textarea {font: inherit}
button, summary {cursor: pointer}
button:disabled {cursor: default; opacity: .55}
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
code, pre {font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace}
pre {
  margin: 10px 0 0;
  border: 1px solid #e8eaf3;
  border-radius: 9px;
  padding: 14px;
  background: #f7f8fc;
  color: #2d3754;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10.8px;
}

.shell {display: grid; grid-template-columns: 227px minmax(0, 1fr); min-height: 100dvh}
.shell > main {min-width: 0}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 13px 14px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.sidebar-header {display: flex; justify-content: space-between; align-items: center; margin: 0 5px 26px}
.brand {display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; letter-spacing: -.043em; white-space: nowrap}
.mark {display: block; width: 37px; height: 37px; flex: none}
.menu-toggle {display: none !important}
.nav-label {color: var(--subtle); padding: 0 11px 5px; font-size: 9.9px; font-weight: 660; letter-spacing: .025em}
.nav-label.group {margin-top: 18px}
.nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  margin: 2px 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4d596f;
  text-align: left;
  font-size: 11.7px;
  font-weight: 550;
}
.nav:hover {background: #f4f6fc; color: var(--ink)}
.nav.active {background: var(--accent-soft); border-color: #e3e8ff; color: #2f40c6; font-weight: 680}
.ui-icon {width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round}
.button .ui-icon {width:16px; height:16px}
.icon-button .ui-icon {width:19px; height:19px}
.nav .ui-icon {width:19px; height:19px}
.chart-empty {min-height:174px; display:grid; place-content:center; justify-items:center; gap:8px; color:var(--muted)}
.chart-empty .ui-icon {width:24px; height:24px; color:var(--subtle)}

.top {
  min-height: var(--workspace-header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 5px 30px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb {color: var(--subtle); font-size: 11.7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.breadcrumb b {padding: 0 7px; color: #91a0b7; font-weight: 400}
.breadcrumb strong {color: var(--ink); font-weight: 650}
.header-actions {display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap}
.button, select, input, textarea {
  min-height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11.7px;
}
.button {display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 620; white-space: nowrap; box-shadow: 0 1px 1px #17234508}
.button:hover:not(:disabled) {background: #f3f5fc; border-color: #c9d0e2}
.button.primary {background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 1px 2px #1e2fbe38}
.button.primary:hover:not(:disabled) {background: var(--accent-dark); border-color: var(--accent-dark)}
.button.quiet {background: transparent; border-color: transparent; box-shadow: none; color: var(--accent-dark)}
.icon-button {width: 36px; min-height: 36px; font-size: 19.8px; line-height: 1; padding: 0}
input::placeholder, textarea::placeholder {color: #68758c}
input[type="checkbox"] {min-height: 0; accent-color: var(--accent)}
.content {width: 100%; max-width: 1320px; margin: auto; padding: 34px clamp(20px, 4vw, 52px) 48px}
.heading, .panel-head, .modal-head, .module-heading {display: flex; align-items: center; justify-content: space-between; gap: 14px}
.heading, .module-heading {margin-bottom: 23px; align-items: flex-end}
.heading p, .module-heading p {margin-top: 7px; max-width: 60ch}
.section-actions, .filters {display: flex; align-items: center; flex-wrap: wrap; gap: 8px}
.filters input[type="search"] {min-width: 170px; max-width: 100%}

.panel, .metric {background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow)}
.panel {margin-bottom: 16px; min-width: 0}
.panel-head {padding: 17px 19px}
.panel-head p {margin-top: 3px; font-size: 10.8px}
.metrics {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px}
.metric {padding: 14px 17px}
.metric span {font-size: 11.7px; color: var(--muted)}
.metric strong {display: block; margin-top: 3px; font-size: 24.3px; letter-spacing: -.045em; font-variant-numeric: tabular-nums}
.legend {display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 10.8px; color: var(--muted)}
.legend i {width: 9px; height: 9px; background: #5263f2; border-radius: 2px}
.legend i:nth-of-type(2) {background: #dc7489; margin-left: 8px}
.graph {display: flex; height: 182px; margin: 4px 20px 18px; gap: 12px}
.axis {display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; color: var(--muted); font-size: 9px; text-align: right; min-width: 22px}
.bars {flex: 1; display: grid; grid-template-columns: repeat(14,minmax(0,1fr)); gap: 3px; background: repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0f6 calc(25% - 1px),#edf0f6 25%) 0 0/100% calc(100% - 24px) no-repeat}
.day {min-width: 0; display: grid; grid-template-rows: minmax(0,1fr) 24px; text-align: center; color: var(--muted); font-size: 9px}
.stack {display: flex; flex-direction: column; justify-content: end; align-items: center}
.stack i {width: 57%; max-width: 36px; background: #5263f2}
.stack i:first-child {background: #dc7489}
.day span {padding-top: 5px; white-space: nowrap}

.table-wrap {overflow: auto; border-radius: 0 0 12px 12px}
table {width: 100%; border-collapse: collapse; text-align: left; font-size: 11.7px; white-space: nowrap}
th {font-weight: 620; background: #f8f9fc; color: var(--muted)}
td, th {padding: 11px 15px; border-top: 1px solid #edf0f6}
tbody tr:hover {background: #f9faff}
.trace {border: 0; background: none; padding: 2px 0; color: var(--accent-dark); text-align: left; font-weight: 650}
.trace:hover {text-decoration: underline}
.pill {display: inline-flex; width: max-content; align-items: center; gap: 5px; background: #edf1f9; color: #4b5772; border-radius: 99px; padding: 2px 8px; font-size: 9.9px; font-weight: 650}
.pill.success {background: #e8f6ed; color: #176747}
.pill.error {background: #fdebeb; color: #a72b43}
.pill.success::before, .pill.error::before {content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor}
.empty {text-align: center; color: var(--muted); padding: 30px}
.sr {position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden}

.module-grid {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start}
.module-panel {padding: var(--panel-padding); margin: 0}
.module-grid > .wide {grid-column: 1/-1}
.experiments-column {max-width: 72rem}
.evaluation-runners {display:grid; gap:12px; min-width:0}
.evaluation-runners .compute-resource {max-width:none}
.dataset-library {min-width: 0}
.dataset-library .module-grid {align-items:stretch}
.dataset-library > .module-grid {grid-template-columns:minmax(0,1fr); gap:36px}
.dataset-library-section {min-width:0}
.dataset-library-section-heading {display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:16px}
.dataset-library-section-heading > div {min-width:0; flex:1 1 240px}
.dataset-library-section-heading h2 {font-size:16px; line-height:1.5; margin:0 0 6px}
.dataset-library-section-heading p {font-size:12px; line-height:1.6; color:var(--muted); margin:0; max-width:68ch}
.dataset-library-section-heading > .button {flex:none}
@media(min-width:901px) {
  /* Leave room for the dataset section heading above the case browser. */
  .dataset-library-section :is(.dataset-benchmark-navigation,.dataset-benchmark-detail) {max-height:max(320px,min(900px,calc(100dvh - 420px)))}
}
.dataset-entry {min-width:0}
.dataset-entry[open] {grid-column:1/-1}
.dataset-entry > summary {display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:4px 12px; list-style:none; cursor:pointer}
.dataset-entry > summary::-webkit-details-marker {display:none}
.dataset-entry > summary::after {content:"›"; grid-column:3; grid-row:1; color:var(--muted)}
.dataset-entry[open] > summary::after {transform:rotate(90deg)}
.dataset-entry > summary .ui-icon {grid-row:1/3; color:var(--accent)}
.dataset-entry > summary strong {grid-column:2; overflow-wrap:anywhere}
.dataset-entry > summary span {grid-column:2; color:var(--muted); font-size:11px; font-weight:500}
.dataset-entry > summary:hover strong {color:var(--accent-dark)}
.dataset-actions {margin-top:12px; flex-wrap:wrap}
/* Dataset cases use the available width for selection and evidence. */
.dataset-library {width:min(100%,1600px); margin-inline:auto}
.dataset-benchmark-cases {width:100%; max-width:none; margin-top:24px}
.dataset-benchmark-cases > h3 {font-size:14px; margin:0 0 16px}
.dataset-item-browser {display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; align-items:start; border-top:1px solid var(--border); padding-top:16px; min-width:0}
.dataset-benchmark-navigation {max-height:max(320px,min(900px,calc(100dvh - 340px))); overflow:auto; min-width:0; overscroll-behavior:contain; scrollbar-width:thin; padding:2px}
.dataset-benchmark-option {display:block; width:100%; text-align:left; font:inherit; color:var(--ink); background:transparent; border:1px solid transparent; border-radius:6px; padding:12px; min-height:64px; margin-bottom:4px; cursor:pointer}
.dataset-benchmark-option small {display:block; color:var(--muted); font-size:11px; line-height:1.5; margin-bottom:4px}
.dataset-benchmark-option strong {display:block; font-size:12px; line-height:1.5; font-weight:600; overflow-wrap:anywhere}
.dataset-benchmark-option:hover {background:var(--canvas)}
.dataset-benchmark-option[aria-selected="true"] {background:var(--accent-soft); border-color:var(--border); color:var(--accent-dark)}
.dataset-benchmark-option[aria-selected="true"] small {color:inherit}
.dataset-benchmark-option:focus-visible {outline-offset:-2px}
.dataset-benchmark-mobile-choice {display:none}
.dataset-benchmark-detail {container:dataset-case / inline-size; min-width:0; padding-inline-start:24px; border-inline-start:1px solid var(--border); max-height:max(320px,min(900px,calc(100dvh - 340px))); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin}
.dataset-benchmark-case-detail {min-width:0; padding:0 8px 12px 0}
.dataset-benchmark-case-heading {padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--border)}
.dataset-benchmark-case-heading h3 {font-size:18px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; margin:0}
.dataset-benchmark-case-meta {display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:8px; color:var(--muted); font-size:12px}
.dataset-benchmark-evidence {display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start}
.dataset-benchmark-context, .dataset-benchmark-official-tests {min-width:0}
.dataset-benchmark-evidence h4 {font-size:13px; line-height:1.5; font-weight:600; margin:0 0 8px; color:var(--ink)}
.dataset-benchmark-context > h4:not(:first-child) {margin-top:24px}
.dataset-benchmark-evidence p {line-height:1.75; font-size:13px; max-width:68ch; overflow-wrap:anywhere; margin:0}
.dataset-benchmark-tests {margin:0; padding:12px 0; border:0; border-block-start:1px solid var(--border); border-radius:0}
.dataset-benchmark-tests:last-child {border-block-end:1px solid var(--border)}
.dataset-benchmark-tests > summary {cursor:pointer; font-size:12px; line-height:1.7; min-height:24px}
.dataset-benchmark-tests[open] > summary {margin-bottom:10px}
.dataset-benchmark-tests p {font-size:12px; margin-bottom:10px}
.dataset-benchmark-test-count {margin-inline-start:8px; color:var(--muted); font-size:11px}
.dataset-benchmark-tests ul {max-height:240px; overflow:auto; margin:0; padding-inline-start:20px; overflow-wrap:anywhere; scrollbar-width:thin}
.dataset-benchmark-tests li {font-size:12px; line-height:1.75; padding-block:2px}
.dataset-benchmark-tests code {white-space:pre-wrap; overflow-wrap:anywhere}
.dataset-benchmark-source {display:inline-flex; align-items:center; gap:6px; margin-top:20px; color:var(--accent-dark); font-weight:600; font-size:12px; text-underline-offset:3px; overflow-wrap:anywhere}
.dataset-benchmark-source .ui-icon {width:14px; height:14px; flex:none}
.dataset-benchmark-configuration {margin-top:24px; border-top:1px solid var(--border); padding-top:16px}
.dataset-benchmark-configuration > summary {cursor:pointer; color:var(--muted); font-size:12px; line-height:1.6; min-height:24px}
.dataset-benchmark-case-detail dl {display:grid; grid-template-columns:120px minmax(0,1fr); gap:8px 16px; margin:12px 0 0; padding:0; font-size:12px; line-height:1.6}
.dataset-benchmark-case-detail dt {color:var(--muted)}
.dataset-benchmark-case-detail dd {margin:0; overflow-wrap:anywhere}
@container dataset-case (min-width:700px) {
  .dataset-benchmark-evidence {grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px}
}
@media(max-width:1200px) {
  .dataset-item-browser {grid-template-columns:240px minmax(0,1fr); gap:20px}
  .dataset-benchmark-detail {padding-inline-start:20px}
}
@media(max-width:900px) {
  .dataset-item-browser {grid-template-columns:minmax(0,1fr); gap:20px}
  .dataset-benchmark-navigation {display:none}
  .dataset-benchmark-mobile-choice {display:grid; margin:0; min-width:0}
  .dataset-benchmark-detail {border-inline-start:0; padding-inline-start:0; max-height:none; overflow:visible}
  .dataset-benchmark-case-detail {padding-inline-end:0}
}
@media(max-width:540px) {
  .dataset-benchmark-case-heading h3 {font-size:16px}
  .dataset-benchmark-case-detail dl {grid-template-columns:minmax(0,1fr); gap:4px}
  .dataset-benchmark-case-detail dd {margin-bottom:12px}
}
.dataset-empty {margin-top:10px}
.dataset-example-browser .dataset-benchmark-option strong {display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.dataset-example-evidence > section {min-width:0}
.dataset-example-evidence pre {white-space:pre-wrap; overflow-wrap:anywhere; margin:0}
.module-panel > h2 + p {margin-top: 5px}
.module-form {display: grid; gap: 13px; margin-top: 15px}
.module-form label {display: grid; gap: 5px; min-width: 0; font-size: 11.7px; font-weight: 620}
.module-form input, .module-form select, .module-form textarea {width: 100%; font-weight: 450}
.module-form .check-row {display:flex; align-items:center; gap:8px}
.module-form .check-row input {width:auto; margin:0}
.module-form textarea {min-height: 100px; resize: vertical}
.module-form .button, .module-result.button {justify-self: start; max-width: 100%}
.module-result.button {margin-top: 12px}
.module-form [role=status]:empty, #notice:empty {display: none}
.module-form [role=status] {font-size: 11.7px}
.key-scopes {display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; border: 1px solid var(--border); border-radius: 8px}
.key-scopes label {display: flex; align-items: center; gap: 5px}
.key-scopes input {width: auto}
.model-actions {display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0}
details {padding: 10px 0; border-bottom: 1px solid #edf0f6}
details:last-child:not(.dataset-entry) {border-bottom: 0}
summary {font-weight: 600}

.agent-panel {margin: 0}
.agent-panel header {padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px}
.agent-panel header p {font-size: 10.8px; margin-top: 2px}
.agent-list {border-top: 1px solid var(--border)}
.agent-identity {display: flex; align-items: center; gap: 11px; min-width: 0}
.agent-identity > div {min-width: 0}
.agent-identity h3, .agent-identity p {overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.agent-identity p {color: var(--subtle); font-size: 10.8px}
.agent-avatar {display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid #e0e5ff; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 690}
.agent-actions {display: flex; flex-wrap: wrap; justify-content: end; gap: 6px}
.agent-empty {display: grid; justify-items: center; text-align: center; gap: 9px; padding: 43px 20px}
.agent-empty .mark {width: 53px; height: 53px; margin-bottom: 6px}
.agent-empty p {max-width: 38ch}
.agent-empty .button {margin-top: 6px}
.agent-settings > .model-actions {margin-top: 16px}
.studio-response {padding: 14px; border-radius: 9px; background: #f4f6ff; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink)}
.studio-response.is-error {background: #fceef0; color: #8e2c43}

dialog {border: 1px solid var(--border); border-radius: 8px; padding: 0; width: min(565px,calc(100% - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); box-shadow: 0 20px 70px #151e4640}
dialog::backdrop {background: #111a3a70}
.modal-head {position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 10px var(--panel-padding); border-bottom: 1px solid var(--border)}
#modal-body {padding:var(--panel-padding)}
.welcome-content {display:grid; gap:14px; justify-items:center}
.welcome-illustration {display:block; width:100%; max-height:55dvh; object-fit:cover; border-radius:6px}
.modal-head h2 {font-size:14.4px; overflow-wrap:anywhere}
.modal-head .icon-button {width:var(--control-height); min-height:var(--control-height)}
#modal-body .module-panel {padding: 0; box-shadow: none; border: 0}
#modal-body .module-form {margin-bottom: 12px}
.clawbot-pairing {width:min(100%, 320px); margin-inline:auto}
.clawbot-pairing .button, .clawbot-pairing img {justify-self:center}
.clawbot-pairing img {max-width:100%; height:auto; image-rendering:pixelated}
.clawbot-pairing [role=status] {text-align:center}

.modal-section {margin-top: 16px}
.trace-inspector {height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; width: min(660px,100%); border-radius: 14px 0 0 14px}
.trace-meta {display: flex; gap: 7px; flex-wrap: wrap; align-items: center}
.trace-id {padding-top: 8px; font-size: 10.8px; color: var(--subtle); overflow-wrap: anywhere}

.sign-in {display: grid; grid-template-columns: minmax(320px,.93fr) minmax(0,1.07fr); min-height: 100dvh; background: var(--surface)}
.sign-in-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(28px,5vw,70px);
  background: radial-gradient(ellipse at 65% 55%,#6e7aff 0%,transparent 58%), linear-gradient(145deg,#1e2b8e,#373fe8 62%,#5248e6);
  color: white;
}
.sign-in-art::before {content: ""; position: absolute; z-index: -1; inset: 0; opacity: .23; background: radial-gradient(circle,#d0d8ff 1px,transparent 1.5px) 0 0/22px 22px; mask-image: linear-gradient(to bottom,#000,transparent 85%)}
.sign-in-art .brand {font-size: 20.7px}
.sign-in-art .mark {outline: 1px solid #ffffff55; border-radius: 11px}
.sign-in-art p {position: relative; color: #f1f2ff; font-size: clamp(18px,2.7vw,28.8px); max-width: 17ch; line-height: 1.26; letter-spacing: -.035em; font-weight: 610}
.deck-art {position: absolute; inset: 18% 4% 21%; pointer-events: none}
.deck-art i {
  position: absolute;
  inset: 24% 14% auto;
  height: 39%;
  border-radius: clamp(18px,4vw,51px);
  border: 1px solid #cad2ff86;
  transform: rotate(-24deg) skewX(16deg);
  background: linear-gradient(135deg,#bcc9ff51,#6479ff29);
  box-shadow: 0 14px 34px #14216a44, inset 0 1px #fff7;
}
.deck-art i:nth-child(2) {transform: translateY(18%) rotate(-24deg) skewX(16deg)}
.deck-art i:nth-child(3) {transform: translateY(36%) rotate(-24deg) skewX(16deg); background: linear-gradient(135deg,#f2f5ffbb,#8da0fe55)}
.deck-art i:nth-child(3)::before {content: ""; position: absolute; width: 11px; height: 11px; left: 21%; bottom: 26%; border-radius: 50%; background: #fff; box-shadow: 22px 0 #fff, 44px 0 #fff}
.sign-in-body {display: grid; place-items: center; padding: 35px clamp(22px,6vw,76px)}
.sign-in-card {width: min(100%,400px)}
.sign-in-card h1 {font-size: clamp(23.4px,3.6vw,30.6px)}
.sign-in-card > p {margin-top: 8px}
.sign-in-card .module-form {margin-top: 25px; gap: 14px}
.mobile-brand {display: none; margin-bottom: 27px}
.sign-in-card .auth-send-row {display: grid; align-items: end; grid-template-columns: minmax(0,1fr) auto; gap: 8px}
.auth-actions {display: flex; align-items: center; flex-wrap: wrap; gap: 6px}
.sign-in-card input, .sign-in-card select, .sign-in-card .button {min-height: 42px}
.sign-in-card .auth-submit {width: 100%}
.auth-form {--field-inset: 12px}
.auth-form input {padding-inline: var(--field-inset)}
.auth-method {min-width: 0; border: 0; margin: 0; padding: 0}
.auth-method legend {padding: 0; margin-bottom: 5px; font-size: 11.7px; font-weight: 620}
.auth-method-options {display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--canvas)}
.auth-method-options label {position: relative; cursor: pointer}
.auth-method-options span {display: grid; place-items: center; min-height: 34px; border: 1px solid transparent; border-radius: 5px; color: var(--muted)}
.auth-method-options input:checked + span {border-color: var(--border); background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 2px #17234510}
.auth-method-options input:focus-visible + span {outline: 2px solid var(--accent); outline-offset: -2px}
.auth-method:disabled label {cursor: default; opacity: .65}
.sign-in-card [role=status] {color: var(--muted)}
.loading {display: flex; justify-content: center; align-items: center; min-height: 105px; color: var(--muted)}
.loading-page {min-height:100dvh; display:grid; place-items:center; padding:24px}
.boot-card {width:min(100%, 320px); display:grid; justify-items:center; gap:12px; text-align:center}
#boot-screen > .boot-card {background:transparent; border:0; box-shadow:none}
.boot-card .mark {display:block; width:48px; height:48px}
.boot-status h1 {margin:0; font-size:16px; line-height:1.4}
.boot-status p {margin:6px 0 0; color:var(--muted); overflow-wrap:anywhere}
.boot-spinner {width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:boot-spin .85s linear infinite}
.boot-reload {visibility:hidden; animation:boot-reveal 0s 12s forwards}
.loading-page[data-state="error"] :is(.boot-spinner,.boot-reload) {display:none}
@keyframes boot-spin {to {transform:rotate(360deg)}}
@keyframes boot-reveal {to {visibility:visible}}
@media (prefers-reduced-motion:reduce) {.boot-spinner {animation:none}}

@media (max-width: 1000px) {
  .shell {grid-template-columns: 190px minmax(0,1fr)}
  .day:nth-child(even) span {visibility: hidden}
}
@media (max-width: 800px) {
  .module-grid {grid-template-columns: minmax(0,1fr)}
  .metrics {grid-template-columns: repeat(2,minmax(0,1fr))}
  .heading, .module-heading, .table-panel .panel-head {align-items: flex-start; flex-wrap: wrap}
}
@media (max-width: 680px) {
  .shell {display: block}
  .sidebar {height: auto; position: static; overflow: visible; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border)}
  .sidebar-header {margin: 0}
  .sidebar nav {display: none}
  .sidebar.menu-open nav {display: block; margin-top: 13px}
  .menu-toggle {display: inline-flex !important}
  .top {padding-inline:16px}
  .breadcrumb {display: none}
  .header-actions {width: 100%}
  .content {padding: 22px 16px 30px}
  .panel-head {padding: 13px}
  .agent-panel header {padding: 13px; flex-wrap: wrap}
  .agent-actions {justify-content: start}
  .agent-identity p {white-space: normal; overflow-wrap: anywhere}
  .sign-in {display: block}
  .sign-in-art {display: none}
  .sign-in-body {min-height: 100dvh; align-items: start; padding-top: 12dvh}
  .mobile-brand {display: flex}
}


/* Work surfaces */
.shell {--workspace-canvas:#f9fafb; background:var(--workspace-canvas)}
.sidebar {background:#f4f6f9; padding-inline:12px}
.sidebar-header {margin-bottom:22px}
.sidebar .brand {font-size:15.3px; letter-spacing:-.035em}
.sidebar .mark {width:30px; height:30px}
.nav {min-height:34px; border-radius:5px; font-size:11.25px}
.nav.active {background:#e8edf7; color:#263966; border-color:#d9e1ef}
.content {padding-top:26px}
.module-heading, .heading {margin-bottom:var(--workspace-gap)}
.module-heading h1, .heading h1, .studio-launchpad h1 {font-size:var(--page-title-size); letter-spacing:-.025em}
.module-heading p, .heading p {font-size:11.7px; margin-top:5px}
.agent-panel, .studio-workspace {border-radius:10px; box-shadow:none}
.agent-panel .registry-toolbar {justify-content:flex-start; flex-wrap:wrap; gap:8px; padding:11px 13px}
.registry-toolbar > input {width:min(250px, 100%)}
.registry-toolbar > input, .registry-toolbar > select {min-height:var(--control-height); padding:5px 8px}
.registry-toolbar .registry-count {margin-left:auto; color:var(--subtle)}
.registry-table table {min-width:860px; font-size:11.25px}
.registry-table th {font-size:9.9px; color:#536078}
.registry-table th, .registry-table td {padding-inline:13px}
.registry-table td {height:58px; padding-block:8px}
.registry-table .agent-identity {min-width:160px; gap:9px}
.registry-table .agent-avatar {width:31px; height:31px; border-radius:7px}
.agent-name {padding:0; background:none; border:0; color:var(--ink); font-size:11.7px; font-weight:680; text-align:left}
.agent-name:hover {color:var(--accent-dark); text-decoration:underline}
.registry-metric {font-variant-numeric:tabular-nums; color:var(--muted)}
.registry-table .button, .inspector-summary > .button {min-height:var(--compact-control-height); padding:4px 8px; font-size:10.8px}

.studio-toolbar {display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:11px 15px; border-bottom:1px solid var(--border)}
.studio-toolbar > label {display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:10.8px; font-weight:650; min-width:0}
.studio-toolbar select {min-height:32px; max-width:min(100%, 310px); padding-block:4px}
.studio-toolbar .button {margin-left:auto; min-height:32px}
.agent-configuration .module-form {margin:0; gap:16px}
.agent-configuration .agent-form-fields {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:16px; align-items:start}
.agent-config-column, .agent-config-section, .studio-config-group {display:grid; gap:12px; min-width:0}
.agent-config-section textarea {min-height:220px; resize:vertical}
.agent-configuration h2, .agent-configuration h3 {margin:0}
.agent-tool-details {border-top:1px solid var(--border); padding-top:8px}
.agent-tool-details summary {cursor:pointer}
.agent-tool-details[open] > * + * {margin-top:8px}
@media (max-width:820px) {
  .agent-configuration .agent-form-fields {grid-template-columns:minmax(0,1fr)}
}
.studio-attachments {display:grid; gap:16px; min-width:0}
.studio-attachments > p,.studio-attachment-section p {color:var(--muted); font-size:10.8px}
.studio-attachments > [role="status"]:empty {display:none}
.studio-attachment-section {display:grid; gap:12px; min-width:0}
.studio-attachment-heading,.studio-attachment-row {display:flex; align-items:center; justify-content:space-between; gap:8px}
.studio-attachment-section .button {min-height:30px; padding:4px 8px; white-space:nowrap; font-size:10.8px}
.studio-attachment-row {padding:5px 0}
.studio-attachment-row > div,.studio-attachment-choice {min-width:0; overflow-wrap:anywhere}
.studio-attachment-section small {display:block; color:var(--muted)}
.studio-attachment-picker {display:grid; gap:3px; padding-top:6px; border-top:1px solid var(--border)}
.studio-attachment-choice {display:block; width:100%; padding:7px 8px; text-align:start; background:var(--canvas); color:var(--ink); border:1px solid transparent; border-radius:6px}
.studio-attachment-choice:hover:not(:disabled) {border-color:var(--accent)}
.studio-attachment-choice:disabled {opacity:.65}
.studio-config-footer {position:sticky; bottom:0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:12px 16px; background:var(--surface); border:1px solid var(--border); border-radius:10px}
.studio-config-footer .section-actions {margin-inline-start:auto; justify-content:flex-end}
.studio-config-footer [role="status"] {margin:0}
.studio-model {border:1px solid var(--border); color:var(--muted); border-radius:6px; padding:3px 7px; font-size:9.9px; overflow-wrap:anywhere}
.studio-split {display:grid; grid-template-columns:minmax(0,1fr) minmax(170px, 24%)}
.studio-history {padding:16px 10px; border-left:1px solid var(--border); min-width:0; background:#fbfcfe; border-radius:0 0 10px 0}
.studio-history-heading {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px; padding:0 7px 10px}
.studio-history h2 {font-size:10.8px}
.studio-history-heading .button {min-height:28px; padding:3px 5px; font-size:9.9px}
.studio-run-list {display:grid; align-content:start; gap:3px; max-height:480px; overflow:auto}
.studio-run {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px; padding:8px; border:1px solid transparent; border-radius:7px; background:none; text-align:left; color:var(--ink)}
.studio-run:hover {background:#f0f2fa}
.studio-run[aria-current] {background:#ebeffa; border-color:#e2e7f5}
.studio-run-name {grid-column:1/-1; font-size:10.8px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.studio-run-time, .history-empty {font-size:9.9px; color:var(--subtle)}
.history-empty {padding:4px 7px}
.studio-stage {min-width:0; display:flex; flex-direction:column}
.studio-stream {padding:20px clamp(15px,3vw,32px) 24px; overflow-wrap:anywhere}
.studio-stream > p {margin-top:7px}
.studio-message {padding:14px 0; max-width:78ch}
.studio-message + .studio-message {border-top:1px solid var(--border)}
.studio-message h3 {font-size:12.6px}
.studio-input-head {display:flex; align-items:center; justify-content:space-between; gap:8px}
.studio-input-head .button {min-height:30px; padding:4px 6px; font-size:10.8px}
.studio-message.user-message {padding-top:0}
.studio-message-text {white-space:pre-wrap; overflow-wrap:anywhere; margin-top:7px; line-height:1.65}
.studio-response-head {display:flex; align-items:center; gap:7px; flex-wrap:wrap}
.studio-message .section-actions {margin-top:12px}
.studio-composer {display:grid; gap:8px; border-bottom:1px solid var(--border); padding:16px clamp(15px,3vw,32px)}
.studio-composer textarea {resize:vertical; padding:9px 11px; width:100%; min-height:65px}
.studio-input-label {font-weight:650}
.studio-run-context, .studio-run-notice {font-size:10.8px; color:var(--muted)}
.studio-run-context:empty, .studio-run-notice:empty {display:none}
.studio-run-notice.is-error {color:#8e2c43}
.composer-footer {display:flex; align-items:center; flex-wrap:wrap; gap:8px}
.composer-footer > .primary {margin-inline-start:auto}
.composer-footer .button {min-height:34px}
.studio-message-text code {background:var(--canvas); padding:1px 4px; border-radius:4px}

.trace-inspector {width:min(900px,100%); border-radius:8px 0 0 8px}
#trace-body {padding:0}
.inspector-summary {padding:12px 16px; display:flex; justify-content:space-between; align-items:flex-start; gap:12px; border-bottom:1px solid var(--border)}
.inspector-summary input {min-width:0; max-width:60%}
.inspector-split {display:grid; grid-template-columns:minmax(200px, 32%) minmax(0,1fr); min-height:calc(100dvh - 135px)}
.step-tree {background:#f9fafc; border-right:1px solid var(--border); padding:13px 8px; min-width:0}
.inspector-label {font-size:9.9px; color:var(--subtle); padding:0 7px 8px}
.step-row {display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px; border:1px solid transparent; border-radius:6px; padding:7px 6px 7px calc(6px + var(--depth, 0) * 8px); width:100%; background:none; color:var(--ink); text-align:left}
.step-row:hover {background:#eff2fa}
.step-row[aria-current] {background:#edf0fb; border-color:#e0e6f9; color:#2c3d83}
.step-name {font-size:10.8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.step-time {font-variant-numeric:tabular-nums; font-size:9.9px; color:var(--subtle); white-space:nowrap}
.step-state {display:flex; color:#278763}
.step-state.error {color:#ad2c49}
.step-state .ui-icon {width:15px; height:15px}
.step-detail {min-width:0; padding:14px 16px}
.trace-tabs {display:flex; align-items:center; gap:4px; margin-top:8px; border-bottom:1px solid var(--border); flex-wrap:wrap}
.trace-tab {padding:6px 8px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font-size:10.8px; font-weight:600}
.trace-tab:hover {color:var(--ink)}
.trace-tab[aria-pressed="true"] {color:var(--accent-dark); border-bottom-color:var(--accent)}
.step-content {padding-top:10px}
.step-content pre {margin:0}
.run-facts {display:grid; grid-template-columns:minmax(70px,25%) minmax(0,1fr); margin:0; gap:8px; font-size:10.8px}
.run-facts dt {color:var(--muted)}
.run-facts dd {margin:0; overflow-wrap:anywhere}

@media (max-width:680px) {
  .studio-split, .inspector-split {grid-template-columns:minmax(0,1fr)}
  .step-tree {border-right:0; border-bottom:1px solid var(--border); border-radius:0}
  .studio-history {border-left:0; border-top:1px solid var(--border); border-radius:0 0 10px 10px}
  .studio-run-list, .step-tree > div {max-height:164px; overflow:auto}
  .trace-inspector {border-radius:0}
  .inspector-split {min-height:0}
  .registry-toolbar .registry-count {margin-left:0}
  .registry-table table {min-width:0}
  .registry-table td, .registry-table th {padding-inline:8px}
  .registry-table tr > :nth-child(n+2):nth-child(-n+5) {display:none}
  .registry-table .agent-identity {min-width:0}
  .registry-table .agent-actions {display:grid; justify-content:end; gap:3px}
}

/* Model connections */
.models-workspace {display:grid; gap:24px; min-width:0}
.model-library {margin:0; border-radius:10px; box-shadow:none}
.model-library-header {padding:13px 15px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px}
.model-library-header p {font-size:10.8px; margin-top:2px}
.model-library .filters input, .model-library .filters select {min-height:var(--control-height); padding:5px 8px}
.model-library table {min-width:620px; font-size:11.25px}
.model-library th {font-size:9.9px}
.model-library th, .model-library td {padding-inline:13px}
.model-library td:last-child, .model-library th:last-child {text-align:right}
.model-library td > .button {font-size:10.8px; min-height:30px; padding:4px 10px}
.model-row-identity, .provider-identity, .model-detail-head {display:flex; align-items:center; gap:9px; min-width:0}
.model-row-identity p {max-width:28ch; font-size:9.9px; overflow:hidden; text-overflow:ellipsis}
.provider-mark {display:grid; place-items:center; flex:none; width:33px; height:33px; border-radius:8px; color:#364188; background:#edf0ff; font-size:10.8px; font-weight:750; letter-spacing:-.025em}
.provider-mark.deepseek {color:#2748cb; background:#eaf0ff}
.provider-mark.bailian {background:#f1f4ff}
.provider-mark img {display:block; width:23px; height:23px; object-fit:contain}
.provider-mark.custom {color:#3f4b60; background:#edf0f5; font-family:ui-monospace,monospace}
.model-catalogue h2 {margin-bottom:10px; font-size:12.6px}
.provider-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px}
.provider-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  min-width:0;
  padding:13px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
  color:var(--ink);
  text-align:left;
}
.provider-card:hover {border-color:#a4afe2; background:#f9faff}
.provider-identity > span {min-width:0}
.provider-identity strong, .provider-identity small {display:block; overflow-wrap:anywhere}
.provider-identity strong {font-size:11.7px; line-height:1.3}
.provider-identity small {margin-top:2px; color:var(--subtle); font-size:9.9px}
.provider-action {color:var(--accent-dark); font-size:10.8px; font-weight:650}
.provider-picker {grid-template-columns:1fr}
.provider-picker .provider-card {flex-direction:row; align-items:center}
.model-detail {display:grid; gap:12px}
.model-detail-head {flex-wrap:wrap}
.model-detail-head strong {font-size:11.7px}
.model-detail-head .pill {margin-left:auto}
.model-tabs {margin-top:0}
.model-facts {display:grid; grid-template-columns:96px minmax(0,1fr); margin:1px 0 10px; gap:8px; font-size:11.7px}
.model-facts dt {color:var(--muted)}
.model-facts dd {margin:0; overflow-wrap:anywhere}
.model-removal {margin-top:12px; border-top:1px solid var(--border); color:#932d42; font-size:11.7px}
.model-removal .button {margin-top:7px}
.button.danger {color:#932d42}
.model-check-result > p {margin-top:6px; font-size:11.7px}
.model-check-result:empty {display:none}

@media (max-width:800px) {
  .provider-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .provider-picker {grid-template-columns:1fr}
}
@media (max-width:680px) {
  .models-workspace {gap:18px}
  .provider-grid {grid-template-columns:1fr}
  .provider-card {flex-direction:row; align-items:center}
  .model-library table {min-width:0}
  .model-library tr > :nth-child(3), .model-library tr > :nth-child(4) {display:none}
  .model-library th, .model-library td {padding-inline:8px}
  .model-library .provider-mark {width:28px; height:28px}
  .model-row-identity p {max-width:15ch}
}

.billing-entry {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; padding:12px 0; border-top:1px solid #e8ebf1}
.billing-entry small {color:var(--muted)}
.billing-entry a {justify-self:start}
.balance-amount {display:flex; align-items:center; gap:8px}
.hosted-model-panel {display:grid; justify-items:start; gap:10px}
.hosted-model-panel .provider-identity {flex-wrap:wrap}

.account-control {position:relative; flex:none}
.account-button[aria-controls] {padding:3px 7px 3px 4px; gap:5px; border-color:transparent; box-shadow:none}
.account-button[aria-controls]:hover, .account-button[aria-expanded="true"] {background:var(--canvas); border-color:var(--border)}
.account-button > .ui-icon {width:13px; height:13px; color:var(--muted)}
.account-avatar {display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); font-size:11.7px; font-weight:700}
.account-popover {position:absolute; z-index:6; top:calc(100% + 8px); inset-inline-end:0; width:min(248px, calc(100vw - 24px)); padding:5px; border:1px solid var(--border); border-radius:12px; background:var(--surface); box-shadow:0 10px 30px #17234524}
.account-identity {display:flex; align-items:center; gap:10px; padding:9px; margin-bottom:4px; border-bottom:1px solid var(--border)}
.account-identity-details {display:grid; min-width:0; font-size:11.7px}
.account-identity-details span {color:var(--muted); overflow-wrap:anywhere}
.account-action {display:flex; align-items:center; gap:9px; width:100%; min-height:36px; padding:7px 9px; border:0; border-radius:6px; color:var(--ink); background:transparent; text-align:start; cursor:pointer}
.account-action:hover, .account-action:focus-visible {background:var(--canvas)}
.account-action .ui-icon {width:16px; height:16px; color:var(--muted)}
.account-sign-out, .account-sign-out .ui-icon, .account-notice[data-error] {color:#a72d3d}
.account-notice {font-size:11.7px}
.account-notice:empty {display:none}
.account-popover .account-notice {padding:5px 9px}
#modal:has(.account-password) {width:min(420px,calc(100% - 24px))}
#modal-body .account-password .module-form {margin:0}
.account-password small {font-weight:400; color:var(--muted)}
.account-password-actions {display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:5px}
.provider-action {display:inline-flex; align-items:center; gap:5px}
.provider-action .ui-icon {width:15px; height:15px}
.nav.active .ui-icon {stroke-width:1.9}

.sign-in-card .auth-actions {justify-content:space-between}
.auth-link {display:inline-flex; align-items:center; min-height:36px; border:0; padding:0; background:none; color:var(--accent-dark); font:inherit; font-weight:620; text-decoration:none; cursor:pointer}
.auth-link:hover {text-decoration:underline; text-underline-offset:3px}

.connection-advanced {display:grid; gap:10px}
.connection-advanced > label {margin-top:10px}
.connection-advanced summary {cursor:pointer; color:var(--muted)}
.setup-back .ui-icon {transform:rotate(180deg)}

.select-control {position:relative; display:inline-grid; min-width:0; max-width:100%}
.select-control select.sr {min-height:0; width:1px; height:1px; padding:0; margin:0; border:0}
.select-trigger {display:flex; flex-direction:row-reverse; justify-content:space-between; align-items:center; gap:10px; width:100%; min-width:0; min-height:var(--control-height); padding:6px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; font-size:11.7px; cursor:pointer}
.select-trigger span {overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.select-trigger .ui-icon {width:15px; height:15px; color:var(--subtle)}
.select-trigger:hover:not(:disabled), .select-trigger[aria-expanded="true"] {border-color:#b6c0dc; background:#f9faff}
.select-trigger[aria-expanded="true"] .ui-icon {transform:rotate(180deg)}
.select-trigger[aria-invalid="true"] {border-color:#ad2c49}
.select-trigger:disabled {cursor:default; color:var(--subtle); background:var(--canvas)}
.select-menu {position:absolute; top:calc(100% + 5px); inset-inline-start:0; z-index:20; min-width:100%; max-width:calc(100vw - 16px); max-height:290px; overflow:auto; overscroll-behavior:contain; margin:0; padding:4px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); box-shadow:0 8px 24px #17234520; outline:none}
.select-menu[popover] {position:fixed; inset:auto; min-width:0}
.select-option {display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:34px; padding:5px 8px; border-radius:6px; cursor:pointer; font-size:11.7px; font-weight:500}
.select-option span {overflow-wrap:anywhere}
.select-option[aria-selected="true"] {color:var(--accent-dark); font-weight:650}
.select-option.is-active {background:var(--accent-soft)}
.select-option .ui-icon {width:15px; height:15px; visibility:hidden}
.select-option[aria-selected="true"] .ui-icon {visibility:visible}
.studio-test-version .select-option {display:grid; grid-template-columns:minmax(0,1fr) 15px}
.studio-test-version .select-option > span {overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.studio-toolbar .select-control {max-width:min(100%, 310px)}
.studio-toolbar .select-trigger, .model-library .filters .select-trigger {min-height:var(--control-height); padding-block:4px}

.billing-keys > h2 {margin:12px 0 10px}
.billing-entries {max-height:340px; overflow:auto; overscroll-behavior:contain; margin-top:10px}
.balance-amount {margin-top:8px; font-size:21.6px; overflow-wrap:anywhere}

.agent-form-fields {display:grid; gap:12px}
.studio-stream > .button {align-self:start; margin-top:8px}
#modal:has(.agent-builder) {width:min(600px,calc(100% - 24px))}
.agent-builder {display:grid; gap:8px}
.agent-builder textarea {min-height:110px; font-size:12.6px}
.agent-builder-actions {display:flex; flex-wrap:wrap; gap:8px}

.external-integration, .integration-steps {display:grid; gap:12px}
.integration-steps {padding-inline-start:22px; margin:0}
.integration-steps li {display:list-item; padding-inline-start:4px}
.integration-steps li > * + * {margin-top:8px}
.integration-identity, .integration-status {display:flex; align-items:center; flex-wrap:wrap; gap:8px}
.integration-identity code {overflow-wrap:anywhere}
.integration-command {margin:0; max-width:100%; overflow:auto}
.agent-identity .pill {margin-top:4px}

.release-entry {display:grid; gap:6px; margin-top:10px; padding-top:10px; border-top:1px solid var(--border)}
.release-entry .button {margin-top:8px}
.release-environments {overflow-wrap:anywhere}
.release-environment-row {flex-wrap:wrap}
.studio-publish-content {display:grid; gap:16px}
.release-environment-row small, .release-environments .release-entry > small {color:var(--muted)}

.registry-latest {display:grid; justify-items:start; gap:4px}
.registry-run-link {font-weight:550}
.registry-run-link:hover {color:var(--accent-dark); text-decoration:underline}
.registry-mobile-model {display:none}
@media (max-width:680px) {
  .registry-mobile-model {display:block}
}

.console-agent-row {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0}
.console-agent-row + .console-agent-row {border-top:1px solid var(--border)}
.console-agent-row > div {min-width:0; overflow-wrap:anywhere}
.agent-detail-nav {display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--border); padding-bottom:8px}
.agent-detail-nav [aria-current="page"] {background:var(--accent-soft); color:var(--accent-dark)}

.workspace-switch {display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:0 4px 14px; padding:4px; border:1px solid var(--border); border-radius:9px; background:var(--canvas)}
.workspace-switch button {min-height:32px; padding:4px 8px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--muted); font:inherit; font-size:11.7px; font-weight:650; cursor:pointer}
.workspace-switch button[aria-pressed="true"] {border-color:var(--border); background:var(--surface); color:var(--accent-dark); box-shadow:0 1px 2px #1723450d}
.workspace-switch button:hover:not([aria-pressed="true"]) {background:var(--accent-soft)}
@media (max-width:760px) {
  .workspace-switch {margin:0 0 6px; max-width:320px}
}

.connection-card {display:grid; gap:10px; grid-template-rows:auto auto 1fr auto; align-self:stretch; padding:var(--panel-padding)}
.connection-card-head, .connection-identity {display:flex; align-items:center; flex-wrap:wrap; gap:9px}
.connection-card-head {justify-content:space-between}
.connection-identity {font-weight:680}
.connection-identity img {display:block; height:24px; max-width:82px; object-fit:contain}
.connection-identity img[src$="cloudflare.png"] {height:26px}
.connection-identity img[src$="cloudflare.png"] + span {display:none}
.connection-card > p {color:var(--muted)}
.connection-card-head > .button {margin-inline-start:auto}
.connection-install textarea {min-height:64px}
.connection-install #connection-import-hint {font-size:10.8px; color:var(--muted)}
.connection-shortcuts {display:grid; gap:8px; border-top:1px solid var(--border); margin-top:14px; padding-top:12px}
.connection-shortcuts .button {flex-wrap:wrap; font-size:10.8px}
.connection-shortcuts .connection-identity img {height:18px; max-width:65px}
.skill-library-item {padding:8px 0}
.skill-library-item + .skill-library-item {border-top:1px solid var(--border)}
.skill-library-item summary {cursor:pointer}
.skill-library-item summary small {display:block; padding-inline-start:14px; color:var(--muted); font-size:10.8px}
.skill-library-item > a {display:inline-block; margin:8px 0; color:var(--accent-dark)}
.skill-library-item > p {margin-top:8px; color:var(--muted)}
.skill-preview {max-height:42dvh; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere}
.connection-card [role="status"]:empty {display:none}

.agent-api {display:grid; gap:10px}
.agent-api > p {color:var(--muted)}
.agent-api > p:first-child {color:var(--ink); font-weight:650}
.agent-api > label {display:grid; gap:5px; font-weight:650}
.agent-api-command {white-space:pre-wrap; overflow-wrap:anywhere; margin:0}
.studio-toolbar .button + .button {margin-left:0}

.agent-api-endpoint,.agent-api-example-controls {display:flex; align-items:center; flex-wrap:wrap; gap:8px}
.agent-api-endpoint {padding:8px; border:1px solid var(--border); border-radius:8px}
.agent-api-endpoint code {min-width:0; overflow-wrap:anywhere}
.agent-api-example-controls {justify-content:space-between}
.agent-api-example-controls [aria-pressed="true"] {background:var(--accent-soft); color:var(--accent-dark)}
.agent-api-command {max-height:36dvh; overflow:auto}

.publish-version-actions {margin:10px 0 6px}
.publish-version-row > div {flex:1}
.publish-version-row details {margin:0}
.version-actions {position:relative; flex:none}
.version-actions > summary {list-style:none}
.version-actions > summary::-webkit-details-marker {display:none}
.version-actions-menu {position:absolute; z-index:2; inset-inline-end:0; width:max-content; max-width:220px; padding:6px; background:var(--surface); border:1px solid var(--border); border-radius:8px; box-shadow:0 6px 16px #17234518}
.version-actions-menu small {display:block; padding:4px 8px; overflow-wrap:anywhere}

.wecom-status {display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; margin:6px 0; font-size:10.8px; color:var(--muted)}
.wecom-route {display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; flex-basis:100%; min-width:0}
.wecom-route strong {color:var(--ink); font-size:11.7px; overflow-wrap:anywhere}
.wecom-status small {flex-basis:100%; font-size:10.8px; overflow-wrap:anywhere}
.wecom-setup-status-row {display:flex; align-items:flex-start; justify-content:space-between; gap:8px}
.wecom-setup-status-row .section-actions {flex:none}



.inspector-split {grid-template-columns:minmax(0,1fr) minmax(190px,27%)}
.step-tree {border-right:0; border-left:1px solid var(--border)}
.trace-step-heading {display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px}
.trace-payloads {display:grid; gap:12px}
.trace-payload-section {min-width:0; padding:12px; border:1px solid var(--border); border-radius:8px}
.trace-payload-section h4 {margin:0 0 6px; font-size:10.8px}
.trace-payload-section pre {margin:0; max-height:55dvh; overflow:auto}
.trace-message-list {display:grid; gap:6px; min-width:0}
.trace-message {min-width:0; border:1px solid var(--border); border-radius:8px; padding:8px}
.trace-message summary {cursor:pointer; overflow-wrap:anywhere}
.trace-message pre {margin:6px 0 0; max-height:42dvh; white-space:pre-wrap; overflow-wrap:anywhere; overflow:auto}
.trace-message-id {margin:6px 0; color:var(--muted); overflow-wrap:anywhere}
.trace-text {white-space:pre-wrap; overflow-wrap:anywhere}
.trace-error {margin-bottom:12px; background:#fdf2f4}
.trace-step-facts {margin-top:14px}
.trace-step-facts .run-facts {margin-top:8px}
.trace-row-identity {display:grid; gap:3px; justify-items:start}
.trace-input-preview {max-width:34ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted)}
@media (max-width:680px) {
  .inspector-split {grid-template-columns:minmax(0,1fr)}
  .step-tree {border-left:0; border-top:1px solid var(--border); border-bottom:0}
}

.trace-mode {display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.trace-mode[hidden] {display:none}
.trace-mode .button {min-height:32px; padding:5px 10px; font-size:10.8px}
.trace-mode .button[aria-pressed="true"] {background:var(--panel-tint, #edf0ff); color:var(--primary, #303ddb)}
.trace-session {border-top:1px solid var(--border)}
.trace-group-header, .trace-agent-group {display:grid; grid-template-columns:minmax(0,1fr) repeat(3,minmax(70px,92px)) minmax(105px,130px) 12px; align-items:center; gap:8px 14px; padding:12px 16px}
.trace-group-header {background:var(--panel-tint, #edf0ff); color:var(--muted); font-size:11px; font-weight:600}
.trace-agent-group {width:100%; border:0; border-top:1px solid var(--border); background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer}
.trace-agent-group:hover {background:var(--panel-tint, #edf0ff)}
.trace-agent-group strong {min-width:0; overflow-wrap:anywhere}
.trace-group-value, .trace-group-arrow {color:var(--muted); font-variant-numeric:tabular-nums}
.trace-group-value small {display:none}
.trace-group-value.trace-group-failure {color:#a32935; font-weight:650}
@media (max-width:760px) {
  .trace-group-header {display:none}
  .trace-agent-group {grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr)}
  .trace-agent-group strong {grid-column:1/-1}
  .trace-group-value small {display:block; font-size:10px; color:var(--muted)}
  .trace-group-arrow {display:none}
}
.trace-session > summary {display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:16px; padding:10px 16px; cursor:pointer; list-style:none}
.trace-session > summary::-webkit-details-marker {display:none}
.trace-session > summary:hover, .trace-session[open] > summary {background:#f7f8fc}
.session-identity {display:flex; align-items:baseline; gap:9px; min-width:0}
.session-identity::before {content:"›"; flex:none; color:var(--muted)}
.trace-session[open] .session-identity::before {transform:rotate(90deg)}
.session-identity strong, .session-identity span {overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.session-identity strong {flex-shrink:0; max-width:55%}
.session-identity span, .session-context, .session-count, .trace-session time {font-size:10.8px; color:var(--muted)}
.session-count {display:flex; align-items:center; gap:6px}
.session-turn-table table {min-width:610px; table-layout:fixed}
.session-turn-table th, .session-turn-table td {padding:7px 10px; text-align:left}
.session-turn-table th:first-child, .session-turn-table td:first-child {width:88px; padding-left:16px}
.session-turn-table th:nth-child(4) {width:105px}
.session-turn-table th:nth-child(5) {width:124px}
.session-turn-table tbody tr:last-child td {border-bottom:0}
.session-turn-table td {vertical-align:middle; font-size:10.8px}
.session-turn-table td small {display:block; color:var(--muted); margin-top:2px}
.session-turn-table .pill {font-size:9.9px; padding:2px 6px}
.session-turn-link {display:block; color:inherit; text-decoration:none}
.session-turn-link:hover, .session-turn-link:focus-visible {text-decoration:underline; text-underline-offset:3px}
.session-turn-table tbody tr:focus-within {background:#f7f8fc}
.session-turn-preview {display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere; white-space:pre-line; line-height:1.4}
.trace-sample-output pre {white-space:pre-wrap; overflow-wrap:anywhere}
#tracing-content #description:empty {display:none}
.table-panel:has(#trace-mode:not([hidden])) > .panel-head {padding:10px 16px}
@media (max-width:680px) {
  .trace-session > summary {grid-template-columns:minmax(0,1fr) auto; gap:4px 8px}
  .session-identity {grid-column:1/-1}
  .session-context {grid-column:1}
  .trace-session > summary > time {grid-column:1/-1}
}
.trace-sample-output {margin-bottom:12px}


.wecom-channel-triggers {border-top:1px solid var(--border); margin-top:12px; padding-top:12px}
.channel-cards {gap:12px}
@media (min-width:1200px) {
  .channel-cards:has(> .channel-overview-card) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
.channel-overview-card {align-self:stretch; display:grid; align-content:start; gap:6px}
.channel-overview-card :is(h2,p) {margin:0}
.channel-card-row, .wecom-channel-heading {display:grid; grid-template-columns:minmax(0,1fr) 156px; align-items:start; gap:8px 16px}
.channel-card-row .channel-brand-heading, .wecom-channel-heading h3 {min-height:var(--control-height); align-content:center}
@media (max-width:600px) {
  .channel-card-row, .wecom-channel-heading {grid-template-columns:minmax(0,1fr)}
  .channel-card-row .channel-brand-heading, .wecom-channel-heading h3 {min-height:0}
}
.channel-card-copy {display:grid; gap:6px; min-width:0; overflow-wrap:anywhere}
.channel-card-copy :is(h2,h3,p,.wecom-status) {margin:0}
.wecom-channel-triggers small, .wecom-channel-triggers p {color:var(--muted)}


.agent-draft-composer {margin-bottom:16px}
.agent-draft-composer small {color:var(--muted)}
.draft-proposal {display:grid; gap:8px; margin-top:14px}
.draft-proposal pre {white-space:pre-wrap; overflow-wrap:anywhere; max-height:240px; overflow:auto}
.draft-proposal button {justify-self:start}


.agent-chat-builder {width:min(780px,100%); min-width:0; margin-inline:auto}
.task-identity {display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px}
.task-identity h1 {min-width:0; overflow-wrap:anywhere}
.agent-chat-builder {display:grid; grid-template-columns:minmax(0,1fr); gap:10px}
.agent-chat-heading,.agent-chat-controls {display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px}
.agent-chat-heading {justify-content:space-between; padding-block:4px; gap:10px}
.agent-chat-identity {min-width:0; flex:1; display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px}
.agent-chat-draft-state,.agent-chat-pending {font-size:10.8px; color:var(--muted)}
.agent-chat-draft-state {display:inline-flex; align-items:center; gap:5px; font-size:9.9px; white-space:nowrap}
.agent-chat-draft-state::before {content:""; width:5px; height:5px; border-radius:50%; background:#b7894b}
.agent-chat-actions {flex-wrap:wrap}
.agent-chat-conversation:empty {display:none}
.agent-chat-conversation {display:grid; gap:14px; padding-block:8px}
.agent-chat-user,.agent-chat-reply p {white-space:pre-wrap; overflow-wrap:anywhere}
.agent-chat-user {justify-self:end; max-width:84%; background:var(--accent-soft); border-radius:14px; padding:10px 14px}
.agent-chat-progress {margin:0; padding:0; display:grid; gap:2px; list-style:none; color:var(--muted); font-size:0.85rem}
.agent-chat-progress > li {min-width:0; overflow-wrap:anywhere}
.agent-chat-progress > li > .agent-chat-progress-heading {padding:6px 8px 6px 26px}
.agent-chat-progress > li > details {padding:0; border:0}
.agent-chat-progress > li > details > summary {list-style:none; display:grid; grid-template-columns:12px minmax(0,1fr); align-items:center; gap:6px; padding:6px 8px; border-radius:6px}
.agent-chat-progress > li > details > summary::-webkit-details-marker {display:none}
.agent-chat-progress > li > details > summary::before {content:'›'; justify-self:center}
.agent-chat-progress > li > details[open] > summary::before {transform:rotate(90deg)}
.agent-chat-progress > li > details > summary:hover {background:var(--accent-soft)}
.agent-chat-progress-heading {display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; font-weight:400}
.agent-chat-progress-heading strong {color:var(--ink); font-weight:650}
.agent-chat-progress-resource {max-width:100%; overflow-wrap:anywhere}
.agent-chat-progress .pill[data-status="error"], .agent-chat-progress-error {color:#a82440}
.agent-chat-progress .pill[data-status="error"] {background:#fae8ed}
.agent-chat-progress .pill[data-status="running"] {background:var(--accent-soft); color:var(--accent)}
.agent-chat-progress-fields {display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 12px; margin:8px 0}
.agent-chat-progress-fields dd {margin:0; color:var(--ink)}
.agent-chat-progress[data-running="true"]:not([hidden]) + .agent-chat-reply > .agent-chat-pending {display:none}
.agent-chat-reply {display:grid; gap:6px; justify-items:start; min-width:0}
.agent-chat-markdown {width:100%; min-width:0; line-height:1.65; overflow-wrap:anywhere}
.agent-chat-markdown p {white-space:normal}
.agent-chat-markdown > * {margin:0 0 0.8em}
.agent-chat-markdown > :last-child {margin-bottom:0}
.agent-chat-markdown :is(h1,h2,h3,h4,h5,h6) {color:var(--ink); font-size:1.05em; line-height:1.4}
.agent-chat-markdown :is(h1,h2) {font-size:1.22em}
.agent-chat-markdown :is(ul,ol) {padding-inline-start:1.5em}
.agent-chat-markdown li > p {margin:0.3em 0}
.agent-chat-markdown blockquote {padding-inline-start:0.85em; border-inline-start:3px solid var(--border)}
.agent-chat-markdown code {padding:0.12em 0.28em; border-radius:4px; background:var(--canvas)}
.agent-chat-markdown pre {max-width:100%; overflow-x:auto; padding:0.85em; border:1px solid var(--border); border-radius:8px; background:var(--canvas); white-space:pre}
.agent-chat-markdown pre code {padding:0; background:transparent; overflow-wrap:normal; white-space:inherit}
.agent-chat-table {max-width:100%; overflow-x:auto}
.agent-chat-table table {width:max-content; max-width:100%; border-collapse:collapse}
.agent-chat-table :is(th,td) {padding:0.55em 0.75em; border:1px solid var(--border); text-align:start}
.agent-chat-table th {background:var(--canvas); color:var(--ink)}
.agent-chat-markdown hr {border:0; border-top:1px solid var(--border)}
.agent-chat-composer {position:sticky; bottom:10px; background:var(--surface); border:1px solid var(--border); border-radius:19px; padding:10px; box-shadow:0 2px 4px #17234504,0 8px 24px #17234509; z-index:2}
.agent-chat-composer > textarea {display:block; width:100%; border:0; background:transparent; padding:9px 10px 12px; resize:none; min-height:86px; max-height:200px; field-sizing:content; line-height:1.55}
.agent-chat-composer > textarea:focus {outline:none; box-shadow:none}
.agent-chat-composer:focus-within {border-color:#afb9f2; box-shadow:0 0 0 3px #edf0ff,0 8px 24px #17234509}
.agent-chat-controls {justify-content:space-between; align-items:flex-end; gap:6px 12px; padding-top:7px; border-top:1px solid #eff1f6}
.agent-composer-tools {display:flex; flex:1 1 300px; align-items:center; flex-wrap:wrap; gap:5px; min-width:0}
.agent-composer-send-controls {display:flex; align-items:center; gap:7px; margin-inline-start:auto; max-width:100%}
.agent-composer-send-controls > label {min-width:0; font-size:0}
.agent-chat-controls .select-trigger {border-color:transparent; background:transparent; min-height:32px; padding:4px 7px; font-size:10.8px; font-weight:550; color:var(--muted)}
.agent-chat-controls .select-trigger:hover:not(:disabled) {background:var(--canvas); color:var(--ink)}
.agent-composer-send-controls .select-control {max-width:min(220px,55vw)}
.agent-composer-add {border-radius:8px; padding:0; width:32px; height:32px; min-height:32px; justify-content:center}
.agent-composer-add span {display:none}
.agent-chat-settings > label {display:grid; gap:5px; margin:5px}
.agent-chat-settings > label :is(input,textarea) {width:100%}
@media (max-width:600px) {
  .agent-composer-tools {flex-basis:100%}
}
.agent-chat-composer [role=status]:empty {display:none}


.agent-chat-settings textarea {min-height:140px; resize:vertical}
.agent-chat-settings > button {margin:5px}


.agent-chat-send {width:36px; height:36px; min-height:36px; padding:0; justify-content:center; border-radius:50%; box-shadow:none}
.agent-chat-send span {display:none}
.agent-chat-send:disabled {background:#f2f4f9; color:var(--muted); border-color:transparent; opacity:1}



.agent-chat-release-status {font-size:10.8px; color:var(--muted)}


.connector-picker {min-width:0}
.connector-picker > input[type=search] {width:100%; min-width:0; background:var(--canvas)}
.connector-toggle-list {display:grid; gap:2px; max-height:245px; overflow:auto}
.connector-toggle-row {display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:8px; align-items:center; padding:6px 4px; border-radius:7px; color:var(--ink)}
.connector-toggle-row:hover {background:var(--canvas)}
.connector-toggle-row .connection-identity img {width:21px; height:21px; object-fit:contain}
.connector-toggle-text {display:grid; grid-template-columns:minmax(0,1fr); overflow-wrap:anywhere}
.connector-toggle-text strong {font-size:10.8px}
.connector-toggle-text small {font-size:9.9px}
.connector-toggle-row input.connector-toggle {appearance:none; width:31px; height:18px; min-height:0; padding:0; margin:0; border:0; border-radius:12px; background:#d5dbe6; cursor:pointer; position:relative}
.connector-toggle-row input.connector-toggle::before {content:""; position:absolute; width:12px; height:12px; top:3px; left:3px; background:white; border-radius:50%; box-shadow:0 1px 3px #16203b38}
.connector-toggle-row input.connector-toggle:checked {background:#258574}
.connector-toggle-row input.connector-toggle:checked::before {transform:translateX(13px)}
.connector-toggle-row input.connector-toggle:disabled {opacity:.55; cursor:default}
.connector-toggle-row input.connector-toggle:focus-visible {outline:2px solid var(--accent); outline-offset:2px}


.sidebar-agents-heading {display:flex; align-items:center; justify-content:space-between; gap:6px; padding:4px 5px 3px 10px}
.sidebar-agents-heading h2, .studio-thread-trace .agent-config-rail-head h2 {font-size:10.8px; color:var(--muted); letter-spacing:0}
.sidebar-agent {min-width:0}
.sidebar-agent span {overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.sidebar-agent .ui-icon {flex:none; width:16px; height:16px}
.agent-conversation-layout {display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:18px; min-width:0}
.agent-config-rail {min-width:0; padding:14px; border:1px solid var(--border); border-radius:15px; background:var(--surface); box-shadow:var(--shadow)}
.agent-config-rail-head {display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px}
.agent-config-rail .studio-attachment-section {padding:4px 0; border:0; box-shadow:none}
.agent-config-rail .agent-chat-settings > label {margin:0 0 8px}
.agent-config-rail .agent-chat-settings textarea {min-height:200px}
@media (min-width:1500px) {
  .agent-conversation-layout:has(.agent-config-rail:not([hidden])) {grid-template-columns:minmax(0,1fr) minmax(280px,320px)}
  .agent-config-rail {position:sticky; top:84px; max-height:calc(100dvh - 100px); overflow:auto}
}
@media (max-width:1499px) {
  .agent-config-rail {position:fixed; z-index:9; inset:71px 12px auto auto; width:min(360px,calc(100vw - 24px)); max-height:calc(100dvh - 84px); overflow:auto; box-shadow:0 10px 30px #17234526}
}

.agent-inbox {padding-top:12px; border-top:1px solid var(--line)}
.agent-inbox-thread {display:grid; width:100%; gap:3px; text-align:left; min-width:0}
.agent-inbox-thread span {overflow:hidden; white-space:nowrap; text-overflow:ellipsis}
.agent-inbox-thread small, .agent-inbox-threads > p, .agent-chat-delivery {font-size:.8rem; opacity:.75}
.agent-chat-delivery {display:block; margin-block:6px}

.studio-launchpad {display:grid; justify-items:center; align-content:center; min-height:64vh; gap:20px; padding:24px 0}
.studio-launchpad h1 {margin:0}
.studio-launch-actions {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); width:min(100%,820px); gap:14px}
.studio-launch-card {display:grid; justify-items:start; align-content:start; gap:10px; text-align:left; padding:20px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer}
.studio-launch-card:hover {border-color:var(--accent-dark); background:var(--accent-soft)}
.studio-launch-card > span {font-weight:650}
.studio-launch-card small {color:var(--muted); line-height:1.4}
.studio-launchpad.has-agents {align-content:start}
.studio-launch-agents {width:min(100%,820px); min-width:0}
.studio-launch-agents h2 {margin:0 0 10px}
.studio-launch-agent-list {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:8px}
.studio-launch-agent {grid-template-columns:auto minmax(0,1fr); align-items:center; padding:10px 12px; overflow-wrap:anywhere}

.studio-configuration-layout {display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:20px}
.studio-configuration-assistant {min-width:0}
@media (min-width:1150px) {
  .studio-configuration-layout {grid-template-columns:minmax(0,1fr) minmax(280px,360px)}
}

.studio-test-version {display:flex; align-items:center; flex-wrap:wrap; gap:4px 6px; min-width:0; max-width:100%; color:var(--muted); font-size:10.8px}
.studio-test-version .select-control {max-width:min(200px,100%)}
.studio-test-version .select-trigger {min-height:var(--compact-control-height); padding:4px 7px; border-color:transparent; background:transparent}
.studio-test-version .select-trigger:is(:hover,:focus-visible,[aria-expanded="true"]) {border-color:transparent; background:var(--accent-soft)}
.studio-execution {min-width:0; overflow-wrap:anywhere}
.studio-execution > details {padding:10px 0; border-top:1px solid var(--border)}
.studio-execution pre {white-space:pre-wrap; overflow-wrap:anywhere}

.studio-run-column {width:min(100%,760px); margin-inline:auto; min-width:0}
.studio-conversation-empty {padding:clamp(20px,5vh,52px) 0 20px}
.studio-conversation-empty h2 {font-size:clamp(16.2px,1.8vw,20.7px); margin:0 0 6px}
.studio-conversation-empty p {color:var(--muted); margin:0}

.studio-trace-rounds {display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px}
.studio-trace-rounds [aria-pressed="true"], .agent-inbox-thread[aria-current] {background:var(--accent-soft); color:var(--accent-dark)}
.studio-execution details details {margin-inline-start:12px}
@media (max-width:1499px) {
  .agent-config-rail.studio-thread-trace {position:static; width:auto; max-height:none; box-shadow:none}
}

@media (min-width:1200px) and (max-width:1499px) {
  .agent-conversation-layout:has(.studio-thread-trace:not([hidden])) {grid-template-columns:minmax(0,1fr) minmax(260px,290px)}
  .agent-config-rail.studio-thread-trace {position:sticky; top:84px; max-height:calc(100dvh - 100px); overflow:auto}
}

.agent-configuration .agent-form-fields {grid-template-columns:minmax(0,1fr)}
.agent-configuration .agent-config-section {padding:16px 18px}
.agent-configuration [name="instructions"] {min-height:124px}
.agent-config-disclosure {border:1px solid var(--border); border-radius:12px; background:var(--surface)}
.agent-config-disclosure > summary {padding:13px 16px; cursor:pointer; font-weight:650}
.agent-config-disclosure > :not(summary) {margin:0 12px 12px}
.agent-config-disclosure > .agent-config-section {border:0; box-shadow:none}
@media (min-width:1150px) {
  .studio-configuration-assistant {position:sticky; top:84px; max-height:calc(100dvh - 98px); overflow:auto}
}

.studio-conversation-empty .button {margin-top:8px}
.studio-starter-question {max-width:min(100%, 36ch); height:auto; white-space:normal; overflow-wrap:anywhere; text-align:left}

.agent-overview-metrics {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:14px}
.agent-overview-metrics > div {display:grid; align-content:start; gap:5px; padding:11px 12px; background:var(--canvas)}
.agent-overview-metrics span {color:var(--muted)}
.agent-overview-metrics strong {font-size:18px}

.shell .content {
  max-width:1600px;
  padding:24px clamp(16px,2vw,32px);
}
.agent-registry-view {border-radius:6px; overflow:hidden}
.agent-registry-view .registry-table th {background:var(--canvas); color:var(--ink); border-color:var(--border)}
.agent-registry-view .registry-table td {height:48px}
.agent-registry-view .registry-table tbody tr:hover {background:var(--accent-soft)}

.agent-registry-view .registry-toolbar {gap:8px}
.studio-workbench {gap:14px}
.studio-workbench :is(.agent-inbox,.agent-chat-builder,.agent-config-rail) {
  min-width:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:6px;
  box-shadow:none;
}
.studio-workbench .agent-inbox {display:flex; flex-direction:column; gap:8px; padding:12px}
.studio-workbench .agent-inbox .sidebar-agents-heading {padding:0}
.studio-workbench .agent-inbox > .button {width:100%; flex:none}
.agent-inbox-threads {min-height:0; overflow:auto}
.studio-workbench .agent-inbox-thread {padding:6px 8px; gap:2px; font-size:10.8px}
.studio-workbench .agent-inbox-thread small {font-size:9.9px; opacity:1; color:var(--muted)}
.studio-workbench .agent-chat-builder {width:100%; padding:var(--panel-padding); grid-template-rows:auto auto minmax(0,1fr)}
.studio-workbench .agent-chat-heading {align-items:flex-start}
.studio-workbench .studio-run-column {display:flex; flex-direction:column; width:min(100%,760px); min-height:0}
.studio-workbench .agent-chat-conversation {min-height:0; overflow:auto; align-content:start; flex:1; padding-inline:4px 14px; scrollbar-width:thin; scrollbar-color:#b5bfd1 transparent; scrollbar-gutter:stable}
.studio-workbench .agent-chat-composer {
  position:relative; bottom:auto; flex:none; margin-top:auto;
  background:var(--canvas); border-radius:12px; padding:8px; box-shadow:none;
}
.studio-workbench .agent-chat-composer > textarea {min-height:44px; padding:7px 8px; font-size:12.6px}
.studio-workbench .agent-chat-composer:focus-within {border-color:#a7b3f4; box-shadow:0 0 0 2px var(--accent-soft)}
.studio-workbench .agent-chat-controls {border-top:0; align-items:center; gap:4px 8px; padding-top:4px}
.studio-workbench .agent-composer-tools {flex:1 1 auto}
.studio-workbench .agent-chat-send {flex:none; width:32px; height:32px; min-height:32px; box-shadow:none}
.studio-workbench .agent-chat-send:disabled {background:#e8edf5; color:var(--muted)}
.studio-workbench .button.quiet {color:var(--muted)}
.studio-workbench .button.quiet:hover:not(:disabled) {background:var(--canvas); color:var(--ink)}
.studio-workbench :is(
  .agent-inbox-thread[aria-current],
  .studio-trace-rounds [aria-pressed="true"],
  .agent-chat-actions [aria-expanded="true"]
) {background:var(--canvas); border-color:var(--border); color:var(--ink)}
.studio-workbench .agent-chat-user {border-radius:6px; color:var(--ink)}
.studio-workbench :is(.agent-chat-actions,.agent-inbox,.agent-config-rail) .button {font-size:10.8px; min-height:var(--compact-control-height); padding-block:4px}
.studio-workbench .studio-execution pre {background:var(--canvas); color:var(--ink); border-color:var(--border)}
.studio-workbench .studio-execution > :is(p,a,details) {margin-block:6px}
@media (min-width:1200px) {
  .studio-workbench:not(.agent-chat-workspace):has(> .agent-inbox:not([hidden])) {
    grid-template-columns:minmax(155px, .8fr) minmax(0, 3fr);
    align-items:stretch;
  }
  .studio-workbench:not(.agent-chat-workspace):has(> .agent-inbox:not([hidden])):has(> .agent-config-rail:not([hidden])) {
    grid-template-columns:minmax(155px, .85fr) minmax(0, 2.65fr) minmax(230px, 1.45fr);
  }
  .shell > main:has(> #platform-content:not([hidden]) > .studio-workbench) {
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    height:100dvh;
    min-height:600px;
  }
  .shell #platform-content:has(> .studio-workbench) {
    min-height:0;
    margin-block:0;
    padding-block:16px 10px;
  }
  .studio-workbench {height:100%; grid-template-rows:minmax(0,1fr)}
  .studio-workbench > :is(.agent-inbox,.agent-chat-builder,.agent-config-rail) {min-height:0}
  .studio-workbench .agent-chat-builder {padding-block-end:10px}
  .studio-workbench .agent-config-rail {position:static; width:auto; max-height:none; overflow:auto}
}
@media (max-width:1199px) {
  .studio-workbench .agent-inbox {max-height:180px}
  .studio-workbench .agent-chat-builder {min-height:400px}
}
@media (min-width:1200px) and (max-width:1499px) {
  .studio-workbench:not(.agent-chat-workspace):has(> .agent-inbox:not([hidden])):has(> .agent-config-rail:not(.studio-thread-trace)) {
    grid-template-columns:minmax(155px, .8fr) minmax(0, 3fr);
  }
  .studio-workbench > .agent-config-rail:not(.studio-thread-trace) {
    position:fixed;
    width:min(360px,calc(100vw - 24px));
    height:auto;
    max-height:calc(100dvh - 84px);
  }
}
.module-heading:has(+ .studio-configuration-layout) > div {min-width:0; overflow-wrap:anywhere}
.studio-workbench a {color:var(--accent)}
.studio-workbench .studio-execution .modal-section h2 {font-size:10.8px; color:var(--muted)}
.studio-workbench .studio-execution .modal-section {margin-top:12px}
.agent-registry-view .registry-table .agent-identity > div {min-width:0; overflow-wrap:anywhere}
.agent-registry-view .registry-table td:first-child {width:38%}
.studio-workbench .agent-chat-builder {display:flex; flex-direction:column}
.studio-workbench .studio-run-column {flex:1}
.studio-workbench .agent-config-rail-head > .icon-button span {display:none}
.studio-workbench .studio-icon-action {width:var(--compact-control-height); flex:none}
.studio-icon-action span {display:none}
.agent-registry-view .registry-table table {white-space:normal}
.agent-registry-view .registry-table :is(td,th) {border-color:var(--border)}
.agent-registry-view .registry-table .agent-name {max-width:100%; white-space:normal; overflow-wrap:anywhere}
.agent-registry-view .registry-table .agent-identity p {white-space:normal; overflow-wrap:anywhere}

.agent-overview-heading {align-items:flex-start; flex-wrap:wrap}
.agent-overview-heading > div {min-width:0; overflow-wrap:anywhere}
.agent-overview {display:grid; gap:16px; min-width:0}
.agent-overview .panel {border-radius:6px; min-width:0}
.agent-overview .agent-overview-metrics {margin-block:12px; gap:1px; border:1px solid var(--border); border-radius:4px; background:var(--border); overflow:hidden}
.agent-overview .agent-overview-metrics strong {font-variant-numeric:tabular-nums; overflow-wrap:anywhere}
.agent-overview :is(small,.agent-overview-note) {color:var(--muted); font-size:10.8px}
.agent-overview-note {margin-top:8px}
.agent-overview-note:empty {display:none}
.agent-overview-note a {margin-inline-start:8px; color:var(--accent)}
.agent-overview-days {display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin-top:14px}
.agent-overview-day {display:grid; grid-template-rows:1.5em 68px auto; justify-items:center; gap:3px; font-size:10.8px; text-align:center}
.agent-overview-bars {width:min(30px,100%); height:68px; display:flex; flex-direction:column; justify-content:flex-end; border-bottom:1px solid var(--border)}
.agent-overview-day > .agent-overview-bars {grid-row:2}
.agent-overview-day > small {grid-row:3}
.agent-overview-bars > strong {margin-bottom:2px}
.agent-overview-bars .other {background:var(--accent)}
.agent-overview-bars .failed {background:#c95166}
.agent-overview-runs {list-style:none; padding:0; margin:8px 0 0}
.agent-overview-runs:empty {display:none}
.agent-overview-runs li {display:grid; gap:4px; padding:9px 0; border-top:1px solid var(--border); overflow-wrap:anywhere}
.agent-overview-run-identity {display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px}
.agent-overview-run-identity a {color:var(--ink); font-weight:620; min-width:0; text-decoration-color:var(--subtle); text-underline-offset:2px}
.agent-overview-usage {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:16px}
.agent-overview table {margin-top:10px; table-layout:fixed; white-space:normal; font-size:10.8px}
.agent-overview table :is(th,td) {padding:6px; border-color:var(--border); overflow-wrap:anywhere}
.agent-overview table th {background:var(--canvas)}
.agent-overview table :is(th,td):not(:first-child) {text-align:right; width:70px}
.agent-overview table tbody tr:hover {background:transparent}
.agent-overview-legend {display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:10px; color:var(--muted); font-size:10.8px}
.agent-overview-legend span::before {content:""; display:inline-block; width:8px; height:8px; margin-inline-end:6px; border-radius:2px; background:var(--accent)}
.agent-overview-legend span:last-child::before {background:#c95166}

dialog {background:var(--surface)}
.shell .panel {border-radius:6px; box-shadow:none}
.shell :is(.button,.select-trigger):not(.agent-chat-send) {border-radius:5px}

.sidebar-header {margin-bottom:9px}
.sidebar-divider {margin:6px 0; border:0; border-top:1px solid var(--border)}
#sidebar-agent-context {position:relative; display:flow-root}
#sidebar-agent-context > .nav {padding-inline-end:36px}
#sidebar-agent-context .nav .agent-avatar {width:19px; height:19px; border-radius:4px; font-size:7.2px}
#sidebar-agent-context:not([hidden]) + [data-module="console-agents"],
#sidebar-agent-context .icon-button span {display:none}
.registry-toolbar > .button.primary {min-height:var(--control-height); padding-block:4px}

.studio-workbench .agent-chat-heading {
  align-items:center;
  padding-block:0 10px;
  border-bottom:1px solid var(--border);
}
.studio-workbench .studio-conversation-empty {
  display:grid;
  flex:1;
  place-content:center;
  justify-items:center;
  gap:8px;
  padding:16px 0;
  text-align:center;
}
.studio-workbench .studio-conversation-empty > .ui-icon {
  box-sizing:content-box;
  width:22px;
  height:22px;
  padding:10px;
  border-radius:8px;
  color:var(--accent);
  background:var(--accent-soft);
}
.studio-workbench .studio-conversation-empty h2 {font-size:16.2px; overflow-wrap:anywhere}
.studio-workbench .studio-starter-question {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  width:min(100%,360px);
  max-width:100%;
  padding:10px 12px 10px 14px;
  border-radius:12px;
  background:var(--surface-subtle, #f6f7fb);
  box-shadow:none;
  font-weight:500;
  line-height:1.55;
  white-space:pre-wrap;
}
.studio-workbench .studio-starter-question .ui-icon {
  width:26px;
  height:26px;
  padding:5px;
  border-radius:50%;
  color:var(--accent-dark);
  background:var(--accent-soft);
}
.studio-workbench .studio-starter-question:is(:hover,:focus-visible) {
  border-color:var(--accent);
  background:var(--accent-soft);
}
.studio-workbench .studio-thread-trace {display:flex; flex-direction:column}
.studio-workbench > .studio-thread-trace.is-execution-collapsed {height:auto; align-self:start}
.is-execution-collapsed .agent-config-rail-head {margin-bottom:0}
.studio-thread-trace .icon-button[aria-expanded="true"] .ui-icon {transform:rotate(180deg)}
.studio-workbench .studio-execution:has(.studio-trace-empty) {display:grid; flex:1; place-items:center; text-align:center}
@media (min-width:1200px) {
  .studio-workbench:not(.agent-chat-workspace):has(> .agent-inbox[hidden]):has(> .studio-thread-trace:not([hidden])) {
    grid-template-columns:minmax(0, 1fr) minmax(240px, .52fr);
  }
}

.top-location {position:relative; display:flex; align-items:center; gap:6px; min-width:0}
#agent-switcher {min-width:0; max-width:100%}
#agent-switcher summary {
  display:flex;
  justify-content:flex-start;
  min-width:0;
  gap:8px;
  padding:4px 7px;
  list-style:none;
}
#agent-switcher summary .breadcrumb {display:block}
#agent-switcher summary > .ui-icon {width:14px; height:14px; color:var(--subtle)}
#agent-switcher[open] summary > .ui-icon {transform:rotate(180deg)}
#agent-switcher summary::-webkit-details-marker {display:none}
#agent-switcher[open] summary {background:var(--accent-soft)}
#agent-switcher-list {
  position:absolute;
  inset-block-start:calc(100% + 5px);
  inset-inline-start:0;
  z-index:12;
  width:min(310px,calc(100vw - 32px));
  max-height:min(360px,60dvh);
  overflow:auto;
  padding:6px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 8px 24px #17234520;
}

.agent-avatar {
  --avatar-hue:230;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  background:hsl(var(--avatar-hue) 70% 94%);
  border-color:hsl(var(--avatar-hue) 48% 87%);
  color:hsl(var(--avatar-hue) 62% 31%);
  font-size:9.9px;
  line-height:1;
}
:is(.top-location, #agent-switcher-list) .agent-avatar {
  width:26px;
  height:26px;
  border-radius:6px;
}
#agent-switcher-list .sidebar-agent .agent-avatar {overflow:visible}

#sidebar-agent-context .icon-button {
  position:absolute;
  inset-inline-end:4px;
  inset-block-start:50%;
  transform:translateY(-50%);
  padding:4px;
  width:28px;
  min-height:28px;
  border-radius:6px;
  color:var(--subtle);
}
#sidebar-agent-context .icon-button .ui-icon {width:13px; height:13px}
#sidebar-agent-context .icon-button:hover:not(:disabled) {
  background:var(--accent-soft);
  border-color:transparent;
  color:var(--accent-dark);
}

.agent-registry-view .registry-table th:last-child {text-align:end}
.agent-registry-view .agent-actions {
  display:grid;
  grid-template-columns:64px 66px 148px;
  align-items:center;
  justify-content:end;
  gap:4px;
}
.registry-action-traces {grid-column:1; grid-row:1}
.registry-action-evaluate {grid-column:2; grid-row:1}
.registry-action-main {grid-column:3; grid-row:1}
@media (max-width:900px) {
  .agent-registry-view .agent-actions {grid-template-columns:repeat(2,74px)}
  .registry-action-main {grid-column:1/-1; grid-row:2}
}

.channel-brand-heading {display:flex; align-items:center; gap:8px}
.channel-brand-heading img {flex:none; object-fit:contain}

.channel-action {flex:none; width:min(156px,100%); height:var(--control-height); margin-inline-start:auto}

.memory-panel {width:100%; max-width:760px; min-width:0}
.memory-toolbar {gap:8px 14px; margin-top:12px}
.memory-toolbar > label {display:flex; align-items:center; gap:8px; min-width:0; width:min(100%, 255px); font-weight:600}
.memory-toolbar .select-control {flex:1}
.memory-toolbar .memory-count {margin:0; color:var(--muted); font-variant-numeric:tabular-nums}
.memory-panel .release-entry {overflow-wrap:anywhere}
.memory-text {white-space:pre-wrap; overflow-wrap:anywhere}

.mobile-app {
  display:grid;
  align-content:start;
  gap:16px;
  width:min(calc(100% - 32px), 680px);
  margin:0 auto;
  padding:24px 0 max(24px, env(safe-area-inset-bottom));
  overflow-wrap:anywhere;
}
.mobile-app-header {display:flex; align-items:center; justify-content:space-between; gap:12px}
.mobile-app h1 {margin:0; font-size:clamp(1.4rem, 4vw, 2rem)}
.mobile-app > label {display:grid; gap:6px; min-width:0; font-weight:620}
.mobile-app .select-trigger, .mobile-app textarea {font-size:16px}
.mobile-app .select-trigger {min-height:44px}
.mobile-app .agent-chat-composer {bottom:max(10px, env(safe-area-inset-bottom))}
.mobile-app .agent-chat-composer .button {min-height:44px; margin-inline-start:auto; display:flex}
.mobile-chat-status:empty {display:none}
.mobile-release-qr {display:block; max-width:100%; height:auto; margin-block:12px}
.mobile-release-url {display:block; overflow-wrap:anywhere; margin-block-start:10px}

.sidebar-toggle {display:none}
@media (min-width:681px) {
  .sidebar-toggle {display:inline-flex; flex:none; justify-content:center; width:30px; min-height:30px; padding:4px}
  .shell.sidebar-collapsed {grid-template-columns:62px minmax(0,1fr)}
  .sidebar-collapsed .sidebar {padding-inline:8px}
  .sidebar-collapsed .sidebar-header {justify-content:center; margin-inline:0}
  .sidebar-collapsed .sidebar .nav {justify-content:center; padding-inline:0}
  .sidebar-collapsed .sidebar :is(.brand > span, .nav > span:not(.agent-avatar)) {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .sidebar-collapsed .nav-label {position:relative; color:transparent; white-space:nowrap; overflow:hidden}
  .sidebar-collapsed .nav-label::after {
    content:'';
    position:absolute;
    inset-inline:0;
    inset-block-start:0;
    border-top:1px solid var(--border);
  }
  .sidebar-collapsed #sidebar-agent-context > .nav {padding-inline:0}
  .sidebar-collapsed #sidebar-agent-context .icon-button {
    inset-inline-end:0;
    width:13px;
    padding:0;
    justify-content:center;
  }
  .sidebar-collapsed #sidebar-agent-context .icon-button .ui-icon {width:10px; height:10px}
}

.compute-library {width:min(100%,1320px); margin-inline:auto; min-width:0}
.compute-heading {max-width:none}
.compute-resource {max-width:960px}
.compute-browser {grid-template-columns:264px minmax(0,1fr); gap:32px; padding-top:24px}
.compute-browser .dataset-benchmark-navigation {position:sticky; top:80px; max-height:calc(100dvh - 160px)}
.compute-browser .dataset-benchmark-detail {padding-inline-start:32px; max-height:none; overflow:visible}
.compute-browser .compute-machine-detail {padding:0}
.compute-browser .compute-resource {margin:0; padding:0; border:0; align-items:start}
.compute-browser .dataset-benchmark-option {padding:14px 12px; margin-bottom:8px}
.compute-choice-identity {display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; margin-bottom:6px}
.compute-choice-identity strong {flex:1 1 120px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14px; line-height:1.5}
.compute-choice-identity .pill {flex:none}
.compute-browser .dataset-benchmark-option small {margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.compute-browser .compute-summary > .connection-identity {flex-wrap:nowrap; gap:12px}
.compute-title-copy {display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; min-width:0}
.compute-browser .compute-summary h2 {max-width:100%; font-size:20px; line-height:1.4; overflow-wrap:anywhere}
.compute-browser .compute-summary .pill {flex:none}
@media (max-width:1200px) and (min-width:901px) {
  .compute-browser {grid-template-columns:220px minmax(0,1fr); gap:24px}
  .compute-browser .dataset-benchmark-detail {padding-inline-start:24px}
  .compute-browser .compute-resource {grid-template-columns:minmax(0,1fr)}
  .compute-browser .compute-connection {justify-content:flex-start}
}
@media (max-width:900px) {
  .compute-browser {grid-template-columns:minmax(0,1fr); gap:20px}
  .compute-browser .dataset-benchmark-detail {padding-inline-start:0}
  .compute-browser .compute-resource {grid-template-columns:minmax(0,1fr)}
  .compute-browser .compute-connection {justify-content:flex-start}
}
.compute-resource {display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px 24px; align-items:center}
.compute-summary, .compute-connection {display:grid; gap:6px; min-width:0; overflow-wrap:anywhere}
.compute-summary h2, .compute-summary p {margin:0}
.compute-connection {display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px}
.compute-limit {color:var(--muted)}
@media (max-width:680px) {
  .compute-resource {grid-template-columns:minmax(0,1fr)}
  .compute-connection {justify-content:flex-start}
}

.compute-settings {margin-top:12px}
.compute-settings > :not(summary) {margin-top:10px}
.compute-settings > .compute-settings-body {padding-inline-start:20px; min-width:0}
.compute-settings-body > :not(:first-child) {margin-top:10px}
.compute-settings-body > details > summary {font-size:13px; font-weight:500}
.compute-resource > :is(.compute-metrics,.compute-tool-overview,.compute-settings,.compute-pairing,.compute-limit,.compute-notice) {grid-column:1/-1; min-width:0}
.compute-resource > .compute-metrics {margin:0; grid-template-columns:minmax(100px,150px) minmax(0,1fr); font-size:13px}
.compute-resource > .compute-settings {margin:0; border-top:1px solid var(--border); border-bottom:0; padding:14px 0 0}
.compute-summary > .connection-identity {flex-wrap:nowrap; align-items:flex-start}
.compute-summary > .connection-identity > .ui-icon {flex-shrink:0; margin-top:2px}
.compute-resource > .compute-settings > summary {cursor:pointer; font-weight:600}
.compute-resource .compute-settings details > summary {cursor:pointer}
.compute-runner-update > .module-form {margin-top:0}
.compute-tool-overview {display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px}
.compute-tool-overview > strong {margin-right:4px}
.compute-notice {margin:0; overflow-wrap:anywhere}
.compute-notice:empty {display:none}
.compute-pairing {border:1px solid var(--border); border-radius:8px; padding:16px; background:var(--surface)}
.compute-section-heading {display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px}
.compute-section-heading :is(h2,h3) {margin:0; min-width:0; overflow-wrap:anywhere; font-size:15px}
.compute-section-heading .button {flex-shrink:0}
.compute-pairing > .panel,.compute-registration > .panel {padding:0; border:0; background:transparent; box-shadow:none}
.compute-resource pre {max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere}
@media (max-width:680px) {
  .compute-resource > .compute-metrics {grid-template-columns:minmax(0,1fr); gap:4px}
  .compute-resource > .compute-metrics dd {margin-bottom:8px}
  .compute-section-heading {flex-wrap:wrap}
  .compute-settings-body .compute-tool-table :is(th,td) {padding:8px 4px}
  .compute-settings-body .compute-tool-table .pill {padding-inline:4px; gap:4px; max-width:100%; box-sizing:border-box}
}

.compute-metrics {display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap:8px 16px; margin:0 0 14px}
.compute-metrics dt {color:var(--muted)}
.compute-metrics dd {margin:0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums}

.compute-machine-name {color:var(--muted); overflow-wrap:anywhere}

.compute-capabilities {grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.compute-tool-table {width:100%; table-layout:fixed; font-size:12px}
.compute-tool-table :is(th,td) {padding:8px 6px; text-align:left; vertical-align:top; white-space:normal; overflow-wrap:anywhere}
.compute-tool-table small {display:block; color:var(--muted); font-weight:400; margin-top:4px; line-height:1.5}
.compute-execution-scope {flex-basis:100%; color:var(--muted); overflow-wrap:anywhere; line-height:1.5}
.compute-tool-table .pill {white-space:normal}

.agent-chat-execution {min-width:0; color:var(--muted); font-size:.85rem}
.agent-chat-execution,.agent-chat-execution-step {border:0; padding:0; margin:0}
.agent-chat-execution > summary,.agent-chat-execution-step > summary {
  display:flex; align-items:center; gap:8px;
  list-style:none; cursor:pointer; border-radius:6px; padding:4px 8px; overflow-wrap:anywhere
}
.agent-chat-execution summary::-webkit-details-marker {display:none}
.agent-chat-execution summary:hover {background:var(--accent-soft)}
.agent-chat-execution-heading {display:flex; flex-wrap:wrap; min-width:0; gap:4px 8px; align-items:center; font-weight:400}
.agent-chat-execution-heading strong {color:var(--ink); font-weight:650}
.agent-chat-execution-heading [data-status="error"] {color:#a82440}
.agent-chat-execution-list {display:grid; gap:3px; padding:4px 8px}
.agent-chat-execution-step > small {overflow-wrap:anywhere}
.agent-chat-execution-payload {min-width:0; margin:8px 0; font-size:.85rem}
.agent-chat-execution-payload pre {max-width:100%; max-height:280px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:10px; border-radius:8px}
.execution-input {display:grid; gap:12px; margin-top:8px; min-width:0}
.execution-input-fields {grid-template-columns:minmax(80px,25%) minmax(0,1fr)}
.execution-input-fields :is(dt,dd) {min-width:0; white-space:pre-wrap; overflow-wrap:anywhere}
.execution-code {min-width:0}
.execution-code-header {display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; min-width:0}
.execution-code-header > strong {color:var(--ink); overflow-wrap:anywhere}
.execution-code-header > small {margin-inline-end:auto}
.agent-chat-execution-payload .execution-code-header .button {min-height:28px; padding:4px 8px; font-size:12px}
.agent-chat-execution-payload .execution-code > pre {margin:6px 0 0; max-height:360px; white-space:pre; overflow-wrap:normal; tab-size:4}
.execution-copy-status:empty {display:none}
.execution-raw-input {margin-top:10px}
.execution-raw-input > summary {cursor:pointer}

.studio-artifacts {width:100%; min-width:0; font-size:13px}
.studio-artifact-panel-header {display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:1; background:var(--surface)}
.studio-artifact-panel-header h2 {margin:0; font-size:14px; font-weight:600}
.studio-artifact-panel-header .icon-button {width:32px; height:32px; min-height:32px; padding:6px; flex:none}
.studio-artifact-panel-header .icon-button > span {display:none}
.studio-artifact-content {min-width:0; max-width:720px; margin-inline:auto}
.studio-artifact-heading {display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px 8px; margin-bottom:20px}
.studio-artifact-heading .studio-artifact-back {grid-column:1; grid-row:1}
.studio-artifact-heading > a {grid-column:3; grid-row:1}
.studio-artifact-heading > h3 {grid-column:1 / -1; grid-row:2}
.studio-artifact-heading h3 {margin:0; font-size:15px; overflow-wrap:anywhere}
.studio-artifact-heading .button {white-space:nowrap}
.studio-artifact-back .ui-icon {transform:rotate(180deg)}
.studio-artifact-toolbar {display:flex; flex-wrap:wrap; gap:12px; align-items:end; max-width:720px}
.studio-artifact-source {display:grid; gap:6px; flex:1; min-width:0; max-width:480px}
.studio-artifact-source select {width:100%; min-width:0}
.studio-artifact-scope,.studio-artifact-facts {color:var(--muted); line-height:1.6; overflow-wrap:anywhere; margin:12px 0 20px}
.studio-artifact-notice {color:var(--muted); line-height:1.6; margin:12px 0}
.studio-artifact-notice:empty {display:none}
.studio-artifact-notice.is-error {color:var(--error-text,#a23e3d)}
.studio-artifact-list {padding:0; margin:0; list-style:none; border-top:1px solid var(--border)}
.studio-artifact-list > li {border-bottom:1px solid var(--border)}
.studio-artifact-file {display:grid; grid-template-columns:20px minmax(0,1fr) 16px; grid-template-rows:auto auto; gap:5px 12px; align-items:center; width:100%; border:0; background:transparent; border-radius:0; padding:14px 4px; text-align:start; color:var(--ink); cursor:pointer}
.studio-artifact-file:hover {background:var(--accent-soft)}
.studio-artifact-file > .ui-icon:first-child {grid-column:1; grid-row:1 / 3; color:var(--muted)}
.studio-artifact-file > .ui-icon:last-child {grid-column:3; grid-row:1 / 3; color:var(--muted)}
.studio-artifact-file-name {grid-column:2; min-width:0; display:grid; gap:4px; overflow-wrap:anywhere}
.studio-artifact-file-name small,.studio-artifact-file-meta {color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums}
.studio-artifact-file-meta {grid-column:2; overflow-wrap:anywhere}
.studio-artifact-preview {min-width:0}
.studio-artifact-viewer {min-width:0; display:grid; gap:12px}
.studio-artifact-html {display:block; width:100%; min-width:0; height:62dvh; min-height:300px; border:1px solid var(--border); border-radius:6px; background:white}
.chat-artifact-reference {display:inline; padding:0; border:0; border-radius:2px; background:transparent; color:var(--accent-dark); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; overflow-wrap:anywhere}
.chat-artifact-reference:focus-visible {outline:2px solid var(--accent); outline-offset:3px}
.studio-artifact-viewer img {display:block; max-width:100%; max-height:68dvh; object-fit:contain; margin-inline:auto}
.studio-artifact-viewer pre {max-width:100%; max-height:65dvh; margin:0; padding:12px; overflow:auto; white-space:pre; overflow-wrap:normal; tab-size:4}
.studio-artifact-table {max-width:100%; max-height:65dvh; overflow:auto}
.studio-artifact-table table {width:100%; margin:0; font-size:13px}
.studio-artifact-table :is(th,td) {padding:10px 12px; text-align:start; white-space:pre; border-bottom:1px solid var(--border)}
.studio-artifact-table th {position:sticky; top:0; background:var(--surface); color:var(--ink)}

/* Studio builds the agent in the main column and keeps test runs in a dock. */
.studio-split {display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:20px; width:min(100%, 1440px); justify-self:center}
main:has(> #platform-content:not([hidden]) .studio-split-build) {--studio-header-height:67px}
main:has(> #platform-content:not([hidden]) .studio-split-build) > .top {
  min-height:var(--studio-header-height); position:sticky; top:0; z-index:21
}
.studio-split-build,.studio-split-debug {min-width:0}
.studio-split-build {width:min(100%,860px); justify-self:center}
.studio-split-header {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; min-height:44px; margin-bottom:12px}
.studio-split-header h1 {margin:0; min-width:0; font-size:clamp(1.25rem, 2vw, 1.75rem); line-height:1.2; overflow-wrap:anywhere}
.studio-split-header button {flex:none}
.studio-config-embedded {grid-template-columns:minmax(0,1fr)}
.studio-config-embedded .studio-config-footer {
  position:static; padding-inline:0; padding-bottom:0; background:transparent;
  border:0; border-top:1px solid var(--border); border-radius:0
}
@supports (field-sizing:content) {
  .studio-config-embedded textarea[name="instructions"] {
    field-sizing:content; width:100%; height:auto; max-height:none; resize:none;
  }
}
.studio-split .studio-workbench {display:flex; flex-direction:column; height:auto; min-height:0}
.studio-split .studio-workbench > .agent-inbox {max-height:140px; overflow:auto}
.studio-split .studio-workbench > .agent-config-rail {position:static; width:auto; max-height:320px; overflow:auto}
.studio-split .studio-workbench .agent-chat-builder {min-height:420px}
.studio-split .studio-workbench .agent-chat-conversation {max-height:420px}
@media (min-width:1100px) {
  .studio-split:has(.studio-split-debug:not([hidden])) {grid-template-columns:minmax(0,1fr) minmax(360px,44%)}
  .studio-split-debug:not([hidden]) {
    position:sticky; top:calc(var(--studio-header-height, var(--workspace-header-height)) + 16px);
    height:calc(100dvh - var(--studio-header-height, var(--workspace-header-height)) - 48px);
    display:flex; flex-direction:column; overflow:auto
  }
  .studio-split-debug-header {flex:none}
  .studio-split-debug > .studio-workbench {flex:1}
  .studio-split-debug .studio-workbench .agent-chat-builder {flex:1; min-height:0}
}

.studio-split-tabs {display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:16px}
.studio-split-tabs [aria-pressed="true"] {color:var(--accent); border-bottom:2px solid var(--accent); border-radius:0}
.studio-split-sessions .agent-inbox {max-height:none; min-width:0}
.studio-split-debug-header {display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; margin-bottom:12px}
.studio-split-debug-header h2 {margin:0; font-size:1rem}
.studio-split-debug-header .section-actions {gap:4px}
@media (min-width:1100px) {
  .studio-split-debug .studio-workbench .agent-chat-conversation {max-height:none}
}

.studio-split-debug-header .icon-button {flex:none}
.studio-split-debug-header .icon-button > span {display:none}

.studio-split-section-bar {display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; justify-content:space-between; border-bottom:1px solid var(--border); margin-bottom:16px}
.studio-split-section-bar .studio-split-tabs {border:0; margin:0}
.studio-split-management .agent-chat-actions {display:flex; flex-wrap:wrap; gap:4px}
.studio-split-management .studio-icon-action > span {display:none}

.studio-split-management [aria-label="Bind Compute"] {display:none}

.benchmark-run {
  margin-block:10px; padding:0 16px;
  border:1px solid var(--border); border-radius:12px; overflow-wrap:anywhere
}
.benchmark-run[open] {padding-bottom:16px}
.benchmark-run > summary, .benchmark-case > summary {
  display:grid; grid-template-columns:12px minmax(0,1fr) auto;
  align-items:center; column-gap:10px; cursor:pointer
}
.benchmark-run > summary::-webkit-details-marker, .benchmark-case > summary::-webkit-details-marker {display:none}
.benchmark-run > summary::before, .benchmark-case > summary::before {
  content:""; width:6px; height:6px; border:solid var(--muted); border-width:0 1.5px 1.5px 0;
  transform:rotate(-45deg)
}
.benchmark-run[open] > summary::before, .benchmark-case[open] > summary::before {transform:rotate(45deg)}
.benchmark-run > summary {padding-block:14px}
.benchmark-run > summary small {grid-column:2 / -1; margin-top:5px; color:var(--muted); font-weight:400}
.benchmark-run > p, .benchmark-case > p {color:var(--muted); margin:8px 0}
.benchmark-case.release-entry {
  margin-top:0; padding:0 10px; border-top:1px solid var(--border); overflow-wrap:anywhere
}
.benchmark-case[open] {padding-bottom:12px; background:var(--accent-soft); border-radius:6px}
.benchmark-case > summary {min-height:42px; padding-block:6px; font-weight:600}
.benchmark-case .pill, .benchmark-run .pill {max-width:100%; text-align:start}
.benchmark-case > a {justify-self:start}
.benchmark-execution-log {margin-top:10px}
.benchmark-timeline {display:grid; gap:4px; padding-inline-start:14px; margin:8px 0 0; list-style:none; border-inline-start:2px solid var(--border)}
.benchmark-timeline li {padding:6px 0; min-width:0}
.benchmark-timeline small {display:block; color:var(--muted); overflow-wrap:anywhere}
.benchmark-timeline pre {max-height:220px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere}
@media (max-width:540px) {
  .benchmark-run {padding-inline:10px}
  .benchmark-run > summary, .benchmark-case > summary {grid-template-columns:10px minmax(0,1fr); row-gap:5px}
  .benchmark-run > summary .pill, .benchmark-case > summary .pill {grid-column:2}
}

/* Environment management: choose an environment, then manage its live release. */
.release-environments, .environment-heading {width:min(100%,1120px); margin-inline:auto; overflow-wrap:anywhere}
.release-environments {display:block}
.environment-heading {display:flex; align-items:flex-start; flex-wrap:wrap; gap:16px; margin-bottom:28px}
.environment-heading > div:first-child {flex:1; min-width:0}
.environment-heading > div:first-child p {max-width:68ch}
.environment-agent-choice {flex-basis:100%; max-width:340px; margin:0}
.environment-heading > .button {min-height:34px}
.environment-browser {display:grid; grid-template-columns:220px minmax(0,1fr); gap:32px; min-width:0; align-items:start; border-top:1px solid var(--border); padding-top:24px}
.environment-mobile-choice {display:none}
.environment-navigation {display:grid; align-content:start; gap:8px; position:sticky; top:80px; min-width:0}
.environment-choice {width:100%; min-height:72px; padding:12px 14px; border:1px solid transparent; border-radius:8px; background:transparent; text-align:left; color:var(--ink); font:inherit}
.environment-choice strong {display:block; line-height:1.5; font-size:14px; font-weight:600; overflow-wrap:anywhere}
.environment-choice small {display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.5}
.environment-choice:hover {background:var(--canvas)}
.environment-choice[aria-selected="true"] {border-color:var(--border); background:var(--accent-soft); color:var(--accent-dark)}
.environment-choice[aria-selected="true"] small {color:inherit}
.environment-content {min-width:0; border-inline-start:1px solid var(--border); padding-inline-start:32px}
.environment-content > .environment-workspace {margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; min-width:0}
.environment-header {display:flex; align-items:flex-start; justify-content:space-between; gap:16px 24px; margin-bottom:24px}
.environment-identity {min-width:0}
.environment-title {display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px}
.environment-title h2 {font-size:22px; line-height:1.4; margin:0; overflow-wrap:anywhere}
.environment-identity p {font-size:12px; line-height:1.6; margin-top:8px; max-width:64ch}
.environment-publish-actions {display:grid; justify-items:end; gap:8px; flex:none; max-width:45%}
.environment-publish-actions .button {min-height:36px}
.environment-publish-actions small {font-size:11px; line-height:1.5; text-align:right; color:var(--muted)}
.environment-current-release {display:flex; align-items:flex-start; justify-content:space-between; gap:16px 24px; background:var(--canvas); border:1px solid var(--border); border-radius:8px; padding:20px; margin-bottom:24px}
.environment-current-info {min-width:0; flex:1}
.environment-current-info h3 {font-size:12px; color:var(--muted); font-weight:500; margin:0 0 8px}
.environment-current-name {display:block; font-size:16px; font-weight:600; line-height:1.5; overflow-wrap:anywhere}
.environment-current-info > p {font-size:12px; line-height:1.7; margin-top:10px}
.environment-current-release > .button {flex:none; min-height:32px; font-size:12px}
.environment-current-facts {display:flex; flex-wrap:wrap; gap:12px 28px; margin:14px 0 0; font-size:12px; line-height:1.6}
.environment-current-facts dt {color:var(--muted); margin-bottom:3px; font-size:11px}
.environment-current-facts dd {margin:0; color:var(--ink); overflow-wrap:anywhere}
.environment-release-rule {border-top:1px solid var(--border); padding-top:10px}
.environment-pending {font-weight:600; color:var(--ink)}
.environment-detail-tabs {display:flex; gap:24px; border-bottom:1px solid var(--border); margin-bottom:24px}
.environment-detail-tab {display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 0 10px; margin:0 0 -1px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font:inherit; font-size:13px; color:var(--muted)}
.environment-detail-tab:hover {color:var(--ink)}
.environment-detail-tab[aria-selected="true"] {border-bottom-color:var(--accent); color:var(--ink); font-weight:600}
.environment-tab-count {font-size:11px; font-weight:500; background:var(--canvas); border-radius:4px; padding:1px 5px; color:var(--muted)}
.environment-channels, .environment-history {min-width:0}
.environment-channels > h3, .environment-history > h3 {font-size:15px; line-height:1.5; margin-bottom:6px}
.environment-section-description {font-size:12px; line-height:1.7; max-width:68ch; margin-bottom:20px}
.environment-channels > .module-panel {border:0; border-top:1px solid var(--border); border-radius:0; padding:20px 0; box-shadow:none; margin:0; background:transparent}
.environment-channels .channel-brand-heading {font-size:14px}
.environment-channels h4.channel-brand-heading {margin:0}
.environment-channels .wecom-channel-heading h5 {margin:0; font-size:13px; line-height:1.5; font-weight:600; min-height:var(--control-height); align-content:center}
.environment-version {display:flex; align-items:center; justify-content:space-between; gap:16px 24px; padding:18px 0; border-top:1px solid var(--border)}
.environment-version > div:first-child {min-width:0; overflow-wrap:anywhere}
.environment-version strong {font-size:13px; line-height:1.6}
.environment-version p {font-size:12px; color:var(--muted); margin-top:5px; line-height:1.6}
.environment-version small {display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.6}
.environment-version .section-actions {flex:none; justify-content:flex-end; max-width:46%}
.environment-version .button {min-height:32px; font-size:12px}
.environment-content > .environment-workspace > h2 {font-size:22px; margin-bottom:18px}
@media(max-width:1100px) {
  .environment-browser {grid-template-columns:180px minmax(0,1fr); gap:24px}
  .environment-content {padding-inline-start:24px}
}
@media(max-width:800px) {
  .environment-browser {grid-template-columns:minmax(0,1fr); gap:24px; padding-top:20px}
  .environment-navigation {display:none}
  .environment-mobile-choice {display:grid; margin:0; max-width:100%}
  .environment-content {border-inline-start:0; padding-inline-start:0}
  .environment-heading {margin-bottom:20px}
}
@media(max-width:600px) {
  .environment-header {flex-direction:column; gap:16px}
  .environment-publish-actions {justify-items:start; max-width:100%; gap:6px}
  .environment-publish-actions small {text-align:left}
  .environment-current-release {padding:16px; flex-direction:column; gap:16px}
  .environment-detail-tabs {gap:24px; margin-bottom:20px}
  .environment-detail-tab {min-height:44px}
  .environment-version {align-items:flex-start; flex-direction:column; gap:12px}
  .environment-version .section-actions {justify-content:flex-start; max-width:100%}
}

/* A quiet reply indicator replaces model lifecycle badges in Studio. */
.agent-chat-typing {position:relative; display:inline-flex; align-items:center; gap:4px; min-height:24px; color:var(--muted)}
.agent-chat-typing-label {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.agent-chat-typing-dot {width:4px; height:4px; border-radius:50%; background:currentColor; opacity:.35; animation:agent-typing-pulse 1.4s ease-in-out infinite}
.agent-chat-typing-dot:nth-last-child(2) {animation-delay:.16s}
.agent-chat-typing-dot:last-child {animation-delay:.32s}
@keyframes agent-typing-pulse {0%,70%,100% {opacity:.35} 35% {opacity:.8}}
@media (prefers-reduced-motion:reduce) {.agent-chat-typing-dot {animation:none; opacity:.55}}

/* Compute tool capability, permission and availability diagnostics. */
.compute-tool-table {width:100%; table-layout:fixed; font-size:12px}
.compute-tool-table :is(th,td) {padding:8px 6px; text-align:left; vertical-align:top; white-space:normal; overflow-wrap:anywhere}
.compute-tool-table small {display:block; color:var(--muted); font-weight:400; margin-top:4px; line-height:1.5}
.compute-execution-scope {flex-basis:100%; color:var(--muted); overflow-wrap:anywhere; line-height:1.5}
.compute-tool-table .pill {white-space:normal}

/* Trace browsing: compact subjects and a persistent conversation detail pane. */
.shell main:has(> #tracing-content.is-trace-explorer:not([hidden])) {display:flex; flex-direction:column; height:100dvh; overflow:hidden}
.shell main:has(> #tracing-content.is-trace-explorer:not([hidden])) > .top {position:relative; flex:none}
.shell #tracing-content.is-trace-explorer:not([hidden]) {display:flex; flex-direction:column; flex:1; width:100%; max-width:1680px; min-height:0; padding-block:24px}
.is-trace-explorer #trace-heading {flex:none; margin-bottom:16px}
.is-trace-explorer #trace-panel {display:flex; flex-direction:column; flex:1; min-height:0; padding:0; border-top:1px solid var(--border)}
.is-trace-explorer #trace-panel > .panel-head {flex:none; padding:12px 0; gap:10px 20px; align-items:center; flex-wrap:wrap}
.is-trace-explorer #trace-panel > .panel-head h2 {display:none}
.is-trace-explorer #count {margin:0; color:var(--muted); font-size:12px; white-space:nowrap}
.is-trace-explorer #trace-toolbar-actions {flex:1; justify-content:flex-end; gap:8px; flex-wrap:wrap; min-width:0}
.is-trace-explorer #trace-context-filters {gap:8px; min-width:0}
.is-trace-explorer #trace-project-filter {max-width:220px; min-width:0}
.is-trace-explorer #trace-project-filter[hidden] {display:none}
.is-trace-explorer #search {width:220px; max-width:100%; min-width:120px; height:34px; min-height:34px}
.is-trace-explorer #trace-panel .select-trigger {min-height:34px; height:34px}
.is-trace-explorer .trace-mode {gap:2px; padding:2px; border:1px solid var(--border); border-radius:6px; background:var(--canvas)}
.is-trace-explorer .trace-mode .button {border:0; background:transparent; min-height:28px; padding:4px 10px}
.is-trace-explorer .trace-mode .button[aria-pressed="true"] {background:var(--accent-soft); color:var(--accent-dark)}
.is-trace-explorer #trace-session-list:not([hidden]) {display:flex; flex:1; min-height:0; border-top:1px solid var(--border)}
.is-trace-explorer #trace-agent-groups:not([hidden]) {min-height:0; overflow:auto; flex:1}
.is-trace-explorer #notice:empty {display:none}
.is-trace-explorer #notice {flex:none; font-size:12px; margin-block:8px 0}
.trace-explorer-workspace {display:grid; grid-template-columns:minmax(280px,350px) minmax(0,1fr); width:100%; height:100%; min-height:0; overflow:hidden}
.trace-session-rail {display:flex; flex-direction:column; min-width:0; min-height:0; border-inline-end:1px solid var(--border); background:var(--surface)}
.trace-session-options {flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin}
.trace-session-option {display:block; width:100%; padding:15px 16px; border:0; border-bottom:1px solid var(--border); border-inline-start:2px solid transparent; color:var(--ink); background:transparent; text-align:left; font:inherit; cursor:pointer}
.trace-session-option:hover {background:var(--canvas)}
.trace-session-option[aria-selected="true"] {background:var(--accent-soft); border-inline-start-color:var(--accent)}
.trace-session-option:focus-visible {outline:2px solid var(--accent); outline-offset:-2px}
.trace-session-option-heading {display:flex; align-items:flex-start; gap:8px; min-width:0}
.trace-list-state {width:6px; height:6px; flex:none; margin-top:7px; border-radius:50%; background:var(--subtle)}
.trace-list-state.success {background:#287b54}
.trace-list-state.error {background:#c43e46}
.trace-session-subject {font-size:13px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.trace-session-response {display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.5; margin:6px 0 0 14px; overflow-wrap:anywhere}
.trace-session-option-meta {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 10px; margin:8px 0 0 14px; color:var(--muted); font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums}
.trace-session-option-meta time {white-space:nowrap}
.trace-unassigned {display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border-top:1px solid var(--border); font-size:11px; color:var(--muted)}
.trace-unassigned .button {padding:5px 6px; font-size:11px; min-height:30px; flex:none}
.trace-session-detail {display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden}
.trace-conversation-heading {display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; flex:none; padding:18px 24px}
.trace-conversation-heading > div:first-of-type {flex:1; min-width:0}
.trace-conversation-heading h2 {font-size:16px; margin:0; font-weight:600; line-height:1.5; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.trace-conversation-heading p {margin:5px 0 0; font-size:12px; color:var(--muted); overflow-wrap:anywhere}
.trace-conversation-heading .button {min-height:32px; padding:6px 10px; font-size:12px}
.trace-list-back {display:none}
.trace-session-metrics {flex:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 24px; padding:14px 0; border-block:1px solid var(--border); gap:12px}
.trace-session-metrics dt {font-size:11px; color:var(--muted)}
.trace-session-metrics dd {font-size:15px; margin:6px 0 0; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere}
.trace-session-metrics small {font-size:10px; color:var(--muted); font-weight:400}
.trace-conversation {min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:0 24px 24px}
.trace-conversation-turn {padding:22px 0; border-bottom:1px solid var(--border); min-width:0}
.trace-conversation-turn.is-match {border-inline-start:2px solid var(--accent); padding-inline-start:12px}
.trace-turn-heading {display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:18px; font-size:11px; color:var(--muted)}
.trace-turn-heading > div {display:flex; align-items:center; flex-wrap:wrap; gap:7px 12px}
.trace-turn-heading strong {color:var(--ink); font-size:12px}
.trace-turn-heading .pill {font-size:10px; padding:3px 7px}
.trace-inspect-run {color:var(--accent-dark); white-space:nowrap; font-size:12px; font-weight:550; text-decoration:none}
.trace-inspect-run:hover {text-decoration:underline}
.trace-turn-input, .trace-turn-output {min-width:0; margin-block:14px}
.trace-speaker {display:block; color:var(--muted); font-size:11px; font-weight:600; margin-bottom:7px}
.trace-turn-input > p, .trace-turn-output > p {margin:0; line-height:1.7; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere}
.trace-turn-input > p {background:var(--canvas); border-inline-start:2px solid var(--border); padding:10px 12px}
.trace-turn-output .agent-chat-markdown {font-size:13px; line-height:1.75}
.trace-recording-empty {color:var(--muted)}
.trace-delivery-status {display:block; color:var(--muted); font-size:11px; margin-top:10px}
.trace-session-identifiers {margin-top:18px; color:var(--muted); font-size:11px}
.trace-session-identifiers p {overflow-wrap:anywhere}
@media(max-width:1100px) {
  .trace-explorer-workspace {grid-template-columns:minmax(260px,300px) minmax(0,1fr)}
  .is-trace-explorer #trace-toolbar-actions {justify-content:flex-start}
}
@media(max-width:900px) {
  .shell #tracing-content.is-trace-explorer:not([hidden]) {padding:20px 20px 16px}
  .trace-explorer-workspace {grid-template-columns:minmax(0,1fr)}
  .trace-session-rail {border-inline-end:0}
  .trace-session-detail {display:none}
  .trace-explorer-workspace.is-showing-detail .trace-session-rail {display:none}
  .trace-explorer-workspace.is-showing-detail .trace-session-detail {display:flex}
  .trace-list-back {display:inline-flex}
  .trace-list-back .ui-icon {transform:rotate(180deg)}
  .trace-conversation-heading {padding:14px 0}
  .trace-session-metrics {margin-inline:0}
  .trace-conversation {padding:0 0 16px}
  .trace-session-option {padding-inline:12px}
}
@media(max-width:600px) {
  .is-trace-explorer #trace-panel > .panel-head {align-items:flex-start; gap:10px}
  .is-trace-explorer #trace-toolbar-actions {flex-basis:100%}
  .is-trace-explorer #search {order:3; width:100%}
  .is-trace-explorer #trace-context-filters {flex-wrap:wrap; max-width:100%}
  .is-trace-explorer #trace-project-filter {max-width:100%}
  .trace-conversation-heading {gap:10px}
  .trace-conversation-heading > .trace-list-back {flex-basis:100%; width:max-content; justify-content:flex-start; padding-inline:0}
  .trace-conversation-heading .section-actions {margin-inline-start:auto}
  .trace-session-metrics {grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-block:12px}
}

/* Detailed runs open beside their conversation without a modal backdrop. */
.shell #tracing-content.is-trace-explorer:has(#trace-dock:not([hidden])) {max-width:2400px}
.is-trace-explorer #trace-panel.is-inspecting {display:grid; grid-template-columns:minmax(0,1fr) clamp(360px,36%,640px); grid-template-rows:auto minmax(0,1fr)}
.is-inspecting .trace-explorer-workspace {grid-template-columns:clamp(220px,18vw,280px) minmax(0,1fr)}
.is-trace-explorer #trace-panel.is-inspecting > .panel-head {grid-column:1/-1; grid-row:1}
.is-trace-explorer #trace-panel.is-inspecting > #trace-session-list {grid-column:1; grid-row:2}
#trace-dock {min-width:0; min-height:0; overflow:hidden; border-top:1px solid var(--border); border-inline-start:1px solid var(--border); grid-column:2; grid-row:2; background:var(--surface)}
.trace-inspector.is-docked[open] {position:static; inset:auto; display:flex; flex-direction:column; width:100%; height:100%; max-width:none; max-height:none; margin:0; border:0; border-radius:0; padding:0; box-shadow:none; overflow:hidden; container:trace-inspector / inline-size}
.trace-inspector.is-docked > .modal-head {position:static; flex:none; display:flex; align-items:center; gap:8px; min-width:0; min-height:56px; padding:10px 16px}
.trace-inspector.is-docked > .modal-head h2 {flex:1; min-width:0; margin:0; font-size:15px; line-height:1.4}
.trace-inspector.is-docked > .modal-head form {flex:none; display:flex; margin:0}
.trace-inspector.is-docked > .modal-head .icon-button {width:32px; min-height:32px; padding:6px; border:0; background:transparent; color:var(--muted)}
.trace-inspector.is-docked > .modal-head .icon-button:hover {background:var(--canvas); color:var(--ink)}
.trace-inspector.is-docked #trace-body {display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden}
.trace-inspector.is-docked .inspector-summary {flex:none; min-width:0; padding:12px 16px}
.trace-inspector.is-docked .inspector-summary > div:first-child {min-width:0; flex:1}
.trace-inspector.is-docked .inspector-summary input {display:block; width:100%; max-width:100%; margin-top:8px}
.trace-inspector.is-docked .trace-id {font-size:11px}
.trace-inspector.is-docked .inspector-split {display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden}
.trace-inspector.is-docked :is(.step-detail,.step-tree) {min-height:0; overflow:auto; scrollbar-width:thin; overscroll-behavior:contain}
.trace-inspector.is-docked .step-tree {order:-1; flex:none; border:0; border-bottom:1px solid var(--border); padding:12px 16px; background:var(--canvas)}
.trace-inspector.is-docked .step-tree > div {max-height:176px; overflow:auto; scrollbar-width:thin}
.trace-inspector.is-docked .inspector-label {margin:0; padding:0 0 8px; color:var(--muted)}
.trace-inspector.is-docked .step-detail {flex:1; min-height:0; padding:16px}
.trace-inspector.is-docked .trace-step-heading {margin-bottom:8px}
.trace-inspector.is-docked .trace-step-heading h3 {margin:0; font-size:13px; line-height:1.5}
.trace-inspector.is-docked .trace-meta {gap:6px 8px}
.trace-inspector.is-docked :is(.trace-step-facts,.trace-original-payload) {margin:0; padding:12px 0; border-top:1px solid var(--border); font-size:12px}
.trace-inspector.is-docked :is(.trace-step-facts,.trace-original-payload) > summary {font-weight:500; line-height:1.5; color:var(--muted)}
.trace-inspector.is-docked .step-row:hover {background:var(--surface)}
.trace-inspector.is-docked .step-row[aria-current] {background:var(--accent-soft); border-color:transparent; color:var(--accent-dark)}
.trace-inspector.is-docked .trace-payload-section {border:0; border-radius:0; padding:12px 0; background:transparent}
.trace-inspector.is-docked .trace-payload-section + .trace-payload-section {border-top:1px solid var(--border)}
.trace-inspector.is-docked .trace-payload-section pre {max-width:100%; overflow:auto}
.trace-run-context {font-size:11px; color:var(--muted); overflow-wrap:anywhere}
.trace-run-metrics {display:flex; flex-wrap:wrap; gap:6px 20px; margin:10px 0 0; font-variant-numeric:tabular-nums}
.trace-run-metrics > div {display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 6px; min-width:0}
.trace-run-metrics dt {font-size:11px; color:var(--muted)}
.trace-run-metrics dd {margin:0; font-size:12px; font-weight:600; overflow-wrap:anywhere}
.trace-inspector-actions {display:flex; flex:none; gap:4px}
.trace-inspector-actions .button {width:32px; min-height:32px; padding:6px; color:var(--muted)}
.trace-inspector-actions .button > span {display:none}
.trace-execution-summary {grid-template-columns:max-content auto; justify-content:start; column-gap:24px; row-gap:6px; margin:0 0 16px; font-size:12px; font-variant-numeric:tabular-nums}
.trace-original-payload {margin-top:16px; font-size:12px}
.trace-original-payload > summary {cursor:pointer; color:var(--muted)}
.trace-dock-back {display:none}
.trace-dock-back .ui-icon {transform:rotate(180deg)}
.trace-conversation-turn[aria-current="true"] > .trace-turn-heading {background:var(--accent-soft); padding:8px; border-radius:4px}
.trace-inspect-run[aria-expanded="true"] {text-decoration:underline; font-weight:600}
@media(max-width:1279px) {
  .is-inspecting .trace-explorer-workspace {grid-template-columns:minmax(0,1fr)}
  .is-inspecting .trace-session-rail {display:none}
}
@media(max-width:1100px) {
  .is-trace-explorer #trace-panel.is-inspecting {grid-template-columns:minmax(0,1fr)}
  .is-trace-explorer #trace-panel.is-inspecting > #trace-session-list {display:none}
  .is-trace-explorer #trace-panel.is-inspecting > #trace-dock {grid-column:1}
  .trace-inspector.is-docked .trace-dock-back {display:inline-flex; gap:6px; padding:4px 6px; font-size:12px}
}

/* WorkBuddy Bench reuses the existing dataset case browser and task content column. */
.dataset-entry[data-benchmark="workbuddy"] {overflow-wrap:anywhere}
.workbuddy-filters {grid-template-columns:minmax(0,2fr) minmax(180px,1fr); gap:16px; max-width:760px; margin:20px 0 16px; align-items:end}
.workbuddy-pagination {margin:0 0 16px; max-width:760px}
.workbuddy-pagination [role=status] {margin-inline-end:auto; color:var(--muted); font-size:12px}
.workbuddy-task-browser .dataset-benchmark-option strong {display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.workbuddy-task-text {white-space:pre-wrap; overflow-wrap:anywhere}
.workbuddy-content pre, .workbuddy-test-list {white-space:pre-wrap; overflow-wrap:anywhere}
.workbuddy-test-list {padding-inline-start:20px; font-size:12px; line-height:1.8}
.workbuddy-source-preview, .workbuddy-file-list {max-height:480px; overflow:auto}
@media(max-width:720px) {.workbuddy-filters {grid-template-columns:minmax(0,1fr)}}

/* WorkBuddy execution uses the shared experiment and dataset task columns. */
.workbuddy-run {overflow-wrap:anywhere}
.workbuddy-run .experiment-run-meta {display:grid; grid-template-columns:120px minmax(0,1fr); gap:8px 20px; margin:20px 0}
.workbuddy-run .experiment-run-meta dd {margin:0}
.workbuddy-run pre {white-space:pre-wrap; overflow-wrap:anywhere}
.workbuddy-verdict {padding:12px 0; border-bottom:1px solid var(--line)}
.workbuddy-verdict .pill {margin-inline-start:8px}

/* Compact file tabs and a preview that uses the available panel height. */
.studio-artifacts {display:flex; flex-direction:column}
.studio-artifact-panel-header {min-height:42px; margin:0; padding:0 8px 0 12px; gap:8px}
.studio-artifact-tabs {display:flex; align-self:stretch; gap:4px; min-width:0}
.studio-artifact-tab {min-height:42px; padding:8px 12px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--muted); font:inherit; font-size:13px; cursor:pointer}
.studio-artifact-tab[aria-selected="true"] {color:var(--ink); border-bottom-color:var(--accent); font-weight:600}
.studio-artifact-tab:disabled {opacity:.45; cursor:default}
.studio-artifact-tab:focus-visible {outline:2px solid var(--accent); outline-offset:-3px}
.studio-artifact-content {display:flex; flex-direction:column; flex:1; width:100%; max-width:none; min-height:0; margin:0; overflow:hidden}
.studio-artifact-files-panel {min-height:0; overflow:auto; padding:16px; overscroll-behavior:contain; scrollbar-width:thin}
.studio-artifact-preview-panel {display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; overflow:hidden}
.studio-artifact-files-panel[hidden],.studio-artifact-preview-panel[hidden] {display:none}
.studio-artifact-heading {display:flex; flex:none; align-items:center; gap:8px; min-height:40px; margin:0; padding:4px 12px; border-bottom:1px solid var(--border)}
.studio-artifact-heading > h3 {grid-column:auto; grid-row:auto; flex:1; min-width:0; margin:0; font-size:12px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.studio-artifact-heading > a {grid-column:auto; grid-row:auto; flex:none; min-height:28px; padding:4px 6px; font-size:12px}
.studio-artifact-preview {display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden}
.studio-artifact-viewer {display:flex; flex-direction:column; flex:1; min-height:0; overflow:auto; gap:0}
.studio-artifact-html {flex:1; height:100%; min-height:0; border:0; border-radius:0}
.studio-artifact-viewer :is(pre,.studio-artifact-table) {max-height:none; min-height:0; flex:1}
.studio-artifact-viewer > small {padding:8px 12px; flex:none}
.studio-artifact-alerts {flex:none}
.studio-artifact-alerts .studio-artifact-notice {margin:8px 12px}
.studio-artifact-alerts > button {margin:0 12px 8px}
@media (max-width:1279px) {
  .studio-artifacts[data-artifact-view="preview"] {height:75dvh; min-height:320px; max-height:75dvh}
}
@media (pointer:coarse) {
  .studio-artifact-tab {min-height:44px}
  .studio-artifact-panel-header .icon-button {width:44px; height:44px; min-height:44px}
}

/* One file tab strip; the selected document begins immediately below it. */
.studio-artifact-tabs {flex:1; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; align-items:center; gap:4px}
.studio-artifact-tab-entry {display:flex; flex:none; align-items:center; max-width:min(240px,100%); min-width:0; margin-block:4px; padding-inline-end:2px; border-radius:8px}
.studio-artifact-tab-entry.is-selected {background:var(--rail)}
.studio-artifact-tab-entry > .studio-artifact-tab {flex:1; min-width:0; min-height:32px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:0; border-radius:8px; padding:6px 10px}
.studio-artifact-tab-entry > .studio-artifact-tab[aria-selected="true"] {font-weight:500}
.studio-artifact-tab-close {display:inline-flex; flex:none; align-items:center; justify-content:center; width:24px; height:24px; min-height:24px; padding:4px; border-radius:5px}
.studio-artifact-tab-close > span {display:none}
.studio-artifact-tab-close .ui-icon {width:12px; height:12px}
.studio-artifact-file-view {display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; overflow:hidden}
.studio-artifact-file-view[hidden] {display:none}
.studio-artifact-file-view > .studio-artifact-notice {flex:none; margin:8px 12px}
.studio-artifact-file-view > .button {align-self:flex-start; margin:0 12px 8px}
@media (pointer:coarse) {
  .studio-artifact-tab-entry > .studio-artifact-tab {min-height:44px}
  .studio-artifact-tab-close {width:44px; height:44px; min-height:44px}
}

.studio-artifact-tabs::-webkit-scrollbar {display:none}
