/* Animated product scenes (Components/Scenes, js/scenes.js): the dashboard recreated with its own tokens (css/tokens.css, the same values
   as the product's light theme and its Dark Mode plugin) inside the screenshot's browser frame. A scene is the product's 1200 × 900 page
   and scales with its width: sizes are the product's CSS pixels written in cqw of the scene, 1 px = 100/1200 cqw (a size in px divided
   by 12); 1px stays a hairline. The markup is the final state; .is-armed (set by the script only when motion is allowed) hides what
   comes later. */

/* ---------- Frame and canvas ---------- */
.browser.is-scene { -webkit-mask-image: none; mask-image: none; }
.sc { display: block; position: relative; aspect-ratio: 4 / 3; container-type: inline-size; overflow: hidden; background: var(--ci-bg); color: var(--ci-text); font-family: var(--ci-font-ui); font-size: 1.167cqw; line-height: 1.5; text-align: start; font-variant-numeric: tabular-nums; }
.sc-app { position: absolute; inset: 0; display: grid; grid-template-columns: 20.667cqw minmax(0, 1fr); }
.sc b { font-weight: 600; }
.sc small { font-size: inherit; }
.sc p { margin: 0; }
.sc ol { list-style: none; margin: 0; padding: 0; }
.sc-ic { flex: none; width: 1.333cqw; height: 1.333cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .sc-flip { transform: scaleX(-1); }
.sc-mono { font-family: var(--ci-font-mono); }
.sc-muted { color: var(--ci-text-muted); }
[dir="rtl"] .sc :is(code, .sc-mono, .sc-ltr) { direction: ltr; unicode-bidi: isolate; }
/* Figures with their unit stay left to right ("46 %", "4.21 GHz") and keep the right-to-left alignment of their block. */
[dir="rtl"] .sc .sc-ltr { text-align: right; }
/* Counters keep the width of their widest value (an invisible copy in the same cell), so nothing beside them moves. */
.sc-count { display: inline-grid; justify-items: end; white-space: nowrap; }
.sc-count > span { grid-area: 1 / 1; }
.sc-count > .sc-count-w { visibility: hidden; }
.sc-mark { display: block; width: 100%; height: 100%; }
.sc-mark-f { stroke: var(--ci-brand-frame); stroke-width: 6; stroke-linecap: round; }
.sc-mark-l { stroke: var(--ci-brand-lines); stroke-width: 4; stroke-linecap: round; }
.sc-mark-d, .sc-mark-s { fill: var(--ci-brand-dot); }
.sc-mini-mark { width: 1.333cqw; height: 1.333cqw; flex: none; }
.sc-mini-mark .sc-mark-f { stroke-width: 8; }
.sc-mini-mark .sc-mark-l { stroke-width: 7; }

/* ---------- Sidebar (SideNav, ProjectSwitcher) ---------- */
.sc-side { background: var(--ci-sidebar); border-inline-end: 1px solid var(--ci-border); overflow: hidden; }
.sc-side-inner { display: flex; flex-direction: column; gap: 1.5cqw; padding: 1.667cqw 1.167cqw; }
.sc-brand { display: flex; align-items: center; gap: 0.333cqw; padding: 0.167cqw 0.417cqw; }
.sc-brand .sc-mark { width: 3.333cqw; height: 3.333cqw; flex: none; margin-inline-start: -6px; }
.sc-brand-text { display: flex; flex-direction: column; gap: 0.167cqw; line-height: 1.1; }
.sc-brand-text b { font-family: var(--ci-font-display); font-size: 1.583cqw; font-weight: 600; letter-spacing: -.035em; color: var(--ci-brand-word); }
.sc-brand-text em { font-style: normal; color: var(--ci-accent-text); }
.sc-brand-text small { font-size: 0.917cqw; color: var(--ci-text-muted); }
.sc-switch { display: flex; align-items: center; gap: 0.833cqw; min-height: 4.333cqw; padding: 0.667cqw 0.833cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-md); background: var(--ci-surface); }
.sc-switch-mark { display: grid; place-items: center; flex: none; width: 2.167cqw; height: 2.167cqw; border-radius: 0.583cqw; background: var(--ci-accent-soft); color: var(--ci-accent-text); font: 500 0.917cqw var(--ci-font-mono); }
.sc-switch-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.sc-switch-text b { font-size: 1.125cqw; font-weight: 500; color: var(--ci-text-strong); }
.sc-switch-text small { font-size: 0.958cqw; color: var(--ci-text-muted); }
.sc-switch .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-muted); }
.sc-nav-section { display: flex; flex-direction: column; gap: 0.167cqw; }
.sc-nav-section + .sc-nav-section { border-top: 1px solid var(--ci-border); padding-top: 0.5cqw; margin-top: -8px; }
.sc-nav-title { padding: 0.833cqw 0.833cqw 0.5cqw; font-size: 0.917cqw; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ci-accent-text); }
[dir="rtl"] .sc-nav-title { font-size: 1cqw; }
.sc-nav { display: flex; align-items: center; gap: 0.833cqw; min-height: 3cqw; padding: 0.583cqw 0.833cqw; border-radius: var(--ci-radius-sm); color: var(--ci-text-2); font-size: 1.125cqw; line-height: 1.3; }
.sc-nav .sc-ic { color: var(--ci-text-dim); }
.sc-nav-label { flex: 1; min-width: 0; }
.sc-nav.is-active { background: var(--ci-selected); box-shadow: inset 0 0 0 1px var(--ci-border-focus); color: var(--ci-text-strong); font-weight: 500; }
.sc-nav.is-active .sc-ic { color: var(--ci-accent-text); }
.sc-nav-badge { padding: 1px 0.583cqw; border: 1px solid var(--ci-info-border); border-radius: 83.25cqw; background: var(--ci-info-soft); color: var(--ci-info-text); font-size: 0.917cqw; white-space: nowrap; }

