/* InnovLab Proxima Pool. One stylesheet; theme = [data-theme] (light | dark), colour palette =
   [data-palette] (sky | pearl | mint | ocean | graphite). Every colour is a token below;
   test/palette-contrast.test.ts parses these blocks and checks text contrast >= 4.5:1. */

/* Every palette follows one recipe: white page and cards, a solid saturated hero in the palette's
   hue with white type (overview band, page heads, miner head), a white key-numbers band and vivid
   chart marks. Hero colours are tokens, so the contrast test covers them too. */

/* ---------- base tokens: light (palette: sky, the default) ---------- */
:root {
  --bg: #f6f9fd;
  --card: #ffffff;
  --card-2: #f4f8fe;
  --line: #e3eaf4;
  --line-2: #eef3f9;
  --text: #0b1324;
  --text-2: #34435c;
  --muted: #56667e;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --amber: #b45309;
  --amber-soft: #fff7e8;
  --red: #c81e3a;
  --red-soft: #fff1f3;
  --code-bg: #f4f8fe;
  --code-text: #1e293b;
  --tip-bg: #0f172a;
  --tip-text: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .03);
  --shadow-h: 0 12px 28px -14px rgba(15, 23, 42, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  --accent: #0b66e4;
  --accent-2: #8fb9f7;
  --accent-ink: #0a54bd;
  --accent-soft: #e8f1ff;
  --on-accent: #ffffff;
  --btn-bg: var(--accent);
  --btn-text: var(--on-accent);
  --fill: var(--accent);
  --kpis-bg: #ffffff;
  --kpi-lead: var(--accent);
  --hl: var(--green);
  --c-pool: #0b66e4;
  --c-net: #d97706;
  --c-a: #2b7fff;
  --c-b: #e11d48;
  --area-op: .2;
  --hero-glow: radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .2) 0 150px, transparent 151px),
    radial-gradient(circle at 78% 135%, rgba(255, 255, 255, .1) 0 110px, transparent 111px);
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1257d6 0%, #0b6bd1 50%, #087a9f 100%);
  --hero-text: #ffffff;
  --hero-text-2: #f4f8ff;
  --hero-eyebrow: #f4f8ff;
  --hero-btn-bg: #ffffff;
  --hero-btn-text: #0a54bd;
  --hero-btn2-bg: transparent;
  --hero-btn2-text: #ffffff;
  --hero-btn2-line: rgba(255, 255, 255, .55);
  --hero-chip: rgba(255, 255, 255, .16);
}
/* ---------- base tokens: dark (palette: sky) ---------- */
:root[data-theme="dark"] {
  --bg: #0b1220;
  --card: #111a2c;
  --card-2: #142036;
  --line: #1f2b42;
  --line-2: #182338;
  --text: #e8eef8;
  --text-2: #aab6c8;
  --muted: #8b98ad;
  --green: #34d399;
  --green-soft: #0d2a22;
  --amber: #fbbf24;
  --amber-soft: #2a2213;
  --red: #fb7d93;
  --red-soft: #2e1520;
  --code-bg: #0d1626;
  --code-text: #d8e1ee;
  --tip-bg: #e8eef8;
  --tip-text: #0f172a;
  --shadow-sm: none;
  --shadow-h: 0 14px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
  --accent: #60a5fa;
  --accent-2: #2f5fa8;
  --accent-ink: #93c5fd;
  --accent-soft: #13284a;
  --on-accent: #04142e;
  --kpis-bg: var(--card);
  --c-pool: #60a5fa;
  --c-net: #fbbf24;
  --c-a: #60a5fa;
  --c-b: #f58ba0;
  --hero-glow: radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .08) 0 150px, transparent 151px);
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #123c86 0%, #0f4a8a 50%, #0b5674 100%);
  --hero-text-2: #cfe3ff;
  --hero-eyebrow: #cfe3ff;
  --hero-btn-text: #0f3f8f;
  --hero-btn2-line: rgba(255, 255, 255, .4);
  --hero-chip: rgba(255, 255, 255, .1);
}

