/* Pompa — soft terminal theme. Low-contrast dark, monospace, symmetric grids. */
:root {
  --bg: #111418;
  --bg2: #14181d;
  --panel: #171c22;
  --panel2: #1b2128;
  --line: #252c35;
  --line2: #2e3640;
  --text: #c3cad4;
  --text2: #e0e5ec;
  --mute: #6f7a88;
  --mute2: #8a95a3;
  --green: #86c39a;
  --red: #d98c8c;
  --yellow: #d6b878;
  --blue: #86afd0;
  --cyan: #7fbfbf;
  --violet: #a99bd3;
  --green-bg: rgba(134, 195, 154, .09);
  --red-bg: rgba(217, 140, 140, .09);
  --yellow-bg: rgba(214, 184, 120, .09);
  --blue-bg: rgba(134, 175, 208, .09);
  --violet-bg: rgba(169, 155, 211, .10);
  --r: 8px;
  --gap: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 13px/1.55 var(--mono); letter-spacing: .1px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--text2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--violet); outline-offset: 2px; }
::selection { background: rgba(169, 155, 211, .25); }
.mute { color: var(--mute); }
.g { color: var(--green); } .r { color: var(--red); } .y { color: var(--yellow); } .b { color: var(--blue); } .v { color: var(--violet); }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
  padding: 10px 20px; background: rgba(17, 20, 24, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text2); font-weight: 600; white-space: nowrap; }
.brand .path { color: var(--mute); font-weight: 400; }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--green); opacity: .7; vertical-align: -2px; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(134, 195, 154, .12); }
.dot.warn { background: var(--yellow); }
.dot.down { background: var(--red); }
.actions { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; font-size: 12px;
}
.act:hover { border-color: var(--mute); color: var(--text2); }
.act .led { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.act.on .led { background: var(--green); }
.act.paused .led { background: var(--yellow); }
.act.off .led { background: var(--red); }
.act.lit { border-color: rgba(169, 155, 211, .45); color: var(--violet); }

.statusbar {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 6px 20px; font-size: 11.5px; color: var(--mute);
  border-bottom: 1px solid var(--line); background: var(--bg2);
}
.statusbar b { color: var(--mute2); font-weight: 500; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 18px 20px 40px; display: grid; gap: var(--gap); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; display: flex; flex-direction: column; }
.ph {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--mute2); font-size: 11.5px; text-transform: lowercase;
}
.ph::before { content: "› "; color: var(--mute); }
.ph > span:first-child { margin-right: auto; }
.pb { padding: 10px 14px 12px; }

.banner { display: none; padding: 9px 14px; border: 1px solid rgba(214, 184, 120, .3); background: var(--yellow-bg); color: var(--yellow); border-radius: var(--r); font-size: 12px; }
.banner.show { display: block; }

