AI media harness for planning, generating, and editing locally
TypeScript
/* ============================================================================
settings.css — the Settings page. Split out of shell.css.
Settings is a page of the app window, drawn under the shell's title bar,
not an overlay: a 280px navigation pane (Back at its top) on the Mica
backdrop, and a scrolling content column on --surface-pane behind a
--stroke-divider edge, its page at most 1000px wide, left-aligned, with
--space-6 side padding — the Windows 11 Settings layout. Nothing here paints
--bg: under Mica that is transparent, and the nav lets the backdrop show
through. Group headings are 14px semibold, like the library's "All
projects". The rows themselves are the shared SettingsGroup / SettingsCard /
SettingsExpander from ui.css; this file only lays out the page and the few
things those cards hold.
========================================================================== */
/* --- Page frame ----------------------------------------------------------- */
.generator-sharing__choices {
display: grid;
gap: var(--space-3);
max-height: 360px;
overflow-y: auto;
margin-top: var(--space-3);
}
.generator-sharing__choice {
display: grid;
gap: var(--space-1);
}
.generator-sharing__choice > label {
display: flex;
align-items: center;
gap: var(--space-2);
}
/* Keep the settings page and chat independently scrollable. */
.settings-layout {
display: grid;
grid-template-columns: minmax(0, 1fr);
}
.settings-layout--agent {
grid-template-columns: minmax(0, 1fr) auto var(--pane-settings-agent);
}
.settings-agent-pane {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--layer);
}
.settings-agent-pane > * {
flex: 1 1 auto;
min-height: 0;
}
.settings-view {
flex: 1;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
overflow: hidden;
outline: none;
}
.settings-nav {
padding: var(--space-1) var(--space-1) var(--space-4);
}
/* Back sits alone above the items, where Windows Settings puts it. */
/* The content sits on the pane, so nav and page read as two regions. */
.settings-view__body {
min-width: 0;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
border-left: 1px solid var(--stroke-divider);
background: var(--surface-pane);
}
.settings-page {
width: 100%;
max-width: calc(1000px + 2 * var(--space-6));
margin-inline: auto; /* centred once the window is wider */
display: flex;
flex-direction: column;
gap: var(--space-2);
padding: var(--space-2) var(--space-6) var(--space-8);
}
/* Groups are 4px-stacked cards; between groups, the heading's own space. */
.settings-page > .ui-settings-group,
.settings-page > .settings-download-status + .ui-settings-group,
.settings-page > .ui-infobar + .ui-settings-group {
margin-top: var(--space-5);
}
.settings-page > .ui-settings-group:first-of-type {
margin-top: var(--space-3);
}
/* --- Title and breadcrumb -------------------------------------------------
The title is the section name at 28/36; a sub-page shows the trail
instead, its ancestors in secondary text and clickable. */
.settings-page__title,
.settings-breadcrumb h1 {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: var(--weight-semibold);
line-height: var(--leading-tight);
outline: none;
}
.settings-page__title {
padding: var(--space-3) 0 var(--space-4);
}
.settings-breadcrumb {
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) 0 var(--space-4);
}
/* The sub-page title takes focus so a screen reader announces the page; it
is not a control, so it never shows a focus visual. */
.settings-page__title:focus,
.settings-breadcrumb h1:focus,
.settings-breadcrumb h1:focus-visible {
outline: none;
box-shadow: none;
}
.settings-breadcrumb h1 {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-breadcrumb__link {
flex: none;
padding: 0 var(--space-1);
border: 0;
border-radius: var(--radius-sm);
color: var(--text-secondary);
background: transparent;
font: var(--weight-semibold) var(--text-2xl) / var(--leading-tight) var(--font-display);
transition: var(--transition-control);
}
.settings-breadcrumb__link:hover { color: var(--text-primary); }
.settings-breadcrumb__link:active { color: var(--text-muted); }
.settings-breadcrumb__separator {
flex: none;
color: var(--text-secondary);
}
/* The editor's page commands, under the title like Windows' "Add device". */
.settings-page__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-bottom: var(--space-2);
}
.settings-page__actions-end {
margin-left: auto;
}
.settings-caption {
margin: 0 0 var(--space-2);
color: var(--text-secondary);
font-size: var(--text-xs);
line-height: var(--leading-snug);
}
.settings-group__count {
margin-left: var(--space-2);
color: var(--text-secondary);
font-weight: var(--weight-regular);
}
/* --- Controls inside cards --------------------------------------------------
Text boxes are 280–320px in the UI font (paths and keys are not code);
numbers are short. */
.settings-field {
width: 300px;
max-width: 100%;
}
input.settings-field--number,
.settings-field--number {
width: 96px;
}
.settings-card-list {
display: grid;
gap: var(--space-1);
}
/* A card that opens something and carries its own buttons. The open button
covers the card beneath everything; text lets presses through to it and
the trailing controls take their own. */
.settings-open-card {
position: relative;
}
.settings-open-card__open {
position: absolute;
inset: 0;
z-index: 0;
padding: 0;
border: 0;
border-radius: inherit;
background: transparent;
transition: var(--transition-control);
}
.settings-open-card__open:hover { background: var(--card-hover); }
.settings-open-card__open:active { background: var(--card-pressed); }
.settings-open-card > :not(.settings-open-card__open) {
position: relative;
z-index: 1;
pointer-events: none;
}
.settings-open-card__control > :not(.ui-settings-card__glyph) {
pointer-events: auto;
}
/* Download progress: a 3px bar under the row's description, never a tint
behind the row. */
.settings-progress {
width: min(320px, 100%);
margin-top: var(--space-2);
}
.settings-download-status .ui-settings-card__icon {
color: var(--accent-bright);
}
.settings-view .spin {
animation: spin 0.9s linear infinite;
}
/* --- Engine status (an InfoBar on the generator page) -------------------- */
.settings-status__platform b {
font-weight: var(--weight-semibold);
}
/* --- Model paths ------------------------------------------------------------
One card per path: the label ("(optional)" in secondary text), the path
middle-ellipsised in 12px UI type, then state, Browse… and "…" (raw path
or URL entry, Clear). */
.settings-path {
display: grid;
gap: var(--space-1);
}
.settings-path__optional {
color: var(--text-secondary);
}
.settings-path__value {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-path__input {
width: 100%;
margin-top: var(--space-1);
}
.settings-path__state {
display: inline-flex;
align-items: center;
gap: var(--space-1);
color: var(--text-secondary);
font-size: var(--text-xs);
white-space: nowrap;
}
.settings-path--found .settings-path__state { color: var(--success); }
.settings-path--missing .settings-path__state { color: var(--danger); }
/* Download variants: an Expander indented under the path it belongs to. */
.weight-sources {
margin-left: calc(2 * var(--space-4) + 20px);
}
.weight-source {
display: grid;
grid-template-columns: minmax(0, 1fr) 140px 130px auto;
align-items: end;
gap: var(--space-2);
margin: var(--space-3) 0;
}
.weight-source label {
min-width: 0;
display: grid;
gap: var(--space-1);
color: var(--text-secondary);
font-size: var(--text-xs);
}
.weight-source input,
.weight-source-add input {
width: 100%;
min-width: 0;
}
.weight-source-add {
display: flex;
gap: var(--space-2);
margin-top: var(--space-2);
}
.weight-source-add input { flex: 1; }
/* --- Agents -------------------------------------------------------------- */
.llm-provider__status {
display: inline-flex;
align-items: center;
gap: var(--space-1);
color: var(--text-secondary);
font-size: var(--text-base);
white-space: nowrap;
}
.llm-provider .ui-settings-row .ui-settings-card__control {
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--space-2);
}
.settings-expander-message {
padding: var(--space-2) var(--space-4);
}
/* --- Narrower windows -------------------------------------------------------
The window's minimum is 900px; below 1100px the nav and the fields give
the cards the room (the gutters are already --space-6). */
@media (max-width: 1100px) {
.settings-view { grid-template-columns: 240px minmax(0, 1fr); }
.settings-field { width: 240px; }
.weight-source { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Settings → Workers */
.settings-worker-selected {
display: inline-flex;
align-items: center;
gap: var(--space-1);
color: var(--text-secondary);
font-size: var(--text-base);
white-space: nowrap;
}
.settings-worker-token {
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.settings-caption code {
font-family: var(--font-mono, ui-monospace, monospace);
}