/* TLDLive design system: see docs/DESIGN.md. Tokens first, then base, layout, components, charts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #f6f5f3; --surface: #ffffff; --surface-subtle: #efefed;
  --text: #111111; --text-muted: #666666; --border: rgba(17, 17, 17, .08); --border-strong: rgba(17, 17, 17, .16);
  --accent: #2563eb; --green: #10b981; --red: #dc2626;
  /* derived: readable text/tint variants of the status colours (AA on --surface) */
  --green-text: #047857; --green-tint: rgba(16, 185, 129, .14); --red-tint: rgba(220, 38, 38, .10);
  --accent-tint: rgba(37, 99, 235, .10);
  --brand: #111111;
  --shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .02);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .10);
  --radius: 14px; --radius-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --section: 96px;
  --c-blue: var(--accent); --c-green: var(--green); --c-red: var(--red);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111111; --surface: #1a1a19; --surface-subtle: #232322;
  --text: #f6f5f3; --text-muted: #a3a3a0; --border: rgba(246, 245, 243, .10); --border-strong: rgba(246, 245, 243, .20);
  --accent: #3b82f6; --green: #34d399; --red: #f87171;
  --green-text: #34d399; --green-tint: rgba(52, 211, 153, .14); --red-tint: rgba(248, 113, 113, .14);
  --accent-tint: rgba(59, 130, 246, .16);
  --brand: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .2);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* no-JS fallback: follow the system when theme.js did not run */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #111111; --surface: #1a1a19; --surface-subtle: #232322;
    --text: #f6f5f3; --text-muted: #a3a3a0; --border: rgba(246, 245, 243, .10); --border-strong: rgba(246, 245, 243, .20);
    --accent: #3b82f6; --green: #34d399; --red: #f87171;
    --green-text: #34d399; --green-tint: rgba(52, 211, 153, .14); --red-tint: rgba(248, 113, 113, .14);
    --accent-tint: rgba(59, 130, 246, .16); --brand: #ffffff;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; outline: none; padding-block: 40px var(--section); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--text); }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 2.75rem); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.skip:focus { top: 12px; text-decoration: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ nav */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; color: var(--brand); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.brand span { font-weight: 500; }
.pulse { position: relative; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--green); align-self: center; transform: translateY(-5px); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3); opacity: 0; } }
#nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: space-between; margin-left: 32px; }
.nav-links, .nav-end { display: flex; align-items: center; gap: 4px; }
.nav-end { gap: 8px; }
#nav-auth { display: flex; gap: 8px; align-items: center; }
.nav-links a, .nav-end a.nav-a { padding: 8px 14px; border-radius: 9999px; color: var(--text-muted); font-size: .94rem; font-weight: 500; }
.nav-links a:hover, .nav-end a.nav-a:hover { color: var(--text); background: var(--surface-subtle); text-decoration: none; }
#nav a.active { color: var(--text); background: var(--surface-subtle); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-subtle); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .m-close { display: none; }
.menu-btn[aria-expanded="true"] .m-close { display: block; }
.menu-btn[aria-expanded="true"] .m-open { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 64px; margin: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  #nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-end { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
}
.demo-banner { background: var(--accent-tint); color: var(--text); text-align: center; font-size: .85rem; padding: 6px 16px; border-bottom: 1px solid var(--border); }

