/* Dashboard styles, in the Urizen Labs "Frontier" look, dark: thin Inter Tight
   headlines, frosted-glass cards over a violet/blue haze, small spaced capitals
   for labels, Doto dot-matrix for the headline numbers, and a dark pill inside a
   prismatic ring for the main action. All fonts are bundled; numbers use
   tabular digits so they line up. */

/* Hidden means hidden, whatever display a class gives the element. */
[hidden] { display: none !important; }

@font-face {
  font-family: "Dongle";
  src: url("/static/dongle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/static/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("/static/doto.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Blackletter, for the logo only. */
@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("/static/unifraktur.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* The one chevron (Lucide chevron-down), used as a mask so it takes any colour. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
  --font: "Inter", "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", var(--font);
  --dots: "Doto", ui-monospace, monospace;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Noto Sans Mono", Menlo, Consolas, monospace;
  --bg: #06070d;
  --solid: #10121d;
  --card: rgb(255 255 255 / .035);
  --text: #eef0fb;
  --muted: #9198b8;
  --border: rgb(255 255 255 / .08);
  --grid: rgb(255 255 255 / .05);
  --accent: #9a8cff;
  --accent-soft: rgb(139 108 255 / .16);
  --pos: #5fe3a1;
  --neg: #ff7b8b;
  --warn: #ffc163;
  --warn-bg: rgb(255 170 60 / .07);
  --warn-border: rgb(255 170 60 / .3);
  --note-bg: rgb(120 110 255 / .09);
  --ok-bg: rgb(95 227 161 / .07);
  --shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 30px 60px -40px rgb(0 0 0 / .8);
  --grad: linear-gradient(95deg, #7fa0ff 0%, #a98cff 45%, #d58cff 70%, #7fa0ff 100%);
  --prism: conic-gradient(from 200deg, #ff5f6d, #ffb347, #fff275, #6dffb3, #4fd8ff, #4f7dff, #9b6bff, #ff5fd2, #ff5f6d);
  --radius: 20px;
  --s1: #9a8cff;
  --s2: #ffb347;
  --s3: #4fd8ff;
  --s4: #ff5fd2;
  --s5: #6dffb3;
  --s6: #9198b8;
}

*, *::before, *::after { box-sizing: border-box; }

/* Scrollbars: thin, dark, no arrows; the thumb brightens on hover. */
* { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .14) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / .14); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(154 140 255 / .5); }
::-webkit-scrollbar-button { display: none; }

html { -webkit-text-size-adjust: 100%; }

/* The page fills the window, so the footer sits at the bottom even on short pages. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
body > footer { flex: none; width: 100%; box-sizing: border-box; }
/* The header keeps its full width in the column (auto margins would shrink it). */
body > header.top { width: 100%; box-sizing: border-box; }
body {
  margin: 0;
  /* The haze: a violet glow under the header and a blue one lower right, fixed while scrolling. */
  background:
    radial-gradient(60% 45% at 30% -5%, rgb(139 108 255 / .20), transparent 70%),
    radial-gradient(45% 40% at 95% 55%, rgb(79 125 255 / .10), transparent 70%),
    radial-gradient(50% 40% at 10% 100%, rgb(196 107 255 / .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  /* The page never scrolls sideways; wide tables scroll inside .scroll. */
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: 40px; line-height: 1.08; font-weight: 300; letter-spacing: -.045em; margin: 18px 0 20px; }
h2 { font-size: 19px; font-weight: 400; letter-spacing: -.02em; margin: 28px 0 12px; }
h3 { font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
/* Small spaced capitals, as on the landing page's eyebrows. */
.label, .stat-label, .status-facts dt, thead th, .chart .u-legend th {
  font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Floating glass bar. */
header.top {
  display: flex; align-items: center; gap: 20px;
  max-width: 1160px; margin: 12px auto 0; padding: 8px 10px 8px 20px;
  background: rgb(14 15 26 / .62); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow);
  position: sticky; top: 12px; z-index: 5;
}
/* The logo: the mark (static/logo.svg, painted in the text colour) and the name in Dongle. */
.brand { font-family: "Dongle", var(--display); font-weight: 400; font-size: 36px; line-height: .7; flex: none; display: inline-flex; align-items: center; gap: .16em; letter-spacing: .01em; }
.brand::before { content: ""; flex: none; width: .62em; height: .62em; background: currentColor; -webkit-mask: url("/static/logo.svg") center / contain no-repeat; mask: url("/static/logo.svg") center / contain no-repeat; }
/* The logo again, centred and quiet, closing every page. */
footer { max-width: 1160px; margin: 24px auto 0; padding: 22px 20px 36px; display: flex; justify-content: center; }
footer .brand { font-size: 30px; color: var(--muted); }
/* On a phone the links scroll sideways inside the bar instead of leaving the screen. */
header nav { display: flex; gap: 2px; overflow-x: auto; min-width: 0; flex: 1; justify-content: flex-end; scrollbar-width: none; }
header nav::-webkit-scrollbar { display: none; }
header nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 500; font-size: 14px; }
header nav a:hover { color: var(--text); background: var(--grid); }
header nav a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }

main { max-width: 1200px; margin: 0 auto; padding: 20px; }
@media (max-width: 480px) {
  /* Every link fits on a phone without the brand; the page title says where you are. */
  header .brand { display: none; }
  header nav { justify-content: space-between; }
  header nav a { padding: 6px 8px; }
}
@media (max-width: 640px) {
  header.top { margin: 8px 12px 0; padding: 6px 8px; gap: 12px; top: 8px; }
  body > header.top { width: calc(100% - 24px); }
  main { padding: 14px 12px; }
  h1 { font-size: 30px; }
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: 20px 22px; margin-bottom: 16px; min-width: 0;
}
@media (max-width: 640px) { .card { padding: 16px; border-radius: 16px; } }
.card > h2:first-child { margin-top: 0; }
details.card > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary h2 { display: inline; margin: 0; }

/* ---- research ---- */
p.lead { max-width: 70ch; margin: -4px 0 20px; }
/* Tests: live on paper money, then on past prices. */
.tests > h2 { margin: 0 0 4px; }
.verdict.running { color: var(--accent); }
.live-test .progress p { margin: 6px 0 0; }
.finished .jobs-card { margin-bottom: 24px; }
/* An element whose children belong to the grid around it (htmx swaps it whole). */
.contents { display: contents; }
/* Labels under a test's title: what it runs on and how. */
.test-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.test-tag { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; color: var(--muted); background: rgb(255 255 255 / .06); border: 1px solid var(--border); }
.verdict.waiting { color: var(--muted); }
/* What we've learned: one card per question, two columns on wide screens. */
.findings h2 { margin: 0 0 12px; }
.finding-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 16px; }
@media (min-width: 900px) { .finding-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.finding { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.finding p { margin: 0; }
.finding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.finding-head h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.verdict { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid currentColor; }
.verdict.yes { color: var(--pos); }
.verdict.no { color: var(--neg); }
.verdict.partly { color: var(--warn); }
/* What we've learned: one card, a line per question, newest first; a line
   unfolds to its details, indented under the question. */
.findings h2 .count { margin-left: 10px; font-size: 14px; font-weight: 400; }
.card.learned { padding: 6px 0; }
/* The heading with its search box; the search stays on one line with it. */
.learned-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.learned-head h2 { margin: 0; scroll-margin-top: 90px; }
#finished { scroll-margin-top: 90px; }
#learned-search, #finished-search { width: min(320px, 100%); }
/* Search fields: the app's field, rounded, with a magnifier; the browser's
   own look and clear button are replaced (Lucide "search" and "x", ISC). */
main input[type="search"] {
  -webkit-appearance: none; appearance: none; border-radius: 999px; padding-left: 36px;
  background: rgb(255 255 255 / .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239198b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px 50% / 15px 15px;
}
input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239198b8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}
.paged-none { margin: 0; padding: 14px 22px; }
/* A line's tags sit after its question. */
.finding-row .row-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: 1px; margin-left: 4px; }
.finding-row .row-tags .test-tag { font-size: 11px; padding: 0 7px; }
/* Page buttons under the list. */
nav.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 10px 0 24px; }
nav.pager .small { margin-right: 8px; }
nav.pager button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 30px; padding: 4px 10px; border-radius: 999px; box-shadow: none; color: var(--muted); background: rgb(255 255 255 / .04); border: 1px solid var(--border); }
nav.pager button:hover:not(:disabled) { color: var(--text); transform: none; }
nav.pager button[aria-current="page"] { color: var(--text); background: var(--accent-soft); border-color: rgb(154 140 255 / .5); }
nav.pager button:disabled { opacity: .35; cursor: default; }
details.finding-row > summary {
  display: grid; grid-template-columns: 5.5em minmax(0, 1fr) minmax(0, 16em) 6.5em 12px; gap: 12px; align-items: center;
  padding: 9px 22px; cursor: pointer; list-style: none;
}
details.finding-row > summary::-webkit-details-marker { display: none; }
details.finding-row > summary:hover { background: rgb(255 255 255 / .03); }
.finding-row .verdict { justify-self: start; }
.finding-row .q { font-size: 14.5px; }
.finding-row .short { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finding-row .date { font-size: 12.5px; white-space: nowrap; text-align: right; }
.finding-body { padding: 2px 22px 18px calc(22px + 5.5em + 12px); }
.finding-body p { margin: 0 0 10px; max-width: 80ch; }
.finding-body .scroll { margin: 4px 0 12px; max-width: 720px; }
.finding-body .origin { display: inline-flex; align-items: center; }
.answered { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
p.meta .answered { display: inline; margin: 0 0 0 6px; }
p.meta .answered::before { content: "· "; }
@media (max-width: 700px) {
  /* Phone: verdict, question and arrow on top; the decision and date share the line below. */
  details.finding-row > summary { grid-template-columns: auto minmax(0, 1fr) auto 12px; row-gap: 4px; padding: 10px 16px; }
  .finding-row .q { grid-column: 2 / 4; }
  .finding-row .short { grid-column: 2; grid-row: 2; }
  .finding-row .date { grid-column: 3; grid-row: 2; }
  details.finding-row > summary::after { grid-column: 4; grid-row: 1; }
  .finding-body { padding: 2px 16px 16px; }
}
.finding-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; }
.finding-foot > span { display: inline-flex; align-items: center; margin-right: auto; }
.finding-foot form { margin: 0; }
.finding-foot button { padding: 4px 12px; font-size: 13px; }

/* ---- forms ---- */
form.run { margin-top: 10px; }
.grid { display: grid; gap: 8px 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 6px; grid-column: 1 / -1; }
.field.check > span { font-size: 13px; color: var(--text); }
.field.wide { width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-width: 0; padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; background: rgb(255 255 255 / .04);
}
select option { background: var(--solid); }
textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
/* A dark pill inside a prismatic ring, its glow as coloured shadows around it. */
button {
  padding: 9px 20px; border-radius: 999px; font-weight: 500; cursor: pointer; color: #fff;
  border: 1.5px solid transparent;
  background: linear-gradient(#0b0d18, #0b0d18) padding-box, var(--prism) border-box;
  box-shadow: -5px 0 16px -7px rgb(255 179 71 / .5), 5px 0 16px -7px rgb(155 107 255 / .6), 0 5px 16px -9px rgb(79 216 255 / .5);
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.danger { background: rgb(255 123 139 / .14); border-color: var(--neg); color: var(--neg); box-shadow: none; }
.submit { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
.htmx-request button[type="submit"] { opacity: .6; }

.errors {
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px;
}
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.notice, .note { background: var(--note-bg); border-radius: 6px; padding: 8px 10px; }

/* ---- tables ---- */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
thead th { font-weight: 600; color: var(--muted); font-size: 12.5px; border-bottom-color: var(--border); }
tbody th { font-weight: 500; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
thead th.num { white-space: normal; min-width: 7em; }
/* Inside widgets columns size to their content, so tables fit half a page. */
.widget thead th.num { min-width: 0; white-space: nowrap; }
/* Phones: headings stay on one line too; the table scrolls sideways instead. */
@media (max-width: 640px) { thead th.num { min-width: 0; white-space: nowrap; } }
.widget th, .widget td { padding-left: 8px; padding-right: 8px; }
td.wrap { white-space: normal; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.strong { font-weight: 700; }
table.metrics tbody tr:hover { background: var(--grid); }
.meta { color: var(--muted); }

.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; border: 1px solid var(--border); }
.badge.running, .badge.queued { color: var(--accent); border-color: var(--accent); }
.badge.done { color: var(--pos); border-color: var(--pos); }
.badge.failed { color: var(--neg); border-color: var(--neg); }

details.log { margin: 8px 0; }
details.log > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
details.log > summary::-webkit-details-marker, details.specs > summary::-webkit-details-marker { display: none; }
details.log pre { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px; margin-top: 6px; }

/* ---- tooltips ---- */
.tip { border-bottom: 1px dotted var(--muted); cursor: help; }
.tip:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Info icon: detail on hover or tap instead of a second line. */
.info {
  display: inline-flex; flex: none; margin-left: 6px; vertical-align: -2px; color: var(--muted); cursor: help; border-radius: 50%;
}
.info:hover { color: var(--text); }
.info:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 1px; }
.tip-pop {
  position: absolute; z-index: 20; max-width: min(340px, calc(100vw - 16px));
  background: var(--solid); color: var(--text); border: 1px solid var(--border); padding: 7px 10px; border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
  font-size: 12.5px; font-weight: 400; line-height: 1.4; pointer-events: none; white-space: normal;
}

/* ---- charts ---- */
/* uPlot sizes to the container; keep its legend from widening the page. */
.chart { min-width: 0; max-width: 100%; overflow: hidden; }
.chart .u-legend { display: block; max-width: 100%; white-space: normal; }
.chart .u-legend .u-series { display: inline-block; }
.chart-controls { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.chart .uplot { font-family: inherit; }
.chart .u-legend { font-size: 12px; color: var(--text); }
.chart .u-legend th { font-weight: 500; }
.chart-dd { margin-top: 4px; }
.chart .u-over { overflow: visible; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  padding: 6px 9px; border-radius: 8px; font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums;
  background: var(--solid); color: var(--text); border: 1px solid var(--border); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .7);
}
.chart-tip-time { color: var(--muted); }
.chart-tip-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-tip-name { color: var(--muted); margin-right: 8px; }

/* ---- paper trading ---- */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -4px 0 12px; }
.pills a { padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px; font-weight: 500; text-decoration: none; color: var(--muted); background: var(--card); }
.pills a:hover { color: var(--text); }
.pills a[aria-current="page"] { background: var(--accent-soft); border-color: rgb(154 140 255 / .5); color: var(--text); }
/* With app.js the highlight is one element per row that glides between the
   pills (session switches happen in place). */
.pills { position: relative; }
.pills a { position: relative; z-index: 1; }
.pills.sliding a[aria-current="page"] { background: transparent; border-color: transparent; }
.pill-slider {
  display: none; position: absolute; left: 0; top: 0; z-index: 0; box-sizing: border-box; border-radius: 999px; pointer-events: none;
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card); border: 1px solid rgb(154 140 255 / .5);
}
.pills.sliding .pill-slider { display: block; }

.stats { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat-label { margin-bottom: 6px; }
/* Dot-matrix numerals, like the landing page's counters. */
.stat-value { font-family: var(--dots); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.stat-value .small { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; }
/* "(0.36%)" after an amount: every one alike (paper::pct_note). */
.stat-value .pct-note, .pct-note { margin-left: 6px; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.sleeves { display: grid; gap: 14px; margin-bottom: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
a.card.sleeve { display: block; color: var(--text); text-decoration: none; margin-bottom: 0; transition: border-color .2s ease, transform .2s ease; }
a.card.sleeve:hover { border-color: rgb(154 140 255 / .45); transform: translateY(-2px); }
a.card.sleeve h3 { margin: 0 0 10px; font-size: 18px; font-weight: 400; color: var(--text); }
a.card.sleeve dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-variant-numeric: tabular-nums; }
a.card.sleeve dt { color: var(--muted); }
a.card.sleeve dd { margin: 0; text-align: right; }
a.card.sleeve p.plan { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); }
a.card.sleeve p.plan strong { color: var(--text); font-weight: 500; }
.two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

.warn { color: var(--warn); font-weight: 600; }
.crit { color: var(--neg); font-weight: 700; }
.badge.lvl.info { color: var(--accent); border-color: var(--accent); }
.badge.lvl.warn { color: var(--warn); border-color: var(--warn); font-weight: 400; }
.badge.lvl.crit { color: #fff; background: var(--neg); border-color: var(--neg); }
.badge.lvl.digest { color: var(--muted); }
ul.alerts { list-style: none; margin: 0; padding: 0; }
ul.alerts li { padding: 6px 0 6px 10px; border-left: 3px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
ul.alerts li.warning { border-left-color: var(--warn); }
ul.alerts li.critical { border-left-color: var(--neg); background: var(--warn-bg); }
table.events tr.alert.warning td:first-child { box-shadow: inset 3px 0 var(--warn); }
table.events tr.alert.critical { background: var(--warn-bg); }
table.events tr.alert.critical td:first-child { box-shadow: inset 3px 0 var(--neg); }
table.events tr.alert.info td:first-child { box-shadow: inset 3px 0 var(--accent); }
table.events td.wrap { min-width: 16em; }
table.events pre { margin-top: 2px; color: var(--muted); }
.mark { white-space: nowrap; }
/* Phones: each event becomes a block, details on their own full-width line. */
@media (max-width: 640px) {
  table.events thead { display: none; }
  table.events, table.events tbody { display: block; }
  table.events tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 6px 0; border-bottom: 1px solid var(--grid); }
  table.events td { border: none; padding: 1px 4px; }
  table.events td.wrap { flex-basis: 100%; min-width: 0; }
  table.events .mark { display: block; white-space: normal; }
  table.events td.wrap > strong { white-space: nowrap; }
  table.events tr.alert td:first-child { box-shadow: none; }
  table.events tr.alert.warning { box-shadow: inset 3px 0 var(--warn); }
  table.events tr.alert.critical { box-shadow: inset 3px 0 var(--neg); }
}

pre.cmd, pre.digest { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.tag { display: inline-block; font-size: 11px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border); color: var(--muted); vertical-align: 1px; }
.tag.perp { color: var(--s2); border-color: var(--s2); }
tr.pair th, tr.pair td { border-top: none; }
tr.total th, tr.total td { border-top: 1px solid var(--border); color: var(--muted); }

form.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
form.filters .field { min-width: 150px; flex: 0 1 220px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
ul.downloads { margin: 0; padding-left: 1.2rem; columns: 2 16rem; }
form.chat { margin-bottom: 1rem; }
article.exchange { border-top: 1px solid var(--grid); padding: .6rem 0; }
article.exchange .answer { white-space: pre-wrap; }
article.proposal { border-top: 1px solid var(--grid); padding: .6rem 0; }
article.proposal h3 { margin: 0 0 .2rem; font-size: 1rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: .4rem 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
form.decide { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
form.config textarea { width: 100%; font-size: 13px; }
pre.diff .add { color: var(--pos, #1a7f37); background: color-mix(in srgb, currentColor 10%, transparent); }
pre.diff .del { color: var(--neg, #cf222e); background: color-mix(in srgb, currentColor 10%, transparent); }
form.save { margin-top: .8rem; }
.chart-empty { padding: 28px 12px; text-align: center; border: 1px dashed var(--border); border-radius: 10px; color: var(--text); }
.chart-empty p { margin: 2px 0; }

/* ---- status banner ---- */
.status {
  --tone: var(--pos);
  background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--tone) 10%, transparent), transparent 60%), var(--card);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, var(--border)); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 14px 22px; margin-bottom: 16px;
}
.status.waiting { --tone: var(--accent); }
.status.look { --tone: var(--warn); }
.status.action { --tone: var(--neg); }
.status-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.status-head strong { font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 18%, transparent), 0 0 14px var(--tone); }
.status-reasons { margin: 8px 0 0; padding-left: 20px; }
.status-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 20px; margin: 8px 0 0; }
.status-facts dt { font-size: 12.5px; color: var(--muted); }
.status-facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.status-facts dd > :not(.info) { overflow: hidden; text-overflow: ellipsis; }
.compare-link { margin: -6px 0 12px; }
.compare-pick { display: flex; flex-wrap: wrap; gap: 0 24px; }
.compare-lead { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
table.compare th:first-child { color: var(--muted); font-weight: 500; }

/* ---- experiments ---- */
ul.experiments { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.experiments li form { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
ul.experiments .q { font-weight: 600; }
ul.experiments .meta { grid-column: 1; color: var(--muted); }
ul.experiments button { grid-column: 2; grid-row: 1 / span 2; }
h2.advanced { color: var(--muted); font-size: 14px; font-weight: 600; margin: 24px 0 10px; }
.answer .question { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.answer .lead { font-size: 17px; margin: 0 0 8px; }
/* Dates and words in a stat stay in the headline face; dots are for amounts. */
.stat-value .text { font-family: var(--display); font-size: 26px; font-weight: 300; letter-spacing: -.03em; }

/* ---- widgets ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.layout-bar { display: flex; align-items: center; gap: 12px; }
/* "● Live · 14:03:12 UTC": live prices are in (app.js refreshes the page's values). */
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.live-badge.off { color: var(--warn); }
.live-dot { --tone: var(--pos); --beat: 2.4s; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); flex: none; }
/* Blocks: every grid row is one 208px block with a 16px gap, and a widget spans
   1, 2 or 3 of them (S, M, L), so a size is the same height everywhere and two
   S stack exactly beside one M. "dense" puts each widget in the first place it
   fits, so a column never keeps a hole a later widget could fill. Two columns
   on wide screens, a wide widget spans both; one column on phones. app.js
   keeps BLOCK and GAP in step with these numbers. */
.widgets {
  display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 208px; grid-auto-flow: row dense;
}
@media (min-width: 900px) {
  .widgets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .widget.wide, .widget-placeholder.wide { grid-column: 1 / -1; }
}
.widget.h1, .widget-placeholder.h1 { grid-row-end: span 1; }
.widget.h2, .widget-placeholder.h2 { grid-row-end: span 2; }
.widget.h3, .widget-placeholder.h3 { grid-row-end: span 3; }
.widget { min-width: 0; min-height: 0; position: relative; box-sizing: border-box; }
/* The content fills its blocks and scrolls inside when it doesn't fit. */
.widget-body { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.widget-body > .card, .widget-body > .status {
  flex: 1 1 auto; min-height: 0; margin: 0; overflow: auto;
}
/* A chart always fits its widget, so a chart widget never scrolls (and never
   takes the mouse wheel from the page). */
.widget.elastic .widget-body > .card { overflow: hidden; }
.widget .card > h2:first-child { margin-top: 0; }
/* Widget title row: the title, and on the right any buttons (download menu). */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.widget .sleeves { margin-bottom: 0; }

/* Small quiet buttons: edit tools, "Edit layout". */
button.ghost, a.button.ghost, .widget-tools button, button.linkish {
  padding: 5px 12px; font-size: 13px; color: var(--text); background: rgb(255 255 255 / .05);
  border: 1px solid var(--border); box-shadow: none;
}
button.ghost:hover, a.button.ghost:hover, .widget-tools button:hover { background: rgb(255 255 255 / .1); transform: none; }
button.ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: rgb(154 140 255 / .5); }
button.linkish { padding: 0; border: none; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* Edit mode: a title bar over the top of each widget (it is the drag handle)
   and a grip in the bottom-right corner. */
.widget-bar, .resize-grip { display: none; }
.editing .widget-bar {
  display: flex; align-items: center; gap: 8px; position: absolute; z-index: 3; inset: 0 0 auto 0;
  padding: 7px 8px 7px 6px; border-radius: 16px 16px 10px 10px; cursor: grab; touch-action: none; user-select: none;
  background: rgb(22 20 40 / .88); border: 1px solid rgb(154 140 255 / .35); backdrop-filter: blur(10px);
}
.editing .widget-body { outline: 1px dashed rgb(154 140 255 / .45); outline-offset: 3px; border-radius: 18px; }
.widget-bar .grip { padding: 2px 8px; font-size: 16px; line-height: 1; background: none; border: none; box-shadow: none; color: var(--muted); cursor: grab; }
.widget-bar .grip:hover { color: var(--text); transform: none; }
.widget-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-tools { display: flex; gap: 6px; align-items: center; flex: none; }
.widget-tools button { padding: 4px 10px; cursor: pointer; }
.widget-tools button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgb(154 140 255 / .6); }
.widget-tools button:disabled { opacity: .35; cursor: not-allowed; }
.widget-tools .heights { display: inline-flex; }
.widget-tools .heights button { border-radius: 0; margin-left: -1px; }
.widget-tools .heights button:first-child { border-radius: 999px 0 0 999px; margin-left: 0; }
.widget-tools .heights button:last-child { border-radius: 0 999px 999px 0; }
.widget-tools button.remove { color: var(--neg); }
.editing .resize-grip {
  display: block; position: absolute; z-index: 3; right: -4px; bottom: -4px; width: 26px; height: 26px;
  cursor: nwse-resize; touch-action: none; border-radius: 0 0 16px 0;
  background: linear-gradient(135deg, transparent 50%, rgb(154 140 255 / .7) 50%, rgb(154 140 255 / .7) 58%, transparent 58%, transparent 70%, rgb(154 140 255 / .7) 70%, rgb(154 140 255 / .7) 78%, transparent 78%);
}
/* While dragging: the widget follows the pointer above the page, and a dashed
   space shows where it will land. */
.widget.lifted { z-index: 50; pointer-events: none; opacity: .92; filter: drop-shadow(0 18px 40px rgb(0 0 0 / .55)); }
.widget.lifted .widget-bar { cursor: grabbing; border-color: var(--accent); }
.widget.resizing .widget-body { outline: 2px solid var(--accent); }
.widget-placeholder { box-sizing: border-box; height: 100%; border: 2px dashed rgb(154 140 255 / .55); border-radius: 18px; background: rgb(154 140 255 / .06); }
body.dragging-widget, body.dragging-widget * { cursor: grabbing !important; }
body.resizing-widget, body.resizing-widget * { cursor: nwse-resize !important; }
/* The "+" list of widgets to add (widgets::add_menu). */
/* One fixed width, enough for the longest description (no sideways scroll),
   whatever is on the page; narrower screens wrap. Two classes, so this wins
   over .menu-list's nowrap further down. */
.menu-list.widget-list {
  width: min(420px, calc(100vw - 32px)); box-sizing: border-box;
  max-height: min(70vh, 600px); overflow-x: hidden; overflow-y: auto; white-space: normal;
}
.widget-list ul { list-style: none; margin: 0; padding: 0; }
.widget-list-head { display: flex; align-items: center; margin: 4px 10px 6px; font-size: 13.5px; font-weight: 500; }
.add-item {
  display: block; width: 100%; padding: 7px 10px; border: none; border-radius: 8px; box-shadow: none;
  background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer;
}
.add-item:hover, .add-item:focus-visible { background: rgb(255 255 255 / .08); outline: none; transform: none; }
.add-name { display: block; font-size: 13.5px; }
.add-about { display: block; font-size: 12px; color: var(--muted); }
li.add-coin { padding: 7px 10px; }
.add-coin-row { display: flex; gap: 8px; margin-top: 6px; }
.coin-pick { flex: 1; min-width: 0; }
.coin-pick input { width: 100%; box-sizing: border-box; }
/* The coin picker's list opens inside the menu, so it is never cut off. */
/* Floats over everything under the search field (app.js places it), so the
   menu's own scrolling never cuts it off. */
.widget-list .coin-list {
  position: fixed; z-index: 30; margin: 0; padding: 4px; box-sizing: border-box; overflow-y: auto;
  background: var(--solid); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
}
.coin-list[hidden], .coin-list [hidden] { display: none; }
.coin-list [role="option"] { padding: 6px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.coin-list [role="option"]:hover, .coin-list [role="option"].active { background: rgb(255 255 255 / .08); }
.coin-list [role="option"][aria-selected="true"] { color: var(--accent); }
.coin-group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.coin-none { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.add-coin-row .add-item { width: auto; padding: 5px 16px; border: 1px solid rgb(154 140 255 / .5); border-radius: 999px; background: var(--accent-soft); }
.widget-list #reset-layout { display: block; margin: 8px 10px 4px; font-size: 12.5px; }
.widget-list-sub { margin: 10px 10px 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.widget-list ul.shown { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 10px 4px; font-size: 12.5px; color: var(--muted); }

/* Horizontal bars: holdings and risk meters. */
ul.bars, ul.meters, ul.proposals { list-style: none; margin: 0; padding: 0; }
ul.bars li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-value { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .06); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.bar .fill.short { background: var(--neg); opacity: .7; }
.bar .fill.cash { background: var(--muted); opacity: .55; }
.bar .fill.warn { background: var(--warn); }
.bar .fill.crit { background: var(--neg); }
ul.meters li { padding: 4px 0; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
ul.proposals li { padding: 5px 0; border-top: 1px solid var(--grid); }

.coin-head { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 4px 16px; align-items: baseline; margin: -4px 0 8px; font-size: 13px; }
.coin-price { font-family: var(--dots); font-size: 28px; font-weight: 800; }

/* Monthly returns: tinted cells, deeper for bigger months. */
table.monthly { font-size: 12.5px; }
/* Twelve months plus the annual total share the width evenly; only a
   phone, below the min-width, scrolls. */
table.monthly { width: 100%; min-width: 600px; table-layout: fixed; }
table.monthly th, table.monthly td { padding: 7px 4px; white-space: nowrap; }
table.monthly th:first-child { width: 4.2em; padding-left: 8px; }
/* Annual is the total: a wider column, so its longer name keeps the same gap as the months. */
table.monthly tr > :last-child { width: 8.7em; padding-right: 8px; }
.heat { border-radius: 6px; }
.heat.pos1 { background: rgb(95 227 161 / .08); }
.heat.pos2 { background: rgb(95 227 161 / .18); }
.heat.pos3 { background: rgb(95 227 161 / .32); }
.heat.neg1 { background: rgb(255 123 139 / .08); }
.heat.neg2 { background: rgb(255 123 139 / .18); }
.heat.neg3 { background: rgb(255 123 139 / .32); }

/* A widget adapts to its own width: when narrow, columns marked optional
   (Sleeve) hide and the coin price shrinks, so nothing scrolls sideways. */
.widget-body > .card { container-type: inline-size; }
@container (max-width: 470px) {
  .optional { display: none; }
  .coin-price { font-size: 22px; }
  .coin-head { column-gap: 10px; }
}

/* Icon button with a small menu under it (views::download_menu). */
details.menu { position: relative; flex: none; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.icon-button {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  color: var(--muted); background: rgb(255 255 255 / .05); border: 1px solid var(--border);
}
.icon-button:hover, details.menu[open] > .icon-button { color: var(--text); background: rgb(255 255 255 / .1); }
.icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A toggle icon button (Edit layout): the second icon shows while pressed. */
button.icon-button { padding: 0; box-shadow: none; }
button.icon-button:hover { transform: none; }
.icon-button[aria-pressed="true"] { color: var(--text); background: var(--accent-soft); border-color: rgb(154 140 255 / .6); }
.icon-button .when-on, .icon-button[aria-pressed="true"] .when-off { display: none; }
.icon-button[aria-pressed="true"] .when-on { display: block; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px; list-style: none; white-space: nowrap;
  background: var(--solid); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
}
.menu-list a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.menu-list a:hover, .menu-list a:focus-visible { background: rgb(255 255 255 / .08); outline: none; }

/* Tabs inside a widget (Positions: Open / Closed). */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs .tab {
  padding: 5px 14px; font-size: 13px; border-radius: 999px; cursor: pointer; box-shadow: none;
  color: var(--muted); background: rgb(255 255 255 / .04); border: 1px solid var(--border);
}
.tabs .tab:hover { color: var(--text); transform: none; }
.tabs .tab[aria-selected="true"] { color: var(--text); background: var(--accent-soft); border-color: rgb(154 140 255 / .5); }
.tabs .tab .muted { margin-left: 4px; }

/* Dropdowns in the app's style (app.js): the select stays hidden for the
   form; a button shows the choice and opens a list over the page. */
.select { position: relative; min-width: 0; }
.select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-button {
  width: 100%; min-height: 38px; padding: 8px 34px 8px 11px; box-sizing: border-box; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; border: 1px solid var(--border); border-radius: 10px;
  position: relative; background: rgb(255 255 255 / .04);
}
.select-button:hover { border-color: rgb(154 140 255 / .45); transform: none; }
.select-button:focus-visible, .select-button[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: -1px; }
.select-button:disabled { opacity: .5; cursor: not-allowed; }
.select-list {
  position: fixed; z-index: 70; margin: 0; padding: 4px; list-style: none; box-sizing: border-box; overflow-y: auto; max-width: calc(100vw - 32px);
  background: var(--solid); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
}
.select-list[hidden] { display: none; }
.select-list [role="option"] { padding: 7px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.select-list [role="option"]:hover, .select-list [role="option"].active { background: rgb(255 255 255 / .08); }
.select-list [role="option"][aria-selected="true"] { color: var(--accent); }
.select-list [aria-disabled] { opacity: .4; cursor: default; }
.select-group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Checkboxes in the app's style (not the browser's): a rounded box that
   fills with the accent and a check mark (Lucide "check", ISC). */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 5px; background: rgb(255 255 255 / .04) no-repeat center / 13px 13px;
  vertical-align: -4px;
}
input[type="checkbox"]:hover { border-color: rgb(154 140 255 / .6); }
input[type="checkbox"]:checked {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the test builder (builder.rs) ---- */
.builder { margin-bottom: 24px; scroll-margin-top: 96px; }
.builder h2 { display: flex; align-items: center; margin: 0; }
/* New test: a fold, closed until asked for. */
details.builder > summary { list-style: none; display: flex; align-items: baseline; gap: 12px; cursor: pointer; }
details.builder > summary::-webkit-details-marker { display: none; }
details.builder[open] > summary { margin-bottom: 10px; }
/* Its chevron sits at the right end of the header. */
details.builder > summary::before { order: 2; margin-left: auto; }
.builder-about { margin: 0 0 16px; max-width: 80ch; }
#builder-messages:not(:empty) { margin: -12px 0 24px; }
.builder fieldset { border: none; margin: 0 0 16px; padding: 0; min-width: 0; }
.builder legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.builder h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 12px; }
.field-row > .field { flex: 1 1 190px; }
.field-row > .field.check { flex: 0 1 auto; align-self: flex-end; padding-bottom: 9px; }
.field-row .field > span { display: flex; align-items: center; }
/* What to test: one dropdown whose options carry a description (and the
   experts' badge); the chosen one's description shows under it. */
.test-pick { margin-bottom: 18px; }
.test-pick .field { max-width: 520px; }
#test-about { margin: 6px 0 0; max-width: 72ch; }
.select-list.rich { max-width: min(560px, calc(100vw - 32px)); }
.select-list.rich [role="option"] { white-space: normal; padding: 8px 12px; }
.opt-title { display: block; font-weight: 500; color: var(--text); }
.select-list [aria-selected="true"] .opt-title { color: var(--accent); }
.opt-about { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.expert-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-border); }
.config-fields { margin-bottom: 16px; }
.config-fields textarea { width: 100%; }
.config-fields .units { margin: 4px 0 10px; }
/* "Open as config file" sits on the left, away from Run the test. */
.builder-actions .open-config { margin-right: auto; }
/* Every setting of a config file, folded under the editor. */
.config-reference { margin-top: 12px; }
.config-reference > summary { cursor: pointer; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.config-reference > summary::-webkit-details-marker { display: none; }
.config-reference section { margin-top: 16px; }
.config-reference h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 500; }
.config-reference p { margin: 0 0 6px; }
table.reference { width: 100%; min-width: 560px; font-size: 13px; table-layout: fixed; }
table.reference td { vertical-align: top; }
table.reference th:first-child { width: 12em; }
table.reference th:nth-child(2) { width: 11em; }
table.reference td.nowrap { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
/* A test page: back link, and "Edit as config file" when the test kept one. */
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.button.ghost { display: inline-block; border-radius: 999px; text-decoration: none; }
/* Setups: one, or A and B side by side on wide screens. */
.setups { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .setups:has(fieldset[data-setup="b"]:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.builder fieldset.setup { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgb(255 255 255 / .02); }
.builder fieldset.setup legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; }
.builder fieldset.setup legend + * { clear: both; }
.copy-a { padding: 2px 10px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.strategy-params > p { margin: -2px 0 10px; }
.shared-fields { padding-top: 4px; }
.builder-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; }
#builder-messages:not(:empty) { margin-top: 12px; }
/* Several coins: chips plus a search field, all in one box. */
.chip-picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 38px; padding: 4px 8px; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px; background: rgb(255 255 255 / .04);
}
.chip-picker:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.chip-picker { position: relative; padding-right: 32px; }
.chip-picker::after { position: absolute; right: 11px; top: 50%; margin-top: -7px; }
.chip-picker:has(input[aria-expanded="true"])::after { transform: rotate(180deg); }
.chips { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 10px; font-size: 13px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgb(154 140 255 / .4); }
.chip-x { padding: 0 6px; font-size: 10px; line-height: 1.6; color: var(--muted); background: none; border: none; box-shadow: none; cursor: pointer; }
.chip-x:hover { color: var(--text); transform: none; }
.chip-picker input.chip-search { flex: 1 1 110px; width: auto; min-width: 80px; padding: 4px 2px; border: none; background: none; outline: none; }
/* Moved to the page body while open (app.js): a frosted card would otherwise
   become what "fixed" is measured from. */
.coin-list.floating {
  position: fixed; z-index: 30; margin: 0; padding: 4px; list-style: none; box-sizing: border-box; overflow-y: auto;
  background: var(--solid); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
}
/* Sliders in the app's style: a thin track filled with the accent up to the
   value (--fill, set by app.js) and a round thumb. */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: none; cursor: pointer; --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), rgb(255 255 255 / .1) var(--fill));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgb(255 255 255 / .1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: var(--text); border: 3px solid var(--accent); box-shadow: 0 2px 8px rgb(0 0 0 / .5);
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }

/* A portfolio: up to four strategies, two by two. */
.portfolio-slots .setups { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .portfolio-slots .setups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.portfolio-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.preset-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
/* The six safety limits, chosen one by one. */
.limit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.share-total { font-size: 13.5px; color: var(--muted); }
.share-field > span { justify-content: space-between; }
.share-value { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.add-slot { margin: 12px 0 16px; }
.reality-fields > p { margin: 0 0 10px; }
.test-result h3.sub-title { display: flex; align-items: center; margin: 18px 0 8px; font-size: 13px; }

/* A built test's result. */
.test-result h2 { margin-top: 0; }
.test-result .verdict-line { font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.test-result table { margin-bottom: 16px; }
.test-result tr.muted td { color: var(--muted); }
.test-notes h3 { margin: 16px 0 6px; font-size: 13px; }
.test-notes ul { margin: 0 0 6px; padding-left: 20px; }
details.specs { margin-top: 14px; }
details.specs > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
details.specs pre { white-space: pre-wrap; font-size: 12.5px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }

/* Notes in the corner: research finished (app.js). */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
  position: relative; display: grid; gap: 4px; padding: 12px 38px 12px 14px; font-size: 13.5px;
  background: var(--solid); border: 1px solid rgb(154 140 255 / .45); border-radius: 12px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .7);
}
.toast.failed { border-color: color-mix(in srgb, var(--neg) 55%, transparent); }
.toast span { color: var(--muted); }
.toast-close { position: absolute; top: 6px; right: 6px; padding: 2px 8px; background: none; border: none; box-shadow: none; color: var(--muted); cursor: pointer; }
.toast-close:hover { color: var(--text); transform: none; }

/* ---- motion ----
   Only for people whose system doesn't ask for less motion. What is live
   keeps moving: the status dot sends out a ring (faster the more it needs
   you), a running job's badge pulses. Everything else moves once:
   bars grow in, menus, tooltips and tab panels fade in, buttons ease their
   colours. */
@media (prefers-reduced-motion: no-preference) {
  .status { --beat: 3.2s; }
  .status.waiting { --beat: 2.4s; }
  .status.look { --beat: 1.6s; }
  .status.action { --beat: 1s; }
  /* The core with its glow; the only ring is the moving one (no still halo
     around the core). */
  .status .dot { position: relative; box-shadow: 0 0 14px var(--tone); }
  .status .dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tone);
    animation: dot-ring var(--beat) cubic-bezier(0, 0, .2, 1) infinite;
  }
  @keyframes dot-ring {
    0% { transform: scale(1); opacity: .55; }
    60%, 100% { transform: scale(2.4); opacity: 0; }
  }

  /* The live dot: like the status dot, a still core and one ring. */
  .live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tone);
    animation: dot-ring var(--beat) cubic-bezier(0, 0, .2, 1) infinite;
  }
  /* A live number that moved: a short green or red glow behind it. */
  .tick-up, .tick-down { border-radius: 4px; }
  .tick-up { animation: tick-up 1.4s ease-out; }
  .tick-down { animation: tick-down 1.4s ease-out; }
  @keyframes tick-up { from { background: color-mix(in srgb, var(--pos) 22%, transparent); } }
  @keyframes tick-down { from { background: color-mix(in srgb, var(--neg) 22%, transparent); } }
  .bar .fill { transition: width .7s cubic-bezier(.2, .8, .2, 1); }

  .badge.running, .badge.queued { animation: badge-pulse 1.2s ease-in-out infinite; }
  @keyframes badge-pulse { 50% { opacity: .45; } }

  /* From empty to the width the page gives it. */
  .bar .fill { animation: bar-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes bar-grow { from { width: 0; } }

  .toast { animation: pop-in .2s ease-out; }
  details.menu[open] > .menu-list { animation: pop-in .14s ease-out; transform-origin: top right; }
  .tip-pop:not([hidden]) { animation: fade-in .12s ease-out; }
  .tab-panel:not([hidden]) { animation: fade-in .18s ease-out; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
  @keyframes fade-in { from { opacity: 0; } }

  .pills a, .tabs .tab, .icon-button, .info, .widget-tools button, .menu-list a {
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
  }
}

/* Switching session in place (app.js): the highlight glides, what is about
   to change dims while the new session loads, then fades in. Nothing moves,
   so nothing jumps. */
@media (prefers-reduced-motion: no-preference) {
  .pill-slider { transition: transform .42s cubic-bezier(.3, .9, .25, 1), width .42s cubic-bezier(.3, .9, .25, 1); }
  .pill-slider.instant { transition: none; }
  main .widget-body, main > h1, .page-head h1 { transition: opacity .18s ease; }
  main.switching .widget-body, main.switching .page-head h1 { opacity: .45; }
  .swapped { animation: swap-in .32s ease-out; }
  @keyframes swap-in { from { opacity: .45; } }
}

/* ---- the one chevron ---- */
/* Everything that opens shows the same chevron: a fold points right while
   closed and down while open; a dropdown points down and flips while open;
   page buttons point the way they go. */
.chev,
details.card > summary::before,
details.finding-row > summary::after,
.config-reference > summary::before,
details.log > summary::before,
details.specs > summary::before,
.select-button::after,
.chip-picker::after {
  content: ""; display: inline-block; flex: none; align-self: center; width: 14px; height: 14px;
  background-color: var(--muted); -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
  transition: transform .15s ease;
}
details.card > summary::before,
details.finding-row > summary::after,
.config-reference > summary::before,
details.log > summary::before,
details.specs > summary::before { transform: rotate(-90deg); }
details[open] > summary::before, details[open] > summary::after { transform: none; }
.select-button::after { position: absolute; right: 11px; top: 50%; margin-top: -7px; }
.select-button[aria-expanded="true"]::after { transform: rotate(180deg); }
.chev-left { transform: rotate(90deg); }
.chev-right { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .chev, details > summary::before, details > summary::after, .select-button::after { transition: none; } }

/* ---- sessions (sessions.rs) ---- */
/* Every session wears its kind: practice is quiet grey, testnet blue, real
   money amber with a dot, so they are never mistaken for one another. */
.kind-badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; vertical-align: 3px; white-space: nowrap; border: 1px solid var(--border); }
h1 .kind-badge { font-size: 12px; vertical-align: 6px; }
.kind-badge.practice { color: var(--muted); background: rgb(255 255 255 / .04); }
.kind-badge.testnet { color: rgb(79 216 255); background: rgb(79 216 255 / .08); border-color: rgb(79 216 255 / .4); }
.kind-badge.live { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-border); }
.kind-badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sessions-group { margin-top: 28px; }
.sessions-group h2 { display: flex; align-items: center; gap: 8px; }
.empty-group p { margin: 0; }
table.sessions td { vertical-align: middle; }
.session-state { font-size: 13px; }
.session-state.state-running { color: var(--pos); }
.session-state.state-paused { color: var(--warn); }
.session-state.state-ended, .session-state.state-waiting { color: var(--muted); }
/* While a row asks "End …?" or "Delete …?", its other buttons step aside. */
.session-actions.asking > :not(.open) { display: none; }
.confirm-wrap.open { display: flex; }
form.confirm span { max-width: 34ch; text-align: right; }
.replayed { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--warn); white-space: nowrap; }
.session-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.session-actions form { margin: 0; }
.confirm-wrap { display: contents; }
form.confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
form.confirm[hidden] { display: none; }
button.danger { padding: 5px 12px; font-size: 13px; color: #fff; background: rgb(255 123 139 / .25); border: 1px solid var(--neg); box-shadow: none; }
button.danger:hover { background: rgb(255 123 139 / .4); transform: none; }
.session-note { margin: -4px 0 14px; font-size: 13.5px; color: var(--muted); }
.session-note.warn { color: var(--warn); }
.welcome p { max-width: 72ch; }
.welcome-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.paused-tag { font-size: 11.5px; font-weight: 600; color: var(--warn); padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); border: 1px solid var(--warn-border); vertical-align: 2px; }
.sleeve-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sleeve-controls .session-note { margin: 0 auto 0 0; }
.editor-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
/* A session's buttons stay on one line; the replayed note goes under its date. */
table.sessions .session-actions { flex-wrap: nowrap; }
table.sessions .replayed { display: flex; margin-top: 2px; }

/* ---- settings (settings.rs) ---- */
.settings-card { margin-bottom: 20px; }
.settings-card > h2 { margin-top: 0; }
.settings-card > p.small { max-width: 80ch; }
fieldset.channel { border: none; padding: 0; margin: 18px 0 0; min-width: 0; }
fieldset.channel legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 8px; font-weight: 600; }
fieldset.channel legend .small { font-weight: 400; }
.test-sends { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.test-sends form { margin: 0; }
.ask-wider { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-border); }
.ask-wider p, .ask-wider ul { margin: 0 0 8px; }

/* ---- site password and landing placeholder (gate.rs) ---- */
main.solo { display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 340px; padding: 28px 24px; }
.gate .brand { font-size: 48px; align-self: center; }
.gate button { align-self: stretch; }
.gate-error { margin: 0; font-size: 13px; color: var(--neg); }
.landing { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.landing .brand { font-size: 48px; color: var(--text); }
.landing p { margin: 0; }

/* ---- accounts (auth.rs) ---- */
footer { gap: 20px; align-items: center; }
.footer-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-link:hover { color: var(--text); }
.signin-lead { margin: 0; text-align: center; color: var(--muted); }
a.button.provider, button.provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 500;
  color: var(--text); background: rgb(255 255 255 / .06); border: 1px solid var(--border);
  transition: background .15s ease, border-color .15s ease;
}
a.button.provider:hover, button.provider:hover:not(:disabled) { background: rgb(255 255 255 / .1); border-color: rgb(154 140 255 / .5); }
a.button.provider:focus-visible, button.provider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-logo { width: 18px; height: 18px; flex: none; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.methods li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.actions-row form { margin: 0; }
button.provider { width: 100%; box-shadow: none; font: inherit; font-weight: 500; cursor: pointer; }
button.provider:hover:not(:disabled) { transform: none; }
.signin-note { margin: -6px 0 0; min-height: 1em; font-size: 13px; color: var(--muted); text-align: center; }
.signin-note:empty { display: none; }
ul.methods li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
ul.methods li .method-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.methods li form { margin: 0; flex: none; }
.method-note { margin: 14px 0 0; font-size: 13px; }
.signin-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.signin-links { margin: -4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.signin-note.left { text-align: left; margin: 0; }
p.divider { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 12px; }
p.divider::before, p.divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
ol.recovery-codes { margin: 0; padding-left: 30px; columns: 2; column-gap: 40px; font-family: var(--mono); font-size: 14px; }
ol.recovery-codes li { margin: 3px 0; }
.codes p { margin: 0; }
form.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 12px 0 0; }
form.inline-form .field { flex: 1 1 220px; }
form.inline { display: inline; margin: 0 0 0 8px; }

/* The wordmark image (static/evenpace-logo.png, 997×190) in the navbar and footer. */
.wordmark { display: inline-flex; flex: none; line-height: 0; }
.wordmark img { height: 26px; width: auto; display: block; }
footer .wordmark img { height: 22px; opacity: .55; }
footer .wordmark:hover img { opacity: .8; }
@media (max-width: 480px) { header .wordmark { display: none; } }
form.keys-form { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 14px; }
form.keys-form .field.wide { grid-column: 1 / -1; }
form.keys-form button { justify-self: start; }
.totp .qr { align-self: center; background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.totp .qr svg { width: 200px; height: 200px; display: block; }
details.manual-key { font-size: 13px; color: var(--muted); }
details.manual-key code { display: block; margin-top: 6px; word-break: break-all; color: var(--text); }
.gate > p, .gate > div > p { margin: 0; }
.key-check { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
.key-check .ok { color: var(--pos); }
.key-check .ok::before { content: "✓ "; }
.key-check .warn { color: var(--warn); }
ul.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
ul.plain-list strong { color: var(--text); font-weight: 500; }
