7a95097cc7
- Redesign dash/history/notifications/trace pages with unified CSS framework (ui.css): cards, badges, scrollable tables, responsive grid, PWA shell. - Add /voice page with chat-bubble transcript, listening indicator, and push-to-talk button for voice interaction. - Add mavweb.js: client-side JS for live transcript polling, auto-scroll, push-to-talk, and service-worker registration. - Update PWA manifest, icon, and service-worker for installable web app. - Add WebAuthn credential management (register/list/delete) with modal UI. - Update main.go: /voice route, WebAuthn handlers, new page navigation. - Update handlers_test.go for new voice and WebAuthn routes.
721 lines
23 KiB
CSS
721 lines
23 KiB
CSS
/* ═══════════════════════════════════════════════
|
|
Ethos design system for Maven
|
|
accent: warm violet #A78BFA · motif: breath dots
|
|
Tokens → layout → components → utilities
|
|
No literal colors, spacing, radii, or font sizes
|
|
in component code — everything comes from :root.
|
|
═══════════════════════════════════════════════ */
|
|
|
|
/* ── Ethos Design Tokens (warm, brown-tinted neutral ramp) ── */
|
|
:root {
|
|
/* Neutrals — warm room, not cool grey */
|
|
--ethos-bg0: #14110D;
|
|
--ethos-bg1: #1B1712;
|
|
--ethos-bg2: #221D17;
|
|
--ethos-surface0: #221D17;
|
|
--ethos-surface1: #2C261D;
|
|
--ethos-surface2: #372F24;
|
|
--ethos-border: rgba(244, 234, 220, 0.09);
|
|
--ethos-border-hi: rgba(244, 234, 220, 0.16);
|
|
--ethos-text: #F4EEE4;
|
|
--ethos-secondary: #B4AA98;
|
|
--ethos-muted: #9C917D;
|
|
--ethos-disabled: #756C5C;
|
|
|
|
/* Accent — Maven: warm violet, single use (selected/focused/active) */
|
|
--ethos-accent: #A78BFA;
|
|
--ethos-accent-hi: #C1AEFC;
|
|
--ethos-accent-dim: rgba(167, 139, 250, 0.14);
|
|
--ethos-accent-line: rgba(167, 139, 250, 0.32);
|
|
--ethos-accent-glow: rgba(167, 139, 250, 0.4);
|
|
|
|
/* Semantic colors */
|
|
--ethos-green: #6FBF8B; /* running / healthy / success */
|
|
--ethos-amber: #E0A855; /* warning / paused */
|
|
--ethos-red: #E0715F; /* failed / danger */
|
|
--ethos-purple: #A78BFA; /* ai agents / llms — same family as accent */
|
|
--ethos-cyan: #5EBFC4; /* network */
|
|
--ethos-orange: #D9895A; /* build */
|
|
|
|
/* Typography — Geist for human copy, Geist Mono for machine values */
|
|
--ethos-font: 'Geist', -apple-system, system-ui, sans-serif;
|
|
--ethos-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
|
|
|
/* Font sizes */
|
|
--ethos-fs-xs: 11px;
|
|
--ethos-fs-sm: 12px;
|
|
--ethos-fs-base: 14px;
|
|
--ethos-fs-lg: 16px;
|
|
--ethos-fs-xl: 18px;
|
|
--ethos-fs-2xl: 24px;
|
|
--ethos-fs-3xl: 32px;
|
|
|
|
/* Spacing — 8px grid */
|
|
--ethos-space-1: 4px;
|
|
--ethos-space-2: 8px;
|
|
--ethos-space-3: 12px;
|
|
--ethos-space-4: 16px;
|
|
--ethos-space-5: 24px;
|
|
--ethos-space-6: 32px;
|
|
--ethos-space-7: 40px;
|
|
--ethos-space-8: 48px;
|
|
--ethos-space-9: 64px;
|
|
|
|
/* Radius */
|
|
--ethos-radius: 8px;
|
|
--ethos-radius-lg: 12px;
|
|
--ethos-radius-chip: 999px;
|
|
|
|
/* Shadows — soft warm light, no glass, no glow-blur */
|
|
--ethos-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
--ethos-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.28);
|
|
|
|
/* Motion — mechanical, no bounce */
|
|
--ethos-motion-fast: 130ms cubic-bezier(0.2, 0, 0, 1);
|
|
--ethos-motion: 170ms cubic-bezier(0.2, 0, 0, 1);
|
|
|
|
/* Legacy aliases for backward compat during migration */
|
|
--bg: var(--ethos-bg1);
|
|
--panel: var(--ethos-surface0);
|
|
--line: var(--ethos-border);
|
|
--border: var(--ethos-border);
|
|
--fg: var(--ethos-text);
|
|
--soft: var(--ethos-secondary);
|
|
--muted: var(--ethos-muted);
|
|
--dim: var(--ethos-disabled);
|
|
--accent: var(--ethos-accent);
|
|
--ok: var(--ethos-green);
|
|
--warn: var(--ethos-amber);
|
|
--err: var(--ethos-red);
|
|
--purple: var(--ethos-purple);
|
|
--surface-page: var(--ethos-bg0);
|
|
--surface-card: var(--ethos-surface0);
|
|
--surface-raised: var(--ethos-surface1);
|
|
--surface-input: var(--ethos-bg2);
|
|
--surface-hover: var(--ethos-surface1);
|
|
--fs-xs: var(--ethos-fs-xs);
|
|
--fs-sm: var(--ethos-fs-sm);
|
|
--fs-base: var(--ethos-fs-base);
|
|
--fs-lg: var(--ethos-fs-lg);
|
|
--fs-xl: var(--ethos-fs-xl);
|
|
--space-xs: var(--ethos-space-1);
|
|
--space-sm: var(--ethos-space-2);
|
|
--space-md: var(--ethos-space-3);
|
|
--space-lg: var(--ethos-space-4);
|
|
--space-xl: var(--ethos-space-5);
|
|
--radius-sm: var(--ethos-radius);
|
|
--radius-md: var(--ethos-radius);
|
|
--radius-lg: var(--ethos-radius);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
|
|
}
|
|
|
|
/* ── Reset / Base ── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
background: var(--ethos-bg0);
|
|
color: var(--ethos-text);
|
|
font: var(--ethos-fs-base)/1.5 var(--ethos-font);
|
|
-webkit-text-size-adjust: 100%;
|
|
min-height: 100vh;
|
|
overflow: hidden; /* shell handles scrolling */
|
|
}
|
|
a { color: var(--ethos-accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
/* ── Typography ── */
|
|
h1 {
|
|
font-size: var(--ethos-fs-xl);
|
|
font-weight: 500;
|
|
color: var(--ethos-text);
|
|
margin: 0 0 var(--ethos-space-4);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
h2 {
|
|
font-size: var(--ethos-fs-base);
|
|
font-weight: 500;
|
|
color: var(--ethos-secondary);
|
|
margin: 0 0 var(--ethos-space-3);
|
|
}
|
|
h3 {
|
|
font-size: var(--ethos-fs-sm);
|
|
font-weight: 500;
|
|
color: var(--ethos-muted);
|
|
margin: 0 0 var(--ethos-space-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
h1 small, h2 small, h3 small { color: var(--ethos-muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
|
|
|
|
/* ── Shell Layout ── */
|
|
.shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Top Bar */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 40px;
|
|
padding: 0 var(--ethos-space-4);
|
|
background: var(--ethos-bg1);
|
|
border-bottom: 1px solid var(--ethos-border);
|
|
gap: var(--ethos-space-3);
|
|
flex-shrink: 0;
|
|
-webkit-app-region: drag;
|
|
}
|
|
.topbar > * { -webkit-app-region: no-drag; }
|
|
.breadcrumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
font-size: var(--ethos-fs-sm);
|
|
color: var(--ethos-muted);
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.breadcrumbs .sep { color: var(--ethos-disabled); margin: 0 2px; }
|
|
.breadcrumbs .current { color: var(--ethos-text); font-weight: 500; }
|
|
.topbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
}
|
|
|
|
/* Connection status dot */
|
|
.conn-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-muted);
|
|
}
|
|
.conn-status .dot { width: 6px; height: 6px; border-radius: 50%; }
|
|
.conn-status .dot.online { background: var(--ethos-green); }
|
|
.conn-status .dot.offline { background: var(--ethos-disabled); }
|
|
|
|
/* Shell Body — sidebar + content + inspector */
|
|
.shell-body {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 200px;
|
|
min-width: 200px;
|
|
background: var(--ethos-bg1);
|
|
border-right: 1px solid var(--ethos-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
padding: var(--ethos-space-3) 0;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-section { margin-bottom: var(--ethos-space-3); }
|
|
.sidebar-label {
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding: var(--ethos-space-1) var(--ethos-space-4);
|
|
margin-bottom: var(--ethos-space-1);
|
|
font-weight: 500;
|
|
}
|
|
.sidebar a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
padding: var(--ethos-space-1) var(--ethos-space-4);
|
|
font-size: var(--ethos-fs-sm);
|
|
color: var(--ethos-secondary);
|
|
text-decoration: none;
|
|
border-left: 2px solid transparent;
|
|
height: 28px;
|
|
transition: background var(--ethos-motion), color var(--ethos-motion), border-color var(--ethos-motion);
|
|
}
|
|
.sidebar a:hover { background: var(--ethos-surface-hover); color: var(--ethos-text); text-decoration: none; }
|
|
.sidebar a.active {
|
|
color: var(--ethos-accent);
|
|
background: var(--ethos-accent-dim);
|
|
border-left-color: var(--ethos-accent);
|
|
}
|
|
.sidebar a .icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
|
|
.sidebar a.active .icon { opacity: 1; }
|
|
|
|
/* Main Content */
|
|
.content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: var(--ethos-space-5);
|
|
background: var(--ethos-bg0);
|
|
}
|
|
.content-wide { max-width: 960px; }
|
|
|
|
/* Inspector Panel (right side) */
|
|
.inspector {
|
|
width: 0;
|
|
overflow: hidden;
|
|
background: var(--ethos-bg1);
|
|
border-left: 1px solid var(--ethos-border);
|
|
transition: width var(--ethos-motion);
|
|
flex-shrink: 0;
|
|
}
|
|
.inspector.open { width: 400px; }
|
|
.inspector-inner {
|
|
width: 400px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.inspector-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--ethos-space-3) var(--ethos-space-4);
|
|
border-bottom: 1px solid var(--ethos-border);
|
|
font-size: var(--ethos-fs-sm);
|
|
font-weight: 500;
|
|
color: var(--ethos-text);
|
|
flex-shrink: 0;
|
|
}
|
|
.inspector-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--ethos-muted);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: var(--ethos-radius);
|
|
line-height: 1;
|
|
}
|
|
.inspector-close:hover { color: var(--ethos-text); background: var(--ethos-surface-hover); }
|
|
.inspector-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--ethos-space-4);
|
|
font-size: var(--ethos-fs-sm);
|
|
}
|
|
|
|
/* ── Command Palette ── */
|
|
.cmd-palette-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding-top: 12vh;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity var(--ethos-motion);
|
|
}
|
|
.cmd-palette-overlay.open { opacity: 1; pointer-events: auto; }
|
|
.cmd-palette {
|
|
width: 560px;
|
|
max-width: 90vw;
|
|
max-height: 60vh;
|
|
background: var(--ethos-surface0);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: var(--ethos-radius);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.cmd-palette-input {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--ethos-space-3) var(--ethos-space-4);
|
|
border-bottom: 1px solid var(--ethos-border);
|
|
gap: var(--ethos-space-2);
|
|
}
|
|
.cmd-palette-input input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--ethos-text);
|
|
font: var(--ethos-fs-base) var(--ethos-font);
|
|
outline: none;
|
|
}
|
|
.cmd-palette-input input::placeholder { color: var(--ethos-disabled); }
|
|
.cmd-palette-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--ethos-space-1) 0;
|
|
}
|
|
.cmd-palette-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
padding: var(--ethos-space-2) var(--ethos-space-4);
|
|
color: var(--ethos-secondary);
|
|
font-size: var(--ethos-fs-sm);
|
|
cursor: pointer;
|
|
transition: background var(--ethos-motion-fast);
|
|
text-decoration: none;
|
|
}
|
|
.cmd-palette-item:hover,
|
|
.cmd-palette-item.selected { background: var(--ethos-surface-hover); color: var(--ethos-text); text-decoration: none; }
|
|
.cmd-palette-item .kbd {
|
|
margin-left: auto;
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-disabled);
|
|
font-family: var(--ethos-mono);
|
|
}
|
|
|
|
/* ── Search Bar (inline, slim) ── */
|
|
.search-trigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: var(--ethos-bg2);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: var(--ethos-radius);
|
|
padding: 2px 8px;
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-muted);
|
|
cursor: pointer;
|
|
height: 24px;
|
|
transition: border-color var(--ethos-motion-fast);
|
|
}
|
|
.search-trigger:hover { border-color: var(--ethos-muted); }
|
|
.search-trigger .kbd-hint {
|
|
font-family: var(--ethos-mono);
|
|
color: var(--ethos-disabled);
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* ── Cards ── */
|
|
.card {
|
|
background: var(--ethos-surface0);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: var(--ethos-radius);
|
|
padding: var(--ethos-space-3) var(--ethos-space-4);
|
|
margin-bottom: var(--ethos-space-4);
|
|
}
|
|
.card-title {
|
|
font-size: var(--ethos-fs-sm);
|
|
font-weight: 500;
|
|
color: var(--ethos-secondary);
|
|
margin: 0 0 var(--ethos-space-2);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
}
|
|
.card-sub {
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-muted);
|
|
margin: 0 0 var(--ethos-space-2);
|
|
}
|
|
.card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-2);
|
|
margin-top: var(--ethos-space-3);
|
|
}
|
|
|
|
/* ── Tables ── */
|
|
.scroll { overflow-x: auto; margin-bottom: var(--ethos-space-2); }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td {
|
|
padding: var(--ethos-space-1) var(--ethos-space-2);
|
|
text-align: left;
|
|
vertical-align: top;
|
|
border-bottom: 1px solid var(--ethos-border);
|
|
}
|
|
th {
|
|
color: var(--ethos-muted);
|
|
font-size: var(--ethos-fs-xs);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
white-space: nowrap;
|
|
font-weight: 500;
|
|
padding-top: var(--ethos-space-2);
|
|
padding-bottom: var(--ethos-space-1);
|
|
}
|
|
td { color: var(--ethos-secondary); font-size: var(--ethos-fs-sm); }
|
|
tr:hover td { background: var(--ethos-surface-hover); }
|
|
tr.clickable { cursor: pointer; }
|
|
.mono { font-family: var(--ethos-mono); }
|
|
code, .key {
|
|
font-family: var(--ethos-mono);
|
|
color: var(--ethos-accent);
|
|
font-size: var(--ethos-fs-sm);
|
|
}
|
|
|
|
/* ── Status Vocabulary ── */
|
|
/* Only these literals: Healthy, Running, Starting, Stopping, Stopped,
|
|
Paused, Waiting, Queued, Completed, Failed, Warning, Offline, Unknown */
|
|
.status-Healthy,
|
|
.status-Running,
|
|
.status-Completed { color: var(--ethos-green); }
|
|
|
|
.status-Starting,
|
|
.status-Waiting,
|
|
.status-Queued { color: var(--ethos-amber); }
|
|
|
|
.status-Stopping { color: var(--ethos-amber); }
|
|
.status-Stopped,
|
|
.status-Paused,
|
|
.status-Offline { color: var(--ethos-disabled); }
|
|
|
|
.status-Failed { color: var(--ethos-red); }
|
|
.status-Warning { color: var(--ethos-amber); }
|
|
.status-Unknown { color: var(--ethos-muted); }
|
|
|
|
/* Legacy status aliases — mapped to ethos vocab intent during migration */
|
|
.green, .pres, .acted { color: var(--ethos-green); }
|
|
.pending, .away, .gray { color: var(--ethos-disabled); }
|
|
.snoozed { color: var(--ethos-amber); }
|
|
.ignored, .red { color: var(--ethos-red); }
|
|
.updated, .muted { color: var(--ethos-muted); font-size: var(--ethos-fs-xs); }
|
|
|
|
.empty {
|
|
color: var(--ethos-disabled);
|
|
padding: var(--ethos-space-8) var(--ethos-space-4);
|
|
text-align: center;
|
|
font-size: var(--ethos-fs-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--ethos-space-3);
|
|
}
|
|
.empty .icon { opacity: 0.4; margin-bottom: var(--ethos-space-1); }
|
|
.empty .action { margin-top: var(--ethos-space-2); }
|
|
.voided { opacity: 0.45; text-decoration: line-through; }
|
|
.void-badge { color: var(--ethos-muted); font-size: var(--ethos-fs-xs); margin-right: var(--ethos-space-1); }
|
|
|
|
/* ── Status Dot ── */
|
|
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
|
|
.dot-ok { background: var(--ethos-green); }
|
|
.dot-warn { background: var(--ethos-amber); }
|
|
.dot-err { background: var(--ethos-red); }
|
|
.dot-dim { background: var(--ethos-disabled); }
|
|
.dot-purple { background: var(--ethos-purple); }
|
|
.dot-cyan { background: var(--ethos-cyan); }
|
|
.dot-online { background: var(--ethos-green); box-shadow: 0 0 6px var(--ethos-green); }
|
|
.dot-offline { background: var(--ethos-disabled); }
|
|
|
|
/* ── Badges ── */
|
|
.badge {
|
|
font-size: var(--ethos-fs-xs);
|
|
color: var(--ethos-secondary);
|
|
background: var(--ethos-surface1);
|
|
padding: 2px 6px;
|
|
border-radius: var(--ethos-radius-chip);
|
|
white-space: nowrap;
|
|
font-weight: 500;
|
|
}
|
|
.badge-accent { color: var(--ethos-accent-hi); background: var(--ethos-accent-dim); }
|
|
.badge-ok { color: var(--ethos-green); background: rgba(111, 191, 139, 0.14); }
|
|
.badge-warn { color: var(--ethos-amber); background: rgba(224, 168, 85, 0.14); }
|
|
.badge-err { color: var(--ethos-red); background: rgba(224, 113, 95, 0.14); }
|
|
.badge-purple { color: var(--ethos-purple); background: var(--ethos-accent-dim); }
|
|
|
|
/* ── Buttons ── */
|
|
.btn {
|
|
font: inherit;
|
|
font-size: var(--ethos-fs-sm);
|
|
background: transparent;
|
|
color: var(--ethos-secondary);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: var(--ethos-radius);
|
|
padding: var(--ethos-space-1) var(--ethos-space-3);
|
|
cursor: pointer;
|
|
transition: border-color var(--ethos-motion), background var(--ethos-motion), color var(--ethos-motion);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--ethos-space-1);
|
|
height: 28px;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:hover { border-color: var(--ethos-muted); color: var(--ethos-text); background: var(--ethos-surface-hover); }
|
|
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
.btn:focus-visible { outline: 2px solid var(--ethos-accent); outline-offset: 2px; }
|
|
.btn-primary {
|
|
background: var(--ethos-accent);
|
|
color: var(--ethos-bg0);
|
|
border-color: var(--ethos-accent);
|
|
font-weight: 500;
|
|
}
|
|
.btn-primary:hover { background: var(--ethos-accent-hi); border-color: var(--ethos-accent-hi); color: var(--ethos-bg0); }
|
|
.btn-danger { border-color: var(--ethos-red); color: var(--ethos-red); }
|
|
.btn-danger:hover { border-color: var(--ethos-red); background: rgba(224, 113, 95, 0.14); color: var(--ethos-red); }
|
|
.btn-ghost { border-color: transparent; color: var(--ethos-muted); }
|
|
.btn-ghost:hover { border-color: transparent; background: var(--ethos-surface-hover); color: var(--ethos-text); }
|
|
.btn-sm { height: 22px; font-size: var(--ethos-fs-xs); padding: 0 var(--ethos-space-2); }
|
|
.btn-lg { height: 34px; font-size: var(--ethos-fs-base); padding: var(--ethos-space-1) var(--ethos-space-4); }
|
|
|
|
/* ── Icon Button ── */
|
|
.icon-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--ethos-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--ethos-radius);
|
|
transition: background var(--ethos-motion-fast), color var(--ethos-motion-fast);
|
|
}
|
|
.icon-btn:hover { background: var(--ethos-surface-hover); color: var(--ethos-text); }
|
|
.icon-btn:focus-visible { outline: 2px solid var(--ethos-accent); outline-offset: 2px; }
|
|
|
|
/* ── Form Elements ── */
|
|
input[type=text], input[type=url], input[type=search], select, textarea {
|
|
font: inherit;
|
|
font-size: var(--ethos-fs-sm);
|
|
background: var(--ethos-bg2);
|
|
color: var(--ethos-text);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: var(--ethos-radius);
|
|
padding: var(--ethos-space-1) var(--ethos-space-2);
|
|
max-width: 100%;
|
|
transition: border-color var(--ethos-motion-fast);
|
|
height: 28px;
|
|
}
|
|
input[type=text]:focus, input[type=url]:focus, input[type=search]:focus, select:focus, textarea:focus {
|
|
border-color: var(--ethos-accent);
|
|
outline: none;
|
|
}
|
|
input[type=checkbox] { accent-color: var(--ethos-accent); width: 14px; height: 14px; vertical-align: middle; }
|
|
label { color: var(--ethos-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: var(--ethos-space-1); font-size: var(--ethos-fs-sm); }
|
|
textarea { height: auto; min-height: 60px; }
|
|
|
|
/* ── Messages / Feedback ── */
|
|
.msg {
|
|
margin: var(--ethos-space-2) 0;
|
|
padding: var(--ethos-space-2) var(--ethos-space-3);
|
|
border-radius: var(--ethos-radius);
|
|
border: 1px solid var(--ethos-border);
|
|
font-size: var(--ethos-fs-sm);
|
|
color: var(--ethos-secondary);
|
|
}
|
|
.msg-ok { border-color: var(--ethos-green); color: var(--ethos-green); }
|
|
.msg-err { border-color: var(--ethos-red); color: var(--ethos-red); }
|
|
#msg { white-space: pre-wrap; }
|
|
|
|
/* ── Collapsible Details ── */
|
|
details { color: var(--ethos-secondary); font-size: var(--ethos-fs-sm); }
|
|
summary { cursor: pointer; color: var(--ethos-muted); transition: color var(--ethos-motion); user-select: none; }
|
|
summary:hover { color: var(--ethos-text); }
|
|
details[open] { margin-top: var(--ethos-space-1); }
|
|
details[open] > summary { margin-bottom: var(--ethos-space-1); }
|
|
|
|
/* ── Skeleton Loading ── */
|
|
.skeleton {
|
|
background: linear-gradient(90deg, var(--ethos-surface0) 25%, var(--ethos-surface1) 50%, var(--ethos-surface0) 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s ease-in-out infinite;
|
|
border-radius: var(--ethos-radius);
|
|
}
|
|
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
|
.skeleton-line { height: 12px; margin-bottom: var(--ethos-space-2); width: 100%; }
|
|
.skeleton-line:last-child { width: 60%; }
|
|
|
|
/* ── Keyboard Shortcut Hints ── */
|
|
kbd, .kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: var(--ethos-mono);
|
|
font-size: 10px;
|
|
color: var(--ethos-disabled);
|
|
background: var(--ethos-bg2);
|
|
border: 1px solid var(--ethos-border);
|
|
border-radius: 4px;
|
|
padding: 1px 5px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ── Notification / Nudge item ── */
|
|
.nudge-item {
|
|
display: flex;
|
|
gap: var(--ethos-space-3);
|
|
padding: var(--ethos-space-2) 0;
|
|
border-bottom: 1px solid var(--ethos-border);
|
|
align-items: flex-start;
|
|
}
|
|
.nudge-item:last-child { border-bottom: none; }
|
|
.nudge-icon { flex-shrink: 0; margin-top: 2px; }
|
|
.nudge-body { flex: 1; min-width: 0; }
|
|
.nudge-rule { font-size: var(--ethos-fs-xs); color: var(--ethos-muted); }
|
|
.nudge-msg { font-size: var(--ethos-fs-sm); color: var(--ethos-secondary); margin-top: 2px; }
|
|
.nudge-meta { display: flex; gap: var(--ethos-space-2); align-items: center; margin-top: var(--ethos-space-1); }
|
|
|
|
/* ── Tooltip / Hint ── */
|
|
.hint { font-size: var(--ethos-fs-xs); color: var(--ethos-muted); }
|
|
.hint-icon { cursor: help; color: var(--ethos-disabled); }
|
|
|
|
/* ── Key-value pairs ── */
|
|
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--ethos-space-1) var(--ethos-space-3); font-size: var(--ethos-fs-sm); }
|
|
.kv dt { color: var(--ethos-muted); white-space: nowrap; }
|
|
.kv dd { color: var(--ethos-secondary); word-break: break-all; }
|
|
|
|
/* ── Section (page section header) ── */
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--ethos-space-3);
|
|
gap: var(--ethos-space-3);
|
|
}
|
|
.section-header h2 { margin-bottom: 0; }
|
|
|
|
/* ── Utilities ── */
|
|
.val { word-break: break-all; max-width: 20rem; }
|
|
.text-max { max-width: 22rem; }
|
|
.input-wide { width: 20rem; }
|
|
.flex { display: flex; }
|
|
.flex-col { display: flex; flex-direction: column; }
|
|
.items-center { align-items: center; }
|
|
.gap-1 { gap: var(--ethos-space-1); }
|
|
.gap-2 { gap: var(--ethos-space-2); }
|
|
.gap-3 { gap: var(--ethos-space-3); }
|
|
.gap-4 { gap: var(--ethos-space-4); }
|
|
.mt-1 { margin-top: var(--ethos-space-1); }
|
|
.mt-2 { margin-top: var(--ethos-space-2); }
|
|
.mt-3 { margin-top: var(--ethos-space-3); }
|
|
.mt-4 { margin-top: var(--ethos-space-4); }
|
|
.mb-1 { margin-bottom: var(--ethos-space-1); }
|
|
.mb-2 { margin-bottom: var(--ethos-space-2); }
|
|
.mb-3 { margin-bottom: var(--ethos-space-3); }
|
|
.mb-4 { margin-bottom: var(--ethos-space-4); }
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 768px) {
|
|
.sidebar { width: 48px; min-width: 48px; }
|
|
.sidebar .sidebar-label { display: none; }
|
|
.sidebar a { justify-content: center; padding: var(--ethos-space-2) 0; border-left: none; }
|
|
.sidebar a span:not(.icon) { display: none; }
|
|
.inspector.open { width: 100%; position: fixed; inset: 0; z-index: 100; border-left: none; }
|
|
.content { padding: var(--ethos-space-3); }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.sidebar { width: 0; min-width: 0; overflow: hidden; padding: 0; border-right: none; }
|
|
.content { padding: var(--ethos-space-2); }
|
|
.cmd-palette { width: 100%; max-width: 100%; max-height: 80vh; border-radius: 0; }
|
|
.cmd-palette-overlay { padding-top: 0; align-items: flex-start; }
|
|
}
|
|
|
|
/* ── Print ── */
|
|
@media print {
|
|
.sidebar, .topbar, .inspector { display: none; }
|
|
.shell, .shell-body { display: block; height: auto; overflow: visible; }
|
|
.content { overflow: visible; padding: 0; }
|
|
}
|