/* ---------- Top bar (TopBar) ---------- */
.sc-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 5.667cqw minmax(0, 1fr); min-width: 0; min-height: 0; }
.sc-top { display: flex; align-items: center; gap: 1.167cqw; padding: 1cqw 2.667cqw; border-bottom: 1px solid var(--ci-border); background: var(--ci-bg); }
.sc-top > .sc-icon-btn:first-child { margin-inline-start: -10px; }
.sc-icon-btn { display: inline-grid; place-items: center; flex: none; width: 3.333cqw; height: 3.333cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-2); }
.sc-icon-btn.is-ghost { border-color: transparent; background: transparent; }
.sc-icon-btn.is-sm { width: 2.667cqw; height: 2.667cqw; border-radius: var(--ci-radius-sm); }
.sc-icon-btn.is-xs { width: 2.167cqw; height: 2.167cqw; }
.sc-icon-btn > .sc-ic { grid-area: 1 / 1; }
.sc-when-dark, [data-theme="dark"] .sc-when-light { display: none; }
[data-theme="dark"] .sc-when-dark { display: block; }
.sc-crumbs { display: flex; gap: 0.667cqw; flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--ci-text-2); font-size: 1.208cqw; white-space: nowrap; }
.sc-crumbs > * { overflow: hidden; text-overflow: ellipsis; }
.sc-crumbs > :first-child { flex: 0 1 auto; min-width: 0; }
.sc-crumbs b { color: var(--ci-text-strong); font-weight: 500; }
.sc-crumb-sep { color: var(--ci-text-dim); }
[dir="rtl"] .sc-crumb-sep { transform: scaleX(-1); }
.sc-gsearch { display: flex; align-items: center; gap: 0.833cqw; flex: 0 1 25.833cqw; min-width: 0; height: 3.333cqw; padding: 0 0.667cqw 0 1cqw; padding-inline: 1cqw 0.667cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-muted); font-size: 1.083cqw; }
.sc-gsearch > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-gsearch kbd { padding: 1px 0.5cqw; border: 1px solid var(--ci-border-strong); border-radius: 0.5cqw; background: var(--ci-surface-2); font: 0.917cqw var(--ci-font-mono); color: var(--ci-text-2); }
.sc-top-tools { display: flex; flex: none; align-items: center; gap: 0.667cqw; margin-inline-start: auto; }
.sc-lang { display: inline-flex; align-items: center; gap: 0.667cqw; height: 3.333cqw; padding: 0 0.833cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-2); font-size: 1.083cqw; font-weight: 600; }
.sc-lang img { width: 1.667cqw; height: 1.25cqw; border-radius: 0.167cqw; }
.sc-lang .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-avatar { display: grid; place-items: center; width: 3.333cqw; height: 3.333cqw; border-radius: 50%; background: var(--ci-surface-3); color: var(--ci-text-strong); font-size: 1.042cqw; font-weight: 600; }
.sc-page { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2cqw; padding: 2.333cqw 2.667cqw; }
.sc-page.is-fullbleed { padding: 1cqw; gap: 0; }

/* ---------- Page parts (PageHeader, Section, Button, Badge, ProgressBar) ---------- */
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.333cqw; }
.sc-head-text { display: flex; flex-direction: column; gap: 0.5cqw; flex: 1 1 30cqw; min-width: 0; }
.sc-h1 { font-family: var(--ci-font-display); font-size: 2.5cqw; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ci-text-strong); }
.sc-desc { color: var(--ci-text-2); font-size: 1.167cqw; max-width: 71.667cqw; }
.sc-section { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface); }
.sc-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.833cqw 1.333cqw; padding: 1.5cqw 1.667cqw 0; }
.sc-section-titles { display: flex; flex-direction: column; gap: 0.333cqw; min-width: 0; flex: 1 1 20cqw; }
.sc-section-title { font-size: 1.25cqw; font-weight: 600; color: var(--ci-text-strong); }
.sc-section-desc { font-size: 1.042cqw; color: var(--ci-text-muted); }
.sc-section-body { display: flex; flex-direction: column; gap: 1.167cqw; min-width: 0; padding: 1.333cqw 1.667cqw 1.667cqw; }
.sc-help { font-size: 1.042cqw; color: var(--ci-text-muted); }
.sc-label { font-size: 1.042cqw; color: var(--ci-text-muted); }
.sc-label.is-strong { color: var(--ci-text-2); }
.sc-caps { font-size: 0.917cqw; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ci-text-muted); }
.sc-subtitle { font-size: 1.167cqw; font-weight: 600; color: var(--ci-text-strong); }
.sc-link { color: var(--ci-accent-text); }
.sc-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.667cqw; min-height: 3.333cqw; padding: 0 1.167cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-strong); font-size: 1.125cqw; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.sc-btn.is-sm { min-height: 2.667cqw; padding: 0 0.833cqw; gap: 0.5cqw; border-radius: var(--ci-radius-sm); font-size: 1.042cqw; }
.sc-btn.is-sm .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-btn.is-lg { min-height: 4.667cqw; padding: 0 2.167cqw; font-size: 1.25cqw; }
.sc-btn.is-dashed { border-style: dashed; color: var(--ci-text-2); }
.sc-btn.is-danger { border-color: var(--ci-error-border); background: var(--ci-error-soft); color: var(--ci-error-text); }
.sc-btn-primary { border-color: var(--ci-accent); background: var(--ci-accent); color: var(--ci-on-accent); font-weight: 600; }
.sc-btn-block { display: flex; width: 100%; font-weight: 600; }
.sc-ghost { display: inline-flex; align-items: center; gap: 0.5cqw; min-height: 2.667cqw; padding: 0 0.833cqw; border-radius: var(--ci-radius-sm); color: var(--ci-text-2); font-size: 1.042cqw; white-space: nowrap; }
.sc-ghost .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-pill { display: inline-flex; align-items: center; height: 1.667cqw; padding: 0 0.667cqw; border: 1px solid var(--ci-accent-soft-border); border-radius: 83.25cqw; background: var(--ci-accent-soft); color: var(--ci-accent-text); font-size: 0.958cqw; font-weight: 500; white-space: nowrap; }
.sc-badge { display: inline-flex; align-items: center; gap: 0.333cqw; height: 1.833cqw; padding: 0 0.667cqw; border: 1px solid var(--ci-border-strong); border-radius: var(--ci-radius-sm); color: var(--ci-text-2); font-size: 1cqw; white-space: nowrap; }
.sc-segment { display: inline-flex; gap: 0.167cqw; padding: 0.333cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface-2); white-space: nowrap; }
.sc-segment > span { display: inline-flex; align-items: center; gap: 0.667cqw; min-height: 2.667cqw; padding: 0 1cqw; border-radius: var(--ci-radius-sm); color: var(--ci-text-2); font-size: 1.125cqw; }
.sc-segment > .is-on { background: var(--ci-surface); color: var(--ci-text-strong); font-weight: 600; box-shadow: 0 1px 0.167cqw color-mix(in srgb, var(--ci-text) 12%, transparent), inset 0 0 0 1px var(--ci-border); }
.sc-segment > .is-disabled { color: var(--ci-text-dim); opacity: .7; }
.sc-segment i { width: 0.5cqw; height: 0.5cqw; border-radius: 50%; background: var(--ci-accent); }
.sc-pbar { position: relative; display: block; height: 0.5cqw; border-radius: 8.25cqw; background: var(--ci-track); overflow: hidden; }
.sc-pbar.is-thin { height: 0.333cqw; }
.sc-pbar > i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--v, 1) * 100%); border-radius: inherit; }
.sc-pbar > .is-run { background: var(--ci-info); }
.sc-pbar > .is-done, .sc-pbar > .is-ok { background: var(--ci-accent); }
.sc-pbar.is-info > .is-run { background: var(--ci-accent); }
.sc-typing { width: 1.5cqw; height: 1.167cqw; flex: none; overflow: visible; color: var(--ci-text-2); }
.sc-typing path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.sc-typing circle { fill: var(--ci-accent-2); }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.333cqw 1.667cqw; color: var(--ci-text-2); font-size: 1.042cqw; }
.sc-legend > span { display: inline-flex; align-items: center; gap: 0.667cqw; white-space: nowrap; }
.sc-legend i { width: 0.833cqw; height: 0.833cqw; border-radius: 0.167cqw; background: var(--ci-track); }
.sc-legend b { color: var(--ci-text-strong); }
.sc-legend .is-line { width: 1.833cqw; height: 0.167cqw; border-radius: 1px; background: var(--ci-chart-1); }
.sc-legend .is-dash { width: 1.833cqw; height: 0.167cqw; border-radius: 0; background: repeating-linear-gradient(90deg, var(--ci-chart-2) 0 0.5cqw, transparent 0.5cqw 0.75cqw); }
.sc-legend .is-warn { width: 1.833cqw; height: 0.167cqw; border-radius: 0; background: repeating-linear-gradient(90deg, var(--ci-warning) 0 0.333cqw, transparent 0.333cqw 0.583cqw); }