/* collapsible bars (stats / logs) */
.folds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fold {
  display: grid; grid-template-columns: 14px auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  color: var(--mute2); cursor: pointer; text-align: left; font-size: 12px; min-width: 0;
}
.fold:hover { border-color: var(--line2); color: var(--text2); }
.fold .chev { color: var(--mute); transition: transform .15s; display: inline-block; }
.fold[aria-expanded="true"] { border-color: var(--line2); background: var(--panel2); }
.fold[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--violet); }
.fold .ft { color: var(--text2); }
.fold .sum { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fold .sum b { color: var(--mute2); font-weight: 500; }
.fold .badge { font-size: 10.5px; padding: 0 6px; line-height: 17px; border-radius: 4px; color: var(--yellow); border: 1px solid rgba(214, 184, 120, .35); background: var(--yellow-bg); }
.fold .badge:empty { display: none; }
.foldbody { display: grid; gap: var(--gap); }
.foldbody[hidden] { display: none; }

/* KPI strip: 6 equal tiles → 3 → 2 */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.kpi .k { font-size: 11px; color: var(--mute); text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val { margin-top: 4px; font-size: 22px; line-height: 1.2; color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { margin-top: 2px; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* two equal panels */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }

/* rows with inline bars (funnel / buckets) */
.rows { display: grid; gap: 2px; flex: 1; grid-auto-rows: 1fr; align-items: center; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 56px; align-items: center; column-gap: 10px; row-gap: 5px; padding: 4px 0; font-size: 12.5px; }
.row .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .num { text-align: right; color: var(--text2); }
.row .pc { text-align: right; color: var(--mute); font-size: 11.5px; }
.row .bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.row .bar i { display: block; height: 100%; background: var(--violet); opacity: .55; border-radius: 2px; }
.row.hd { color: var(--mute); font-size: 11px; }
.row.hd .num, .row.hd .pc { color: var(--mute); font-size: 11px; }
.brow { grid-template-columns: 64px minmax(0, 1fr) 40px 56px 56px; }
.brow .meter { margin: 0; height: 3px; }

/* ---------------------------------------------------------------- feed */
.feedhead { flex-wrap: wrap; }
.tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
.tab { height: 26px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--line2); background: transparent; color: var(--mute2); cursor: pointer; font-size: 11.5px; white-space: nowrap; }
.tab:hover { color: var(--text2); }
.tab.on { color: var(--violet); border-color: rgba(169, 155, 211, .45); background: var(--violet-bg); }
.tab .n { color: var(--mute); margin-left: 4px; }

/* log panel */
.tabs5 { grid-template-columns: repeat(5, auto); }
.logs { height: 248px; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0; font-size: 12px; }
.lg { display: grid; grid-template-columns: 64px 56px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 3px 14px; }
.lg:hover { background: rgba(255, 255, 255, .02); }
.lg.click { cursor: pointer; }
.lg .t { color: var(--mute); }
.lg .lv { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; }
.lg .tx { color: var(--text); overflow-wrap: anywhere; }
.lg.ok .lv, .lg.win .lv { color: var(--green); }
.lg.ai .lv { color: var(--violet); }
.lg.loss .lv, .lg.err .lv { color: var(--red); }
.lg.trk .lv, .lg.warn .lv { color: var(--yellow); }
.lg.err .tx { color: var(--red); }
.lg.warn .tx { color: #cdb98d; }
.lg.sys .lv, .lg.sys .tx { color: var(--mute2); }
.lg.new { animation: lgnew 1.6s ease-out; }
@keyframes lgnew { from { background: rgba(134, 195, 154, .08); } }
.lg-empty { padding: 30px 14px; text-align: center; color: var(--mute); }

.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 14px; }
.empty { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--mute); }

.card {
  display: grid; grid-template-rows: auto auto auto auto auto; min-width: 0;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .15s;
}
.card:hover { border-color: var(--line2); }
.card.fresh { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { border-color: rgba(134, 195, 154, .7); box-shadow: 0 0 0 3px rgba(134, 195, 154, .08); } }

.card .dyn, .card .sc { display: contents; }
.c-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 54px; gap: 10px; align-items: center; padding: 12px 12px 10px; cursor: pointer; }
.av { width: 40px; height: 40px; border-radius: 7px; background: var(--line); object-fit: cover; display: block; color: transparent; }
.av.ph0 { display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 15px; }
.tt { min-width: 0; }
.tt .sym { color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tt .nm { color: var(--mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.score { height: 40px; border-radius: 7px; border: 1px solid var(--line2); display: grid; place-items: center; text-align: center; line-height: 1.1; }
.score b { font-size: 16px; font-weight: 600; }
.score small { display: block; font-size: 9px; color: var(--mute); text-transform: lowercase; }
.score.hi { border-color: rgba(134, 195, 154, .4); background: var(--green-bg); color: var(--green); }
.score.mid { border-color: rgba(214, 184, 120, .4); background: var(--yellow-bg); color: var(--yellow); }
.score.lo { border-color: rgba(217, 140, 140, .4); background: var(--red-bg); color: var(--red); }
.score.na { color: var(--mute); }

.c-links { display: flex; gap: 6px; padding: 0 12px 10px; font-size: 11.5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.c-links a { overflow: hidden; text-overflow: ellipsis; }
.c-links .sep { color: var(--line2); }

.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.quad > div { padding: 8px 10px; min-width: 0; border-left: 1px solid var(--line); }
.quad > div:first-child { border-left: none; }
.quad .k { font-size: 10.5px; color: var(--mute); text-transform: lowercase; }
.quad .v1 { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quad .v2 { font-size: 11.5px; white-space: nowrap; }
.quad.tl .v1 { font-size: 12px; }

.pill { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 4px; border: 1px solid; line-height: 17px; }
.pill.TRACKING { color: var(--yellow); border-color: rgba(214, 184, 120, .35); background: var(--yellow-bg); }
.pill.SUCCESS { color: var(--green); border-color: rgba(134, 195, 154, .35); background: var(--green-bg); }
.pill.FAIL { color: var(--red); border-color: rgba(217, 140, 140, .35); background: var(--red-bg); }
.pill.GRAD { color: var(--blue); border-color: rgba(134, 175, 208, .35); background: var(--blue-bg); }

.c-meta { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 11px; white-space: nowrap; overflow: hidden; }
.c-meta span { overflow: hidden; text-overflow: ellipsis; }

.acts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.acts4 > * {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px;
  border: none; border-left: 1px solid var(--line); background: transparent; color: var(--mute2);
  font-size: 11.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.acts4 > *:first-child { border-left: none; }
.acts4 > *:hover { background: rgba(255, 255, 255, .025); color: var(--text2); }
.acts4 .pf:hover { color: var(--green); } .acts4 .ds:hover { color: var(--text2); } .acts4 .ss:hover { color: var(--cyan); } .acts4 .cp:hover { color: var(--violet); }
.acts4 .done { color: var(--green) !important; }
.acts4 svg, .ico { width: 12px; height: 12px; flex: none; }

.more { display: none; margin: 0 14px 14px; height: 34px; border-radius: 6px; border: 1px dashed var(--line2); background: transparent; color: var(--mute2); cursor: pointer; }
.more:hover { color: var(--text2); border-color: var(--mute); }

/* ---------------------------------------------------------------- drawer (desktop side panel / mobile bottom sheet) */
.scrim { position: fixed; inset: 0; background: rgba(8, 10, 12, .55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 31;
  background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .22s ease; display: grid; grid-template-rows: auto minmax(0, 1fr);
}
.drawer.show { transform: none; }
.dh { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 34px; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dh .av { width: 44px; height: 44px; }
.x { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line2); background: transparent; color: var(--mute2); cursor: pointer; font-size: 16px; }
.x:hover { color: var(--text2); }
.db { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 30px; display: grid; gap: var(--gap); align-content: start; grid-auto-rows: max-content; }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sec > .pb p { margin: 0 0 8px; }
.sec > .pb p:last-child { margin-bottom: 0; }
.ca { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.ca code { color: var(--text2); word-break: break-all; font-size: 12px; }
.ca button { height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(169, 155, 211, .45); background: var(--violet-bg); color: var(--violet); cursor: pointer; white-space: nowrap; }
.ca button.done { color: var(--green); border-color: rgba(134, 195, 154, .45); background: var(--green-bg); }
.sec .acts4 { border-top: none; }

.subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sub .k { font-size: 10.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub .v1 { color: var(--text2); }
.meter { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--violet); opacity: .7; }
.twin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; }
.list li::before { content: "+ "; color: var(--green); }
.list.neg li::before { content: "− "; color: var(--red); }
.list.none li::before { content: ""; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line2); color: var(--mute2); }
pre.ctx { margin: 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; white-space: pre-wrap; word-break: break-all; font: 11.5px/1.5 var(--mono); color: var(--mute2); }
details summary { cursor: pointer; color: var(--mute); font-size: 11.5px; }
details[open] summary { margin-bottom: 6px; }

/* ---------------------------------------------------------------- modal / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 10, 12, .6); display: none; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; width: 100%; max-width: 420px; overflow: hidden; }
.modal .pb { display: grid; gap: 10px; }
.modal p { margin: 0; color: var(--mute2); font-size: 12px; }
.modal label { font-size: 11px; color: var(--mute); }
.modal input, .modal select { width: 100%; height: 36px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); padding: 0 10px; font: inherit; }
.mbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mbtns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mbtns .act { width: 100%; height: 34px; }
.note { font-size: 11.5px; color: var(--yellow); background: var(--yellow-bg); border: 1px solid rgba(214, 184, 120, .3); border-radius: 6px; padding: 8px 10px; }
#toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text2); font-size: 12px; opacity: 0; pointer-events: none; transition: all .18s; z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { border-color: rgba(134, 195, 154, .45); }
#toast.err { border-color: rgba(217, 140, 140, .45); color: var(--red); }

/* ---------------------------------------------------------------- docs page shared bits */
header.top h1 { margin: 0; font-size: 14px; }
.sub { color: var(--mute); font-size: 11.5px; }
.hctl { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--text2); border-color: var(--mute); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body { font-size: 13px; }
  .top { padding: 10px 12px; flex-wrap: wrap; }
  .brand { width: 100%; }
  .actions { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hctl { width: 100%; } .hctl .act { flex: 1; height: 36px; }
  .act { height: 36px; }
  .statusbar { padding: 6px 12px; gap: 2px 12px; }
  .wrap { padding: 12px 12px 30px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .folds { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fold { height: 42px; padding: 0 12px; }
  .kpi { padding: 10px 12px; }
  .kpi .val { font-size: 19px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .feed { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .feedhead { padding: 9px 10px; }
  .tabs { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .logs { height: 280px; }
  .lg { grid-template-columns: 58px minmax(0, 1fr); gap: 2px 8px; padding: 5px 10px; }
  .lg .lv { grid-column: 1; grid-row: 2; align-self: start; }
  .lg .t { grid-column: 1; grid-row: 1; }
  .lg .tx { grid-column: 2; grid-row: 1 / span 2; }
  .tab { height: 32px; padding: 0 4px; }
  .acts4 > * { height: 40px; }
  .drawer { top: auto; left: 0; width: 100vw; height: 90vh; height: 90dvh; border-left: none; border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0; transform: translateY(102%); }
  .drawer.show { transform: none; }
  .db { padding: 12px 12px calc(30px + env(safe-area-inset-bottom)); }
  .dh { padding: 12px; }
  .twin { grid-template-columns: minmax(0, 1fr); }
  .subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brow { grid-template-columns: 60px minmax(0, 1fr) 36px 52px 52px; }
}
@media (max-width: 360px) {
  .kpi .val { font-size: 17px; }
  .quad > div { padding: 7px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- v2 additions */
.tabs6 { grid-template-columns: repeat(6, auto); }
.modal .check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute2); cursor: pointer; }
.modal .check input { width: 15px; height: 15px; accent-color: #a99bd3; margin: 0; }

/* card: badges, star, sparkline */
.c-links { align-items: center; }
.c-links .grow { flex: 1; }
.badge2 { font-size: 10px; padding: 0 5px; line-height: 16px; border-radius: 4px; border: 1px solid rgba(214, 184, 120, .35); color: var(--yellow); background: var(--yellow-bg); white-space: nowrap; }
.star {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 26px; margin-left: 4px; border-radius: 6px; border: 1px solid var(--line2);
  background: transparent; color: var(--mute2); cursor: pointer; font-size: 17px; line-height: 1; padding: 0;
}
.star svg { width: 17px; height: 17px; fill: none; }
.star.on svg { fill: currentColor; }
.dh .star svg, .tab .star-ico { width: 19px; height: 19px; }
.star:hover { color: var(--yellow); border-color: rgba(214, 184, 120, .45); }
.star.on { color: var(--yellow); border-color: rgba(214, 184, 120, .45); background: var(--yellow-bg); }
.dh .star { width: 34px; height: 34px; margin: 0; font-size: 19px; }
.dh { grid-template-columns: 44px minmax(0, 1fr) 54px 34px 34px; }
.spark { border-top: 1px solid var(--line); height: 44px; padding: 4px 10px; position: relative; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.spark .nodata { color: var(--mute); font-size: 11px; line-height: 36px; text-align: center; }
.spark-big { height: 120px; padding: 8px 12px; border-top: none; }
.pwin { display: block; font-size: 9px; color: var(--mute2); }

/* hour chart */
#byHour { flex: 1; display: flex; min-height: 150px; }
.hours { flex: 1; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; }
.hours .hb > .bar2 { flex: 0 0 auto; }
.hours .hb { padding-bottom: 0; }
.hours .hb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.hours .hb .bar2 { max-height: calc(100% - 28px); }
.hours .bar2 { width: 100%; border-radius: 2px 2px 0 0; background: var(--violet); opacity: .55; min-height: 1px; }
.hours .bar2.none { background: var(--line); opacity: 1; }
.hours .hl { font-size: 9px; color: var(--mute); }
.hours .hv { font-size: 9px; color: var(--mute2); white-space: nowrap; }

/* drawer screenshot */
.shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 12px; }
.kv .k { font-size: 10.5px; color: var(--mute); }
.kv .v1 { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .tabs6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .star { width: 38px; height: 32px; }
  .star svg { width: 19px; height: 19px; }
  #byHour { min-height: 130px; }
  .hours { gap: 2px; }
  .hours .hv { display: none; }
}
.tab-star { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }
@media (max-width: 760px) { .tab-star { width: 16px; height: 16px; } }