/* ------------------------------------------------------------------ buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--text); border-radius: var(--radius-sm); background: var(--text); color: var(--bg); font: inherit; font-size: .94rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: .88; text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-subtle); opacity: 1; }
.btn.sm { padding: 7px 14px; font-size: .88rem; }
.btn.lg { padding: 14px 26px; font-size: 1rem; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--text-muted); }
input, select, button { font: inherit; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], input[type=number], select {
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); min-width: 0; font-size: .94rem; width: 100%;
}
input::placeholder { color: var(--text-muted); opacity: .8; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* ------------------------------------------------------------------ cards, pills, chips */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card > h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 9999px; font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--surface-subtle); color: var(--text-muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active, .pill.added { background: var(--green-tint); color: var(--green-text); }
.pill.dropped { background: var(--red-tint); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 500; cursor: pointer; font-family: inherit; }
.chip:hover { background: var(--surface-subtle); text-decoration: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .8rem; font-weight: 500; color: var(--text-muted); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 40px 0 0; text-align: center; max-width: 860px; margin-inline: auto; }
.hero h1 { margin-top: 20px; font-size: clamp(2.25rem, 1rem + 5vw, 4rem); font-weight: 700; }
.hero .sub { margin: 20px auto 0; max-width: 600px; color: var(--text-muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.5; }
.hero.compact { padding-top: 8px; }
.hero.compact h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-top: 0; }
.search-box { display: flex; gap: 8px; align-items: center; margin: 36px auto 0; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow), 0 12px 40px rgba(0, 0, 0, .05); text-align: left; }
.hero.compact .search-box { margin-top: 24px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow); }
.search-box .sb-icon { flex: none; margin-left: 10px; color: var(--text-muted); }
.search-box input { border: 0; background: transparent; padding: 12px 8px; font-size: 1.1rem; outline: none; flex: 1 1 auto; width: auto; }
.search-box input.tld { flex: 0 0 110px; width: 110px; font-size: 1rem; border-left: 1px solid var(--border); border-radius: 0; padding-left: 14px; }
.search-box .btn { align-self: stretch; padding-inline: 24px; }
.hero .chips { justify-content: center; margin-top: 20px; }
.hero .hint { margin-top: 14px; font-size: .85rem; color: var(--text-muted); }
@media (max-width: 600px) {
  .search-box { flex-wrap: wrap; }
  .search-box .sb-icon { display: none; }
  .search-box input[type=search] { flex: 1 1 100%; padding-left: 12px; }
  .search-box input.tld { flex: 1 1 0; border-left: 0; border-top: 1px solid var(--border); padding-left: 12px; width: auto; border-radius: 0; }
  .search-box .btn { flex: 1 1 0; padding-block: 12px; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); text-align: left; }
.stat .v { display: block; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .l { display: block; margin-top: 4px; font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.stat.added .v { color: var(--green-text); }
.stat.dropped .v { color: var(--red); }
.stats.analytics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; } }
@media (max-width: 380px) { .stat { padding: 16px; } }

