.workspace-sidebar { position:fixed; inset:0 auto 0 0; width:224px; padding:24px 16px; display:flex; flex-direction:column; gap:28px; overflow-y:auto; background:var(--hx-workbench-sidebar); border-right:1px solid var(--line); }
.workspace-brand { display:flex; align-items:flex-start; width:100%; padding-bottom:16px; border-bottom:1px solid var(--line); }
.workspace-brand img { display:block; width:148px; height:auto; max-height:38px; object-fit:contain; }
.workspace-sidebar nav,.workspace-sidebar-footer { display:grid; gap:8px; }
.workspace-sidebar nav a,.workspace-sidebar nav button { display:flex; align-items:center; gap:12px; width:100%; padding:12px; border:0; border-radius:8px; background:transparent; color:var(--muted); text-align:left; font-size:13px; }
.workspace-sidebar .workspace-project-tabs { margin:0 0 4px 16px; padding:2px 0 2px 10px; border-left:1px solid var(--line); gap:2px; }
.workspace-sidebar .workspace-project-tabs button { cursor:pointer; padding:9px 10px; font-size:12px; }
.workspace-project-tabs button i { flex:0 0 18px; font-size:17px; }
.workspace-sidebar :is(a,button):hover { color:var(--ink); background:var(--control); }
.workspace-sidebar .is-active,.workspace-sidebar button[aria-selected="true"] { color:var(--ink); background:color-mix(in srgb,var(--accent) 18%,transparent); }
.api-model-categories { display:grid; gap:2px; padding:0 4px 8px; }
.workspace-sidebar .api-model-categories button { gap:10px; padding:8px 12px; font-size:12px; }
.api-model-categories svg { width:16px; height:16px; flex-shrink:0; }
.api-model-categories small { margin-left:auto; color:var(--muted); font-size:10px; }
.workspace-sidebar .api-model-categories button[aria-pressed="true"] { color:var(--ink); background:var(--control); }
.api-model-categories button:focus-visible { outline:1px solid var(--accent); outline-offset:1px; }
.workspace-sidebar-footer { margin-top:auto; padding-top:20px; border-top:1px solid var(--line); }
.workspace-main { margin-left:224px; min-height:100vh; }
.workspace-header { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:76px; padding:16px 32px; border-bottom:1px solid var(--line); background:var(--surface); }
.workspace-content { padding:12px 32px 40px; max-width:1760px; margin:auto; min-width:0; }
.studio-home .pipeline-heading h1 { font-size:22px; }
.studio-home .pipeline-column h2 { font-size:15px; }
.studio-home .va-heading h1 { font-size:24px; }
.points-workbench { padding:20px 0 40px; --ui-surface:var(--control); --ui-ink:var(--ink); --ui-line-strong:var(--line); }
.workspace-sidebar nav[hidden],.workspace-sidebar nav [hidden],.points-workbench [hidden],.studio-dialog [hidden] { display:none; }
.points-workbench h1 { font-size:24px; margin:0 0 8px; }
.points-workbench h2,.studio-dialog h2 { font-size:17px; margin:0 0 16px; }
.points-workbench p { line-height:1.7; }
.studio-panel,.studio-dialog { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:24px; min-width:0; }
.studio-dialog { width:min(560px,calc(100% - 32px)); max-height:90vh; overflow-y:auto; }
.studio-dialog::backdrop { background:#0009; }
.studio-dialog .va-actions,.studio-panel > .va-actions { margin-top:20px; flex-wrap:wrap; }
.studio-two-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.studio-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; }
.studio-card { padding:18px; border:1px solid var(--line); background:var(--surface); border-radius:10px; min-width:0; }
.studio-card h3 { font-size:15px; margin:0 0 10px; overflow-wrap:anywhere; }
.studio-card p,.studio-muted { font-size:12px; color:var(--muted); }
#api-workbench { padding-top:0; }
#api-status:empty { display:none; }
.api-endpoint { display:inline-flex; align-items:center; gap:8px; max-width:100%; margin:4px 0 12px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; background:var(--surface); font-size:12px; }
.api-endpoint > span { flex-shrink:0; color:var(--muted); }
.api-endpoint code { min-width:0; color:var(--ink); overflow-wrap:anywhere; }
.api-key-identity { display:flex; align-items:center; gap:28px; white-space:nowrap; }
.api-key-identity > strong { max-width:180px; overflow:hidden; text-overflow:ellipsis; font-weight:500; }
.api-key-identity > div { display:flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid var(--line); border-radius:6px; background:var(--control); }
.api-key-identity code { color:var(--muted); font-size:11px; }
#api-keys td { vertical-align:middle; }
.api-key-state { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.api-key-state::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.api-key-state[data-enabled="true"] { color:#52c9a0; }
#api-key-form-status:empty,#api-key-backfill-status:empty { display:none; }
.api-key-model-scope,.api-key-model-toolbar,.api-key-model-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.api-key-model-scope label,.api-key-model-toolbar label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-size:12px; }
.api-key-model-scope input,.api-key-model-toolbar input,.api-key-model-option input { accent-color:var(--accent); flex-shrink:0; }
.api-key-model-selector { display:grid; gap:10px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.api-model-category-tabs { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.api-model-category-tabs .va-button { padding:6px 10px; font-size:12px; }
.api-model-category-tabs [aria-pressed="true"],.api-model-category-tabs [aria-selected="true"] { border-color:var(--accent); color:var(--accent); }
.api-debug-tabs { margin-bottom:16px; }
.api-debug-upload { display:grid; gap:8px; padding:14px; border:1px dashed var(--line); border-radius:8px; background:var(--control); }
.api-debug-upload input { width:100%; min-width:0; color:var(--muted); font-size:12px; }
.api-debug-upload input::file-selector-button { margin-right:10px; padding:6px 10px; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:var(--surface); cursor:pointer; }
.api-debug-files { display:grid; gap:10px; }
.api-debug-file { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px; border:1px solid var(--line); border-radius:8px; }
.api-debug-file > img { width:96px; height:64px; object-fit:contain; border-radius:5px; background:var(--control); }
.api-debug-file > video { width:100%; max-height:220px; aspect-ratio:16/9; border-radius:5px; background:var(--control); }
.api-debug-file > audio { width:100%; height:34px; }
.api-debug-file > div { display:grid; flex:1; gap:4px; min-width:0; font-size:12px; }
.api-debug-file > div span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.api-debug-file small { color:var(--muted); }
.api-debug-file .va-button { padding:5px 8px; font-size:12px; }
#api-debug-file-status:empty { display:none; }
.api-key-model-toolbar > span { margin-left:auto; color:var(--muted); font-size:11px; }
.api-key-model-list { display:grid; gap:4px; max-height:176px; overflow-y:auto; }
.api-key-model-option { display:flex; align-items:center; gap:9px; padding:8px; border-radius:5px; font-size:12px; cursor:pointer; }
.api-key-model-option:hover,.api-key-model-option:has(:checked) { background:var(--control); }
.api-key-model-option > span { min-width:0; overflow-wrap:anywhere; }
.api-key-model-summary { justify-content:space-between; color:var(--muted); font-size:12px; }
.api-key-model-summary .va-button { padding:4px 8px; font-size:11px; }
#api-key-form > .va-actions { position:sticky; bottom:-24px; margin-bottom:-24px; padding:12px 0 24px; background:var(--surface); }
.api-hero { position:relative; isolation:isolate; min-height:300px; overflow:hidden; border-radius:10px; background:#0c1020; color:#fff; }
.api-hero-image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
.api-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#070b15e8 0%,#070b1599 40%,#070b1514 80%),linear-gradient(0deg,#070b15a6,transparent 65%); }
.api-hero-content { max-width:640px; padding:32px 40px 64px; }
.api-hero-meta { display:flex; align-items:center; gap:12px; margin-bottom:14px; color:#ffffffc4; font-size:12px; }
#api-hero-label { padding:3px 9px; border:1px solid #ffffff40; border-radius:5px; background:#ffffff12; color:#fff; }
.points-workbench .api-hero h1 { margin:0 0 12px; font-size:clamp(25px,2.2vw,36px); font-weight:650; line-height:1.25; letter-spacing:.02em; overflow-wrap:anywhere; }
.points-workbench .api-hero p { margin:0 0 22px; color:#ffffffb8; font-size:13px; line-height:1.8; white-space:pre-line; }
.studio-home .api-hero-action { display:inline-flex; align-items:center; gap:18px; border:0; border-radius:6px; padding:10px 17px; background:#fff; color:#171923; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.api-hero-action svg { width:16px; height:16px; }
.api-hero-action:hover { background:#e8e4ff; }
.api-hero-indicators { position:absolute; bottom:24px; left:40px; display:flex; gap:8px; }
.api-hero-indicators button { position:relative; width:30px; height:16px; padding:0; border:0; background:transparent; cursor:pointer; }
.api-hero-indicators button::after { content:""; position:absolute; inset:6px 0; border-radius:4px; background:#ffffff50; }
.api-hero-indicators button[aria-pressed="true"]::after { background:#fff; }
.api-hero button:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.api-model-note { margin:14px 0 18px; }
#api-model-search { width:min(100%,320px); padding:7px 10px; font-size:12px; }
.api-model-sort { position:relative; margin-left:auto; color:var(--muted); font-size:12px; }
.api-model-sort > button { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--line); border-radius:5px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.api-model-sort svg { width:14px; height:14px; flex-shrink:0; }
.api-model-sort-menu { position:absolute; top:calc(100% + 6px); right:0; z-index:30; min-width:128px; padding:4px; border:1px solid var(--line); border-radius:9px; background:var(--control); box-shadow:0 8px 24px #0006; }
.api-model-sort-menu button { display:block; width:100%; padding:8px 9px; border:0; border-radius:5px; background:transparent; color:var(--ink); font:inherit; text-align:left; white-space:nowrap; cursor:pointer; }
.api-model-sort-menu button[aria-checked="true"] { color:#b6a5ff; background:color-mix(in srgb,var(--accent) 14%,transparent); }
.api-model-sort-menu button:hover,.api-model-sort-menu button:focus-visible { background:color-mix(in srgb,var(--ink) 8%,transparent); }
.api-model-sort button:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
.api-model-brands { display:flex; align-items:center; gap:12px; margin:12px 0 16px; min-width:0; font-size:12px; color:var(--muted); }
.api-model-brands > span { flex-shrink:0; }
.api-brand-scroll { display:inline-flex; align-items:center; justify-content:center; flex:0 0 24px; width:24px; height:24px; padding:0; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); cursor:pointer; }
.api-brand-scroll svg { width:14px; height:14px; }
.api-brand-scroll:hover:not(:disabled) { color:var(--ink); background:var(--control); }
.api-brand-scroll:disabled { opacity:.35; cursor:default; }
.api-brand-scroll:focus-visible { outline:1px solid var(--accent); outline-offset:2px; }
.api-brand-options { display:flex; gap:8px; flex:1; min-width:0; overflow-x:auto; padding:3px 2px; scrollbar-width:none; }
.api-brand-options::-webkit-scrollbar { display:none; }
.api-brand-filter { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; padding:6px 11px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--ink); font:inherit; white-space:nowrap; cursor:pointer; }
.api-brand-filter img { width:14px; height:14px; object-fit:contain; }
.api-brand-filter small { color:var(--muted); font-size:10px; }
.api-brand-filter:hover { background:var(--control); }
.api-brand-filter[aria-pressed="true"] { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,transparent); }
.api-brand-filter:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.api-model-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); grid-auto-rows:1fr; align-items:stretch; }
.api-model-card { display:flex; flex-direction:column; padding:16px; border-radius:6px; }
.api-model-header { display:grid; grid-template-columns:46px minmax(0,1fr) auto; grid-template-rows:18px 12px; align-items:center; align-content:center; gap:12px 10px; min-height:56px; }
.api-model-icon { width:46px; height:46px; display:grid; place-items:center; border:1px solid var(--line); border-radius:6px; background:var(--control); color:var(--muted); font-size:14px; font-weight:600; }
.api-model-icon img { width:30px; height:30px; object-fit:contain; }
.api-model-header > .api-model-icon { grid-row:1 / 3; }
.api-model-identity { display:flex; align-items:center; gap:5px; min-width:0; }
.api-model-identity h3 { min-width:0; margin:0; font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.api-model-copy { display:inline-flex; flex-shrink:0; border:0; padding:3px; border-radius:3px; color:var(--muted); background:transparent; cursor:pointer; }
.api-model-copy svg { width:13px; height:13px; }
.api-model-copy:hover { color:var(--ink); background:var(--control); }
.api-model-copy:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.api-model-copy-status { color:var(--accent); font-size:11px; white-space:nowrap; }
.api-model-discount { align-self:start; padding:3px 8px; margin-top:2px; border-radius:999px; color:#fff; background:#ff535d; font-size:11px; font-weight:600; }
.api-model-performance { grid-column:2 / -1; display:flex; align-items:center; gap:5px; color:var(--muted); font-size:9px; line-height:12px; white-space:nowrap; }
.api-model-performance > span,.api-model-health-bars { display:inline-flex; align-items:center; gap:3px; }
.api-model-performance b { color:var(--ink); font-size:inherit; font-weight:500; font-variant-numeric:tabular-nums; }
.api-model-health-bars { gap:1px; }
.api-model-health-bars i { width:1px; height:8px; border-radius:1px; background:var(--line); }
.api-model-health-bars .is-success { background:#18c68c; }
.api-model-health-bars .is-failed { background:#f05c65; }
.api-model-prices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; border-top:1px solid var(--line); margin-top:14px; padding-top:12px; }
.api-model-method { grid-column:1 / -1; display:flex; align-items:center; gap:7px; font-size:12px; font-weight:500; }
.api-model-method svg { width:15px; height:15px; flex-shrink:0; }
.api-model-price { display:flex; align-items:baseline; gap:4px; min-width:0; font-size:10px; white-space:nowrap; }
.api-model-price[hidden] { display:none; }
.api-model-price-toggle { display:inline-flex; align-self:center; flex-shrink:0; margin-left:8px; border:0; padding:0; background:transparent; color:var(--muted); font-size:10px; line-height:1.2; cursor:pointer; }
.api-model-price-toggle:hover { color:var(--accent); }
.api-model-price-toggle:focus-visible { outline:1px solid var(--accent); outline-offset:3px; }
.api-model-tier { color:var(--muted); }
.api-model-tier:empty { display:none; }
.api-model-amount { display:inline-flex; align-items:baseline; gap:3px; }
.api-model-amount del { color:var(--muted); font-size:9px; }
.api-model-amount strong { color:#ff535d; font-size:11px; font-weight:650; }
.api-model-footer { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:auto; padding-top:12px; }
.api-model-try { font-size:11px; font-weight:600; color:#a78bfa; background:linear-gradient(100deg,#54d5ff,#9c8bff,#dc8bff); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-decoration:none; }
.api-model-access { text-align:right; color:var(--muted); font-size:10px; }
.studio-price-details { margin-top:16px; }
.studio-price-details summary { cursor:pointer; font-size:13px; }
.studio-price-details > div { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; font-size:13px; }
.studio-table-wrap { width:100%; overflow-x:auto; }
.studio-table { width:100%; border-collapse:collapse; font-size:13px; text-align:left; }
.studio-table td,.studio-table th { padding:15px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.studio-table th { font-weight:500; color:var(--muted); white-space:nowrap; }
.api-log-model { display:grid; grid-template-columns:18px minmax(0,1fr); column-gap:8px; align-items:center; }
.api-log-model img { width:18px; height:18px; object-fit:contain; grid-row:1 / span 2; }
.api-log-model small { grid-column:2; }
.api-log-toolbar-actions { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.api-log-toolbar-actions select { width:auto; min-width:72px; padding:7px 28px 7px 9px; }
.api-log-pagination { justify-content:flex-end; margin-top:16px; }
.api-log-pagination span { min-width:180px; text-align:center; color:var(--muted); font-size:12px; }
.studio-table small { display:block; margin-top:6px; color:var(--muted); overflow-wrap:anywhere; }
.api-log-model + .api-log-model { margin-top:12px; }
.studio-output { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.8; padding:16px; background:var(--control); border:1px solid var(--line); border-radius:8px; max-height:60vh; overflow:auto; color:var(--ink); }
.studio-output > :is(img,video,audio) { display:block; max-width:100%; margin-bottom:12px; }
.points-workbench button:disabled { opacity:.5; cursor:wait; }
.studio-loading { min-height:150px; display:grid; place-items:center; color:var(--muted); animation:studio-pulse 1.4s ease-in-out infinite alternate; }
.studio-project-list { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.studio-project-list select { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.studio-project-list button[aria-pressed="true"] { border-color:var(--accent); color:var(--ink); }
.studio-episode-list { display:grid; gap:12px; }
.studio-episode { border:1px solid var(--line); border-radius:8px; padding:16px; }
.studio-episode summary { cursor:pointer; font-size:14px; }
.studio-episode .va-actions { margin-top:14px; flex-wrap:wrap; }
.studio-workspace-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin:8px 0 16px; }
.studio-workspace-head h2 { margin:0 0 4px; font-size:22px; }
.studio-badge,.studio-status { display:inline-flex; align-items:center; padding:4px 9px; border-radius:999px; background:color-mix(in srgb,var(--accent) 14%,transparent); color:var(--accent); font-size:11px; white-space:nowrap; }
#cs-task { margin-bottom:20px; }
.studio-tab-panel[hidden] { display:none; }
.studio-section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.studio-section-heading h2 { margin-bottom:5px; }
.studio-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0 22px; }
.studio-metric { padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--control); display:grid; gap:3px; }
.studio-metric strong { font-size:22px; }
.studio-metric span { font-size:12px; color:var(--muted); }
.studio-list-grid,.studio-asset-grid,.studio-preview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.studio-list-card,.studio-asset-card,.studio-preview-card { border:1px solid var(--line); border-radius:10px; padding:16px; background:var(--surface); display:grid; gap:10px; min-width:0; }
.studio-card-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.studio-card-heading small { color:var(--muted); }
.studio-storyboard-list { display:grid; gap:16px; }
.studio-shot-card { border:1px solid var(--line); border-radius:10px; padding:16px; background:var(--control); display:grid; gap:10px; }
.studio-preview-card { align-content:start; }
.studio-preview-card video,.studio-list-card video,.studio-list-card audio { width:100%; border-radius:8px; }
.studio-result-image { width:100%; max-height:240px; object-fit:contain; border-radius:8px; }
.studio-track-list { display:grid; gap:10px; }
.studio-audio-track { display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--control); }
.studio-audio-track .pipeline-field { margin:0; }
#cs-results-list { grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); margin-top:24px; }
#cs-results-list > h2 { grid-column:1/-1; margin:0; }
.studio-preview-card span { color:var(--muted); font-size:12px; }
.studio-record-list { display:grid; gap:8px; }
.studio-record { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; }
.studio-record small { color:var(--muted); }
.studio-workflow-canvas { position:relative; min-width:1450px; min-height:600px; }
.studio-canvas-viewport { height:clamp(420px,65vh,760px); overflow:auto; border:1px solid var(--line); border-radius:10px; background-image:radial-gradient(var(--line) 1px,transparent 1px); background-size:20px 20px; }
.studio-canvas-viewport.is-panning { cursor:grabbing; user-select:none; }
.studio-workflow-node { position:absolute; left:0; top:0; width:220px; height:160px; overflow:hidden; min-height:106px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--control); color:var(--ink); text-align:left; cursor:grab; display:grid; gap:5px; align-content:start; transform:translate(var(--node-x,0px),var(--node-y,0px)); transition:transform .16s ease,border-color .16s ease; }
.studio-workflow-node.is-dragging { cursor:grabbing; opacity:.72; transition:none; }
.studio-workflow-node:hover,.studio-workflow-node:focus-visible { border-color:var(--accent); outline:none; }
.studio-workflow-node strong { font-size:13px; }
.studio-canvas-edges { position:absolute; inset:0; pointer-events:none; }
.studio-canvas-edges path { stroke:var(--accent); stroke-width:1.5; opacity:.4; fill:none; }
.studio-canvas-title { background:none; color:inherit; border:0; padding:0; text-align:left; cursor:pointer; }
.studio-workflow-node img { width:100%; height:90px; object-fit:cover; border-radius:5px; }
.studio-workflow-node p { margin:0; font-size:12px; color:var(--muted); overflow:hidden; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; }
.studio-agent-history { display:grid; gap:12px; max-height:480px; overflow:auto; margin:16px 0; }
.studio-agent-message { border:1px solid var(--line); border-radius:10px; padding:14px; background:var(--control); }
.studio-agent-message.is-user { border-left:3px solid var(--accent); }
.studio-agent-message p { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 0; font-size:13px; line-height:1.6; }
.studio-reference-strip { display:grid; gap:8px; margin-bottom:14px; padding:12px; border:1px dashed var(--line); border-radius:10px; background:var(--control); }
.studio-reference-strip > div { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.studio-reference-thumb { width:64px; height:64px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:var(--surface); }
.studio-shot-meta { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.studio-inline-fields { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:6px; }
.studio-shot-assets { min-height:72px; }
.studio-shot-media { display:flex; gap:10px; flex-wrap:wrap; }
.studio-shot-media img,.studio-shot-media video { width:min(100%,220px); aspect-ratio:3/4; object-fit:cover; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.studio-media-button { display:block; padding:0; border:0; background:transparent; cursor:zoom-in; border-radius:8px; }
.studio-media-button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.studio-task-steps { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.studio-task-step { padding:5px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:11px; }
.studio-task-step.is-done { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,transparent); }
.studio-timeline { display:flex; gap:3px; min-height:24px; align-items:stretch; margin-top:8px; }
.studio-timeline span { flex:var(--shot-duration,1) 1 0; min-width:22px; display:grid; place-items:center; border-radius:4px; background:color-mix(in srgb,var(--accent) 20%,var(--control)); color:var(--ink); font-size:11px; }
.studio-timeline em { color:var(--muted); font-size:12px; }
@media(max-width:700px) { .studio-workspace-head,.studio-section-heading { flex-direction:column; } .studio-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .studio-record { grid-template-columns:1fr; } }
@keyframes studio-pulse { from { opacity:.5; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .studio-loading { animation:none; } }
@media(max-width:850px) { .studio-two-columns { grid-template-columns:1fr; } .points-workbench .va-heading { flex-wrap:wrap; } .studio-panel { padding:16px; } }
@media(max-width:600px) {
  .api-hero { min-height:310px; }
  .api-hero-content { padding:24px 20px 60px; }
  .api-hero-indicators { left:20px; bottom:20px; }
  .api-hero::before { background:linear-gradient(90deg,#070b15e6,#070b1559),linear-gradient(0deg,#070b15a6,transparent); }
  .workspace-sidebar { width:64px; padding:18px 8px; gap:18px; }
  .workspace-brand { overflow:hidden; justify-content:flex-start; }
  .workspace-brand img { width:148px; height:38px; max-width:none; max-height:none; object-fit:cover; object-position:left center; clip-path:inset(0 110px 0 0); }
  .workspace-sidebar nav span { display:none; }
  .workspace-sidebar nav a,.workspace-sidebar nav button { justify-content:center; padding:12px 8px; }
  .workspace-sidebar-footer .sidebar-credit { padding:6px 2px; font-size:10px; text-align:center; overflow-wrap:anywhere; }
  .workspace-main { margin-left:64px; }
  .workspace-sidebar .workspace-project-tabs { margin-left:0; padding-left:0; border-left:0; }
  .workspace-sidebar .workspace-project-tabs button { padding:9px 8px; }
  .api-model-categories { padding:0 0 8px; }
  .workspace-sidebar .api-model-categories button { justify-content:center; padding:8px; }
  .api-model-categories small { display:none; }
  .workspace-header { padding:14px; flex-wrap:wrap; }
  .workspace-header > div { gap:8px; }
  .workspace-header .va-button { display:none; }
  .workspace-content { padding:12px 14px 24px; }
  .points-workbench .va-heading > .va-actions { flex-wrap:wrap; }
  .points-workbench .pipeline-field-pair { grid-template-columns:1fr; }
}
