mirror of
https://github.com/razzant/ouroboros.git
synced 2026-08-04 16:19:50 +00:00
C7.1 — fix + SSOT segment primitive: - renderSegmentedField (page_header.js), sibling of renderTabStrip, is the single source for the settings effort/mode toggles. All 12 segmented groups (6 effort fields + 6 mode toggles) now render through it instead of duplicated inline button markup; data-effort-* hooks and per-group modifiers preserved. - new .ui-segment base look (settings.css) centers the label (inline-flex + min-height + line-height) — fixes the effort-button text sitting top-left. Settings-specific overrides (column counts, accent colors) stay on .settings-effort-*. C7.2 — semantic color SSOT: - role tokens in :root (--accent-task/-system/-user/-project, --tone-ok/-warn/ -danger) so components reference a ROLE, not a raw hue. - --user* and --system* tokens; user + system chat bubbles now read from them (pixel-identical, hue defined once). - onboarding.css mirrors the same role vocabulary by value (it is inlined standalone and cannot import style.css); project + user match exactly. C7.3 — project hue: - --project moves from calm indigo (#818cf8, too close to the user-message blue) to vivid fuchsia #e879f9, with every tint sharing one consistent hue. Project panel glow, converted-card chip, and the onboarding ambient gradient follow; stale "indigo" comments updated to fuchsia. Tests: page-chrome + runtime-mode static assertions updated from inline data-effort-value markup to the renderSegmentedField options (intent preserved). UI before/after browser verification pending (with C4.5).
733 lines
13 KiB
CSS
733 lines
13 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #0b0910;
|
|
--panel: rgba(20, 18, 28, 0.92);
|
|
--panel-2: rgba(255, 255, 255, 0.04);
|
|
--panel-3: rgba(255, 255, 255, 0.03);
|
|
--border: rgba(255, 255, 255, 0.10);
|
|
--ui-card-bg: var(--panel);
|
|
--ui-card-border: var(--border);
|
|
--ui-tone-ok: var(--green);
|
|
--ui-tone-danger: var(--red);
|
|
--border-strong: rgba(232, 93, 111, 0.35);
|
|
--text: #edf2f7;
|
|
--muted: rgba(237, 242, 247, 0.62);
|
|
--ghost: rgba(237, 242, 247, 0.28);
|
|
--accent: #e85d6f;
|
|
--accent-2: #fb7185;
|
|
--green: #34d399;
|
|
--green-dim: rgba(52, 211, 153, 0.14);
|
|
--amber: #f59e0b;
|
|
--amber-dim: rgba(245, 158, 11, 0.12);
|
|
--red: #ef4444;
|
|
--red-dim: rgba(239, 68, 68, 0.12);
|
|
--shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
|
|
/* Shared design-system vocabulary (C7.2): the onboarding page is inlined
|
|
standalone (it cannot import style.css), so it mirrors the same role tokens
|
|
by VALUE — project fuchsia and the owner-voice blue match style.css exactly,
|
|
and the role names (task/system/user/project, ok/warn/danger) read the same
|
|
on both surfaces. The base brand red/green stay as defined above. */
|
|
--project: #e879f9;
|
|
--user: #6e96d2;
|
|
--accent-task: var(--accent);
|
|
--accent-system: var(--amber);
|
|
--accent-user: var(--user);
|
|
--accent-project: var(--project);
|
|
--tone-ok: var(--green);
|
|
--tone-warn: var(--amber);
|
|
--tone-danger: var(--red);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
padding: 16px;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(232, 93, 111, 0.12), transparent 35%),
|
|
radial-gradient(circle at top right, rgba(232, 121, 249, 0.12), transparent 30%),
|
|
var(--bg);
|
|
color: var(--text);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--ghost);
|
|
}
|
|
|
|
.wizard-shell {
|
|
max-width: 1080px;
|
|
min-height: calc(100vh - 32px);
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
|
|
backdrop-filter: blur(18px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.wizard-header {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.wizard-title {
|
|
margin: 0 0 4px;
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.wizard-subtitle {
|
|
margin: 0;
|
|
max-width: 760px;
|
|
color: var(--muted);
|
|
line-height: 1.42;
|
|
}
|
|
|
|
.wizard-badge {
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel-2);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wizard-steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.wizard-step {
|
|
min-width: 0;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel-2);
|
|
transition: border-color 120ms ease, background 120ms ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.wizard-step.active {
|
|
border-color: var(--border-strong);
|
|
background: rgba(232, 93, 111, 0.09);
|
|
box-shadow: inset 0 0 0 1px rgba(232, 93, 111, 0.12);
|
|
}
|
|
|
|
.wizard-step.done {
|
|
border-color: rgba(52, 211, 153, 0.22);
|
|
}
|
|
|
|
.wizard-step-index {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 0;
|
|
padding: 4px 9px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.07);
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.wizard-step.active .wizard-step-index {
|
|
background: rgba(232, 93, 111, 0.18);
|
|
color: var(--text);
|
|
}
|
|
|
|
.wizard-step-title {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.wizard-step-copy {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.wizard-steps {
|
|
display: flex;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding: 0 2px 4px;
|
|
scroll-snap-type: x proximity;
|
|
}
|
|
|
|
.wizard-step {
|
|
flex: 0 0 min(180px, calc(45vw - 18px));
|
|
scroll-snap-align: start;
|
|
}
|
|
}
|
|
|
|
.wizard-content {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border);
|
|
background: var(--panel);
|
|
}
|
|
|
|
.step-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.step-title {
|
|
margin: 0 0 6px;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.step-copy {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
max-width: 780px;
|
|
line-height: 1.42;
|
|
}
|
|
|
|
.panel-card,
|
|
.summary-card,
|
|
.wizard-choice,
|
|
.wizard-collapse,
|
|
.wizard-runtime-strip {
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--panel-3);
|
|
}
|
|
|
|
.panel-card,
|
|
.summary-card,
|
|
.wizard-choice,
|
|
.wizard-runtime-strip {
|
|
padding: 14px;
|
|
}
|
|
|
|
.panel-card h3,
|
|
.summary-card h3,
|
|
.wizard-choice h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.panel-card p,
|
|
.wizard-choice p,
|
|
.wizard-inline-note,
|
|
.field-note {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.42;
|
|
}
|
|
|
|
.wizard-inline-note code,
|
|
.field-note code {
|
|
padding: 1px 4px;
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.grid.two {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.grid.three {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-grid,
|
|
.wizard-choice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wizard-model-field {
|
|
position: relative;
|
|
}
|
|
|
|
.wizard-model-suggestions {
|
|
position: absolute;
|
|
z-index: 50;
|
|
left: 0;
|
|
right: 0;
|
|
top: 56px;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
background: rgba(18, 20, 26, 0.98);
|
|
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
|
|
}
|
|
|
|
.wizard-model-suggestion {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wizard-model-suggestion:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.field-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.field-label-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
}
|
|
|
|
.field label {
|
|
color: rgba(237, 242, 247, 0.68);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.field-clear {
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
color: rgba(237, 242, 247, 0.48);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.field-clear:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
input,
|
|
select {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: rgba(11, 9, 16, 0.72);
|
|
color: var(--text);
|
|
outline: none;
|
|
}
|
|
|
|
.compatible-model-actions,
|
|
.compatible-model-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.compatible-model-actions {
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.compatible-model-list {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.compatible-load-status {
|
|
margin: 0;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus {
|
|
border-color: var(--border-strong);
|
|
box-shadow: 0 0 0 3px rgba(232, 93, 111, 0.12);
|
|
}
|
|
|
|
.selection-row,
|
|
.footer-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.selection-pill {
|
|
border: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
color: var(--text);
|
|
padding: 10px 14px;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.selection-pill:hover {
|
|
border-color: rgba(255, 255, 255, 0.24);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.selection-pill.active {
|
|
background: rgba(232, 93, 111, 0.16);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.wizard-collapse {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.wizard-collapse summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.wizard-collapse summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.wizard-collapse-body {
|
|
padding: 0 14px 14px;
|
|
}
|
|
|
|
.selection-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 5px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wizard-choice-grid.three {
|
|
/* Runtime-mode picker has three choices, not the default two. */
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.wizard-choice {
|
|
cursor: pointer;
|
|
transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.wizard-choice:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.wizard-choice.active {
|
|
border-color: var(--border-strong);
|
|
background: rgba(232, 93, 111, 0.09);
|
|
}
|
|
|
|
.wizard-choice .tone {
|
|
display: inline-flex;
|
|
margin-bottom: 10px;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.wizard-choice.advisory .tone {
|
|
background: var(--amber-dim);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.wizard-choice.blocking .tone {
|
|
background: var(--green-dim);
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
.wizard-runtime-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.wizard-runtime-status {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wizard-runtime-status[data-tone="ok"] {
|
|
color: var(--ui-tone-ok);
|
|
}
|
|
|
|
.wizard-runtime-status[data-tone="error"] {
|
|
color: var(--ui-tone-danger);
|
|
}
|
|
|
|
.wizard-test-result {
|
|
display: none;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.wizard-test-result[data-tone="ok"] {
|
|
border-color: rgba(52, 211, 153, 0.22);
|
|
color: #86efac;
|
|
}
|
|
|
|
.wizard-test-result[data-tone="warn"] {
|
|
border-color: rgba(245, 158, 11, 0.18);
|
|
color: #fcd34d;
|
|
}
|
|
|
|
.wizard-test-result[data-tone="error"] {
|
|
border-color: rgba(239, 68, 68, 0.18);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.summary-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.summary-kv {
|
|
display: grid;
|
|
grid-template-columns: 200px minmax(0, 1fr);
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.summary-kv strong {
|
|
color: rgba(237, 242, 247, 0.72);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wizard-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.footer-copy {
|
|
max-width: 640px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.btn {
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
|
|
}
|
|
|
|
.btn:hover:not(:disabled) {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-primary {
|
|
min-width: 170px;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
|
border-color: rgba(251, 113, 133, 0.55);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.btn-secondary,
|
|
.btn-ghost {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.42;
|
|
cursor: default;
|
|
transform: none;
|
|
}
|
|
|
|
.wizard-error {
|
|
min-height: 22px;
|
|
color: #fca5a5;
|
|
font-size: 12px;
|
|
}
|
|
|
|
@media (max-height: 820px), (max-width: 900px) {
|
|
.wizard-shell {
|
|
gap: 10px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.wizard-header {
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.wizard-title {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.wizard-subtitle,
|
|
.wizard-step-copy,
|
|
.step-copy,
|
|
.panel-card p,
|
|
.field-note,
|
|
.footer-copy {
|
|
display: none;
|
|
}
|
|
|
|
.wizard-steps {
|
|
gap: 8px;
|
|
}
|
|
|
|
.wizard-step {
|
|
padding: 8px 10px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.wizard-content {
|
|
gap: 12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.step-title {
|
|
margin-bottom: 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.panel-card,
|
|
.summary-card,
|
|
.wizard-choice,
|
|
.wizard-runtime-strip {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
.btn {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.wizard-footer {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.wizard-error {
|
|
min-height: 16px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
body {
|
|
padding: 16px;
|
|
}
|
|
|
|
.wizard-shell {
|
|
min-height: calc(100vh - 32px);
|
|
padding: 14px;
|
|
}
|
|
|
|
.field-grid,
|
|
.grid.two,
|
|
.grid.three,
|
|
.wizard-choice-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.wizard-step {
|
|
flex-basis: 138px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.wizard-step-copy {
|
|
display: none;
|
|
}
|
|
|
|
.wizard-step-title {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.summary-kv {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.wizard-step {
|
|
flex-basis: 92px;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.wizard-step-title {
|
|
display: none;
|
|
}
|
|
}
|