/* ───────────── Pulse — стили ───────────── */

:root {
  --accent: #3987e5;
  --radius: 22px;
  --gap: 16px;
  --font: "Inter", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  /* статусы — фиксированы и всегда идут с подписью */
  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
}

/* dark (по умолчанию) */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0b0d;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --grid: rgba(255, 255, 255, 0.055);
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #8b8a82;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --cache: color-mix(in oklab, var(--accent) 38%, var(--surface));
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --glow: 0.16;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f3f3f1;
  --surface: #fcfcfb;
  --surface-2: #f4f4f2;
  --line: rgba(10, 10, 10, 0.07);
  --line-strong: rgba(10, 10, 10, 0.12);
  --grid: rgba(10, 10, 10, 0.06);
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #7a7973;
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --cache: color-mix(in oklab, var(--accent) 30%, var(--surface));
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -20px rgba(0, 0, 0, 0.18);
  --glow: 0.1;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    color-scheme: light;
    --page: #f3f3f1;
    --surface: #fcfcfb;
    --surface-2: #f4f4f2;
    --line: rgba(10, 10, 10, 0.07);
    --line-strong: rgba(10, 10, 10, 0.12);
    --grid: rgba(10, 10, 10, 0.06);
    --text: #0b0b0b;
    --text-2: #52514e;
    --muted: #7a7973;
    --s1: #2a78d6;
    --s2: #eb6834;
    --s3: #1baf7a;
    --s4: #eda100;
    --cache: color-mix(in oklab, var(--accent) 30%, var(--surface));
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -20px rgba(0, 0, 0, 0.18);
    --glow: 0.1;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
  min-height: 100vh;
  padding: 20px clamp(14px, 3vw, 36px) 28px;
  transition: background-color 0.3s;
}
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -8%, color-mix(in oklab, var(--accent) calc(var(--glow) * 100%), transparent), transparent 70%),
    radial-gradient(700px 480px at 100% 0%, color-mix(in oklab, var(--s2) calc(var(--glow) * 45%), transparent), transparent 70%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

/* ───────────── header ───────────── */
.top {
  max-width: 1440px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 38px; height: 38px; }
.logo-bg { fill: var(--accent); }
.logo-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-line.spark { stroke-width: 3; stroke-dasharray: 6 60; animation: spark 2.6s linear infinite;
  filter: drop-shadow(0 0 2px #fff); }
.logo-line.base { opacity: 0.7; }
@keyframes spark { from { stroke-dashoffset: 66; } to { stroke-dashoffset: 0; } }
.brand-text h1 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.brand-text span { font-size: 12.5px; }

.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; white-space: nowrap;
  backdrop-filter: blur(10px);
}
.chip .ico { color: var(--muted); }

.actions { display: flex; align-items: center; gap: 8px; position: relative; }
.live {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 75%, transparent);
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.live.on .dot { background: var(--good); }
.live.on .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--good); opacity: 0; animation: ping 1.8s ease-out infinite;
}
.live.off .dot { background: var(--critical); }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 75%, transparent);
  cursor: pointer; color: var(--text-2); transition: 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn:focus-visible, .seg button:focus-visible, .swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.popover {
  position: absolute; top: 46px; right: 0; z-index: 20;
  width: 360px; max-width: calc(100vw - 28px); padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  display: grid; gap: 14px;
  animation: pop 0.16s ease-out;
}
.popover[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.pop-row { display: grid; gap: 8px; }
.pop-label { font-size: 12px; color: var(--muted); }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 6px 4px; white-space: nowrap; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 12.5px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: 0.15s;
}
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatch-custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }

/* ───────────── grid & cards ───────────── */
.grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
}
.card { grid-column: span var(--span, 6); }
@media (max-width: 1100px) {
  .card { grid-column: span var(--span-md, 12); }
}
@media (max-width: 760px) {
  .card { grid-column: span 12; }
  body { padding-top: 14px; }
  .meta { order: 3; width: 100%; }
}

.card {
  position: relative;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
  animation: rise 0.5s cubic-bezier(.2,.7,.2,1) both;
}
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:nth-child(6) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.card-title > div { min-width: 0; }
.card h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.badge .ico { width: 18px; height: 18px; }

.hero { display: flex; align-items: center; gap: 12px; }
.hero-num { font-size: 40px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; }
.hero-num small { font-size: 0.5em; font-weight: 550; color: var(--muted); margin-left: 2px; letter-spacing: 0; }

.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2);
  padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st, var(--good)); }
.status:empty { display: none; }