/* ---------- Charts (the system monitor's TimeSeriesChart) ---------- */
.sc-chart { display: grid; gap: 0.667cqw; min-width: 0; }
.sc-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 12.5cqw auto; column-gap: 0.833cqw; row-gap: 0.5cqw; }
.sc-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--ci-text-muted); font-size: 0.958cqw; text-align: end; line-height: 1; }
.sc-plot-area { position: relative; display: block; }
.sc-plot-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-times { display: flex; justify-content: space-between; color: var(--ci-text-muted); font-size: 0.958cqw; }
.sc-grid { fill: none; stroke: var(--ci-chart-grid, var(--ci-border)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sc-threshold { fill: none; stroke: var(--ci-warning); stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.sc-area { fill: color-mix(in srgb, var(--ci-chart-1) 16%, transparent); }
.sc-area.is-blue { fill: color-mix(in srgb, var(--ci-chart-2) 18%, transparent); }
.sc-line { fill: none; stroke: var(--ci-chart-1); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sc-line.is-dash { stroke: var(--ci-chart-2); stroke-dasharray: 5 3; }

/* ---------- Chat (ChatPage.razor.css, ChatAnswer.razor.css) ---------- */
.sc-chat { display: grid; grid-template-columns: 22cqw minmax(0, 1fr); flex: 1; min-height: 0; border: 1px solid var(--ci-border); border-radius: 1.167cqw; overflow: hidden; background: var(--ci-surface); box-shadow: 0 1px 0.167cqw color-mix(in srgb, var(--ci-text) 4%, transparent), 0 1cqw 2.667cqw -18px color-mix(in srgb, var(--ci-text) 18%, transparent); }
.sc-chat-side { display: flex; flex-direction: column; gap: 0.833cqw; padding: 1cqw 0.833cqw; background: var(--ci-sidebar); border-inline-end: 1px solid var(--ci-border); min-width: 0; }
.sc-chat-search { display: flex; align-items: center; gap: 0.5cqw; height: 2.833cqw; padding: 0 0.833cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-muted); font-size: 1.083cqw; }
.sc-chat-search .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-chat-day { margin: 0.833cqw 0.667cqw 0.333cqw; font-size: 0.917cqw; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ci-text-muted); }
.sc-conv { display: flex; align-items: center; gap: 0.667cqw; margin-top: -9px; padding: 0.583cqw 0.667cqw; border-radius: var(--ci-radius-md); color: var(--ci-text-2); font-size: 1.083cqw; min-width: 0; }
.sc-chat-day + .sc-conv { margin-top: 0; }
.sc-conv span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-conv .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-muted); }
.sc-conv.is-active { background: var(--ci-accent-soft); color: var(--ci-accent-text); font-weight: 600; }
.sc-conv.is-active .sc-ic { color: var(--ci-accent-text); }
.sc-chat-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5cqw; margin-top: auto; padding-top: 0.833cqw; }
.sc-chat-foot small { margin: 0 0.5cqw; font-size: 0.958cqw; color: var(--ci-text-muted); line-height: 1.5; }
.sc-chat-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.sc-chat-head { display: flex; align-items: center; gap: 0.5cqw; min-height: 4.833cqw; padding: 0.667cqw 1cqw; border-bottom: 1px solid var(--ci-border); background: var(--ci-surface-2); }
.sc-chat-heading { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; padding-inline-start: 0.167cqw; }
.sc-chat-title-row { display: flex; align-items: center; gap: 0.667cqw; min-width: 0; }
.sc-chat-title { font-size: 1.208cqw; color: var(--ci-text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-chat-rename { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-2); }
.sc-chat-heading small { display: flex; align-items: center; gap: 0.417cqw; font-size: 1cqw; color: var(--ci-text-muted); }
.sc-chat-heading small span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-chat-heading small .sc-ic, .sc-answering .sc-ic { width: 1.083cqw; height: 1.083cqw; color: var(--ci-accent-text); }
.sc-chat-tools { display: flex; align-items: center; gap: 0.333cqw; }
.sc-chat-memory { border-color: var(--ci-accent-soft-border); background: var(--ci-accent-soft); color: var(--ci-accent-2-text); }
.sc-chat-log { display: flex; flex-direction: column; gap: 2.167cqw; padding: 2.167cqw 2cqw 1.667cqw; overflow: hidden; }
.sc-msg { display: flex; gap: 1cqw; min-width: 0; }
.sc-msg-main { display: flex; flex-direction: column; gap: 0.667cqw; flex: 1; min-width: 0; }
.sc-msg-head { display: flex; align-items: center; gap: 0.667cqw; min-height: 2.5cqw; }
.sc-who { font-size: 1.042cqw; color: var(--ci-text-strong); }
.sc-model { max-width: 28ch; padding: 0 0.667cqw; border: 1px solid var(--ci-border-subtle); border-radius: var(--ci-radius-sm); background: var(--ci-surface-2); color: var(--ci-text-muted); font-size: 0.958cqw; line-height: 1.667cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-avatar-round { display: grid; place-items: center; flex: none; width: 2.5cqw; height: 2.5cqw; border-radius: 50%; background: var(--ci-surface-3); color: var(--ci-text-2); }
.sc-avatar-tile { display: block; flex: none; width: 2.5cqw; height: 2.5cqw; padding: 1px; border: 1px solid var(--ci-border-subtle); border-radius: 0.75cqw; background: var(--ci-surface-2); overflow: hidden; }
.sc-bubble { align-self: flex-start; padding: 0.75cqw 1.167cqw; border: 1px solid var(--ci-border-subtle); border-radius: 1.167cqw; border-start-start-radius: 0.333cqw; background: var(--ci-surface-2); color: var(--ci-text-strong); font-size: 1.208cqw; line-height: 1.6; }
.sc-answer > * { align-self: start; }
.sc-fly { display: grid; gap: 0.667cqw; }
.sc-fly-status { display: flex; align-items: center; gap: 0.667cqw; color: var(--ci-text-2); font-size: 1.042cqw; }
.sc-fly-list { display: flex; flex-wrap: wrap; gap: 0.5cqw; }
.sc-fly-card { display: inline-flex; align-items: center; gap: 0.583cqw; padding: 0.417cqw 0.833cqw 0.417cqw 0.5cqw; padding-inline: 0.5cqw 0.833cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-inset); font-size: 1.042cqw; }
.sc-fly-card .sc-mono { color: var(--ci-text-strong); font-weight: 600; }
.sc-fly-card .sc-muted { font-size: 0.958cqw; }
.sc-fly-ic { display: grid; place-items: center; width: 1.667cqw; height: 1.667cqw; border-radius: 0.417cqw; background: var(--ci-accent-soft); color: var(--ci-accent-text); }
.sc-fly-ic .sc-ic { width: 1cqw; height: 1cqw; }
.sc-md { display: block; font-size: 1.208cqw; line-height: 1.65; color: var(--ci-text); }
.sc-md code { padding: 1px 0.417cqw; border: 1px solid var(--ci-border-subtle); border-radius: var(--ci-radius-sm); background: var(--ci-surface-2); font: .88em var(--ci-font-mono); }
.sc-cite { display: inline-block; margin: 0 1px; padding: 0 0.417cqw; border: 1px solid var(--ci-accent-soft-border); border-radius: var(--ci-radius-sm); background: var(--ci-accent-soft); color: var(--ci-accent-text); font: 600 0.875cqw/1.333cqw var(--ci-font-mono); vertical-align: 0.167cqw; }
.sc-origin { display: inline-flex; align-items: center; gap: 0.333cqw; margin-inline-start: 0.333cqw; padding: 0 0.5cqw; border: 1px solid var(--ci-accent-soft-border); border-radius: var(--ci-radius-sm); color: var(--ci-accent-text); font-size: 0.875cqw; font-weight: 500; line-height: 1.417cqw; vertical-align: 1px; }
.sc-origin .sc-ic { width: 1cqw; height: 1cqw; }
.sc-code { display: block; border: 1px solid var(--ci-border); border-radius: 0.833cqw; background: var(--ci-code-bg); overflow: hidden; }
.sc-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.333cqw 0.5cqw 0.333cqw 1cqw; padding-inline: 1cqw 1.333cqw; background: var(--ci-surface-2); border-bottom: 1px solid var(--ci-border); color: var(--ci-text-muted); font-size: 0.958cqw; line-height: 2.167cqw; }
.sc-code-bar b { font-family: var(--ci-font-mono); }
.sc-pre { display: grid; padding: 1cqw 1.167cqw; color: var(--ci-code-text); font: 1.042cqw/1.6 var(--ci-font-mono); white-space: pre; text-align: left; }
.tk-k { color: var(--ci-code-keyword); }
.tk-s { color: var(--ci-code-string); }
.tk-t { color: var(--ci-code-type); }
.tk-f { color: var(--ci-code-attr); }
.tk-v { color: var(--ci-code-text); }
.sc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5cqw; }
.sc-source { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 0.5cqw; padding: 0.5cqw 0.833cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); }
.sc-source .sc-ic { width: 1.083cqw; height: 1.083cqw; color: var(--ci-text-muted); }
.sc-source-id { padding: 0 0.417cqw; border-radius: var(--ci-radius-sm); background: var(--ci-accent-soft); color: var(--ci-accent-text); font: 600 0.875cqw/1.333cqw var(--ci-font-mono); }
.sc-source b { font-size: 1.042cqw; font-weight: 500; color: var(--ci-text-strong); }
.sc-source small { grid-column: 1 / -1; font-size: 0.958cqw; color: var(--ci-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-actions { display: flex; align-items: center; gap: 0.167cqw 0.333cqw; margin-inline-start: -6px; }
.sc-metrics { margin-inline-start: 0.5cqw; color: var(--ci-text-muted); font-size: 0.917cqw; white-space: nowrap; }
.sc-composer { display: grid; gap: 0.667cqw; padding: 0.833cqw 2cqw 1cqw; border-top: 1px solid var(--ci-border); background: var(--ci-surface); }
.sc-composer-row { display: flex; align-items: center; gap: 0.5cqw; min-width: 0; }
.sc-mode { display: inline-flex; align-items: center; gap: 0.5cqw; height: 2.5cqw; padding: 0 0.917cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-2); font-size: 1.042cqw; font-weight: 500; white-space: nowrap; }
.sc-mode .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-mode.is-on { border-color: var(--ci-accent-soft-border); background: var(--ci-accent-soft); color: var(--ci-accent-text); font-weight: 600; }
.sc-mode.is-disabled { opacity: .5; }
.sc-mode.is-dashed { border-style: dashed; }
.sc-mode.is-plain { border-color: transparent; background: transparent; color: var(--ci-text-strong); }
.sc-think { margin-inline-start: auto; }
.sc-model-select { display: inline-flex; align-items: center; gap: 0.667cqw; height: 2.667cqw; max-width: 26.667cqw; min-width: 0; padding: 0 0.833cqw; border: 1px solid var(--ci-control-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-strong); font-size: 1.083cqw; font-weight: 600; }
.sc-model-select > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-model-select i { flex: none; width: 0.667cqw; height: 0.667cqw; border-radius: 50%; background: var(--ci-success); }
.sc-model-slots { flex: none; font-size: 0.958cqw; color: var(--ci-success-text); }
.sc-model-select .sc-ic { width: 1.083cqw; height: 1.083cqw; }
.sc-input { display: flex; align-items: center; gap: 0.667cqw; min-height: 4.667cqw; padding: 0.667cqw 0.667cqw 0.667cqw 1.167cqw; padding-inline: 1.167cqw 0.667cqw; border: 1px solid var(--ci-border-strong); border-radius: 1.167cqw; background: var(--ci-surface-2); }
.sc-input-text { flex: 1; min-width: 0; font-size: 1.208cqw; }
.sc-ph { color: var(--ci-text-muted); }
.sc-input-text:has(.sc-typed.is-on:not(.is-off)) .sc-ph { visibility: hidden; }
.sc-typed { display: block; color: var(--ci-text); white-space: nowrap; overflow: hidden; }
.sc-typed::after { content: ""; display: inline-block; width: 0.125cqw; height: 1.1em; margin-inline-start: 1px; vertical-align: -.2em; background: var(--ci-accent); animation: sc-blink 1s steps(2) infinite; }
.sc-send { position: relative; display: inline-flex; align-items: center; gap: 0.667cqw; height: 3.333cqw; padding: 0 1.333cqw; border-radius: 0.833cqw; background: color-mix(in srgb, var(--ci-accent) 55%, var(--ci-surface)); color: var(--ci-on-accent); font-size: 1.125cqw; font-weight: 600; }
.sc-press { position: absolute; inset: -3px; border-radius: 1cqw; box-shadow: 0 0 0 0.25cqw var(--ci-accent-soft-border); }
.sc-composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.333cqw 1cqw; padding: 0 0.333cqw; font-size: 0.958cqw; }
.sc-answering { display: inline-flex; align-items: center; gap: 0.417cqw; min-width: 0; font-weight: 500; color: var(--ci-text-2); }
.sc-model-chip { display: inline-flex; align-items: center; gap: 0.5cqw; min-width: 0; color: var(--ci-text-2); font-weight: 500; }
.sc-model-chip > span { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-model-chip .sc-mark { width: 1.167cqw; height: 1.167cqw; }
.sc-loaded { display: inline-flex; align-items: center; gap: 0.417cqw; margin-inline-start: auto; color: var(--ci-success-text); font-size: 1.083cqw; font-weight: 500; }
.sc-loaded .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-composer-hint { flex-basis: 100%; text-align: end; color: var(--ci-text-muted); }

/* ---------- Search (SearchPage) ---------- */
.sc-search-card { display: flex; flex-direction: column; gap: 1.333cqw; padding: 2.5cqw; border: 1px solid var(--ci-border); border-radius: 2cqw; background: var(--ci-surface); }
.sc-search-row { display: flex; gap: 0.833cqw; }
.sc-search-input { display: flex; align-items: center; gap: 1cqw; flex: 1; min-width: 0; height: 4.667cqw; padding: 0 1cqw 0 1.333cqw; padding-inline: 1.333cqw 1cqw; border: 1px solid var(--ci-control-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-strong); font-size: 1.333cqw; }
.sc-search-input > .sc-ic { width: 1.5cqw; height: 1.5cqw; color: var(--ci-accent-text); }
.sc-search-input > .sc-stack { flex: 1; }
.sc-search-input kbd { padding: 0 0.5cqw; border: 1px solid var(--ci-border-strong); border-radius: 0.5cqw; font: 1cqw var(--ci-font-mono); color: var(--ci-text-2); }
.sc-search-query { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-search-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.833cqw 1.167cqw; }
.sc-search-line .sc-help { font-size: 1.083cqw; color: var(--ci-text-2); }
.sc-results { display: grid; grid-template-columns: minmax(0, 1fr) 35cqw; gap: 1.667cqw; align-items: start; }
[dir="rtl"] .sc-results { grid-template-columns: minmax(0, 1fr) 35cqw; }
.sc-results-main { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.sc-tabs { display: flex; align-items: center; gap: 0.333cqw; }
.sc-tabs > span { display: inline-flex; align-items: center; gap: 0.667cqw; height: 3.167cqw; padding: 0 1cqw; border: 1px solid transparent; border-radius: var(--ci-radius-md); color: var(--ci-text-2); font-size: 1.167cqw; white-space: nowrap; }
.sc-tabs .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-tabs .is-on { border-color: var(--ci-border); background: var(--ci-surface); color: var(--ci-text-strong); font-weight: 600; }
.sc-tabs b { font-size: 0.958cqw; font-weight: 500; color: var(--ci-text-muted); }
.sc-hits, .sc-skeleton { display: flex; flex-direction: column; gap: 1cqw; align-self: start; min-width: 0; }
.sc-results-meta { color: var(--ci-text-muted); font-size: 1.042cqw; }
.sc-results-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5cqw 0.833cqw; }
.sc-results-title b { font-size: 1.25cqw; color: var(--ci-text-strong); }
.sc-skeleton > span { display: grid; gap: 0.667cqw; padding: 1.333cqw 1.5cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface); }
.sc-skeleton i { display: block; height: 0.833cqw; border-radius: 0.333cqw; background: linear-gradient(90deg, var(--ci-track), var(--ci-surface-2), var(--ci-track)); background-size: 200% 100%; }
.sc.is-armed .sc-skeleton i { animation: sc-shimmer 1.2s linear infinite; }
.sc-skeleton i:nth-child(1) { width: 40%; }
.sc-skeleton i:nth-child(3) { width: 75%; }
@keyframes sc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sc-hit { display: flex; flex-direction: column; gap: 0.5cqw; padding: 1.5cqw 1.5cqw 1.333cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface); min-width: 0; }
.sc-hit-head { display: flex; align-items: center; gap: 0.667cqw; min-width: 0; }
.sc-hit-ic { display: grid; place-items: center; flex: none; width: 2.667cqw; height: 2.667cqw; border-radius: var(--ci-radius-sm); background: var(--ci-surface-2); color: var(--ci-text-2); }
.sc-hit-head > b { font-size: 1.292cqw; color: var(--ci-text-strong); }
.sc-hit-head .sc-badge { height: 1.667cqw; font-size: 0.958cqw; }
.sc-hit-score { margin-inline-start: auto; color: var(--ci-text-2); font-size: 1.042cqw; }
.sc-hit-path { padding-inline-start: 3.333cqw; color: var(--ci-text-muted); font-size: 1.042cqw; }
.sc-hit-path b { font-weight: 500; color: var(--ci-accent-text); }
.sc-hit-excerpt { display: grid; padding: 1cqw 1.333cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-code-bg); color: var(--ci-code-comment); font-size: 1.042cqw; line-height: 1.6; text-align: left; }
.sc-hit-excerpt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-hit-excerpt span:last-child { color: var(--ci-code-text); }
.sc-related { display: flex; flex-direction: column; gap: 0.833cqw; padding: 1.667cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface); }
.sc-related-title { font-size: 1.25cqw; color: var(--ci-text-strong); }
.sc-related > .sc-help { margin-top: -6px; }
.sc-entity { display: grid; grid-template-columns: 5.833cqw minmax(0, 1fr) auto; gap: 1cqw; padding: 1cqw 1.167cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface-2); }
.sc-entity-kind { font-size: 0.917cqw; font-weight: 600; letter-spacing: .06em; color: var(--ci-accent-text); }
.sc-entity-body { display: flex; flex-direction: column; gap: 0.25cqw; min-width: 0; }
.sc-entity-body b { font-size: 1.125cqw; color: var(--ci-text-strong); }
.sc-entity-body small { font-size: 1cqw; color: var(--ci-text-2); overflow-wrap: anywhere; }
.sc-entity .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-2); }

/* ---------- Indexing (IndexingPage, IndexProgressView, LiveIndexingOverall) ---------- */
.sc-overall { display: flex; flex-direction: column; gap: 0.5cqw; padding: 1cqw 1.333cqw; border: 1px solid var(--ci-border-subtle); border-radius: var(--ci-radius-lg); background: var(--ci-surface-2); font-size: 1.042cqw; color: var(--ci-text-2); }
.sc-overall-row { display: flex; align-items: center; gap: 0.667cqw 1.5cqw; min-height: 1.833cqw; white-space: nowrap; }
.sc-overall-row > b { color: var(--ci-text-strong); font-size: 1.083cqw; }
.sc-overall-row > .sc-ic { width: 1.167cqw; height: 1.167cqw; margin-inline-start: -10px; }
.sc-overall-bar { flex: 0 1 30cqw; }
.sc-overall-value { color: var(--ci-text-muted); }
.sc-overall-value > .sc-stack { display: inline-grid; }
.sc-pc { display: inline-flex; align-items: center; gap: 0.5cqw; min-width: 0; }
.sc-pc .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-muted); }
.sc-pc-end { margin-inline-start: auto; }
.sc-run { display: flex; flex-direction: column; gap: 0.667cqw; padding: 1cqw 1.333cqw 0.833cqw; border: 1px solid var(--ci-border-subtle); border-inline-start: 0.333cqw solid var(--ci-chart-1); border-radius: var(--ci-radius-lg); background: var(--ci-surface); font-size: 1.125cqw; }
.sc-run.is-on, .sc:not(.is-armed) .sc-run { border-inline-start-color: var(--ci-border-strong); }
.sc-run-line { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr) 6.5ch max-content; align-items: center; column-gap: 1cqw; height: 2.5cqw; }
.sc-run-project { color: var(--ci-text-strong); }
.sc-run-phase { display: flex; align-items: center; gap: 0.667cqw; min-width: 0; }
.sc-run-logo { width: 1.667cqw; height: 1.667cqw; flex: none; }
.sc-run-logo .sc-mark-f { stroke-width: 8; }
.sc-run-logo .sc-mark-l { stroke-width: 7; }
.sc-phase-chip, .sc-status-chip { display: inline-flex; align-items: center; gap: 0.5cqw; justify-self: start; height: 2cqw; padding: 0 0.833cqw; border-radius: 8.25cqw; font-size: 1.042cqw; font-weight: 600; white-space: nowrap; }
.sc-phase-chip { border: 1px solid color-mix(in srgb, var(--ci-chart-1) 55%, transparent); background: var(--ci-info-soft); color: var(--ci-info-text); }
.sc-status-chip { color: var(--ci-success-text); padding-inline-start: 0; }
.sc-phase-chip .sc-ic, .sc-status-chip .sc-ic { width: 1.167cqw; height: 1.167cqw; stroke-width: 2; }
.sc-run-pct { color: var(--ci-text-muted); text-align: end; white-space: nowrap; }
.sc-run-actions > span { display: flex; justify-content: flex-end; gap: 0.667cqw; }
.sc-run-counts { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 20rem) minmax(0, 9rem) minmax(0, 1fr); align-items: center; column-gap: 1.5cqw; height: 1.833cqw; font-size: 1.042cqw; color: var(--ci-text-2); white-space: nowrap; }
.sc-run-resources { display: flex; align-items: center; gap: 0.5cqw; height: 1.833cqw; font-size: 1.042cqw; color: var(--ci-text-2); white-space: nowrap; }
.sc-run-resources .sc-ic { width: 1.167cqw; height: 1.167cqw; }
.sc-stages { display: flex; flex-direction: column; gap: 0.667cqw; }
.sc-stage { display: flex; flex-direction: column; gap: 0.333cqw; min-width: 0; }
.sc-stage.is-total { padding-bottom: 0.667cqw; border-bottom: 1px solid var(--ci-border-subtle); }
.sc-stage-head { display: grid; grid-template-columns: 1.333cqw minmax(0, 13rem) minmax(0, 8rem) minmax(0, 1fr) 6.5ch 9ch; grid-template-rows: 1.667cqw 1.333cqw; grid-template-areas: "mark name state count pct rate" ". time workers detail detail detail"; row-gap: 1px; column-gap: 0.833cqw; align-items: center; font-size: 1.042cqw; line-height: 1.667cqw; }
.sc-stage-head > * { min-width: 0; height: 1.667cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-stage-mark { grid-area: mark; display: grid; place-items: center; width: 1.333cqw; color: var(--ci-text-muted); }
.sc-stage-mark > * { place-self: center; }
.sc-stage-mark .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-success-text); }
.sc-dot { display: block; width: 0.667cqw; height: 0.667cqw; border: 0.125cqw solid currentColor; border-radius: 50%; opacity: .7; }
.sc-dot.is-fill { border-color: transparent; background: var(--ci-info-text); opacity: 1; }
.sc-stage-name { grid-area: name; display: flex; align-items: center; gap: 0.5cqw; font-weight: 600; color: var(--ci-text-strong); }
.sc-stage-name .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-success-text); }
.sc-stage-name > span { overflow: hidden; text-overflow: ellipsis; }
.sc-stage-state { grid-area: state; font-size: 0.958cqw; color: var(--ci-text-muted); }
.sc-stage-state .is-running { color: var(--ci-info-text); }
.sc-stage-state .is-done { color: var(--ci-success-text); }
.sc-stage-count { grid-area: count; color: var(--ci-text-2); }
.sc-stage-pct { grid-area: pct; text-align: end; color: var(--ci-text-muted); }
.sc-stage-rate { grid-area: rate; text-align: end; color: var(--ci-text-muted); }
[dir="rtl"] .sc-stage-pct, [dir="rtl"] .sc-stage-rate { text-align: left; }
.sc-stage-time { grid-area: time; height: 1.333cqw; line-height: 1.333cqw; font-size: 0.958cqw; color: var(--ci-text-muted); }
.sc-stage-workers { grid-area: workers; height: 1.333cqw; line-height: 1.333cqw; font-size: 0.958cqw; color: var(--ci-text-muted); }
.sc-stage .sc-pbar { height: 0.333cqw; }
.sc-stage .sc-pbar > .is-done { background: var(--ci-success); }
.sc.is-armed .sc-stage:not(.is-on) .sc-stage-name { color: var(--ci-text-muted); }
.sc.is-armed .sc-stage:not(.is-on) .sc-stage-name .sc-ic { color: var(--ci-text-muted); }
.sc.is-armed .sc-stage.is-on:has(.sc-stage-mark > span[data-at]:not(.is-on)) .sc-stage-name .sc-ic { color: var(--ci-info-text); }
.sc.is-armed .sc-stage:not(.is-on) .sc-pbar { opacity: .6; }