/* ---------- palettes ---------- */
/* Pearl: the PF-like look, blue -> violet hero and buttons with emerald earnings. */
:root[data-palette="pearl"] {
  --bg: #f7f8fe; --card-2: #f6f7fe; --line: #e4e6f5; --line-2: #eff0fa; --code-bg: #f6f7fe;
  --accent: #4f46e5; --accent-2: #a5a8f6; --accent-ink: #4338ca; --accent-soft: #eef0ff; --on-accent: #ffffff;
  --green: #047857; --green-soft: #e9f9f2;
  --btn-bg: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%); --btn-text: #ffffff;
  --fill: linear-gradient(90deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  --c-pool: #4f46e5; --c-net: #059669; --c-a: #6366f1; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  --hero-btn-text: #4338ca;
}
:root[data-theme="dark"][data-palette="pearl"] {
  --bg: #0c0f1e; --card: #131733; --card-2: #171c3c; --line: #252b52; --line-2: #1d2245; --code-bg: #0f1329;
  --accent: #a5b4fc; --accent-2: #4c4fb8; --accent-ink: #c7d2fe; --accent-soft: #20265a; --on-accent: #0c0f2e;
  --green: #34d399; --green-soft: #0d2a24;
  --btn-bg: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%); --btn-text: #ffffff;
  --fill: linear-gradient(90deg, #3b82f6 0%, #6366f1 60%, #8b5cf6 100%);
  --c-pool: #a5b4fc; --c-net: #34d399; --c-a: #818cf8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1e3a8a 0%, #312e81 55%, #4c1d95 100%);
  --hero-btn-text: #312e81;
}
/* Mint: fresh teal-green. */
:root[data-palette="mint"] {
  --bg: #f5faf9; --card-2: #f3faf8; --line: #dfeae7; --line-2: #ecf4f2; --code-bg: #f3faf8;
  --accent: #0b7a70; --accent-2: #8fd3c9; --accent-ink: #0a6158; --accent-soft: #e5f6f3; --on-accent: #ffffff;
  --c-pool: #0d9488; --c-net: #d97706; --c-a: #0f9488; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0f766e 0%, #0b7f74 50%, #0e7490 100%);
  --hero-btn-text: #0a6158;
}
:root[data-theme="dark"][data-palette="mint"] {
  --bg: #08131a; --card: #0e1c24; --card-2: #11222b; --line: #1c313a; --line-2: #16272f; --code-bg: #0b1820;
  --accent: #2dd4bf; --accent-2: #17786d; --accent-ink: #5eead4; --accent-soft: #0e2f2f; --on-accent: #032722;
  --c-pool: #2dd4bf; --c-net: #fbbf24; --c-a: #2dd4bf; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #134e4a 0%, #115e59 50%, #164e63 100%);
  --hero-btn-text: #115e59;
}
/* Ocean: deeper, calmer blue. */
:root[data-palette="ocean"] {
  --bg: #f5f8fc; --card-2: #f3f8fc; --line: #dfe8f1; --line-2: #ecf2f8; --code-bg: #f3f8fc;
  --accent: #0369a1; --accent-2: #8cc4e4; --accent-ink: #075985; --accent-soft: #e6f2fa; --on-accent: #ffffff;
  --c-pool: #0369a1; --c-net: #ea580c; --c-a: #0284c7; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
  --hero-btn-text: #075985;
}
:root[data-theme="dark"][data-palette="ocean"] {
  --bg: #07111c; --card: #0d1a2a; --card-2: #112033; --line: #1b2c42; --line-2: #152538; --code-bg: #0a1624;
  --accent: #38bdf8; --accent-2: #19628a; --accent-ink: #7dd3fc; --accent-soft: #0b2a42; --on-accent: #03192b;
  --c-pool: #38bdf8; --c-net: #fb923c; --c-a: #38bdf8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #082f49 0%, #0c4a6e 50%, #075985 100%);
  --hero-btn-text: #0c4a6e;
}
/* Graphite: neutral slate with a near-black hero. */
:root[data-palette="graphite"] {
  --bg: #f6f7f9; --card-2: #f6f7f9; --line: #e2e6ec; --line-2: #eef1f4; --code-bg: #f6f7f9;
  --accent: #334155; --accent-2: #a3afc0; --accent-ink: #1e293b; --accent-soft: #eef1f5; --on-accent: #ffffff;
  --c-pool: #334155; --c-net: #d97706; --c-a: #475569; --c-b: #e11d48;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  --hero-btn-text: #1e293b;
}
:root[data-theme="dark"][data-palette="graphite"] {
  --bg: #0b0e14; --card: #12161e; --card-2: #161b24; --line: #232a36; --line-2: #1b212b; --code-bg: #0e1218;
  --accent: #cbd5e1; --accent-2: #5d6b80; --accent-ink: #e2e8f0; --accent-soft: #212a37; --on-accent: #0f172a;
  --c-pool: #cbd5e1; --c-net: #fbbf24; --c-a: #94a3b8; --c-b: #f58ba0;
  --hero-bg: var(--hero-glow), linear-gradient(115deg, #1e293b 0%, #273449 55%, #334155 100%);
  --hero-btn-text: #1e293b;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
small { font-size: .78em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.sp { flex: 1 1 auto; }
.r { text-align: right; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.noscript { padding: 40px; text-align: center; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* skeleton */
.sk { display: inline-block; width: 64px; height: 1em; border-radius: 4px; vertical-align: middle;
  background: linear-gradient(90deg, var(--line-2) 0%, var(--line) 50%, var(--line-2) 100%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk-lg { width: 120px; height: .9em; }
.sk-chart { width: 100%; height: 180px; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "brand nav search tools"; align-items: center; column-gap: 28px; height: 60px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-txt { display: flex; align-items: baseline; gap: 7px; line-height: 1.15; }
.brand-txt b { font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.brand-txt span { font-size: 12.5px; color: var(--muted); font-weight: 500; padding-left: 8px; border-left: 1px solid var(--line); }
.logo-mark .lm-bg { fill: var(--accent); }
.logo-mark .lm-ring { stroke: var(--on-accent); stroke-opacity: .9; }
.logo-mark .lm-core { fill: var(--on-accent); }
.logo-mark .lm-star { fill: var(--on-accent); fill-opacity: .6; }
.nav { grid-area: nav; display: flex; align-self: stretch; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; padding: 0 10px; color: var(--text-2); font-weight: 550; font-size: 13.5px; white-space: nowrap; transition: color .15s; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after { background: var(--accent); }
.hsearch { grid-area: search; position: relative; justify-self: end; width: 100%; max-width: 320px; }
.hsearch input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card-2); outline: none; font-size: 13px; transition: border-color .15s, background .15s, box-shadow .15s; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px var(--accent-soft); }
.hsearch .hs-ic { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.hsearch.bad input { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.hs-err { position: absolute; top: 42px; right: 0; left: 0; padding: 8px 10px; font-size: 12px; color: var(--red); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-h); }
.tools { grid-area: tools; display: flex; align-items: center; gap: 6px; }
.ib { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--text-2); transition: color .15s, border-color .15s; }
.ib .ic { width: 17px; height: 17px; }
.ib:hover:not(:disabled) { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ib:disabled { opacity: .4; cursor: default; }
.ib-search { display: none; }
.lang { position: relative; display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text-2); padding-left: 9px; }
.lang .ic { width: 15px; height: 15px; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 32px; padding: 0 10px 0 6px; font-size: 13px; font-weight: 550; color: var(--text); outline: none; cursor: pointer; }
.lang select option { color: #101828; background: #fff; }

/* palette picker */
.pal { position: relative; }
.pal-btn { gap: 0; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-sky { background: linear-gradient(135deg, #1257d6 0%, #087a9f 100%); }
.sw-pearl { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%); }
.sw-mint { background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%); }
.sw-ocean { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%); }
.sw-graphite { background: linear-gradient(135deg, #0f172a 0%, #475569 100%); }
.pal-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 220px; padding: 6px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-h); }
.pal-pop .eyebrow { padding: 6px 8px 6px; }
.pal-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-sm); background: transparent; font-size: 13.5px; font-weight: 550; color: var(--text); text-align: left; }
.pal-pop button:hover { background: var(--card-2); }
.pal-pop button .ic { margin-left: auto; width: 16px; height: 16px; color: var(--accent); visibility: hidden; }
.pal-pop button[aria-checked="true"] .ic { visibility: visible; }

.netbar { background: var(--amber-soft); border-bottom: 1px solid color-mix(in srgb, var(--amber) 25%, transparent); color: var(--amber); font-size: 13px; }
.netbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 40px; }

/* ---------- layout ---------- */
.view { flex: 1 0 auto; padding-top: 26px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; outline: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 -20px 16px; padding: 12px 20px; min-height: 52px; border-bottom: 1px solid var(--line-2); }
.card-t { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.card-t h2 { font-size: 14px; font-weight: 650; }
.card-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); }
.card-ic .ic { width: 16px; height: 16px; }
.card-sub { color: var(--muted); font-size: 12.5px; }
.card-sub b { color: var(--text-2); font-weight: 600; }
.card-r { display: flex; align-items: center; gap: 10px; }
.card-f:empty { display: none; }
.card-f { margin-top: 14px; display: flex; justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; }
.grid-21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.grid-12 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
.grid2 > *, .grid3 > *, .grid-21 > *, .grid-12 > * { min-width: 0; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.link .ic { width: 15px; height: 15px; }
.fine { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; max-width: 900px; }
.fine .ic { width: 15px; height: 15px; margin-top: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn-1 { background: var(--btn-bg); color: var(--btn-text); }
.btn-1:hover { color: var(--btn-text); filter: brightness(1.08); }
.btn-2 { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-2:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 550; background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip-ok { color: var(--green); background: var(--green-soft); border-color: transparent; }
.chip-filter { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.chip-filter:hover { color: var(--accent-ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.off { background: var(--line); }

.note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.note > span { flex: 1; }
.note a { font-weight: 650; white-space: nowrap; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.note .ic { width: 17px; height: 17px; }
.note-warn { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, var(--line)); }

.qi { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--muted); cursor: help; }
.qi .ic { width: 14px; height: 14px; }
.qi::after { content: attr(data-tip); display: none; position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 260px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--tip-bg); color: var(--tip-text); font-size: 12px; font-weight: 450; line-height: 1.45; letter-spacing: 0; text-transform: none; white-space: normal; text-align: left; box-shadow: var(--shadow-h); }
.qi:hover::after, .qi:focus::after { display: block; }

/* ---------- page heads ---------- */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 26px 24px; border-radius: var(--radius); background: var(--hero-bg); color: var(--hero-text); box-shadow: var(--shadow-sm); }
.phead h1 { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.phead p { color: var(--hero-text-2); margin-top: 6px; font-size: 13.5px; max-width: 760px; }

/* ---------- overview: hero band ---------- */
.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.band-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 26px 24px; background: var(--hero-bg); color: var(--hero-text); }
.band-id { min-width: 0; }
.band-id .eyebrow { color: var(--hero-eyebrow); display: flex; align-items: center; gap: 8px; }
.band-id .eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.band-id h1 { font-size: 26px; font-weight: 750; letter-spacing: -.03em; margin-top: 6px; line-height: 1.15; }
.band-id p { color: var(--hero-text-2); font-size: 13.5px; margin-top: 6px; }
.band-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.band-top .btn-1, .band-top .btn-1:hover { background: var(--hero-btn-bg); color: var(--hero-btn-text); }
.band-top .btn-2, .band-top .btn-2:hover { background: var(--hero-btn2-bg); color: var(--hero-btn2-text); border-color: var(--hero-btn2-line); }
.band-top .btn-2:hover { filter: brightness(1.08); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--kpis-bg); }
.kpi { padding: 16px 20px 18px; min-width: 0; display: flex; flex-direction: column; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-k { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-v small, .tile-v small, .bal-v small, .rnd-v small { font-size: 13px; font-weight: 600; margin-left: 4px; letter-spacing: 0; color: var(--text-2); }
.kpi-s { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-viz { margin-top: auto; padding-top: 12px; height: 38px; }
.kpi-hl .kpi-v { color: var(--hl); }
.kpi:first-child .kpi-v { color: var(--kpi-lead, inherit); }
.kpi-hl .kpi-v small { color: inherit; opacity: .75; }
.mbars { display: block; width: 100%; height: 26px; }
.mbars rect { fill: var(--c-pool); opacity: .28; }
.mbars rect.last { opacity: 1; }
.mbars rect.z { opacity: .5; fill: var(--line); }
.mbars-net rect { fill: var(--c-net); }
.meter { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--fill); border-radius: 3px; min-width: 3px; }
.meter-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* round panel */
.rnd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rnd-v { font-size: 34px; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gauge { position: relative; height: 10px; border-radius: 5px; margin-top: 14px;
  background: linear-gradient(90deg, var(--green-soft) 0 50%, var(--amber-soft) 50% 100%); box-shadow: inset 0 0 0 1px var(--line-2); }
.gauge::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.gauge i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--card); }
.gauge.g-good i { background: var(--green); }
.gauge.g-mid i { background: var(--amber); }
.gauge.g-bad i { background: var(--red); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kvs { display: flex; flex-direction: column; }
.kv { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13.5px; color: var(--text-2); }
.kv + .kv { border-top: 1px solid var(--line-2); }
.kv > .ic { width: 16px; height: 16px; color: var(--muted); }
.kv > span { flex: 1; min-width: 0; }
.kv > b { color: var(--text); font-weight: 650; white-space: nowrap; }
.rnd .kvs { margin-top: 14px; }
.facts .kvs { columns: 1; }

/* ---------- segmented / legend ---------- */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-soft); color: var(--accent-ink); }
.seg-n { opacity: .7; font-weight: 500; margin-left: 2px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i + * { margin-right: 6px; }
.lg-a { background: var(--c-a); }
.lg-b { background: var(--c-b); margin-left: 6px; }

/* ---------- charts ---------- */
.chart { position: relative; min-height: 120px; }
.chart-note { font-size: 12px; color: var(--muted); margin: -6px 0 8px; }
.chart-empty { display: grid; place-items: center; min-height: 200px; color: var(--muted); font-size: 13px; text-align: center; }
.chart-svg { display: block; overflow: visible; touch-action: pan-y; }
.ch-cap { font-size: 11px; fill: var(--muted); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }
.ch-base { stroke: var(--line); stroke-width: 1; }
.ch-ylab, .ch-xlab { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.ln-pool { stroke: var(--c-pool); }
.ln-net { stroke: var(--c-net); }
.ch-dash { stroke-dasharray: 4 4; }
.pg-a.pg-pool { stop-color: var(--c-pool); stop-opacity: var(--area-op); }
.pg-a.pg-net { stop-color: var(--c-net); stop-opacity: .08; }
.pg-b { stop-color: var(--c-pool); stop-opacity: 0; }
.ch-cross { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 2 3; }
.ch-dot { stroke: var(--card); stroke-width: 2; }
.dot-pool { fill: var(--c-pool); }
.dot-net { fill: var(--c-net); }
.bar-a { fill: var(--c-a); }
.bar-b { fill: var(--c-b); }
.ch-hl { fill: var(--text); opacity: .05; }
.chart-tip { position: absolute; top: 6px; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--tip-bg); color: var(--tip-text); box-shadow: var(--shadow-h); font-size: 12.5px; }
.tip-time { opacity: .75; font-size: 11.5px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.tip-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; line-height: 1.7; }
.tip-row b { font-variant-numeric: tabular-nums; font-weight: 650; }
.tip-sw { width: 8px; height: 8px; border-radius: 2px; }
.sw-pool { background: var(--c-pool); }
.sw-net { background: var(--c-net); }
.sw-a { background: var(--c-a); }
.sw-b { background: var(--c-b); }

/* ---------- block ledger ---------- */
.ledger td { padding-top: 12px; padding-bottom: 12px; }
.bk-slot { font-weight: 700; color: var(--text); }
.bk-orphaned .bk-slot { color: var(--text-2); }
.bk-eff { font-weight: 650; font-variant-numeric: tabular-nums; }
.eff-good { color: var(--green); }
.eff-mid { color: var(--amber); }
.eff-bad { color: var(--red); }
.bk-rew { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-rew.muted { color: var(--muted); font-weight: 500; }
.bk-mat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-mat .bar { width: 64px; flex: none; height: 4px; }
.tbl-sk-row td { padding: 14px 12px; }
.tbl-sk-row .sk { width: 80%; }
.tx { display: inline-flex; align-items: center; gap: 2px; min-width: 0; color: var(--text-2); }
.tx .mono { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); flex: none; }
.cp .ic { width: 14px; height: 14px; }
.cp:hover { color: var(--accent-ink); background: var(--accent-soft); }
.cp.done { color: var(--green); }
time.rt { white-space: nowrap; }
.bar { position: relative; display: block; flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 40px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--fill); }
.bar.done i { background: var(--green); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; flex: none; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--green); background: var(--green-soft); }
.pill-pend { color: var(--text-2); background: var(--line-2); }
.pill-pend i { background: var(--accent); }
.pill-bad { color: var(--red); background: var(--red-soft); }
.pill-warn { color: var(--amber); background: var(--amber-soft); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tile { position: relative; padding: 16px 20px 18px; min-width: 0; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile-ic { position: absolute; top: 16px; right: 16px; color: var(--muted); width: 16px; height: 16px; }
.tile-k { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-right: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-v { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile-s { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- empty / pager ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty-ic { width: 26px; height: 26px; padding: 11px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); box-sizing: content-box; }
.empty-t { margin-top: 14px; font-weight: 650; color: var(--text); font-size: 15px; }
.empty-b { margin-top: 4px; font-size: 13px; max-width: 460px; color: var(--muted); }
.empty-a { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pager { display: inline-flex; align-items: center; gap: 10px; }
.pager .ib { width: 30px; height: 30px; }
.pager-t { font-size: 12.5px; color: var(--text-2); min-width: 52px; text-align: center; }

/* ---------- tables ---------- */
.tbl-wrap { margin: -16px -20px 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 650; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
.tbl th small { font-size: 10.5px; text-transform: none; letter-spacing: 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--card-2); }
.tbl td small { color: var(--muted); font-weight: 500; }
.tbl tr.off td { color: var(--muted); }
.tbl td .pill { vertical-align: middle; }
.wk { display: inline-flex; align-items: center; gap: 9px; }
.tbl-sk { display: flex; flex-direction: column; gap: 12px; padding: 10px 0; }
.tbl-sk .sk { width: 100%; height: 14px; }
.card > .tbl-wrap:last-child { margin-bottom: -18px; }

/* ---------- miner ---------- */
.mhead { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 0; background: var(--hero-bg); color: var(--hero-text); }
.mhead .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.mhead .mh-k { color: var(--hero-eyebrow); }
.mhead .mh-id .mono, .mhead .mh-meta time { color: var(--hero-text); }
.mhead .cp { color: var(--hero-text-2); }
.mhead .cp:hover, .mhead .cp.done { color: var(--hero-text); background: var(--hero-chip); }
.mhead .chip, .mhead .chip-ok, .mhead .chip-filter, .mhead .chip-filter:hover { color: var(--hero-text); background: var(--hero-chip); border-color: transparent; }
.mhead .dot.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; flex: none; }
.avatar .ic { width: 22px; height: 22px; }
.mh-main { min-width: 0; flex: 1; }
.mh-k { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mh-k .chip { text-transform: none; letter-spacing: 0; }
.mh-id { display: flex; align-items: center; gap: 4px; margin-top: 3px; min-width: 0; }
.mh-id .mono { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.mh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mh-meta time { color: var(--text); }
.bal { display: flex; flex-direction: column; }
.bal-main { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green-soft); }
.bal-k { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.bal-v { font-size: 28px; font-weight: 750; letter-spacing: -.03em; color: var(--text); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.bal-eta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.bal-eta .ic { width: 14px; height: 14px; color: var(--green); }
.bal-rows { margin-top: 8px; display: flex; flex-direction: column; }
.bal-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; font-size: 13px; color: var(--text-2); }
.bal-r + .bal-r { border-top: 1px solid var(--line-2); }
.bal-r b { color: var(--text); font-weight: 650; white-space: nowrap; }

/* ---------- start mining ---------- */
.eps { display: flex; flex-direction: column; }
.ep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 0; }
.ep + .ep { border-top: 1px solid var(--line-2); }
.ep-code { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); }
.ep-rec .ep-code { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.ep-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ep-name b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-name small { color: var(--muted); font-size: 11.5px; }
.ep-tag { font-style: normal; display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 10px; line-height: 15px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); vertical-align: 1px; }
.ep-host { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ep-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.ep-foot code { background: var(--card-2); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.ep-foot .muted { color: var(--muted); }
.fl { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.calc-in { display: flex; gap: 8px; }
.calc-in input, .cfg input, .cfg select, .calc-in select {
  height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 0 12px; outline: none; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.calc-in input { flex: 1; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc-in select { width: 92px; flex: none; font-weight: 600; }
.calc-in input:focus, .cfg input:focus, .cfg select:focus, .calc-in select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.calc-res { margin-top: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card-2); padding: 4px 14px; }
.cr { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 13px; color: var(--text-2); }
.cr + .cr { border-top: 1px solid var(--line-2); }
.cr > span { flex: 1; }
.cr b { font-size: 16px; font-weight: 700; color: var(--text); }
.cr small { color: var(--muted); font-weight: 600; }
.cr-main b { font-size: 22px; color: var(--accent); letter-spacing: -.02em; }
.calc-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

.guide { margin-top: 10px; }
.sec-t { font-size: 20px; font-weight: 750; text-align: center; letter-spacing: -.025em; }
.sec-s { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.sec-s .ic { width: 15px; height: 15px; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 15px; top: 22px; bottom: 22px; border-left: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; align-items: start; position: relative; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); border: 0; color: var(--accent-ink); font-weight: 750; font-size: 14px; margin-top: 18px; box-shadow: 0 0 0 5px var(--bg); }
.step-c { padding: 22px 24px; }
.step-c h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.015em; }
.step-c > p { color: var(--text-2); font-size: 13.5px; max-width: 820px; }
.code { position: relative; margin-top: 12px; border-radius: var(--radius-sm); background: var(--code-bg); border: 1px solid var(--line); }
.code pre { margin: 0; padding: 14px 48px 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.65; color: var(--code-text); }
.code code { font-size: inherit; white-space: pre; }
.code .cp { position: absolute; top: 8px; right: 8px; background: var(--card); border: 1px solid var(--line); width: 30px; height: 30px; }
.code-sm { display: inline-block; min-width: 260px; }
.code-sm pre { padding: 10px 48px 10px 14px; }
.code-sm .cp { top: 5px; right: 6px; }
.feat { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.feat > div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.feat .ic { width: 16px; height: 16px; color: var(--accent); }
.cfg { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr) minmax(120px, 1fr) auto; gap: 12px; margin-top: 6px; padding: 14px; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line-2); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.fld input.bad { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.fld input.mono { font-size: 12.5px; }
.fld-sw { align-items: center; }
.sw { position: relative; width: 44px; height: 24px; border-radius: 99px; border: 0; background: var(--line); margin-top: 8px; transition: background .2s; padding: 0; }
.sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw.on { background: var(--accent); }
.sw.on i { transform: translateX(20px); }
.cfg-err { margin-top: 8px; color: var(--red); font-size: 12.5px; }
.hint { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.hint .ic { width: 15px; height: 15px; margin-top: 1px; }
.out-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, .5fr); gap: 12px; margin-top: 14px; }
.out-grid .code { margin-top: 6px; }
.out-grid pre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 10px; padding-bottom: 10px; }
.out-grid .cp { top: 5px; }
.out-k { font-size: 12px; color: var(--text-2); font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 10px 12px; font-weight: 600; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button .ic { width: 16px; height: 16px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.lead { color: var(--text-2); font-size: 13.5px; max-width: 860px; }
.dl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card-2); }
.dl .btn { height: 42px; }
.dl-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); min-width: 0; flex: 1; }
.dl-sha { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dl-sha span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.dl-sha code { font-size: 11.5px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; }
.dl-notes { display: flex; align-items: flex-start; gap: 6px; color: var(--green); }
.dl-notes .ic { width: 14px; height: 14px; margin-top: 2px; }
.hv { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.hv-r { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px 9px 16px; font-size: 13px; }
.hv-r + .hv-r { border-top: 1px solid var(--line-2); }
.hv-r > span { color: var(--text-2); }
.hv-r code { color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }
.grid3 .card, .grid-21 .card, .grid-12 .card, .grid2 .card { display: flex; flex-direction: column; }

/* ---------- FAQ ---------- */
.faq-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 920px; }
.faq-gt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin: 0 0 10px 2px; }
.faq { padding: 0 20px; }
.faq-i + .faq-i { border-top: 1px solid var(--line-2); }
.faq-i summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 0; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary > span { flex: 1; }
.faq-chev { color: var(--muted); transition: transform .2s; }
.faq-i[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-i summary:hover { color: var(--accent-ink); }
.faq-a { padding: 0 32px 16px 0; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.faq-more { display: flex; align-items: center; gap: 16px; padding-top: 18px; }
.faq-more > div { flex: 1; }
.faq-more p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.faq-more-ic { width: 22px; height: 22px; padding: 11px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); box-sizing: content-box; }
.faq-more .btn .ic { width: 14px; height: 14px; }

/* ---------- footer / toast ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--card); margin-top: auto; }
.ftr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 60px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; color: var(--text-2); }
.ftr-brand { display: flex; align-items: center; gap: 8px; }
.ftr-brand b { color: var(--text); }
.ftr-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr-links a { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.ftr-links a:hover { color: var(--accent-ink); }
.ftr-links .ic { width: 15px; height: 15px; }
.ftr-copy { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px); z-index: 50; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--tip-bg); color: var(--tip-text); font-size: 13px; font-weight: 550; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-h); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :first-child { grid-column: 1 / -1; }
  .grid3 > :first-child .kvs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .grid3 > :first-child .kv:nth-child(2) { border-top: 0; }
}
@media (max-width: 1080px) {
  .hdr-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; column-gap: 16px; }
  .nav { justify-self: center; }
  .hsearch { display: none; grid-column: 1 / -1; grid-row: 2; max-width: none; justify-self: stretch; padding-bottom: 12px; }
  .hdr.search-open .hsearch { display: block; }
  .hdr.search-open .hdr-in { height: auto; padding-top: 12px; row-gap: 12px; }
  .ib-search { display: inline-grid; }
  .grid2, .grid-21, .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cfg { grid-template-columns: 1fr 1fr; }
  .cfg .fld-wide { grid-column: 1 / -1; order: -1; }
  .fld-sw { flex-direction: row; gap: 12px; align-items: center; }
  .fld-sw .sw { margin-top: 0; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .hdr-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand . tools" "nav nav nav"; height: auto; padding-top: 10px; row-gap: 6px; }
  .nav { justify-self: stretch; overflow-x: auto; scrollbar-width: none; height: 40px; margin: 0 -8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1 0 auto; justify-content: center; padding: 0 8px; font-size: 13px; }
  .nav a::after { left: 8px; right: 8px; }
  .hsearch { grid-row: 3; }
  .view { padding-top: 18px; gap: 14px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid3 > :first-child .kvs { display: flex; }
  .grid3 > :first-child .kv:nth-child(2) { border-top: 1px solid var(--line-2); }
  .out-grid { grid-template-columns: minmax(0, 1fr); }
  .hv-r { grid-template-columns: minmax(0, 1fr) auto; }
  .hv-r > span { grid-column: 1 / -1; font-size: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .band-cta { width: 100%; }
  .band-cta .btn { flex: 1; }
}
@media (max-width: 720px) {
  .rt-tbl thead { display: none; }
  .rt-tbl, .rt-tbl tbody { display: block; }
  .rt-tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .rt-tbl tbody tr:last-child { border-bottom: 0; }
  .rt-tbl td, .tbl.rt-tbl td:first-child, .tbl.rt-tbl td:last-child { display: block; padding: 0; border: 0; text-align: left; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .rt-tbl td::before { content: attr(data-l); display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
  .rt-tbl td.r { text-align: left; }
  .rt-tbl tbody tr:hover td { background: transparent; }
  .tbl-wrap { overflow: visible; }
  .ledger.rt-tbl tr { grid-template-columns: 1fr 1fr 1fr; }
  .ledger.rt-tbl td.l-tx { grid-column: span 2; }
}
@media (max-width: 640px) {
  .band-top { padding: 20px 16px 18px; }
  .band-id h1 { font-size: 22px; }
  .kpi { padding: 14px 16px; }
  .kpi-v { font-size: 22px; }
  .card { padding: 0 16px 16px; }
  .card-h { margin: 0 -16px 14px; padding: 10px 16px; }
  .tbl-wrap { margin: -14px -16px 0; }
  .card > .tbl-wrap:last-child { margin-bottom: -16px; }
  .tile { padding: 14px 16px; }
  .tile-v { font-size: 20px; }
  .brand-txt span { display: none; }
  .lang select { padding-right: 6px; max-width: 84px; }
  .steps::before { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step-n { position: absolute; top: -8px; left: 14px; margin: 0; width: 28px; height: 28px; font-size: 13px; z-index: 1; box-shadow: 0 0 0 4px var(--bg); }
  .step-c { padding: 30px 16px 18px; }
  .code-sm { display: block; min-width: 0; }
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .dl .btn { width: 100%; }
  .mhead { align-items: flex-start; }
  .avatar { width: 40px; height: 40px; border-radius: 10px; }
  .mh-id .mono { font-size: 13px; }
  .faq { padding: 0 16px; }
  .faq-more { flex-wrap: wrap; }
  .faq-more .btn { width: 100%; }
  .ftr-in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chart-tip { min-width: 130px; }
  .ep { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 2px; }
  .ep-code { grid-row: 1 / span 2; }
  .ep-host { grid-column: 2; grid-row: 2; font-size: 12px; }
  .ep .cp { grid-column: 3; grid-row: 1 / span 2; }
  .pal-pop { right: -44px; }
  .tabs button { padding: 10px 9px; font-size: 13px; }
}

/* ======================================================================================
   admin console (/admin/, public/admin/*.js). Scoped to body.adm; existing tokens only.
   ====================================================================================== */
.adm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.adm-skip { position: absolute; left: 12px; top: -48px; z-index: 60; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--card); color: var(--accent-ink); border: 1px solid var(--line); font-weight: 600; }
.adm-skip:focus { top: 10px; }
.adm-noscroll { overflow: hidden; }
.adm [hidden] { display: none !important; }
.adm .brand { gap: 10px; }
.adm-badge { font-style: normal; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); white-space: nowrap; }
.adm-view { gap: 18px; }
.adm .phead-r { display: flex; align-items: center; gap: 8px; }
.adm-hero-chip, .adm .phead .chip { color: var(--hero-text); background: var(--hero-chip); border-color: transparent; height: 28px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.adm-hero-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hero-chip); color: var(--hero-text); }
.adm-hero-ic .ic { width: 22px; height: 22px; }
.adm-loading { color: var(--muted); font-size: 13px; padding: 10px 0; }
.adm-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 12px; }
.adm-hint { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.adm-hint-top { margin: -4px 0 12px; }
.adm-msg { font-size: 13px; line-height: 1.5; margin-top: 10px; }
.adm-msg[hidden] { display: none; }
.adm-err { color: var(--red); }
.adm-ok { color: var(--green); }
.adm-warn { color: var(--amber); }
.adm-pad { padding: 14px 0; }
.adm-row .adm-msg, .adm-modal-f .adm-msg { margin-top: 0; }
.adm-note { margin-bottom: 12px; }
.adm-l { font-size: 13px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.adm-h3 { display: flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 650; margin: 0 0 12px; }
.adm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-row-tight { gap: 6px; flex-wrap: nowrap; }
.adm-between { justify-content: space-between; flex-wrap: nowrap; }
.adm-grow { flex: 1 1 140px; min-width: 0; }
.adm-wide { width: 100%; }
.adm-link { font-size: 12.5px; font-weight: 600; }
.adm-linkbtn { border: 0; background: transparent; padding: 2px 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.adm-linkbtn:hover { text-decoration: underline; }
.adm-linkbtn.muted { color: var(--muted); }
.adm .fld > span { display: flex; align-items: center; gap: 2px; }
.adm-lrow { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.adm-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.adm-fs:disabled { opacity: .6; }
.adm-sect { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.adm-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }

/* inputs and buttons */
.adm-in { height: 38px; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); padding: 0 11px; outline: none; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
.adm-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.adm-in.bad { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.adm-in:disabled { opacity: .6; cursor: not-allowed; }
.adm-in.mono { font-size: 13px; letter-spacing: .01em; }
.adm-in-sm { height: 30px; width: auto; min-width: 92px; padding: 0 8px; font-size: 12.5px; }
.adm select.adm-in { padding-right: 6px; }
.adm-in::placeholder { color: var(--muted); }
.adm .btn:disabled, .adm .ib:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.adm .btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.adm .btn-sm .ic { width: 14px; height: 14px; }
.btn-3 { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-3:hover:not(:disabled) { color: var(--text); background: var(--card-2); }
.btn-d { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.btn-d:hover:not(:disabled) { color: var(--red); filter: brightness(.98); }
.adm-del { width: 30px; height: 30px; border-color: transparent; background: transparent; color: var(--muted); }
.adm-del:hover:not(:disabled) { color: var(--red); border-color: transparent; background: var(--red-soft); }
.adm-del .ic { width: 15px; height: 15px; }
.adm-ib-sm { width: 30px; height: 30px; }
.adm-ib-sm .ic { width: 15px; height: 15px; }
.adm .sw { margin-top: 0; flex: none; }
.adm .sw:disabled { opacity: .45; cursor: not-allowed; }
.adm .sw:focus-visible { border-radius: 99px; }
.adm-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: adm-spin .8s linear infinite; }
.adm-spinning .ic { animation: adm-spin 1s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }

/* tooltips: multi-line text, anchored left/right so they stay on narrow screens */
.adm .qi::after { white-space: pre-line; }
.adm .qi.qi-wide::after { width: max-content; max-width: min(340px, calc(100vw - 32px)); }
.adm .qi.qi-r::after { left: auto; right: -6px; transform: none; }
.adm .qi.qi-l::after { left: -6px; transform: none; }
.adm .qi:focus-visible { border-radius: 4px; }
.adm-tipt.qi { margin-left: 0; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.adm-tipt.qi::after { bottom: auto; top: calc(100% + 6px); font-weight: 450; }

/* Pushover card */
.adm-po-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.adm-po-keys { min-width: 0; padding-right: 22px; }
.adm-po-em { min-width: 0; padding-left: 22px; border-left: 1px solid var(--line-2); }
.adm-keys { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.adm-key { border: 1px solid var(--line); background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.adm-key.off .adm-key-code { color: var(--text-2); }
.adm-key-new { margin-top: 0; }
.adm-key-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-key-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; color: var(--text); }
.adm-key-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 6px; }
.adm-key-code { display: block; min-width: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.adm-key-test { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.adm-key-meta { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.adm-keys-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.adm-keys-f .adm-key-new { flex: 1 1 100%; }
.adm-pg { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.5px; color: var(--text-2); }
.adm-pg > span { margin-right: 4px; }
.adm-keyform { display: flex; flex-direction: column; gap: 8px; }
.adm-keyform .adm-hint[hidden] { display: none; }
.adm-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--amber); }
.adm-confirm > span { flex: 1 1 200px; }
.adm-em > .adm-row { margin-top: 14px; }
.adm-schedbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); text-align: left; font-size: 13px; transition: border-color .15s; }
.adm-schedbtn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.adm-schedbtn b { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-schedbtn small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-schedbtn .ic { width: 15px; height: 15px; color: var(--muted); }

/* subscriptions */
.adm-search { position: relative; flex: 0 1 280px; min-width: 0; }
.adm-search .adm-in { padding-left: 32px; height: 34px; font-size: 13px; }
.adm-search-ic { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.adm-subs .card-h { flex-wrap: wrap; }
.adm-tbl-wrap { margin-top: 0; max-height: 64vh; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-2); }
.adm-tbl thead th { position: sticky; top: 0; z-index: 1; }
.adm-tbl td { vertical-align: middle; }
.adm-scope-n { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.adm-scope-n .mono { font-size: 12.5px; color: var(--text); }
.adm-cond { max-width: 360px; white-space: normal; }
.adm-last { font-size: 12.5px; color: var(--text-2); }
.adm-subs-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 -20px -18px; padding: 10px 20px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }

/* dialogs */
.adm-modal-bg { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.adm-modal { display: flex; flex-direction: column; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-h); outline: none; }
.adm-modal-wide { max-width: 780px; }
.adm-modal-h { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line-2); }
.adm-modal-h h2 { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.adm-x { width: 32px; height: 32px; }
.adm-modal-b { padding: 16px 20px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.adm-modal-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.adm-modal-f[hidden] { display: none; }
.adm-schedform { display: flex; flex-direction: column; gap: 14px; }
.adm-days-a { display: flex; justify-content: flex-end; gap: 14px; }
.adm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.adm-day { height: 34px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 550; }
.adm-day:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.adm-day.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.adm-rules { display: flex; flex-direction: column; gap: 12px; }
.adm-rule { border: 1px solid var(--line); background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 14px 12px; }
.adm-rule.bad { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.adm-rule-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.adm-rule-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; }
.adm-rule .seg { height: 38px; align-items: stretch; }
.adm-rule .seg button { flex: 1; padding: 0 12px; }
.adm-kv { padding: 8px 0 0; border-top: 1px solid var(--line-2); }
.adm-deliv { border-top: 1px solid var(--line-2); padding-top: 10px; }
.adm-deliv .kv { padding: 7px 0; font-size: 12.5px; }
.adm-deliv .kv > span.muted { flex: none; }

/* login */
.adm-login { width: 100%; max-width: 440px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 14px; }
.adm-login .phead { align-items: center; flex-wrap: nowrap; }
.adm-login-card { padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.adm-login-card .adm-msg { margin-top: 0; }
.adm-login-card .btn { height: 40px; }

@media (max-width: 1080px) {
  .adm-po-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-po-keys { padding-right: 0; }
  .adm-po-em { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 16px; }
}
@media (max-width: 720px) {
  .adm-tbl-wrap { max-height: none; overflow: visible; }
  .adm-tbl.rt-tbl td.adm-cond, .adm-tbl.rt-tbl td.adm-scope { grid-column: 1 / -1; white-space: normal; overflow: visible; }
  .adm-tbl.rt-tbl td { overflow: visible; }
  .adm-tbl.rt-tbl td.adm-last { white-space: normal; }
  .adm-tbl.rt-tbl td .btn-3 { padding-left: 0; }
  .adm-scope-n { max-width: 100%; overflow-wrap: anywhere; }
  .adm-rule-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm .qi::after { max-width: min(260px, calc(100vw - 48px)); }
}
@media (max-width: 640px) {
  .adm-subs-f { margin: 0 -16px -16px; padding: 10px 16px; }
  .adm-search { flex: 1 1 100%; }
  .adm-key-mid { grid-template-columns: minmax(0, 1fr); }
  .adm-key-test { justify-content: flex-start; }
  .adm-grid2:not(.adm-grid2-keep) { grid-template-columns: minmax(0, 1fr); }
  .adm-rule-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-rule-g > :first-child, .adm-rule-g > .fld-seg { grid-column: 1 / -1; }
  .adm-modal-bg { padding: 8px; place-items: end center; }
  .adm-modal { max-height: calc(100dvh - 16px); }
  .adm-modal-h { padding-left: 16px; }
  .adm-modal-b { padding: 14px 16px; }
  .adm-modal-f { padding: 10px 16px; }
  .adm .phead-r { width: 100%; }
  .adm-badge { height: 20px; padding: 0 6px; font-size: 11px; }
  .adm .nav a { font-size: 13px; }
}
@media (max-width: 480px) {
  .adm .brand .brand-txt { display: none; }
  .adm .tools { gap: 5px; }
}
