:root {
  --bg: #0b0e13; --card: #151a22; --line: #252e3a; --text: #e6e9ee; --muted: #8a94a3;
  --accent: #3e8ef7; --good: #2ecc71; --warn: #f0a020; --bad: #e74c3c;
  --tech: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #17202c 0%, var(--bg) 60%) fixed, var(--bg); min-height: 100vh; }
header { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: rgba(12, 15, 20, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; color: #e33; letter-spacing: .5px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 380px; }
nav button { background: none; border: 1px solid transparent; color: var(--muted); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
nav button.active { color: var(--text); border-color: var(--line); background: var(--card); }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, #171d26 0%, #11161d 100%); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .35); }
.card.wide { grid-column: 1 / -1; }
.card h3 { margin: 0 0 10px; font: 600 13px var(--tech); text-transform: uppercase; letter-spacing: 1.4px; color: #9aa5b3; }
.big { font: 700 34px var(--tech); }
.big small { font-size: 16px; color: var(--muted); font-weight: 400; }
.sub { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.muted { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
table.kv { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.kv td { padding: 4px 0; border-bottom: 1px solid var(--line); }
table.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hdr-status { display: flex; align-items: center; gap: 8px; }
.pill { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
#updBadge { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.pill.good { background: #1d4a30; color: #7ee2a8; }
.pill.bad { background: #4a1d1d; color: #f19a9a; }
.pill.warn { background: #4a3a1d; color: #f3c879; }
.banner { padding: 10px 16px; background: #4a1d1d; color: #ffd0d0; font-weight: 600; text-align: center; }
.banner.warn { background: #4a3a1d; color: #ffe2a8; }
.hidden { display: none; }
.cloud [data-local-only] { display: none !important; }
html:not(.cloud) [data-cloud-only] { display: none !important; }
.demo [data-demo-hide] { display: none !important; }
.override-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 16px;
  background: #3a2a12; color: #ffe2a8; border-bottom: 1px solid #6a4a1c; }
.override-bar.hidden { display: none; }
.override-bar.on { background: #4a2a12; color: #ffd0a8; border-bottom-color: #8a3a1c; }
.override-bar label { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px;
  background: linear-gradient(90deg, #13294a, #1b3b66); color: #dce9ff; border-bottom: 1px solid #2c4d7c; text-align: center; }
.demo-bar.hidden { display: none; }
.demo-bar .btn { background: var(--accent); border-color: var(--accent); color: #fff; padding: 5px 12px; font-size: 13px; }
.no-gen .gen-ui { display: none !important; }
.read-only .full-only { display: none !important; }
.form label input[name=soc_curve] { width: 260px; max-width: 60%; }
.home-link { color: var(--text); font-weight: 500; font-size: 14px; margin-right: 10px; text-decoration: none; }
.home-link:hover { color: var(--accent); }
.ota-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ota-form h4 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.ota-form input[type=file] { max-width: 70%; color: var(--muted); }
.ota-bar { height: 8px; border-radius: 4px; background: #222a35; overflow: hidden; margin: 8px 0; }
.ota-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.upd-note { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  margin: 0 0 12px; padding: 12px 14px; background: #1d334a; border: 1px solid #3e8ef7; border-radius: 8px; }
.upd-note strong { display: block; margin-bottom: 2px; }
.upd-notes { margin: 6px 0; padding-left: 18px; color: #d5dde8; }
.upd-notes li { margin: 3px 0; }
.upd-note button { white-space: nowrap; margin-top: 2px; }
.upd-note.hidden { display: none; }
.good-text { color: #3ecf5e; }
.bad-text { color: #ff6b5a; }
.claim { margin: 10px 0; padding: 12px; border: 1px dashed var(--accent); border-radius: 8px; text-align: center; }
.claim-code { font: 700 34px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 4px; margin: 4px 0; }
.dial { display: block; width: 100%; max-width: 260px; margin: 4px auto; }
.dial-val { font: 700 30px var(--tech); fill: var(--text); }
.dial-unit { font-size: 14px; font-weight: 400; fill: var(--muted); }

.hero { padding: 18px 20px 12px; background: radial-gradient(700px 420px at 50% 38%, #18212d 0%, #0e1218 70%); }
.hero-title h2 { margin: 0; font: 500 27px var(--tech); letter-spacing: 1.2px; text-transform: uppercase; color: #e3e8ee; }
.hero-title span { color: #8792a1; font-size: 14px; letter-spacing: .3px; }
.gauge { display: block; width: 100%; max-width: 580px; margin: -10px auto 8px; overflow: visible; }
.gauge text { font-family: var(--tech); text-anchor: middle; }
/* SOC gauge with the inverter gauges tucked 30 % behind it on each side */
.gauge-row { display: flex; justify-content: center; align-items: center; margin: -10px auto 8px; }
.gauge-row .gauge { flex: 0 1 580px; min-width: 0; margin: 0; position: relative; z-index: 2;
  filter: drop-shadow(0 0 22px rgba(0, 0, 0, .7)); }
.side-gauge { --w: clamp(200px, 28vw, 400px); flex: none; width: var(--w); position: relative; z-index: 1;
  overflow: visible; transition: opacity .6s; }
.side-gauge.left { margin-right: calc(var(--w) * -.3); }
.side-gauge.right { margin-left: calc(var(--w) * -.3); }
.side-gauge.idle { opacity: .6; }
.side-gauge text { font-family: var(--tech); text-anchor: middle; }
.sg-track { fill: none; stroke: #232c38; stroke-width: 11; }
.sg-arc { fill: none; stroke-width: 11; stroke-dasharray: 0 100; transition: stroke-dasharray 1s ease; }
.sg-needle { transform-origin: 130px 130px; transition: transform 1s cubic-bezier(.3, 1.35, .5, 1); }
.sg-num { font-size: 13px; fill: #c3cbd6; }
.sg-val { font-size: 40px; font-weight: 700; fill: #f4f6f8; font-variant-numeric: tabular-nums; }
.sg-unit { font-size: 15px; font-weight: 400; fill: #a3adba; }
.sg-sub { font-size: 15px; font-weight: 500; fill: #c3cbd6; letter-spacing: .5px; }
.side-gauge.idle .sg-sub { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; fill: #7d8896; }
.sg-cap { font-size: 11px; letter-spacing: 3.5px; fill: #a3adba; text-transform: uppercase; }
@media (max-width: 820px) {
  .gauge-row { flex-wrap: wrap; gap: 0 4%; }
  .gauge-row .gauge { flex-basis: 100%; order: -1; }
  .side-gauge { --w: min(48%, 300px); margin: -6px 0 0 !important; }
}
.g-track { opacity: .38; }
.g-track path, #socArc path { fill: none; stroke-width: 19; }
#socArc path { opacity: 0; transition: opacity .5s; }
#socArc path.on { opacity: 1; }
.g-edge { fill: none; stroke: #000; stroke-opacity: .55; stroke-width: 1; }
.g-major { stroke: #eef1f5; stroke-width: 2.4; stroke-linecap: round; }
.g-minor { stroke: #7a8696; stroke-width: 1.2; stroke-linecap: round; }
.g-num { font-size: 17px; font-weight: 400; fill: #d5dbe3; letter-spacing: .5px; }
#socNeedle { transform-origin: 200px 192px; transition: transform 1s cubic-bezier(.3, 1.35, .5, 1); }
.g-val { font-size: 74px; font-weight: 700; letter-spacing: 1px; }
.g-pct { font-size: 34px; font-weight: 300; fill: #e3e8ee; }
.g-cap { font-size: 11.5px; letter-spacing: 5px; fill: #a3adba; text-transform: uppercase; }
#socHub { transition: stroke .5s; }
.g-mm-l { font-size: 11px; letter-spacing: 1.8px; fill: #a3adba; text-transform: uppercase; }
.g-mm { font-size: 21px; font-weight: 500; fill: #eef1f5; }
.g-mm-u { font-size: 13px; fill: #a3adba; }
.g-sys { font-size: 10.5px; letter-spacing: 4.5px; fill: #8792a1; text-transform: uppercase; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 1000px; margin: 0 auto; }
.stat { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 50px; border: 1px solid #2a3442;
  border-radius: 10px; background: linear-gradient(180deg, #151b23, #0e1218); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; }
.stat-ico { width: 36px; height: 36px; flex: none; margin-top: 2px; }
.stat:nth-child(2) .stat-ico { filter: drop-shadow(0 0 5px rgba(245, 150, 30, .55)); }
.stat:nth-child(3) .stat-ico { filter: drop-shadow(0 0 4px rgba(62, 207, 94, .45)); }
.stat-label { font: 500 15px var(--tech); letter-spacing: 1.2px; text-transform: uppercase; color: #e3e8ee; margin-bottom: 2px; }
.stat-val { font: 700 40px/1.1 var(--tech); font-variant-numeric: tabular-nums; color: #f4f6f8; }
.stat-val small { font-size: 28px; font-weight: 600; margin-left: 7px; color: #eef1f5; }
.stat:nth-child(2) .stat-val small { font-size: 24px; }
.stat-sub { font: 500 12px var(--tech); letter-spacing: 1.8px; text-transform: uppercase; color: #a3adba; margin-top: 2px; }
.stat-pair { display: flex; align-items: baseline; gap: 14px; padding: 4px 0; font: 600 22px/1.3 var(--tech); font-variant-numeric: tabular-nums; color: #f4f6f8; }
.stat-pair + .stat-pair { border-top: 1px solid #262f3b; }
.stat-pair span { min-width: 72px; }
.stat-pair em { font: 500 11.5px var(--tech); letter-spacing: 1.6px; text-transform: uppercase; color: #a3adba; }
.spark { position: absolute; left: 18px; right: 18px; bottom: 12px; width: calc(100% - 36px); height: 28px; overflow: visible; }
#sparkV, #sparkA { color: #3ee070; filter: drop-shadow(0 0 2px rgba(62, 224, 112, .9)) drop-shadow(0 0 6px rgba(62, 224, 112, .35)); }
#sparkKw { color: #ffb52e; filter: drop-shadow(0 0 2px rgba(255, 181, 46, .9)) drop-shadow(0 0 6px rgba(255, 181, 46, .35)); }
.hero-foot { display: flex; align-items: center; gap: 18px; margin: 18px 0 4px; color: #8792a1;
  font: 400 14px var(--tech); letter-spacing: 6px; text-transform: uppercase; }
.hero-foot i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #303b49); }
.hero-foot i:nth-of-type(2) { background: #303b49; flex: 0 1 90px; }
.hero-foot i.short { flex: 0 1 40px; background: linear-gradient(90deg, #303b49, transparent); }
.hero-foot small { font-size: 11px; letter-spacing: 3.5px; white-space: nowrap; }
.hero-foot span { white-space: nowrap; }
@media (max-width: 640px) {
  .hero-foot { font-size: 12px; letter-spacing: 4px; gap: 12px; }
  .hero-foot small, .hero-foot i:nth-of-type(2), .hero-foot i.short { display: none; }
  .hero-foot::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #303b49, transparent); }
}
.dial-wide { max-width: 340px; }
.dial-val.halo { paint-order: stroke; stroke: #141a22; stroke-width: 6px; stroke-linejoin: round; }
.dial-dir { font-size: 11px; font-weight: 600; letter-spacing: 1px; fill: var(--muted); }
#kwNeedle { transform-origin: 100px 104px; }.center { text-align: center; }
.soc-card { text-align: center; }
.bar { height: 10px; background: #1e252f; border-radius: 5px; overflow: hidden; margin: 6px 0 10px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.bar div { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #1f8f45, #3ecf5e);
  box-shadow: 0 0 10px rgba(62, 207, 94, .55); transition: width .5s; }
.state { padding: 2px 10px; border-radius: 6px; background: #2a313c; font-size: 26px; }
.state.CLOSED { background: #5a1f1f; color: #ffb3b3; }
.state.OPEN { background: #1d4a30; color: #9ff0c0; }
.state.PRECHARGE_REQ, .state.OPENING { background: #4a3a1d; color: #ffe2a8; }
.state.FAULT { background: #e74c3c; color: #fff; }
.state.RUNNING { background: #1d4a30; color: #9ff0c0; }
.state.STARTING, .state.STOPPING, .state.NO_LINK { background: #4a3a1d; color: #ffe2a8; }
.seg button.active { background: #1f4a7a; border-color: var(--accent); }
.linkrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.pill.gen-link { font-size: 13px; padding: 4px 12px; }
.pill.gen-link.good { background: var(--good); color: #052712; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 5px; background: #3a4350; border-radius: 1px; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 50%; }
.bars i:nth-child(3) { height: 75%; } .bars i:nth-child(4) { height: 100%; }
.bars.q4 i.on, .bars.q3 i.on { background: var(--good); }
.bars.q2 i.on { background: var(--warn); }
.bars.q1 i.on { background: var(--bad); }
.gen-fault { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #4a1d1d; color: #ffd0d0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gen-fault.hidden { display: none; }
.gen-fault button { margin-left: auto; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 8px; }
.form fieldset.hidden { display: none; }
.form legend { color: var(--muted); font-size: 12px; padding: 0 4px; }
.form label.hidden { display: none; }
.form label select { width: 190px; max-width: 58%; min-width: 0; }
.form fieldset label input[type=number] { width: 90px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.setup-sec { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.setup-sec.hidden { display: none; }
.setup-sec h4 { margin: 0 0 2px; font-size: 15px; }
.setup-sec .sub-h { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin-top: 6px; }
.setup-sec .in { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.setup-sec .in input[type=number] { width: 80px; }
.setup-sec .in i { width: 28px; font-style: normal; }
.hint { color: var(--muted); font-size: 12px; margin: 2px 0 0; line-height: 1.45; }
.form label.opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; justify-content: stretch;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.form label.opt.sel { border-color: var(--accent); background: #1a2a3d; }
.form label.opt input { grid-row: span 2; margin-top: 3px; }
.form label.opt span { color: var(--muted); font-size: 12px; }
.setup-actions { margin-top: 12px; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.stats label { display: block; color: var(--muted); font-size: 12px; }
.stats span { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
canvas { width: 100%; background: #12161c; border-radius: 6px; }
.cell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cell-grid div { background: #12161c; border-radius: 4px; padding: 4px 6px; font-size: 12px; }
.cell-grid div b { color: var(--muted); font-weight: 400; margin-right: 4px; }
.cell-grid .lo { outline: 1px solid var(--accent); }
.cell-grid .hi { outline: 1px solid var(--warn); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar input[type=text], #msgFilter { flex: 1; min-width: 240px; }
input, select { background: #12161c; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font-size: 14px; }
button, .btn { background: #26303c; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 14px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
button.danger { background: #7a1f1f; border-color: #a33; }
button.warn { background: #5a4515; border-color: #a77d1d; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.form { display: flex; flex-direction: column; gap: 8px; }
.wifi-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.wifi-list:empty { display: none; }
.wifi-net { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; }
.wifi-net.current { border-color: var(--accent); }
.wifi-net small { color: var(--muted); white-space: nowrap; }
.form label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.form label input[type=number], .form label input[name=ssid], .form label input[name=pass] { width: 160px; }
.form label:has(input[type=checkbox]) { justify-content: flex-start; }
.events { max-height: 360px; overflow: auto; background: #12161c; padding: 10px; border-radius: 6px; font-size: 12px; margin: 0; white-space: pre-wrap; }
table.msgs { width: 100%; border-collapse: collapse; font-size: 13px; }
table.msgs th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 6px 4px; position: sticky; top: 52px; background: var(--card); }
table.msgs td { padding: 4px; border-bottom: 1px solid #20262f; vertical-align: top; }
table.msgs tr.msg { cursor: pointer; }
table.msgs tr.msg:hover { background: #1e252e; }
table.msgs td.mono, .mono { font-family: ui-monospace, Consolas, monospace; }
table.msgs tr.tx td:first-child { color: var(--warn); }
table.sigs { width: 100%; border-collapse: collapse; margin: 2px 0 6px 12px; }
table.sigs td { border: none; padding: 1px 8px 1px 0; font-size: 12px; }
table.sigs td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
table.sigs td:nth-child(3) { color: var(--muted); }
.danger-card { border-color: #5a2a2a; }

/* history */
.hist { display: flex; flex-direction: column; gap: 16px; }
.hbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hbar #hStatus { flex-basis: 100%; margin: 0; }
.hbar .hcsv { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: none; border-radius: 0; background: none; color: var(--muted); padding: 7px 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--accent); color: #fff; }
.hnav { display: flex; align-items: center; gap: 8px; }
.hnav #hLabel { min-width: 230px; text-align: center; font-variant-numeric: tabular-nums; white-space: pre; }
.hstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1100px) { .hstats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .hstats { grid-template-columns: repeat(2, 1fr); } }
.hstat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.hstat .k { font: 600 11px var(--tech); text-transform: uppercase; letter-spacing: 1.2px; color: #9aa5b3; }
.hstat .v { font: 700 20px var(--tech); margin: 2px 0; font-variant-numeric: tabular-nums; }
.hstat .s { color: var(--muted); font-size: 12px; }
.hcharts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hcharts .span2 { grid-column: 1 / -1; }
@media (max-width: 1000px) { .hcharts { grid-template-columns: minmax(0, 1fr); } }
.hcard { padding: 12px 12px 8px; min-width: 0; }
.hcard h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.hsub { font: 400 12px system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 6px; }
.hleg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font: 400 12px system-ui, sans-serif;
  letter-spacing: 0; text-transform: none; color: var(--muted); }
.hleg i, .htip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hscale { gap: 6px; }
.hgrad { display: inline-block; width: 90px; height: 10px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(70, 150, 255), rgb(32, 40, 52), rgb(255, 92, 60)); }
.hgrad.volt { background: linear-gradient(90deg, rgb(40, 30, 110), rgb(40, 120, 200) 35%, rgb(60, 190, 140) 65%, rgb(250, 225, 70)); }
.seg-sm button { padding: 3px 10px; font: 400 12px system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.hdead { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #000; border: 1px solid var(--line); margin-left: 8px; }
.hnote { margin: -2px 0 8px; font-size: 12px; }
.hc { position: relative; height: 200px; }
.hc canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc canvas.ov { cursor: crosshair; touch-action: pan-y; background: transparent; }
.htip { position: fixed; z-index: 20; pointer-events: none; background: rgba(12, 15, 20, .96); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); min-width: 200px; }
.htip .ht-t { font-weight: 600; margin-bottom: 4px; }
.htip div { display: flex; align-items: center; gap: 2px; }
.htip div b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.hbtn-x { padding: 3px 10px; font-size: 12px; }
@media (max-width: 600px) { .big { font-size: 28px; } main { padding: 8px; } .hnav #hLabel { min-width: 0; } }
