:root {
  color-scheme: dark;
  --bg: #07172b;
  --surface: #10243d;
  --surface-2: #17304c;
  --surface-3: #213c5a;
  --sidebar: #07172b;
  --line: #34516f;
  --line-soft: #294663;
  --text: #f9f5ec;
  --muted: #c2cddb;
  --dim: #91a4b9;
  --violet: #c89d38;
  --violet-soft: #c89d3822;
  --blue: #77c4ff;
  --amber: #e6b74d;
  --rose: #fd91ba;
  --green: #69d6ad;
  --red: #ff7b91;
  --shadow: 0 18px 42px #00000038;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f0e4;
  --surface: #fffdf7;
  --surface-2: #f9f4e9;
  --surface-3: #eee5d6;
  --sidebar: #07172b;
  --line: #d9cfbd;
  --line-soft: #e9e0d1;
  --text: #132943;
  --muted: #53677c;
  --dim: #77879a;
  --violet: #9a6f17;
  --violet-soft: #c89d3819;
  --blue: #1a6fa8;
  --amber: #9a6f17;
  --rose: #d74e86;
  --green: #14805c;
  --red: #c43754;
  --shadow: 0 15px 34px #16223a12;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; }
button, textarea, input, select { font: inherit; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 40; top: 0.75rem; left: 0.75rem; padding: 0.6rem 0.9rem; color: #101522; background: #fff; border-radius: 0.5rem; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; display: flex; }

.sidebar { position: sticky; top: 0; z-index: 10; width: 264px; height: 100vh; display: flex; flex: 0 0 auto; flex-direction: column; color: #edf1fc; background: radial-gradient(ellipse at 12% -8%, #c89d3833, transparent 34%), var(--sidebar); border-right: 1px solid #294663; transition: width .25s ease; overflow: hidden; }
.brand-row { height: 76px; display: flex; align-items: center; gap: .5rem; padding: 0 1rem 0 1.25rem; }
.brand { min-width: 0; flex: 1; display: flex; gap: .75rem; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #07172b; background: linear-gradient(145deg, #e7c66e, #c89d38); border-radius: 11px; box-shadow: 0 7px 18px #c89d384a; font: 800 18px/1 Georgia, serif; }
.brand-copy { display: grid; line-height: 1.05; white-space: nowrap; }
.brand-copy strong { font-size: 17px; letter-spacing: .1em; }
.brand-copy small { margin-top: .28rem; color: #9ca9c7; font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: .55rem; font-size: 1.1rem; }
.icon-button:not(:disabled):hover { color: var(--text); background: var(--surface-3); border-color: var(--line); }
.primary-nav { min-height: 0; flex: 1 1 auto; display: grid; gap: 2px; padding: 1.15rem .75rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.nav-label { margin: .25rem .72rem .45rem; color: #65718b; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-label-secondary { margin-top: 1.15rem; }
.nav-item { min-width: 0; height: 40px; display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; color: #aeb8cf; background: transparent; border: 0; border-radius: .55rem; text-align: left; white-space: nowrap; font-size: 13px; font-weight: 650; }
.nav-item > span:first-child { width: 1.1rem; display: inline-grid; place-items: center; color: #8c98b3; font-size: 17px; }
.nav-item:hover { color: #eef1fa; background: #ffffff09; }
.nav-item.active { color: #fafaff; background: linear-gradient(100deg, #c89d3833, #c89d3812); box-shadow: inset 2px 0 0 var(--violet); }
.nav-item.active > span:first-child { color: #e7c66e; }
.nav-item.featured { color: #fff7dc; background: #c89d3824; border: 1px solid #c89d3866; }
.nav-item.featured > span:first-child { color: #e7c66e; }
.nav-count { min-width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; color: #c9bcff; background: #8f73f92b; border-radius: 999px; font-size: 10px; }
.sidebar-footer { margin-top: auto; padding: 1rem; border-top: 1px solid #252d43; }
.operator-card { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.operator-card > span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.operator-card strong { color: #f1f4fc; font-size: 12px; }
.operator-card small { color: #8390aa; font-size: 10px; white-space: nowrap; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; color: #1c1734; background: #dfd6ff; border-radius: 50%; font-size: 12px; font-weight: 800; }
.presence { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px #65d6ac1d; }

.studio { min-width: 0; flex: 1; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 2.4rem; border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg) 91%, transparent); }
.crumbs { display: flex; align-items: center; gap: .55rem; color: var(--dim); font-size: 12px; }
.crumbs strong { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.refresh-state { margin: 0 .4rem 0 0; color: var(--muted); font-size: 11px; }
.refresh-button, .soft-button, .primary-button, .text-button { border-radius: .55rem; font-weight: 700; }
.refresh-button, .soft-button { min-height: 34px; padding: .45rem .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.refresh-button:hover, .soft-button:not(:disabled):hover { color: var(--text); background: var(--surface-3); }
.primary-button { min-height: 38px; padding: .55rem .85rem; color: #07172b; background: linear-gradient(145deg, #e7c66e, #c89d38); border: 1px solid #e7c66e; box-shadow: 0 7px 20px #c89d383d; font-size: 12px; }
.primary-button:disabled { opacity: .46; box-shadow: none; }
.text-button { padding: .25rem; color: var(--violet); background: transparent; border: 0; font-size: 12px; }
.text-button:hover { color: color-mix(in srgb, var(--violet) 72%, white); text-decoration: underline; }

.global-status { min-height: 64px; display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.global-item { min-width: 122px; display: flex; align-items: center; gap: .55rem; padding: .75rem 1rem; border-right: 1px solid var(--line-soft); }
.global-item small { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.global-item strong { display: block; margin-top: .08rem; color: var(--text); font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
.count-item { min-width: 96px; display: grid; align-content: center; gap: .2rem; }
.count-item strong { margin: 0; font-size: 18px; }
.status-dot, .timeline-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 16%, transparent); }
.status-dot.bad { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent); }
.status-dot.muted, .timeline-dot.muted { background: var(--dim); }
.status-dot.checking { background: var(--blue); animation: pulse 1.35s ease-in-out infinite; }

.workspace { max-width: 1600px; margin: 0 auto; padding: 2.4rem; }
.view { animation: enter .22s ease; }
.view[hidden] { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.page-heading h1, .page-heading h2, .section-heading h2, .panel-card h2, .hero-card h2, .generation-canvas h2 { margin: 0; letter-spacing: -.035em; }
.page-heading h1 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.06; }
.page-heading p:not(.eyebrow) { max-width: 670px; margin: .55rem 0 0; color: var(--muted); }
.compact-heading h1 { font-size: clamp(25px, 3vw, 35px); }
.eyebrow { margin: 0 0 .45rem; color: var(--violet); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.release-gate { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding: .65rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }
.release-gate small { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.release-gate strong { display: block; color: var(--amber); font-size: 12px; letter-spacing: .04em; }

.hero-grid, .overview-columns, .workboard, .data-layout, .flux-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); gap: 1rem; }
.hero-card, .panel-card, .system-card, .tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.hero-card { min-height: 226px; padding: 1.25rem; overflow: hidden; }
.runtime-card { background: radial-gradient(circle at 90% -10%, #9679ff3d, transparent 38%), var(--surface); }
.safety-card { background: radial-gradient(circle at 100% 0%, #6dc2ff1f, transparent 34%), var(--surface); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-heading h2 { font-size: 19px; }
.state-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: .22rem .48rem; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.state-pill.neutral { color: var(--muted); background: var(--surface-3); }
.state-pill.blocked { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.state-pill.queued { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.state-pill.running { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.state-pill.succeeded { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.state-pill.failed { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.state-pill.held { color: var(--rose); background: color-mix(in srgb, var(--rose) 14%, transparent); }
.state-pill.approval { color: var(--violet); background: color-mix(in srgb, var(--violet) 16%, transparent); }
.shield { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: #6dbcff18; border: 1px solid #6dbcff2e; border-radius: .55rem; }
.runtime-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 2rem 0 1.25rem; }
.runtime-details div { min-width: 0; padding-left: .65rem; border-left: 1px solid var(--line); }
.runtime-details span { display: block; color: var(--dim); font-size: 10px; }
.runtime-details strong { display: block; overflow: hidden; margin-top: .18rem; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.runtime-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.state-note { color: var(--muted); font-size: 11px; }
.safety-list { display: grid; gap: .85rem; padding: 0; margin: 1.5rem 0 .75rem; list-style: none; }
.safety-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; color: var(--muted); font-size: 12px; }
.safety-list strong { color: var(--amber); font-size: 10px; letter-spacing: .04em; }
.card-footnote { margin: 1.05rem 0 0; padding-top: .8rem; color: var(--dim); border-top: 1px solid var(--line-soft); font-size: 11px; }
.section-heading { display: flex; justify-content: space-between; margin-top: 2.15rem; margin-bottom: 1rem; }
.section-heading h2 { font-size: 20px; }
.section-heading p { margin: .35rem 0 0; color: var(--muted); font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.workspace-card { min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; text-align: left; box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.workspace-card:hover { transform: translateY(-2px); border-color: var(--violet); background: var(--surface-2); }
.workspace-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: .6rem; font-size: 18px; }
.workspace-card > span:nth-child(2) { min-width: 0; display: grid; gap: .2rem; }
.workspace-card strong { font-size: 12px; }
.workspace-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { margin-left: auto; color: var(--dim); }
.workspace-card.violet .workspace-icon { color: var(--violet); background: #9a7cff1f; }.workspace-card.blue .workspace-icon { color: var(--blue); background: #6db9ff1c; }.workspace-card.amber .workspace-icon { color: var(--amber); background: #ffbd681c; }.workspace-card.rose .workspace-icon { color: var(--rose); background: #fd91ba1c; }
.overview-columns { margin-top: 1rem; }.panel-card { padding: 1.2rem; }.empty-state { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: .7rem; text-align: left; }.empty-state.compact { min-height: 128px; margin-top: 1.1rem; padding: 1rem; justify-content: flex-start; }.empty-state strong { display: block; color: var(--text); font-size: 13px; }.empty-state p { max-width: 470px; margin: .35rem 0 0; font-size: 12px; }.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--violet); background: var(--violet-soft); border-radius: .7rem; font-size: 21px; }
.mini-timeline { display: grid; gap: 1rem; padding: .2rem 0 0; margin: 1.2rem 0 0; list-style: none; }.mini-timeline li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .7rem; }.mini-timeline strong { display: block; font-size: 12px; }.mini-timeline small { display: block; margin-top: .18rem; color: var(--muted); font-size: 11px; }.mini-timeline time { color: var(--dim); font-size: 10px; }

.chat-layout { min-height: 560px; display: grid; grid-template-columns: 235px minmax(0, 1fr); border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; box-shadow: var(--shadow); }.conversation-list { background: var(--surface-2); border-right: 1px solid var(--line); }.list-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--line); }.list-heading strong { color: var(--muted); font-size: 10px; letter-spacing: .08em; }.empty-list { display: grid; place-items: center; gap: .4rem; padding: 3rem 1rem; color: var(--dim); text-align: center; }.empty-list span { color: var(--violet); font-size: 27px; }.empty-list p { margin: 0; font-size: 11px; }.chat-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); }.chat-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }.chat-panel > header > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; }.chat-panel > header strong { font-size: 13px; }.chat-panel > header small { grid-column: 2; color: var(--muted); font-size: 10px; }.chat-meta { display: flex; align-items: center; gap: 1rem; color: var(--dim); font-size: 10px; }.chat-meta strong { color: var(--muted); }.chat-empty { display: grid; align-content: center; justify-items: center; padding: 2rem; text-align: center; }.large-orb { width: 64px; height: 64px; display: grid; place-items: center; color: #0e0b1d; background: radial-gradient(circle at 32% 25%, #e1d9ff, #9878ff 64%); border-radius: 50%; box-shadow: 0 10px 35px #9679ff4a; font: 800 26px/1 Georgia, serif; }.chat-empty h2 { margin: 1.15rem 0 .5rem; letter-spacing: -.03em; }.chat-empty p { max-width: 480px; margin: 0 0 1.25rem; color: var(--muted); font-size: 13px; }.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: .65rem; padding: 1rem; border-top: 1px solid var(--line); background: var(--surface-2); }.chat-composer label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.chat-composer textarea, .flux-form textarea, .flux-form input, .training-grid input, .training-grid select, .training-grid textarea, .training-grid select { width: 100%; resize: vertical; padding: .65rem .7rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; }.chat-composer textarea:disabled { opacity: .72; }

.board-summary { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }.board-summary div { min-height: 76px; display: grid; align-content: center; gap: .2rem; padding: .8rem 1rem; background: var(--surface); border-right: 1px solid var(--line); }.board-summary div:last-child { border-right: 0; }.board-summary span { color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .07em; }.board-summary strong { font-size: 22px; }.work-detail { min-width: 0; }.lifecycle { display: flex; align-items: center; gap: .4rem; margin: 1.4rem 0; overflow-x: auto; padding-bottom: .2rem; }.lifecycle span { flex: 0 0 auto; padding: .36rem .5rem; color: var(--dim); background: var(--surface-3); border: 1px solid var(--line); border-radius: .4rem; font-size: 9px; font-weight: 750; white-space: nowrap; }.lifecycle i { width: 14px; height: 1px; flex: 0 0 auto; background: var(--line); }.policy-panel dl, .candidate dl { display: grid; gap: .75rem; margin: 1.25rem 0 0; }.policy-panel dl div, .candidate dl div { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line-soft); }.policy-panel dt, .candidate dt { color: var(--muted); font-size: 11px; }.policy-panel dd, .candidate dd { margin: 0; color: var(--text); font-size: 11px; text-align: right; }

.model-table { padding: 0; overflow: hidden; }.model-table-head, .model-row { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr 1fr 1fr .7fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }.model-table-head { color: var(--dim); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .08em; }.model-row { min-height: 76px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }.model-row:last-child { border-bottom: 0; }.model-row.current { background: linear-gradient(90deg, #9a7cff0d, transparent 55%); }.model-row > div { min-width: 0; }.model-row strong { font-size: 12px; }.model-row small { display: block; overflow: hidden; margin-top: .22rem; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.model-row > span { color: var(--muted); }.model-row > span:nth-child(4) { display: flex; align-items: center; gap: .4rem; }.role-tag { display: inline-flex; width: fit-content; padding: .25rem .45rem; color: var(--violet) !important; background: var(--violet-soft); border-radius: .35rem; font-size: 10px; }.unavailable { opacity: .64; }.inline-notice { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: var(--muted); font-size: 11px; }

.checklist ul { display: grid; gap: 1rem; padding: 0; margin: 1.3rem 0 0; list-style: none; }.checklist li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: 12px; }.checklist li span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 50%; font-size: 9px; font-weight: 800; }
.training-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 270px; gap: 1.5rem; }.training-grid fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; border: 0; }.training-grid label, .flux-form label { display: grid; gap: .38rem; color: var(--muted); font-size: 11px; font-weight: 650; }.training-grid fieldset:disabled { opacity: .7; }.training-grid aside { padding: 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: .7rem; }.training-grid aside strong { display: block; margin: 1.2rem 0 .3rem; font-size: 23px; }.training-grid aside p:not(.eyebrow) { color: var(--muted); font-size: 12px; }.training-grid aside button { margin-top: .8rem; }
.evaluation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.candidate { min-height: 340px; }.compare-head { display: flex; align-items: center; gap: .55rem; }.compare-head > span { padding: .25rem .4rem; color: var(--violet); background: var(--violet-soft); border-radius: .3rem; font-size: 9px; font-weight: 800; }.compare-head strong { font-size: 13px; }.compare-head i { margin-left: auto; }.response-placeholder { min-height: 150px; display: grid; align-content: center; margin-top: 1.25rem; padding: 1rem; background: var(--surface-2); border: 1px dashed var(--line); border-radius: .6rem; }.response-placeholder span { color: var(--dim); font-size: 10px; font-weight: 800; text-transform: uppercase; }.response-placeholder p { max-width: 330px; margin: .35rem 0 0; color: var(--muted); font-size: 12px; }
.flux-layout { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }.flux-form fieldset { display: grid; gap: 1rem; padding: 0; margin: 0; border: 0; }.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.form-note { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; color: var(--muted); font-size: 11px; }.generation-canvas { min-height: 420px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 25%, #8c72fb18, transparent 30%), var(--surface); }.canvas-empty { display: grid; justify-items: center; padding: 2rem; text-align: center; }.canvas-empty > span { color: var(--rose); font-size: 44px; filter: drop-shadow(0 0 18px #fd91ba7a); }.canvas-empty h2 { margin: .75rem 0 .4rem; font-size: 19px; }.canvas-empty p { max-width: 380px; margin: 0; color: var(--muted); font-size: 12px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.tool-card { min-height: 130px; display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; }.tool-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: var(--violet); background: var(--violet-soft); border-radius: .55rem; }.tool-card div { min-width: 0; flex: 1; }.tool-card strong { font-size: 13px; }.tool-card p { margin: .25rem 0 0; color: var(--muted); font-size: 11px; }.tool-card .state-pill { margin-top: .05rem; }.tool-safety { margin-top: 1rem; background: linear-gradient(100deg, #ff7b9111, transparent 48%), var(--surface); }.tool-safety h2 { max-width: 720px; font-size: 18px; }.tool-safety p:not(.eyebrow) { margin: .55rem 0 0; color: var(--muted); font-size: 12px; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }.system-card { min-height: 135px; padding: 1rem; }.system-card span { display: block; color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .07em; }.system-card strong { display: block; margin-top: .75rem; color: var(--text); font-size: 21px; letter-spacing: -.02em; }.system-card p { margin: .32rem 0 0; color: var(--muted); font-size: 11px; }.capacity-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1rem; }.capacity-card h2 { font-size: 17px; }.capacity-card p:not(.eyebrow) { max-width: 570px; margin: .4rem 0 0; color: var(--muted); font-size: 12px; }.capacity-bars { width: 180px; display: grid; gap: .65rem; }.capacity-bars span { height: 7px; display: block; overflow: hidden; background: var(--surface-3); border-radius: 999px; }.capacity-bars i { width: 20%; height: 100%; display: block; background: linear-gradient(90deg, var(--violet), var(--blue)); border-radius: inherit; opacity: .4; }
.audit-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }.audit-legend span, .audit-timeline span:not(.timeline-dot) { padding: .22rem .4rem; border-radius: .3rem; font-size: 9px; font-weight: 800; letter-spacing: .05em; }.audit-read { color: var(--blue); background: #6db9ff18; }.audit-compute { color: var(--violet); background: #9a7cff18; }.audit-internal { color: var(--green); background: #69d6ad18; }.audit-external { color: var(--amber); background: #ffbd6818; }.audit-production { color: var(--red); background: #ff7b9118; }.audit-approval { color: #e2ccff; background: #caa3ff18; }.audit-timeline { display: grid; gap: 1.5rem; padding: .2rem 0; margin: 0; list-style: none; }.audit-timeline li { display: grid; grid-template-columns: 48px auto 1fr; gap: .75rem; align-items: start; }.audit-timeline time { color: var(--dim); font-size: 10px; }.audit-timeline .timeline-dot { margin-top: .35rem; }.audit-timeline div { display: grid; justify-items: start; gap: .45rem; }.audit-timeline strong { font-size: 13px; }.audit-timeline p { margin: 0; color: var(--muted); font-size: 12px; }
.noscript { position: fixed; z-index: 50; bottom: 1rem; left: 50%; max-width: calc(100% - 2rem); padding: .75rem 1rem; color: #1b1120; background: #ffcfda; border-radius: .5rem; transform: translateX(-50%); }

.sidebar.collapsed { width: 74px; }.sidebar.collapsed .brand-row { padding: 0 .9rem; }.sidebar.collapsed .brand { flex: 0; }.sidebar.collapsed .brand-copy, .sidebar.collapsed .nav-label, .sidebar.collapsed .nav-item > span:nth-child(2), .sidebar.collapsed .nav-count, .sidebar.collapsed .operator-card > span:nth-child(2), .sidebar.collapsed .presence { display: none; }.sidebar.collapsed .nav-item { justify-content: center; padding: 0; }.sidebar.collapsed .nav-item > span:first-child { width: auto; }.sidebar.collapsed .sidebar-footer { padding: 1rem .9rem; }.sidebar.collapsed .operator-card { justify-content: center; }.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

@keyframes pulse { 50% { opacity: .4; } }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1220px) { .workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.model-table-head, .model-row { grid-template-columns: minmax(170px, 2fr) 1fr 1fr 1fr auto; }.model-table-head span:nth-child(5), .model-row > span:nth-child(5) { display: none; } }
@media (max-width: 950px) { .sidebar { width: 74px; }.brand-row { padding: 0 .9rem; }.brand { flex: 0; }.brand-copy, .nav-label, .nav-item > span:nth-child(2), .nav-count, .operator-card > span:nth-child(2), .presence, .sidebar-toggle { display: none; }.nav-item { justify-content: center; padding: 0; }.nav-item > span:first-child { width: auto; }.sidebar-footer { padding: 1rem .9rem; }.operator-card { justify-content: center; }.topbar { padding: 0 1.5rem; }.workspace { padding: 1.5rem; }.hero-grid, .overview-columns, .workboard, .data-layout, .flux-layout { grid-template-columns: 1fr; }.runtime-details { grid-template-columns: repeat(2, 1fr); }.system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .topbar { min-height: 62px; padding: 0 1rem; }.refresh-state, .refresh-button { display: none; }.workspace { padding: 1.15rem; }.global-item { min-width: 111px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 1.25rem; }.page-heading > .primary-button, .page-heading > .soft-button { align-self: flex-start; }.release-gate { width: 100%; }.workspace-grid, .evaluation-grid, .tool-grid, .system-grid { grid-template-columns: 1fr; }.chat-layout { grid-template-columns: 1fr; min-height: 500px; }.conversation-list { display: none; }.chat-panel > header { align-items: flex-start; flex-direction: column; }.chat-meta { width: 100%; justify-content: space-between; }.board-summary { grid-template-columns: repeat(2, 1fr); }.board-summary div { border-bottom: 1px solid var(--line); }.board-summary div:nth-child(2n) { border-right: 0; }.model-table-head { display: none; }.model-row { grid-template-columns: 1fr auto; gap: .6rem; }.model-row > span:nth-child(2), .model-row > span:nth-child(3) { display: none; }.model-row > span:nth-child(4) { grid-row: 2; }.model-row > button { grid-row: 1 / span 2; grid-column: 2; }.training-grid { grid-template-columns: 1fr; }.training-grid fieldset { grid-template-columns: 1fr; }.capacity-card { align-items: flex-start; flex-direction: column; }.capacity-bars { width: 100%; }.audit-timeline li { grid-template-columns: 38px auto 1fr; }.flux-layout { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .sidebar { width: 60px; }.brand-row { padding: 0 .65rem; }.sidebar-footer { padding: 1rem .65rem; }.workspace { padding: 1rem .75rem; }.topbar { padding: 0 .75rem; }.crumbs { font-size: 11px; }.global-status { min-height: 58px; }.global-item { min-width: 103px; padding: .55rem .7rem; }.global-item:nth-child(n+6) { display: none; }.runtime-foot { align-items: flex-start; flex-direction: column; }.chat-composer { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Private operator additions retain the preview theme and compact navigation. */
.login-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-gate[hidden], .app-shell[hidden] { display: none !important; }
.login-card { width: min(100%, 460px); padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
form { display: grid; gap: 10px; }
form label { margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
form input, form select, form textarea { width: 100%; padding: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.primary-button { justify-self: start; margin-top: 8px; padding: 11px 16px; color: #07172b; background: var(--violet); border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 1.4em; color: var(--muted); }
.command-panel { margin-bottom: 18px; }
.truth-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; }
.truth-grid > * { min-width: 0; }
.truth-grid [data-storage-detail] { overflow-wrap: anywhere; word-break: break-word; }
.truth-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.truth-grid dd { margin: 5px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 14px; }
.hash-value, code { display: block; overflow-wrap: anywhere; font: 11px ui-monospace,SFMono-Regular,Menlo,monospace; }
.projection-json { white-space: pre-wrap; }
.secondary-button { min-height: 38px; padding: .55rem .85rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: .55rem; font-size: 12px; font-weight: 750; }
.secondary-button:hover { border-color: var(--violet); background: var(--surface-3); }
.card-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.unsloth-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1rem; align-items: stretch; }
.unsloth-chat-panel { min-height: 620px; display: grid; grid-template-rows: auto 1fr auto auto; padding: 0; overflow: hidden; }
.unsloth-chat-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--surface-2) 68%, transparent); border-bottom: 1px solid var(--line); }
.unsloth-agent-heading { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.unsloth-agent-heading > span:last-child { display: grid; gap: .15rem; min-width: 0; }
.unsloth-agent-heading strong { font-size: 13px; }
.unsloth-agent-heading small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.unsloth-mark { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #122033; background: linear-gradient(145deg, #e2c68a, var(--violet)); border-radius: 11px; font: 800 16px/1 Georgia, serif; }
.unsloth-messages { display: grid; align-content: start; gap: .8rem; overflow-y: auto; padding: 1.2rem; background: color-mix(in srgb, var(--surface) 96%, var(--bg)); }
.unsloth-message { max-width: min(86%, 680px); padding: .75rem .85rem; border: 1px solid var(--line-soft); border-radius: .8rem; }
.unsloth-message strong { display: block; color: var(--dim); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.unsloth-message p { margin: .3rem 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.unsloth-message.user { justify-self: end; background: color-mix(in srgb, var(--violet) 12%, var(--surface)); border-color: color-mix(in srgb, var(--violet) 32%, var(--line)); }
.unsloth-message.user strong { color: var(--violet); }
.unsloth-message.assistant { justify-self: start; background: var(--surface-2); }
.unsloth-chat-panel .chat-composer { padding: 1rem 1.2rem .65rem; }
.unsloth-chat-panel .form-status { padding: 0 1.2rem .9rem; margin: 0; }
.unsloth-offers { display: flex; flex-direction: column; padding: 1.2rem; }
.unsloth-offers h2 { margin: 0; font-size: 20px; }
.unsloth-offer-list { display: grid; gap: .75rem; margin-top: 1rem; }
.unsloth-offer-list > div { display: grid; gap: .25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line-soft); }
.unsloth-offer-list .state-pill { justify-self: start; }
.unsloth-offer-list strong { font-size: 12px; }
.unsloth-offer-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.unsloth-offers .inline-notice { margin-top: auto; padding-top: 1rem; }
.compact-card { display: grid; align-content: start; gap: .65rem; }
.compact-card .card-summary { min-height: 2.9em; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.compact-card .card-actions { margin-top: auto; }
.compact-card .primary-button { margin-top: 0; }
.work-card { display: grid; align-content: start; gap: .65rem; }
.work-card .primary-button { margin-top: auto; }
.detail-panel { margin-bottom: 1rem; border-color: var(--violet); }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.detail-panel h3 { margin: 1.25rem 0 .45rem; font-size: 13px; }
.detail-panel pre, [data-teaching-json], [data-autonomy-json] { max-height: 320px; overflow: auto; margin: .4rem 0; padding: .85rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: .55rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.search-panel { margin-bottom: 1rem; }
.search-panel label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.search-panel input { width: 100%; padding: .7rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: .55rem; }

/* Admin V1 owner-first integration: every operational value is API-derived. */
.design-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.design-summary .panel-card { min-height: 126px; display: grid; align-content: start; gap: .4rem; border-top: 3px solid var(--violet); }
.design-summary strong { color: var(--text); font: 700 18px/1.2 Georgia, serif; }
.design-summary small { color: var(--muted); font-size: 11px; }
.teach-destination { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 1rem; padding: .85rem 1rem; color: var(--text); background: color-mix(in srgb, var(--violet) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 48%, var(--line)); border-radius: .7rem; }
.teach-destination > span { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; color: #07172b; background: var(--violet); border-radius: 50%; font: 800 16px/1 Georgia, serif; }
.teach-destination p { display: grid; gap: .18rem; margin: 0; }
.teach-destination small { color: var(--muted); }
@media (max-width: 950px) { .design-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sidebar-footer .avatar { display: none; } }
@media (max-width: 700px) { .design-summary { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .detail-heading { flex-direction: column; } .page-actions { width: 100%; justify-content: flex-start; } .page-actions > button, .card-actions > button { width: 100%; } }
@media (max-width: 950px) { .unsloth-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .unsloth-chat-panel { min-height: 540px; } .unsloth-chat-panel > header { align-items: flex-start; flex-direction: column; } .unsloth-message { max-width: 94%; } }

/* Practical, peaceful operator surface: calm contrast, clear focus, less visual noise. */
:root {
  --bg: #091827;
  --surface: #11263b;
  --surface-2: #183149;
  --surface-3: #23415a;
  --line: #36546b;
  --line-soft: #2b465d;
  --text: #f2f4f2;
  --muted: #bdc9d1;
  --dim: #91a6b5;
  --violet: #c9aa70;
  --violet-soft: #c9aa7020;
  --blue: #8bc8e8;
  --amber: #d9b875;
  --green: #7ac9aa;
  --red: #df8f9f;
  --rose: #d9a1bb;
  --shadow: 0 12px 30px #00000024;
}
:root[data-theme="light"] {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #f7f3ea;
  --surface-3: #ebe5d9;
  --line: #d2c8b8;
  --line-soft: #e4dccf;
  --text: #1b2b3a;
  --muted: #596b78;
  --dim: #7f8f9a;
  --violet: #a9823e;
  --violet-soft: #a9823e1c;
  --blue: #397da0;
  --amber: #a9823e;
  --green: #2c8a68;
  --red: #b95468;
  --rose: #a96b89;
  --shadow: 0 10px 26px #26374612;
}
.sidebar { background: radial-gradient(ellipse at 12% -8%, #c9aa7018, transparent 34%), var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 8; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
.global-status { background: color-mix(in srgb, var(--surface) 94%, var(--bg)); }
.workspace { max-width: 1480px; padding: 2.1rem 2.25rem 3rem; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1 { font-weight: 700; }
.hero-card, .panel-card, .system-card, .tool-card { border-color: color-mix(in srgb, var(--line) 82%, transparent); box-shadow: var(--shadow); }
.panel-card { border-radius: 1rem; }
.state-pill { letter-spacing: .045em; box-shadow: none; }
.primary-button { background: linear-gradient(145deg, #e2c68a, var(--violet)); border-color: #e2c68a; box-shadow: 0 4px 12px #c9aa7028; }
.refresh-button, .soft-button, .secondary-button { background: color-mix(in srgb, var(--surface-2) 76%, transparent); }
.card-actions { gap: .55rem; margin-top: .8rem; }
.compact-card .card-summary { color: color-mix(in srgb, var(--muted) 92%, var(--text)); }