/* charts */
.chart-wrap { position: relative; height: 166px; margin: 0 -4px; }
.chart-wrap.tall { height: 206px; }
.chart-wrap.short { height: 70px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.tip {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 8px 10px; font-size: 12px; min-width: 120px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45);
  opacity: 0; transition: opacity 0.12s; white-space: nowrap;
}
.tip.show { opacity: 1; }
.tip .t { color: var(--muted); margin-bottom: 4px; font-size: 11.5px; }
.tip .row { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.tip .row span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.tip .row b { font-weight: 600; color: var(--text); margin-left: 12px; }

.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--accent)); flex: none; }
.sw-accent { --c: var(--accent); }
.sw-cache { --c: var(--cache); }
.sw-free { --c: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* stats row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  display: grid; gap: 2px; min-width: 0;
}
.stat .k { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v { font-size: 15px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.stat .v .tag { font-size: 11px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.stat .v .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st); }

/* cores */
.cores {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px;
}
.core { display: grid; gap: 4px; justify-items: center; }
.core .col {
  width: 100%; height: 44px; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.core .col span {
  position: absolute; left: 2px; right: 2px; bottom: 2px; border-radius: 4px;
  background: var(--accent); height: 0; transition: height 0.6s cubic-bezier(.2,.7,.2,1);
}
.core small { font-size: 10.5px; color: var(--muted); }

/* ram ring */
.ring-wrap { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-track { stroke: var(--surface-2); }
.ring-cache { stroke: var(--cache); stroke-linecap: round; transition: stroke-dasharray 0.8s cubic-bezier(.2,.7,.2,1), stroke-dashoffset 0.8s cubic-bezier(.2,.7,.2,1); }
.ring-val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray 0.8s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 45%, transparent)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.ring-center .muted { font-size: 12px; }

.legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { font-weight: 600; color: var(--text); }

.swap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; }
.swap .k { color: var(--muted); }
.swap .v { font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 0.8s cubic-bezier(.2,.7,.2,1); }

/* duo values (network / io) */
.duo { display: flex; gap: 18px; text-align: right; }
.duo > div { display: grid; gap: 2px; }
.duo .lbl { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.duo b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }

.foot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.foot b { color: var(--text-2); font-weight: 600; }

/* storage */
.disks { display: grid; gap: 14px; }
.disk { display: grid; gap: 7px; min-width: 0; }
.disk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.disk-name { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.disk-name code { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk-val { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.disk-val b { color: var(--text); font-weight: 600; }
.disk .bar { height: 10px; }
.disk .bar span { background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 70%, var(--surface)), var(--accent)); }
.disk.warn .bar span { background: var(--warning); }
.disk.crit .bar span { background: var(--critical); }
.disk .status { padding: 2px 8px 2px 6px; font-size: 11px; }

/* processes */
.procs { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.procs th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.procs td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.procs tr:last-child td { border-bottom: 0; }
.procs th:first-child, .procs td:first-child { padding-left: 0; }
.procs th:last-child, .procs td:last-child { padding-right: 0; }
.procs .r { text-align: right; }
.procs th.w { width: 34%; }
.procs th:nth-child(2) { width: 70px; }
.procs th:nth-child(4) { width: 90px; }
.procs td.pid { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.procs .cpu { display: grid; grid-template-columns: 1fr 46px; align-items: center; gap: 8px; }
.procs .cpu .bar { height: 5px; }
.procs .cpu b { font-weight: 600; text-align: right; font-size: 12.5px; }

.foot-page { max-width: 1440px; margin: 18px auto 0; text-align: right; font-size: 12px; }

/* ───────────── widget mode (?widget=cpu) ───────────── */
body.widget { padding: 0; background: transparent; min-height: 0; }
body.widget .top, body.widget .foot-page, body.widget .bg { display: none; }
body.widget .grid { display: block; max-width: none; }
body.widget .card { animation: none; height: 100vh; border-radius: var(--wr, var(--radius)); }
body.widget.transparent .card { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
body.widget .card:not(.on) { display: none; }

/* ───────────── icons (CSS masks) ───────────── */
.ico { display: inline-block; width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-cpu { --i: 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%3Crect x='5' y='5' width='14' height='14' rx='3'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3Cpath d='M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/%3E%3C/svg%3E"); }
.ico-ram { --i: 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%3Crect x='2' y='6' width='20' height='11' rx='2'/%3E%3Cpath d='M6 10v3M10 10v3M14 10v3M18 10v3M5 17v3M19 17v3'/%3E%3C/svg%3E"); }
.ico-net { --i: 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='M7 4v16M7 20l-4-4M7 20l4-4M17 20V4M17 4l-4 4M17 4l4 4'/%3E%3C/svg%3E"); }
.ico-io { --i: 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='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.ico-disk { --i: 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%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5'/%3E%3Cpath d='M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.ico-list { --i: 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='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.ico-os { --i: 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%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.ico-kernel { --i: 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='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M12 22V12M21 7l-9 5-9-5'/%3E%3C/svg%3E"); }
.ico-clock { --i: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-theme { --i: 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='M21 13A9 9 0 1 1 11 3a7 7 0 0 0 10 10z'/%3E%3C/svg%3E"); }
.ico-sliders { --i: 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='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .hero .status { display: none; }
  .hero-num { font-size: 34px; }
  .duo b { font-size: 17px; }
}

.chip[hidden] { display: none; }
.tip .t small { color: var(--muted); opacity: 0.8; }
.chart-wrap.loading::after {
  content: ""; position: absolute; inset: 18px 0 18px; border-radius: 10px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 5%, transparent), transparent);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
