@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f7f8fa;
  --surface: #fff;
  --ink: #202a29;
  --muted: #78827f;
  --line: #e7ebe8;
  --green: #137b63;
  --green-dark: #0b5a48;
  --green-wash: #edf6f1;
  --amber: #ad7926;
  --amber-wash: #fff8e9;
  --red: #ba5048;
  --red-wash: #fff0ee;
  --nav: #172c26;
  --radius: 14px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }
svg { display: block; flex: 0 0 auto; }
button svg, .nav-link svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid #a4d6c1; outline-offset: 3px; }
::selection { background: #d4eddf; color: var(--green-dark); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 640; letter-spacing: -.9px; }
h2 { font-size: 15px; font-weight: 650; letter-spacing: -.15px; }
h3 { font-size: 13px; font-weight: 650; }
small { font-size: 11px; }
code, pre, .mono { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.tabular, .metric-value, td, .detail-grid dd { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Navigation stays separate from the operational workspace. */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 224px; display: flex; flex-direction: column; padding: 32px 18px 20px; background: var(--nav); color: #d5e0da; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 13px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #739a7f55; border-radius: 10px; color: #cae7c8; background: #284438; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { color: #f2f7ef; font-size: 20px; font-weight: 650; letter-spacing: 3.5px; line-height: 1.2; }
.brand-caption { display: block; margin-top: 3px; color: #91a79c; font-size: 10px; letter-spacing: 1.6px; }
.nav-caption { margin: 44px 14px 12px; font-size: 10px; letter-spacing: 2px; color: #7e998a; }
.nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 14px; border-radius: 9px; font-size: 12px; font-weight: 500; color: #afc2b7; transition: background .15s, color .15s; }
.nav-link:hover { background: #ffffff08; color: #fff; }
.nav-link.active, .nav-link[aria-current="page"] { background: #d2e8c8; color: #203b2b; font-weight: 650; }
.nav-link.active svg, .nav-link[aria-current="page"] svg { color: #315d40; }
.sidebar-bottom { margin-top: auto; padding: 26px 12px 0; }
.environment-card { padding: 15px; background: #ffffff05; border: 1px solid #ffffff10; border-radius: 11px; }
.environment-label { display: flex; align-items: center; gap: 7px; color: #d7e4db; font-size: 11px; }
.environment-card p { margin-top: 7px; color: #8ca597; font-size: 10px; line-height: 1.8; }
.sidebar-footer { display: flex; justify-content: space-between; margin-top: 18px; font-size: 10px; color: #789385; letter-spacing: .8px; }
.workspace { min-width: 0; margin-left: 224px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 0 38px; border-bottom: 1px solid var(--line); background: #ffffffbf; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #8d9591; }
.breadcrumb strong { color: #42534b; font-weight: 500; }
.breadcrumb-divider { width: 1px; height: 12px; background: #d8dfda; transform: rotate(18deg); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.health-indicator { display: inline-flex; align-items: center; gap: 7px; color: #6c7a72; font-size: 11px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #98a79e; flex: 0 0 auto; }
.status-dot.healthy, .status-dot.success, .status-dot.online, .health-indicator.connected .status-dot { background: #3d9a6c; box-shadow: 0 0 0 3px #3d9a6c10; }
.status-dot.error, .status-dot.offline { background: var(--red); }
.status-dot.warning { background: var(--amber); }
.topbar-divider { width: 1px; height: 20px; background: var(--line); }
.user-chip { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e9eee9; color: #56685b; font-size: 11px; font-weight: 600; }
.content { max-width: 1560px; padding: 34px 38px 42px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading .eyebrow { color: #97a29b; margin-bottom: 9px; }
.page-description { margin-top: 8px; color: var(--muted); font-size: 12px; }
.heading-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.mode-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #dce8df; border-radius: 6px; font-size: 10px; color: #65816d; background: #f0f6ef; }
.page-panel { animation: reveal .18s ease-out; }
@keyframes reveal { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Common controls. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 12px; border: 1px solid #dce2dd; border-radius: 7px; background: #fff; color: #4b5c52; font-size: 11px; font-weight: 550; line-height: 1.5; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #b6c9ba; background: #f7faf7; }
.btn-primary { border-color: var(--green); background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: #7d8780; }
.btn-ghost:hover { background: #eff3ef; border-color: transparent; }
.btn-danger { color: var(--red); border-color: #efcec8; background: #fff; }
.btn-small { min-height: 28px; padding: 4px 9px; font-size: 10px; }
.btn-block { width: 100%; }
.icon-button { padding: 7px; min-width: 32px; border: 0; background: transparent; border-radius: 7px; color: #7c8980; }
.icon-button:hover { background: #eef3ef; }
.icon-button svg { width: 17px; height: 17px; }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.text-link { color: var(--green); font-size: 11px; border: 0; background: none; padding: 3px 0; }
.text-link:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field-label { color: #59685e; font-size: 11px; font-weight: 550; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid #dfe5df; border-radius: 7px; background: #fff; color: #2c3e32; font-size: 12px; outline: none; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: #6fbb98; box-shadow: 0 0 0 3px #137b630b; }
input::placeholder, textarea::placeholder { color: #a6aea8; }
textarea { resize: vertical; min-height: 132px; line-height: 1.8; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green); }
.checkbox-field { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #607063; }
.field-hint { color: #929c94; font-size: 10px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
.stack { display: grid; gap: 17px; }
.notice, .error-banner, .error-message { padding: 11px 13px; border-radius: 7px; font-size: 11px; line-height: 1.8; }
.notice { color: #77816d; background: #f4f6ef; border: 1px solid #e8ecdf; }
.error-banner, .error-message { color: #a44c43; background: var(--red-wash); border: 1px solid #f2d8d2; }
.error-message:empty, .error-banner:empty { display: none; }
.error-banner { margin-bottom: 22px; }
.success-message { color: var(--green); font-size: 11px; }

/* Metrics and live operational data. */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 23px; }
.metric-card { position: relative; min-height: 145px; padding: 20px 21px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-card.accent { background: #edf4ed; border-color: #dae7d9; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7b877d; font-size: 11px; }
.metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; background: #f5f7f4; color: #8a9d8d; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-card.accent .metric-icon { background: #e1ecdf; color: #5a8061; }
.metric-value { margin-top: 12px; color: #2a4331; font-size: 30px; letter-spacing: -1.3px; font-weight: 600; line-height: 1.25; }
.metric-value small { font-size: 11px; margin-left: 5px; font-weight: 400; letter-spacing: 0; color: #9aa497; }
.metric-foot { margin-top: 9px; font-size: 10px; color: #9aa397; }
.metric-foot .positive { color: #588267; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 23px; margin-bottom: 23px; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card + .card.spaced { margin-top: 23px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 17px; }
.card-title-group { display: flex; align-items: center; gap: 9px; }
.card-description { margin-top: 4px; font-size: 10px; color: #9aa299; }
.card-body { padding: 0 22px 21px; }
.card-divider { border-top: 1px solid #eef1ec; }
.section-spacer { margin-top: 23px; }
.count-label { font-size: 10px; color: #96a08f; }
.mini-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #87917f; }
.mini-legend::before { content: ""; display: block; width: 6px; height: 6px; background: #7fa685; border-radius: 2px; }
.chart-container { min-height: 188px; width: 100%; position: relative; }
.chart-container svg { width: 100%; height: auto; overflow: visible; }
.chart-empty { min-height: 188px; display: grid; place-items: center; color: #a1aaa1; font-size: 11px; }
.activity-list { display: grid; gap: 0; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f3ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-item .status-dot { margin-top: 7px; }
.activity-copy { flex: 1; min-width: 0; font-size: 11px; }
.activity-copy small { display: block; margin-top: 3px; color: #8f9b90; font-size: 9px; }
.activity-time { color: #9ca59a; font-size: 9px; white-space: nowrap; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f3ee; font-size: 11px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row > span { color: #83907f; }
.summary-row strong { font-size: 13px; font-weight: 550; }
.capacity-row { padding: 13px 0; }
.capacity-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 11px; }
.capacity-row-head span { color: #8c998c; font-size: 10px; }
.progress-track, .progress { height: 5px; background: #edf1e9; border-radius: 99px; overflow: hidden; }
.progress-fill, .progress > span { display: block; height: 100%; border-radius: inherit; background: #88af8b; }
.progress-fill.warning { background: #d9b578; }
.progress-fill.danger { background: #d8978b; }
.empty-state { padding: 36px 20px; text-align: center; color: #9ba598; font-size: 11px; line-height: 1.9; }
.empty-state svg { margin: 0 auto 12px; width: 29px; height: 29px; color: #bcc8b9; }
.empty-state strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: #768470; }

/* Shared tables deliberately keep horizontal overflow inside their cards. */
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 11px; }
.data-table th { padding: 11px 20px; color: #8c978b; font-weight: 450; font-size: 10px; background: #fafbf9; border-top: 1px solid #f0f2ee; border-bottom: 1px solid #ecefe8; }
.data-table td { padding: 16px 20px; border-bottom: 1px solid #f0f3ec; color: #55654f; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfb; }
.data-table td .mono { font-size: 10px; color: #67795e; }
.data-table .number, .text-right { text-align: right; }
.data-table .name { font-weight: 550; color: #3d5136; }
.data-table .subtext { display: block; margin-top: 3px; color: #a0aa97; font-size: 9px; }
.data-table .empty-state { white-space: normal; padding: 38px 20px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 21px; border-top: 1px solid #edf0e9; font-size: 10px; color: #9aa492; }
.table-avatar { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 9px; background: #edf3e9; border: 1px solid #e4ebde; border-radius: 7px; font-size: 10px; color: #748a67; vertical-align: middle; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 9px; line-height: 1.5; font-weight: 500; white-space: nowrap; color: #849179; background: #f1f4ed; }
.badge.success, .badge.healthy, .badge.closed, .badge.settled, .badge.succeeded, .badge.ready { background: #edf5e9; color: #5d8650; border-color: #e4efdd; }
.badge.warning, .badge.unknown, .badge.half_open, .badge.running, .badge.pending, .badge.cooldown { background: #fff7e9; color: #ae8746; border-color: #f5ebd7; }
.badge.error, .badge.open, .badge.failed, .badge.canceled, .badge.disabled { background: #fff0ed; color: #ba7365; border-color: #f8e1da; }
.badge.neutral { background: #f1f3ef; color: #87917f; }
.filter-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 22px 18px; }
.filter-bar .field { min-width: 145px; }
.filter-bar .field.search-field { flex: 1; min-width: 180px; }
.filter-bar input, .filter-bar select { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.filter-bar label { font-size: 10px; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; margin-top: 23px; }
.runtime-card-content { padding: 0 22px 21px; }
.runtime-card-content:empty { min-height: 100px; }
.runtime-item { padding: 11px 0; border-bottom: 1px solid #edf1e8; }
.runtime-item:last-child { border-bottom: 0; }
.runtime-item-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 12px; }
.runtime-item p { margin-top: 5px; color: #929e89; font-size: 10px; }

/* Request inspection and the live request workspace. */
.playground-grid { display: grid; grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr); gap: 23px; align-items: start; }
.playground-form { padding: 0 22px 23px; display: grid; gap: 18px; }
.playground-form textarea { min-height: 160px; }
.output-card { min-height: 450px; }
.output-toolbar { display: flex; justify-content: space-between; gap: 10px; padding: 0 22px 13px; font-size: 10px; color: #94a08a; }
.output-body { min-height: 245px; margin: 0; padding: 19px 22px; border-top: 1px solid #edf1e7; background: #fcfdfb; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; color: #48603f; }
.output-body:empty::before { content: "发送请求后，响应会显示在这里。"; color: #a3ad9b; }
.event-log { max-height: 210px; overflow: auto; border-top: 1px solid #edf1e7; padding: 13px 22px; font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; line-height: 1.8; color: #7c8e71; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-log:empty { display: none; }
.output-meta { padding: 14px 22px; border-top: 1px solid #edf1e7; font-size: 10px; color: #98a18f; overflow-wrap: anywhere; }
dialog { width: min(780px, calc(100vw - 40px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid #e1e8db; border-radius: 16px; box-shadow: 0 24px 100px #14291e26; color: var(--ink); background: #fff; }
dialog::backdrop { background: #12271a75; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 17px; }
.dialog-header .eyebrow { color: #9aa68f; font-size: 9px; margin-bottom: 5px; }
.dialog-content { padding: 22px 25px 25px; overflow: auto; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0 0 22px; }
.detail-grid dt { color: #93a087; font-size: 10px; margin-bottom: 5px; }
.detail-grid dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.detail-grid .full { grid-column: 1 / -1; }
.json-block { padding: 15px; max-height: 300px; margin: 13px 0 0; border: 1px solid #e8eee1; border-radius: 8px; background: #f8faf5; white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; font-size: 10px; line-height: 1.8; color: #6f805d; }
.reconcile-section { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.reconcile-section .form-grid { margin-top: 15px; }
.reconcile-section .button-row { margin-top: 16px; }
.detail-note { margin-top: 7px; color: #8e9b80; font-size: 10px; line-height: 1.8; }

/* Authentication has its own quiet, focused surface. */
.login-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: #f3f5ef; }
.login-card { width: min(390px, 100%); padding: 38px 33px 30px; border: 1px solid #e1e8db; border-radius: 18px; background: #fff; box-shadow: 0 20px 80px #2d4a2310; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 37px; }
.login-brand .brand-mark { background: #edf4e9; color: #48723b; border-color: #dce9d4; }
.login-brand .brand-name { color: #284622; font-size: 17px; }
.login-brand .brand-caption { color: #95a18a; font-size: 9px; }
.login-card h1 { font-size: 23px; letter-spacing: -.6px; }
.login-description { margin-top: 9px; margin-bottom: 25px; color: #919d85; font-size: 12px; line-height: 1.9; }
.login-form { display: grid; gap: 17px; }
.login-form .btn-primary { min-height: 41px; }
.login-form .error-message { padding: 9px 11px; }
.login-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf1e7; font-size: 9px; color: #a3ac97; }
.login-footer .status-dot { width: 5px; height: 5px; background: #91ab81; }
.login-footer span { display: inline-flex; align-items: center; gap: 6px; }
.global-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; color: #a5ad9b; font-size: 9px; letter-spacing: .2px; }
.global-footer span:last-child { font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.toast { position: fixed; z-index: 80; top: 90px; right: 35px; max-width: calc(100vw - 40px); padding: 12px 17px; border: 1px solid #cfe3d4; border-radius: 9px; box-shadow: 0 7px 25px #345b2512; background: #f1f8ed; color: #507445; font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 1px 12px; }
.section-heading > span { font-size: 10px; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 17px; }
.runtime-card { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.runtime-card + .runtime-card { margin-top: 10px; }
.scope-grid > .runtime-card + .runtime-card { margin-top: 0; }
.runtime-card h3 { margin-bottom: 7px; }
.runtime-card p { color: var(--muted); font-size: 11px; }
.runtime-card .badge { margin-top: 5px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-label-row label { font-size: 11px; color: #59685e; font-weight: 550; }
.field-label-row .text-link { padding: 0; font-size: 10px; }
.chart-caption { font-size: 9px; margin-top: 13px; }
.overview-status { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf1e7; font-size: 10px; white-space: normal; }
.overview-status p { flex-basis: 100%; line-height: 1.8; overflow-wrap: anywhere; }
.chart-bar-used { fill: #86a98a; }
.chart-bar-held { fill: #d9bf88; }
.chart-label { fill: #95a28c; font-size: 10px; font-family: inherit; }
.chart-grid { stroke: #edf1e7; stroke-width: 1; }
.badge-success { background: #edf5e9; color: #5d8650; border-color: #e4efdd; }
.badge-warning { background: #fff7e9; color: #ae8746; border-color: #f5ebd7; }
.badge-danger { background: #fff0ed; color: #ba7365; border-color: #f8e1da; }
.badge-neutral { background: #f1f3ef; color: #87917f; }
.table-primary { font-size: 11px; font-weight: 550; color: #3d5136; }
.table-secondary { margin-top: 3px; color: #97a28c; font-size: 9px; }
.table-primary.mono { display: block; max-width: 235px; overflow: hidden; text-overflow: ellipsis; }
.event-details { border-top: 1px solid #edf1e7; }
.event-details summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; color: #7e8d72; font-size: 10px; cursor: pointer; }
.event-details summary span { color: #a4ad9a; font-size: 8px; letter-spacing: 1px; }
.event-details[open] summary { background: #fafcf7; }
.detail-request-id { padding: 0 0 18px; color: #8e9b81; font-size: 11px; overflow-wrap: anywhere; }
.detail-table { margin-top: 12px; border: 1px solid #edf1e7; border-radius: 8px; }
.detail-table .data-table th, .detail-table .data-table td { padding: 12px; font-size: 10px; }
.detail-grid > div { min-width: 0; }
.detail-grid > div > strong { display: block; font-weight: 500; font-size: 12px; }
.detail-grid > div > span { font-size: 10px; color: #8e9b81; }
progress { display: block; width: 100%; height: 6px; margin-top: 9px; border: none; border-radius: 5px; background: #edf1e9; accent-color: #88af8b; }
progress::-webkit-progress-bar { border-radius: 5px; background: #edf1e9; }
progress::-webkit-progress-value { border-radius: 5px; background: #88af8b; }
progress::-moz-progress-bar { border-radius: 5px; background: #88af8b; }
.data-table .stack, .summary-row > .stack { gap: 3px; }
.stack .badge { justify-self: start; }
.detail-item { min-width: 0; }
.detail-item dt { margin: 0 0 5px; font-size: 10px; color: #8c9784; }
.detail-item dd { margin: 0; font-size: 12px; color: #485e3d; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#queue-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin: 0; }
#overview-tenants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
#overview-tenants .summary-row { border-bottom: 0; }
.usage-svg { display: block; width: 100%; min-height: 180px; }
#playground-status[data-state="running"] { color: #ad7926; }
#playground-status[data-state="success"] { color: var(--green); }
#playground-status[data-state="warning"] { color: var(--amber); }
#playground-status[data-state="error"] { color: var(--red); }

@media (min-width: 1600px) {
  .content { padding-top: 40px; }
  .metric-card { min-height: 154px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr); }
}
@media (max-width: 1180px) {
  .sidebar { width: 198px; padding-right: 13px; padding-left: 13px; }
  .workspace { margin-left: 198px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .content { padding: 29px 26px 36px; }
  .metric-grid { gap: 12px; }
  .metric-card { padding: 16px; }
  .metric-value { font-size: 27px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 17px; }
  .playground-grid { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 17px; }
}
@media (max-width: 960px) {
  .sidebar { width: 174px; padding-right: 10px; padding-left: 10px; }
  .workspace { margin-left: 174px; }
  .brand { padding: 0 9px; gap: 8px; }
  .brand-name { font-size: 17px; letter-spacing: 2px; }
  .brand-caption { font-size: 8px; letter-spacing: 1px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-link { gap: 9px; }
  .sidebar-bottom { padding: 20px 4px 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .two-column { gap: 17px; }
  .playground-grid { grid-template-columns: 1fr; }
  .heading-meta { flex-direction: column; align-items: flex-end; gap: 7px; }
  .topbar-actions { gap: 11px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
}
@media (max-width: 680px) {
  #overview-tenants { grid-template-columns: 1fr; }
  .usage-svg { min-height: 160px; }
  .toast { top: 76px; right: 19px; font-size: 11px; }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(68px + env(safe-area-inset-bottom)); padding: 7px 7px env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #e4eadd; color: var(--ink); }
  .sidebar > .brand, .nav-caption, .sidebar-bottom { display: none; }
  .nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .nav-link { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 3px; min-height: 51px; border-radius: 8px; font-size: 9px; color: #88967c; }
  .nav-link svg { width: 17px; height: 17px; }
  .nav-link.active, .nav-link[aria-current="page"] { background: #eef5e8; color: #547741; }
  .nav-link:hover { color: var(--green-dark); background: #f2f5ee; }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 20px; min-height: 66px; gap: 8px; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb-divider { display: none; }
  .breadcrumb strong { font-size: 12px; font-weight: 600; }
  .topbar-actions { gap: 9px; }
  .topbar-divider, .user-chip { display: none; }
  .topbar-actions .btn { min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .topbar-actions .btn svg { width: 14px; height: 14px; }
  .health-indicator { font-size: 9px; gap: 5px; }
  .content { padding: 27px 19px calc(98px + env(safe-area-inset-bottom)); }
  h1 { font-size: 24px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .page-heading .eyebrow { font-size: 8px; margin-bottom: 7px; }
  .page-description { font-size: 10px; max-width: 235px; line-height: 1.8; }
  .heading-meta { font-size: 8px; padding-top: 3px; }
  .mode-chip { font-size: 8px; gap: 4px; padding: 5px 7px; }
  .metric-grid { gap: 11px; margin-bottom: 17px; }
  .metric-card { min-height: 133px; border-radius: 11px; padding: 15px; }
  .metric-label { font-size: 9px; }
  .metric-icon { width: 23px; height: 23px; }
  .metric-icon svg { width: 13px; height: 13px; }
  .metric-value { margin-top: 10px; font-size: 26px; }
  .metric-foot { font-size: 8px; margin-top: 8px; }
  .card { border-radius: 11px; }
  .card-header { padding: 17px 17px 14px; }
  .card-header h2 { font-size: 13px; }
  .card-description { font-size: 9px; }
  .card-body, .runtime-card-content { padding: 0 17px 17px; }
  .dashboard-grid, .two-column { grid-template-columns: 1fr; gap: 17px; margin-bottom: 17px; }
  .two-column { margin-top: 17px; }
  .card + .card.spaced, .section-spacer { margin-top: 17px; }
  .data-table th { padding: 10px 15px; font-size: 9px; }
  .data-table td { padding: 14px 15px; font-size: 10px; }
  .table-footer { padding: 12px 16px; font-size: 8px; }
  .filter-bar { padding: 0 17px 17px; gap: 10px; }
  .filter-bar .field { flex: 1; min-width: 125px; }
  .filter-bar .field.search-field { flex-basis: 100%; }
  .filter-bar .field label { font-size: 9px; }
  .form-grid { gap: 14px; }
  .playground-form { padding: 0 17px 19px; }
  .output-body, .output-meta, .event-log { padding-right: 17px; padding-left: 17px; }
  .output-toolbar { padding-right: 17px; padding-left: 17px; }
  dialog { width: calc(100vw - 26px); max-height: calc(100dvh - 34px); border-radius: 13px; }
  .dialog-header { padding: 19px 19px 16px; }
  .dialog-content { padding: 18px 19px 22px; }
  .detail-grid { gap: 14px 18px; }
  .login-card { padding: 32px 27px 26px; }
  .global-footer { align-items: flex-start; font-size: 8px; gap: 15px; }
  .global-footer span:last-child { text-align: right; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Execution nodes remain distinct from the subscriptions sharing their slots. */
.worker-section { margin-bottom: 22px; }
.model-observations-card { margin-bottom: 22px; }
.request-load-error { margin: 0 22px 16px; }
.detail-trace-section { border-top: 1px solid #e4e9e2; margin-top: 24px; padding-top: 18px; }
.trace-attempt { border: 1px solid #e4e9e2; border-radius: 10px; padding: 13px; margin-top: 13px; }
.trace-attempt summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.trace-facts, .trace-failure { margin-top: 17px; }
.trace-facts dd, .trace-failure dd, .trace-request-summary dd { overflow-wrap: anywhere; }
.trace-failure { border-top: 1px solid #efd7ce; padding-top: 15px; }
@media (max-width: 680px) { .model-observations-card .card-header { flex-wrap: wrap; } .trace-request-summary, .trace-facts, .trace-failure { grid-template-columns: 1fr; } }
.account-environments-card { margin-bottom: 22px; }
.account-environments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.account-environment { min-width: 0; padding: 18px; border: 1px solid #e4e9e2; border-radius: 12px; }
.account-environment .stack { min-width: 0; overflow-wrap: anywhere; }
.account-environment-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; margin: 20px 0; }
.account-environment-facts dd { overflow-wrap: anywhere; }
.account-environment-note { border-top: 1px solid #edf0ea; margin: 0; padding-top: 14px; line-height: 1.8; }
@media (max-width: 1080px) { .account-environments-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .account-environments-card > .card-header { flex-wrap: wrap; } .account-environment { padding: 14px; } .account-environment-facts { grid-template-columns: 1fr; gap: 13px; } }
.ops-health-card { margin-bottom: 22px; }
.ops-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 24px; margin-top: 18px; }
.ops-health-grid dd { overflow-wrap: anywhere; }
.service-keys-card { margin-top: 24px; }
.service-key-guidance { margin: 16px 0; line-height: 1.8; }
.service-key-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 14px; align-items: end; margin: 20px 0; }
.service-key-form .field { margin: 0; }
.service-key-form button { align-self: end; }
.service-key-once { padding: 18px; margin: 18px 0; border: 1px solid #dfcda8; border-radius: 10px; background: #fff9eb; }
.service-key-once p { line-height: 1.8; }
.service-key-copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.service-key-copy-row input { min-width: 0; flex: 1 1 260px; font-family: monospace; }
.service-key-copy-row button { flex-shrink: 0; }
@media (max-width: 980px) { .service-key-form { grid-template-columns: 1fr 1fr; } .service-key-form button { justify-self: start; } }
@media (max-width: 680px) { .ops-health-grid { grid-template-columns: 1fr; gap: 14px; } .service-key-form { grid-template-columns: 1fr; } .service-key-once { padding: 13px; } .service-keys-card .card-header { flex-wrap: wrap; } }
.live-mode-notice, .capability-note { border: 1px solid #dfcda8; background: #fff9eb; color: #79582d; border-radius: 10px; padding: 13px 16px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.live-mode-notice { margin-bottom: 20px; }
.capability-note { margin: 0 0 19px; }
.system-prompt-input { min-height: 100px; }
.live-mode-chip { color: #79582d; background: #fff6e1; border-color: #dfcda8; }
.worker-maintenance-note { margin: 0 0 18px; line-height: 1.8; }
.worker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.worker-card { min-width: 0; border: 1px solid var(--border, #e4e9e2); border-radius: 12px; padding: 19px; }
.worker-heading, .worker-slot-info, .worker-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.worker-heading .stack, .worker-slot-info .stack { min-width: 0; }
.worker-card .mono { overflow-wrap: anywhere; }
.worker-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 19px 0; }
.worker-facts dd { overflow-wrap: anywhere; }
.worker-slot { padding: 14px 0; border-top: 1px solid #edf0ea; }
.worker-slot-info { align-items: flex-start; }
.worker-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.worker-footer { align-items: flex-start; border-top: 1px solid #edf0ea; padding-top: 15px; }
.worker-footer > span { max-width: 65%; line-height: 1.7; font-size: 10px; }
.worker-last-error, #worker-error { color: #b3463e; overflow-wrap: anywhere; line-height: 1.8; }
#worker-maintenance-status { margin: 12px 0; }
@media (max-width: 1050px) { .worker-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .worker-section > .card-header { flex-wrap: wrap; }
  .worker-card { padding: 15px; }
  .worker-maintenance-note { font-size: 10px; }
  .worker-facts { gap: 12px; }
  .worker-footer { flex-wrap: wrap; }
  .worker-footer > span { max-width: 100%; }
}
