Files
Maven/cmd/mavweb/static/ui.css
kami 5fe8f228c1 feat(mavweb): /ecosystem page consuming Nexus/Praxis/Hexis + shell fixes
Add a read-only /ecosystem page that consumes the sibling services'
JSON APIs (Nexus entities, Praxis attention, Hexis capabilities),
fetched concurrently with honest per-panel error states. Siblings stay
headless — mavweb is their human surface (arch §16). Wired via mavweb
-nexus/-praxis/-hexis flags; mavweb joins the ecosystem compose network.

Fix mobile horizontal overflow across all pages: .content is a flex
child with default min-width:auto, so it refused to shrink below the
tables' intrinsic width. min-width:0 lets wide tables pan inside .scroll
instead of dragging the page sideways. Verified via CDP geometry check
(scrollWidth === clientWidth at 430px).

Also includes in-progress Ethos UI redesign, ecosystem deploy compose,
and planning docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-19 22:04:23 +04:00

839 lines
26 KiB
CSS

/* ═══════════════════════════════════════════════════════════════
ETHOS — design tokens + Maven component styles
Single source of truth. No literal colors/spacing in component
code — everything comes from :root.
═══════════════════════════════════════════════════════════════ */
/* ── Geist — self-hosted, no CDN ── */
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-Variable.woff2') format('woff2');
font-weight: 100 900; font-display: swap;
}
@font-face {
font-family: 'Geist Mono';
src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
font-weight: 100 900; font-display: swap;
}
:root {
/* ── neutral ramp — warm, brown-tinted (dark, default) ── */
--bg-0: #14110D;
--bg-1: #1B1712;
--bg-2: #221D17;
--bg-3: #2C261D;
--bg-4: #372F24;
--line: rgba(244, 234, 220, 0.09);
--line-hi: rgba(244, 234, 220, 0.16);
--text-hi: #F4EEE4;
--text-mid: #B4AA98;
--text-lo: #756C5C;
--text-machine: #9C917D;
/* ── type ── */
--sans: 'Geist', -apple-system, system-ui, sans-serif;
--mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
/* ── motion ── */
--ease: cubic-bezier(0.2, 0, 0, 1);
--fast: 130ms;
--med: 170ms;
/* ── radii ── */
--r-sm: 8px;
--r-md: 12px;
--r-lg: 18px;
--r-xl: 24px;
/* ── elevation ── */
--shadow-soft: 0 2px 8px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.28);
--shadow-lift: 0 4px 14px rgba(0,0,0,0.40), 0 20px 48px rgba(0,0,0,0.34);
/* ── accent fallback (neutral) ── */
--accent: var(--text-mid);
--accent-hi: var(--text-hi);
--accent-dim: rgba(244, 234, 220, 0.10);
--accent-line: rgba(244, 234, 220, 0.24);
--accent-glow: rgba(244, 234, 220, 0.14);
/* ── semantic — shared status vocabulary ── */
--green: #6FBF8B;
--amber: #E0A855;
--red: #E0715F;
--purple: #A78BFA;
--cyan: #5EBFC4;
--orange: #D9895A;
/* ── spacing (8px grid) ── */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 40px;
--space-8: 48px;
--space-9: 64px;
/* ── typography scale ── */
--fs-xs: 11px;
--fs-sm: 13px;
--fs-base: 14px;
--fs-lg: 16px;
--fs-xl: 18px;
--fs-2xl: 24px;
--fs-3xl: 32px;
/* ── legacy ethos-* aliases (migration compat) ── */
--ethos-bg0: var(--bg-0);
--ethos-bg1: var(--bg-1);
--ethos-bg2: var(--bg-2);
--ethos-surface0: var(--bg-2);
--ethos-surface1: var(--bg-3);
--ethos-surface2: var(--bg-4);
--ethos-border: var(--line);
--ethos-border-hi: var(--line-hi);
--ethos-text: var(--text-hi);
--ethos-secondary: var(--text-mid);
--ethos-muted: var(--text-machine);
--ethos-disabled: var(--text-lo);
--ethos-font: var(--sans);
--ethos-mono: var(--mono);
--ethos-accent: var(--accent);
--ethos-accent-hi: var(--accent-hi);
--ethos-accent-dim: var(--accent-dim);
--ethos-accent-line: var(--accent-line);
--ethos-accent-glow: var(--accent-glow);
--ethos-green: var(--green);
--ethos-amber: var(--amber);
--ethos-red: var(--red);
--ethos-purple: var(--purple);
--ethos-cyan: var(--cyan);
--ethos-orange: var(--orange);
--ethos-fs-xs: var(--fs-xs);
--ethos-fs-sm: var(--fs-sm);
--ethos-fs-base: var(--fs-base);
--ethos-fs-lg: var(--fs-lg);
--ethos-fs-xl: var(--fs-xl);
--ethos-fs-2xl: var(--fs-2xl);
--ethos-fs-3xl: var(--fs-3xl);
--ethos-space-1: var(--space-1);
--ethos-space-2: var(--space-2);
--ethos-space-3: var(--space-3);
--ethos-space-4: var(--space-4);
--ethos-space-5: var(--space-5);
--ethos-space-6: var(--space-6);
--ethos-space-7: var(--space-7);
--ethos-space-8: var(--space-8);
--ethos-space-9: var(--space-9);
--ethos-radius: var(--r-sm);
--ethos-radius-lg: var(--r-md);
--ethos-radius-chip: 999px;
--ethos-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
--ethos-shadow-md: var(--shadow-soft);
--ethos-motion-fast: var(--fast) var(--ease);
--ethos-motion: var(--med) var(--ease);
}
/* ── Maven accent — warm violet, AI-assistant personality ── */
[data-app="maven"] {
--accent: #A78BFA;
--accent-hi: #C1AEFC;
--accent-dim: rgba(167, 139, 250, 0.14);
--accent-line: rgba(167, 139, 250, 0.32);
--accent-glow: rgba(167, 139, 250, 0.22);
}
/* ── light theme ── */
[data-theme="light"] {
--bg-0: #F1ECE3;
--bg-1: #EAE4D8;
--bg-2: #E2DACB;
--bg-3: #D7CDBB;
--bg-4: #C9BDA7;
--line: rgba(28, 22, 14, 0.10);
--line-hi: rgba(28, 22, 14, 0.18);
--text-hi: #1B1712;
--text-mid: #544C3E;
--text-lo: #877E6C;
--text-machine: #6B6252;
--shadow-soft: 0 2px 8px rgba(60,45,25,0.10), 0 12px 32px rgba(60,45,25,0.08);
--shadow-lift: 0 4px 14px rgba(60,45,25,0.12), 0 20px 48px rgba(60,45,25,0.10);
}
@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(--bg-0);
color: var(--text-hi);
font: var(--fs-base)/1.5 var(--sans);
-webkit-text-size-adjust: 100%;
min-height: 100vh;
overflow: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ── Typography ── */
h1 {
font-size: var(--fs-xl);
font-weight: 500;
color: var(--text-hi);
margin: 0 0 var(--space-4);
letter-spacing: -0.02em;
}
h2 {
font-size: var(--fs-base);
font-weight: 500;
color: var(--text-mid);
margin: 0 0 var(--space-3);
}
h3 {
font-size: var(--fs-sm);
font-weight: 500;
color: var(--text-machine);
margin: 0 0 var(--space-2);
text-transform: uppercase;
letter-spacing: 0.05em;
}
h1 small, h2 small, h3 small { color: var(--text-machine); font-weight: 400; letter-spacing: 0; text-transform: none; }
/* ── Shell Layout ── */
.shell {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}
/* TopBar — 56px per ethos anatomy */
.topbar {
display: flex;
align-items: center;
height: 56px;
padding: 0 var(--space-4);
background: var(--bg-1);
border-bottom: 1px solid var(--line);
gap: var(--space-3);
flex-shrink: 0;
-webkit-app-region: drag;
}
.topbar > * { -webkit-app-region: no-drag; }
.breadcrumbs {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--fs-sm);
color: var(--text-machine);
flex: 1;
min-width: 0;
}
.breadcrumbs .sep { color: var(--text-lo); margin: 0 2px; }
.breadcrumbs .current { color: var(--text-hi); font-weight: 500; }
.topbar-actions {
display: flex;
align-items: center;
gap: var(--space-2);
}
/* Connection status dot */
.conn-status {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: var(--fs-xs);
color: var(--text-machine);
}
.conn-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.conn-status .dot.online { background: var(--green); }
.conn-status .dot.offline { background: var(--text-lo); }
/* Shell Body — sidebar + content + inspector */
.shell-body {
display: flex;
flex: 1;
overflow: hidden;
}
/* Sidebar */
.sidebar {
width: 200px;
min-width: 200px;
background: var(--bg-1);
border-right: 1px solid var(--line);
display: flex;
flex-direction: column;
overflow-y: auto;
padding: var(--space-3) 0;
flex-shrink: 0;
}
.sidebar-section { margin-bottom: var(--space-3); }
.sidebar-label {
font-size: var(--fs-xs);
color: var(--text-machine);
text-transform: uppercase;
letter-spacing: 0.08em;
padding: var(--space-1) var(--space-4);
margin-bottom: var(--space-1);
font-weight: 500;
}
.sidebar a {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-1) var(--space-4);
font-size: var(--fs-sm);
color: var(--text-mid);
text-decoration: none;
border-left: 2px solid transparent;
height: 28px;
transition: background var(--med) var(--ease), color var(--med) var(--ease), border-color var(--med) var(--ease);
}
.sidebar a:hover { background: var(--bg-3); color: var(--text-hi); text-decoration: none; }
.sidebar a.active {
color: var(--accent);
background: var(--accent-dim);
border-left-color: var(--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;
min-width: 0; /* let this flex item shrink below the tables' intrinsic width
so wide content pans inside .scroll instead of overflowing */
overflow-y: auto;
overflow-x: hidden;
padding: var(--space-5);
background: var(--bg-0);
}
/* Inspector Panel */
.inspector {
width: 0;
overflow: hidden;
background: var(--bg-1);
border-left: 1px solid var(--line);
transition: width var(--med) var(--ease);
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(--space-3) var(--space-4);
border-bottom: 1px solid var(--line);
font-size: var(--fs-sm);
font-weight: 500;
color: var(--text-hi);
flex-shrink: 0;
}
.inspector-close {
background: none;
border: none;
color: var(--text-machine);
cursor: pointer;
padding: 4px;
border-radius: var(--r-sm);
line-height: 1;
}
.inspector-close:hover { color: var(--text-hi); background: var(--bg-3); }
.inspector-body {
flex: 1;
overflow-y: auto;
padding: var(--space-4);
font-size: var(--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(--med) var(--ease);
}
.cmd-palette-overlay.open { opacity: 1; pointer-events: auto; }
.cmd-palette {
width: 560px;
max-width: 90vw;
max-height: 60vh;
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: var(--r-md);
box-shadow: var(--shadow-lift);
display: flex;
flex-direction: column;
overflow: hidden;
}
.cmd-palette-input {
display: flex;
align-items: center;
padding: var(--space-3) var(--space-4);
border-bottom: 1px solid var(--line);
gap: var(--space-2);
}
.cmd-palette-input input {
flex: 1;
background: transparent;
border: none;
color: var(--text-hi);
font: var(--fs-base) var(--sans);
outline: none;
}
.cmd-palette-input input::placeholder { color: var(--text-lo); }
.cmd-palette-list {
flex: 1;
overflow-y: auto;
padding: var(--space-1) 0;
}
.cmd-palette-item {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-4);
color: var(--text-mid);
font-size: var(--fs-sm);
cursor: pointer;
transition: background var(--fast) var(--ease);
text-decoration: none;
}
.cmd-palette-item:hover,
.cmd-palette-item.selected { background: var(--bg-3); color: var(--text-hi); text-decoration: none; }
.cmd-palette-item .kbd {
margin-left: auto;
font-size: var(--fs-xs);
color: var(--text-lo);
font-family: var(--mono);
}
/* ── Search Trigger ── */
.search-trigger {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: var(--r-sm);
padding: 2px 8px;
font-size: var(--fs-xs);
color: var(--text-machine);
cursor: pointer;
height: 26px;
transition: border-color var(--fast) var(--ease);
}
.search-trigger:hover { border-color: var(--text-machine); }
.search-trigger .kbd-hint {
font-family: var(--mono);
color: var(--text-lo);
font-size: 10px;
}
/* ── Cards ── */
.card {
background: var(--bg-1);
border: 1px solid var(--line);
border-radius: var(--r-md);
padding: var(--space-3) var(--space-4);
margin-bottom: var(--space-4);
}
.card-title {
font-size: var(--fs-sm);
font-weight: 500;
color: var(--text-mid);
margin: 0 0 var(--space-2);
display: flex;
align-items: center;
gap: var(--space-2);
}
.card-sub {
font-size: var(--fs-xs);
color: var(--text-machine);
margin: 0 0 var(--space-2);
}
.card-actions {
display: flex;
align-items: center;
gap: var(--space-2);
margin-top: var(--space-3);
}
/* ── Tables ── */
.scroll { overflow-x: auto; margin-bottom: var(--space-2); }
table { width: 100%; border-collapse: collapse; }
th, td {
padding: var(--space-1) var(--space-2);
text-align: left;
vertical-align: top;
border-bottom: 1px solid var(--line);
}
th {
color: var(--text-machine);
font-size: var(--fs-xs);
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
font-weight: 500;
padding-top: var(--space-2);
padding-bottom: var(--space-1);
}
td { color: var(--text-mid); font-size: var(--fs-sm); }
tr:hover td { background: var(--bg-3); }
tr.clickable { cursor: pointer; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -0.01em; }
code, .key {
font-family: var(--mono);
color: var(--accent);
font-size: var(--fs-sm);
font-feature-settings: "tnum" 1, "zero" 1;
}
/* ── Status Vocabulary ── */
.status-Healthy,
.status-Running,
.status-Completed,
.green { color: var(--green); }
.status-Starting,
.status-Waiting,
.status-Queued,
.status-Stopping,
.status-Warning,
.status-Paused,
.amber { color: var(--amber); }
.status-Stopped,
.status-Offline,
.gray { color: var(--text-lo); }
.status-Failed,
.red { color: var(--red); }
.status-Unknown { color: var(--text-machine); }
.pres, .acted { color: var(--green); }
.pending, .away { color: var(--text-lo); }
.snoozed { color: var(--amber); }
.ignored { color: var(--red); }
.updated, .muted { color: var(--text-machine); font-size: var(--fs-xs); }
/* ── Status Dot ── */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.dot-ok, .dot-online { background: var(--green); }
.dot-warn { background: var(--amber); }
.dot-err { background: var(--red); }
.dot-dim { background: var(--text-lo); }
.dot-purple { background: var(--purple); }
.dot-cyan { background: var(--cyan); }
.dot-offline { background: var(--text-lo); }
/* ── Badges ── */
.badge {
font-size: var(--fs-xs);
color: var(--text-mid);
background: var(--bg-3);
padding: 2px 6px;
border-radius: 999px;
white-space: nowrap;
font-weight: 500;
}
.badge-accent { color: var(--accent-hi); background: var(--accent-dim); }
.badge-ok { color: var(--green); background: rgba(111, 191, 139, 0.14); }
.badge-warn { color: var(--amber); background: rgba(224, 168, 85, 0.14); }
.badge-err { color: var(--red); background: rgba(224, 113, 95, 0.14); }
/* ── Buttons ── */
.btn {
font: inherit;
font-size: var(--fs-sm);
background: transparent;
color: var(--text-mid);
border: 1px solid var(--line);
border-radius: var(--r-sm);
padding: var(--space-1) var(--space-3);
cursor: pointer;
transition: border-color var(--med) var(--ease), background var(--med) var(--ease), color var(--med) var(--ease);
display: inline-flex;
align-items: center;
gap: var(--space-1);
height: 28px;
white-space: nowrap;
}
.btn:hover { border-color: var(--text-machine); color: var(--text-hi); background: var(--bg-3); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
background: var(--accent);
color: var(--bg-0);
border-color: var(--accent);
font-weight: 500;
}
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--bg-0); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: rgba(224, 113, 95, 0.14); color: var(--red); }
.btn-ghost { border-color: transparent; color: var(--text-machine); }
.btn-ghost:hover { border-color: transparent; background: var(--bg-3); color: var(--text-hi); }
.btn-sm { height: 22px; font-size: var(--fs-xs); padding: 0 var(--space-2); }
.btn-lg { height: 34px; font-size: var(--fs-base); padding: var(--space-1) var(--space-4); }
.btn-muted { border-color: transparent; color: var(--text-machine); }
.btn-muted:hover { border-color: transparent; color: var(--text-mid); }
/* ── Icon Button ── */
.icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border: none;
background: transparent;
color: var(--text-machine);
cursor: pointer;
border-radius: var(--r-sm);
transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--bg-3); color: var(--text-hi); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ── Inline form ── */
.inline-form { display: inline; }
/* ── Form Elements ── */
input[type=text], input[type=url], input[type=search], select, textarea {
font: inherit;
font-size: var(--fs-sm);
background: var(--bg-2);
color: var(--text-hi);
border: 1px solid var(--line);
border-radius: var(--r-sm);
padding: var(--space-1) var(--space-2);
max-width: 100%;
transition: border-color var(--fast) var(--ease);
height: 28px;
}
input[type=text]:focus, input[type=url]:focus, input[type=search]:focus, select:focus, textarea:focus {
border-color: var(--accent);
outline: none;
}
input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; vertical-align: middle; }
label { color: var(--text-mid); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-sm); }
textarea { height: auto; min-height: 60px; }
/* ── Messages ── */
.msg {
margin: var(--space-2) 0;
padding: var(--space-2) var(--space-3);
border-radius: var(--r-sm);
border: 1px solid var(--line);
font-size: var(--fs-sm);
color: var(--text-mid);
}
.msg-ok { border-color: var(--green); color: var(--green); }
.msg-err { border-color: var(--red); color: var(--red); }
#msg { white-space: pre-wrap; }
/* ── Empty States ── */
.empty {
color: var(--text-lo);
padding: var(--space-8) var(--space-4);
text-align: center;
font-size: var(--fs-sm);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
}
.empty .icon { opacity: 0.4; margin-bottom: var(--space-1); }
.empty .action { margin-top: var(--space-2); }
/* ── Voided / stale rows ── */
.voided { opacity: 0.45; text-decoration: line-through; }
.void-badge { color: var(--text-machine); font-size: var(--fs-xs); margin-right: var(--space-1); }
/* ── Collapsible Details ── */
details { color: var(--text-mid); font-size: var(--fs-sm); }
summary { cursor: pointer; color: var(--text-machine); transition: color var(--med) var(--ease); user-select: none; }
summary:hover { color: var(--text-hi); }
details[open] { margin-top: var(--space-1); }
details[open] > summary { margin-bottom: var(--space-1); }
/* ── Hint / Tooltip ── */
.hint { font-size: var(--fs-xs); color: var(--text-machine); }
.hint-icon { cursor: help; color: var(--text-lo); }
/* ── Section header ── */
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-3);
gap: var(--space-3);
}
.section-header h2 { margin-bottom: 0; }
/* ── Chat message styles ── */
.chat-msg { padding: var(--space-2) var(--space-3); border-radius: var(--r-sm); margin-bottom: var(--space-1); }
.chat-msg.user { background: var(--bg-3); }
.chat-msg.assistant { background: var(--bg-2); }
.chat-form { display: flex; gap: var(--space-2); }
.chat-form input { flex: 1; }
.chat-scroll { max-height: 60vh; overflow-y: auto; margin-bottom: var(--space-4); }
/* ── Key-value grid ── */
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); font-size: var(--fs-sm); }
.kv dt { color: var(--text-machine); white-space: nowrap; }
.kv dd { color: var(--text-mid); word-break: break-all; }
/* ── Notification item ── */
.nudge-item {
display: flex;
gap: var(--space-3);
padding: var(--space-2) 0;
border-bottom: 1px solid var(--line);
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(--fs-xs); color: var(--text-machine); }
.nudge-msg { font-size: var(--fs-sm); color: var(--text-mid); margin-top: 2px; }
.nudge-meta { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-1); }
/* ── Skeleton ── */
.skeleton {
background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
background-size: 200% 100%;
animation: skeleton-shimmer 1.5s ease-in-out infinite;
border-radius: var(--r-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-line { height: 12px; margin-bottom: var(--space-2); width: 100%; }
.skeleton-line:last-child { width: 60%; }
/* ── Keyboard hints ── */
kbd, .kbd {
display: inline-flex;
align-items: center;
justify-content: center;
font-family: var(--mono);
font-size: 10px;
color: var(--text-lo);
background: var(--bg-2);
border: 1px solid var(--line);
border-radius: 4px;
padding: 1px 5px;
min-width: 18px;
height: 18px;
line-height: 1;
}
/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ── Selection ── */
::selection { background: var(--accent-dim); color: var(--accent-hi); }
/* ── Voice page ── */
.voice-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); padding: var(--space-4) 0; }
.voice-btn {
width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--accent);
background: var(--bg-1); color: var(--accent); font-size: 1rem; cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: all var(--med) var(--ease);
user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.voice-btn:active, .voice-btn.active { background: var(--accent-dim); border-color: var(--green); color: var(--green); transform: scale(1.05); }
.voice-btn:disabled { opacity: 0.3; border-color: var(--line); }
.voice-status { font-size: var(--fs-sm); color: var(--text-machine); min-height: 1.2em; }
.voice-log { width: 100%; max-width: 480px; max-height: 40vh; overflow-y: auto; font-size: var(--fs-sm); color: var(--text-machine); line-height: 1.6; padding: var(--space-2); border-top: 1px solid var(--line); }
.voice-log .reply { color: var(--green); }
.voice-log .error { color: var(--red); }
.voice-log .push { color: var(--purple); }
.voice-cheat { width: 100%; max-width: 480px; font-size: var(--fs-sm); border-top: 1px solid var(--line); color: var(--text-machine); }
.voice-cheat summary { cursor: pointer; padding: var(--space-2) 0; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; font-size: var(--fs-xs); user-select: none; }
.voice-cheat dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); padding: var(--space-1) 0 var(--space-3); }
.voice-cheat dt { color: var(--green); font-weight: 500; white-space: nowrap; }
.voice-cheat dd { color: var(--text-mid); line-height: 1.5; }
.voice-cheat dd span { color: var(--text-machine); }
.voice-cheat .en { display: revert; }
.voice-cheat .ru { display: none; }
html[data-lang=ru] .voice-cheat .en { display: none; }
html[data-lang=ru] .voice-cheat .ru { display: revert; }
.voice-lang { display: flex; gap: 0; justify-content: center; margin-top: var(--space-4); }
.voice-lang span { font-size: var(--fs-xs); color: var(--text-machine); cursor: pointer; padding: 0.2rem 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); transition: color var(--med) var(--ease); user-select: none; }
.voice-lang span:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); border-right: none; }
.voice-lang span:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: none; }
.voice-lang span.active { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.voice-lang span:hover { color: var(--text-hi); }
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-lo); }
/* ── 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(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--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(--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(--space-3); }
}
@media (max-width: 480px) {
.sidebar { width: 0; min-width: 0; overflow: hidden; padding: 0; border-right: none; }
.content { padding: var(--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; }
}
@media print {
.sidebar, .topbar, .inspector { display: none; }
.shell, .shell-body { display: block; height: auto; overflow: visible; }
.content { overflow: visible; padding: 0; }
}