Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Split agent dock and settings styles into own files

Bitti7faee91d3885
diff --git a/src/styles/agent-dock.css b/src/styles/agent-dock.css
new file mode 100644
index 0000000..e476822
--- /dev/null
+++ b/src/styles/agent-dock.css
@@ -0,0 +1,488 @@
+/* ============================================================================
+ agent-dock.css — the agent dock, its provider selector and conversation.
+ Split out of workspace.css.
+ ========================================================================== */
+
+/* --- Agent dock ------------------------------------------------------------ */
+
+.project-agent-row {
+ position: relative;
+ z-index: 30;
+ min-width: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: var(--space-3) var(--space-5);
+ height: calc(var(--control-lg) + var(--space-5) + 1px);
+ border-top: 1px solid var(--line-solid);
+ background: var(--panel);
+ box-shadow: var(--shadow-up);
+ transition: height 180ms ease;
+}
+
+/* The Agent tab owns the workspace below the project top bar. Its height is
+ stable; additional output scrolls inside it instead of repeatedly resizing
+ the editor behind it. Use the app background here so the space around the
+ conversation does not become a second grey panel. */
+.project-agent-row--page {
+ height: calc(100vh - var(--topbar-height));
+ height: calc(100dvh - var(--topbar-height));
+ min-height: 0;
+ align-items: stretch;
+ border-top-color: transparent;
+ background: var(--bg);
+ box-shadow: none;
+}
+
+/* The settings launcher is fixed over the bottom-left corner, which is this
+ row. The dock stays CENTRED and gives up width instead of shifting right —
+ an off-centre dock reads as a layout bug, a narrower one does not. 256px is
+ twice the launcher's widest measure, so the reserve is symmetric. */
+.agent-dock-wrap {
+ position: relative;
+ width: min(880px, calc(100% - 256px));
+ display: flex;
+ min-height: var(--control-lg);
+ flex-direction: column;
+ justify-content: flex-end;
+}
+
+.agent-dock-wrap--expanded {
+ height: 100%;
+ min-height: 0;
+}
+
+/* Before the first turn, equal flexible tracks above and below the composer
+ put the prompt itself at the page's vertical centre. The welcome heading
+ lives at the foot of the upper track, so it does not push the prompt down.
+ After submit, this modifier disappears and the existing flex layout
+ naturally pins the composer beneath the conversation. */
+.agent-dock-wrap--welcome {
+ display: grid;
+ grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
+ justify-content: stretch;
+}
+
+.agent-dock-wrap--welcome .agent-welcome-title {
+ grid-row: 1;
+ align-self: end;
+ margin-bottom: var(--space-5);
+}
+
+.agent-dock-wrap--welcome .agent-dock-row {
+ grid-row: 2;
+}
+
+.agent-welcome-title {
+ margin: 0;
+ color: var(--text-primary);
+ font-size: var(--text-2xl);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-tight);
+ text-align: center;
+}
+
+.agent-expanded-content {
+ min-height: 0;
+ flex: 0 1 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ opacity: 0;
+ visibility: hidden;
+ transform: translateY(6px);
+ transition:
+ flex-grow 180ms ease,
+ opacity 140ms ease,
+ transform 180ms ease,
+ visibility 0s linear 180ms;
+}
+
+.agent-dock-wrap--expanded .agent-expanded-content {
+ flex-grow: 1;
+ opacity: 1;
+ visibility: visible;
+ transform: translateY(0);
+ transition-delay: 0s;
+}
+
+.agent-dock-row {
+ min-width: 0;
+ flex: 0 0 auto;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.agent-dock {
+ height: var(--control-lg);
+ min-width: 0;
+ flex: 1 1 auto;
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ padding: 0 var(--space-2) 0 var(--space-3);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-lg);
+ background: var(--dock-bg);
+ box-shadow:
+ var(--shadow-sm),
+ inset 0 1px var(--hairline-hi);
+}
+
+.agent-dock:focus-within {
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px var(--accent-ring);
+}
+
+/* The full Agent composer has three visual rows: two for the prompt and one
+ for controls. The compact dock remains one line tall everywhere else. */
+.agent-dock-wrap--expanded .agent-dock {
+ height: auto;
+ min-height: 103px;
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ grid-template-rows: 45px var(--control-sm);
+ gap: var(--space-2);
+ padding-block: var(--space-2);
+}
+
+/* The placeholder carries real guidance (and, when Slop is blocked, the reason
+ plus the fix), so it must taper off with an ellipsis instead of being sliced
+ through the middle of a word. The full text stays in the field's title. */
+.agent-dock textarea {
+ min-width: 0;
+ flex: 1 1 0;
+ height: 1.5em;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ color: var(--text-primary);
+ background: none;
+ font-family: inherit;
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+ resize: none;
+ overflow-y: hidden;
+ text-overflow: ellipsis;
+}
+
+.agent-dock-wrap--expanded .agent-dock textarea {
+ width: 100%;
+ height: 100%;
+ padding: var(--space-2) var(--space-3);
+ overflow-y: auto;
+}
+
+.agent-dock textarea::placeholder {
+ color: var(--text-faint);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.agent-dock__actions {
+ min-width: 0;
+ flex: 0 0 auto;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ justify-content: flex-end;
+}
+
+.agent-dock-wrap--expanded .agent-dock__actions {
+ justify-self: end;
+}
+
+.agent-dock button {
+ width: var(--control-sm);
+ height: var(--control-sm);
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 1px solid var(--dock-send-border);
+ border-radius: var(--radius-sm);
+ color: var(--on-accent);
+ background: var(--accent-fill);
+}
+
+.agent-dock button:disabled {
+ color: var(--text-faint);
+ border-color: var(--line-solid);
+ background: var(--panel-3);
+}
+
+.agent-dock .agent-cancel {
+ border-color: var(--danger-line-strong);
+ color: var(--danger);
+ background: var(--danger-soft);
+}
+
+.agent-busy {
+ flex: 0 0 auto;
+ color: var(--danger);
+ animation: spin 1.2s linear infinite;
+}
+
+.agent-dock:has(textarea:focus-visible) {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: 2px;
+}
+
+/* --- Provider selector ----------------------------------------------------- */
+
+.agent-provider {
+ position: relative;
+ flex: 0 0 auto;
+}
+
+.agent-dock .agent-provider__trigger {
+ width: auto;
+ max-width: 250px;
+ min-height: var(--control-sm);
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: 0 var(--space-2);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-sm);
+ color: var(--text-secondary);
+ background: var(--wash-1);
+ box-shadow: none;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+}
+
+.agent-dock .agent-provider__trigger:hover:not(:disabled),
+.agent-dock .agent-provider__trigger[aria-expanded="true"] {
+ border-color: var(--line-hover);
+ color: var(--text-primary);
+ background: var(--wash-2);
+}
+
+.agent-provider__name {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.agent-provider__trigger > svg {
+ flex: 0 0 auto;
+ color: var(--text-muted);
+}
+
+.agent-dock .agent-provider__trigger:disabled {
+ color: var(--text-faint);
+ background: var(--panel-3);
+ cursor: not-allowed;
+}
+
+.agent-provider__trigger:disabled .agent-provider__name,
+.agent-provider__trigger:disabled > svg {
+ opacity: 0.6;
+}
+
+.agent-provider__options {
+ position: absolute;
+ right: 0;
+ bottom: calc(100% + var(--space-2));
+ z-index: 30;
+ min-width: 180px;
+ padding: var(--space-1);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-md);
+ background: var(--panel-2);
+ box-shadow: var(--shadow);
+}
+
+.agent-provider__option {
+ display: grid;
+ grid-template-columns: 8px minmax(0, 1fr) 14px;
+ align-items: center;
+ gap: var(--space-2);
+ min-height: var(--control-md);
+ padding: var(--space-2) var(--space-3);
+ border-radius: var(--radius-sm);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ cursor: pointer;
+}
+
+.agent-provider__option[aria-selected="true"] {
+ color: var(--accent-bright);
+}
+
+.agent-provider__option--active {
+ background: var(--wash-2);
+}
+
+.agent-provider-light {
+ width: 8px;
+ height: 8px;
+ flex: 0 0 auto;
+ display: grid;
+ place-items: center;
+}
+
+.agent-provider-light i {
+ width: 8px;
+ height: 8px;
+ display: block;
+ border-radius: 50%;
+ background: var(--text-faint);
+}
+
+/* Provider state is real information — every state gets a truthful colour. */
+.agent-provider--ready i {
+ background: var(--success);
+ box-shadow: 0 0 8px var(--success-glow);
+}
+
+.agent-provider--authRequired i,
+.agent-provider--notInstalled i {
+ background: var(--warning);
+}
+
+.agent-provider--unavailable i {
+ background: var(--danger);
+}
+
+.agent-provider--disabled i,
+.agent-provider--unknown i {
+ background: var(--text-faint);
+}
+
+/* --- Conversation overlay -------------------------------------------------- */
+
+.agent-conversation {
+ user-select: text;
+ min-height: 0;
+ flex: 1 1 auto;
+ overflow: auto;
+ margin-bottom: var(--space-3);
+ padding: var(--space-2);
+ border: 1px solid var(--line-solid);
+ border-radius: var(--radius-md);
+ background: var(--glass);
+ box-shadow: var(--shadow);
+ backdrop-filter: blur(12px);
+}
+
+.agent-dock-wrap--expanded .agent-conversation {
+ background: var(--bg);
+}
+
+.agent-conversation p {
+ display: grid;
+ grid-template-columns: 80px minmax(0, 1fr);
+ gap: var(--space-3);
+ margin: 0;
+ padding: var(--space-3);
+ color: var(--text-secondary);
+ font-size: var(--text-base);
+ line-height: var(--leading-normal);
+}
+
+.agent-conversation p > span {
+ min-width: 0;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+
+.agent-conversation p + p {
+ border-top: 1px solid var(--line);
+}
+
+.agent-conversation b {
+ color: var(--accent-bright);
+ font-size: var(--text-xs);
+ font-weight: var(--weight-bold);
+ line-height: var(--leading-normal);
+ letter-spacing: var(--tracking-label);
+ text-transform: uppercase;
+}
+
+.agent-conversation__user b {
+ color: var(--text-muted);
+}
+
+.agent-conversation__assistant b {
+ color: var(--accent-bright);
+}
+
+.agent-conversation__output b {
+ color: var(--accent-bright);
+}
+
+.agent-conversation__validation,
+.agent-conversation__validation b {
+ color: var(--warning);
+}
+
+.agent-conversation__system,
+.agent-conversation__empty {
+ color: var(--text-muted);
+}
+
+.agent-conversation__error,
+.agent-conversation__error b {
+ color: var(--danger) !important;
+}
+
+.agent-conversation__waiting-dots {
+ min-height: 1.5em;
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+}
+
+.agent-conversation__waiting-dots i {
+ width: 5px;
+ height: 5px;
+ display: block;
+ border-radius: 50%;
+ background: var(--accent-bright);
+ animation: agent-waiting-dot 1.1s ease-in-out infinite;
+}
+
+.agent-conversation__waiting-dots i:nth-child(2) {
+ animation-delay: 0.14s;
+}
+
+.agent-conversation__waiting-dots i:nth-child(3) {
+ animation-delay: 0.28s;
+}
+
+@keyframes agent-waiting-dot {
+ 0%, 60%, 100% {
+ opacity: 0.35;
+ transform: translateY(0);
+ }
+ 30% {
+ opacity: 1;
+ transform: translateY(-3px);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .project-agent-row,
+ .agent-expanded-content {
+ transition: none;
+ }
+
+ /* Keep processing feedback moving even when decorative motion is reduced.
+ These override the global reduced-motion animation reset in base.css. */
+ .agent-busy {
+ animation-duration: 1.2s !important;
+ animation-iteration-count: infinite !important;
+ }
+
+ .agent-conversation__waiting-dots i {
+ animation-duration: 1.1s !important;
+ animation-iteration-count: infinite !important;
+ }
+}
+
diff --git a/src/styles/index.css b/src/styles/index.css
index 35e4ae0..7446295 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -17,9 +17,11 @@
/* Application surfaces */
@import "./shell.css";
+@import "./settings.css";
@import "./work-queue.css";
@import "./library.css";
@import "./workspace.css";
+@import "./agent-dock.css";
@import "./generator.css";
@import "./timeline.css";
@import "./references.css";
diff --git a/src/styles/settings.css b/src/styles/settings.css
new file mode 100644
index 0000000..a8fba06
--- /dev/null
+++ b/src/styles/settings.css
@@ -0,0 +1,834 @@
+/* ============================================================================
+ settings.css — the settings surface and its sections. Split out of shell.css.
+ ========================================================================== */
+
+/* --- Settings page --------------------------------------------------------- */
+.settings-view {
+ position: fixed;
+ z-index: 60;
+ inset: 0;
+ height: 100vh;
+ height: 100dvh;
+ min-width: 0;
+ display: grid;
+ grid-template-columns: clamp(160px, 19vw, 250px) minmax(0, 1fr);
+ grid-template-rows: auto minmax(0, 1fr);
+ overflow: hidden;
+ background: var(--panel);
+}
+
+.settings-view__content {
+ min-width: 0;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+
+.settings-view__body {
+ flex: 1;
+ min-height: 0;
+ overflow: auto;
+ overscroll-behavior: contain;
+ padding: var(--space-6) clamp(16px, 3vw, 48px);
+}
+
+.settings-view__body > .generator-editor__back {
+ margin-bottom: var(--space-4);
+}
+
+.settings-sidebar {
+ min-height: 0;
+ overflow-y: auto;
+ padding: var(--space-4) var(--space-3);
+ border-right: 1px solid var(--line);
+ background: var(--wash-1);
+}
+
+.settings-view__head {
+ grid-column: 1 / -1;
+ display: flex;
+ align-items: center;
+ gap: var(--space-4);
+ padding: var(--space-4) var(--space-5);
+ border-bottom: 1px solid var(--line);
+}
+
+.settings-view__head h1 {
+ margin: 0;
+ font-size: var(--text-2xl);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-tight);
+ letter-spacing: var(--tracking-hero);
+}
+
+/* --- Sidebar tabs ---------------------------------------------------------- */
+
+.settings-tabs {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-1);
+}
+
+.settings-tabs button {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ min-height: var(--control-lg);
+ padding: var(--space-3);
+ border: 0;
+ border-radius: var(--radius-sm);
+ text-align: left;
+ color: var(--text-muted);
+ background: none;
+ font-size: var(--text-base);
+ font-weight: var(--weight-medium);
+ line-height: var(--leading-snug);
+ cursor: pointer;
+}
+
+.settings-tabs button:hover {
+ color: var(--text-secondary);
+ background: var(--wash-1);
+}
+
+.settings-tabs button.active {
+ color: var(--text-primary);
+ background: var(--accent-soft);
+}
+
+.settings-tabs button.active::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: var(--space-2);
+ bottom: var(--space-2);
+ width: 2px;
+ border-radius: 2px;
+ background: var(--accent-bright);
+}
+
+/* How many paths still need setting, readable from the other tab. */
+.settings-tabs button em {
+ margin-left: auto;
+ min-width: 18px;
+ padding: 0 var(--space-1);
+ border-radius: var(--radius-xs);
+ color: var(--text-primary);
+ border: 1px solid var(--warning-line);
+ background: var(--warning-soft);
+ font: var(--weight-semibold) var(--text-2xs) / 18px var(--font-mono);
+ font-style: normal;
+ text-align: center;
+}
+
+/* --- Generator templates ------------------------------------------------- */
+
+.reference-icon-settings {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: var(--space-4);
+ margin-bottom: var(--space-5);
+ padding: var(--space-4) var(--space-5);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--wash-1);
+}
+.reference-icon-option {
+ flex: 1 1 260px;
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ cursor: pointer;
+}
+.reference-icon-settings .generator-template-fields {
+ flex: 0 1 320px;
+ min-width: 0;
+ width: 100%;
+ grid-template-columns: minmax(0, 1fr);
+ margin: 0;
+}
+.generator-dialog-overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 70;
+ display: grid;
+ place-items: center;
+ padding: var(--space-5);
+ background: var(--scrim);
+}
+.generator-dialog {
+ width: min(1000px, 100%);
+ max-height: calc(100dvh - var(--space-5) * 2);
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-xl);
+ background: var(--panel);
+ box-shadow: var(--shadow);
+ overflow: hidden;
+}
+.generator-dialog__head {
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+ gap: var(--space-3);
+ padding: var(--space-4);
+ border-bottom: 1px solid var(--line);
+}
+.generator-dialog__head h2 { flex: 1; margin: 0; font-size: var(--text-lg); }
+.generator-dialog__body { min-height: 0; overflow-y: auto; padding: var(--space-5); overscroll-behavior: contain; }
+.generator-dialog > .weight-download-status { flex-shrink: 0; padding: var(--space-3) var(--space-5); }
+
+.generator-templates {
+ margin-bottom: var(--space-4);
+ padding: var(--space-4);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--wash-1);
+}
+
+.generator-templates > header {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: var(--space-4);
+}
+
+.generator-templates h2 {
+ margin: 0;
+ color: var(--text-primary);
+ font-size: var(--text-lg);
+}
+
+.generator-templates header p {
+ margin: var(--space-1) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+.generator-template-list {
+ display: grid;
+ gap: var(--space-2);
+ margin-top: var(--space-4);
+}
+
+.generator-template-item {
+ position: relative;
+ isolation: isolate;
+ overflow: hidden;
+ display: grid;
+ grid-template-columns: var(--control-sm) minmax(0, 1fr) var(--control-sm);
+ align-items: center;
+ gap: var(--space-2);
+ padding: var(--space-1);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-sm);
+ background: var(--field-bg);
+}
+
+.generator-template-item--download {
+ grid-template-columns: minmax(0, 1fr) var(--control-sm);
+}
+
+.generator-template-item__progress {
+ position: absolute;
+ inset: 0 auto 0 0;
+ z-index: -1;
+ background: var(--accent-bright);
+ opacity: 0.22;
+ pointer-events: none;
+ transition: width 0.2s linear;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .generator-template-item__progress { transition: none; }
+}
+
+.generator-template-item--selected {
+ border-color: var(--accent-line-strong);
+ background: var(--accent-soft);
+}
+
+.generator-template-item__open {
+ min-width: 0;
+ display: flex;
+ align-items: baseline;
+ gap: var(--space-2);
+ padding: var(--space-2);
+ border: 0;
+ color: var(--text-primary);
+ background: transparent;
+ text-align: left;
+}
+
+.generator-template-item__open b {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.generator-template-item__open > svg {
+ flex-shrink: 0;
+ align-self: center;
+ color: var(--text-muted);
+}
+
+.generator-template-item__open small,
+.generator-template-item > label {
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+}
+
+.generator-template-item__default {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: var(--control-sm);
+ height: var(--control-sm);
+ cursor: pointer;
+}
+
+.generator-template-fields {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 160px;
+ gap: var(--space-3);
+ margin-top: var(--space-3);
+}
+
+.generator-template-fields label {
+ display: grid;
+ gap: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+}
+
+.generator-template-fields input,
+.generator-template-fields select {
+ min-width: 0;
+ width: 100%;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ background: var(--field-bg);
+ font-size: var(--text-sm);
+}
+
+.generator-editor__head {
+ margin-bottom: var(--space-4);
+}
+
+.generator-editor__advanced {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ margin-top: var(--space-3);
+ color: var(--text-secondary);
+ font-size: var(--text-sm);
+ cursor: pointer;
+}
+
+.diagnostics-backend {
+ grid-template-columns: 180px minmax(0, 1fr);
+ align-items: center;
+ margin: 0 0 var(--space-4);
+}
+
+.generator-editor__head h2 {
+ margin: 0;
+ color: var(--text-primary);
+ font-size: var(--text-lg);
+}
+
+.generator-editor__back {
+ padding-inline: var(--space-2);
+}
+
+.generator-editor .generator-template-fields {
+ margin: 0 0 var(--space-4);
+}
+
+.settings-status {
+ padding: var(--space-4);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--wash-1);
+}
+
+.settings-status span {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ color: var(--text-primary);
+ font-size: var(--text-base);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.settings-status i {
+ width: 9px;
+ height: 9px;
+ flex: 0 0 auto;
+ border-radius: 50%;
+ background: var(--text-faint);
+}
+
+.settings-status p {
+ margin: var(--space-2) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+.settings-status__platform {
+ display: flex;
+ align-items: baseline;
+ gap: var(--space-2);
+ margin-top: var(--space-3);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+.settings-status__platform b {
+ color: var(--text-primary);
+ font-size: var(--text-xs);
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+}
+
+.settings-status--ready {
+ border-color: var(--success-line);
+ background: var(--success-soft);
+}
+
+.settings-status--ready i {
+ background: var(--success);
+}
+
+.settings-status--modelsMissing i,
+.settings-status--incompatible i {
+ background: var(--warning);
+}
+
+.settings-status--runtimeMissing i {
+ background: var(--danger);
+}
+
+/* A section is a whole tab panel now, so it opens at the top of the body
+ rather than a heading's distance below the one before it. */
+.settings-section {
+ margin: 0;
+}
+
+.settings-section .settings-status {
+ margin-bottom: var(--space-2);
+}
+
+/* --- Diagnostics ---------------------------------------------------------- */
+
+.diagnostics-debug-option {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ margin-bottom: var(--space-4);
+ padding: var(--space-4) var(--space-5);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-lg);
+ background: var(--wash-1);
+ cursor: pointer;
+}
+
+.diagnostics-debug-option input,
+.reference-icon-option input {
+ width: 16px;
+ height: 16px;
+ margin: 0;
+ accent-color: var(--accent);
+}
+
+.diagnostics-debug-option b,
+.reference-icon-option b {
+ color: var(--text-primary);
+ font-size: var(--text-sm);
+}
+
+.diagnostics-debug-option small,
+.reference-icon-option small {
+ display: block;
+ margin-top: var(--space-1);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+}
+
+/* --- Appearance -------------------------------------------------------------
+ Three options, always all three visible: "system" is a real choice, not the
+ absence of one, and a two-state toggle cannot say so. */
+
+.theme-choice {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: var(--space-3);
+}
+
+.theme-choice__option {
+ min-height: var(--control-lg);
+ display: grid;
+ grid-template-columns: auto minmax(0, 1fr);
+ align-items: center;
+ gap: var(--space-1) var(--space-3);
+ padding: var(--space-4);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-lg);
+ color: var(--text-muted);
+ background: var(--wash-1);
+ cursor: pointer;
+ transition: 0.16s ease;
+}
+
+/* The radio still exists and still takes focus — it is only invisible, so the
+ arrow keys, the label click and the screen reader all keep working. The ring
+ is drawn on the card, which is what reads as the control. */
+.theme-choice__option input {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ opacity: 0;
+ pointer-events: none;
+}
+
+.theme-choice__option:has(input:focus-visible) {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: 2px;
+}
+
+.theme-choice__option > svg {
+ grid-row: 1;
+ flex: 0 0 auto;
+}
+
+.theme-choice__option b {
+ grid-row: 1;
+ color: var(--text-primary);
+ font-size: var(--text-base);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+.theme-choice__option small {
+ grid-column: 2;
+ grid-row: 2;
+ font-size: var(--text-xs);
+ line-height: var(--leading-normal);
+}
+
+.theme-choice__option:hover {
+ border-color: var(--line-hover);
+ color: var(--text-secondary);
+ background: var(--wash-2);
+}
+
+.theme-choice__option--selected,
+.theme-choice__option--selected:hover {
+ border-color: var(--accent);
+ color: var(--text-secondary);
+ background: var(--accent-soft);
+}
+
+.theme-choice__option--selected > svg {
+ color: var(--accent-bright);
+}
+
+/* --- Prompt LLMs ----------------------------------------------------------- */
+
+.llm-settings__intro {
+ margin: 0 0 var(--space-4);
+ color: var(--text-muted);
+ font-size: var(--text-sm);
+ line-height: var(--leading-normal);
+}
+
+.llm-provider {
+ padding: var(--space-4);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-lg);
+ background: var(--wash-1);
+}
+
+.llm-provider + .llm-provider {
+ margin-top: var(--space-4);
+}
+
+.llm-provider--configured {
+ border-color: var(--success-line);
+}
+
+.llm-provider > header {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: var(--space-4);
+ margin-bottom: var(--space-4);
+}
+
+.llm-provider h2 {
+ margin: 0;
+ color: var(--text-primary);
+ font-size: var(--text-lg);
+ line-height: var(--leading-snug);
+}
+
+.llm-provider header p {
+ margin: var(--space-1) 0 0;
+ color: var(--text-muted);
+ font-size: var(--text-xs);
+ line-height: var(--leading-normal);
+}
+
+.llm-provider header > span {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+ flex: 0 0 auto;
+ color: var(--text-faint);
+ font-size: var(--text-xs);
+}
+
+.llm-provider--configured header > span {
+ color: var(--success);
+}
+
+.llm-provider__fields {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+ gap: var(--space-3);
+}
+
+.llm-provider__fields label {
+ min-width: 0;
+}
+
+.llm-provider__fields label > span {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ margin-bottom: var(--space-2);
+ color: var(--text-secondary);
+ font-size: var(--text-xs);
+ font-weight: var(--weight-semibold);
+}
+
+.llm-provider__fields label em {
+ color: var(--text-faint);
+ font-size: var(--text-2xs);
+ font-style: normal;
+ font-weight: var(--weight-regular);
+ text-transform: uppercase;
+}
+
+.llm-provider__fields input {
+ width: 100%;
+ min-width: 0;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ background: var(--field-bg);
+ font: var(--weight-regular) var(--text-sm) / 1 var(--font-mono);
+}
+
+.llm-provider__model {
+ grid-column: 1 / -1;
+}
+
+.llm-provider__model > div {
+ display: flex;
+ gap: var(--space-2);
+}
+
+.llm-provider__model input {
+ flex: 1 1 auto;
+}
+
+.llm-provider__model button {
+ flex: 0 0 auto;
+}
+
+.llm-provider__model .spin {
+ animation: spin 0.8s linear infinite;
+}
+
+.llm-provider__error {
+ margin: var(--space-3) 0 0;
+ color: var(--danger);
+ font-size: var(--text-xs);
+ line-height: var(--leading-normal);
+}
+
+/* Keep the path on a full-width row so long filenames and URLs remain readable. */
+.settings-path {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ align-items: start;
+ gap: var(--space-2);
+ padding: var(--space-3) 0;
+ border-top: 1px solid var(--line);
+}
+
+.settings-path label {
+ display: block;
+ cursor: pointer;
+}
+
+.settings-path label b {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ color: var(--text-primary);
+ font-size: var(--text-base);
+ font-weight: var(--weight-semibold);
+ line-height: var(--leading-snug);
+}
+
+/* "Optional" is a qualifier on the label, not a status — keep it quiet. */
+.settings-path label b em {
+ padding: var(--space-1) var(--space-2);
+ border: 1px solid var(--line);
+ border-radius: var(--radius-xs);
+ color: var(--text-faint);
+ font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
+ letter-spacing: var(--tracking-label);
+ font-style: normal;
+ text-transform: uppercase;
+}
+
+.settings-path__row {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.settings-path__row input {
+ flex: 1 1 auto;
+ min-width: 0;
+ height: var(--field-height);
+ padding: 0 var(--space-3);
+ border: 1px solid var(--line-strong);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ background: var(--field-bg);
+ font: var(--weight-regular) var(--text-sm) / 1 var(--font-mono);
+}
+
+.weight-sources { min-width: 0; font-size: var(--text-sm); color: var(--text-muted); }
+.weight-sources summary { cursor: pointer; }
+.weight-sources p { margin: var(--space-2) 0; }
+.weight-source { display: grid; grid-template-columns: minmax(0, 1fr) 135px 125px auto; gap: var(--space-2); align-items: end; margin: var(--space-3) 0; }
+.weight-source label { min-width: 0; font-size: var(--text-xs); }
+.weight-source input, .weight-source-add input { width: 100%; min-width: 0; height: var(--field-height); padding: 0 var(--space-2); color: var(--text-primary); background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
+.weight-source-add { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
+.weight-source-add input { flex: 1; }
+.weight-download-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) 0; color: var(--text-secondary); font-size: var(--text-sm); }
+.weight-download-status span { flex: 1 1 100%; }
+.settings-view__content > .weight-download-status {
+ flex-shrink: 0;
+ padding: var(--space-3) clamp(16px, 3vw, 48px);
+ border-top: 1px solid var(--line);
+}
+
+.settings-path__row .secondary-button {
+ flex: 0 0 auto;
+}
+
+.settings-path__state {
+ flex-basis: 100%;
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-1);
+ color: var(--text-faint);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+.settings-path--found .settings-path__state {
+ color: var(--success);
+}
+
+.settings-path--missing .settings-path__state {
+ color: var(--danger);
+}
+
+.settings-path--missing .settings-path__row input {
+ border-color: var(--danger-line-strong);
+}
+
+.settings-view__foot {
+ flex-shrink: 0;
+ padding: var(--space-4) clamp(16px, 3vw, 48px);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-4);
+ border-top: 1px solid var(--line);
+}
+
+.settings-view__foot span {
+ color: var(--text-faint);
+ font-size: var(--text-xs);
+ line-height: var(--leading-snug);
+}
+
+/* --- Responsive ------------------------------------------------------------ */
+
+@media (max-width: 650px) {
+ .settings-view {
+ grid-template-columns: 124px minmax(0, 1fr);
+ }
+
+ .settings-sidebar { padding: var(--space-3) var(--space-1); }
+ .settings-tabs button { padding: var(--space-2); font-size: var(--text-sm); }
+ .settings-view__body { padding: var(--space-4) var(--space-3); }
+
+ .settings-path {
+ grid-template-columns: minmax(0, 1fr);
+ gap: var(--space-2);
+ }
+
+ .generator-template-fields {
+ grid-template-columns: minmax(0, 1fr);
+ }
+
+ .settings-path__row {
+ flex-direction: column;
+ align-items: stretch;
+ }
+
+ .settings-view__foot {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+
+ .theme-choice {
+ grid-template-columns: 1fr;
+ }
+
+ .llm-provider__fields {
+ grid-template-columns: 1fr;
+ }
+
+ .llm-provider__model {
+ grid-column: auto;
+ }
+
+ .llm-provider__model > div {
+ flex-direction: column;
+ }
+
+}
diff --git a/src/styles/shell.css b/src/styles/shell.css
index 568a51d..31ef7ae 100644
--- a/src/styles/shell.css
+++ b/src/styles/shell.css
@@ -92,833 +92,3 @@
background: var(--glass-hover);
}
-/* --- Settings page --------------------------------------------------------- */
-.settings-view {
- position: fixed;
- z-index: 60;
- inset: 0;
- height: 100vh;
- height: 100dvh;
- min-width: 0;
- display: grid;
- grid-template-columns: clamp(160px, 19vw, 250px) minmax(0, 1fr);
- grid-template-rows: auto minmax(0, 1fr);
- overflow: hidden;
- background: var(--panel);
-}
-
-.settings-view__content {
- min-width: 0;
- min-height: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-
-.settings-view__body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- overscroll-behavior: contain;
- padding: var(--space-6) clamp(16px, 3vw, 48px);
-}
-
-.settings-view__body > .generator-editor__back {
- margin-bottom: var(--space-4);
-}
-
-.settings-sidebar {
- min-height: 0;
- overflow-y: auto;
- padding: var(--space-4) var(--space-3);
- border-right: 1px solid var(--line);
- background: var(--wash-1);
-}
-
-.settings-view__head {
- grid-column: 1 / -1;
- display: flex;
- align-items: center;
- gap: var(--space-4);
- padding: var(--space-4) var(--space-5);
- border-bottom: 1px solid var(--line);
-}
-
-.settings-view__head h1 {
- margin: 0;
- font-size: var(--text-2xl);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-tight);
- letter-spacing: var(--tracking-hero);
-}
-
-/* --- Sidebar tabs ---------------------------------------------------------- */
-
-.settings-tabs {
- display: flex;
- flex-direction: column;
- gap: var(--space-1);
-}
-
-.settings-tabs button {
- position: relative;
- display: flex;
- align-items: center;
- gap: var(--space-2);
- min-height: var(--control-lg);
- padding: var(--space-3);
- border: 0;
- border-radius: var(--radius-sm);
- text-align: left;
- color: var(--text-muted);
- background: none;
- font-size: var(--text-base);
- font-weight: var(--weight-medium);
- line-height: var(--leading-snug);
- cursor: pointer;
-}
-
-.settings-tabs button:hover {
- color: var(--text-secondary);
- background: var(--wash-1);
-}
-
-.settings-tabs button.active {
- color: var(--text-primary);
- background: var(--accent-soft);
-}
-
-.settings-tabs button.active::after {
- content: "";
- position: absolute;
- left: 0;
- top: var(--space-2);
- bottom: var(--space-2);
- width: 2px;
- border-radius: 2px;
- background: var(--accent-bright);
-}
-
-/* How many paths still need setting, readable from the other tab. */
-.settings-tabs button em {
- margin-left: auto;
- min-width: 18px;
- padding: 0 var(--space-1);
- border-radius: var(--radius-xs);
- color: var(--text-primary);
- border: 1px solid var(--warning-line);
- background: var(--warning-soft);
- font: var(--weight-semibold) var(--text-2xs) / 18px var(--font-mono);
- font-style: normal;
- text-align: center;
-}
-
-/* --- Generator templates ------------------------------------------------- */
-
-.reference-icon-settings {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: var(--space-4);
- margin-bottom: var(--space-5);
- padding: var(--space-4) var(--space-5);
- border: 1px solid var(--line);
- border-radius: var(--radius-lg);
- background: var(--wash-1);
-}
-.reference-icon-option {
- flex: 1 1 260px;
- display: flex;
- align-items: center;
- gap: var(--space-3);
- cursor: pointer;
-}
-.reference-icon-settings .generator-template-fields {
- flex: 0 1 320px;
- min-width: 0;
- width: 100%;
- grid-template-columns: minmax(0, 1fr);
- margin: 0;
-}
-.generator-dialog-overlay {
- position: fixed;
- inset: 0;
- z-index: 70;
- display: grid;
- place-items: center;
- padding: var(--space-5);
- background: var(--scrim);
-}
-.generator-dialog {
- width: min(1000px, 100%);
- max-height: calc(100dvh - var(--space-5) * 2);
- display: flex;
- flex-direction: column;
- min-height: 0;
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-xl);
- background: var(--panel);
- box-shadow: var(--shadow);
- overflow: hidden;
-}
-.generator-dialog__head {
- display: flex;
- align-items: center;
- flex-shrink: 0;
- gap: var(--space-3);
- padding: var(--space-4);
- border-bottom: 1px solid var(--line);
-}
-.generator-dialog__head h2 { flex: 1; margin: 0; font-size: var(--text-lg); }
-.generator-dialog__body { min-height: 0; overflow-y: auto; padding: var(--space-5); overscroll-behavior: contain; }
-.generator-dialog > .weight-download-status { flex-shrink: 0; padding: var(--space-3) var(--space-5); }
-
-.generator-templates {
- margin-bottom: var(--space-4);
- padding: var(--space-4);
- border: 1px solid var(--line);
- border-radius: var(--radius-lg);
- background: var(--wash-1);
-}
-
-.generator-templates > header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: var(--space-4);
-}
-
-.generator-templates h2 {
- margin: 0;
- color: var(--text-primary);
- font-size: var(--text-lg);
-}
-
-.generator-templates header p {
- margin: var(--space-1) 0 0;
- color: var(--text-muted);
- font-size: var(--text-sm);
-}
-
-.generator-template-list {
- display: grid;
- gap: var(--space-2);
- margin-top: var(--space-4);
-}
-
-.generator-template-item {
- position: relative;
- isolation: isolate;
- overflow: hidden;
- display: grid;
- grid-template-columns: var(--control-sm) minmax(0, 1fr) var(--control-sm);
- align-items: center;
- gap: var(--space-2);
- padding: var(--space-1);
- border: 1px solid var(--line);
- border-radius: var(--radius-sm);
- background: var(--field-bg);
-}
-
-.generator-template-item--download {
- grid-template-columns: minmax(0, 1fr) var(--control-sm);
-}
-
-.generator-template-item__progress {
- position: absolute;
- inset: 0 auto 0 0;
- z-index: -1;
- background: var(--accent-bright);
- opacity: 0.22;
- pointer-events: none;
- transition: width 0.2s linear;
-}
-
-@media (prefers-reduced-motion: reduce) {
- .generator-template-item__progress { transition: none; }
-}
-
-.generator-template-item--selected {
- border-color: var(--accent-line-strong);
- background: var(--accent-soft);
-}
-
-.generator-template-item__open {
- min-width: 0;
- display: flex;
- align-items: baseline;
- gap: var(--space-2);
- padding: var(--space-2);
- border: 0;
- color: var(--text-primary);
- background: transparent;
- text-align: left;
-}
-
-.generator-template-item__open b {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.generator-template-item__open > svg {
- flex-shrink: 0;
- align-self: center;
- color: var(--text-muted);
-}
-
-.generator-template-item__open small,
-.generator-template-item > label {
- color: var(--text-muted);
- font-size: var(--text-xs);
-}
-
-.generator-template-item__default {
- display: flex;
- align-items: center;
- justify-content: center;
- width: var(--control-sm);
- height: var(--control-sm);
- cursor: pointer;
-}
-
-.generator-template-fields {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 160px;
- gap: var(--space-3);
- margin-top: var(--space-3);
-}
-
-.generator-template-fields label {
- display: grid;
- gap: var(--space-1);
- color: var(--text-muted);
- font-size: var(--text-xs);
-}
-
-.generator-template-fields input,
-.generator-template-fields select {
- min-width: 0;
- width: 100%;
- height: var(--field-height);
- padding: 0 var(--space-3);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-sm);
- color: var(--text-primary);
- background: var(--field-bg);
- font-size: var(--text-sm);
-}
-
-.generator-editor__head {
- margin-bottom: var(--space-4);
-}
-
-.generator-editor__advanced {
- display: flex;
- align-items: center;
- gap: var(--space-2);
- margin-top: var(--space-3);
- color: var(--text-secondary);
- font-size: var(--text-sm);
- cursor: pointer;
-}
-
-.diagnostics-backend {
- grid-template-columns: 180px minmax(0, 1fr);
- align-items: center;
- margin: 0 0 var(--space-4);
-}
-
-.generator-editor__head h2 {
- margin: 0;
- color: var(--text-primary);
- font-size: var(--text-lg);
-}
-
-.generator-editor__back {
- padding-inline: var(--space-2);
-}
-
-.generator-editor .generator-template-fields {
- margin: 0 0 var(--space-4);
-}
-
-.settings-status {
- padding: var(--space-4);
- border: 1px solid var(--line);
- border-radius: var(--radius-lg);
- background: var(--wash-1);
-}
-
-.settings-status span {
- display: flex;
- align-items: center;
- gap: var(--space-2);
- color: var(--text-primary);
- font-size: var(--text-base);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
-
-.settings-status i {
- width: 9px;
- height: 9px;
- flex: 0 0 auto;
- border-radius: 50%;
- background: var(--text-faint);
-}
-
-.settings-status p {
- margin: var(--space-2) 0 0;
- color: var(--text-muted);
- font-size: var(--text-sm);
- line-height: var(--leading-normal);
-}
-
-.settings-status__platform {
- display: flex;
- align-items: baseline;
- gap: var(--space-2);
- margin-top: var(--space-3);
- color: var(--text-muted);
- font-size: var(--text-sm);
-}
-
-.settings-status__platform b {
- color: var(--text-primary);
- font-size: var(--text-xs);
- letter-spacing: 0.04em;
- text-transform: uppercase;
-}
-
-.settings-status--ready {
- border-color: var(--success-line);
- background: var(--success-soft);
-}
-
-.settings-status--ready i {
- background: var(--success);
-}
-
-.settings-status--modelsMissing i,
-.settings-status--incompatible i {
- background: var(--warning);
-}
-
-.settings-status--runtimeMissing i {
- background: var(--danger);
-}
-
-/* A section is a whole tab panel now, so it opens at the top of the body
- rather than a heading's distance below the one before it. */
-.settings-section {
- margin: 0;
-}
-
-.settings-section .settings-status {
- margin-bottom: var(--space-2);
-}
-
-/* --- Diagnostics ---------------------------------------------------------- */
-
-.diagnostics-debug-option {
- display: flex;
- align-items: center;
- gap: var(--space-3);
- margin-bottom: var(--space-4);
- padding: var(--space-4) var(--space-5);
- border: 1px solid var(--line);
- border-radius: var(--radius-lg);
- background: var(--wash-1);
- cursor: pointer;
-}
-
-.diagnostics-debug-option input,
-.reference-icon-option input {
- width: 16px;
- height: 16px;
- margin: 0;
- accent-color: var(--accent);
-}
-
-.diagnostics-debug-option b,
-.reference-icon-option b {
- color: var(--text-primary);
- font-size: var(--text-sm);
-}
-
-.diagnostics-debug-option small,
-.reference-icon-option small {
- display: block;
- margin-top: var(--space-1);
- color: var(--text-muted);
- font-size: var(--text-sm);
-}
-
-/* --- Appearance -------------------------------------------------------------
- Three options, always all three visible: "system" is a real choice, not the
- absence of one, and a two-state toggle cannot say so. */
-
-.theme-choice {
- display: grid;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: var(--space-3);
-}
-
-.theme-choice__option {
- min-height: var(--control-lg);
- display: grid;
- grid-template-columns: auto minmax(0, 1fr);
- align-items: center;
- gap: var(--space-1) var(--space-3);
- padding: var(--space-4);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-lg);
- color: var(--text-muted);
- background: var(--wash-1);
- cursor: pointer;
- transition: 0.16s ease;
-}
-
-/* The radio still exists and still takes focus — it is only invisible, so the
- arrow keys, the label click and the screen reader all keep working. The ring
- is drawn on the card, which is what reads as the control. */
-.theme-choice__option input {
- position: absolute;
- width: 1px;
- height: 1px;
- opacity: 0;
- pointer-events: none;
-}
-
-.theme-choice__option:has(input:focus-visible) {
- outline: var(--focus-ring-width) solid var(--focus-ring-color);
- outline-offset: 2px;
-}
-
-.theme-choice__option > svg {
- grid-row: 1;
- flex: 0 0 auto;
-}
-
-.theme-choice__option b {
- grid-row: 1;
- color: var(--text-primary);
- font-size: var(--text-base);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
-
-.theme-choice__option small {
- grid-column: 2;
- grid-row: 2;
- font-size: var(--text-xs);
- line-height: var(--leading-normal);
-}
-
-.theme-choice__option:hover {
- border-color: var(--line-hover);
- color: var(--text-secondary);
- background: var(--wash-2);
-}
-
-.theme-choice__option--selected,
-.theme-choice__option--selected:hover {
- border-color: var(--accent);
- color: var(--text-secondary);
- background: var(--accent-soft);
-}
-
-.theme-choice__option--selected > svg {
- color: var(--accent-bright);
-}
-
-/* --- Prompt LLMs ----------------------------------------------------------- */
-
-.llm-settings__intro {
- margin: 0 0 var(--space-4);
- color: var(--text-muted);
- font-size: var(--text-sm);
- line-height: var(--leading-normal);
-}
-
-.llm-provider {
- padding: var(--space-4);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-lg);
- background: var(--wash-1);
-}
-
-.llm-provider + .llm-provider {
- margin-top: var(--space-4);
-}
-
-.llm-provider--configured {
- border-color: var(--success-line);
-}
-
-.llm-provider > header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: var(--space-4);
- margin-bottom: var(--space-4);
-}
-
-.llm-provider h2 {
- margin: 0;
- color: var(--text-primary);
- font-size: var(--text-lg);
- line-height: var(--leading-snug);
-}
-
-.llm-provider header p {
- margin: var(--space-1) 0 0;
- color: var(--text-muted);
- font-size: var(--text-xs);
- line-height: var(--leading-normal);
-}
-
-.llm-provider header > span {
- display: inline-flex;
- align-items: center;
- gap: var(--space-1);
- flex: 0 0 auto;
- color: var(--text-faint);
- font-size: var(--text-xs);
-}
-
-.llm-provider--configured header > span {
- color: var(--success);
-}
-
-.llm-provider__fields {
- display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
- gap: var(--space-3);
-}
-
-.llm-provider__fields label {
- min-width: 0;
-}
-
-.llm-provider__fields label > span {
- display: flex;
- align-items: center;
- gap: var(--space-2);
- margin-bottom: var(--space-2);
- color: var(--text-secondary);
- font-size: var(--text-xs);
- font-weight: var(--weight-semibold);
-}
-
-.llm-provider__fields label em {
- color: var(--text-faint);
- font-size: var(--text-2xs);
- font-style: normal;
- font-weight: var(--weight-regular);
- text-transform: uppercase;
-}
-
-.llm-provider__fields input {
- width: 100%;
- min-width: 0;
- height: var(--field-height);
- padding: 0 var(--space-3);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-sm);
- color: var(--text-primary);
- background: var(--field-bg);
- font: var(--weight-regular) var(--text-sm) / 1 var(--font-mono);
-}
-
-.llm-provider__model {
- grid-column: 1 / -1;
-}
-
-.llm-provider__model > div {
- display: flex;
- gap: var(--space-2);
-}
-
-.llm-provider__model input {
- flex: 1 1 auto;
-}
-
-.llm-provider__model button {
- flex: 0 0 auto;
-}
-
-.llm-provider__model .spin {
- animation: spin 0.8s linear infinite;
-}
-
-.llm-provider__error {
- margin: var(--space-3) 0 0;
- color: var(--danger);
- font-size: var(--text-xs);
- line-height: var(--leading-normal);
-}
-
-/* Keep the path on a full-width row so long filenames and URLs remain readable. */
-.settings-path {
- display: grid;
- grid-template-columns: minmax(0, 1fr);
- align-items: start;
- gap: var(--space-2);
- padding: var(--space-3) 0;
- border-top: 1px solid var(--line);
-}
-
-.settings-path label {
- display: block;
- cursor: pointer;
-}
-
-.settings-path label b {
- display: flex;
- align-items: center;
- gap: var(--space-2);
- color: var(--text-primary);
- font-size: var(--text-base);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-snug);
-}
-
-/* "Optional" is a qualifier on the label, not a status — keep it quiet. */
-.settings-path label b em {
- padding: var(--space-1) var(--space-2);
- border: 1px solid var(--line);
- border-radius: var(--radius-xs);
- color: var(--text-faint);
- font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
- letter-spacing: var(--tracking-label);
- font-style: normal;
- text-transform: uppercase;
-}
-
-.settings-path__row {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: var(--space-2);
-}
-
-.settings-path__row input {
- flex: 1 1 auto;
- min-width: 0;
- height: var(--field-height);
- padding: 0 var(--space-3);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-sm);
- color: var(--text-primary);
- background: var(--field-bg);
- font: var(--weight-regular) var(--text-sm) / 1 var(--font-mono);
-}
-
-.weight-sources { min-width: 0; font-size: var(--text-sm); color: var(--text-muted); }
-.weight-sources summary { cursor: pointer; }
-.weight-sources p { margin: var(--space-2) 0; }
-.weight-source { display: grid; grid-template-columns: minmax(0, 1fr) 135px 125px auto; gap: var(--space-2); align-items: end; margin: var(--space-3) 0; }
-.weight-source label { min-width: 0; font-size: var(--text-xs); }
-.weight-source input, .weight-source-add input { width: 100%; min-width: 0; height: var(--field-height); padding: 0 var(--space-2); color: var(--text-primary); background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
-.weight-source-add { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
-.weight-source-add input { flex: 1; }
-.weight-download-status { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) 0; color: var(--text-secondary); font-size: var(--text-sm); }
-.weight-download-status span { flex: 1 1 100%; }
-.settings-view__content > .weight-download-status {
- flex-shrink: 0;
- padding: var(--space-3) clamp(16px, 3vw, 48px);
- border-top: 1px solid var(--line);
-}
-
-.settings-path__row .secondary-button {
- flex: 0 0 auto;
-}
-
-.settings-path__state {
- flex-basis: 100%;
- display: inline-flex;
- align-items: center;
- gap: var(--space-1);
- color: var(--text-faint);
- font-size: var(--text-xs);
- line-height: var(--leading-snug);
-}
-
-.settings-path--found .settings-path__state {
- color: var(--success);
-}
-
-.settings-path--missing .settings-path__state {
- color: var(--danger);
-}
-
-.settings-path--missing .settings-path__row input {
- border-color: var(--danger-line-strong);
-}
-
-.settings-view__foot {
- flex-shrink: 0;
- padding: var(--space-4) clamp(16px, 3vw, 48px);
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: var(--space-4);
- border-top: 1px solid var(--line);
-}
-
-.settings-view__foot span {
- color: var(--text-faint);
- font-size: var(--text-xs);
- line-height: var(--leading-snug);
-}
-
-/* --- Responsive ------------------------------------------------------------ */
-
-@media (max-width: 650px) {
- .settings-view {
- grid-template-columns: 124px minmax(0, 1fr);
- }
-
- .settings-sidebar { padding: var(--space-3) var(--space-1); }
- .settings-tabs button { padding: var(--space-2); font-size: var(--text-sm); }
- .settings-view__body { padding: var(--space-4) var(--space-3); }
-
- .settings-path {
- grid-template-columns: minmax(0, 1fr);
- gap: var(--space-2);
- }
-
- .generator-template-fields {
- grid-template-columns: minmax(0, 1fr);
- }
-
- .settings-path__row {
- flex-direction: column;
- align-items: stretch;
- }
-
- .settings-view__foot {
- flex-direction: column;
- align-items: flex-start;
- }
-
- .theme-choice {
- grid-template-columns: 1fr;
- }
-
- .llm-provider__fields {
- grid-template-columns: 1fr;
- }
-
- .llm-provider__model {
- grid-column: auto;
- }
-
- .llm-provider__model > div {
- flex-direction: column;
- }
-
-}
diff --git a/src/styles/workspace.css b/src/styles/workspace.css
index c30b9cb..5587b9b 100644
--- a/src/styles/workspace.css
+++ b/src/styles/workspace.css
@@ -183,489 +183,6 @@
overflow-x: hidden;
}
-/* --- Agent dock ------------------------------------------------------------ */
-
-.project-agent-row {
- position: relative;
- z-index: 30;
- min-width: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: var(--space-3) var(--space-5);
- height: calc(var(--control-lg) + var(--space-5) + 1px);
- border-top: 1px solid var(--line-solid);
- background: var(--panel);
- box-shadow: var(--shadow-up);
- transition: height 180ms ease;
-}
-
-/* The Agent tab owns the workspace below the project top bar. Its height is
- stable; additional output scrolls inside it instead of repeatedly resizing
- the editor behind it. Use the app background here so the space around the
- conversation does not become a second grey panel. */
-.project-agent-row--page {
- height: calc(100vh - var(--topbar-height));
- height: calc(100dvh - var(--topbar-height));
- min-height: 0;
- align-items: stretch;
- border-top-color: transparent;
- background: var(--bg);
- box-shadow: none;
-}
-
-/* The settings launcher is fixed over the bottom-left corner, which is this
- row. The dock stays CENTRED and gives up width instead of shifting right —
- an off-centre dock reads as a layout bug, a narrower one does not. 256px is
- twice the launcher's widest measure, so the reserve is symmetric. */
-.agent-dock-wrap {
- position: relative;
- width: min(880px, calc(100% - 256px));
- display: flex;
- min-height: var(--control-lg);
- flex-direction: column;
- justify-content: flex-end;
-}
-
-.agent-dock-wrap--expanded {
- height: 100%;
- min-height: 0;
-}
-
-/* Before the first turn, equal flexible tracks above and below the composer
- put the prompt itself at the page's vertical centre. The welcome heading
- lives at the foot of the upper track, so it does not push the prompt down.
- After submit, this modifier disappears and the existing flex layout
- naturally pins the composer beneath the conversation. */
-.agent-dock-wrap--welcome {
- display: grid;
- grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
- justify-content: stretch;
-}
-
-.agent-dock-wrap--welcome .agent-welcome-title {
- grid-row: 1;
- align-self: end;
- margin-bottom: var(--space-5);
-}
-
-.agent-dock-wrap--welcome .agent-dock-row {
- grid-row: 2;
-}
-
-.agent-welcome-title {
- margin: 0;
- color: var(--text-primary);
- font-size: var(--text-2xl);
- font-weight: var(--weight-semibold);
- line-height: var(--leading-tight);
- letter-spacing: var(--tracking-tight);
- text-align: center;
-}
-
-.agent-expanded-content {
- min-height: 0;
- flex: 0 1 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- opacity: 0;
- visibility: hidden;
- transform: translateY(6px);
- transition:
- flex-grow 180ms ease,
- opacity 140ms ease,
- transform 180ms ease,
- visibility 0s linear 180ms;
-}
-
-.agent-dock-wrap--expanded .agent-expanded-content {
- flex-grow: 1;
- opacity: 1;
- visibility: visible;
- transform: translateY(0);
- transition-delay: 0s;
-}
-
-.agent-dock-row {
- min-width: 0;
- flex: 0 0 auto;
- display: flex;
- align-items: center;
- gap: var(--space-2);
-}
-
-.agent-dock {
- height: var(--control-lg);
- min-width: 0;
- flex: 1 1 auto;
- display: flex;
- align-items: center;
- gap: var(--space-3);
- padding: 0 var(--space-2) 0 var(--space-3);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-lg);
- background: var(--dock-bg);
- box-shadow:
- var(--shadow-sm),
- inset 0 1px var(--hairline-hi);
-}
-
-.agent-dock:focus-within {
- border-color: var(--accent);
- box-shadow: 0 0 0 3px var(--accent-ring);
-}
-
-/* The full Agent composer has three visual rows: two for the prompt and one
- for controls. The compact dock remains one line tall everywhere else. */
-.agent-dock-wrap--expanded .agent-dock {
- height: auto;
- min-height: 103px;
- display: grid;
- grid-template-columns: minmax(0, 1fr);
- grid-template-rows: 45px var(--control-sm);
- gap: var(--space-2);
- padding-block: var(--space-2);
-}
-
-/* The placeholder carries real guidance (and, when Slop is blocked, the reason
- plus the fix), so it must taper off with an ellipsis instead of being sliced
- through the middle of a word. The full text stays in the field's title. */
-.agent-dock textarea {
- min-width: 0;
- flex: 1 1 0;
- height: 1.5em;
- padding: 0;
- border: 0;
- outline: 0;
- color: var(--text-primary);
- background: none;
- font-family: inherit;
- font-size: var(--text-base);
- line-height: var(--leading-normal);
- resize: none;
- overflow-y: hidden;
- text-overflow: ellipsis;
-}
-
-.agent-dock-wrap--expanded .agent-dock textarea {
- width: 100%;
- height: 100%;
- padding: var(--space-2) var(--space-3);
- overflow-y: auto;
-}
-
-.agent-dock textarea::placeholder {
- color: var(--text-faint);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.agent-dock__actions {
- min-width: 0;
- flex: 0 0 auto;
- display: flex;
- align-items: center;
- gap: var(--space-2);
- justify-content: flex-end;
-}
-
-.agent-dock-wrap--expanded .agent-dock__actions {
- justify-self: end;
-}
-
-.agent-dock button {
- width: var(--control-sm);
- height: var(--control-sm);
- flex: 0 0 auto;
- display: grid;
- place-items: center;
- padding: 0;
- border: 1px solid var(--dock-send-border);
- border-radius: var(--radius-sm);
- color: var(--on-accent);
- background: var(--accent-fill);
-}
-
-.agent-dock button:disabled {
- color: var(--text-faint);
- border-color: var(--line-solid);
- background: var(--panel-3);
-}
-
-.agent-dock .agent-cancel {
- border-color: var(--danger-line-strong);
- color: var(--danger);
- background: var(--danger-soft);
-}
-
-.agent-busy {
- flex: 0 0 auto;
- color: var(--danger);
- animation: spin 1.2s linear infinite;
-}
-
-.agent-dock:has(textarea:focus-visible) {
- outline: var(--focus-ring-width) solid var(--focus-ring-color);
- outline-offset: 2px;
-}
-
-/* --- Provider selector ----------------------------------------------------- */
-
-.agent-provider {
- position: relative;
- flex: 0 0 auto;
-}
-
-.agent-dock .agent-provider__trigger {
- width: auto;
- max-width: 250px;
- min-height: var(--control-sm);
- display: flex;
- align-items: center;
- gap: var(--space-2);
- padding: 0 var(--space-2);
- border: 1px solid var(--line);
- border-radius: var(--radius-sm);
- color: var(--text-secondary);
- background: var(--wash-1);
- box-shadow: none;
- font-size: var(--text-sm);
- font-weight: var(--weight-semibold);
-}
-
-.agent-dock .agent-provider__trigger:hover:not(:disabled),
-.agent-dock .agent-provider__trigger[aria-expanded="true"] {
- border-color: var(--line-hover);
- color: var(--text-primary);
- background: var(--wash-2);
-}
-
-.agent-provider__name {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.agent-provider__trigger > svg {
- flex: 0 0 auto;
- color: var(--text-muted);
-}
-
-.agent-dock .agent-provider__trigger:disabled {
- color: var(--text-faint);
- background: var(--panel-3);
- cursor: not-allowed;
-}
-
-.agent-provider__trigger:disabled .agent-provider__name,
-.agent-provider__trigger:disabled > svg {
- opacity: 0.6;
-}
-
-.agent-provider__options {
- position: absolute;
- right: 0;
- bottom: calc(100% + var(--space-2));
- z-index: 30;
- min-width: 180px;
- padding: var(--space-1);
- border: 1px solid var(--line-strong);
- border-radius: var(--radius-md);
- background: var(--panel-2);
- box-shadow: var(--shadow);
-}
-
-.agent-provider__option {
- display: grid;
- grid-template-columns: 8px minmax(0, 1fr) 14px;
- align-items: center;
- gap: var(--space-2);
- min-height: var(--control-md);
- padding: var(--space-2) var(--space-3);
- border-radius: var(--radius-sm);
- color: var(--text-secondary);
- font-size: var(--text-sm);
- cursor: pointer;
-}
-
-.agent-provider__option[aria-selected="true"] {
- color: var(--accent-bright);
-}
-
-.agent-provider__option--active {
- background: var(--wash-2);
-}
-
-.agent-provider-light {
- width: 8px;
- height: 8px;
- flex: 0 0 auto;
- display: grid;
- place-items: center;
-}
-
-.agent-provider-light i {
- width: 8px;
- height: 8px;
- display: block;
- border-radius: 50%;
- background: var(--text-faint);
-}
-
-/* Provider state is real information — every state gets a truthful colour. */
-.agent-provider--ready i {
- background: var(--success);
- box-shadow: 0 0 8px var(--success-glow);
-}
-
-.agent-provider--authRequired i,
-.agent-provider--notInstalled i {
- background: var(--warning);
-}
-
-.agent-provider--unavailable i {
- background: var(--danger);
-}
-
-.agent-provider--disabled i,
-.agent-provider--unknown i {
- background: var(--text-faint);
-}
-
-/* --- Conversation overlay -------------------------------------------------- */
-
-.agent-conversation {
- user-select: text;
- min-height: 0;
- flex: 1 1 auto;
- overflow: auto;
- margin-bottom: var(--space-3);
- padding: var(--space-2);
- border: 1px solid var(--line-solid);
- border-radius: var(--radius-md);
- background: var(--glass);
- box-shadow: var(--shadow);
- backdrop-filter: blur(12px);
-}
-
-.agent-dock-wrap--expanded .agent-conversation {
- background: var(--bg);
-}
-
-.agent-conversation p {
- display: grid;
- grid-template-columns: 80px minmax(0, 1fr);
- gap: var(--space-3);
- margin: 0;
- padding: var(--space-3);
- color: var(--text-secondary);
- font-size: var(--text-base);
- line-height: var(--leading-normal);
-}
-
-.agent-conversation p > span {
- min-width: 0;
- white-space: pre-wrap;
- overflow-wrap: anywhere;
-}
-
-.agent-conversation p + p {
- border-top: 1px solid var(--line);
-}
-
-.agent-conversation b {
- color: var(--accent-bright);
- font-size: var(--text-xs);
- font-weight: var(--weight-bold);
- line-height: var(--leading-normal);
- letter-spacing: var(--tracking-label);
- text-transform: uppercase;
-}
-
-.agent-conversation__user b {
- color: var(--text-muted);
-}
-
-.agent-conversation__assistant b {
- color: var(--accent-bright);
-}
-
-.agent-conversation__output b {
- color: var(--accent-bright);
-}
-
-.agent-conversation__validation,
-.agent-conversation__validation b {
- color: var(--warning);
-}
-
-.agent-conversation__system,
-.agent-conversation__empty {
- color: var(--text-muted);
-}
-
-.agent-conversation__error,
-.agent-conversation__error b {
- color: var(--danger) !important;
-}
-
-.agent-conversation__waiting-dots {
- min-height: 1.5em;
- display: inline-flex;
- align-items: center;
- gap: var(--space-1);
-}
-
-.agent-conversation__waiting-dots i {
- width: 5px;
- height: 5px;
- display: block;
- border-radius: 50%;
- background: var(--accent-bright);
- animation: agent-waiting-dot 1.1s ease-in-out infinite;
-}
-
-.agent-conversation__waiting-dots i:nth-child(2) {
- animation-delay: 0.14s;
-}
-
-.agent-conversation__waiting-dots i:nth-child(3) {
- animation-delay: 0.28s;
-}
-
-@keyframes agent-waiting-dot {
- 0%, 60%, 100% {
- opacity: 0.35;
- transform: translateY(0);
- }
- 30% {
- opacity: 1;
- transform: translateY(-3px);
- }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .project-agent-row,
- .agent-expanded-content {
- transition: none;
- }
-
- /* Keep processing feedback moving even when decorative motion is reduced.
- These override the global reduced-motion animation reset in base.css. */
- .agent-busy {
- animation-duration: 1.2s !important;
- animation-iteration-count: infinite !important;
- }
-
- .agent-conversation__waiting-dots i {
- animation-duration: 1.1s !important;
- animation-iteration-count: infinite !important;
- }
-}
-
/* --- Responsive ------------------------------------------------------------ */
/* The window minimum is 900px (tauri.conf.json), so the chrome has to reach