Files
aevolution/apps/evo-admin-api/portal/style.css
T
dingoandClaude Opus 5.5 6338cc9142
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m40s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 4m46s
Foundation / image (push) Successful in 5m34s
feat(admin): region page redesign, resource ledger, drip and dark mode
The region view adds the rules-13 drip and complete counts and totals over every
life and deposit. The region page is rebuilt around the map: a KPI strip (tick
pace, population, deposit capacity, region energy and matter, spent pool, next
drip), layer toggles that double as the legend, zoom and a scale, and tabs for
inspecting cells and deposits, resources (where each channel sits, the spent pool
and each channel's next drip), actions, the running tuning and session access.
The admin API serves the region tuning file read only (--region-tuning). Light
and dark themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 07:54:28 -04:00

592 lines
24 KiB
CSS

/* ADR-0182 admin portal. Tokens first: light by default, dark from the system or the header's
theme switch (html[data-theme]). The region map reads the map tokens when it paints. */
:root {
--bg: #f3f5f8;
--panel: #ffffff;
--panel-2: #f6f8fa;
--panel-3: #eef1f5;
--line: #e1e6ec;
--line-strong: #cfd6de;
--text: #17202a;
--muted: #5f6c79;
--faint: #8b96a2;
--accent: #2563eb;
--accent-soft: rgba(37, 99, 235, 0.1);
--on-accent: #ffffff;
--good: #15925f;
--good-soft: rgba(21, 146, 95, 0.1);
--warn: #b7791f;
--warn-soft: rgba(183, 121, 31, 0.12);
--bad: #d64545;
--bad-soft: rgba(214, 69, 69, 0.1);
--shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
--shadow-pop: 0 8px 24px rgba(16, 24, 40, 0.14);
/* Region map. */
--map-bg: #fbfcfd;
--map-grid: rgba(23, 32, 42, 0.05);
--map-edge: #cfd6de;
--map-glass: rgba(255, 255, 255, 0.86);
--player: #2f6fed;
--online: #06b6d4;
--wildlife: #16a34a;
--pool: rgba(37, 99, 235, 0.1);
--pool-edge: rgba(37, 99, 235, 0.45);
--patch: rgba(120, 90, 40, 0.14);
--select: #f59e0b;
--energy: #eab308;
--carbon: #4b5563;
--nitrogen: #8b5cf6;
--phosphorus: #f97316;
--other: #ec4899;
--radius: 10px;
--radius-sm: 7px;
--mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0b0f14;
--panel: #121820;
--panel-2: #161e27;
--panel-3: #1c2531;
--line: #232d3a;
--line-strong: #2f3b4b;
--text: #e4eaf0;
--muted: #8d9aa8;
--faint: #64717f;
--accent: #5b9dff;
--accent-soft: rgba(91, 157, 255, 0.14);
--on-accent: #06101f;
--good: #3ecf8e;
--good-soft: rgba(62, 207, 142, 0.12);
--warn: #f2b84b;
--warn-soft: rgba(242, 184, 75, 0.13);
--bad: #ff6b6b;
--bad-soft: rgba(255, 107, 107, 0.12);
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.55);
--map-bg: #070b10;
--map-grid: rgba(140, 170, 200, 0.06);
--map-edge: #2a3646;
--map-glass: rgba(18, 24, 32, 0.86);
--player: #5b9dff;
--online: #5ff2ff;
--wildlife: #3ecf8e;
--pool: rgba(91, 157, 255, 0.12);
--pool-edge: rgba(91, 157, 255, 0.5);
--patch: rgba(200, 160, 90, 0.14);
--select: #ffd166;
--energy: #ffd84d;
--carbon: #a3adb8;
--nitrogen: #a78bfa;
--phosphorus: #ff9a3c;
--other: #ff6fb5;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--bg: #0b0f14;
--panel: #121820;
--panel-2: #161e27;
--panel-3: #1c2531;
--line: #232d3a;
--line-strong: #2f3b4b;
--text: #e4eaf0;
--muted: #8d9aa8;
--faint: #64717f;
--accent: #5b9dff;
--accent-soft: rgba(91, 157, 255, 0.14);
--on-accent: #06101f;
--good: #3ecf8e;
--good-soft: rgba(62, 207, 142, 0.12);
--warn: #f2b84b;
--warn-soft: rgba(242, 184, 75, 0.13);
--bad: #ff6b6b;
--bad-soft: rgba(255, 107, 107, 0.12);
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.55);
--map-bg: #070b10;
--map-grid: rgba(140, 170, 200, 0.06);
--map-edge: #2a3646;
--map-glass: rgba(18, 24, 32, 0.86);
--player: #5b9dff;
--online: #5ff2ff;
--wildlife: #3ecf8e;
--pool: rgba(91, 157, 255, 0.12);
--pool-edge: rgba(91, 157, 255, 0.5);
--patch: rgba(200, 160, 90, 0.14);
--select: #ffd166;
--energy: #ffd84d;
--carbon: #a3adb8;
--nitrogen: #a78bfa;
--phosphorus: #ff9a3c;
--other: #ff6fb5;
color-scheme: dark;
}
/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
background: var(--bg);
color: var(--text);
font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 13px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.error { color: var(--bad); }
.good { color: var(--good); }
.small { font-size: 12px; }
.center { display: grid; place-items: center; min-height: 55vh; text-align: center; }
.center h1 { margin-bottom: 6px; }
.center .muted { margin-bottom: 18px; }
button {
font: inherit;
font-weight: 500;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
padding: 6px 13px;
cursor: pointer;
transition: background 0.12s, border-color 0.12s, color 0.12s;
white-space: nowrap;
}
button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }
button:disabled:hover { border-color: var(--line-strong); color: var(--text); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover { filter: brightness(1.08); color: var(--on-accent); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { background: var(--panel-3); color: var(--text); }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
button.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
button.icon { padding: 5px 9px; line-height: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="search"], input[type="text"], input[type="number"], select {
font: inherit;
color: var(--text);
background: var(--panel);
border: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
padding: 6px 10px;
min-width: 0;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="search"] { width: 280px; }
input[type="checkbox"] { accent-color: var(--accent); }
/* ---------- Top bar ---------- */
.bar {
display: flex;
align-items: center;
gap: 28px;
height: 56px;
padding: 0 22px;
background: color-mix(in srgb, var(--panel) 88%, transparent);
backdrop-filter: saturate(1.4) blur(10px);
border-bottom: 1px solid var(--line);
position: sticky;
top: 0;
z-index: 10;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand::before {
content: "";
width: 18px;
height: 18px;
border-radius: 50%;
background: radial-gradient(circle at 35% 35%, var(--online), var(--player) 55%, var(--wildlife));
box-shadow: 0 0 12px color-mix(in srgb, var(--online) 45%, transparent);
}
.brand span { color: var(--muted); font-weight: 500; }
.sections { display: flex; gap: 20px; flex: 1; }
.section { display: flex; align-items: center; gap: 2px; }
.section-name {
text-transform: uppercase;
font-size: 10.5px;
font-weight: 600;
letter-spacing: 0.1em;
color: var(--faint);
margin-right: 10px;
}
.section a { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.section a:hover { color: var(--text); background: var(--panel-3); text-decoration: none; }
.section a.active { background: var(--accent-soft); color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; }
.env {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--warn);
background: var(--warn-soft);
border-radius: 999px;
padding: 2px 9px;
}
.theme-switch { display: flex; background: var(--panel-3); border-radius: 999px; padding: 2px; }
.theme-switch button {
border: 0;
background: transparent;
color: var(--muted);
border-radius: 999px;
padding: 3px 9px;
font-size: 13px;
line-height: 1.3;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
/* ---------- Page ---------- */
main { padding: 22px 24px 40px; max-width: 1760px; margin: 0 auto; }
main:focus { outline: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.head .crumb { display: inline-block; font-size: 12.5px; margin-bottom: 4px; color: var(--muted); }
.head .crumb:hover { color: var(--accent); }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.subtitle { color: var(--muted); margin-top: 3px; }
.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 16px 18px;
box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.stats, .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat, .kpi {
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 12px 14px;
box-shadow: var(--shadow);
min-width: 0;
}
.stat .label, .kpi .label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--muted);
display: flex;
align-items: center;
gap: 6px;
}
.stat .value, .kpi .value { font-size: 21px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .value small { font-size: 12px; font-weight: 400; color: var(--muted); }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.kpi.warn .value { color: var(--warn); }
.kpi.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.kpi.bad .value { color: var(--bad); }
.kpi .meter { margin-top: 8px; }
.meter { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter.warn > span { background: var(--warn); }
.meter.bad > span { background: var(--bad); }
.meter.smooth > span { transition: width 0.25s linear; }
/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--panel); }
table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--panel-2); cursor: pointer; user-select: none; }
th.sorted { color: var(--text); }
th.sorted::after { content: " ▾"; }
th.sorted.up::after { content: " ▴"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--panel-2); }
tbody tr.clickable { cursor: pointer; }
table.compact { font-size: 12.5px; background: transparent; }
table.compact td { padding: 6px 4px; white-space: normal; vertical-align: top; }
table.compact tr:hover { background: transparent; }
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11.5px;
font-weight: 500;
padding: 1px 9px;
border-radius: 999px;
background: var(--panel-3);
color: var(--muted);
white-space: nowrap;
}
.badge.alive { color: var(--good); background: var(--good-soft); }
.badge.dead { color: var(--bad); background: var(--bad-soft); }
.badge.online { color: var(--accent); background: var(--accent-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.window-controls { display: flex; gap: 8px; margin: 12px 0 8px; flex-wrap: wrap; }
/* ---------- Region page ---------- */
.region-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(420px, 30vw, 560px); gap: 16px; align-items: start; }
@media (max-width: 1150px) { .region-grid { grid-template-columns: 1fr; } }
.map-card {
display: flex;
flex-direction: column;
height: max(560px, calc(100vh - 250px));
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--panel);
overflow: hidden;
box-shadow: var(--shadow);
}
.map-toolbar { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.map-stage { position: relative; flex: 1; min-height: 0; background: var(--map-bg); }
.map-stage canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.map-stage canvas.dragging { cursor: grabbing; }
.glass {
background: var(--map-glass);
backdrop-filter: blur(8px);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
box-shadow: var(--shadow);
}
.map-layers { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
display: inline-flex;
background: var(--panel-2);
border: 1px solid var(--line);
align-items: center;
gap: 7px;
font-size: 12.5px;
font-weight: 500;
padding: 4px 10px 4px 8px;
border-radius: 999px;
color: var(--text);
cursor: pointer;
user-select: none;
}
.chip .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.off { opacity: 0.45; }
.chip.off .swatch { background: transparent !important; }
.chip:hover { border-color: var(--accent); }
.map-zoom { display: flex; overflow: hidden; flex: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.map-zoom button { border: 0; border-radius: 0; background: transparent; padding: 5px 11px; font-size: 15px; line-height: 1.2; }
.map-zoom button + button { border-left: 1px solid var(--line); }
.map-zoom button:hover { background: var(--panel-3); }
.map-foot { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; }
.map-hint { font-size: 12px; color: var(--muted); padding: 3px 9px; }
.scale { font-size: 11.5px; color: var(--muted); padding: 4px 9px 3px; text-align: center; }
.scale .rule { height: 6px; border: 1.5px solid var(--muted); border-top: 0; margin-top: 2px; }
.map-banner {
position: absolute;
left: 50%;
top: 12px;
transform: translateX(-50%);
padding: 6px 14px;
font-size: 12.5px;
color: var(--warn);
border-color: color-mix(in srgb, var(--warn) 50%, var(--line));
}
.tooltip {
position: absolute;
pointer-events: none;
padding: 8px 10px;
font-size: 12px;
min-width: 170px;
max-width: 290px;
z-index: 3;
box-shadow: var(--shadow-pop);
}
.tooltip .tip-title { font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.tooltip .tip-row { display: flex; justify-content: space-between; gap: 14px; }
.tooltip .tip-row span:first-child { color: var(--muted); }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.swatch.player { background: var(--player); }
.swatch.online { background: var(--online); }
.swatch.wildlife { background: var(--wildlife); }
.swatch.pool { background: var(--pool); border: 1.5px solid var(--pool-edge); }
.swatch.patch { background: var(--patch); border: 1.5px solid var(--faint); border-radius: 2px; }
.swatch.energy { background: var(--energy); }
.swatch.carbon { background: var(--carbon); }
.swatch.nitrogen { background: var(--nitrogen); }
.swatch.phosphorus { background: var(--phosphorus); }
.swatch.other { background: var(--other); }
/* Side panel with tabs. */
.panel {
position: sticky;
top: 72px;
max-height: calc(100vh - 88px);
display: flex;
flex-direction: column;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}
@media (max-width: 1150px) { .panel { position: static; max-height: none; } }
.tabs { flex: none; display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: var(--panel-2); overflow-x: auto; }
.tabs button {
border: 0;
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
background: transparent;
color: var(--muted);
padding: 8px 12px 9px;
font-size: 13px;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.tabs button:hover { color: var(--text); background: transparent; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); background: var(--panel); }
.tabs .tab-badge { margin-left: 6px; font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.panel-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1; }
.block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.block-head .muted { font-size: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty .big { font-size: 26px; margin-bottom: 6px; opacity: 0.6; }
/* Forms. */
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.field input, .field select { width: 100%; }
.form-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.form-row .grow { flex: 1; min-width: 120px; }
.form-row input.count { width: 84px; }
input.wide, .wide { width: 100%; }
.note { font-size: 12.5px; margin-top: 8px; min-height: 0; }
.note:empty { display: none; }
.segmented { display: inline-flex; background: var(--panel-3); border-radius: var(--radius-sm); padding: 2px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 4px 10px; font-size: 12.5px; border-radius: 5px; }
.segmented button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
/* Resource ledger. */
table.ledger { font-size: 12.5px; background: transparent; }
table.ledger th { background: transparent; cursor: default; padding: 6px 6px; font-size: 10.5px; }
table.ledger td { padding: 6px 6px; }
table.ledger td:first-child, table.ledger th:first-child { padding-left: 0; }
table.ledger td:last-child, table.ledger th:last-child { padding-right: 0; }
table.ledger tr.total td { font-weight: 650; border-top: 1px solid var(--line-strong); }
table.ledger tr:hover { background: transparent; }
table.ledger th .swatch { margin-right: 4px; vertical-align: -1px; width: 8px; height: 8px; }
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--panel-3); }
.split > span { display: block; height: 100%; }
.split-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.split-legend span { display: inline-flex; align-items: center; gap: 5px; }
.split-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; margin-top: 8px; font-size: 12px; }
/* Spent pool and drip. */
.drip-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.drip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.drip-count { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; margin-top: 10px; }
.channel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; min-width: 0; }
.channel .name { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.channel .amt { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel .sub { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel.empty-ch { opacity: 0.55; }
.callout {
display: flex;
gap: 10px;
padding: 10px 12px;
border-radius: var(--radius-sm);
font-size: 12.5px;
background: var(--warn-soft);
color: var(--text);
border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
margin-bottom: 12px;
}
.callout::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: var(--panel); font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.callout.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.callout.info::before { content: "i"; background: var(--accent); }
/* Lists in the panel. */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover .grow { color: var(--accent); }
.list-item .sub { color: var(--muted); font-size: 11.5px; }
/* Inspector. */
.inspect-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.inspect-head .swatch { width: 14px; height: 14px; }
.inspect-head h2 { margin: 0; }
.inspect-head .grow { flex: 1; }
/* Tuning settings. */
.settings-group { margin-top: 6px; }
.settings-group summary {
cursor: pointer;
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
font-weight: 600;
font-size: 12.5px;
text-transform: capitalize;
border-bottom: 1px solid var(--line);
}
.settings-group summary::-webkit-details-marker { display: none; }
.settings-group summary::before { content: "▸"; color: var(--faint); margin-right: 8px; transition: transform 0.15s; display: inline-block; }
.settings-group[open] summary::before { transform: rotate(90deg); }
.settings-group summary .label { flex: 1; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0 6px 16px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.setting:last-child { border-bottom: 0; }
.setting .key { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.setting .val { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; }
.setting .why { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; }
.setting.changed .val { color: var(--accent); }
mark { background: var(--warn-soft); color: inherit; border-radius: 2px; }
/* ---------- Tuning editor ---------- */
.tuning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .tuning-layout { grid-template-columns: 1fr; } }
.tuning-layout .side { display: flex; flex-direction: column; gap: 14px; }
.tuning-layout .side .card + .card { margin-top: 0; }
textarea.tuning {
display: block;
width: 100%;
min-height: 62vh;
font-family: var(--mono);
font-size: 12.5px;
line-height: 1.55;
color: var(--text);
background: var(--panel-2);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
padding: 12px 14px;
resize: vertical;
tab-size: 4;
}
textarea.tuning:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.action { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.action .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }