Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++
65.1 KB
Raw Blame
/* Review annotations, 9 October 2026. */
:root, [data-theme='dark'] {
  --st-focus: var(--st-ink-muted);
  --st-dialog-height: min(560px, calc(100dvh - 48px));
  --st-chart-decode: #10b981;
  --st-chart-prefill: #0a7854;
}
[data-theme='dark'] { --st-chart-decode: #34d399; --st-chart-prefill: #228963; }
/* Pointer selection keeps the normal boundary; keyboard focus uses neutral fill. */
:focus-visible { outline: none; }
button:focus-visible, a:focus-visible { box-shadow: inset 0 0 0 1px var(--st-ink-muted); }
input:focus, textarea:focus, [contenteditable]:focus { outline: none; box-shadow: none; }
.st-input:focus, .st-composer:focus-within, .composer .st-composer:focus-within { border-color: var(--st-line); }
.st-input:focus, .st-input--bare:focus, .st-input--bare:focus-visible { outline: none; box-shadow: none; }
.st-composer textarea:focus { border: none; }
.main__head, .main__head.main__head--plain {
  background: var(--st-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: none;
  border-bottom: 1px solid var(--st-line);
  min-height: var(--st-header-h);
  height: var(--st-header-h);
  padding-block: 12px;
}
.main__head::before, .main__head::after { display: none; }
.task-tree { margin: 8px 0 14px; }
.task-tree__heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  color: var(--st-ink-muted);
}
.task-tree .navsessions { margin: 0; padding-left: 0; border: 0; }
.task-tree .ws__empty { padding: 8px 10px; margin: 0; }
.skills-search { justify-content: flex-end; }
.dialog-surface { height: var(--st-dialog-height); max-height: var(--st-dialog-height); }
.dialog-head, .dialog-actions { flex: none; }
.dialog-body { flex: 1; min-height: 0; }
.editor-tabs { display: inline-flex; gap: 4px; border-radius: 12px; padding: 4px; background: var(--st-surface-2); margin-bottom: 20px; }
.editor-tabs button { border: 0; border-radius: 9px; background: none; color: var(--st-ink-muted); padding: 8px 14px; font: inherit; font-size: var(--st-fs-sm); cursor: pointer; }
.editor-tabs button[aria-selected='true'] { background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-sh-card); }
.settings-tab-panel { animation: st-enter 180ms var(--st-ease-enter); }
.skill-instructions.st-input { min-height: 230px; max-height: 260px; resize: vertical; font-family: var(--st-font-mono); font-size: 13px; }
.skill-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.skill-detail-grid--name { grid-template-columns: minmax(0, 1fr) 80px; }
.skill-enable-field .st-toggle { margin-top: 9px; }
#skill-panel-details.form-stack { gap: 12px; }
.dialog-body:has(#skill-panel-details) .editor-tabs { margin-bottom: 12px; }
.dialog-body:has([id^='response-panel-']) .editor-tabs { margin-bottom: 12px; }
.sampling-field { gap: 8px; }
.sampling-field p { margin: 1px 0 0; }
#response-panel-sampling > .stack { gap: 12px; }
.sampling-number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.composer .st-composer textarea { max-height: clamp(44px, 30dvh, 180px); overflow-y: auto; }
.field-problem { color: var(--st-danger-text); font-size: var(--st-fs-sm); }
.input-field input[aria-invalid="true"] { border-color: var(--st-danger); }
.response-projection { display: flex; align-items: center; gap: 20px; }
.response-projection > div { flex: 1; }
.response-projection p { margin: 6px 0 0; }
/* Compact pill, a quieter track and a smaller floating thumb. */
.st-toggle {
  flex: none;
  width: calc(40px * var(--st-ui-scale));
  height: calc(24px * var(--st-ui-scale));
  border: 1px solid color-mix(in srgb, var(--st-ink) 16%, transparent);
  background: color-mix(in srgb, var(--st-ink) 10%, var(--st-surface));
  box-shadow: none;
  transition: background 200ms ease, border-color 200ms ease;
}
.st-toggle::after {
  width: calc(16px * var(--st-ui-scale));
  height: calc(16px * var(--st-ui-scale));
  left: calc(3px * var(--st-ui-scale));
  top: calc(3px * var(--st-ui-scale));
  background: var(--st-ink-muted);
  box-shadow: none;
  transform: translateX(0);
  transition: transform 200ms var(--st-ease-standard), background 200ms ease;
}
.st-toggle[aria-checked='true'] { background: var(--st-audit-primary); border-color: var(--st-audit-primary); }
.st-toggle[aria-checked='true']::after { background: #f4faf7; transform: translateX(calc(16px * var(--st-ui-scale))); }
.st-toggle:disabled { opacity: .5; cursor: wait; }
.tunnel-automatic { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 210px; text-align: center; }
.tunnel-automatic .tunnel-stage__symbol { margin: 0; }
.tunnel-automatic .tunnel-stage__symbol .st-icon { animation: connector-spin 1.8s linear infinite; }
@keyframes connector-spin { to { transform: rotate(360deg); } }
.snapshot-preview { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 14px; height: 228px; overflow: hidden; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.snapshot-preview img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.snapshot-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.snapshot-share-actions a { text-decoration: none; }
@media (max-width: 767px) { :root, [data-theme='dark'] { --st-dialog-height: min(560px, calc(100dvh - 24px)); } }
@media (prefers-reduced-motion: reduce) { .tunnel-automatic .tunnel-stage__symbol .st-icon, .settings-tab-panel { animation: none; } }
html[data-motion='reduced'] .tunnel-automatic .tunnel-stage__symbol .st-icon, html[data-motion='reduced'] .settings-tab-panel { animation: none; }

/* Follow-up annotations: conversation chrome and composer controls. */
.ws__session .navsession { flex: 1; min-width: 0; }
.navsession__title { min-width: 0; }
.navsession__time { width: 64px; margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.chat-model-badge { flex: 0 1 auto; max-width: 220px; min-width: 0; border: 1px solid var(--st-line); padding: 4px 7px; border-radius: 6px; color: var(--st-ink-muted); font-size: var(--st-fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-toolbar__conversation h1 { flex: 0 1 auto; }
.chat-agents .st-icon { transition: transform 180ms ease; }
.chat-agents .st-icon.is-open { transform: rotate(180deg); }
.agent-live-dot, .subagent-row__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--st-ink-muted); }
.agent-live-dot { background: var(--st-accent-text); animation: agent-feedback 2s ease-in-out infinite; }
.subagent-row__dot { margin-top: 5px; }
.subagent-row[data-status='working'] .subagent-row__dot { background: var(--st-accent-text); }
.subagent-row[data-status='completed'] .subagent-row__dot { background: color-mix(in srgb, var(--st-accent-text) 60%, var(--st-ink-muted)); }
.subagent-row[data-status='failed'] .subagent-row__dot { background: var(--st-danger-text); }
.subagent-row { gap: 12px; }
.subagent-row__title { flex-wrap: wrap; gap: 4px 8px; }
.subagent-row__title strong { font-size: var(--st-fs-sm); }
.subagent-row__status { font-size: 10px; }
.subagent-row__metrics { font-size: var(--st-fs-xs); }
@keyframes agent-feedback { 50% { opacity: .45; } }
.task-editor-steps { width: fit-content; margin-bottom: 16px; }
.task-editor-steps button:disabled { opacity: .5; cursor: default; }
.task-editor-panel.form-stack { gap: 16px; }
.task-instructions.st-input { height: 150px; min-height: 150px; resize: none; }
.task-schedule-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-schedule-summary p { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-editor-panel .task-schedule:has([aria-label='Day of week']) { grid-template-columns: repeat(3, minmax(0,1fr)); }
.composer { background: var(--st-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: transparent; }
.composer::before, .composer::after { display: none; }
.st-composer__bar, .chatsplit[data-preview='true'] .st-composer__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.st-composer__bar > .spacer, .chatsplit[data-preview='true'] .st-composer__bar > .spacer { display: block; flex: 1; min-width: 0; }
.composer-mic { display: grid; place-items: center; flex: none; width: 32px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--st-ink-muted); cursor: pointer; }
.composer-mic:hover, .composer-mic[aria-pressed='true'] { color: var(--st-accent-text); background: var(--st-surface-2); }
.composer-mode { max-width: 170px; }
.composer-mode span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-effort { flex: none; }
.menu-shortcut { margin-left: auto; flex: none; color: var(--st-ink-muted); font-family: inherit; font-size: 11px; white-space: nowrap; }
.slash-command-icon { width: 20px; font-size: 20px; line-height: 1; text-align: center; }
.composer-menu-heading { margin: 6px 10px 8px; color: var(--st-ink-muted); font-size: var(--st-fs-xs); }
.composer-mode-option { align-items: flex-start; gap: 10px; padding-block: 10px; }
.composer-mode-option > span { flex: 1; min-width: 0; }
.composer-mode-option strong { display: block; font-weight: 500; }
.composer-mode-option small { display: block; color: var(--st-ink-muted); margin-top: 4px; font-size: var(--st-fs-xs); line-height: 1.4; }
.composer-mode-option .st-icon, .composer-mode-option kbd { margin-top: 2px; }
.reasoning-menu-model { display: flex; align-items: center; gap: 8px; padding: 10px 10px 14px; border-bottom: 1px solid var(--st-line); margin-bottom: 12px; color: var(--st-ink); }
.reasoning-menu-model strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--st-fs-xs); }
.dictation-preview { text-align: center; padding: 12px 0 4px; }
.voice-wave { display: flex; justify-content: center; align-items: center; gap: 5px; height: 36px; }
.voice-wave span { display: block; width: 4px; height: 14px; border-radius: 5px; background: var(--st-accent-text); animation: dictation-wave 1.1s ease-in-out infinite alternate; }
@keyframes dictation-wave { to { transform: scaleY(2); opacity: .55; } }
@media (max-width: 767px) { .composer-mode { max-width: 130px; } .chat-model-badge { max-width: 170px; } .chat-agents { gap: 4px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .voice-wave span, .agent-live-dot { animation: none; } }
html[data-motion='reduced'] .voice-wave span, html[data-motion='reduced'] .agent-live-dot { animation: none; }

/* Subsequent review: quieter headers, compact confirmations and dictation. */
.main__title-line { display: flex; align-items: center; gap: 14px; min-width: 0; }
.main__title-line .main__title { margin: 0; flex: none; }
.main__title-detail { font-size: var(--st-fs-xs); color: var(--st-ink-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main__titles { min-width: 0; }
.skills-header-search.st-input { width: 200px; min-width: 0; }
.skills-library-title { margin: 0 0 20px; }
.dialog-head__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.dialog-head:has(.protocol-switch) { flex-wrap: wrap; }
.dialog-head:has(.protocol-switch) h2 { flex: 1; }
.dialog-head .protocol-switch { align-self: auto; }
.dialog-surface.dialog-surface--compact { width: min(440px, calc(100dvw - 32px)); height: auto; max-height: calc(100dvh - 48px); }
.dialog-surface--compact .dialog-body { flex: none; line-height: 1.6; }
.dialog-surface--compact .dialog-body p { margin: 0; overflow-wrap: anywhere; }
.serving-access-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.serving-access-row dd { width: 100%; }
.task-tree-row[data-leaving='true'] { pointer-events: none; overflow: hidden; animation: task-delete 240ms var(--st-ease-standard) forwards; }
@keyframes task-delete { from { max-height: 54px; opacity: 1; } to { max-height: 0; min-height: 0; padding-block: 0; margin-block: 0; opacity: 0; transform: translateX(-8px); } }
.chat-model-picker { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; appearance: none; background: transparent; transition: background 160ms ease; }
.chat-model-picker:hover, .chat-model-picker[aria-expanded='true'] { background: var(--st-surface-2); }
.chat-model-picker > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-model-picker > .st-icon { flex: none; }
.model-picker-option { gap: 14px; height: auto; min-height: 54px; padding-block: 10px; }
.model-picker-option > span:first-child { flex: 1; min-width: 0; }
.model-picker-option strong { display: block; font-weight: 600; }
.model-picker-option small { display: block; font-size: var(--st-fs-xs); color: var(--st-ink-muted); margin-top: 4px; }
.model-picker-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--st-ink-muted); }
.model-picker-option[aria-checked='true'] .model-picker-state { color: var(--st-accent-text); }
.model-picker-manage { border-top: 1px solid var(--st-line); margin-top: 6px; padding-top: 12px; }
.dictation-feedback { position: fixed; right: 24px; bottom: 110px; width: min(320px, calc(100dvw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; z-index: var(--layer-popover); padding: 16px; border: 1px solid var(--st-line); border-radius: 18px; background: var(--st-surface); box-shadow: var(--st-sh-pop); animation: st-enter 200ms var(--st-ease-enter) both; }
.dictation-feedback__head { display: flex; align-items: center; gap: 8px; }
.dictation-feedback__head strong { flex: 1; font-size: var(--st-fs-sm); }
.dictation-feedback__icon { display: flex; color: var(--st-ink-muted); }
.dictation-feedback[data-active] .dictation-feedback__icon { color: var(--st-accent-text); }
.dictation-feedback > p { margin: 12px 0; line-height: 1.5; }
.dictation-feedback .voice-wave { margin: 12px 0; }
.dictation-feedback .voice-wave:not([data-speaking]) span { animation-duration: 1.8s; opacity: .5; }
.dictation-feedback__transcript { max-height: 120px; overflow: auto; font-size: var(--st-fs-sm); }
.dictation-feedback__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dictation-feedback__actions kbd { margin-right: auto; color: var(--st-ink-muted); font: inherit; font-size: 11px; }
.dictation-feedback .dictation-feedback__provider { margin-bottom: 0; }
@media (max-width: 767px) {
  .skills-header-search.st-input { width: min(160px, 28vw); }
  .main__head:has(.skills-header-search) { height: auto; min-height: var(--st-header-h); flex-wrap: wrap; gap: 10px; }
  .main__head:has(.skills-header-search) .main__actions { flex: 1; justify-content: flex-end; }
  .dictation-feedback { right: 16px; bottom: 16px; }
  .main__title-line { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .task-tree-row[data-leaving], .dictation-feedback, .dictation-feedback .voice-wave span { animation: none; } .task-tree-row[data-leaving] { opacity: 0; } }
html[data-motion='reduced'] .task-tree-row[data-leaving], html[data-motion='reduced'] .dictation-feedback, html[data-motion='reduced'] .dictation-feedback .voice-wave span { animation: none; }
html[data-motion='reduced'] .task-tree-row[data-leaving] { opacity: 0; }

/* Review 32: compact menus, hardware inventory and local usage. */
.menu__item.composer-mode-option { height: auto; min-height: 57px; padding: 9px 12px; }
.composer-mode-option small { margin-top: 3px; line-height: 1.3; }
.menu__item.model-picker-option { min-height: 42px; height: auto; padding-block: 10px; gap: 12px; }
.model-picker-option > span:first-child { white-space: nowrap; font-size: 12px; }
.model-picker-option strong { display: inline; font-weight: 600; }
.model-picker-spec { color: var(--st-ink-muted); }
.model-picker-state { white-space: nowrap; flex: none; }
.timeskip-card-arrow { transform: rotate(-90deg); }
.st-msg--user .st-msg__meta { justify-content: flex-end; opacity: 0; transition: opacity 140ms ease; }
.st-msg--user:hover .st-msg__meta, .st-msg--user:focus-within .st-msg__meta { opacity: 1; }
.st-msg--user time { white-space: nowrap; }
.st-msg--user .st-msg__actions { opacity: 1; }
@media (hover: none) { .st-msg--user .st-msg__meta { opacity: 1; } }
.serving-access-row dt { white-space: nowrap; min-width: 110px; }
.serving-access-row dd { width: auto; flex: 1; min-width: 0; }
.serving-access-status { justify-content: flex-start; }
.model-version-heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.model-version-heading h2, .model-version-heading p { margin: 0; }
.model-family-selector { margin: 0 -8px; max-width: none; }
.model-family-selector button { width: 100%; font-size: 22px; font-weight: 650; min-height: 40px; height: auto; background: transparent; border-color: transparent; padding: 4px 8px; }
.model-family-selector button:hover { background: var(--st-surface-2); }
.model-family-selector button[aria-expanded='true']:hover { background: transparent; }
.version-detail__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 20px 0 24px; }
.version-detail__title h2, .version-detail__title p { margin: 0; }
.version-detail__title p { min-width: 0; overflow-wrap: anywhere; }
.model-family-selector button[aria-expanded='true'], .model-family-selector button:focus { border-color: transparent; box-shadow: none; }
.model-family-selector button:focus-visible { box-shadow: inset 0 0 0 1px var(--st-ink-muted); }
.model-family-selector .select__value { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.model-family-meta { color: var(--st-ink-muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.installed-version { padding-block: 14px; }
.gpu-sensors { display: grid; gap: 8px; margin: 16px 0 0; font-size: 12px; }
.gpu-sensors > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.gpu-sensors dt { color: var(--st-ink-muted); }
.gpu-sensors dd { margin: 0; }
.gpu-sensors small { color: var(--st-ink-muted); font-size: 10px; margin-left: 4px; }
.usage-home { width: 100%; max-width: 532px; margin: auto; padding: 26px 0 16px; text-align: left; }
.usage-home > h2 { display: flex; align-items: center; gap: 13px; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.7px; margin: 0 0 44px; }
.usage-home > h2 svg { color: var(--st-accent-text); flex: none; }
.usage-card { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 18px; padding: 16px; }
.usage-card__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.usage-card__toolbar > div { display: flex; gap: 4px; }
.usage-card__toolbar button, .usage-show-more { border: 0; background: transparent; color: var(--st-ink-muted); font: inherit; padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.usage-card__toolbar button:hover, .usage-show-more:hover { color: var(--st-ink); background: var(--st-surface-2); }
.usage-card__toolbar button[aria-selected='true'], .usage-card__toolbar button[aria-pressed='true'] { background: var(--st-surface-3, var(--st-surface-2)); color: var(--st-ink); }
.usage-card__toolbar > [aria-label='Usage period'] { margin-left: auto; }
.usage-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.usage-stats > div { border-radius: 9px; background: var(--st-surface-2); padding: 12px; min-width: 0; }
.usage-stats dt { color: var(--st-ink-muted); font-size: 13px; margin-bottom: 8px; }
.usage-stats dd { margin: 0; font-size: 21px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.usage-stats > div:last-child dd { font-size: 16px; padding-top: 4px; }
.usage-heatmap { display: grid; grid-template-rows: repeat(7, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; }
.usage-heatmap > span { aspect-ratio: 1; border-radius: 3px; background: var(--st-surface-2); }
.usage-heatmap > span[data-empty] { visibility: hidden; }
.usage-heatmap__legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 10px; color: var(--st-ink-muted); }
.usage-heatmap__legend > span { display: inline-flex; align-items: center; gap: 4px; }
.usage-heatmap__legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--st-surface-2); }
.usage-heatmap [data-level='1'], .usage-heatmap__legend [data-level='1'] { background: #31466a; }
.usage-heatmap [data-level='2'], .usage-heatmap__legend [data-level='2'] { background: #4d82d8; }
.usage-heatmap [data-level='3'], .usage-heatmap__legend [data-level='3'] { background: #6998e6; }
.usage-heatmap [data-level='4'], .usage-heatmap__legend [data-level='4'] { background: #8aaeea; }
.usage-home > .st-btn { margin-top: 20px; }
.usage-model-chart { display: block; width: 100%; margin: 0 0 16px; }
.usage-model-chart line { stroke: var(--st-line); stroke-width: 1; }
.usage-model-chart text { fill: var(--st-ink-muted); font-size: 11px; font-family: inherit; }
.usage-model-list { display: grid; gap: 10px; }
.usage-model-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 12px; align-items: center; font-size: 13px; }
.usage-model-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.usage-model-name i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.usage-model-name small { color: var(--st-ink-muted); font-size: 10px; }
.usage-model-list strong { text-align: right; font-weight: 500; }
.usage-show-more { padding: 0; text-align: left; justify-self: start; }
.usage-empty { padding: 16px 0; text-align: center; font-size: 13px; }
@media (max-width: 680px) {
  .usage-home > h2 { margin-bottom: 28px; }
  .usage-card { padding: 16px; }
  .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-model-list > div { grid-template-columns: minmax(0, 1fr) 52px; }
  .usage-model-list > div > .muted { grid-row: 2; font-size: 11px; padding-left: 19px; }
  .usage-model-list strong { grid-column: 2; grid-row: 1; }
  .usage-heatmap { gap: 3px; }
  .model-picker-option > span:first-child { font-size: 11px; }
}
.usage-home > h2 { margin-bottom: 34px; }
.usage-card__toolbar { margin-bottom: 16px; }
.usage-stats > div { padding: 10px 12px; }
.usage-stats dt { line-height: 1.3; font-size: 12px; margin-bottom: 6px; }
.usage-stats dd { line-height: 1.25; }
.device-memory-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 540px) { .device-memory-metrics { grid-template-columns: minmax(0, 1fr); } }
.st-msg--user button[aria-label='Rewind to here'] .st-icon { transform: scaleX(-1); }

/* Review of Models, Engine, Serving and document previews, 9 October 2026. */
.model-page .model-hero { gap: 16px; padding: 18px 20px; border-radius: 16px; }
.model-hero__icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: transparent; }
.model-hero__body .select__value { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.model-family-selector .st-icon { flex: none; color: var(--st-ink-muted); }
.model-installed { border-top: 1px solid var(--st-line); }
.model-installed > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.model-installed > summary::-webkit-details-marker { display: none; }
.model-installed__label { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.model-installed__label .h3 { margin: 0; }
.model-installed__label .st-icon { transform: rotate(-90deg); color: var(--st-ink-muted); }
.model-installed[open] .model-installed__label .st-icon { transform: none; }
.model-installed > summary > .small { text-align: right; }
.model-installed__files .installed-version { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--st-line-soft); }
.model-installed__files .installed-version > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.model-installed__files .installed-version > span:last-child { white-space: nowrap; }
.auto-tune-card .input-field { margin-top: 24px; }
.context-slider { position: relative; height: 30px; }
.context-slider .st-slider { display: block; margin: 0; }
.context-recommendation-mark { position: absolute; top: 24px; width: 2px; height: 6px; border-radius: 1px; background: var(--st-accent-text); transform: translateX(-50%); pointer-events: none; }
.context-scale { display: flex; justify-content: space-between; gap: 12px; color: var(--st-ink-muted); font-size: 11px; line-height: 1.4; }
.context-guidance p { margin: 8px 0 0; }
.context-recommendation { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.context-recommendation > span { width: 2px; height: 8px; border-radius: 1px; background: var(--st-accent-text); }
.serving-overview .summary-list { margin: 0; }
.serving-overview .summary-list > div { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); align-items: center; gap: 16px; min-height: 64px; padding-block: 10px; }
.serving-overview .summary-list > div:last-child { border-bottom: 0; }
.serving-overview .summary-list dt { min-width: 0; font-size: 12px; }
.serving-overview .summary-list dd { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; width: auto; min-width: 0; text-align: right; font-weight: 500; }
.serving-overview .summary-list dd code { min-width: 0; overflow-wrap: anywhere; }
.serving-overview .summary-list dd.row { flex-wrap: nowrap; }
.serving-overview .serving-access-status { justify-content: flex-end; flex: 1 0 100%; }
.serving-overview .serving-access-status > .row { justify-content: flex-end; }
.artifact-tab-strip { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; }
.artifact-tab-strip .artifact-tabs { mask-image: none; padding-inline: 4px; }
.artifact-scroll.st-btn { flex: none; width: 28px; height: 32px; padding: 0; }
.artifact-scroll--left .st-icon { transform: rotate(90deg); }
.artifact-scroll--right .st-icon { transform: rotate(-90deg); }
.artifact-scroll:disabled { opacity: .3; }
.preview-file-actions { display: flex; align-items: center; gap: 2px; }
.preview-file-actions:empty { display: none; }
.artifact-panel { position: relative; }
.artifact-view-controls { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; }
.dialog-head:has(> .sr-only) .dialog-head__actions { margin-left: auto; }
.artifact-panel:has(> .artifact-view-controls) .artifact-content { padding-bottom: 80px; }
.artifact-panel > .artifact-tab-strip { flex: none; }
.dialog-body > .artifact-panel { min-height: 0; }
.pdf-view { position: relative; }
.pdf-controls { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; width: max-content; max-width: calc(100% - 24px); flex-wrap: nowrap; padding: 6px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-surface); box-shadow: 0 4px 16px #0002; }
.pdf-controls .preview-controls { width: auto; flex-wrap: nowrap; }
.pdf-controls .st-tabs { padding: 0; border: 0; background: transparent; }
.pdf-controls .num { white-space: nowrap; min-width: 42px; text-align: center; }
.pdf-canvas-wrap { padding-bottom: 88px; }
@media (max-width: 600px) {
  .model-page .model-hero { padding: 16px; gap: 12px; }
  .model-family-selector button { font-size: 18px; }
  .model-installed > summary { gap: 10px; }
  .model-installed__label { gap: 5px; }
  .model-installed__label .h3 { font-size: 14px; }
  .model-installed > summary > .small { font-size: 11px; max-width: 46%; }
  .serving-overview { padding: 16px; }
  .serving-overview .summary-list > div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 16px; }
  .serving-overview .summary-list dd { justify-content: flex-start; gap: 8px; font-size: var(--st-fs-sm); text-align: left; }
  .serving-overview .summary-list dd code { font-size: var(--st-fs-xs); }
  .serving-overview .summary-list dd.row { justify-content: space-between; }
  .serving-overview .summary-list dd.row > .st-btn--icon { flex: none; }
  .serving-overview .serving-access-status, .serving-overview .serving-access-status > .row { justify-content: flex-start; }
  .pdf-controls { bottom: 12px; }
}

/* Small Astra review: keep mobile controls and their details together. */
@media (max-width: 767px) {
  .main__head, .main__head.main__head--plain { height: auto; }
  .main__head .main__titles { flex-basis: auto; }
  .main__head:has(+ .main__body .tuning) { align-items: flex-start; gap: 12px; }
  .main__head:has(+ .main__body .tuning) .main__actions { width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 360px) {
  .serving-overview .summary-list dd.row { gap: 4px; }
}
@media (max-width: 850px) {
  .model-page .version-ladder > .version-detail { position: static; margin-block: 3px 8px; padding: 20px; border-radius: 12px; }
}
.nav-recent { display: flex; flex-direction: column; gap: 8px; }
.navitem.nav-recent__chat { position: relative; }
.navitem.nav-recent__chat[aria-current='page'] { color: var(--st-ink-soft); }
.navitem.nav-recent__chat[aria-current='page'] svg { color: inherit; }
.nav-chat-number { position: absolute; right: 4px; bottom: 3px; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 4px; background: var(--st-surface); color: var(--st-ink-muted); font-size: 10px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.nav-chat-shortcut { align-self: flex-start; margin-top: 4px; font: inherit; font-size: 11px; color: var(--st-ink-muted); }

.key-stage__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.serving-key-dialog .tunnel-stage { min-height: 0; }
.tunnel-automatic[data-ready] .tunnel-stage__symbol .st-icon { animation: none; }
.dialog-surface--compact .dialog-body .storage-delete-note { margin-top: 12px; }
.storage-directory { padding: 20px; border-bottom: 1px solid var(--st-line); }
.storage-directory__heading, .storage-directory__heading > span { display: flex; align-items: center; gap: 10px; }
.storage-directory__heading { justify-content: space-between; flex-wrap: wrap; }
.storage-directory > p { margin-top: 10px; }
.storage-directory__path { display: block; padding: 12px 14px; border-radius: 10px; background: var(--st-surface-2); margin: 14px 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; user-select: text; }
.storage-directory__edit { display: grid; gap: 10px; }
.storage-directory__edit .st-input { width: 100%; min-width: 0; }
.storage-directory__notice { display: flex; align-items: flex-start; gap: 8px; color: var(--st-ink-soft); }
@media (max-width: 560px) {
  .key-input { flex-wrap: wrap; }
  .key-input .st-input { flex-basis: 100%; }
}
.nav-chat-tooltip { position: fixed; z-index: var(--layer-popover); width: 272px; max-width: calc(100dvw - 88px); padding: 12px 14px; border: 1px solid var(--st-line); border-radius: var(--st-r-md); background: var(--st-surface); box-shadow: var(--st-sh-pop); pointer-events: none; display: grid; gap: 5px; overflow-wrap: anywhere; }
.nav-chat-tooltip strong { color: var(--st-ink); font-size: 13px; font-weight: 600; }
.nav-chat-tooltip span { color: var(--st-ink-muted); font-size: 12px; line-height: 1.5; }

/* Settings stays above the working page, with its existing sections and controls. */
.dialog-surface.settings-dialog { width: min(1040px, 100%); height: min(740px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); }
.settings-dialog .dialog-body { display: flex; overflow: hidden; padding: 24px; }
.settings-layout { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; flex: 1; min-height: 0; min-width: 0; }
.settings-dialog .settingsindex { position: static; display: flex; flex-direction: column; align-items: stretch; align-self: start; gap: 6px; margin: 0; padding: 0; background: transparent; }
.settings-dialog .settingsindex__item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; text-align: left; border-radius: var(--st-r-md); }
.settings-dialog .settingsindex__item[aria-selected='true'] { background: var(--st-surface-2); color: var(--st-ink); font-weight: 600; }
.settings-pane { min-height: 0; overflow: auto; scrollbar-gutter: stable; padding-right: 6px; }
.enginechip__family { position: relative; width: 24px; height: 24px; display: grid; place-items: center; flex: none; color: var(--st-icon); }
.enginechip .enginechip__family .enginechip__dot { position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--st-surface); }
@media (max-width: 600px) {
  .dialog-layer:has(.settings-dialog) { padding: 16px; }
  .dialog-surface.settings-dialog { height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); }
  .settings-dialog .dialog-head { padding: 16px; }
  .settings-dialog .dialog-body { padding: 16px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
  .settings-dialog .settingsindex { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .settings-dialog .settingsindex__item { height: 32px; padding: 0 8px; font-size: 12px; }
}

.settings-models__intro { margin-top: 8px; }
.provider-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.provider-card > .st-icon { flex: none; color: var(--st-ink-muted); }
.provider-card__text { flex: 1; min-width: 0; }
.provider-card__text > p { margin: 4px 0 0; }
.provider-address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 24px; border: 1px dashed var(--st-line); border-radius: var(--st-r-lg); }
.provider-empty p { max-width: 360px; }
.provider-editor { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.provider-kind { display: flex; gap: 4px; padding: 4px; border-radius: var(--st-r-md); background: var(--st-surface-2); }
.provider-kind button { border: 0; background: transparent; cursor: pointer; flex: 1; min-height: 36px; padding: 8px; border-radius: var(--st-r-sm); color: var(--st-ink-muted); font: inherit; }
.provider-kind button[aria-pressed='true'] { background: var(--st-surface); color: var(--st-ink); box-shadow: 0 1px 4px #0001; }
.provider-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.provider-fields .st-input, .provider-fields .st-select { width: 100%; }
.provider-fields .input-field small { line-height: 1.5; }
.provider-models { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--st-line); }
.provider-models__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.provider-model-list { max-height: 240px; overflow: auto; border: 1px solid var(--st-line); border-radius: var(--st-r-md); }
.provider-model-row { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; }
.provider-model-row + .provider-model-row { border-top: 1px solid var(--st-line); }
.provider-model-row > span, .provider-selected > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.provider-model-row strong, .provider-selected strong { font-size: var(--st-fs-sm); font-weight: 500; }
.provider-model-row small, .provider-selected small { display: block; font-size: var(--st-fs-xs); margin-top: 3px; }
.provider-model-row input, .provider-fields input[type='checkbox'] { accent-color: var(--st-accent); }
.provider-selected { display: flex; align-items: center; gap: 10px; }
.provider-selected > .st-icon { color: var(--st-accent-text); flex: none; }
.provider-manual { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding-top: 8px; }
.provider-manual > .st-btn { justify-self: start; }
.provider-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--st-line); }
.model-picker-heading { font-size: 11px; color: var(--st-ink-muted); padding: 12px 12px 5px; }
.model-picker-api > span:first-child { white-space: normal; overflow-wrap: anywhere; }
.model-picker-api strong { display: block; }
.model-picker-empty { margin: 4px 12px 12px; color: var(--st-ink-muted); font-size: 12px; }
.model-picker-family-row { display: flex; align-items: stretch; gap: 2px; }
.menu__item.model-picker-family { flex: 1; min-width: 0; min-height: 58px; height: auto; gap: 10px; padding: 10px; }
.model-picker-family > .st-icon { flex: none; }
.model-picker-family-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.model-picker-family-copy strong { display: block; font-size: 12px; font-weight: 600; }
.model-picker-family-copy small { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 4px; color: var(--st-ink-muted); font-size: 11px; }
.model-picker-family-copy small > span:last-child { white-space: nowrap; }
.model-picker-family-copy small > span:last-child::before { content: '· '; }
.model-picker-family[aria-checked='true'] .model-picker-state { color: var(--st-accent-text); }
.menu__item.model-picker-expand { width: 34px; flex: none; height: auto; min-height: 44px; justify-content: center; padding: 0; }
.model-picker-expand[aria-expanded='true'] > .st-icon { transform: rotate(180deg); }
.model-picker-versions { border-left: 1px solid var(--st-line); margin: 2px 10px 6px 20px; padding-left: 8px; }
.model-picker-versions .model-picker-option > span:first-child { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .settings-dialog .settingsindex__item { gap: 6px; }
  .provider-editor { padding: 16px; }
  .provider-card { padding: 14px; gap: 10px; }
  .provider-manual { grid-template-columns: minmax(0, 1fr); }
  .provider-kind button { font-size: 12px; }
  .provider-actions > .st-btn--ghost { width: 100%; justify-content: flex-start; }
}

.provider-editor > p { margin: 0; }
.provider-options > summary { cursor: pointer; font-size: var(--st-fs-sm); color: var(--st-ink-muted); }
.provider-options[open] > .provider-fields { margin-top: 16px; }

/* Keep each downloaded model name on one line, with a wider desktop popup. */
.select__option-label { min-width: 0; flex: 1; overflow-wrap: anywhere; }
/* A long name (a graphics card as the system reports it) wraps inside its own row instead of running over the next one (#3221). */
.select__opt { height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; line-height: 1.35; }
.select__pop--single-line .select__option-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select__pop--single-line .select__tick { flex: none; }
.settings-versions { padding: 4px 20px 0; }
.settings-version { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.settings-version + .settings-version { border-top: 1px solid var(--st-line-soft); }
.settings-version > .st-icon { flex: none; color: var(--st-ink-muted); }
.settings-version > span:nth-child(2) { flex: 1; min-width: 0; }
.settings-version strong { display: block; font-size: 13px; font-weight: 600; }
.settings-version small { display: block; margin-top: 4px; color: var(--st-ink-muted); font-size: 12px; overflow-wrap: anywhere; }
.settings-version__label { font-size: 11px; color: var(--st-ink-muted); }
.settings-update-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0 18px; border-top: 1px solid var(--st-line-soft); }
.settings-update-dialog { display: grid; gap: 18px; }
.settings-update-dialog > .st-btn { justify-self: start; }
.settings-update-installed { display: grid; gap: 4px; font-size: 12px; }
.settings-update-installed > span { color: var(--st-ink-muted); }
.settings-update-installed > strong { font-weight: 500; overflow-wrap: anywhere; }
.settings-update-status { display: flex; align-items: start; gap: 10px; background: var(--st-surface-2); border-radius: var(--st-r-md); padding: 14px; font-size: 12px; }
.settings-update-status > .st-icon { flex: none; color: var(--st-ink-muted); margin-top: 2px; }
.settings-update-status strong { font-weight: 500; }
.settings-update-status p { color: var(--st-ink-muted); line-height: 1.6; margin: 6px 0 0; }
.model-family-menu { padding: 6px; border-radius: 14px; transform-origin: top left; animation: model-menu-enter 150ms var(--st-ease); }
.model-family-menu[data-up] { transform-origin: bottom left; animation: none; }
.model-family-menu .select__opt { min-height: 48px; height: auto; padding: 10px 12px; gap: 11px; font-size: 14px; line-height: 1.4; }
.model-family-menu .select__option-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--st-ink-muted); background: var(--st-surface-2); border-radius: 8px; flex: none; }
.model-family-menu .select__opt[aria-selected='true'] { font-weight: 500; }
.model-family-menu .select__opt[aria-selected='true'] .select__option-icon { color: var(--st-accent-text); background: var(--st-accent-tint); }
.select__option-check { flex: none; color: var(--st-accent-text); }
@keyframes model-menu-enter { from { opacity: 0; transform: translateY(-3px) scale(.985); } to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion:reduce){.model-family-menu{animation:none}}
:root[data-motion='reduced'] .model-family-menu{animation:none}
.settings-version__message { max-width: 460px; line-height: 1.5; }
.settings-version[data-update='available'] .settings-version__message { color: var(--st-accent-text); }
.settings-version[data-update='error'] .settings-version__label { color: var(--st-danger-text); }
.settings-version > .st-btn { flex: none; }
.settings-update-inline:empty { display: none; }
.settings-update-inline { margin: -4px 0 16px; font-size: 11px; line-height: 1.5; color: var(--st-ink-muted); }
.settings-update-checking > .st-icon { animation: update-check-spin 900ms linear infinite; }
@keyframes update-check-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce){.settings-update-checking>.st-icon{animation:none}}
:root[data-motion='reduced'] .settings-update-checking>.st-icon{animation:none}

/* Local model import stays a secondary entry in the Version menu. */
.run-version-menu .select__opt:last-child { border-top: 1px solid var(--st-line); margin-top: 6px; padding-top: 14px; color: var(--st-ink-soft); }
.run-local-model-note { display: flex; align-items: center; gap: 7px; color: var(--st-ink-muted); font-size: 11px; line-height: 1.5; padding-top: 14px; }
.run-local-model-note > span { flex: 1; }
.run-local-model-note .text-btn { flex: none; font-size: 11px; }
.dialog-surface.local-model-dialog { width: min(720px, calc(100dvw - 32px)); height: auto; max-height: min(740px, calc(100dvh - 48px)); }
.local-model-browser, .local-model-review { display: grid; gap: 16px; min-width: 0; }
.local-model-browser__path { display: flex; gap: 8px; }
.local-model-browser__path input { min-width: 0; flex: 1; font-size: 12px; }
.local-model-browser__navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.local-model-browser__navigation > div { display: flex; gap: 6px; flex-wrap: wrap; }
.local-model-browser__list { height: 264px; overflow: auto; border: 1px solid var(--st-line); border-radius: 12px; padding: 6px; }
.local-model-file { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px; text-align: left; border-radius: 8px; }
.local-model-file:hover, .local-model-file:focus-visible { background: var(--st-surface-2); }
.local-model-file > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.local-model-file > svg, .local-model-file > small { color: var(--st-ink-muted); flex: none; }
.local-model-browser__empty { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 16px; text-align: center; }
.local-model-browser__empty > svg { color: var(--st-ink-muted); }
.local-model-review__identity { display: flex; gap: 14px; align-items: center; }
.local-model-review__identity > div { display: grid; gap: 5px; min-width: 0; }
.local-model-review__identity strong { font-size: 17px; overflow-wrap: anywhere; }
.local-model-review__identity small { color: var(--st-ink-muted); }
.local-model-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding: 18px; background: var(--st-surface-2); border-radius: 12px; margin: 0; }
.local-model-facts dt { font-size: 11px; color: var(--st-ink-muted); margin-bottom: 5px; }
.local-model-facts dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.local-model-name { display: grid; gap: 8px; font-size: 12px; }
.local-model-name input { width: 100%; }
.local-model-files summary { font-size: 12px; color: var(--st-ink-muted); cursor: pointer; }
.local-model-files code { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.6; padding-top: 10px; }
.local-model-files ul { font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; margin-top: 8px; padding-left: 20px; }
.local-model-compatibility { display: flex; gap: 8px; align-items: flex-start; color: var(--st-ink-muted); }
.local-model-compatibility svg { flex: none; margin-top: 2px; }
@media (max-width: 560px) { .local-model-browser__list { height: 230px; } .local-model-browser__navigation .st-btn { padding-inline: 10px; } .run-local-model-note { flex-wrap: wrap; } }

/* Developer previews: local grammar tokens, aligned gutters, both color schemes. */
.syntax-code { --syntax-comment:#64748b; --syntax-keyword:#7c3aed; --syntax-string:#047857; --syntax-function:#1d4ed8; --syntax-type:#0f766e; --syntax-number:#b45309; --syntax-punctuation:#475569; margin:0; white-space:pre; tab-size:2; font-family:var(--st-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace); font-size:13px; line-height:1.8; color:var(--st-ink); }
.syntax-code.code-preview { padding:24px 0; min-width:max-content; }
.code-preview .syntax-line { display:flex; min-height:1.8em; }
.syntax-gutter { display:inline-block; width:48px; flex:none; padding-right:14px; text-align:right; color:var(--st-ink-muted); user-select:none; }
.code-preview .syntax-text { padding-right:24px; white-space:pre; }
.code-preview .syntax-text:empty::after { content:' '; }
.syntax-comment, .syntax-prolog, .syntax-doctype, .syntax-cdata { color:var(--syntax-comment); font-style:italic; }
.syntax-keyword, .syntax-selector, .syntax-important { color:var(--syntax-keyword); }
.syntax-string, .syntax-char, .syntax-attr-value, .syntax-regex, .syntax-inserted { color:var(--syntax-string); }
.syntax-function, .syntax-function-variable, .syntax-tag, .syntax-property, .syntax-url { color:var(--syntax-function); }
.syntax-class-name, .syntax-builtin, .syntax-type, .syntax-attr-name { color:var(--syntax-type); }
.syntax-number, .syntax-boolean, .syntax-constant, .syntax-symbol, .syntax-deleted { color:var(--syntax-number); }
.syntax-punctuation, .syntax-operator { color:var(--syntax-punctuation); }
.syntax-title, .syntax-bold { color:var(--syntax-keyword); font-weight:600; }
.syntax-italic { font-style:italic; }
[data-theme='dark'] .syntax-code, .st-code .syntax-code { --syntax-comment:#94a3b8; --syntax-keyword:#c4b5fd; --syntax-string:#86efac; --syntax-function:#93c5fd; --syntax-type:#5eead4; --syntax-number:#fdba74; --syntax-punctuation:#cbd5e1; }
.st-code .syntax-code { color:var(--st-code-ink); }
.document-markdown .st-code { margin:20px 0; }
.document-markdown h2, .document-markdown h3, .document-markdown h4 { letter-spacing:-.015em; }
.document-markdown .md-code { color:var(--syntax-function, #1d4ed8); background:var(--st-surface-2); border-radius:5px; padding:2px 5px; }
[data-theme='dark'] .document-markdown .md-code { color:#93c5fd; }

.chatsplit { position:relative; }
.chatsplit[data-preview='true'] { transition:none; }
.preview-resize-handle { position:absolute; top:0; bottom:0; width:12px; z-index:5; cursor:col-resize; touch-action:none; outline:none; }
.preview-resize-handle > span { position:absolute; left:5px; top:0; bottom:0; width:2px; background:transparent; transition:background 120ms ease; }
.preview-resize-handle:hover > span, .preview-resize-handle:focus-visible > span, [data-preview-resizing='true'] .preview-resize-handle > span { background:var(--st-accent-text); }
.preview-resize-handle:focus-visible { outline:2px solid var(--st-accent-text); outline-offset:-2px; }
[data-preview-resizing='true'], [data-preview-resizing='true'] * { cursor:col-resize!important; user-select:none!important; }
[data-preview-resizing='true'] .artifact-panel iframe { pointer-events:none; }
.chat-toolbar__conversation { container-type:inline-size; container-name:chat-controls; }
.chat-agents__count { font-size:11px; font-variant-numeric:tabular-nums; }
.subagents-empty { display:grid; justify-items:start; gap:10px; padding:18px 0 8px; }
.subagents-empty > svg { color:var(--st-ink-muted); }
.subagents-empty p { line-height:1.7; }
.subagents-overview-summary { padding:8px 0 12px; }
@container chat-controls (max-width:560px) { .chat-agents__label { display:none; } }
@container chat-controls (max-width:460px) { .chat-toolbar__conversation .chat-model-badge { max-width:112px; } }
.chat-toolbar__previews { container-type:inline-size; container-name:preview-toolbar; }
.preview-file-actions__inline { display:flex; align-items:center; gap:2px; }
.preview-file-actions__more { display:none; }
.artifact-tabs .artifact-tab { max-width:min(220px, calc(100% - 8px)); }
@container preview-toolbar (max-width:500px) {
  .preview-file-actions__inline { display:none; }
  .preview-file-actions__more { display:inline-flex; }
  .preview-window-actions { padding-inline:2px 6px; }
  .preview-window-actions > .st-btn, .preview-file-actions__more { width:32px; height:32px; padding:0; }
  .artifact-scroll.st-btn { width:24px; }
}

/* Native engine controls: a short everyday path, detailed settings on demand. */
.native-model-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:24px; max-width:1140px; margin:auto; }
.native-model-layout .st-card { padding:24px; }
.native-model-layout h2 { margin-bottom:16px; }
.native-choice>p { margin-bottom:20px; line-height:1.65; }
.native-choice .input-field { margin-bottom:12px; }
.native-choice-facts { display:flex; gap:24px; flex-wrap:wrap; margin-top:18px; font-size:12px; color:var(--st-ink-muted); }
.native-choice-facts>span { display:flex; align-items:center; gap:7px; }
.native-fit-notice { display:flex; gap:10px; padding:16px; margin-top:20px; background:var(--st-surface-2); border-radius:12px; font-size:13px; }
.native-fit-notice>svg { flex:none; margin-top:2px; }
.native-fit-notice p { margin:8px 0 12px; line-height:1.65; }
.native-fit-notice .st-btn { margin-right:8px; }
.native-image-reading { border-top:1px solid var(--st-line-soft); padding-top:20px; margin-top:20px; display:flex; gap:16px; align-items:center; }
.native-image-reading>label { display:flex; gap:12px; align-items:start; flex:1; font-size:13px; }
.native-image-reading input { margin-top:4px; accent-color:var(--st-accent); }
.native-image-reading strong { display:block; }
.native-image-reading strong small { display:inline; font-size:10px; font-weight:400; color:var(--st-ink-muted); margin-left:8px; }
.native-image-reading span>small { display:block; color:var(--st-ink-muted); font-size:11px; margin-top:6px; line-height:1.65; }
.native-image-reading>.select { max-width:150px; }
.native-running>div { display:flex; align-items:center; gap:10px; padding:14px 0; border-top:1px solid var(--st-line-soft); }
.native-running>div>span { flex:1; min-width:0; font-size:13px; }
.native-running small { display:block; color:var(--st-ink-muted); margin-top:6px; line-height:1.6; }
.native-toggle { display:flex; gap:20px; justify-content:space-between; align-items:center; font-size:13px; padding:16px 0; }
.native-toggle small { display:block; margin-top:6px; line-height:1.6; color:var(--st-ink-muted); font-size:11px; }
.native-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
.native-gpu-options { display:grid; gap:8px; margin-top:14px; }
.native-gpu-options label { display:flex; gap:12px; padding:12px; border:1px solid var(--st-line); border-radius:10px; font-size:12px; }
.native-gpu-options input { accent-color:var(--st-accent); }
.native-gpu-options small { display:block; margin-top:5px; color:var(--st-ink-muted); }
.native-model-actions { display:flex; gap:16px; justify-content:flex-end; border-top:1px solid var(--st-line); padding-top:20px; }
.native-path { display:block; font-size:11px; line-height:1.8; overflow-wrap:anywhere; margin:16px 0; }
.native-settings { margin-top:24px; border-top:1px solid var(--st-line-soft); padding-top:20px; }
.native-settings>summary, .native-progress summary,.native-generation>summary { font-size:13px; font-weight:600; cursor:pointer; }
.native-settings>p { margin:16px 0; line-height:1.65; }
.native-settings .editor-tabs { margin-block:16px; }
.native-setting-row { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(120px,1fr); gap:20px; align-items:center; padding:14px 0; border-top:1px solid var(--st-line-soft); font-size:12px; }
.native-setting-row small { display:block; color:var(--st-ink-muted); font-size:11px; line-height:1.6; margin-top:5px; }
.native-settings-group { margin-top:24px; }
.native-settings-group h3 { margin-bottom:12px; }
.native-json { width:100%; min-height:300px; font-family:var(--st-font-mono); font-size:12px; line-height:1.7; resize:vertical; margin-block:16px; }
.native-example { font-size:11px; padding:16px; overflow:auto; line-height:1.7; }
.native-settings-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.native-progress progress { width:100%; accent-color:var(--st-accent); margin:12px 0; }
.native-progress>p { line-height:1.65; overflow-wrap:anywhere; }
.native-progress details { margin-top:18px; }
.native-progress details p { margin-top:12px; line-height:1.65; }
.native-log { margin-block:16px; max-height:350px; overflow:auto; font-size:11px; line-height:1.7; background:var(--st-surface-2); padding:16px; border-radius:10px; white-space:pre-wrap; overflow-wrap:anywhere; }
.native-engine-settings .st-card { padding:22px; }
.native-engine-settings .st-card>p { line-height:1.7; margin-top:12px; }
.native-benchmark { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:24px; border:1px solid var(--st-line); border-radius:14px; }
.native-benchmark>div { display:grid; gap:10px; }
.native-benchmark strong { font-size:28px; }
.native-benchmark strong small { font-size:12px; font-weight:400; }
.native-benchmark>p { grid-column:1/-1; line-height:1.7; }
.native-monitor-detail { display:grid; grid-template-columns:minmax(0,2fr) 1fr 1fr; gap:24px; margin-top:24px; }
.native-monitor-detail h3 { margin-bottom:18px; }
.native-monitor-detail strong { font-size:20px; }
.native-monitor-detail p { margin-top:12px; line-height:1.65; }
.native-host-metrics { display:flex; flex-wrap:wrap; gap:32px; margin-block:24px; }
.native-host-metrics>div { display:grid; gap:10px; font-size:12px; }
.native-host-metrics strong { font-size:22px; }
.native-performance-table small { display:block; margin-top:5px; font-size:11px; color:var(--st-ink-muted); }
.native-return { position:fixed; right:28px; bottom:20px; background:var(--st-surface); border:1px solid var(--st-line); z-index:8; box-shadow:var(--st-sh-card); }
.native-generation { border:1px solid var(--st-line); padding:18px 24px; border-radius:14px; background:var(--st-surface); }
.native-generation>summary>span { margin-left:8px; font-size:11px; font-weight:400; }
.native-generation .run-image-model { margin-top:16px; }
.dialog-surface.native-onboarding { width:min(1040px,calc(100dvw - 32px)); max-height:calc(100dvh - 32px); }
.native-onboarding .native-model-layout { grid-template-columns:1fr; }
.native-onboarding .native-model-layout>aside { display:none; }
.native-onboarding .main__head { position:static; }
.chat-photos { display:flex; flex-wrap:wrap; gap:10px; padding:12px 16px; }
.chat-photos>div { position:relative; display:grid; grid-template-columns:60px minmax(0,1fr); align-items:center; gap:8px; border:1px solid var(--st-line); border-radius:10px; padding:8px; background:var(--st-surface); max-width:240px; }
.chat-photos img { width:60px; height:60px; object-fit:cover; border-radius:6px; }
.chat-photos span { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-photos .st-btn { position:absolute; right:-7px; top:-7px; width:24px; height:24px; background:var(--st-surface); border:1px solid var(--st-line); border-radius:50%; padding:0; }
@media(max-width:900px){.native-model-layout{grid-template-columns:1fr}.native-model-layout>aside{display:grid;grid-template-columns:1fr 1fr}.native-monitor-detail{grid-template-columns:1fr 1fr}.native-monitor-detail>div:first-child{grid-column:1/-1}}
@media(max-width:600px){.native-model-layout .st-card{padding:18px}.native-model-layout>aside{display:flex;flex-direction:column}.native-field-grid{grid-template-columns:1fr}.native-setting-row{grid-template-columns:1fr;gap:10px}.native-image-reading{flex-wrap:wrap}.native-choice-facts{gap:12px}.native-running>div{flex-wrap:wrap}.native-running>div>span{flex-basis:100%}.native-monitor-detail{grid-template-columns:1fr}.native-host-metrics{gap:18px}.native-return{position:static;margin:12px 20px}.native-model-actions{flex-wrap:wrap}.native-json{font-size:11px}}

.native-mcp-list { display:grid; gap:10px; margin:18px 0; }
.native-mcp-list>div { display:flex; gap:12px; align-items:center; border:1px solid var(--st-line); padding:12px; border-radius:10px; }
.native-mcp-list>div>span { flex:1; min-width:0; font-size:13px; }
.native-mcp-list small { display:block; font-size:11px; color:var(--st-ink-muted); overflow-wrap:anywhere; margin-top:5px; }
.native-mcp-json { margin-top:18px; }
.native-mcp-json summary { font-size:12px; cursor:pointer; }

.native-model-toolbar{display:flex;align-items:center;gap:12px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--st-line)}
.native-toolbar-summary{display:flex;align-items:center;gap:10px;flex:1;min-width:0;flex-wrap:wrap}.native-toolbar-summary small{color:var(--st-ink-muted)}
.native-model-toolbar>.st-btn{flex-shrink:0}.native-choice .input-field{margin-top:0}.native-return{bottom:8px!important;font-size:11px!important;padding:4px 10px!important;min-height:24px!important}
@media(max-width:1100px){.native-model-toolbar{flex-wrap:wrap}.native-toolbar-summary{flex-basis:100%}}

.native-ready{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--st-accent)}.native-ready:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}

.native-performance-table .text-btn{appearance:none;border:0;background:transparent;color:var(--st-ink);padding:0;font:inherit;font-weight:600;cursor:pointer;text-align:left}.native-performance-table .text-btn:hover{color:var(--st-accent)}.native-performance-table .text-btn:focus-visible{outline:2px solid var(--st-accent);outline-offset:4px;border-radius:3px}

.setupmodal__surface:has(.native-onboarding){width:min(1060px,calc(100dvw - 32px))}.native-welcome-head{padding:24px 28px 12px}.native-welcome-intro{padding:0 28px 20px;line-height:1.6}.native-onboarding .main__head{padding-inline:28px;border-top:1px solid var(--st-line)}.native-onboarding .main__body{overflow:visible}.native-onboarding .wrap{padding:24px 28px}.native-onboarding .native-model-toolbar{flex-wrap:wrap}.native-onboarding .native-toolbar-summary{flex-basis:100%}

.native-onboarding .native-model-toolbar,.native-onboarding .native-generation{display:none}

.font-choice{display:grid;gap:9px;width:260px;max-width:100%}.font-choice-manual{display:grid;gap:8px}.font-choice-manual>.st-btn{justify-self:end}.native-execution{scroll-margin-top:20px}
.native-image-reading input[type=checkbox],.native-gpu-options input[type=checkbox]{appearance:none;width:17px;height:17px;margin:2px 0 0;flex:none;display:grid;place-items:center;border:1px solid var(--st-line);border-radius:4px;background:var(--st-surface);cursor:pointer}
.native-image-reading input[type=checkbox]:after,.native-gpu-options input[type=checkbox]:after{content:'';width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg);opacity:0}
.native-image-reading input[type=checkbox]:checked,.native-gpu-options input[type=checkbox]:checked{background:var(--st-accent);border-color:var(--st-accent)}
.native-image-reading input[type=checkbox]:checked:after,.native-gpu-options input[type=checkbox]:checked:after{opacity:1}
.native-image-reading input[type=checkbox]:focus-visible,.native-gpu-options input[type=checkbox]:focus-visible{outline:2px solid var(--st-accent);outline-offset:3px}
.native-image-reading input[type=checkbox]:disabled,.native-gpu-options input[type=checkbox]:disabled{opacity:.5;cursor:default}
/* Manage models: the downloaded models as a short list. Same surface, line and pill tokens as the settings version rows. */
.native-manage { display:grid; gap:16px; min-width:min(560px,100%); }
.native-manage-list { display:grid; gap:10px; }
.native-manage-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--st-line); border-radius:var(--st-r-md,12px); background:var(--st-surface); }
.native-manage-row[data-selected] { border-color:var(--st-accent); background:var(--st-accent-surface); }
.native-manage-name { display:grid; gap:2px; min-width:0; }
.native-manage-name strong { font-size:var(--st-fs-md); overflow-wrap:anywhere; }
.native-manage-name small { color:var(--st-ink-muted); font-size:var(--st-fs-sm); }
.native-manage-actions { display:flex; gap:8px; }
.native-manage-empty { padding:24px 8px; text-align:center; }
.native-manage-foot { padding-top:12px; border-top:1px solid var(--st-line-soft); }
@media(max-width:600px){ .native-manage-row { grid-template-columns:1fr; } }

/* Graphics cards (several cards that count): a calm radio list, the recommended option pre-selected, neutral like the other calm controls */
.native-cards { display:flex; flex-direction:column; gap:6px; margin-top:14px; }
.native-cards__list { display:flex; flex-direction:column; gap:8px; }
.native-cards__opt { display:grid; grid-template-columns:20px 1fr; gap:12px; align-items:start; text-align:left; padding:12px 14px; border:1px solid var(--st-line); border-radius:10px; background:var(--st-surface-2); color:var(--st-ink-soft); font:inherit; cursor:pointer; }
.native-cards__opt[data-selected="true"] { background:var(--st-surface); color:var(--st-ink); box-shadow:var(--st-sh-card); border-color:color-mix(in srgb, var(--st-ink) 28%, var(--st-line)); }
.native-cards__opt:disabled { cursor:default; opacity:.7; }
.native-cards__opt:focus-visible { outline:2px solid var(--st-accent); outline-offset:1px; }
.native-cards__dot { width:16px; height:16px; margin-top:2px; border-radius:50%; border:2px solid var(--st-line); box-sizing:border-box; }
.native-cards__opt[data-selected="true"] .native-cards__dot { border-color:var(--st-ink); background:radial-gradient(circle, var(--st-ink) 0 42%, transparent 48%); }
.native-cards__opt strong { display:block; font-size:13px; font-weight:600; }
.native-cards__opt small { display:block; margin-top:4px; font-size:12px; line-height:1.55; color:var(--st-ink-muted); }
.native-cards__opt small[data-warn="true"] { color:var(--st-ink-soft); }
.native-cards__note { margin:2px 0 0; }

/* Settings > Storage > Models folder (0.2.2): free-space line, the three choices, notices, the result mark. */
.models-free { display:grid; gap:6px; margin-top:10px; }
.models-free__row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.models-picked { display:grid; gap:4px; }
.models-picked .storage-directory__path { margin:0; }
.models-choices { display:grid; gap:10px; border:0; padding:0; margin:0; }
.models-choice { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:14px 16px; border:1px solid var(--st-line); border-radius:var(--st-r-md); background:var(--st-surface); cursor:pointer; }
.models-choice:has(input:checked) { border-color:var(--st-accent); background:var(--st-accent-tint); }
.models-choice:has(input:disabled) { opacity:.55; cursor:not-allowed; background:var(--st-surface-2); }
.models-choice input { margin:4px 0 0; accent-color:var(--st-accent); }
.models-choice strong { font-weight:700; }
.models-choice__need { grid-column:2; font-size:var(--st-fs-xs); color:var(--st-ink-muted); font-variant-numeric:tabular-nums; }
.models-choice__tag { font-size:var(--st-fs-xs); font-weight:700; color:var(--st-accent-text); margin-left:8px; }
.models-notice { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:12px; font-size:var(--st-fs-sm); }
.models-notice--warn { background:var(--st-warn-tint); color:var(--st-warn-text); }
.models-notice--info { background:var(--st-info-tint); color:var(--st-info-text); }
.models-notice .st-icon { flex:none; }
.models-details summary { cursor:pointer; color:var(--st-accent-text); font-weight:700; font-size:var(--st-fs-sm); }
.models-details ul { margin:8px 0 0; padding-left:18px; color:var(--st-ink-soft); font-size:var(--st-fs-sm); }
.models-ok { display:flex; align-items:center; gap:12px; }
.models-ok__mark { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%; background:var(--st-accent-tint); color:var(--st-accent-text); }
.models-dialog .dialog-body { display:grid; gap:14px; }
.models-path { font-family:var(--st-font-mono); font-size:12px; font-weight:400; background:var(--st-surface-2); padding:2px 6px; border-radius:6px; overflow-wrap:anywhere; }
.models-dialog .storage-directory__path { margin:0; }