/* SolidPro brand: blue #16469D / #1B5AC4, red accent #E01A22, deep navy #0C2340 */
:root {
  --bg: #f3f6fc; --card: #fff; --sunk: #eef3fb; --ink: #0c2340; --body: #4a5970; --muted: #7a889e; --line: #dee6f2;
  --brand: #1b5ac4; --brand-d: #13419a; --brand-w: #e8f0fd; --accent: #e01a22; --danger: #ae262c; --ok: #0d7452; --warn: #a96a06;
  --nav: #0c2340; --nav-2: #13305a; --shadow: 0 1px 2px rgba(12, 35, 64, .05), 0 6px 18px rgba(12, 35, 64, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1424; --card: #121e33; --sunk: #0f192b; --ink: #e8eef9; --body: #b4c0d6; --muted: #8493ad; --line: #22324d; --brand: #5b8cf0; --brand-d: #4a79dc; --brand-w: #17294a; --accent: #ff5a60; --danger: #ff7a80; --ok: #4cd1a1; --warn: #f2bd4b; --nav: #070e1b; --nav-2: #0f1c33; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--body); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.55rem; margin: 0 0 .35rem; font-weight: 700; } h2 { font-size: 1.1rem; margin: 0 0 .75rem; font-weight: 650; } h3 { font-size: .98rem; margin: 0 0 .5rem; }
a { color: var(--brand); } .muted { color: var(--muted); } .small { font-size: .85rem; }
strong { color: var(--ink); }

/* ---------- sign-in (split screen) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 500px at 85% -10%, rgba(224, 26, 34, .35), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(91, 140, 240, .35), transparent 60%), linear-gradient(155deg, #0c2340 0%, #16469d 100%); }
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand img.logo { width: 210px; max-width: 70%; height: auto; }
.auth-brand h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.auth-brand h2 em { font-style: normal; color: #ff7c82; }
.auth-brand p { color: rgba(255,255,255,.78); max-width: 460px; margin: 0 0 22px; }
.auth-brand ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-brand li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.92); }
.auth-brand li svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.12); stroke: #fff; }
.auth-brand .foot { font-size: .8rem; color: rgba(255,255,255,.6); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.auth-card img.mobile-logo { display: none; }
.auth-card h1 { font-size: 1.45rem; } .auth-card > p { margin: 0 0 6px; }
.auth-card button.primary { width: 100%; margin-top: 20px; padding: 11px 14px; font-weight: 600; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-brand { display: none; } .auth-card img.mobile-logo { display: block; height: 38px; margin-bottom: 18px; } }

/* ---------- forms & buttons ---------- */
label { display: block; font-weight: 600; font-size: .83rem; color: var(--ink); margin: 14px 0 5px; }
input, select { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); margin-right: 6px; vertical-align: -3px; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
button:focus-visible, a:focus-visible, th:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button { font: inherit; font-weight: 550; cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 15px; transition: background .15s, border-color .15s, transform .05s; }
button:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-w); }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 2px rgba(19, 65, 154, .3); }
button.primary:hover:not(:disabled) { background: var(--brand-d); border-color: var(--brand-d); }
button.danger { color: var(--danger); } button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); }
button.small { padding: 4px 10px; font-size: .82rem; } button:disabled { opacity: .55; cursor: default; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; border: 1px solid transparent; }
.msg.error { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.msg.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.msg.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
nav { background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
nav .brand { padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
nav .brand img { width: 150px; height: auto; display: block; } nav .brand span { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: rgba(255,255,255,.78); text-decoration: none; cursor: pointer; font-size: .92rem; position: relative; transition: background .15s, color .15s; }
nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; opacity: .9; }
nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav a[aria-current=page] { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
nav a[aria-current=page]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
nav .sep { margin: 16px 11px 5px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); }
nav .grow { flex: 1; min-height: 12px; }
nav .me { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; color: #fff; font-size: .85rem; }
nav .me .meta { min-width: 0; } nav .me .meta div:last-child { color: rgba(255,255,255,.55); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .crumb { font-size: .85rem; color: var(--muted); } .topbar .crumb strong { color: var(--ink); }
.topbar .spacer { flex: 1; } .topbar .who { font-size: .85rem; display: flex; gap: 8px; align-items: center; }
main { padding: 26px 28px 48px; max-width: 1240px; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; } .toolbar .spacer { flex: 1; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- tables, badges, dialogs ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: var(--sunk); }
th { background: var(--sunk); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--sunk); color: var(--body); margin: 1px 3px 1px 0; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.off { color: var(--danger); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--body); max-width: 560px; width: calc(100% - 32px); padding: 24px; box-shadow: 0 24px 60px rgba(12, 35, 64, .3); }
dialog::backdrop { background: rgba(12, 35, 64, .55); backdrop-filter: blur(2px); }
dialog.wide { max-width: 880px; max-height: 90vh; overflow: auto; }
.checks { display: grid; gap: 6px; margin-top: 4px; } .checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; color: var(--body); }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .row > * { flex: 1; } .row > button { flex: 0 0 auto; }
code { background: var(--sunk); padding: 1px 6px; border-radius: 5px; font-size: .85em; color: var(--ink); }
code.secret { display: block; padding: 12px; background: var(--sunk); border: 1px dashed var(--brand); border-radius: 8px; word-break: break-all; user-select: all; font-size: 1rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; padding: 4px; background: var(--sunk); border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; color: var(--body); }
.tabs button:hover:not(:disabled) { background: var(--card); }
.tabs button[aria-pressed=true] { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(12, 35, 64, .15); font-weight: 650; }

/* ---------- dashboard widgets ---------- */
.periodbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 10px 0 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.periodbar > div { min-width: 130px; } .periodbar label { margin: 0 0 3px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.periodbar .active-period { margin-left: auto; text-align: right; font-size: .8rem; color: var(--muted); } .periodbar .active-period strong { color: var(--brand); font-size: .92rem; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 10px 0 16px; }
.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--accent)); }
.kpi .lab { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi .val { font-size: 1.65rem; font-weight: 700; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .78rem; font-weight: 600; } .delta.up { color: var(--ok); } .delta.down { color: var(--danger); } .delta.flat, .delta.na { color: var(--muted); font-weight: 500; }
.chartbox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.chartbox svg { width: 100%; height: auto; display: block; } .legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.s0 { stroke: var(--brand); fill: none; } .s1 { stroke: var(--accent); fill: none; } .s2 { stroke: #0b8a7a; fill: none; } .s3 { stroke: #d98e04; fill: none; }
i.s0 { background: var(--brand); } i.s1 { background: var(--accent); } i.s2 { background: #0b8a7a; } i.s3 { background: #d98e04; }
svg text { fill: var(--muted); font-size: 11px; } svg .grid { stroke: var(--line); }
.bar { display: flex; align-items: center; gap: 10px; margin: 5px 0; font-size: .85rem; } .bar .nm { width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { flex: 1; background: var(--sunk); border-radius: 6px; height: 12px; } .bar .fill { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #4f86e8); }
.fresh { font-size: .8rem; color: var(--muted); margin: 5px 0; }
.notes { font-size: .8rem; color: var(--muted); margin: 10px 0; padding-left: 18px; }
.dt-tools { display: flex; gap: 8px; align-items: center; margin: 10px 0 6px; } .dt-tools input { max-width: 260px; }
th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--brand); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 8px 0 16px; font-size: .85rem; color: var(--muted); }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .filters > div { min-width: 150px; } .filters label { margin: 0 0 3px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.drop { border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-w); border-radius: 14px; padding: 20px; text-align: center; margin: 10px 0; }
h2.sub { margin-top: 22px; }
.home-hero { background: linear-gradient(120deg, #0c2340, #16469d); color: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 8px; position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 26, 34, .5), transparent 70%); }
.home-hero h1 { color: #fff; margin: 0; } .home-hero p { margin: 4px 0 0; color: rgba(255,255,255,.75); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  nav .brand { width: 100%; border: 0; padding-bottom: 6px; margin: 0; } nav .sep, nav .grow, nav .me { display: none; } nav a { padding: 7px 10px; } nav a[aria-current=page]::before { display: none; }
  main { padding: 18px 16px 40px; } .topbar { padding: 12px 16px; } .two { grid-template-columns: 1fr; }
}
@media print { nav, .topbar, .periodbar { display: none; } .shell { display: block; } }

/* ---------- inside-dashboard polish ---------- */
.t-blue { --tone: #1b5ac4; --tone-w: #e8f0fd; } .t-red { --tone: #e01a22; --tone-w: #fde9ea; } .t-teal { --tone: #0b8a7a; --tone-w: #dff3f0; } .t-violet { --tone: #7c4dcc; --tone-w: #efe9fb; } .t-amber { --tone: #d98e04; --tone-w: #fcf1d9; }
@media (prefers-color-scheme: dark) { .t-blue { --tone: #6c9bff; --tone-w: #17294a; } .t-red { --tone: #ff6b71; --tone-w: #3a1a20; } .t-teal { --tone: #3dd1bd; --tone-w: #11302d; } .t-violet { --tone: #a98af0; --tone-w: #261e42; } .t-amber { --tone: #f2bd4b; --tone-w: #3a2d10; } }
.ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--tone-w); color: var(--tone); }
.ico svg { width: 19px; height: 19px; stroke: currentColor; }
.home-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 26px 30px; background: radial-gradient(600px 240px at 90% -20%, rgba(224, 26, 34, .55), transparent 60%), linear-gradient(120deg, #0c2340 10%, #16469d 100%); box-shadow: 0 10px 30px rgba(22, 70, 157, .25); }
.home-hero h1 { font-size: 1.8rem; } .hero-date { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 99px; position: relative; z-index: 1; }
.page-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; } .page-head .ico { width: 48px; height: 48px; border-radius: 14px; } .page-head .ico svg { width: 24px; height: 24px; }
.page-head h1 { margin: 0; } .page-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 4px 0 8px; }
.tile-hero { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border-radius: 16px; border: 0; color: #fff; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; box-shadow: 0 8px 22px color-mix(in srgb, var(--tone) 35%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 82%, #000), var(--tone)); }
.tile-hero:hover:not(:disabled) { transform: translateY(-3px); border: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 82%, #000), var(--tone)); }
.tile-hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.13); }
.tile-hero .ico { background: rgba(255,255,255,.22); color: #fff; width: 32px; height: 32px; } .tile-hero .ico svg { width: 17px; height: 17px; }
.tile-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; } .tile-hero .tl { font-size: .82rem; font-weight: 600; opacity: .95; }
.tile-hero .tv { font-size: 2rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.tile-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; position: relative; z-index: 1; min-height: 34px; } .tile-hero .ts { font-size: .78rem; opacity: .9; }
.tile-hero .spark { width: 110px; height: 34px; } .tile-hero .spark-line { stroke: #fff; } .tile-hero .spark-fill { fill: #fff; opacity: .2; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 4px; } .sec-head h2 { margin: 0; font-size: 1.15rem; } .sec-head .spacer { flex: 1; }
.kpi::before { background: var(--tone, var(--brand)); } .kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .kpi .ico { width: 30px; height: 30px; border-radius: 9px; } .kpi .ico svg { width: 16px; height: 16px; }
.kpi { transition: transform .15s, box-shadow .15s; } .kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12, 35, 64, .1); }
.kpi-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; min-height: 30px; }
.spark { width: 96px; height: 30px; flex: none; } .spark-line { fill: none; stroke: var(--tone, var(--brand)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .spark-fill { fill: var(--tone, var(--brand)); opacity: .12; }
.cur-tag { display: inline-block; margin: 12px 0 0; padding: 3px 12px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--tone-w); color: var(--tone); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; } .panel-h { font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.panel .chartbox { border: 0; box-shadow: none; padding: 0; margin: 0; }
.gs0 { stop-color: #1b5ac4; } .gs1 { stop-color: #e01a22; } .gs2 { stop-color: #0b8a7a; } .gs3 { stop-color: #d98e04; }
circle.dot { fill: var(--card); stroke-width: 2; } circle.dot.s0 { stroke: var(--brand); } circle.dot.s1 { stroke: var(--accent); } circle.dot.s2 { stroke: #0b8a7a; } circle.dot.s3 { stroke: #d98e04; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .donut { width: 160px; height: 160px; flex: none; } .donut-bg { stroke: var(--sunk); }
.donut .donut-total { font-size: 18px; font-weight: 700; fill: var(--ink); } .donut .donut-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.donut-legend { flex: 1; min-width: 160px; display: grid; gap: 7px; font-size: .86rem; } .donut-legend > div { display: flex; align-items: center; gap: 8px; } .donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .donut-legend .pc { color: var(--muted); width: 36px; text-align: right; }
.fresh::before { content: "●"; color: var(--ok); margin-right: 6px; font-size: .7rem; }
@media (max-width: 760px) { .home-hero { padding: 20px; } .page-head .ico { width: 40px; height: 40px; } }

.kpis { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.kpi .delta { white-space: nowrap; }
.kpi .spark { width: 74px; }
