:root {
  --bg: #f4f2ef;
  --card: #ffffff;
  --ink: #1f1d1a;
  --muted: #6f6a63;
  --line: #e2ddd6;
  --accent: #2f6b5e;
  --accent-ink: #ffffff;
  --accent-soft: #e3efeb;
  --ok: #2f7d4f;
  --ok-soft: #e4f3e9;
  --warn: #9a6400;
  --warn-soft: #fbf0d9;
  --bad: #b3261e;
  --bad-soft: #fbe5e3;
  --na: #6f6a63;
  --na-soft: #efede9;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 16px; margin: 24px 0 8px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* шапка */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1600px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; min-height: 52px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: 0.06em; font-size: 13px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.who { color: var(--muted); font-size: 13px; white-space: nowrap; }
.who a { margin-left: 10px; }
main { max-width: 1600px; margin: 0 auto; padding: 20px 16px 48px; }

.notices { display: grid; gap: 8px; margin: 0 0 16px; }
.notice { display: flex; gap: 12px; align-items: center; background: var(--warn-soft); border: 1px solid #f0dcae; border-radius: 10px; padding: 10px 14px; }
.notice > div { flex: 1; }
.notice .small { color: #5c4a1e; margin-top: 2px; }
.flash { background: var(--warn-soft); color: #5c3d00; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.tile { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.tile:hover { border-color: var(--accent); }
.tile b { display: block; font-size: 15px; margin-bottom: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: #c9c2b8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #275a4f; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password], input[type=search], select, textarea {
  font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; color: var(--ink); max-width: 100%;
}
textarea { width: 100%; min-height: 60px; resize: vertical; }
label { font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* вкладки */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 10px; }
.tabs a { padding: 6px 11px; border-radius: 8px; text-decoration: none; color: var(--muted); border: 1px solid transparent; font-weight: 500; }
.tabs a:hover { color: var(--ink); background: var(--card); }
.tabs a.on { background: var(--card); border-color: var(--line); color: var(--ink); }

/* таблицы из Excel */
.pre p { margin: 0 0 6px; max-width: 1100px; }
.pre .t-big { font-size: 17px; font-weight: 650; }
.pre .t-note { color: var(--muted); font-size: 12.5px; }
.xl-wrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.xl-wrap.mini { max-height: none; display: inline-block; max-width: 100%; margin: 4px 0 12px; }
.xl-wrap.mini table.xl { table-layout: auto; width: auto !important; }
.xl-wrap.mini table.xl td { overflow: visible; text-overflow: clip; min-width: 70px; }
table.xl { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.xl td, table.xl th {
  border-right: 1px solid #e6e2dc; border-bottom: 1px solid #e6e2dc; padding: 3px 7px; background: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-weight: 400; text-align: left;
}
table.xl thead { position: sticky; top: 0; z-index: 3; }
table.xl thead th { white-space: normal; text-align: center; font-weight: 600; background: #D9E1F2; line-height: 1.25;
  overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
/* подписи строк и текст переносятся по словам, а не обрезаются (владелец 07.11.2026); ширина колонок — под текст (sheets.layout); числа — в одну строку */
table.xl td:not(.n) { white-space: normal; text-overflow: clip; overflow-wrap: break-word; }
table.xl td.n { text-align: right; }
table.xl td.w, table.xl td.wide, table.xl td.full { white-space: normal; }
table.xl tbody td[data-c="0"] { cursor: pointer; }
table.xl td.wide { color: var(--muted); }
table.xl .b { font-weight: 650; }
table.xl .i { font-style: italic; }
table.xl .big { font-size: 13.5px; }
table.xl .sc { position: sticky; z-index: 2; }
table.xl thead .sc { z-index: 4; }
table.xl tr.hid { display: none; }
.tg { border: 0; background: none; cursor: pointer; padding: 0 4px 0 0; color: var(--accent); font: inherit; font-weight: 700; }
.xl-foot { margin-top: 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg a { padding: 5px 9px; border-radius: 7px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 13px; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--accent); color: var(--accent-ink); }
.btn.sm { padding: 5px 9px; font-size: 13px; }
.toolbar select, .toolbar input[type=search] { padding: 5px 8px; font-size: 13px; }
table.xl tr.uh, table.xl tr.fhid { display: none; }
table.xl.show-uh tr.uh:not(.fhid):not(.hid) { display: table-row; }
table.xl.show-uh tr.uh td { opacity: .45; }
table.xl tr.gap td { height: 10px; border-right: 0; }
table.xl tr.sec td:first-child { cursor: pointer; }
.rh { border: 0; background: none; color: #b9b2a8; cursor: pointer; padding: 0 5px 0 0; font: inherit; font-weight: 700; visibility: hidden; }
table.xl tr:hover .rh { visibility: visible; }
table.xl tr.uh .rh { visibility: visible; color: var(--accent); }
table.xl td.x { cursor: pointer; }
table.xl td.x:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
table.xl tbody tr:hover td { filter: brightness(0.97); }
table.xl tfoot td { position: sticky; bottom: 0; background: #fff8e6; font-weight: 650; border-top: 2px solid var(--line); }
.pop { position: fixed; z-index: 50; width: min(440px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 14px 16px; font-size: 13px; }
.pop h3 { margin: 0 24px 2px 0; font-size: 14px; }
.pop .val { font-size: 22px; font-weight: 700; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.pop .expr { background: #f7f5f2; border-radius: 8px; padding: 8px 10px; margin: 6px 0; line-height: 1.5; }
.pop ul { margin: 6px 0 0; padding: 0; list-style: none; }
.pop li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #ebe6df; }
.pop li span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pop .x-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }

/* банк */
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 150px; }
.kpi .v { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 12.5px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ops-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 12px; max-height: calc(100vh - 120px); }
table.ops { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.ops th { position: sticky; top: 0; background: #f7f5f2; z-index: 2; text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; }
table.ops th, table.ops td { padding: 7px 9px; border-bottom: 1px solid #eeeae4; vertical-align: top; }
table.ops tr.op { cursor: pointer; }
table.ops tr.op:hover td { background: #faf8f5; }
table.ops tr.op.sel td { background: var(--accent-soft); }
table.ops tr.excl td { color: #a19b93; }
table.ops .who-k { font-weight: 550; max-width: 340px; }
table.ops .purp { color: var(--muted); font-size: 12px; max-width: 420px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
table.ops .amt-in { color: var(--ok); }
table.ops .yc { font-size: 12px; color: var(--muted); max-width: 300px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-miss, .b-diff { background: var(--bad-soft); color: var(--bad); }
.b-mdiff, .b-ask { background: var(--warn-soft); color: var(--warn); }
.yc .sug { color: var(--warn); }
.b-month, .b-na, .b-kop, .b-excl { background: var(--na-soft); color: var(--na); }
.mark { display: inline-block; font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.chk { color: var(--ok); font-weight: 700; }
table.svod { border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; min-width: 520px; }
table.svod th, table.svod td { padding: 6px 12px; border-bottom: 1px solid #eeeae4; }
table.svod th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; background: #f7f5f2; }
td.bad { color: var(--bad); font-weight: 600; }
.svod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 18px; }
.svod-grid .x { overflow-x: auto; }

/* панель правки */
.drawer-bg { position: fixed; inset: 0; background: rgba(30, 25, 20, .25); z-index: 40; display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--card); z-index: 41;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .12); transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-bg.open { display: block; }
.dr-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 10px; }
.dr-body { padding: 14px 18px 24px; overflow: auto; flex: 1; }
.dr-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.bankbox { background: #f7f5f2; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.bankbox dt { color: var(--muted); font-size: 12px; margin-top: 6px; }
.bankbox dd { margin: 0; word-break: break-word; }
.field { margin-top: 14px; }
.field > label { display: block; margin-bottom: 4px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 3px; }
.field .hint.changed { color: var(--warn); }
.cands { border: 1px solid var(--line); border-radius: 8px; max-height: 260px; overflow: auto; margin-top: 6px; }
.cand { display: flex; gap: 8px; padding: 6px 9px; border-bottom: 1px solid #f0ece6; font-size: 12.5px; cursor: pointer; align-items: flex-start; }
.cand:last-child { border-bottom: 0; }
.cand:hover { background: #faf8f5; }
.cand .a { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 550; }
.pair { background: var(--ok-soft); border-radius: 8px; padding: 7px 10px; margin-top: 6px; font-size: 12.5px; }
.log { font-size: 12px; color: var(--muted); margin-top: 6px; }
.log div { padding: 3px 0; border-bottom: 1px dashed #ebe6df; }

.login-box { max-width: 360px; margin: 12vh auto 0; }
.login-box input { width: 100%; margin: 4px 0 12px; }

@media (max-width: 700px) {
  main { padding: 14px 16px 40px; }
  .top-in { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 16px 6px; }
  .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 6px 9px; white-space: nowrap; }
  .filters > * { flex: 1 1 140px; }
  .filters input[type=search] { min-width: 0 !important; flex-basis: 100%; }
  .svod-grid { grid-template-columns: 1fr; }
  table.svod { min-width: 0; width: 100%; }
  .xl-wrap { max-height: calc(100vh - 120px); }
}

/* планирование */
.plan-wrap { max-height: none; }
table.plan { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.plan th { position: sticky; top: 0; background: #f7f5f2; z-index: 2; font-size: 12px; color: var(--muted); font-weight: 600; padding: 7px 8px; text-align: left; white-space: normal; }
table.plan td { padding: 5px 8px; border-bottom: 1px solid #eeeae4; white-space: nowrap; }
table.plan tr.grp td { border-top: 2px solid #e2ddd6; }
table.plan .p90 { background: #e3eef8; }
table.plan .p100 { background: #dce9d6; }
table.plan th.p90 { background: #d3e4f3; color: var(--ink); }
table.plan th.p100 { background: #c9dcc4; color: var(--ink); }
table.plan input { width: 84px; text-align: right; padding: 4px 6px; font-size: 13px; }
table.plan input.i-sh { width: 56px; }
table.plan input.i-min, table.plan input.i-sh { background: #ebebeb; border-color: #d2d2d2; }
table.plan input::placeholder { color: #8c8c8c; }
table.plan tfoot td { background: #fff8e6; border-top: 2px solid var(--line); font-size: 14px; }
table.plan tr.uh-row td { opacity: .45; }
table.plan td.good { color: var(--ok); font-weight: 650; }
table.plan td.bad { color: var(--bad); font-weight: 650; }
.rh-plan { border: 0; background: none; cursor: pointer; color: #b9b2a8; font: inherit; font-weight: 700; }
table.plan tr:hover .rh-plan { color: var(--bad); }
.pd { max-width: 760px; }
.pd-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-top span:first-child { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pd-top b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pd-top .muted { font-size: 13px; }
.pd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-t { border-radius: 10px; padding: 10px 14px 11px; }
.pd-t.boost { background: #dce9d6; box-shadow: inset 0 0 0 1px #b9d1b2; }
.pd-t.normal { background: #f3f0eb; }
.pd-h { font-size: 12.5px; font-weight: 650; }
.pd-h em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pd-v { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; margin: 4px 0 2px; min-height: 34px; display: flex; align-items: center; }
.pd-v input { width: 130px; font: inherit; font-size: 20px; text-align: right; padding: 2px 8px; background: #ebebeb; border-color: #d2d2d2; }
.pd-v input::placeholder { color: #8c8c8c; }
.pd-s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.pd-cal .w { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.pd-cal .w.b { color: #4f7a45; font-weight: 650; }
.pd-cal .c { position: relative; border-radius: 7px; padding: 4px 7px 5px; min-height: 42px; }
.pd-cal .c .mk { position: absolute; top: 4px; right: 7px; font-style: normal; font-size: 11px; font-weight: 700; }
.pd-cal .c.ok .mk, .pd-cal .c.ok b { color: var(--ok); }
.pd-cal .c.bad .mk, .pd-cal .c.bad b { color: var(--bad); }
.pd-cal .c s { display: block; text-decoration: none; font-size: 10.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pd-done { margin-top: 10px; }
.pd-cal .c.b { background: #e6f0e1; }
.pd-cal .c.n { background: #f6f4f0; }
.pd-cal .c.today { box-shadow: inset 0 0 0 2px var(--accent); }
.pd-cal .c i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.pd-cal .c b { display: block; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .pd-tiles { grid-template-columns: 1fr; }
  .pd-cal .c { min-height: 30px; padding: 3px 4px; }
  .pd-cal .c b, .pd-cal .c s { display: none; }
}
.pk { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 16px; }
.pk-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px;
  box-shadow: 0 1px 3px rgba(31, 29, 26, .05); }
.pk-h { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.pk-levels { display: flex; gap: 8px; }
.pk-l { display: flex; flex-direction: column; justify-content: flex-end; border-radius: 10px; padding: 8px 14px 9px; min-width: 128px; }
.pk-l span { font-size: 12px; font-weight: 650; color: var(--muted); }
.pk-l b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-l.l90 { background: #e3eef8; }
.pk-l.l100 { background: #dce9d6; box-shadow: inset 0 0 0 1px #b9d1b2; }
.pk-l.l100 b { font-size: 22px; }
.pk-l.l110 { background: #f3f0eb; }
.pk-fact { min-width: 280px; flex: 0 1 380px; }
.pk-big { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-big span { font-size: 15px; margin-left: 6px; color: var(--muted); }
.pk-big span.good { color: var(--ok); }
.pk-big span.bad { color: var(--bad); }
.pk-bar { position: relative; height: 8px; border-radius: 4px; margin: 10px 0 7px; overflow: hidden;
  background: linear-gradient(90deg, #ece8e2 0 81.8%, #d3e4f3 81.8% 90.9%, #c9dcc4 90.9%); }
.pk-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.pk-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) {
  .pk-card { flex: 1 1 100%; }
  .pk-l { flex: 1 1 0; min-width: 0; padding: 7px 9px 8px; }
  .pk-l b { font-size: 14px; }
  .pk-l.l100 b { font-size: 17px; }
  .pk-fact { min-width: 0; }
}

/* обзор */
.kpi .up { color: #0a7d0a; }
.kpi .down { color: #b3261e; }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; margin-top: 6px; }
.chart { margin: 0; padding: 14px 16px 10px; }
.chart figcaption { font-weight: 650; margin-bottom: 8px; }
.cbox { position: relative; height: 260px; }
.chart details { margin-top: 6px; font-size: 12.5px; }
.chart summary { cursor: pointer; color: var(--muted); }
.ctable { overflow-x: auto; }
.ctable table { border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 6px; }
.ctable th, .ctable td { padding: 3px 8px; border-bottom: 1px solid #eeeae4; text-align: right; white-space: nowrap; }
.ctable th:first-child, .ctable td:first-child { text-align: left; }

/* панель справа от таблицы: месяц к среднему за год */
.with-dash { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.with-dash > .xl-wrap { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.sdash { flex: 1 1 420px; min-width: min(100%, 420px); max-height: calc(100vh - 150px); overflow: auto; padding: 14px 16px; }
.sd-h { font-size: 15px; margin-bottom: 10px; }
.sd-h .small { font-size: 12px; margin-top: 2px; }
.seg button { border: 0; background: none; font: inherit; padding: 5px 9px; border-radius: 7px; color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.sd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; margin: 12px 0; }
.dt { display: flex; flex-direction: column; gap: 1px; text-align: left; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.dt:hover { border-color: #c9c2b8; }
.dt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dt .l { color: var(--muted); font-size: 12px; }
.dt .v { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dt .d { font-size: 12.5px; font-weight: 600; }
.dt .a { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt .a.sh { color: var(--ink); }
.sdash .up { color: var(--ok); }
.sdash .dn { color: var(--bad); }
.sdash .d.nt { color: var(--muted); }
.sd-chart { margin: 0 0 12px; }
.sd-chart figcaption { color: var(--muted); margin-bottom: 4px; }
.sd-chart .cbox { height: 180px; }
.sd-mx-h { font-weight: 600; margin-bottom: 4px; }
.sd-mx table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sd-mx th { font-weight: 600; color: var(--muted); font-size: 12px; text-align: right; padding: 3px 6px; }
.sd-mx td { padding: 2px; border-top: 1px solid #eeeae4; }
.sd-mx td:first-child { padding: 3px 8px 3px 0; white-space: nowrap; }
.sd-mx button { width: 100%; border: 0; border-radius: 6px; padding: 3px 6px; font: inherit; text-align: right; cursor: pointer;
  background: var(--na-soft); color: var(--ink); white-space: nowrap; }
.sd-mx button.up { background: var(--ok-soft); color: var(--ok); }
.sd-mx button.dn { background: var(--bad-soft); color: var(--bad); }
.sd-mx button.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.sd-note { margin-top: 6px; }
@media (max-width: 700px) { .sdash { max-height: none; } }
.post { margin-top: 16px; }
table.xl a.drill { color: inherit; text-decoration: underline; text-decoration-color: #b9b2a8; text-underline-offset: 2px; }
table.xl a.drill:hover { color: var(--accent); }
.pk-big.good { color: var(--ok); }
.pk-big.bad { color: var(--bad); }
