/* Sportland dashboard — styles. World: team-kit numerals on a quiet operational grid. */
@font-face { font-family: 'Roboto'; src: url('../fonts/Roboto-Variable.woff2') format('woff2-variations'), url('../fonts/Roboto-Variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../fonts/Roboto-Italic-Variable.woff2') format('woff2-variations'), url('../fonts/Roboto-Italic-Variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --plane: #f5f5f4; --surface: #ffffff; --surface-2: #faf9f8; --ink: #292929; --ink-2: #4f4d49; --muted: #6f6d66; --hair: #e4e2dc; --hair-2: #efede8;
  --brand: #cd0200; --brand-deep: #a50000; --brand-ink: #ffffff; --brand-soft: #fbe5e4; --red: #ec1c24;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --seq1: #cde2fb; --seq2: #9ec5f4; --seq3: #6da7ec; --seq4: #3987e5; --seq5: #256abf; --seq6: #184f95; --seq7: #0d366b;
  --deemph: #c3c2b7; --good: #0ca30c; --good-text: #006300; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px -12px rgba(20,20,20,.12);
  --r: 12px; --r-s: 6px; --ease: cubic-bezier(.2,.7,.2,1); --t: 180ms;
  --fig: 'Roboto', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #161616; --surface: #222222; --surface-2: #292929; --ink: #f1efe9; --ink-2: #c4c2b8; --muted: #8f8d86; --hair: #2c2c29; --hair-2: #262624;
  --brand: #cd0200; --brand-deep: #ff3b3b; --brand-ink: #ffffff; --brand-soft: #3a1414; --red: #ec1c24;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --seq1: #0d366b; --seq2: #184f95; --seq3: #256abf; --seq4: #3987e5; --seq5: #6da7ec; --seq6: #9ec5f4; --seq7: #cde2fb;
  --deemph: #4a4945; --good: #0ca30c; --good-text: #3fcf3f; --warning: #fab219; --serious: #ec835a; --critical: #e05252;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: .9333rem; line-height: 1.45; font-feature-settings: 'ss01'; }
body::selection, ::selection { background: var(--brand); color: #fff; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--deemph); border-radius: 8px; border: 2px solid var(--plane); } ::-webkit-scrollbar-track { background: transparent; }
.tnum { font-variant-numeric: tabular-nums; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--xs { width: 12px; height: 12px; }
.ico--lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- band (kit chest panel) */
.band { background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.band__inner { max-width: 1480px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; padding: 10px 0; }
.brand__mark { width: 26px; height: 26px; align-self: center; display: grid; place-items: center; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__logo { height: 24px; width: auto; display: block; align-self: center; }
.brand__sub { font-size: .8rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; opacity: .95; align-self: center; border-left: 1px solid rgba(255,255,255,.4); padding-left: 10px; }
.nav { display: flex; gap: 0; align-self: stretch; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav__tab { display: flex; align-items: center; padding: 0 8px; min-height: 60px; text-decoration: none; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; opacity: .94; border-bottom: 3px solid transparent; white-space: nowrap; transition: opacity var(--t) var(--ease), background var(--t) var(--ease); }
.nav__tab:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav__tab.is-on { opacity: 1; border-bottom-color: #fff; background: rgba(0,0,0,.12); }
.band__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.band__stamp { display: none; }
.foot__stamp { color: var(--ink-2); }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background var(--t) var(--ease); }
.iconbtn:hover { background: rgba(255,255,255,.14); }
.iconbtn .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- layout */
.main { max-width: 1480px; margin: 0 auto; padding: 20px 24px 48px; min-height: 70vh; transition: opacity 160ms var(--ease); }
.main.is-switching { opacity: .4; }
.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page__title { display: inline-block; font-size: 1.35rem; font-weight: 700; font-style: italic; font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; line-height: 1; padding: 9px 26px 9px 16px; background: var(--ink); color: var(--surface); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
:root[data-theme="dark"] .page__title { background: #ffffff; color: #292929; }
.page__lead { color: var(--ink-2); max-width: 70ch; margin-top: 4px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-9 { grid-column: span 9; } .col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; }
@media (max-width: 1100px) { .col-8, .col-6, .col-4, .col-3, .col-9, .col-5, .col-7 { grid-column: span 12; } .col-6.keep, .col-3.keep { grid-column: span 6; } }
@media (max-width: 640px) { .col-6.keep, .col-3.keep { grid-column: span 12; } }
.section { margin-top: 24px; }
.section__title { font-size: 1.05rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
.section__title small { font-weight: 500; color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.card__title { font-size: 1rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; }
.card__sub { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.card__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card__body { padding: 12px 18px 16px; flex: 1; min-width: 0; }
.card--flush .card__body { padding: 0; }
.chart { width: 100%; height: 260px; }
.chart--tall { height: 340px; }
.chart--short { height: 180px; }

/* ---------------------------------------------------------------- tiles & figures (kit numerals) */
.figure { font-family: var(--fig); font-stretch: 75%; font-weight: 700; letter-spacing: 0; line-height: 1; font-variant-numeric: proportional-nums; }
.cond { font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.tile__label { font-size: .76rem; color: var(--ink-2); font-weight: 600; letter-spacing: .01em; }
.tile__value { font-size: 1.75rem; }
.tile--hero { grid-column: span 2; background: var(--ink); color: #fff; }
:root[data-theme="dark"] .tile--hero { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.tile--hero .tile__label { color: rgba(255,255,255,.86); }
:root[data-theme="dark"] .tile--hero .tile__label { color: var(--ink-2); }
.tile--hero .tile__value { font-size: 3.4rem; }
.tile--hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--brand); opacity: .9; box-shadow: inset 0 0 0 14px rgba(255,255,255,.08); }
.tile--hero > * { position: relative; z-index: 1; }
.tile__note { font-size: .76rem; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; }
.delta .ico { width: 13px; height: 13px; }
.delta--good { color: var(--good-text); } .delta--bad { color: var(--critical); } .delta--flat { color: var(--muted); }
.tile--hero .delta--good { color: #6ee36e; } .tile--hero .delta--bad { color: #ff8a8a; }
.delta__vs { color: var(--muted); font-weight: 500; }
.tile--hero .delta__vs { color: rgba(255,255,255,.7); }
.spark { width: 96px; height: 28px; color: var(--deemph); position: absolute; right: 14px; bottom: 12px; }
.spark circle { fill: var(--s1); } .spark polyline { stroke: var(--s1); }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; padding: 10px 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); position: sticky; top: 60px; z-index: 30; }
.filters__sep { width: 1px; height: 24px; background: var(--hair); margin: 0 2px; }
.filters__readout { margin-left: auto; font-size: .78rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.filters__readout b { color: var(--ink); }
.select, .msel__btn, .input { height: 34px; border: 1px solid var(--hair); background: var(--surface-2); border-radius: var(--r-s); padding: 0 10px; font-size: .85rem; color: var(--ink); transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.select:hover, .msel__btn:hover, .input:hover { border-color: var(--muted); }
.select:disabled { opacity: .5; }
.select--wide { max-width: 300px; }
.field { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-2); }
.field__lbl { font-weight: 600; }
.msel { position: relative; }
.msel__btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; max-width: 260px; }
.msel__lbl { font-weight: 600; color: var(--ink-2); }
.msel__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 300px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 12px 32px -8px rgba(0,0,0,.25); padding: 8px; }
.msel__search { width: 100%; height: 32px; border: 1px solid var(--hair); border-radius: var(--r-s); padding: 0 8px; background: var(--surface-2); margin-bottom: 6px; }
.msel__list { max-height: 280px; overflow: auto; display: flex; flex-direction: column; }
.msel__opt { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.msel__opt:hover { background: var(--surface-2); }
.msel__opt input { accent-color: var(--brand); }
.msel__hint { margin-left: auto; color: var(--muted); font-size: .75rem; }
.msel__foot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--hair); margin-top: 6px; }
.segctl { display: inline-flex; background: var(--surface-2); border: 1px solid var(--hair); border-radius: var(--r-s); padding: 2px; }
.segctl__btn { border: 0; background: transparent; padding: 5px 10px; border-radius: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.segctl__btn:hover { color: var(--ink); }
.segctl__btn.is-on { background: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .segctl__btn.is-on { background: var(--ink); color: var(--plane); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .8rem; color: var(--ink-2); user-select: none; }
.switch__input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 34px; height: 20px; border-radius: 10px; background: var(--deemph); position: relative; transition: background var(--t) var(--ease); }
.switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t) var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch__input:checked + .switch__track { background: var(--s1); }
.switch__input:checked + .switch__track::after { transform: translateX(14px); }
.switch__input:focus-visible + .switch__track { outline: 2px solid var(--s1); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font-weight: 600; font-size: .85rem; cursor: pointer; transition: transform var(--t) var(--ease), background var(--t) var(--ease), opacity var(--t); }
:root[data-theme="dark"] .btn { color: var(--plane); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { background: var(--surface-2); }
:root[data-theme="dark"] .btn--ghost { color: var(--ink); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--sm { height: 28px; padding: 0 10px; font-size: .78rem; }
.btn--danger { background: transparent; border-color: var(--hair); color: var(--critical); }
.input { padding: 0 8px; }
.input--sm { height: 28px; font-size: .8rem; }
.input--num { text-align: right; font-variant-numeric: tabular-nums; width: 96px; }

/* ---------------------------------------------------------------- insights */
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insight { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; line-height: 1.4; }
.insight__ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--hair); color: var(--ink-2); }
.insight__ico .ico { width: 13px; height: 13px; }
.insight--good .insight__ico { background: #e3f5e3; color: var(--good-text); }
.insight--bad .insight__ico { background: #fde4e4; color: var(--critical); }
.insight--warn .insight__ico { background: #fff2d6; color: #8a5a00; }
:root[data-theme="dark"] .insight--good .insight__ico { background: #163a16; } :root[data-theme="dark"] .insight--bad .insight__ico { background: #3f1c1c; } :root[data-theme="dark"] .insight--warn .insight__ico { background: #3f3014; color: #ffd27a; }
.insight__where { color: var(--muted); }

/* ---------------------------------------------------------------- segmented bars, legends, rank bars */
.seg__bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; overflow: hidden; }
.seg--tall .seg__bar { height: 28px; border-radius: 0; overflow: visible; }
.seg__part { flex: 0 0 auto; min-width: 2px; transition: flex-basis 400ms var(--ease); display: flex; align-items: center; padding-left: 6px; font-size: .74rem; font-weight: 600; overflow: hidden; }
.seg--tall .seg__part { border-radius: 4px; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend__name { color: var(--ink-2); } .legend__val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.swatch--line { height: 3px; width: 14px; border-radius: 2px; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank__row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto auto; align-items: center; gap: 10px; font-size: .84rem; padding: 2px 4px; border-radius: 6px; }
.rank--click .rank__row { cursor: pointer; }
.rank--click .rank__row:hover { background: var(--surface-2); }
.rank__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rank__track { height: 12px; background: var(--hair-2); border-radius: 0 4px 4px 0; position: relative; }
.rank__bar { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; transition: width 500ms var(--ease); }
.rank__bar--neg { background: var(--critical); }
.rank__val { font-weight: 600; white-space: nowrap; }
.rank__extra { color: var(--muted); font-size: .78rem; white-space: nowrap; min-width: 52px; text-align: right; }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: middle; white-space: nowrap; }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: .76rem; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl th.sorted { color: var(--ink); }
.th-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.th-btn:hover { color: var(--ink); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .row--click { cursor: pointer; }
.tbl .empty { text-align: center; color: var(--muted); padding: 24px; white-space: normal; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.tbl .cell-bar { display: inline-block; height: 8px; border-radius: 0 3px 3px 0; background: var(--s1); vertical-align: middle; margin-right: 6px; }
.tbl .pos { color: var(--good-text); } .tbl .neg { color: var(--critical); }
.tbl .sub { color: var(--muted); font-size: .76rem; }
.tbl .name { white-space: normal; min-width: 160px; }
.tbl .is-total td { font-weight: 700; background: var(--surface-2); }
.tbl .is-section td { font-weight: 700; color: var(--ink); padding-top: 12px; }
.tbl .is-child td:first-child { padding-left: 28px; color: var(--ink-2); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 8px 0 0; font-size: .78rem; color: var(--muted); }
.row-toggle { background: none; border: 0; padding: 0 4px 0 0; cursor: pointer; color: var(--muted); display: inline-flex; vertical-align: middle; }
.row-toggle .ico { transition: transform var(--t) var(--ease); }
.row-toggle.is-open .ico { transform: rotate(90deg); }

/* ---------------------------------------------------------------- misc components */
.meter { height: 8px; border-radius: 4px; background: var(--seq1); overflow: hidden; min-width: 80px; }
.meter__fill { height: 100%; background: var(--s1); border-radius: 4px; transition: width 400ms var(--ease); }
.meter--warning { background: #ffefc9; } .meter--warning .meter__fill { background: var(--warning); }
.meter--critical { background: #ffd9d9; } .meter--critical .meter__fill { background: var(--critical); }
.meter--good { background: var(--seq1); } .meter--good .meter__fill { background: var(--s1); }
:root[data-theme="dark"] .meter--warning { background: #3a2d10; } :root[data-theme="dark"] .meter--critical { background: #3f1c1c; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--hair-2); color: var(--ink-2); white-space: nowrap; }
.badge--good { background: #e3f5e3; color: var(--good-text); } .badge--warning { background: #fff2d6; color: #8a5a00; } .badge--critical { background: #fde4e4; color: var(--critical); } .badge--info { background: #e6f0fb; color: #1c5cab; } .badge--brand { background: var(--brand-soft); color: var(--brand-deep); }
:root[data-theme="dark"] .badge--good { background: #163a16; color: #6ee36e; } :root[data-theme="dark"] .badge--warning { background: #3f3014; color: #ffd27a; } :root[data-theme="dark"] .badge--critical { background: #3f1c1c; color: #ff8a8a; } :root[data-theme="dark"] .badge--info { background: #15325a; color: #9ec5f4; }
.badge .ico { width: 11px; height: 11px; }
.note { font-size: .78rem; color: var(--ink-2); display: flex; gap: 4px; align-items: flex-start; line-height: 1.4; margin-top: 8px; }
.note--warn { color: #8a5a00; } :root[data-theme="dark"] .note--warn { color: #ffd27a; }
.note .ico { margin-top: 3px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); padding: 32px; text-align: center; }
.empty-state .ico { width: 28px; height: 28px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .84rem; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hair); margin-bottom: 16px; overflow-x: auto; }
.tabs__btn { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; margin-bottom: -1px; white-space: nowrap; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-on { color: var(--ink); border-bottom-color: var(--brand); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border: 1px solid var(--hair); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: .78rem; cursor: pointer; color: var(--ink-2); transition: all var(--t) var(--ease); }
.pill:hover { border-color: var(--muted); color: var(--ink); }
.pill.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
:root[data-theme="dark"] .pill.is-on { color: var(--plane); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: .78rem; font-weight: 600; }
.chip button { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; }
.chip .ico { width: 12px; height: 12px; }
.tt { min-width: 160px; } .tt__head { font-weight: 600; margin-bottom: 4px; color: var(--ink-2); font-size: .78rem; }
.tt__row { display: flex; align-items: center; gap: 8px; padding: 1px 0; } .tt__row i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; } .tt__row b { font-variant-numeric: tabular-nums; } .tt__row span { color: var(--ink-2); }
.heat { display: grid; gap: 2px; font-size: .72rem; }
.heat__cell { height: 30px; border-radius: 3px; display: grid; place-items: center; min-width: 0; color: #fff; font-weight: 600; cursor: default; }
.heat__lbl { color: var(--muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; height: 30px; }
.heat__top { color: var(--muted); text-align: center; }
.calendar { display: grid; grid-template-columns: 180px repeat(12, 1fr); gap: 2px; font-size: .74rem; align-items: center; }
.calendar__head { color: var(--muted); text-align: center; padding: 4px 0; }
.calendar__name { padding: 6px 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar__cell { height: 26px; border-radius: 4px; background: var(--hair-2); display: flex; gap: 2px; padding: 3px; }
.calendar__dot { flex: 1; border-radius: 3px; }
.alerts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .84rem; }
.alert .badge { flex: none; }
.editable { border: 1px dashed transparent; border-radius: 4px; padding: 2px 4px; }
.editable:hover { border-color: var(--muted); background: var(--surface-2); cursor: text; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.illustrative { border: 1px solid var(--warning); background: #fff8e6; color: #6f4a00; padding: 8px 12px; border-radius: 10px; font-size: .82rem; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
:root[data-theme="dark"] .illustrative { background: #3f3014; color: #ffd27a; }
.progress-list { display: flex; flex-direction: column; gap: 10px; }
.progress-list__row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto; gap: 12px; align-items: center; font-size: .84rem; }
.hero-row { display: grid; grid-template-columns: minmax(280px, 1.1fr) 2fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .hero-row { grid-template-columns: 1fr; } }
.hero { background: var(--ink); color: #fff; border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; min-height: 160px; box-shadow: var(--shadow); }
:root[data-theme="dark"] .hero { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.hero::before { content: ''; position: absolute; right: -70px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--brand); }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 14px, rgba(255,255,255,.22) 14px 15px); opacity: .9; }
.hero > * { position: relative; z-index: 1; }
.hero__label { font-size: .8rem; font-weight: 600; opacity: .92; }
.hero__value { font-size: 4rem; }
@media (max-width: 640px) { .hero__value { font-size: 3rem; } }
.hero__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; opacity: .9; }
.hero .delta--good { color: #6ee36e; } .hero .delta--bad { color: #ff9a9a; } .hero .delta__vs { color: rgba(255,255,255,.7); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.mt { margin-top: 12px; }
.num-good { color: var(--good-text); } .num-bad { color: var(--critical); }
.foot { border-top: 1px solid var(--hair); margin-top: 24px; }
.foot__inner { max-width: 1480px; margin: 0 auto; padding: 14px 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.foot__logo { height: 16px; width: auto; margin-right: 10px; vertical-align: middle; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .band, .filters, .foot, .btn, .iconbtn { display: none !important; } .main { padding: 0; } .card, .tile { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; } }
@media (max-width: 760px) { .band__inner { padding: 0 12px; gap: 10px; } .brand__sub, .band__stamp { display: none; } .main { padding: 12px 12px 32px; } .tiles { grid-template-columns: repeat(2, 1fr); } .tile--hero { grid-column: span 2; } .filters { position: static; } .rank__row { grid-template-columns: minmax(80px, 40%) 1fr auto; } .rank__extra { display: none; } }

/* ---------------------------------------------------------------- Barteri module */
.kv--inline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.kv--inline dt { display: inline; } .kv--inline dd { display: inline; text-align: left; margin-right: 4px; }
.h4 { font-size: .8rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-top: 6px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bcard, .bpane { --cbg: var(--surface); --fg: var(--ink); --sub: var(--ink-2); --cell: var(--hair); --on: var(--ink); background: var(--cbg); color: var(--fg); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 14px; position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcard { cursor: pointer; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); animation: bcard-in 420ms var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
@keyframes bcard-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,20,20,.06), 0 14px 32px -12px rgba(20,20,20,.22); }
.bcard--over { --cbg: var(--brand); --fg: #fff; --sub: #ffd9d7; --cell: rgba(255,255,255,.28); --on: #fff; }
.bcard--attn { --cbg: #fbe5e4; --fg: #292929; --sub: #6b3a37; --cell: rgba(41,41,41,.14); --on: var(--brand); }
.bcard--ok { --cbg: var(--surface); --fg: var(--ink); --sub: var(--ink-2); --cell: var(--hair-2); --on: var(--ink); }
.bcard--done { --cbg: var(--surface-2); --fg: var(--muted); --sub: var(--muted); --cell: var(--hair); --on: var(--deemph); box-shadow: none; border: 1px solid var(--hair); }
:root[data-theme="dark"] .bcard--attn { --cbg: #3a1414; --fg: #f1efe9; --sub: #ffb3ae; --cell: rgba(255,255,255,.14); --on: #ff6b6b; }
:root[data-theme="dark"] .bcard--ok { --cell: var(--hair); --on: #f1efe9; }
.bcard--over .badge { background: #fff; color: var(--brand); } .bcard--over .badge .ico { color: var(--brand); }
.bcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcard__add { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; opacity: .75; transition: opacity var(--t); }
.bcard__add:hover { opacity: 1; } .bcard__add .ico { width: 14px; height: 14px; }
.bcard__name { font-size: 1.15rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-top: 4px; }
.bcard__sub { color: var(--sub); font-size: .78rem; }
.bcard__num { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.bcard__num small { font-size: .74rem; color: var(--sub); } .bcard__num b { font-size: 2.1rem; }
.bcard__foot { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.bpane { padding: 22px 24px 18px; }
.bpane__say { font-size: 1.4rem; line-height: 1.2; margin-top: 6px; } .bpane__say strong { font-weight: 700; font-stretch: 75%; text-transform: uppercase; font-size: 1.7rem; }
.bpane__why { color: var(--sub); font-size: .9rem; }
.cm { position: relative; --h: 10px; }
.cm__cells { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: var(--h); }
.cm__cells i { display: block; background: var(--cell); border-radius: 2px; transition: background var(--t); animation: cell-in 360ms var(--ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
@keyframes cell-in { from { opacity: .15; transform: scale(.5); } to { opacity: 1; transform: none; } }
.cm__cells i.on { background: var(--on); } .cm--over .cm__cells i.on { background: var(--brand); } .bcard--over .cm__cells i.on { background: #fff; }
.cm__now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--brand); } .bcard--over .cm__now, .cm--over .cm__now { background: var(--ink); } .bcard--over .cm__now { background: #292929; }
.cm--big { --h: 30px; margin-top: 14px; } .cm--big .cm__cells { gap: 3px; } .cm--big .cm__now { top: -9px; bottom: -9px; }
.cm--big .cm__now::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: inherit; }
.cm--big .cm__now span { position: absolute; bottom: 100%; left: 50%; translate: -50% -4px; font: 700 10px/1 var(--fig); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.bcard--over .cm--big .cm__now span { background: #292929; }
.cm--big .cm__now.edge-r span { left: auto; right: -1px; translate: 0 -4px; } .cm--big .cm__now.edge-l span { left: -1px; translate: 0 -4px; }
.cm__pct { display: flex; justify-content: space-between; font-size: .74rem; color: var(--sub); }
.cm__tags { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--sub); margin-top: 6px; } .cm__tags b { color: var(--fg); }
.gives { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gives label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: .9rem; } .gives input { accent-color: var(--brand); width: 16px; height: 16px; }
.span__bar { height: 8px; border-radius: 4px; background: var(--hair-2); overflow: hidden; } .span__bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.span__l { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); }
.feed { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed__av { width: 28px; height: 28px; border-radius: 50%; background: var(--hair-2); color: var(--ink-2); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; } .feed__av.me { background: var(--ink); color: var(--surface); } .feed__av .ico { width: 14px; height: 14px; }
.feed__bub { background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: .88rem; }
.addform .toolbar { align-items: flex-end; }
.dead { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dead li a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 12px; padding: 10px 4px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.dead li a:hover { background: var(--surface-2); } .dead li a > b { grid-column: 1; } .dead li a > .small { grid-column: 1; }
.dead__left { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; } .dead__left small { font-weight: 400; color: var(--muted); }
.page--barters { padding-bottom: 90px; }
.ai { position: fixed; z-index: 45; bottom: 18px; left: 50%; translate: -50% 0; width: min(440px, calc(100vw - 32px)); transition: width 300ms var(--ease); }
.ai.is-open { width: min(640px, calc(100vw - 32px)); }
.ai__bar { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 8px 0 10px; background: #1f1f1f; color: #fff; border: 1px solid #454545; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.ai__bar:focus-within { border-color: #fff; }
.ai__mark { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex: none; color: #fff; } .ai__mark .ico { width: 15px; height: 15px; }
.ai__in { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font-size: .9rem; } .ai__in::placeholder { color: #9a9a95; }
.ai kbd { font: 500 11px/1 ui-monospace, monospace; color: #9a9a95; border: 1px solid #454545; border-radius: 6px; padding: 4px 6px; white-space: nowrap; } .ai.is-open kbd { display: none; }
.iconbtn--dark { border-color: #454545; color: #fff; width: 32px; height: 32px; } .iconbtn--dark:hover { background: #333; }
.ai__panel { background: #1f1f1f; color: #fff; border: 1px solid #454545; border-radius: 18px; margin-bottom: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; animation: aiup 240ms var(--ease); }
@keyframes aiup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai__head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid #333; } .ai__head b { font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; } .ai__head span { margin-right: auto; color: #9a9a95; }
.ai__log { max-height: min(50vh, 440px); overflow-y: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.ai__msg { max-width: 92%; line-height: 1.45; } .ai__msg--me { align-self: flex-end; background: #2f2f2f; border-radius: 14px 14px 4px 14px; padding: 8px 12px; } .ai__msg--bot { align-self: flex-start; } .ai__msg a { color: #fff; }
.ai__log .pill { color: #fff; border-color: #555; background: transparent; } .ai__log .pill:hover { border-color: #fff; }
.ai__draft { display: grid; gap: 3px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px 14px; min-width: 260px; } .ai__draft a { color: var(--ink); } .ai__draft b { font-size: 1.15rem; font-stretch: 75%; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 84px; translate: -50% 10px; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: .88rem; box-shadow: var(--shadow); opacity: 0; transition: opacity 240ms var(--ease), translate 240ms var(--ease); z-index: 60; max-width: min(560px, calc(100vw - 32px)); }
.toast.is-on { opacity: 1; translate: -50% 0; }
@media (max-width: 760px) { .page__title { font-size: 1.1rem; } .bgrid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- tools, badges, print */
.tbl-tools { display: flex; justify-content: flex-end; padding: 6px 10px 0; }
.nav__badge { margin-left: 6px; background: #fff; color: var(--brand); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; font-stretch: 100%; }
.nav__tab.is-on .nav__badge { background: #fff; }
@media (max-width: 1500px) { .brand__sub { display: none; } }
@media (max-width: 1180px) { .nav__tab { min-height: 44px; } }
.alert-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.alert-item.is-ack { opacity: .55; }
.alert-item__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert-item__ico .ico { width: 18px; height: 18px; color: #fff; }
.alert-item--critical .alert-item__ico { background: var(--critical); } .alert-item--warning .alert-item__ico { background: var(--warning); } .alert-item--warning .alert-item__ico .ico { color: #292929; } .alert-item--info .alert-item__ico { background: var(--s1); } .alert-item--good .alert-item__ico { background: var(--good); }
.alert-item__title { font-weight: 700; } .alert-item__text { font-size: .86rem; color: var(--ink-2); margin-top: 2px; } .alert-item__meta { font-size: .74rem; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.alert-item__acts { display: flex; gap: 6px; flex-direction: column; align-items: flex-end; }
.report { max-width: 1100px; }
.report__h { font-size: 1.1rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.report p { max-width: 80ch; line-height: 1.55; margin-bottom: 8px; }
.report ul { margin: 0 0 8px 18px; padding: 0; } .report li { margin-bottom: 4px; max-width: 80ch; }
.report__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.print-only { display: none; }
@media print { .band, .filters, .foot, .btn, .iconbtn, .ai, .toolbar, .tabs, .no-print { display: none !important; } .print-only { display: block; } .main { padding: 0; max-width: none; } .card, .tile { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; } .page__title { -webkit-print-color-adjust: exact; print-color-adjust: exact; } body { background: #fff; } .chart { break-inside: avoid; } }
.sample-badge { display: inline-flex; align-items: center; gap: 6px; }
.idea { display: grid; grid-template-columns: 1fr; gap: 10px; }
.idea__status { display: flex; gap: 6px; flex-wrap: wrap; }
.qa { display: flex; gap: 8px; align-items: center; }
.qa__in { flex: 1; min-width: 200px; }
.qa__ans { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 8px; }
.rfm { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rfm__seg { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rfm__seg b { display: block; font-size: 1.4rem; font-stretch: 75%; }

/* ---------------------------------------------------------------- Nedēļas pārskats (weekly business review) */
.report { max-width: none; }
.wk-nav { display: inline-flex; gap: 4px; align-items: center; }
.verdict { background: var(--ink); color: #fff; border-radius: var(--r); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
:root[data-theme="dark"] .verdict { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.verdict::before { content: ''; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: var(--brand); }
.verdict::after { content: ''; position: absolute; right: -60px; bottom: -170px; width: 340px; height: 340px; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 14px, rgba(255,255,255,.2) 14px 15px); }
.verdict > * { position: relative; z-index: 1; }
.verdict__h { font-size: 2rem; font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; text-wrap: balance; max-width: 24ch; }
.verdict__sub { margin-top: 8px; font-size: .86rem; opacity: .85; }
.verdict__why { margin-top: 14px; max-width: 64ch; line-height: 1.5; font-size: .95rem; }
.verdict__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.verdict .badge { background: rgba(255,255,255,.14); color: #fff; }
:root[data-theme="dark"] .verdict .badge { background: var(--hair-2); color: var(--ink); }
.verdict__fig { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; gap: 4px; }
.verdict__lbl { font-size: .8rem; opacity: .9; font-weight: 600; }
.verdict__val { font-size: 3.8rem; }
.verdict__deltas { display: flex; gap: 20px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }
.verdict__d { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .74rem; opacity: .95; }
.verdict__d b { font-size: 1.15rem; font-stretch: 75%; font-weight: 700; }
.verdict .num-good { color: #6ee36e; } .verdict .num-bad { color: #ff9a9a; }
:root[data-theme="dark"] .verdict .num-good { color: var(--good-text); } :root[data-theme="dark"] .verdict .num-bad { color: var(--critical); }
.wk-score { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.wk-score .spark { position: static; width: 100%; height: 34px; margin-top: 4px; }
.dv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dv__row { display: grid; grid-template-columns: minmax(90px, 36%) 1fr auto auto; gap: 10px; align-items: center; font-size: .84rem; }
.dv__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.dv__track { position: relative; height: 12px; background: var(--hair-2); border-radius: 4px; }
.dv__track::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.dv__bar { position: absolute; top: 0; height: 100%; min-width: 2px; transition: width 500ms var(--ease); }
.dv__bar--pos { left: 50%; background: var(--good); border-radius: 0 4px 4px 0; }
.dv__bar--neg { right: 50%; background: var(--critical); border-radius: 4px 0 0 4px; }
.dv__val { font-weight: 600; white-space: nowrap; min-width: 72px; text-align: right; }
.dv__pct { color: var(--muted); font-size: .78rem; min-width: 52px; text-align: right; }
.dvc { display: inline-block; width: 72px; height: 8px; position: relative; vertical-align: middle; margin-right: 8px; background: var(--hair-2); border-radius: 3px; }
.dvc::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.dvc i { position: absolute; top: 0; height: 100%; min-width: 2px; }
.dvc i.pos { left: 50%; background: var(--good); border-radius: 0 3px 3px 0; } .dvc i.neg { right: 50%; background: var(--critical); border-radius: 3px 0 0 3px; }
.hm { display: grid; gap: 2px; font-size: .74rem; align-items: center; }
.hm__top { color: var(--muted); text-align: center; line-height: 1.1; padding-bottom: 4px; font-weight: 600; } .hm__top small { display: block; font-size: .66rem; font-weight: 400; }
.hm__name { padding-right: 8px; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .hm__name a { text-decoration: none; color: var(--ink-2); } .hm__name a:hover { color: var(--ink); text-decoration: underline; }
.hm__cell { height: 30px; border-radius: 3px; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm__cell--sum { font-weight: 700; margin-left: 4px; }
.hm__legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; } .hm__legend i { width: 48px; height: 8px; border-radius: 3px; display: inline-block; }
.wx { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.wx__d { background: var(--surface-2); border-radius: 8px; padding: 6px 4px; text-align: center; font-size: .72rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; align-items: center; }
.wx__d b { font-size: .95rem; font-stretch: 75%; color: var(--ink); font-variant-numeric: tabular-nums; }
.wx__d .ico { width: 11px; height: 11px; }
.wx__rain { color: #1c5cab; display: inline-flex; align-items: center; gap: 3px; } :root[data-theme="dark"] .wx__rain { color: #9ec5f4; }
.wx__d--hol { box-shadow: inset 0 0 0 1px var(--brand); }
.acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.act { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.act__n { font-size: 1.7rem; line-height: 1; color: var(--brand); padding-top: 2px; }
:root[data-theme="dark"] .act__n { color: var(--brand-deep); }
.act__t { font-weight: 700; } .act__why { font-size: .84rem; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.act__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini { display: flex; flex-direction: column; gap: 6px; } .mini__fig { font-size: 1.7rem; } .mini__sub { font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.mini .more { font-size: .8rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.wk .alert { align-items: flex-start; } .wk .alert__t { font-weight: 700; } .wk .alert__x { font-size: .8rem; color: var(--ink-2); margin-top: 1px; line-height: 1.4; } .wk .alert > a { margin-left: auto; white-space: nowrap; font-size: .78rem; font-weight: 600; align-self: center; color: var(--ink); }
.wk .tbl .name a { color: var(--ink); text-decoration: none; font-weight: 600; } .wk .tbl .name a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .wk-score { grid-template-columns: repeat(3, minmax(0, 1fr)); } .verdict { grid-template-columns: 1fr; } .verdict__fig { align-items: flex-start; text-align: left; } .verdict__deltas { justify-content: flex-start; } .verdict__d { align-items: flex-start; } }
@media (max-width: 640px) { .wk-score { grid-template-columns: repeat(2, minmax(0, 1fr)); } .verdict__val { font-size: 2.8rem; } .verdict__h { font-size: 1.5rem; } .wx { grid-template-columns: repeat(4, 1fr); } }
@media print { .verdict { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .wk .grid > *, .wk .card { break-inside: avoid; } .wk .verdict { box-shadow: none; } }

/* ---------- demo build ---------- */
.demo-bar { background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.3; display: flex; gap: 10px; justify-content: center; align-items: center; padding: 6px 16px; text-align: center; }
.demo-bar b { background: var(--brand); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; flex: none; }
:root[data-theme="dark"] .demo-bar { background: #000; color: var(--ink); }
@media print { .demo-bar { color: #000; background: none; border-bottom: 1px solid #000; } }