/* ---------- Local AI models (AiModelsPage, ModelRuntimePanel) ---------- */
.sc-section.is-cut { margin-top: -28px; border-top: 0; border-start-start-radius: 0; border-start-end-radius: 0; }
.sc-section.is-cut > .sc-section-body { padding-top: 1.167cqw; }
.sc-ai-actions { display: flex; gap: 2cqw; }
.sc-ghost.is-md { min-height: 3.333cqw; font-size: 1.167cqw; color: var(--ci-text-strong); }
.sc-ghost.is-md .sc-ic { width: 1.333cqw; height: 1.333cqw; color: var(--ci-text-2); }
.sc-ai-subhead { display: flex; align-items: center; justify-content: space-between; gap: 1.333cqw; }
.sc-ai-subhead b { font-size: 1.25cqw; color: var(--ci-text-strong); }
.sc-section-head .sc-help { white-space: nowrap; }
.sc-ai-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 0.667cqw; }
.sc-ai-tile { display: flex; flex-direction: column; gap: 0.5cqw; padding: 1.167cqw 1cqw 1cqw; border: 1px solid var(--ci-border-subtle); border-radius: var(--ci-radius-md); background: var(--ci-surface-2); }
.sc-ai-tile b { font-size: 1.25cqw; color: var(--ci-text-strong); }
.sc-ai-tile small { font-size: 1.083cqw; color: var(--ci-text-2); }
.sc-ai-tile.is-wide .sc-pbar { order: -1; width: 100%; }
.sc-model-card { display: flex; flex-direction: column; gap: 1cqw; padding: 1.333cqw 1.5cqw; border: 1px solid var(--ci-border-subtle); border-inline-start: 0.333cqw dashed var(--ci-info); border-radius: var(--ci-radius-lg); background: var(--ci-surface); }
.sc-model-card.is-on, .sc:not(.is-armed) .sc-model-card { border-inline-start: 0.333cqw solid var(--ci-accent); }
.sc-model-head { display: flex; align-items: flex-start; gap: 1.333cqw; }
.sc-model-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sc-model-name b { font-size: 1.25cqw; color: var(--ci-text-strong); }
.sc-model-name small { font-size: 1cqw; color: var(--ci-text-muted); }
.sc-model-state > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.5cqw; font-size: 1.25cqw; white-space: nowrap; }
.sc-model-state .is-loading { color: var(--ci-info-text); }
.sc-model-state .is-ready { color: var(--ci-success-text); }
.sc-model-state .sc-ic { width: 1.333cqw; height: 1.333cqw; }
.sc-load { display: flex; align-items: center; gap: 1cqw; height: 2cqw; font-size: 1.167cqw; color: var(--ci-text-strong); white-space: nowrap; }
.sc-load > b { min-width: 3.5em; }
.sc-activity { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.167cqw; padding: 1.167cqw 1.167cqw; border: 1px solid var(--ci-border-subtle); border-radius: var(--ci-radius-lg); background: var(--ci-surface-2); font-size: 1.125cqw; color: var(--ci-text-strong); }
.sc-activity-state { display: inline-flex; align-items: center; gap: 0.667cqw; font-size: 1.167cqw; }
.sc-activity > .sc-stack > span { display: inline-flex; align-items: center; gap: 0.5cqw; }
.sc-activity > .sc-stack .sc-ic { width: 1.167cqw; height: 1.167cqw; color: var(--ci-text-muted); }
.sc-activity > .sc-label { margin-top: 0.667cqw; }
.sc-field-block { display: flex; flex-direction: column; gap: 0.5cqw; }
.sc-field-label { font-size: 1.167cqw; color: var(--ci-text-strong); }
.sc-select { display: flex; align-items: center; justify-content: space-between; height: 3.333cqw; padding: 0 1cqw; border: 1px solid var(--ci-control-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); font-size: 1.167cqw; color: var(--ci-text-strong); }
.sc-kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1cqw 1.333cqw; }
.sc-kv-grid > span { display: flex; flex-direction: column; gap: 0.167cqw; min-width: 0; }
.sc-kv-grid > .is-wide { grid-column: span 2; }
.sc-kv-grid b { font-weight: 400; font-size: 1.125cqw; color: var(--ci-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- System monitor: CPU and GPU ---------- */
.sc-cpu-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2cqw; align-items: center; }
.sc-cpu-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1cqw 2cqw; }
.sc-cpu-figures > span, .sc-device-figures > span { display: flex; flex-direction: column; gap: 0.167cqw; min-width: 0; }
.sc-cpu-figures b, .sc-device-figures b { font-size: 1.417cqw; font-weight: 700; color: var(--ci-text-strong); white-space: nowrap; }
.sc-cpu-figures small { font-size: 1cqw; color: var(--ci-text-muted); }
.sc-cpu-hint { max-width: 62ch; }
.sc-share { display: flex; flex-direction: column; gap: 0.833cqw; }
.sc-share-bar { position: relative; display: block; height: 1cqw; border-radius: 0.5cqw; background: var(--ci-track); overflow: hidden; }
.sc-share-bar i { position: absolute; inset-block: 0; inset-inline-start: calc(var(--o) * 100%); width: calc(var(--v) * 100%); }
.sc-share-bar .is-ci, .sc-legend .is-ci { background: var(--ci-chart-1); }
.sc-share-bar .is-other, .sc-legend .is-other { background: repeating-linear-gradient(135deg, var(--ci-chart-2) 0 0.25cqw, color-mix(in srgb, var(--ci-chart-2) 70%, transparent) 0.25cqw 0.5cqw); }
.sc-legend .is-idle { border: 1px solid var(--ci-border-strong); background: var(--ci-surface-2); }
.sc-cores { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.5cqw; }
.sc-core { position: relative; display: grid; justify-items: end; padding: 0.5cqw 0.667cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-sm); background: var(--ci-surface-2); overflow: hidden; }
.sc-core > i { position: absolute; inset-inline: 0; bottom: 0; height: calc(var(--v) * 100%); background: color-mix(in srgb, var(--ci-chart-1) 38%, transparent); }
.sc-core small { position: relative; font-size: 0.917cqw; color: var(--ci-text-muted); }
.sc-core b { position: relative; font-size: 1.125cqw; font-weight: 700; color: var(--ci-text-strong); white-space: nowrap; }
.sc-core .sc-ghz { color: var(--ci-text-2); }
.sc-device { display: flex; flex-direction: column; gap: 1cqw; padding: 1.167cqw 1.333cqw; border: 1px solid var(--ci-border); border-radius: var(--ci-radius-lg); background: var(--ci-surface-2); }
.sc-device-head { display: flex; align-items: center; gap: 0.667cqw; }
.sc-device-head b { flex: 1; font-size: 1.292cqw; color: var(--ci-text-strong); }
.sc-device-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.667cqw; }
.sc-device-side { display: flex; flex-direction: column; gap: 0.833cqw; min-width: 0; }
.sc-device-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.667cqw; }
.sc-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.333cqw 0.833cqw; }
.sc-meter > b { font-size: 1.042cqw; font-weight: 600; color: var(--ci-text-strong); white-space: nowrap; }
.sc-meter > .sc-pbar { grid-column: 1 / -1; height: 0.417cqw; }
.sc-device-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.167cqw 1.333cqw; font-size: 1.042cqw; color: var(--ci-text-2); }
/* ---------- Architecture map (Graph explorer) ---------- */
.sc-gx-tools { display: grid; grid-template-columns: minmax(0, 1fr) 19.167cqw 20.417cqw; align-items: end; gap: 1.333cqw; }
.sc-gx-find { display: flex; align-items: center; gap: 0.667cqw; }
.sc-field-input { display: flex; align-items: center; gap: 0.833cqw; flex: 1; min-width: 0; height: 3.333cqw; padding: 0 1cqw; border: 1px solid var(--ci-control-border); border-radius: var(--ci-radius-md); background: var(--ci-surface); color: var(--ci-text-muted); font-size: 1.167cqw; white-space: nowrap; overflow: hidden; }
.sc-gx-select { display: flex; flex-direction: column; gap: 0.5cqw; min-width: 0; }
.sc-gx-select .sc-select { white-space: nowrap; overflow: hidden; }
.sc-gx-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.667cqw; margin-top: -10px; }
.sc-ghost.is-disabled { opacity: .5; }
.sc-gx-kinds { display: flex; align-items: center; gap: 0.667cqw; margin-top: -10px; }
.sc-chip-toggle { display: inline-flex; align-items: center; gap: 0.5cqw; height: 2.667cqw; padding: 0 1cqw; border: 1px solid var(--ci-accent-soft-border); border-radius: 83.25cqw; background: var(--ci-accent-soft); color: var(--ci-text-strong); font-size: 1.083cqw; }
.sc-chip-toggle .sc-ic { width: 1.083cqw; height: 1.083cqw; }
.sc-gx-main { display: grid; grid-template-columns: minmax(0, 40.833cqw) minmax(0, 1fr); gap: 1.5cqw; align-items: start; margin-top: -10px; }
.sc-gx-canvas { border: 1px solid var(--ci-border); border-radius: var(--ci-radius-md); background: var(--ci-surface-2); overflow: hidden; }
.sc-gx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.333cqw 1.5cqw; padding: 0.667cqw 1cqw 0.5cqw; border-bottom: 1px solid var(--ci-border); background: var(--ci-surface); }
.sc-gx-zoom { display: inline-flex; align-items: center; gap: 1.167cqw; color: var(--ci-text-2); font-size: 0.958cqw; }
.sc-gx-bar small { flex-basis: 100%; text-align: end; font-size: 0.958cqw; color: var(--ci-text-muted); }
.sc-toggle { display: inline-flex; align-items: center; gap: 0.667cqw; font-size: 1.167cqw; color: var(--ci-text-strong); }
.sc-toggle i { position: relative; width: 2.667cqw; height: 1.5cqw; border: 1px solid var(--ci-control-border); border-radius: 8.25cqw; background: var(--ci-surface-2); }
.sc-toggle i::after { content: ""; position: absolute; top: 0.167cqw; inset-inline-start: 0.167cqw; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--ci-text-muted); }
.sc-gx-graph { display: block; width: 100%; height: auto; margin: 12.5cqw 0 3.333cqw; overflow: visible; background-image: radial-gradient(var(--ci-border) 1px, transparent 1px); background-size: 1.333cqw 1.333cqw; font-family: var(--ci-font-ui); }
.sc-gx-group rect { fill: color-mix(in srgb, var(--ci-surface) 60%, transparent); stroke: var(--ci-border-strong); stroke-width: 1; stroke-dasharray: 4 3; }
.sc-gx-group text { fill: var(--ci-text-2); font-size: 0.625cqw; font-weight: 600; text-anchor: middle; }
.sc-gx-folder { fill: var(--ci-accent-soft); stroke: var(--ci-accent-soft-border); stroke-width: 2; }
.sc-gx-class { fill: var(--ci-surface); stroke: var(--ci-chart-2); stroke-width: 1; }
.sc-gx-module { fill: var(--ci-surface); stroke: var(--ci-chart-1); stroke-width: 1.4; }
.sc-gx-label { fill: var(--ci-text-strong); font-size: 0.625cqw; text-anchor: middle; }
.sc-gx-edge { fill: none; stroke: var(--ci-text-2); stroke-width: .7; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ci-ease); }
.sc-gx-edge.is-thick { stroke: var(--ci-text-strong); stroke-width: 1.8; }
.sc-gx-arrowhead { fill: var(--ci-text-strong); }
.sc.is-armed .sc-gx-edge:not(.is-on) { stroke-dashoffset: 1; marker-end: none; }
.sc-gx-evidence { display: flex; flex-direction: column; gap: 0.667cqw; padding: 1.5cqw 1.667cqw; border: 1px solid var(--ci-border); border-top: 0.167cqw solid transparent; border-image: none; border-radius: var(--ci-radius-lg); background: linear-gradient(var(--ci-surface), var(--ci-surface)) padding-box, linear-gradient(90deg, var(--ci-accent), var(--ci-accent-2)) border-box; }
.sc-gx-evidence b { font-size: 1.25cqw; color: var(--ci-text-strong); }
/* ---------- Timeline states (js/scenes.js) ---------- */
.sc [data-at] { transition: opacity .35s var(--ci-ease), transform .45s var(--ci-ease); }
.sc.is-armed [data-at]:not([data-fx="state"], [data-fill], [data-wipe], .is-on) { opacity: 0; }
.sc.is-armed [data-fx="rise"]:not(.is-on) { transform: translateY(0.667cqw); }
.sc:not(.is-armed) [data-until], .sc [data-until].is-off { visibility: hidden !important; }
/* Parts that replace each other share one grid cell, so the cell has its final size from the start. */
.sc-stack { display: grid; min-width: 0; }
.sc-stack > * { grid-area: 1 / 1; min-width: 0; }
.sc .sc-hold { display: none !important; }
.sc-live .sc-w:not(.is-in) { visibility: hidden; }
.sc-live .sc-w.is-in { animation: sc-word .3s ease-out both; }
.sc-live .sc-w.is-last { position: relative; }
.sc-live .sc-w.is-last::after { content: ""; position: absolute; inset-inline-start: calc(100% + 0.167cqw); top: .15em; width: 0.167cqw; height: 1.15em; border-radius: 1px; background: var(--ci-accent); box-shadow: 0 0 0.667cqw 1px color-mix(in srgb, var(--ci-accent) 55%, transparent); animation: sc-blink 1.1s ease-in-out infinite; }
.sc [data-fill] { transform-origin: left center; transition: transform var(--sc-d, .8s) cubic-bezier(.3, .7, .3, 1); }
[dir="rtl"] .sc [data-fill]:not([data-fill="y"]) { transform-origin: right center; }
.sc [data-fill="y"] { transform-origin: center bottom; }
.sc.is-armed [data-fill]:not(.is-on) { transform: scaleX(0); transition: none; }
.sc.is-armed [data-fill="y"]:not(.is-on) { transform: scaleY(0); }
.sc [data-wipe] { clip-path: inset(0 0 0 0); transition: clip-path var(--sc-d, 4s) linear; }
.sc.is-armed [data-wipe]:not(.is-on) { clip-path: inset(0 var(--from, 100%) 0 0); transition: none; }
@keyframes sc-word { from { opacity: 0; filter: blur(0.167cqw); } to { opacity: 1; filter: none; } }
@keyframes sc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.sc.is-armed .sc-typing path { stroke-dasharray: 1 1; animation: sc-typing 1.3s ease-in-out infinite; }
.sc.is-armed .sc-typing path:nth-child(2) { animation-delay: .14s; }
.sc.is-armed .sc-typing path:nth-child(3) { animation-delay: .28s; }
@keyframes sc-typing { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .sc *, .sc *::after { animation: none !important; transition: none !important; }
}