/* ------------------------------------------------------------------ page header, toolbar */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); }
.page-head p { margin-top: 10px; max-width: 680px; color: var(--text-muted); font-size: 1.05rem; }
.section { margin-top: 40px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolbar label { flex: 0 1 150px; }
.toolbar label.grow { flex: 1 1 200px; }
.toolbar label.narrow { flex-basis: 110px; }
.toolbar .tgl { flex-direction: row; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 9999px; background: var(--surface); color: var(--text); font-size: .86rem; cursor: pointer; flex: 0 0 auto; }
.toolbar .tgl:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.toolbar .tgl:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.toolbar .actions { margin-left: auto; display: flex; gap: 8px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.result-meta h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding-block: 12px; background: var(--surface); }
tbody tr:hover td { background: var(--surface-subtle); }
tr:last-child td { border-bottom: 0; }
td.dom { font-family: var(--mono); font-size: .92rem; font-weight: 500; }
td.dom a { color: var(--text); }
td.dom a:hover { color: var(--accent); }
td.r, th.r { text-align: right; }
.pos { color: var(--green-text); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.card .table-wrap { box-shadow: none; border-radius: var(--radius-sm); margin-top: 12px; }

/* ------------------------------------------------------------------ pager */
.pager { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.pager .pg { display: flex; gap: 8px; align-items: center; }
.pager .cur { font-size: .9rem; color: var(--text-muted); font-variant-numeric: tabular-nums; padding-inline: 8px; }
.cap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: .94rem; }
.cap p { max-width: 640px; }

/* ------------------------------------------------------------------ states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-subtle); color: var(--text-muted); margin-bottom: 6px; }
.empty h3 { font-size: 1.2rem; }
.empty p { color: var(--text-muted); max-width: 460px; }
.empty .btn { margin-top: 10px; }
.card .empty { box-shadow: none; border: 0; padding: 32px 16px; background: transparent; }
.notice, .error { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .94rem; border: 1px solid var(--border); background: var(--surface); }
.notice { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.error { background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--text); }
.error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; }
.stack > * + * { margin-top: 16px; }
.skeleton { background: linear-gradient(90deg, var(--surface-subtle) 25%, color-mix(in srgb, var(--surface-subtle) 50%, var(--surface)) 50%, var(--surface-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-block { height: 220px; border-radius: var(--radius); }
.sk-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 20px; box-shadow: var(--shadow); }
.sk-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sk-row:last-child { border-bottom: 0; }
.sk-row i { display: block; height: 16px; border-radius: 6px; }
.sk-chart { height: 230px; margin-top: 12px; }
.sk-val { display: inline-block; width: 5ch; height: .8em; vertical-align: middle; }

/* ------------------------------------------------------------------ detail, forms, account */
.crumb { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
.dom-title { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dom-title h1 { font-family: var(--mono); font-size: clamp(1.6rem, 1rem + 3vw, 2.75rem); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0 32px; margin: 12px 0 0; }
dl.kv dt, dl.kv dd { padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; }
dl.kv dt { color: var(--text-muted); font-size: .9rem; }
dl.kv dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
dl.kv dt:last-of-type, dl.kv dd:last-of-type { border-bottom: 0; }
ul.plain { padding: 0; margin: 0; list-style: none; font-family: var(--mono); font-size: .9rem; }
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 2rem; margin-bottom: 8px; }
.auth form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.auth .btn { width: 100%; }
.auth .foot-link { margin-top: 20px; text-align: center; font-size: .94rem; color: var(--text-muted); }
.benefits { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .94rem; }
.benefits li { display: flex; gap: 10px; align-items: center; }
.benefits li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.3 2.3 4.7-5' fill='none' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--surface); border-top: 1px solid var(--border); padding-block: 40px 28px; font-size: .9rem; color: var(--text-muted); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-in p { margin-top: 10px; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.foot-in nav a { color: var(--text-muted); }
.foot-in nav a:hover { color: var(--text); }
.foot-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .8rem; }

/* ------------------------------------------------------------------ analytics charts */
.chartcard { margin-top: 24px; }
.chartcard .note { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-subtle); border-radius: 9999px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 500; padding: 5px 14px; border-radius: 9999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.chartbody { margin-top: 16px; }
.chart { position: relative; }
.chartsvg { display: block; max-width: 100%; overflow: visible; }
.chartsvg .grid { stroke: var(--border); stroke-width: 1; }
.chartsvg .axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chartsvg .cross { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chartsvg .hit { fill: transparent; }
.chartsvg .ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chartsvg .ln.blue { stroke: var(--c-blue); } .chartsvg .ln.green { stroke: var(--c-green); } .chartsvg .ln.red { stroke: var(--c-red); }
.chartsvg .area.blue { fill: var(--c-blue); opacity: .08; }
.chartsvg .bar.blue, .chartsvg .dot.blue { fill: var(--c-blue); }
.chartsvg .bar.green, .chartsvg .dot.green { fill: var(--c-green); }
.chartsvg .bar.red, .chartsvg .dot.red { fill: var(--c-red); }
.chartsvg .dot { stroke: var(--surface); stroke-width: 2; }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .8rem; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 2; }
.tip b { display: block; margin-bottom: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.sw.blue, .fill.blue { background: var(--c-blue); } .sw.green { background: var(--c-green); } .sw.red { background: var(--c-red); }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
ul.bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
ul.bars li { display: grid; grid-template-columns: minmax(80px, 12rem) 1fr 4.5rem; gap: 12px; align-items: center; font-size: .9rem; }
ul.bars .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
ul.bars .track { height: 10px; display: block; background: var(--surface-subtle); border-radius: 9999px; overflow: hidden; }
ul.bars .fill { display: block; height: 100%; border-radius: 9999px; }
ul.bars .bv { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.two .chartcard { margin-top: 0; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  main { padding-block: 24px 56px; }
  .card { padding: 18px; }
  th, td { padding: 12px 14px; }
  ul.bars li { grid-template-columns: minmax(70px, 8rem) 1fr 3.5rem; }
  .toolbar { padding: 14px; }
  .toolbar label { flex: 1 1 calc(50% - 7px); }
  .toolbar label.grow { flex-basis: 100%; }
  .toolbar .actions { margin-left: 0; width: 100%; }
  .toolbar .actions .btn { flex: 1; }
  .section { margin-top: 28px; }
  #nav { padding-inline: 16px; }
}
.sk-stat { height: 92px; border-radius: var(--radius); }
.eyebrow .pulse { transform: none; margin: 0; }
.stats.analytics { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .stats.analytics { grid-template-columns: repeat(2, 1fr); } .stats.analytics .stat .v { font-size: 1.35rem; } }
.card { min-width: 0; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=date], input[type=number], select { min-height: 44px; }
