body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}:where(a[href],area[href],button:not(:disabled),input[type=button]:not(:disabled),input[type=submit]:not(:disabled),input[type=reset]:not(:disabled),input[type=checkbox]:not(:disabled),input[type=radio]:not(:disabled),input[type=range]:not(:disabled),input[type=file]:not(:disabled),select:not(:disabled),summary,label[for],label:has(input[type=checkbox]:not(:disabled)),label:has(input[type=radio]:not(:disabled)),[role=button]:not([aria-disabled=true]),[role=link]:not([aria-disabled=true]),[role=tab]:not([aria-disabled=true]),[role=menuitem]:not([aria-disabled=true]),[role=option]:not([aria-disabled=true]),[data-clickable=true]){cursor:pointer}:where(button:disabled,input:disabled,select:disabled,[aria-disabled=true]){cursor:not-allowed}*{box-sizing:border-box}:root{--bg:#f5f7fb;--bg-page:#f5f7fb;--bg-page-alt:#f8fafc;--bg-card:#fff;--surface:#fff;--surface-soft:#f8fafc;--surface-muted:#eaf8f0;--text:#2c3040;--text-main:#2c3040;--heading:#2c3040;--muted:#657491;--muted-strong:#536273;--text-muted:#657491;--text-soft:#8c9ab7;--border:#dfe7f2;--border-soft:#e7edf5;--shadow:0 1px 2px #1622330a;--primary:#31c765;--primary-dark:#1faa50;--primary-soft:#eaf8f0;--accent:#31c765;--accent-hover:#1faa50;--accent-soft:#eaf8f0;--accent-contrast:#fff;--success:#31c765;--warning:#ff9f43;--danger:#ef4d56;--info:#8fa0bf;--teal:#22c5ad;--pink:#22b8cf;--good-bg:#f2fbf5;--good-text:#17663c;--good-border:#b9dcc7;--warn-bg:#fff8f1;--warn-text:#955316;--warn-border:#efc5a5;--danger-soft:#ef4d5614;--overlay-soft:#31c7650f}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#03140b;--bg-page:#03140b;--bg-page-alt:#102016;--bg-card:#1b261f;--surface:#1b261f;--surface-soft:#17231b;--surface-muted:#213328;--text:#edf3fb;--text-main:#edf3fb;--heading:#f6fbf7;--muted:#a6b4cc;--muted-strong:#d7e3db;--text-muted:#a6b4cc;--text-soft:#74839b;--border:#ffffff14;--border-soft:#ffffff0f;--shadow:0 1px 2px #0000004d;--primary:#31c765;--primary-dark:#68dc92;--primary-soft:#31c76524;--accent:#31c765;--accent-hover:#68dc92;--accent-soft:#31c76524;--accent-contrast:#fff;--success:#31c765;--warning:#ffb25f;--danger:#ff6b73;--info:#8fa0bf;--teal:#29d7bd;--pink:#37c9de;--good-bg:#31c7651f;--good-text:#86efac;--good-border:#31c76561;--warn-bg:#ffb25f1f;--warn-text:#ffb25f;--warn-border:#ffb25f57;--danger-soft:#ff6b731f;--overlay-soft:#31c7651a}body{background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.ops-shell{width:min(1720px,100% - 32px);min-height:100vh;margin:0 auto;padding:22px 0 32px}.ops-helpbar{border:1px solid var(--border);background:var(--surface);min-height:36px;box-shadow:var(--shadow);border-radius:8px;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px;padding:6px 10px;display:flex}.ops-helpbar-brand,.ops-helpbar-actions{align-items:center;gap:10px;display:flex}.ops-helpbar-brand span{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:900}.ops-helpbar-brand strong{color:var(--heading);font-size:13px}.ops-helpbar-actions{flex-wrap:wrap;justify-content:flex-end}.ops-helpbar-actions a,.help-menu summary,.theme-toggle{border:1px solid var(--border);background:var(--surface-soft);min-height:26px;color:var(--muted-strong);border-radius:6px;padding:4px 8px;font-size:12px;font-weight:800;text-decoration:none}.help-menu{position:relative}.help-menu summary{cursor:pointer;align-items:center;list-style:none;display:inline-flex}.help-menu summary::-webkit-details-marker{display:none}.help-menu-panel{z-index:20;border:1px solid var(--border);background:var(--surface);border-radius:8px;width:min(440px,100vw - 24px);padding:10px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 30px #0b131f2e}.help-menu-panel>a,.help-menu-section>span{margin-bottom:8px;display:block}.help-menu-section>span{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:900}.swagger-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.theme-toggle{cursor:pointer;align-items:center;gap:7px;display:inline-flex}.theme-toggle-track{background:#bac6d3;border-radius:999px;width:30px;height:16px;position:relative}.theme-toggle-knob{background:#fff;border-radius:50%;width:12px;height:12px;transition:transform .15s;position:absolute;top:2px;left:2px}[data-theme=dark] .theme-toggle-knob{transform:translate(14px)}.ops-topbar{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:18px;display:flex}.product-label,.stage-eyebrow{color:#5b6b7d;text-transform:uppercase;letter-spacing:0;margin-bottom:5px;font-size:11px;font-weight:800;display:block}.ops-topbar h1{color:#121a24;margin:0;font-size:28px;line-height:1.14}.ops-topbar p{color:#647184;max-width:720px;margin:7px 0 0;font-size:14px;line-height:1.45}.ops-status-stack{flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:320px;display:flex}.connection-pill{color:#536273;white-space:nowrap;background:#fff;border:1px solid #d7dde5;border-radius:6px;align-items:center;min-height:30px;padding:5px 10px;font-size:12px;font-weight:700;display:inline-flex}.connection-pill.ok{color:#17663c;background:#f2fbf5;border-color:#b9dcc7}.connection-pill.warn{color:#955316;background:#fff8f1;border-color:#efc5a5}.connection-pill.active{border-color:color-mix(in srgb, var(--accent) 42%, var(--border));color:var(--accent);background:var(--accent-soft)}.ops-kpis{grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;margin-bottom:12px;display:grid}.kpi{background:#fff;border:1px solid #d9e0e8;border-radius:8px;min-height:92px;padding:13px 14px}.kpi-label,.kpi-detail{color:#677386;font-size:12px;line-height:1.25;display:block}.kpi strong{color:#121a24;margin:8px 0 6px;font-size:26px;line-height:1;display:block}.kpi.good{background:#f7fcf8;border-color:#b7dcc1}.kpi.warn{background:#fff8f1;border-color:#efc5a5}.pipeline-lane{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-bottom:16px;display:grid}.pipeline-node{background:#fff;border:1px solid #d9e0e8;border-radius:8px;min-height:58px;padding:10px 12px;position:relative}.pipeline-node:after{content:"";border-top:2px solid #c9d2dd;width:8px;position:absolute;top:50%;right:-8px}.pipeline-node:last-child:after{display:none}.pipeline-node span,.pipeline-node strong{display:block}.pipeline-node span{color:#4e5d70;font-size:12px;font-weight:800}.pipeline-node strong{color:#111827;margin-top:7px;font-size:14px}.pipeline-node.ready{border-color:color-mix(in srgb, var(--accent) 34%, var(--border));background:#f7fbff}.pipeline-node.problem{background:#fff8f1;border-color:#efc5a5}.ops-workspace{grid-template-columns:minmax(0,1fr) minmax(360px,430px);align-items:start;gap:16px;display:grid}.service-console{grid-template-columns:276px minmax(0,1fr);align-items:start;gap:14px;min-width:0;display:grid}.service-sidebar,.service-workbench{background:#fff;border:1px solid #d9e0e8;border-radius:8px;box-shadow:0 1px 2px #1622330a}.service-sidebar{max-height:calc(100vh - 24px);padding:12px;position:sticky;top:12px;overflow:auto}.service-sidebar-head{border-bottom:1px solid #edf0f3;margin-bottom:12px;padding-bottom:10px}.service-sidebar-head strong{color:#121a24;font-size:15px;line-height:1.2;display:block}.service-nav-group+.service-nav-group{margin-top:14px}.service-nav-group-title{color:#69778a;text-transform:uppercase;margin:0 0 7px;font-size:11px;font-weight:900;display:block}.service-nav-list{flex-direction:column;gap:7px;display:flex}.service-nav-card{background:#fafbfc;border:1px solid #e3e8ee;border-radius:8px}.service-nav-card.selected{border-color:color-mix(in srgb, var(--accent) 46%, var(--border));background:#f7fbff}.service-nav-main{width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;display:grid}.service-nav-main strong,.service-nav-main small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.service-nav-main strong{color:#263241;font-size:13px;line-height:1.2}.service-nav-main small{color:#748195;margin-top:3px;font-size:11px}.service-state{color:#5f6d7f;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid #d5dde6;border-radius:6px;max-width:92px;min-height:22px;padding:4px 6px;font-size:10px;font-weight:900;line-height:1.15;overflow:hidden}.service-state.ready{color:#17663c;background:#f2fbf5;border-color:#b9dcc7}.service-state.problem{color:#955316;background:#fff8f1;border-color:#efc5a5}.service-mode-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 8px 8px;display:grid}.service-mode-switch.top{width:250px;padding:0}.service-mode-switch button{color:#526174;cursor:pointer;background:#fff;border:1px solid #ccd6e1;border-radius:6px;min-height:30px;padding:5px 7px;font-size:12px;font-weight:900}.service-mode-switch button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.service-workbench{min-width:0}.service-workbench.ready{border-top-color:var(--accent)}.service-workbench.problem{border-top-color:#d77b27}.service-workbench-head{border-bottom:1px solid #edf0f3;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px;display:flex}.service-workbench-head h2{color:#121a24;margin:0;font-size:20px;line-height:1.2}.service-workbench-head p{color:#647184;max-width:780px;margin:6px 0 0;font-size:13px;line-height:1.4}.service-workbench-actions{flex-direction:column;align-items:flex-end;gap:9px;min-width:260px;display:flex}.service-panel-body{flex-direction:column;display:flex}.service-section{padding:14px 16px 16px}.service-section+.service-section{border-top:1px solid #edf0f3}.service-section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.service-section-note{color:var(--muted-strong);margin:0 0 12px;font-size:14px;line-height:1.5}.service-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.service-link{min-height:28px;color:var(--accent);background:#fbfcfd;border:1px solid #d5dde6;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:900;text-decoration:none}.service-action-button{color:#fff;background:var(--accent);cursor:pointer;border:1px solid #c6d3e0;border-radius:6px;min-height:28px;padding:5px 8px;font-size:12px;font-weight:900}.service-action-button:disabled{cursor:progress;opacity:.65}.service-health{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px;display:grid}.info-row{background:#fafbfc;border:1px solid #e3e8ee;border-radius:6px;min-width:0;min-height:54px;padding:8px}.info-row span,.info-row strong{min-width:0;display:block}.info-row span{color:#69778a;margin-bottom:5px;font-size:11px;line-height:1.2}.info-row strong{color:#17202b;overflow-wrap:anywhere;font-size:13px;line-height:1.25}.endpoint-list{flex-wrap:wrap;gap:6px;display:flex}.endpoint-list code{color:#435369;background:#fbfcfd;border:1px solid #dfe5ec;border-radius:6px;padding:4px 7px;font-size:11px}.service-timegrid{margin-top:8px}.stage-grid{grid-template-columns:repeat(2,minmax(360px,1fr));gap:14px;display:grid}.stage-panel,.conversation-panel{background:#fff;border:1px solid #d9e0e8;border-radius:8px;box-shadow:0 1px 2px #1622330a}.stage-panel{padding:16px}.stage-panel.ready{border-top-color:var(--accent)}.stage-panel.problem{border-top-color:#d77b27}.stage-head,.conversation-head{justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px;display:flex}.stage-head h2,.conversation-head h2{color:#121a24;margin:0;font-size:18px;line-height:1.2}.stage-head p{color:#647184;margin:5px 0 0;font-size:12px;line-height:1.35}.stage-badge,.conversation-status{color:#58687a;white-space:nowrap;background:#eef2f6;border-radius:6px;align-items:center;min-height:26px;padding:4px 8px;font-size:11px;font-weight:800;display:inline-flex}.stage-badge.ready{color:#17663c;background:#eef8f2}.stage-badge.problem{color:#955316;background:#fff4e9}.stage-timegrid{border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px;padding:10px 0;display:grid}.stage-timegrid div,.runtime-metric{min-width:0}.stage-timegrid span,.runtime-metric span{color:#69778a;margin-bottom:4px;font-size:11px;line-height:1.2;display:block}.stage-timegrid strong,.runtime-metric strong{color:#17202b;overflow-wrap:anywhere;min-height:18px;font-size:13px;line-height:1.25;display:block}.runtime-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px;display:grid}.runtime-metric{background:#fafbfc;border:1px solid #e3e8ee;border-radius:6px;padding:8px}.config-summary{flex-wrap:wrap;gap:6px;margin-bottom:12px;display:flex}.config-summary span{color:#526174;background:#fbfcfd;border:1px solid #dfe5ec;border-radius:6px;padding:4px 7px;font-size:11px;font-weight:700}.stage-settings-title{color:#303b49;margin:2px 0 8px;font-size:12px;font-weight:900}.ops-settings-list{flex-direction:column;gap:8px;display:flex}.ops-setting-row{border-top:1px solid #edf0f3;grid-template-columns:minmax(120px,1fr) minmax(110px,180px);align-items:center;gap:10px;min-height:38px;padding:7px 0;display:grid}.ops-setting-row strong,.ops-setting-row small{display:block}.ops-setting-row strong{color:#2d3745;font-size:13px}.ops-setting-row small{color:#778497;margin-top:2px;font-size:11px;line-height:1.25}.ops-input{color:#17202b;background:#fff;border:1px solid #cbd4df;border-radius:6px;outline:none;width:100%;min-height:32px;padding:5px 8px}.ops-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #31c76524}.ops-input.number{text-align:right}.switch{cursor:pointer;background:#e8edf2;border:1px solid #b8c3cf;border-radius:999px;justify-self:end;width:44px;height:24px;padding:2px}.switch span{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;display:block;box-shadow:0 1px 2px #18233033}.switch.on{background:#36a760;border-color:#64b17d}.switch.on span{transform:translate(18px)}.conversation-panel{padding:16px;position:sticky;top:12px}.conversation-head{border-bottom:1px solid #edf0f3;margin-bottom:14px;padding-bottom:12px}.conversation-status{text-overflow:ellipsis;max-width:190px;overflow:hidden}.latency-flow-map{gap:12px;display:grid}.latency-flow-head{border-bottom:1px solid var(--border-soft);justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:12px;display:flex}.latency-flow-head p{color:var(--muted);margin:5px 0 0;font-size:12px;line-height:1.35}.latency-flow-summary{flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:360px;display:flex}.latency-flow-summary span,.latency-flow-summary strong,.latency-bottleneck{border:1px solid var(--border);background:var(--surface-soft);min-height:27px;color:var(--muted-strong);border-radius:7px;align-items:center;gap:6px;padding:5px 8px;font-size:11px;font-weight:900;display:inline-flex}.latency-flow-summary code{color:var(--accent);font-size:11px}.latency-bottleneck{background:color-mix(in srgb, var(--surface-soft) 82%, var(--accent) 18%);justify-content:space-between;width:100%}.latency-bottleneck span{color:var(--muted);text-transform:uppercase}.latency-bottleneck strong{color:var(--heading)}.latency-flow-scroll{padding-bottom:4px;overflow-x:auto}.latency-flow-chain{align-items:stretch;gap:8px;min-width:1120px;display:flex}.diagnostic-log-panel{gap:12px;display:grid}.diagnostic-log-toggle{border:1px solid var(--border);background:var(--surface-soft);min-height:27px;color:var(--heading);cursor:pointer;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:900}.diagnostic-log-list{gap:8px;max-height:430px;padding-right:4px;display:grid;overflow:auto}.diagnostic-log-row{border:1px solid var(--border);background:var(--surface-soft);border-left-width:3px;border-radius:8px;gap:6px;padding:10px;display:grid}.diagnostic-log-row.info{border-left-color:var(--accent)}.diagnostic-log-row.warn,.diagnostic-log-row.warning{border-left-color:#f59e0b}.diagnostic-log-row.error{border-left-color:#ef4444}.diagnostic-log-main{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.diagnostic-log-main span{color:var(--muted);font-size:11px;font-weight:800}.diagnostic-log-main strong{color:var(--heading);font-size:12px}.diagnostic-log-main code{background:color-mix(in srgb, var(--surface) 76%, var(--accent) 24%);color:var(--accent);border-radius:7px;margin-left:auto;padding:3px 7px;font-size:11px;font-weight:900}.diagnostic-log-row p{color:var(--muted-strong);margin:0;font-size:12px;line-height:1.45}.diagnostic-log-row details{color:var(--muted);font-size:11px}.diagnostic-log-row summary{cursor:pointer;font-weight:900}.diagnostic-log-row pre{border:1px solid var(--border-soft);background:var(--surface);max-height:260px;color:var(--text);white-space:pre-wrap;border-radius:8px;margin:8px 0 0;padding:10px;font-size:11px;line-height:1.45;overflow:auto}.diagnostic-log-empty{border:1px dashed var(--border);color:var(--muted);text-align:center;border-radius:8px;padding:18px;font-size:13px}.turn-decision-diagnostics{border:1px solid var(--border);background:color-mix(in srgb, var(--surface-soft) 84%, var(--accent) 16%);border-radius:8px;gap:12px;padding:12px;display:grid}.turn-decision-diagnostics.empty{background:var(--surface-soft)}.turn-decision-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;display:grid}.turn-decision-grid.concepts{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.turn-decision-grid.audio{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}.turn-decision-field{border:1px solid var(--border-soft);background:var(--surface);border-radius:8px;gap:4px;min-width:0;padding:9px 10px;display:grid}.turn-decision-field span{color:var(--muted);letter-spacing:.02em;text-transform:uppercase;font-size:10px;font-weight:900}.turn-decision-field strong{overflow-wrap:anywhere;min-width:0;color:var(--heading);font-size:12px;line-height:1.35}.turn-decision-field.warn{border-color:color-mix(in srgb, #f59e0b 64%, var(--border) 36%);background:color-mix(in srgb, var(--surface) 82%, #f59e0b 18%)}.turn-decision-plan{color:var(--muted);font-size:11px}.turn-decision-plan summary{cursor:pointer;font-weight:900}.turn-decision-plan pre{border:1px solid var(--border-soft);background:var(--surface);max-height:220px;color:var(--text);white-space:pre-wrap;border-radius:8px;margin:8px 0 0;padding:10px;font-size:11px;line-height:1.45;overflow:auto}.turn-decision-waterfall{border:1px solid var(--border-soft);background:var(--surface);border-radius:8px;gap:8px;padding:10px;display:grid}.turn-decision-waterfall>span{color:var(--muted);letter-spacing:.02em;text-transform:uppercase;font-size:10px;font-weight:900}.turn-decision-waterfall ol{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.turn-decision-waterfall li{border:1px solid var(--border-soft);background:var(--surface-soft);border-radius:8px;gap:3px;padding:8px;display:grid}.turn-decision-waterfall li.warn{border-color:color-mix(in srgb, var(--danger) 58%, var(--border) 42%)}.turn-decision-waterfall strong{color:var(--text-muted);font-size:11px;line-height:1.25}.turn-decision-waterfall em{color:var(--heading);font-size:12px;font-style:normal;font-weight:900}.latency-node{border:1px solid var(--border);background:var(--surface-soft);width:128px;min-height:118px;box-shadow:var(--shadow);border-radius:8px;grid-template-rows:auto auto auto 1fr;gap:6px;padding:10px;display:grid}.latency-node span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:900}.latency-node strong{color:var(--heading);font-size:13px;line-height:1.2}.latency-node code{background:var(--surface);color:var(--accent);border-radius:7px;justify-self:start;padding:4px 7px;font-size:12px;font-weight:900}.latency-node small{color:var(--muted);align-self:end;font-size:10px;line-height:1.25}.latency-edge{width:74px;min-height:118px;color:var(--muted);grid-template-rows:1fr auto auto 1fr;place-items:center;gap:4px;display:grid}.latency-edge-arrow{width:100%;color:inherit;border-top:2px solid;grid-row:2;font-size:0;display:block}.latency-edge-arrow:after{content:"";float:right;border-top:2px solid;border-right:2px solid;width:8px;height:8px;margin-top:-5px;transform:rotate(45deg)}.latency-edge strong{border:1px solid var(--border);background:var(--surface);color:var(--muted-strong);white-space:nowrap;border-radius:999px;grid-row:3;padding:3px 6px;font-size:11px}.latency-edge small{color:var(--muted);text-align:center;grid-row:4;font-size:10px}.latency-node.ready,.latency-edge.ready strong{border-color:var(--good-border)}.latency-node.ready code,.latency-edge.ready strong{color:var(--good-text)}.latency-node.warn,.latency-edge.warn strong{border-color:var(--warn-border)}.latency-node.warn code,.latency-edge.warn strong{color:var(--warn-text)}.latency-node.problem,.latency-edge.problem strong{border-color:#f19a9a}.latency-node.problem code,.latency-edge.problem strong{color:#d33d3d}.latency-node.waiting code,.latency-edge.waiting strong{color:var(--muted)}@media (width<=1320px){.ops-workspace{grid-template-columns:1fr}.conversation-panel{position:static}}@media (width<=1100px){.service-console{grid-template-columns:1fr}.service-sidebar{max-height:none;position:static}.service-nav-list{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}@media (width<=900px){.ops-shell{width:min(100% - 20px,1720px);padding-top:14px}.ops-topbar{flex-direction:column}.ops-status-stack{justify-content:flex-start;min-width:0}.ops-kpis,.pipeline-lane,.stage-grid,.service-nav-list,.service-health,.service-mode-switch.top{grid-template-columns:1fr}.service-workbench-head{flex-direction:column}.service-workbench-actions{align-items:flex-start;width:100%;min-width:0}.service-mode-switch.top{width:100%}.pipeline-node:after{display:none}.stage-timegrid,.runtime-grid,.ops-setting-row{grid-template-columns:1fr}.switch{justify-self:start}}.lexicon-panel{flex-direction:column;gap:12px;display:flex}.lexicon-toolbar{grid-template-columns:minmax(220px,1.3fr) repeat(4,minmax(120px,.75fr)) auto;align-items:center;gap:8px;display:grid}.file-button{cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;min-height:34px;display:inline-flex;position:relative}.file-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.lexicon-status{border:1px solid var(--border-soft);background:var(--surface-soft);min-height:34px;color:var(--muted-strong);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;font-size:12px;font-weight:800;display:flex}.lexicon-layout{grid-template-columns:minmax(300px,.95fr) minmax(360px,1.05fr);align-items:start;gap:12px;display:grid}.lexicon-list{flex-direction:column;gap:8px;max-height:680px;padding-right:4px;display:flex;overflow:auto}.lexicon-row{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;display:grid}.lexicon-row.disabled{opacity:.62}.lexicon-row>button{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:9px 10px}.lexicon-row strong,.lexicon-row span,.lexicon-row small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.lexicon-row strong{color:var(--heading);font-size:13px}.lexicon-row span{color:var(--muted-strong);margin-top:3px;font-size:12px}.lexicon-row small{color:var(--muted);margin-top:4px;font-size:11px}.lexicon-row-meta{border-left:1px solid var(--border-soft);flex-direction:column;justify-content:center;gap:4px;min-width:88px;padding:7px;display:flex}.lexicon-row-meta span,.lexicon-row-meta button{border:1px solid var(--border);background:var(--surface);min-height:22px;color:var(--muted-strong);text-align:center;border-radius:6px;padding:3px 6px;font-size:10px;font-weight:900}.lexicon-row-meta button{cursor:pointer}.lexicon-editor,.lexicon-test{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:12px}.lexicon-editor-head,.lexicon-editor-actions{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.lexicon-editor-head strong{color:var(--heading)}.personalizer-panel{flex-direction:column;gap:12px;display:flex}.personalizer-grid{grid-template-columns:1fr;gap:10px;display:grid}.normalizer-result{flex-direction:column;grid-column:1/-1;gap:10px;display:flex}.normalizer-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.inline-action-row{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;width:100%;display:grid}.service-action-button.primary{background:var(--accent);color:#fff}.service-action-button.danger{color:#b91c1c;background:#dc262614;border-color:#dc262659}.asset-editor-panel{flex-direction:column;gap:12px;display:flex}.asset-editor-toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.asset-editor-layout{grid-template-columns:minmax(300px,.85fr) minmax(420px,1.15fr);align-items:start;gap:12px;display:grid}.mock-flow-editor-layout{grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr);align-items:start;gap:12px;display:grid}.mock-flow-editor-layout.diagram-only{grid-template-columns:1fr}.interview-flow-board{border:1px solid var(--border);background:linear-gradient(#31c76513 1px, transparent 1px), linear-gradient(90deg, #31c76513 1px, transparent 1px), var(--surface);background-size:32px 32px;border-radius:8px;min-height:620px;overflow:auto}.interview-flow-board.empty{min-height:240px;color:var(--muted);place-items:center;padding:24px;font-weight:800;display:grid}.interview-flow-diagram{min-width:100%;position:relative}.interview-flow-svg{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.interview-flow-svg marker path{fill:var(--accent)}.interview-flow-edge{fill:none;stroke:var(--border);stroke-width:2px}.interview-flow-edge.main{stroke:var(--accent);stroke-width:2.5px}.interview-flow-edge.branch{stroke:var(--muted);stroke-dasharray:6 6;opacity:.8}.interview-flow-node{border:1px solid var(--border);background:var(--surface-soft);min-height:104px;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;padding:10px;position:absolute;overflow:hidden;box-shadow:0 10px 30px #0b121b14}.interview-flow-node.root{background:linear-gradient(135deg, #31c76524, var(--surface-soft));border-color:#31c7658c}.interview-flow-node.followup{min-height:86px}.interview-flow-node.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.interview-flow-node.pending{border-style:dashed}.interview-flow-node.generating{border-color:#31c765b3}.interview-flow-node-progress{z-index:0;background:linear-gradient(90deg,#31c76547,#31c7652e);transition:width .18s;display:block;position:absolute;inset:0 auto 0 0}.interview-flow-audio-icon{z-index:2;border:1px solid var(--border);background:var(--surface);border-radius:7px;place-items:center;width:28px;height:24px;display:grid;position:absolute;top:8px;right:8px}.interview-flow-audio-icon.ready{background:var(--good-bg);border-color:#2a9d59}.interview-flow-audio-icon.missing{background:var(--warn-bg);border-color:#d77b27}.interview-flow-audio-icon.missing:after{content:"";background:#d77b27;border-radius:999px;width:20px;height:2px;position:absolute;transform:rotate(-38deg)}.interview-flow-speaker{width:15px;height:13px;position:relative}.interview-flow-speaker:before{content:"";background:currentColor;border-radius:2px 0 0 2px;width:6px;height:5px;position:absolute;top:4px;left:0;box-shadow:5px -3px 0 -1px,5px 3px 0 -1px}.interview-flow-speaker:after{content:"";border-right:2px solid;border-radius:50%;width:8px;height:10px;position:absolute;top:1px;right:0}.interview-flow-audio-icon.ready .interview-flow-speaker{color:#17663c}.interview-flow-audio-icon.missing .interview-flow-speaker{color:#955316;opacity:.72}.interview-flow-node-content{z-index:1;gap:6px;display:grid;position:relative}.interview-flow-node strong,.interview-flow-node em,.interview-flow-node small{min-width:0;display:block}.interview-flow-node strong{color:var(--heading);font-size:13px;line-height:1.25}.interview-flow-node em{color:var(--muted-strong);-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;font-style:normal;line-height:1.35;display:-webkit-box;overflow:hidden}.interview-flow-node small{color:var(--muted);font-size:11px;font-weight:800}.decision-flow-editor{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;flex-direction:column;gap:12px;padding:12px;display:flex}.decision-flow-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.decision-flow-head>div:first-child{gap:4px;display:grid}.decision-flow-head strong{color:var(--heading);font-size:14px}.decision-flow-head span{color:var(--muted-strong);font-size:12px;font-weight:800}.decision-flow-tabs{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.decision-flow-tabs button{border:1px solid var(--border);background:var(--surface);min-height:30px;color:var(--muted-strong);cursor:pointer;border-radius:7px;padding:0 10px;font-size:12px;font-weight:800}.decision-flow-tabs button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.decision-flow-list{gap:10px;display:grid}.decision-flow-item{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:10px;padding:10px;display:grid}.decision-flow-item.compact{gap:8px}.decision-flow-row{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));align-items:center;gap:8px;display:grid}.decision-flow-row>.service-action-button{min-height:36px}.decision-flow-switches{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:center;gap:8px;display:grid}.decision-flow-switches .ops-setting-row{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;margin:0;padding:8px}.decision-flow-test{border:1px solid var(--border);background:var(--surface);color:var(--muted-strong);border-radius:8px;grid-template-columns:minmax(150px,.8fr) minmax(160px,.8fr) minmax(180px,1fr);align-items:center;gap:8px;padding:10px;font-size:12px;font-weight:800;display:grid}.decision-flow-test.passed{background:var(--good-bg);border-color:#31c76573}.decision-flow-test.failed{background:#dc262614;border-color:#dc262661}.decision-flow-test code{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.asset-job-progress{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.asset-job-progress.running{border-color:#31c76573}.asset-job-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.asset-job-head strong{color:var(--heading);font-size:13px}.asset-job-head span{color:var(--muted-strong);font-size:12px;font-weight:800}.asset-job-bar{background:#94a3b838;border-radius:999px;width:100%;height:8px;overflow:hidden}.asset-job-bar span{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--accent));height:100%;transition:width .18s;display:block}.asset-job-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.topic-selection-card{background:var(--accent-soft);border:1px solid #31c76559;border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.topic-selection-card strong{color:var(--heading);font-size:15px;line-height:1.25}.topic-selection-card p{color:var(--muted-strong);margin:0;font-size:13px;line-height:1.45}.topic-selection-card div{flex-wrap:wrap;gap:6px;display:flex}.topic-selection-card code{border:1px solid var(--border);background:var(--surface);color:var(--muted-strong);border-radius:6px;padding:4px 7px;font-size:11px}.asset-tree-list,.prefix-variant-list{flex-direction:column;gap:8px;max-height:720px;padding-right:4px;display:flex;overflow:auto}.asset-tree-list>button,.prefix-variant-list>button{border:1px solid var(--border);background:var(--surface-soft);width:100%;min-width:0;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;padding:10px;display:block}.asset-tree-list>button.active,.prefix-variant-list>button.active{border-color:var(--accent);background:var(--accent-soft)}.asset-tree-list strong,.asset-tree-list span,.asset-tree-list small,.prefix-variant-list strong,.prefix-variant-list span,.prefix-variant-list small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.asset-tree-list strong,.prefix-variant-list strong{color:var(--heading);font-size:13px}.asset-tree-list span,.prefix-variant-list span{color:var(--muted-strong);margin-top:4px;font-size:12px}.asset-tree-list small,.prefix-variant-list small{color:var(--muted);margin-top:5px;font-size:11px}.asset-editor-detail,.asset-nested-editor{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:12px}.asset-editor-detail{flex-direction:column;gap:10px;display:flex}.asset-subhead,.asset-nested-head{justify-content:space-between;align-items:center;gap:10px;margin-top:4px;display:flex}.asset-subhead strong,.asset-nested-head strong{color:var(--heading)}.asset-nested-editor{background:var(--surface-soft);flex-direction:column;gap:8px;display:flex}.asset-nested-head span{color:var(--muted);font-size:11px;font-weight:900}.asset-nested-head button{border:1px solid var(--border);background:var(--surface);min-height:26px;color:var(--muted-strong);cursor:pointer;border-radius:6px}.lexicon-test{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.lexicon-test>div{flex-direction:column;gap:8px;display:flex}.lexicon-test-output{border:1px solid var(--border);background:var(--surface-soft);max-height:260px;color:var(--text);white-space:pre-wrap;border-radius:8px;grid-column:1/-1;margin:0;padding:10px;font-size:12px;line-height:1.45;overflow:auto}@media (width<=1180px){.lexicon-toolbar,.lexicon-layout,.lexicon-test,.normalizer-cards,.mock-flow-editor-layout,.asset-editor-layout,.asset-job-grid{grid-template-columns:1fr}}[data-theme=dark] .ops-topbar h1,[data-theme=dark] .stage-head h2,[data-theme=dark] .conversation-head h2,[data-theme=dark] .service-workbench-head h2,[data-theme=dark] .service-sidebar-head strong,[data-theme=dark] .kpi strong,[data-theme=dark] .pipeline-node strong,[data-theme=dark] .stage-timegrid strong,[data-theme=dark] .runtime-metric strong,[data-theme=dark] .ops-setting-row strong,[data-theme=dark] .stage-settings-title,[data-theme=dark] .info-row strong,[data-theme=dark] .service-nav-main strong{color:var(--heading)}[data-theme=dark] .product-label,[data-theme=dark] .stage-eyebrow,[data-theme=dark] .ops-topbar p,[data-theme=dark] .stage-head p,[data-theme=dark] .service-workbench-head p,[data-theme=dark] .kpi-label,[data-theme=dark] .kpi-detail,[data-theme=dark] .stage-timegrid span,[data-theme=dark] .runtime-metric span,[data-theme=dark] .ops-setting-row small,[data-theme=dark] .config-summary span,[data-theme=dark] .connection-pill,[data-theme=dark] .service-nav-main small,[data-theme=dark] .service-nav-group-title,[data-theme=dark] .info-row span{color:var(--muted)}[data-theme=dark] .kpi,[data-theme=dark] .pipeline-node,[data-theme=dark] .stage-panel,[data-theme=dark] .conversation-panel,[data-theme=dark] .student-live-card,[data-theme=dark] .topic-selection-card,[data-theme=dark] .service-sidebar,[data-theme=dark] .service-workbench,[data-theme=dark] .service-nav-card,[data-theme=dark] .connection-pill,[data-theme=dark] .runtime-metric,[data-theme=dark] .config-summary span,[data-theme=dark] .ops-input,[data-theme=dark] .info-row,[data-theme=dark] .endpoint-list code,[data-theme=dark] .service-link,[data-theme=dark] .service-action-button,[data-theme=dark] .service-mode-switch button,[data-theme=dark] .service-state{border-color:var(--border);background:var(--surface)}[data-theme=dark] .runtime-metric,[data-theme=dark] .config-summary span,[data-theme=dark] .ops-input,[data-theme=dark] .stage-badge,[data-theme=dark] .conversation-status,[data-theme=dark] .info-row,[data-theme=dark] .endpoint-list code,[data-theme=dark] .service-link,[data-theme=dark] .service-mode-switch button,[data-theme=dark] .service-state{background:var(--surface-soft);color:var(--text)}[data-theme=dark] .service-action-button{background:var(--accent);color:#fff}[data-theme=dark] .stage-timegrid,[data-theme=dark] .conversation-head,[data-theme=dark] .ops-setting-row,[data-theme=dark] .service-sidebar-head,[data-theme=dark] .service-workbench-head,[data-theme=dark] .service-section+.service-section{border-color:var(--border-soft)}[data-theme=dark] .kpi.good,[data-theme=dark] .connection-pill.ok,[data-theme=dark] .stage-badge.ready,[data-theme=dark] .service-state.ready{border-color:var(--good-border);background:var(--good-bg);color:var(--good-text)}[data-theme=dark] .kpi.warn,[data-theme=dark] .connection-pill.warn,[data-theme=dark] .pipeline-node.problem,[data-theme=dark] .stage-panel.problem,[data-theme=dark] .stage-badge.problem,[data-theme=dark] .service-state.problem{border-color:var(--warn-border);background:var(--warn-bg);color:var(--warn-text)}[data-theme=dark] .pipeline-node.ready,[data-theme=dark] .stage-panel.ready,[data-theme=dark] .service-workbench.ready,[data-theme=dark] .service-nav-card.selected,[data-theme=dark] .connection-pill.active,[data-theme=dark] .service-mode-switch button.active{background:var(--accent-soft);color:var(--accent-hover);border-color:#31c76585}[data-theme=dark] .pipeline-node:after{border-top-color:#344255}.auth-shell,.role-shell{min-height:100vh}.auth-shell{place-items:center;padding:24px;display:grid}.auth-card{border:1px solid var(--border);background:var(--surface);width:min(560px,100%);box-shadow:var(--shadow);border-radius:10px;padding:22px}.auth-card-head{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px;display:flex}.auth-card h1,.role-section-head h1{color:var(--heading);margin:4px 0 8px;font-size:28px;line-height:1.1}.auth-card p,.role-section-head p{color:var(--muted-strong);margin:0;line-height:1.45}.auth-form{gap:12px;display:grid}.auth-form label{color:var(--muted-strong);gap:6px;font-size:12px;font-weight:900;display:grid}.auth-actions{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.auth-note{border:1px solid var(--border);background:var(--surface-soft);color:var(--muted-strong);border-radius:8px;margin-top:14px;padding:10px;font-size:13px}.role-shell{grid-template-columns:240px minmax(0,1fr);gap:14px;width:min(1540px,100% - 24px);margin:0 auto;padding:12px 0;display:grid}.role-sidebar,.role-main{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:10px}.role-sidebar{flex-direction:column;align-self:start;gap:16px;min-height:calc(100vh - 24px);padding:14px;display:flex;position:sticky;top:12px}.role-sidebar-brand{border-bottom:1px solid var(--border-soft);gap:5px;padding-bottom:12px;display:grid}.role-sidebar-brand small{color:var(--muted);font-size:11px;font-weight:800}.app-brand-logo{align-items:center;width:134px;min-height:28px;display:flex}.app-brand-logo img{width:100%;height:auto;display:block}.app-brand-logo-dark{display:none!important}:root[data-theme=dark] .app-brand-logo-light{display:none}:root[data-theme=dark] .app-brand-logo-dark{display:block!important}.role-sidebar-brand strong{color:var(--heading);font-size:18px}.role-sidebar nav{gap:8px;display:grid}.role-sidebar nav button{border:1px solid var(--border);background:var(--surface-soft);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;padding:10px 12px;font-weight:900}.role-sidebar nav button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--heading)}.role-sidebar-footer{gap:8px;margin-top:auto;display:grid}.role-sidebar-footer a{color:var(--accent);font-weight:900;text-decoration:none}.role-sidebar-version{opacity:.5;letter-spacing:.02em;font-size:.72rem}.role-main{min-width:0;padding:16px}.role-main--cards{box-shadow:none;background:0 0;border:0;padding:0}.role-section{gap:14px;display:grid}.role-section--interviews{gap:16px}.role-section-card,.role-content-card{border:1px solid var(--border);background:var(--surface-soft);box-shadow:var(--shadow);border-radius:10px}.role-section-card{padding:16px 18px}.role-content-card{padding:16px}.role-section-head,.role-modal-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.service-card-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;display:grid}.admin-service-card{border:1px solid var(--border);background:var(--surface-soft);min-height:216px;color:var(--text);text-align:left;cursor:pointer;border-radius:10px;flex-direction:column;justify-content:space-between;gap:14px;padding:14px;display:flex}.admin-service-card:hover,.access-card:hover,.interview-list-card:hover{border-color:var(--accent)}.admin-service-card strong{color:var(--heading);margin:5px 0;font-size:17px;display:block}.admin-service-card p{color:var(--muted-strong);margin:0;font-size:13px;line-height:1.45}.service-address-block{border:1px solid var(--border-soft);background:var(--surface);border-radius:8px;gap:5px;min-width:0;padding:8px;display:grid}.service-address-block>div{grid-template-columns:48px minmax(0,1fr);align-items:center;gap:8px;min-width:0;display:grid}.service-address-block span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:900}.service-address-block code{min-width:0;color:var(--muted-strong);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.admin-service-card-meta{justify-content:space-between;align-items:center;gap:10px;display:flex}.admin-service-card-meta code{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.service-address-grid .info-row strong{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.role-modal-backdrop{z-index:20;background:#0409108c;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.role-modal{border:1px solid var(--border);background:var(--surface);border-radius:12px;width:min(1180px,100%);max-height:min(900px,100vh - 48px);padding:16px;overflow:auto;box-shadow:0 24px 80px #00000059}.interview-node-modal{width:min(980px,100%)}.access-create-form{grid-template-columns:minmax(180px,1fr) minmax(150px,.8fr) minmax(150px,.7fr) minmax(160px,.8fr) auto;gap:10px;display:grid}.access-subsection{gap:12px;padding-top:4px;display:grid}.access-subsection+.access-subsection{border-top:1px solid var(--border);padding-top:18px}.access-subsection-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.access-subsection-head h2,.access-subsection-head p{margin:0}.access-subsection-head h2{color:var(--heading);font-size:18px}.access-subsection-head p{color:var(--muted);margin-top:4px;font-size:13px}.embed-token-create-form{grid-template-columns:minmax(260px,1fr) minmax(180px,.35fr) auto;align-items:end;gap:10px;display:grid}.embed-token-create-form label{color:var(--muted-strong);gap:5px;font-size:12px;font-weight:800;display:grid}.embed-token-secret{border:1px solid var(--accent);background:var(--surface-soft);border-radius:8px;grid-template-columns:minmax(150px,.35fr) minmax(260px,1fr) auto;align-items:center;gap:12px;padding:12px;display:grid}.embed-token-secret strong,.embed-token-secret span{display:block}.embed-token-secret span{color:var(--muted);margin-top:3px;font-size:12px}.embed-token-secret code,.embed-token-card code{overflow-wrap:anywhere;color:var(--heading);font-size:12px}.embed-token-secret-actions,.embed-token-card-actions{align-items:center;gap:8px;display:flex}.access-empty{color:var(--muted);text-align:center;padding:18px 12px}.access-list{gap:10px;display:grid}.access-card{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.access-card strong,.access-card span,.access-card small{display:block}.embed-token-card>div:first-child{min-width:0}.embed-token-card code,.embed-token-card small{margin-top:4px;display:block}.access-card strong{color:var(--heading)}.access-card span,.access-card small{color:var(--muted);font-size:12px}.audit-toolbar{grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(150px,.7fr));gap:10px;display:grid}.audit-table-wrap{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;min-height:180px;position:relative;overflow:auto}.audit-table{border-collapse:collapse;width:100%;font-size:13px}.audit-table th,.audit-table td{border-bottom:1px solid var(--border-soft);text-align:left;vertical-align:top;padding:11px 12px}.audit-table th{z-index:1;background:var(--surface);color:var(--muted);text-transform:uppercase;font-size:11px;position:sticky;top:0}.audit-table td strong,.audit-table td small{display:block}.audit-table td small{color:var(--muted);margin-top:3px}.audit-table td code{color:var(--muted-strong);font-size:11px}.audit-nowrap{white-space:nowrap}.audit-result{color:var(--muted-strong);font-weight:800;display:inline-block}.audit-result.success{color:var(--accent)}.audit-result.failure{color:var(--danger)}.audit-details{position:relative}.audit-details summary{cursor:pointer;width:30px;color:var(--muted-strong);text-align:center;list-style:none}.audit-details>div{z-index:4;border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:5px;width:min(480px,80vw);padding:12px;display:grid;position:absolute;right:0;box-shadow:0 16px 36px #00000040}.audit-details span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.audit-details pre{max-height:220px;color:var(--muted-strong);white-space:pre-wrap;margin:0;font-size:11px;overflow:auto}.audit-empty,.audit-loading{color:var(--muted);text-align:center;padding:30px}.audit-loading{background:color-mix(in srgb, var(--surface-soft) 82%, transparent);position:absolute;inset:38px 0 0}.audit-pagination,.audit-pagination>div{align-items:center;gap:8px;display:flex}.audit-pagination{color:var(--muted);justify-content:space-between;font-size:12px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.history-head-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.history-table-wrap{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;overflow:auto}.history-table{border-collapse:collapse;width:100%;min-width:860px}.history-table th,.history-table td{border-bottom:1px solid var(--border-soft);color:var(--text);text-align:left;vertical-align:middle;padding:10px 12px;font-size:13px}.history-table th{color:var(--muted);letter-spacing:0;text-transform:uppercase;font-size:10px;font-weight:900}.history-table tbody tr{cursor:pointer}.history-table tbody tr:hover{background:var(--accent-soft)}.history-row-button{width:100%;min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;gap:2px;padding:0;display:grid}.history-row-button strong,.history-row-button small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-row-button strong{color:var(--heading);font-size:13px}.history-row-button small{color:var(--muted);font-size:11px}.history-delete-button{color:#fecaca;cursor:pointer;background:#7f1d1d1f;border:1px solid #f87171b3;border-radius:7px;justify-content:center;align-items:center;min-height:30px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.history-delete-button:hover:not(:disabled){background:#7f1d1d38}.history-delete-button:disabled{cursor:wait;opacity:.65}.history-empty,.history-empty-cell{color:var(--muted);font-size:13px}.history-empty-cell{text-align:center;padding:28px 12px}.history-modal{width:min(1120px,100%)}.history-modal-head p{color:var(--muted);margin:4px 0 0;font-size:12px}.history-tabs{border-bottom:1px solid var(--border-soft);gap:8px;margin:14px 0;display:flex}.history-tabs button{color:var(--muted-strong);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:9px 10px;font-weight:900}.history-tabs button.active{border-bottom-color:var(--accent);color:var(--heading)}.history-chat{gap:10px;padding:4px 0;display:grid}.history-chat-row{display:flex}.history-chat-row.interviewer{justify-content:flex-start}.history-chat-row.candidate{justify-content:flex-end}.history-chat-row.system{justify-content:center}.history-bubble{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;gap:7px;max-width:min(720px,88%);padding:11px 12px;display:grid}.history-bubble.candidate{background:#24975a14;border-color:#24975a73}.history-bubble.system{max-width:min(520px,88%);color:var(--text-muted);text-align:center;background:var(--surface)}.history-bubble header{justify-content:space-between;align-items:center;gap:10px;display:flex}.history-bubble header>div{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.history-bubble span{color:var(--muted);letter-spacing:0;text-transform:uppercase;font-size:10px;font-weight:900}.history-bubble p{color:var(--text);margin:0;line-height:1.45}.history-bubble small{color:var(--muted);font-size:11px}.history-correction-link{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:0;justify-self:flex-start;padding:0;font-size:12px;font-weight:800}.history-correction-form{gap:8px;display:grid}.history-correction-form textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:76px;color:var(--text);background:var(--surface);font:inherit;border-radius:8px;padding:9px 10px}.history-correction-form>div{flex-wrap:wrap;gap:8px;display:flex}.history-mini-score{color:#58687a;white-space:nowrap;background:#eef2f6;border-radius:6px;align-items:center;min-height:24px;padding:3px 7px;font-size:11px;font-weight:900;display:inline-flex}.history-mini-score.ready{color:#17663c;background:#eef8f2}.history-mini-score.problem{color:#a2362b;background:#fff1f0}.history-mini-score.pending{color:#8a5a11;background:#fff7e6}.history-model-badge{color:#4f6072;letter-spacing:0;text-transform:none;white-space:normal;background:#eef2f6;border:1px solid #d5dde7;border-radius:6px;align-items:center;max-width:min(100%,520px);min-height:24px;padding:3px 8px;font-size:11px;font-weight:900;line-height:1.25;display:inline-flex}.history-model-badge.ready{color:#17663c;background:#eef8f2;border-color:#b9e4c8}.history-model-badge.problem{color:#a2362b;background:#fff1f0;border-color:#ffd3cf}.history-model-badge.pending{color:#8a5a11;background:#fff7e6;border-color:#ffe0a3}.history-dev-diagnostics{border-top:1px solid #ffffff14;gap:8px;margin-top:4px;padding-top:8px;display:grid}:root:not([data-theme=dark]) .history-dev-diagnostics{border-top-color:#11182714}.history-dev-chips,.history-dev-route{flex-wrap:wrap;gap:6px;display:flex}.history-dev-chips span,.history-dev-route span{min-height:22px;color:var(--muted-strong);letter-spacing:0;text-transform:none;background:#31c7651a;border:1px solid #31c76547;border-radius:6px;align-items:center;padding:3px 7px;font-size:11px;font-weight:800;display:inline-flex}.history-dev-chips .history-decision-chip{color:#4f6072;background:#eef2f6;border-color:#d5dde7}.history-dev-chips .history-decision-chip.ready{color:#17663c;background:#eef8f2;border-color:#b9e4c8}.history-dev-chips .history-decision-chip.problem{color:#a2362b;background:#fff1f0;border-color:#ffd3cf}.history-dev-chips .history-decision-chip.pending{color:#8a5a11;background:#fff7e6;border-color:#ffe0a3}.history-dev-route span{border-color:var(--border);background:var(--surface-soft);color:var(--muted)}.history-dev-timing-grid{grid-template-columns:repeat(5,minmax(92px,1fr));gap:6px;display:grid}.history-dev-timing-card{border:1px solid var(--border-soft);min-height:58px;color:var(--text);text-align:left;cursor:pointer;background:#0000001f;border-radius:7px;gap:2px;padding:8px;display:grid}:root:not([data-theme=dark]) .history-dev-timing-card{background:#ffffff9e}.history-dev-timing-card:hover{background:#31c7651a;border-color:#31c76573}.history-dev-timing-card span{color:var(--muted);letter-spacing:0;text-transform:uppercase;font-size:10px;font-weight:900}.history-dev-timing-card strong{color:var(--heading);font-size:14px;line-height:1.05}.history-dev-timing-card small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.history-debug-modal{width:min(780px,100vw - 28px);max-height:min(760px,100vh - 28px);overflow:auto}.history-debug-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.history-debug-grid.compact{grid-template-columns:1fr}.history-debug-grid div,.history-debug-note{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;gap:4px;padding:10px;display:grid}.history-debug-grid small{color:var(--muted);font-size:11px;line-height:1.35}.history-debug-grid span,.history-debug-note span{color:var(--muted);text-transform:uppercase;font-size:11px;font-weight:900}.history-debug-grid strong,.history-debug-note p{color:var(--text);white-space:pre-wrap;margin:0;font-size:13px;line-height:1.35}.history-audio-button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;place-items:center;width:30px;height:30px;padding:0;display:inline-grid;position:relative}.history-audio-button:disabled{cursor:not-allowed;opacity:.45}.history-speaker-icon{width:16px;height:14px;position:relative}.history-speaker-icon:before{background:var(--accent);content:"";border-radius:2px;width:5px;height:6px;position:absolute;top:4px;left:1px}.history-speaker-icon:after{border:2px solid var(--accent);content:"";border-left:0;border-radius:0 10px 10px 0;width:8px;height:10px;position:absolute;top:2px;left:6px}.history-processing{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;gap:6px;padding:14px;display:grid}.history-processing.error{background:#7f1d1d1f;border-color:#f87171bf}.history-error-details{color:var(--muted-strong);gap:6px;font-size:12px;display:grid}.history-error-details summary{cursor:pointer;width:fit-content;color:var(--heading);font-weight:800}.history-processing strong,.history-feedback-summary strong,.history-turn-score strong,.history-log-card strong{color:var(--heading)}.history-processing p{color:var(--muted-strong);margin:0}.history-feedback,.history-turn-scores,.history-logs{gap:10px;display:grid}.history-feedback-summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;display:grid}.history-feedback-summary div,.history-turn-score,.history-log-card{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;padding:11px}.history-feedback-summary span,.history-turn-score span,.history-log-card span,.history-log-card small{color:var(--muted);font-size:11px}.history-feedback-summary span,.history-feedback-summary strong{display:block}.history-feedback-note{color:var(--muted-strong);margin:0;font-size:12px;line-height:1.45}.history-score-group{gap:8px;display:grid}.history-score-group>header{gap:3px;display:grid}.history-score-group h3{color:var(--heading);margin:0;font-size:16px}.history-score-group p{color:var(--muted);margin:0;font-size:12px;line-height:1.4}.history-turn-score{justify-content:space-between;align-items:center;gap:10px;display:flex}.history-turn-score div{gap:3px;min-width:0;display:grid}.history-score-detail{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px}.history-score-detail.excluded{opacity:.82}.history-score-detail summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:11px;display:flex}.history-score-detail summary>div{gap:3px;min-width:0;display:grid}.history-score-detail-body{gap:8px;padding:0 11px 11px;display:grid}.history-score-detail-body p{color:var(--muted-strong);margin:0;line-height:1.45}.history-score-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;display:grid}.history-score-grid div{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:8px}.history-score-grid span,.history-score-detail summary span{color:var(--muted);font-size:11px}.history-score-grid strong,.history-score-detail summary strong{color:var(--heading)}.history-score-section{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:8px;padding:10px;display:grid}.history-score-section>strong{color:var(--heading)}.history-score-chip-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;display:grid}.history-score-chip-grid.compact{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.history-score-chip-grid div,.history-score-fact-list>div{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;gap:4px;padding:8px;display:grid}.history-score-chip-grid span,.history-score-fact-list span,.history-score-match small{color:var(--muted);font-size:11px}.history-score-fact-list{gap:8px;display:grid}.history-score-fact-list b,.history-score-chip-grid strong{color:var(--heading)}.history-score-match{border-top:1px solid var(--border);gap:3px;padding-top:6px;display:grid}.history-json-details{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;padding:10px}.history-json-details summary{color:var(--heading);cursor:pointer;font-weight:900}.history-json-details pre,.history-log-card pre{background:var(--surface);max-height:360px;color:var(--text);white-space:pre-wrap;word-break:break-word;border-radius:8px;margin:8px 0 0;padding:10px;font-size:11px;line-height:1.45;overflow:auto}.history-log-card header{justify-content:space-between;align-items:center;gap:10px;display:flex}@media (width<=760px){.history-head-actions,.history-modal-head,.history-turn-score,.history-log-card header{flex-direction:column;align-items:stretch}.history-bubble{max-width:100%}}.manager-test-layout{gap:14px;display:grid}.compact-manager-panel .asset-editor-toolbar{gap:8px}.interview-list-card{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;gap:8px;padding:10px;display:grid}.interview-list-card.active{border-color:var(--accent);background:var(--accent-soft)}.interview-list-card>button{width:100%;min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:block}.interview-card-actions{flex-wrap:wrap;gap:8px;display:flex}.interview-list-card strong,.interview-list-card span,.interview-list-card small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.interview-list-card strong{color:var(--heading);font-size:13px}.interview-list-card span,.interview-list-card small{color:var(--muted);margin-top:4px;font-size:12px}.embed-interview-body{background:#03140b;min-height:100vh}.embed-interview-body #root{min-height:100vh}.embed-interview-page{--embed-bg:#03140b;--embed-panel:#1b261f;--embed-panel-soft:#17231b;--embed-card:#101c14;--embed-text:#f4fbf6;--embed-muted:#a9b8ad;--embed-soft:#657568;--embed-border:#ffffff14;--embed-green:#31c765;--embed-green-dark:#155c31;width:min(980px,100vw - 28px);min-height:100vh;color:var(--embed-text);background:var(--embed-bg);grid-template-rows:auto minmax(0,1fr) auto;gap:14px;margin:0 auto;padding:18px 0;display:grid}.embed-interview-topbar,.embed-interview-surface,.embed-interview-footer{border:1px solid var(--embed-border);background:var(--embed-panel);border-radius:20px;box-shadow:0 16px 44px #0000002e}.embed-interview-topbar{justify-content:space-between;align-items:center;gap:14px;min-height:74px;padding:14px 18px;display:flex}.embed-brand{align-items:center;gap:24px;min-width:0;display:flex}.embed-brand img{width:172px;max-width:44vw;height:auto;display:block}.embed-brand span{color:var(--embed-muted);letter-spacing:.12em;text-transform:uppercase;font-size:11px;font-weight:900}.embed-mode-toggle{background:#122418;border-radius:999px;gap:4px;padding:5px;display:inline-flex;box-shadow:inset 0 0 0 1px #31c76514}.embed-mode-toggle button{color:#d7e3db;cursor:pointer;background:0 0;border:0;border-radius:999px;min-width:58px;min-height:38px;padding:0 15px;font-size:16px;font-weight:900}.embed-mode-toggle button.active{color:#fff;background:linear-gradient(135deg,#31c765,#35e071);box-shadow:0 8px 24px #31c76547}.embed-interview-surface{isolation:isolate;background:var(--embed-panel);min-height:min(720px,100vh - 186px);position:relative;overflow:hidden}.embed-interview-surface:before{content:"";z-index:0;pointer-events:none;background:linear-gradient(118deg, #31c7652e 0%, #31c76540 28%, #29d7bd21 52%, #31c76533 74%, #31c7651f 100%), linear-gradient(180deg, #31c76529, #31c76514 52%, #03140b0a), linear-gradient(90deg, #03140b3d, transparent 24%, transparent 76%, #03140b3d), var(--embed-panel);background-size:cover;position:absolute;inset:0}.embed-interview-surface:after{content:"";z-index:0;pointer-events:none;background:linear-gradient(90deg,#0000001f,#0000 18% 82%,#0000001f),linear-gradient(#00000014,#0000 24% 78%,#00000024);position:absolute;inset:0}.embed-interview-surface>*{z-index:1;position:relative}.embed-interview-page.chat .embed-interview-surface{flex-direction:column;padding:18px 10px 0;display:flex}.embed-chat-stream{min-height:100%}.embed-chat-stream .ai-transcript{gap:12px;min-height:min(650px,100vh - 245px);max-height:min(650px,100vh - 245px);padding:0 8px 18px}.embed-chat-stream .ai-message{width:fit-content;max-width:min(66%,620px);box-shadow:none;background:#162017;border:1px solid #ffffff0f;border-radius:16px;grid-template-columns:1fr;gap:4px;padding:13px 16px;display:grid}.embed-chat-stream .ai-message.assistant{border-left:0;border-bottom-left-radius:4px;align-self:flex-start}.embed-chat-stream .ai-message.student{background:linear-gradient(135deg,#35d66b,#36c7a9);border-left:0;border-bottom-right-radius:4px;align-self:flex-end}.embed-chat-stream .ai-message.system{background:#ff9f431f;border-left:0;align-self:center}.embed-chat-stream .ai-message-role{color:#ffffffad;letter-spacing:.06em;text-transform:uppercase;font-size:10px}.embed-chat-stream .ai-message.student .ai-message-role,.embed-chat-stream .ai-message.student .ai-message-text,.embed-chat-stream .ai-message.student .ai-voice-note-meta{color:#fff}.embed-chat-stream .ai-message-text{color:#f4fbf6;font-size:16px;line-height:1.45}.embed-chat-stream .ai-voice-note{min-width:240px}.embed-chat-stream .ai-voice-note-wave i{background:#ffffffb8}.embed-hidden-stream{pointer-events:none;position:absolute;inset:0}.embed-live-stage{text-align:center;align-content:center;justify-items:center;gap:18px;min-height:min(720px,100vh - 186px);padding:40px 34px;display:grid}.embed-voice-orb{aspect-ratio:1;width:clamp(156px,22vw,232px);box-shadow:0 0 var(--embed-voice-glow) rgba(49, 199, 101, var(--embed-voice-alpha)), inset 0 0 48px #0000007a;transform:scale(var(--embed-voice-scale));background:radial-gradient(circle,#31c76533 0 22%,#31c76514 23% 40%,#0000 41%),radial-gradient(circle,#102619 0,#07150d 70%,#041009 100%);border:1px solid #31c76561;border-radius:50%;place-items:center;transition:transform 90ms linear,box-shadow .12s linear;display:grid;position:relative}.embed-voice-orb i{inset:var(--ring-inset);border:1px solid rgba(49, 199, 101, var(--ring-opacity));transform:scale(var(--ring-scale));border-radius:50%;transition:transform 90ms linear,opacity .11s linear;position:absolute}.embed-voice-orb strong{z-index:2;color:#f5fff8;font-size:18px;font-weight:900;position:relative}.embed-voice-orb.listening{border-color:#31c765d1}.embed-voice-orb.speaking{border-color:#29d7bdd1}.embed-live-status{color:var(--embed-soft);letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:900}.embed-live-stage h1{color:#f4fbf6;max-width:820px;margin:0;font-size:clamp(29px,4.8vw,46px);font-weight:500;line-height:1.16}.embed-interview-footer{justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:10px 14px;display:flex}.embed-mic-recorder{flex:1;min-width:0}.embed-mic-recorder.audio-recorder{color:var(--embed-text)}.embed-mic-recorder .controls{gap:10px}.embed-mic-recorder .btn{border-radius:999px;min-height:42px}.embed-mic-recorder .btn-start{background:linear-gradient(135deg,#31c765,#35e071);min-width:150px}.embed-mic-recorder .btn-stop{color:#ffd6bd;background:#ff9f431f;border-color:#ff9f4357}.embed-mic-recorder .voice-status.speaking{color:#dfffea;background:#31c7652e}.embed-mic-recorder .voice-status.silent{color:var(--embed-muted);background:#ffffff0f}.embed-session-state{color:#dfffea;white-space:nowrap;background:#0d1a12;border-radius:999px;flex:none;padding:10px 14px;font-size:13px;font-weight:900}@media (width<=720px){.embed-interview-page{gap:8px;width:min(100vw,100vw - 12px);padding:6px 0}.embed-interview-topbar,.embed-interview-footer{border-radius:16px}.embed-brand span{display:none}.embed-chat-stream .ai-message{max-width:86%}.embed-interview-footer{flex-direction:column;align-items:stretch}.embed-session-state{text-align:center}}@media (width<=860px){.role-shell{grid-template-columns:1fr;width:calc(100% - 16px)}.role-sidebar{min-height:auto;position:static}.role-sidebar nav{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.access-create-form,.embed-token-create-form,.embed-token-secret,.audit-toolbar{grid-template-columns:1fr}.access-subsection-head,.embed-token-card{flex-direction:column;align-items:stretch}.auth-card-head,.role-section-head,.role-modal-head{flex-direction:column}}.audio-recorder{color:#1d2733;flex-direction:column;gap:12px;width:100%;display:flex}.waveform-canvas{background:#121a24;border:1px solid #d8e0e9;border-radius:6px;width:100%;height:104px;display:block}.controls{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.btn{cursor:pointer;border:1px solid #0000;border-radius:6px;min-height:34px;padding:7px 13px;font-size:13px;font-weight:800;transition:opacity .15s,transform .1s,border-color .15s}.btn:disabled{opacity:.42;cursor:not-allowed}.btn:not(:disabled):active{transform:scale(.98)}.btn-start{color:#fff;background:#2fb463}.btn-stop{color:#a23f2e;background:#fff4f1;border-color:#f0b8ae}.status{align-items:center;gap:8px;min-height:28px;display:flex}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.35}}.recording-dot{background:#d94830;border-radius:50%;flex-shrink:0;width:9px;height:9px;animation:1.1s ease-in-out infinite pulse-dot}.voice-status{border-radius:6px;min-height:24px;padding:4px 8px;font-size:12px;font-weight:800}.voice-status.speaking{color:#17663c;background:#eef8f2}.voice-status.silent{color:#58687a;background:#eef2f6}.recorder-summary{color:#637186;border-top:1px solid #edf0f3;flex-wrap:wrap;gap:8px 14px;padding-top:8px;font-size:12px;display:flex}.recorder-error{color:#955316;background:#fff8f1;border:1px solid #efc5a5;border-radius:6px;padding:8px 10px;font-size:12px;font-weight:700;display:block}.recorder-summary code{color:var(--teal);font-family:Menlo,Consolas,monospace;font-size:11px}[data-theme=dark] .audio-recorder{color:var(--text)}[data-theme=dark] .btn-stop{border-color:var(--warn-border);background:var(--warn-bg);color:var(--warn-text)}[data-theme=dark] .recorder-summary{border-color:var(--border-soft);color:var(--muted)}[data-theme=dark] .recorder-summary code{color:var(--accent-hover)}[data-theme=dark] .recorder-error{border-color:var(--warn-border);background:var(--warn-bg);color:var(--warn-text)}[data-theme=dark] .voice-status.speaking{background:var(--good-bg);color:var(--good-text)}[data-theme=dark] .voice-status.silent{background:var(--surface-muted);color:var(--muted)}.ai-audio{color:#1d2733;width:100%}.ai-status{align-items:center;gap:9px;margin-bottom:12px;display:flex}@keyframes pulse-ai{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.78)}}.ai-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.ai-dot.playing{background:var(--accent);animation:1s ease-in-out infinite pulse-ai}.ai-dot.idle{background:#fff;border:1px solid #aeb9c6}.ai-label{color:var(--accent);font-size:13px;font-weight:800}.ai-label.idle{color:#647184;font-weight:700}.ai-divider{display:none}.ai-error{color:#8a3f13;background:#fff8f1;border:1px solid #efc5a5;border-radius:8px;margin-bottom:12px;padding:10px 12px;font-size:13px;line-height:1.4}.ai-transcript{flex-direction:column;gap:8px;min-height:280px;max-height:calc(100vh - 230px);padding-right:2px;display:flex;overflow-y:auto}.ai-message{background:#fbfcfd;border:1px solid #dfe5ec;border-radius:8px;grid-template-columns:78px minmax(0,1fr);gap:10px;padding:10px 11px;display:grid}.ai-message.assistant{border-left:4px solid var(--accent)}.ai-message.student{border-left:4px solid #2fb463}.ai-message.system{border-left:4px solid #c98b1f}.ai-message-role{color:#617084;flex-direction:column;gap:5px;font-size:12px;font-weight:900;display:flex}.ai-message-badge{color:#8a5a0b;background:#fff8e7;border:1px solid #e8c37c;border-radius:6px;width:max-content;max-width:72px;padding:2px 5px;font-size:10px;line-height:1.2}.ai-message-text{color:#17202b;overflow-wrap:anywhere;min-width:0;font-size:13px;line-height:1.45}.ai-metrics{background:#fbfcfd;border:1px solid #dfe5ec;border-radius:8px;flex-direction:column;gap:8px;max-height:280px;margin-top:14px;padding:10px;display:flex;overflow-y:auto}.ai-trace{background:#fff;border:1px solid #d9e0e8;border-radius:8px;flex-direction:column;gap:7px;padding:8px;display:flex}.ai-trace-head,.ai-trace-summary{flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;display:flex}.ai-trace-id{color:var(--accent);font-family:Menlo,Consolas,monospace;font-weight:800}.ai-trace-total{color:#17202b;font-weight:800}.ai-trace-total.good{color:#17663c}.ai-trace-total.muted{color:#647184;font-weight:700}.ai-cache{color:#647184;background:#eef2f6;border-radius:6px;padding:2px 6px}.ai-cache.hit{color:#17663c;background:#eef8f2}.ai-trace-summary{color:#647184}.ai-trace-summary code,.ai-trace-total code{color:var(--teal);font-family:Menlo,Consolas,monospace}.ai-trace-stages{flex-direction:column;gap:4px;display:flex}.ai-metric{grid-template-columns:118px minmax(0,1fr);gap:8px;font-size:11px;line-height:1.35;display:grid}.ai-metric-stage{color:var(--accent);font-weight:800}.ai-metric-values{color:#647184;flex-wrap:wrap;gap:4px 10px;min-width:0;display:flex}.ai-metric-values code{color:var(--teal);font-family:Menlo,Consolas,monospace;font-size:11px}@media (width<=700px){.ai-message{grid-template-columns:1fr}.ai-transcript{max-height:none}}[data-theme=dark] .ai-audio,[data-theme=dark] .ai-message-text,[data-theme=dark] .ai-trace-total{color:var(--text)}[data-theme=dark] .ai-label,[data-theme=dark] .ai-trace-id,[data-theme=dark] .ai-metric-stage,[data-theme=dark] .ai-trace-summary code,[data-theme=dark] .ai-trace-total code,[data-theme=dark] .ai-metric-values code{color:var(--accent-hover)}[data-theme=dark] .ai-label.idle,[data-theme=dark] .ai-message-role,[data-theme=dark] .ai-trace-total.muted,[data-theme=dark] .ai-trace-summary,[data-theme=dark] .ai-metric-values,[data-theme=dark] .ai-cache{color:var(--muted)}[data-theme=dark] .ai-message,[data-theme=dark] .ai-metrics,[data-theme=dark] .ai-trace{border-color:var(--border);background:var(--surface-soft)}[data-theme=dark] .ai-error{border-color:var(--warn-border);color:var(--warn-text);background:var(--warn-bg)}[data-theme=dark] .ai-cache{background:var(--surface-muted)}[data-theme=dark] .ai-cache.hit{color:var(--good-text);background:var(--good-bg)}[data-theme=dark] .ai-message-badge{color:#ffd57a;background:#2a230f;border-color:#7a5b19}
