:root {
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #9a958a;
  --bg: #f4f1e8;
  --card: #fbf9f3;
  --card-2: #ffffff;
  --line: #e4dfd2;
  --line-2: #d6d0c1;
  --text: #141414;
  --muted: #6d6858;
  --ink: #111111;
  --lime: #d6f53f;
  --lime-2: #c9ec22;
  --lime-soft: #f0fbc6;
  --lime-line: #c5e64a;
  --gold: #f2c230;
  --ok: #2f8a4c;
  --warn: #b26a00;
  --bad: #c0392b;
  --radius: 14px;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); }
body { min-height: 100vh; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); margin: 0 0 .35em; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 5.2vw, 52px); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sub { color: var(--muted); font-size: clamp(16px, 2vw, 20px); margin: 0; }
[hidden] { display: none !important; }

/* ---------- Layout */
.app { max-width: 1080px; margin: 0 auto; padding: 26px 20px 120px; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; }
.topbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 12px 20px; min-height: 62px; }
.brand { color: #fff; text-decoration: none; font-family: var(--head); line-height: 1; }
.brand b { display: block; font-weight: 900; font-size: 21px; letter-spacing: -.02em; text-transform: uppercase; }
.brand small { display: block; color: var(--lime); font-size: 10.5px; font-weight: 800; letter-spacing: .32em; margin-top: 4px; text-transform: uppercase; }
.topnav { display: none; gap: 6px; }
.topnav a { color: #e9e9e9; text-decoration: none; padding: 8px 12px 9px; font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; }
.topnav a.active { color: #fff; border-bottom-color: var(--lime); }
.acct { margin-left: auto; position: relative; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; display: flex; }
.burger { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; display: flex; }
.burger svg { width: 26px; height: 26px; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; min-width: 210px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; z-index: 40; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text);
  text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.menu .who b { display: block; color: var(--text); font-size: 15px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { color: var(--muted); text-decoration: none; text-align: center; padding: 10px 2px 9px; font-size: 12px; font-weight: 600; }
.tabbar a svg { display: block; margin: 0 auto 3px; width: 24px; height: 24px; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active span { border-bottom: 2px solid var(--lime-2); padding-bottom: 2px; }
@media (min-width: 820px) {
  .topnav { display: flex; } .burger { display: none; } .tabbar { display: none; } .app { padding-bottom: 60px; }
}
@media (max-width: 819px) { .avatar-btn { display: none; } }

/* ---------- Cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.hero { display: grid; gap: 18px; margin-bottom: 22px; align-items: start; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) auto; } .weekpick .row { flex-wrap: nowrap; } }
.weekpick { display: flex; flex-direction: column; gap: 6px; }
.weekpick .row { gap: 12px; }
.weekpick select { min-width: 220px; width: auto; background: #fff; font-weight: 500; }
@media (max-width: 899px) { .weekpick select { flex: 1; } }
input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; min-width: 0; }
.stat .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #3a372f; }
.stat .value { font-family: var(--head); font-weight: 900; font-size: clamp(26px, 5vw, 44px); line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.stat .value small { font-size: .55em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 560px) { .stat { padding: 10px 12px; } .stat .label { font-size: 10.5px; letter-spacing: .08em; } }
.main-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.main-grid > *, .split > *, .stats > * { min-width: 0; }
@media (min-width: 900px) { .main-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.split { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.logsplit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.space { justify-content: space-between; }

/* ---------- Pills & buttons */
.pill { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 99px; text-transform: uppercase; white-space: nowrap; }
.pill.grey { background: #e7e3d8; color: #3a372f; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase;
  letter-spacing: .05em; background: #ebe7dc; color: var(--muted); vertical-align: middle; }
.badge.ok { color: var(--ok); background: #e2f3e6; } .badge.warn { color: var(--warn); background: #fbefd9; }
.badge.bad { color: var(--bad); background: #f8e1de; } .badge.lime { color: var(--ink); background: var(--lime); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--ink);
  border: 0; border-radius: 10px; padding: 13px 20px; font: inherit; font-weight: 800; cursor: pointer; min-height: 48px;
  text-decoration: none; font-size: 16px; letter-spacing: -.01em; }
.btn:hover { background: var(--lime-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: #fff; }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 13px; font-weight: 700; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid #e6bdb7; }
.linkbtn { background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; font-weight: 500; }
.viewall { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }

/* ---------- Forms */
label, .flabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3a372f; margin-bottom: 7px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; background: #fff; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 13px; font: inherit; font-size: 16px; min-height: 48px; }
textarea { min-height: 64px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.stepper button { width: 44px; height: 44px; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper input { width: 56px; text-align: center; border: 0; min-height: 42px; padding: 0; }

/* Practice radio list */
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 16px; cursor: pointer; font-weight: 500; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; position: relative; line-height: 1.3; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #8a8577; flex: none; position: relative; background: #fff; }
.opt .pts { margin-left: auto; font-weight: 600; white-space: nowrap; }
.opt.on { background: var(--lime-soft); border-color: var(--lime-line); }
.opt.on .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.opt:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.more { margin-top: 10px; }
.extras { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 4px; }
.est-note { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.est-note.warn { color: var(--warn); }

/* Leaderboard */
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-bottom: 1px solid var(--line); border-radius: 10px; }
.lb li:last-child { border-bottom: 0; }
.lb li.me { background: var(--lime-soft); border-bottom-color: transparent; font-weight: 700; }
.lb .num { width: 30px; height: 30px; border-radius: 50%; background: #e8e5dc; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex: none; }
.lb .num.first { background: var(--gold); }
.lb li.me .num { background: var(--lime); }
.lb .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.lb .p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb .p small { color: var(--muted); font-weight: 400; }
.lb .gap { text-align: center; color: var(--muted); padding: 2px; border: 0; }

/* Email preview */
.preview { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 18px; }
.preview .bar { background: var(--lime-soft); border-radius: 8px; padding: 10px 16px; font-family: var(--head); font-weight: 800; font-size: 22px; margin: 10px 0 14px; }
.preview ul { margin: 6px 0 0; padding-left: 20px; }
.vline { border-left: 1px solid var(--line); padding-left: 22px; }
@media (max-width: 759px) { .vline { border-left: 0; padding-left: 0; } }
.cta { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .cta { grid-template-columns: 1fr 1fr; } }

/* Tables / lists */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.me td { background: var(--lime-soft); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e2dfd6; color: var(--ink); display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar .avatar { width: 38px; height: 38px; background: #e6e6e6; }
.log { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.log:last-child { border-bottom: 0; }
.log .pts { margin-left: auto; text-align: right; font-family: var(--head); font-weight: 800; font-size: 20px; white-space: nowrap; }
.log .title { font-weight: 600; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tabs button { background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 99px; padding: 8px 16px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Login */
.login { max-width: 440px; margin: 4vh auto 0; }
.login .logo { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; text-align: center; margin-bottom: 16px; }
.login .logo b { display: block; font-family: var(--head); font-weight: 900; font-size: 34px; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.login .logo small { display: block; color: var(--lime); font-weight: 800; letter-spacing: .34em; font-size: 12px; margin-top: 8px; text-transform: uppercase; }

/* Misc */
.loading { display: flex; justify-content: center; padding: 60px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid #ddd8ca; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; }
.toast.ok { background: var(--lime); color: var(--ink); }
.toast.err { background: #7a1f16; }
.offline { background: var(--warn); color: #fff; text-align: center; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.alert { border-radius: 10px; padding: 12px 14px; background: #f8e1de; color: #6d1c13; border: 1px solid #ebbfb8; margin-bottom: 14px; }
.alert.info { background: #eef4fb; color: #1d3c5e; border-color: #cddcee; }
.dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: min(460px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(0,0,0,.5); }
.empty { color: var(--muted); text-align: center; padding: 22px 0; }
.rule { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rule .pts { margin-left: auto; font-family: var(--head); font-weight: 800; font-size: 18px; white-space: nowrap; }
details summary { cursor: pointer; font-weight: 600; }
code { background: #ebe7dc; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.codebox { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: .2em; }

.pair { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Sign in / join */
.auth { display: grid; gap: 0; max-width: 1040px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 3vh; } }
.auth-brand { background: var(--ink); color: #fff; padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand h1 { color: #fff; font-size: clamp(34px, 4.6vw, 52px); margin: 6px 0 0; }
.auth-brand .lead { color: #d8d8d0; font-size: 17px; margin: 0; }
.brand-mark { font-family: var(--head); line-height: 1; }
.brand-mark b { display: block; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; color: inherit; }
.brand-mark small { display: block; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .32em; margin-top: 5px; text-transform: uppercase; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.perks b, .teacher b { display: block; font-size: 15px; }
.perks span:not(.ic), .teacher span { color: #bdbdb4; font-size: 14px; }
.teacher { display: flex; gap: 12px; align-items: center; border-top: 1px solid #2b2b2b; padding-top: 18px; margin-top: auto; }
.avatar.big { width: 48px; height: 48px; font-size: 16px; background: var(--lime); color: var(--ink); }
.about { color: var(--lime); font-weight: 700; text-decoration: none; }
.auth-form { padding: 28px 32px 30px; display: flex; flex-direction: column; }
.auth-form .card { background: #fff; margin-bottom: 14px; }
.auth-form .card h2 { margin-bottom: 4px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; align-self: flex-start; }
.switch { text-align: center; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.privacy { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.mobile-head { display: none; }
@media (max-width: 899px) {
  .app:has(.auth) { padding: 0 0 40px; }
  .auth { border-radius: 0; border: 0; background: var(--bg); }
  .auth-form { order: 1; padding: 18px 16px 8px; }
  .auth-brand { order: 2; margin: 10px 16px 0; border-radius: 16px; padding: 24px 20px; }
  .auth-brand > .brand-mark, .auth-brand h1, .auth-brand .lead { display: none; }
  .teacher { margin-top: 4px; }
  .mobile-head { display: block; background: var(--ink); color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
  .mobile-head p { margin: 8px 0 0; color: #d8d8d0; font-size: 15px; }
}
.pwwrap { position: relative; }
.pwwrap input { padding-right: 70px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-weight: 600;
  font-size: 13px; color: var(--ink); cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.pwtoggle:hover { background: var(--bg); }
.codeinput { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .35em; text-transform: uppercase; font-size: 20px !important; font-weight: 700; }
.codeinput::placeholder { letter-spacing: .35em; color: #c9c4b6; }
.codeinline { font-size: 15px; letter-spacing: .15em; font-weight: 700; }

.consent { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.btn.small { white-space: nowrap; }

/* ---------- Charts & categories */
.main-grid.even { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .main-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cattabs { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 2px; }
.cattabs button { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px; color: var(--text); }
.cattabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cattabs i, .legend i, .dlegend i, .note-h i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.opt.static { cursor: default; background: transparent; border-style: dashed; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i.ln { width: 16px; height: 0; border-top: 2px dashed var(--c2); border-radius: 0; }
.seg-ctl { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.seg-ctl button { background: none; border: 0; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-ctl button.on { background: var(--ink); color: #fff; }
.donutwrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 480px) { .donutwrap { grid-template-columns: 1fr; justify-items: center; } .dlegend { width: 100%; } }
.donut { width: 180px; height: 180px; }
.donut .seg { cursor: pointer; transition: stroke-width .15s; outline: none; }
.donut .seg:hover, .donut .seg:focus { stroke-width: 30; }
.d-total, .d-sub { pointer-events: none; }
.d-total { font-family: var(--head); font-weight: 900; font-size: 30px; fill: var(--text); }
.d-sub { font-size: 12px; fill: var(--muted); }
.dlegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dlegend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; font-size: 15px; }
.dlegend b { font-variant-numeric: tabular-nums; } .dlegend em { font-style: normal; color: var(--muted); text-align: right; font-size: 13px; }
.trend { width: 100%; height: auto; display: block; margin-top: 6px; }
.trend .grid { stroke: var(--line); stroke-width: 1; }
.trend .ax { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.trend .bar { fill: #3a3832; } .trend .bar.cur { fill: var(--ink); }
.trend .avgline { fill: none; stroke: var(--c2); stroke-width: 2; stroke-dasharray: 5 4; }
.trend .avgdot { fill: var(--c2); stroke: var(--card); stroke-width: 2; }
.trend .hit { fill: transparent; cursor: pointer; outline: none; }
.trend .hit:hover, .trend .hit:focus { fill: rgba(0,0,0,.04); }
.stack { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: transparent; }
.stack span { height: 100%; min-width: 3px; cursor: pointer; outline: none; }
.stack span:first-child { border-radius: 4px 0 0 4px; } .stack span:last-child { border-radius: 0 4px 4px 0; } .stack span:only-child { border-radius: 4px; }
.stack span:hover, .stack span:focus { filter: brightness(1.12); }
.stack.mini { height: 6px; margin-top: 5px; max-width: 220px; }
.lb .name { display: block; }
.stacks { display: grid; gap: 10px; margin-top: 8px; }
.srow { display: grid; grid-template-columns: minmax(70px, 140px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 4px 6px; border-radius: 8px; }
.srow.me { background: var(--lime-soft); font-weight: 700; }
.sname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stot { text-align: right; font-variant-numeric: tabular-nums; }
.note { border-top: 1px solid var(--line); padding: 12px 0; }
.note:first-of-type { border-top: 0; padding-top: 2px; }
.note-h { display: flex; align-items: center; gap: 8px; }
.note-h span { margin-left: auto; }
.note p { margin: 6px 0 4px; white-space: pre-wrap; }
.note-body { margin-top: 6px; white-space: pre-wrap; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.tip { position: fixed; z-index: 70; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 7px 10px; border-radius: 8px;
  pointer-events: none; max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.hdot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: middle; }
