/* SYNARMOS Control: wygląd „Premium i WOW” zaakceptowany przez właściciela 15.11.2026 (docs/ux/control/WYGLAD-CONTROL.md),
   tokeny z docs/ux/BRIEF-DESIGNU.md. Kolor stanu zawsze ze znaczenia: czerwony awaria, pomarańczowy ostrzeżenie, zielony OK;
   indygo tylko do działań i zaznaczeń. Bez JavaScriptu; nic nie zależy od najechania myszą (aplikacja na telefonie). */

/* Inter (SIL OFL 1.1) z pakietu @fontsource-variable/inter, który ma już panel węzła; z własnego serwera, bo CSP to 'self'. */
@font-face { font-family: "Inter Control"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/static/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Control"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/static/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f5f5f8; --card: #ffffff; --soft: #f7f8fb; --soft-2: #f0f1f5; --tint: #eef1ff; --line: #eef0f4; --line-2: #d5d9e3;
  --accent: #3f5ef0; --accent-hover: #2f49d6; --accent-bg: #e6eaff; --accent-ink: #2f49d6;
  --lime: #c9f36a; --lime-ink: #3d5a00; --lime-bg: #edf8da; --live: #00cdbb; --live-bg: #e3faf7; --live-ink: #007a70;
  --crit: #e5484d; --crit-bg: #fdecec; --crit-ink: #b4232a;
  --warn: #d97706; --warn-bg: #fff1dc; --warn-ink: #8a4b00;
  --ok: #1a9a4a; --ok-bg: #e7f6ec; --ok-ink: #1a7a3c;
  --ink: #15171c; --ink-2: #474c57; --ink-3: #5c6370; --dark-3: #a9afbc;
  --r: 18px; --r-sm: 14px; --r-xs: 12px;
  --shadow: 0 1px 2px rgba(21,23,28,.04), 0 8px 24px rgba(21,23,28,.06);
  --shadow-lift: 0 2px 4px rgba(21,23,28,.05), 0 14px 32px rgba(21,23,28,.10);
  --shadow-accent: 0 6px 16px rgba(63,94,240,.35);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --rail: 72px; --tabbar: 64px;
  font-family: "Inter Control", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink); background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-size: 14px; line-height: 1.5; background: var(--bg); color: var(--ink); }
/* biały pas pod szyną także poniżej pierwszego ekranu (długie strony, zrzuty całej strony) */
body.app { background: linear-gradient(to right, #fff var(--rail), var(--bg) var(--rail)); }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid rgba(63,94,240,.45); outline-offset: 2px; border-radius: 8px; }
h1 { font-size: 30px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; line-height: 1.25; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
.sub { color: var(--ink-2); margin: 6px 0 0; font-size: 13.5px; max-width: 70ch; }
.num, .mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.eyebrow { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pre { white-space: pre-wrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }

/* ---------- szkielet: szyna, nagłówek, podstrony, dolny pasek ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: max(20px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom)); background: var(--card); box-shadow: var(--shadow); }
.rail-logo, .appbar-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.rail-logo { margin-bottom: 14px; transition: transform 200ms var(--ease); }
.rail-logo:active { transform: scale(.94); }
.rail-i { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-3);
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 160ms var(--ease); }
.rail-i:hover { background: var(--soft-2); color: var(--ink); }
.rail-i:active { transform: scale(.94); }
.rail-i.on { background: var(--accent-bg); color: var(--accent); }
.rail-i::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; transition: opacity 150ms ease, transform 150ms var(--ease); }
.rail-i:hover::after, .rail-i:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.rail-fill { flex: 1; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--crit); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 2px solid var(--card); line-height: 1; }
.badge.info { background: var(--accent); }

.shell { margin-left: var(--rail); min-height: 100vh; }
.appbar { display: flex; align-items: center; gap: 12px; max-width: 1360px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 36px 0; }
.appbar-logo { display: none; }
.appbar-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.appbar-page { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-page::before { content: "·"; margin-right: 10px; color: var(--line-2); }
.round { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--ink-2);
  display: grid; place-items: center; transition: transform 160ms var(--ease), color 160ms ease; }
.round:hover { color: var(--accent); }
.round:active { transform: scale(.94); }
.round .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--crit); border: 2px solid var(--card); }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 700; font-size: 14px; display: grid; place-items: center;
  letter-spacing: .02em; transition: transform 160ms var(--ease); }
.avatar:active { transform: scale(.94); }
.account .menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 240px; padding: 8px; border-radius: var(--r-sm); background: var(--card);
  box-shadow: var(--shadow-lift); display: grid; animation: pop 180ms var(--ease); }
.account .menu a, .menu-out { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.account .menu a:hover, .menu-out:hover { background: var(--soft-2); color: var(--ink); }
.menu-who { margin: 0 0 6px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.menu-out { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; color: var(--crit-ink); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.subnav { display: flex; gap: 4px; width: max-content; max-width: calc(100% - 72px); overflow-x: auto; scrollbar-width: none; margin: 18px 0 0 36px;
  padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
@media (min-width: 1432px) { .subnav { margin-left: calc((100% - 1360px) / 2 + 36px); } }
.subnav::-webkit-scrollbar { display: none; }
.subtab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 13px;
  white-space: nowrap; transition: background 180ms var(--ease), color 180ms ease; }
.subtab:hover { color: var(--ink); background: var(--soft-2); }
.subtab.on { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(63,94,240,.3); }

main { max-width: 1360px; margin: 0 auto; padding: 22px 36px max(44px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
main > * { margin: 0; }
.tabbar { display: none; }

/* ---------- nagłówki stron ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; margin-bottom: 8px; }
.crumbs a { font-weight: 600; }

/* ---------- karty i siatki ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card + .card { margin-top: 20px; }
.grid > .card, .cols > .card, .kpis + .card { margin-top: 0 !important; }
.card.tinted { background: var(--tint); box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head .grow { flex: 1; }
.card-head > a { font-weight: 600; }
.grid { display: grid; gap: 20px; align-items: start; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.grid > section > .card + .card, .grid > aside > .card + .card { margin-top: 20px; }
.grid > .card, .cols > .card, .kpis + .card { margin-top: 0 !important; }

/* kafle liczb (filtry list i stan) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink);
  border: 2px solid transparent; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 160ms ease; }
.kpi span { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi b { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
a.kpi:active { transform: scale(.98); }
.kpi.on { border-color: var(--accent); }
.kpi.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -2px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.kpi.hero { background: var(--ink); color: #fff; }
.kpi.hero span { color: var(--dark-3); }
.kpi.hero b { color: var(--lime); }
.kpi.hero.on { border-color: var(--lime); }
.kpi.hero.on::after { background: var(--lime); }
.kpi.s-ok b { color: var(--ok-ink); } .kpi.s-warn b { color: var(--warn-ink); } .kpi.s-crit b { color: var(--crit-ink); }
.kpi.s-ok::before, .kpi.s-warn::before, .kpi.s-crit::before { content: ""; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; }
.kpi.s-ok::before { background: var(--ok); } .kpi.s-warn::before { background: var(--warn); } .kpi.s-crit::before { background: var(--crit); }
.kpi.zero b { color: var(--ink-3); }
.kpi small { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 150ms ease; }
tbody tr:hover td { background: var(--soft); }
tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
td.r, th.r { text-align: right; }
td.r.muted, td.muted { white-space: nowrap; }
td b, td a b { font-weight: 600; }
tr:target td { background: var(--accent-bg); }
tr.unread td b { font-weight: 700; }
tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- pigułki stanu: zawsze tekst, nigdy sam kolor ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5;
  background: var(--soft-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; flex: none; }
.pill.ok, .pill.aktywny, .pill.aktywna { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn, .pill.ostrzezenie, .pill.oczekuje, .pill.zatwierdzony, .pill.przypomnienie, .pill.laska, .pill.reczna { background: var(--warn-bg); color: var(--warn-ink); }
.pill.crit, .pill.odmowa, .pill.odrzucony, .pill.zalegly, .pill.blad, .pill.ograniczony { background: var(--crit-bg); color: var(--crit-ink); }
.pill.anulowany, .pill.brak { background: var(--soft-2); color: var(--ink-3); }
.pill.info { background: var(--accent-bg); color: var(--accent-ink); }
.pill.live { background: var(--live-bg); color: var(--live-ink); }
.pill.live::before { background: var(--live); animation: live 2.4s ease-out infinite; }
.pill.lime { background: var(--lime); color: var(--lime-ink); }
.pill.plain::before { display: none; }
.pill.dark-ok { background: rgba(26,154,74,.2); color: #7be09e; }
.pill.dark-warn { background: rgba(217,119,6,.22); color: #ffc278; }
.pill.dark-crit { background: rgba(229,72,77,.22); color: #ff9a9d; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(0,205,187,.45); } 70% { box-shadow: 0 0 0 6px rgba(0,205,187,0); } 100% { box-shadow: 0 0 0 0 rgba(0,205,187,0); } }

/* ---------- komunikaty ---------- */
.flash { padding: 13px 18px; border-radius: var(--r-sm); font-weight: 500; animation: pop 220ms var(--ease); }
.flash.ok { background: var(--ok-bg); color: #145f2f; }
.flash.err { background: var(--crit-bg); color: #8f1c22; }
.notice { padding: 13px 18px; border-radius: var(--r-sm); background: var(--warn-bg); color: #6f3c00; }
.notice.info { background: var(--tint); color: #2f3a80; }
.notice a, .flash a { font-weight: 600; }
.card > .notice, .card > .flash { margin-bottom: 14px; }

/* ---------- listy z rzędami ---------- */
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alerts li:first-child { padding-top: 0; }
.alerts li:last-child { border-bottom: 0; padding-bottom: 0; }
.alerts .txt { flex: 1; min-width: 0; }
.alerts form { margin: 0; }

/* ---------- formularze ---------- */
form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
label .hint { font-weight: 400; color: var(--ink-3); }
label .pill { justify-self: start; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 15px; font-weight: 400; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-xs); background: #fff; color: var(--ink);
  min-height: 46px; width: 100%; transition: border-color 160ms ease, box-shadow 160ms ease; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9096a3; }
input:hover, select:hover, textarea:hover { border-color: #b9bfcc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(63,94,240,.16); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); font-size: 13.5px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset.bare { border: 0; padding: 0; margin: 0; }
fieldset.bare legend { font-weight: 600; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.filters label { min-width: 160px; }
.filters .btn { min-height: 46px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); white-space: nowrap;
  transition: transform 160ms var(--ease), background 160ms ease, box-shadow 200ms var(--ease); }
.btn:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 20px rgba(63,94,240,.42); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); border-color: #b9bfcc; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { background: #2a2d36; }
.btn.danger { background: var(--crit); box-shadow: 0 6px 16px rgba(229,72,77,.3); }
.btn.danger:hover { background: #c93a3f; }
.btn.lime { background: var(--lime); color: var(--ink); box-shadow: 0 6px 16px rgba(130,170,30,.28); }
.btn.lime:hover { background: #bde85a; color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.lg { min-height: 52px; font-size: 15px; font-weight: 700; padding: 0 24px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 32px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: 10px; }
summary h2.inline { display: inline; margin: 0; color: var(--ink); }
summary:has(h2) { gap: 10px; list-style: none; }
summary:has(h2)::-webkit-details-marker { display: none; }
summary:has(h2)::after { content: "Rozwiń"; margin-left: auto; font-size: 13px; color: var(--accent); }
details[open] > summary:has(h2)::after { content: "Zwiń"; }
.inst-name .muted.warn, .inst-name .muted.crit { white-space: normal; font-weight: 600; }
.inst-name .muted.warn { color: #9a5500; } .inst-name .muted.crit { color: var(--crit-ink); }

dl.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.copy { font-size: 12.5px; word-break: break-all; background: var(--soft); padding: 10px 12px; border-radius: 10px; display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border: 1px solid var(--line); margin: 6px 0; color: var(--ink); }

/* ---------- pulpit ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.hello > div { flex: 1 1 320px; }
.hello h1 { margin-top: 4px; }
.liveline { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: live 2.4s ease-out infinite; }
.livedot.warn { background: var(--warn); animation: none; box-shadow: 0 0 0 4px rgba(217,119,6,.18); }
.livedot.crit { background: var(--crit); animation: none; box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r); background: var(--tint); }
.summary.warn { background: #fff4e3; } .summary.crit { background: #fdecec; }
.summary-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.summary.warn .summary-ico { background: var(--warn); } .summary.crit .summary-ico { background: var(--crit); }
.summary p { flex: 1 1 420px; margin: 0; font-size: 14px; line-height: 1.55; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); min-width: 0; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
a.tile:active { transform: scale(.98); }
.tile .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tile .big b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .foot { color: var(--ink-3); font-size: 12px; margin-top: auto; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark .eyebrow, .tile.dark .foot { color: var(--dark-3); }
a.tile.dark:hover { color: #fff; }
.segbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--soft-2); gap: 2px; }
.segbar span { flex: 1; min-width: 6px; }
.segbar .ok { background: var(--ok); } .segbar .warn { background: var(--warn); } .segbar .crit { background: var(--crit); } .segbar .acc { background: var(--accent); } .segbar .live { background: var(--live); }
svg.stack { display: block; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; }
svg.stack .stack-bg { fill: var(--soft-2); }
.c0 { fill: var(--accent); background: var(--accent); } .c1 { fill: var(--live); background: var(--live); } .c2 { fill: #8fb83a; background: #8fb83a; } .c3 { fill: #7b8396; background: #7b8396; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }
.legend .ok { background: var(--ok); } .legend .warn { background: var(--warn); } .legend .crit { background: var(--crit); } .legend .acc { background: var(--accent); } .legend .live { background: var(--live); } .legend .grey { background: #c4c8d2; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .wide { flex: 2 1 560px; min-width: 0; }
.cols > div.wide { display: flex; flex-direction: column; gap: 20px; }
.big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cols > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > .half { flex: 1 1 420px; min-width: 0; }
.cols .card + .card { margin-top: 0; }

/* wiersz instancji */
.inst { display: grid; grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(90px, 1fr)) 128px; gap: 16px; align-items: center; padding: 14px 16px;
  border-radius: var(--r-sm); background: var(--soft); color: var(--ink); transition: background 180ms ease, transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.inst + .inst { margin-top: 10px; }
a.inst:hover { background: #fff; box-shadow: var(--shadow-lift); transform: translateY(-1px); color: var(--ink); }
a.inst:active { transform: scale(.99); }
.inst-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inst-name > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inst-name strong { font-size: 15px; white-space: nowrap; }
.inst-name .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #c4c8d2; }
.sdot.ok { background: var(--ok); } .sdot.warn { background: var(--warn); } .sdot.crit { background: var(--crit); box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.metric { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.metric .eyebrow { letter-spacing: .06em; }
.metric > span:last-child { font-size: 12px; font-variant-numeric: tabular-nums; }
.metric .warn { color: #9a5500; font-weight: 600; } .metric .crit { color: var(--crit-ink); font-weight: 600; }
.meter { display: block; width: 100%; height: 6px; border-radius: 999px; }
.meter-bg { fill: #e9ebf0; }
.meter-v { fill: var(--accent); transform-origin: left; transform-box: fill-box; animation: grow 600ms var(--ease) both; }
.meter-v.warn { fill: var(--warn); } .meter-v.crit { fill: var(--crit); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.spark { display: block; width: 100%; height: 24px; }
.spark path { fill: none; stroke: var(--live); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.inst-open { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.inst-open .go { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 12px; }
.empty { display: grid; justify-items: start; gap: 8px; padding: 18px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); color: var(--ink-2); }
.empty b { color: var(--ink); }

/* kanał zdarzeń z paskiem stanu */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed-i { display: flex; gap: 12px; color: var(--ink); }
.feed-i::before { content: ""; flex: 0 0 4px; border-radius: 4px; background: #c4c8d2; }
.feed-i.ok::before { background: var(--ok); } .feed-i.warn::before { background: var(--warn); } .feed-i.crit::before { background: var(--crit); }
.feed-i b { font-weight: 600; display: block; }
a.feed-i:hover b { color: var(--accent); }
.rows { display: flex; flex-direction: column; }
.rows > * { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); min-height: 44px; }
.rows > *:first-child { padding-top: 0; }
.rows > *:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .grow b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.rowlink:hover b { color: var(--accent); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.av.live { background: var(--live-bg); color: var(--live-ink); }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--soft-2); color: var(--ink); font-weight: 600; font-size: 12px; white-space: nowrap; }
.chip.acc { background: var(--accent); color: #fff; }

/* ---------- karta instancji ---------- */
.ihero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 24px 26px; border-radius: var(--r); background: var(--ink); color: #fff;
  position: relative; overflow: hidden; }
.ihero::after { content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63,94,240,.35), transparent 65%); }
.ihero > * { position: relative; z-index: 1; }
.ihero-badge { width: 64px; height: 64px; border-radius: 18px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px;
  flex: none; letter-spacing: -0.02em; overflow: hidden; }
.ihero-main { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ihero-main h1 { font-size: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ihero-main p { color: var(--dark-3); margin: 0; overflow-wrap: anywhere; }
.ihero-main a { color: #c9d3ff; }
.ihero .actions .btn.ghost { background: transparent; color: #fff; border-color: #3a3e4c; }
.ihero .actions .btn.ghost:hover { background: rgba(255,255,255,.06); }
.ihero-note { flex-basis: 100%; color: var(--dark-3); font-size: 12px; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.checks > div { padding: 12px 14px; border-radius: var(--r-xs); background: var(--soft); }
.checks b { display: block; margin-top: 3px; font-weight: 600; }
.checks .ok { color: var(--ok-ink); } .checks .warn { color: #9a5500; } .checks .crit { color: var(--crit-ink); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft-2); }
.seg a { padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
.seg a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21,23,28,.08); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart text { font-family: inherit; font-size: 11px; fill: var(--ink-3); }
.chart .mem { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.chart .mem-a { fill: var(--accent-bg); opacity: .7; }
.chart .disk { fill: none; stroke: #b4b9c6; stroke-width: 2; stroke-dasharray: 5 4; }
.chart .liv { fill: none; stroke: var(--live); stroke-width: 2.4; stroke-linejoin: round; }
.chart .thr-w { stroke: #f3c38a; stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .thr-c { stroke: #f2a5a7; stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 900ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline > div { display: flex; gap: 12px; }
.timeline > div::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.timeline > div.live::before { background: var(--live); } .timeline > div.ok::before { background: var(--ok); } .timeline > div.warn::before { background: var(--warn); } .timeline > div.crit::before { background: var(--crit); }
.timeline b { font-weight: 600; display: block; }

/* ---------- zgłoszenia ---------- */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.acard { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.acard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--warn); }
.acard.crit::before { background: var(--crit); }
.acard h2 { margin: 0; font-size: 19px; }
.acard > .pill { align-self: flex-start; }
.acard .meta { color: var(--ink-2); font-size: 13px; margin: 0; }
.agraph { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-sm); background: var(--soft); }
.agraph .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.agraph strong.warn { color: #9a5500; } .agraph strong.crit { color: var(--crit-ink); }
.agraph svg { width: 100%; height: 64px; display: block; }
.agraph .l-warn { fill: none; stroke: var(--warn); stroke-width: 2.4; } .agraph .a-warn { fill: var(--warn-bg); }
.agraph .l-crit { fill: none; stroke: var(--crit); stroke-width: 2.4; } .agraph .a-crit { fill: var(--crit-bg); }
.acard .do { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: auto; }
.acard .do form, .acard .do .btn { width: 100%; margin: 0; }
.acard .do .btn { width: 100%; }
.acked { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- strona „Więcej” ---------- */
.menu-list { display: flex; flex-direction: column; padding: 6px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: 15px;
  border: 0; background: none; font-family: inherit; width: 100%; cursor: pointer; text-align: left; }
.menu-list a:active, .menu-list button:active { background: var(--soft-2); }
.menu-list .ico-b { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex: none; }
.menu-list .grow { flex: 1; }
.menu-list .go { color: var(--ink-3); }
.menu-list button { color: var(--crit-ink); }
.menu-list button .ico-b { background: var(--crit-bg); color: var(--crit-ink); }

/* ---------- poczta i rozmowy ---------- */
.msg .msghead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msg.out { box-shadow: var(--shadow), inset 4px 0 0 var(--lime); }
.msg pre.body { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 12px 0 0; line-height: 1.6; }
.msg .msgmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.chat li { max-width: 78ch; padding: 12px 16px; border-radius: 16px; }
.chat .chat-user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.chat .chat-user .chat-meta { color: #d5dcff; }
.chat .chat-assistant { justify-self: start; background: var(--soft-2); border-bottom-left-radius: 6px; }
.chat-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; font-weight: 500; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- strony publiczne: logowanie i rejestracja ---------- */
.public { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.public .side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.public .side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201,243,106,.32), transparent 65%); }
.public .side h1 { font-size: 36px; color: #fff; }
.public .side p { color: #c6cad3; margin: 0; max-width: 34em; }
.public .side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.public .side li { display: flex; gap: 10px; color: #e3e6ec; }
.public .side li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--lime); }
.public .form { padding: 48px; max-width: 720px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.public .brand { color: #fff; }
.public .brand small { color: var(--dark-3); }
.brand.dark { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan { position: relative; display: block; border: 2px solid var(--line-2); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; background: #fff; font-weight: 500; transition: border-color 160ms ease, box-shadow 160ms ease; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.plan:has(input:focus-visible) { outline: 3px solid var(--accent); }
.plan b { display: block; font-size: 22px; color: var(--ink); }
.plan small { color: var(--ink-3); }
.center { max-width: 520px; margin: 10vh auto; padding: 0 16px; }

/* logowanie */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-art { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.login-art::before { content: ""; position: absolute; left: -120px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(63,94,240,.45), transparent 65%); }
.login-art::after { content: ""; position: absolute; right: -100px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,205,187,.28), transparent 65%); }
.login-art > * { position: relative; z-index: 1; }
.login-art h1 { font-size: 40px; line-height: 1.1; max-width: 12em; }
.login-art p { color: #c6cad3; max-width: 32em; margin: 14px 0 0; font-size: 15px; }
.login-art .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.login-art .pills span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e3e6ec; font-size: 13px; font-weight: 500; }
.login-art .pills span:first-child { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.login-form { display: grid; place-items: center; padding: 48px 24px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.login-form .card { width: 100%; max-width: 420px; padding: 32px; }
.login-form h2 { font-size: 24px; margin: 18px 0 4px; }

/* ---------- telefon: dolny pasek, bez szyny ---------- */
@media (max-width: 1100px) {
  .g3 { grid-template-columns: 1fr; }
  .inst { grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(80px, 1fr)) 110px; }
  .inst .metric.live { display: none; }
}
@media (max-width: 900px) {
  .g2 { grid-template-columns: 1fr; }
  .public, .login { grid-template-columns: 1fr; }
  .public .side, .public .form { padding: 24px 16px; }
  .login-art { padding: max(28px, env(safe-area-inset-top)) 20px 28px; }
  .login-art h1 { font-size: 28px; }
}
@media (max-width: 720px) {
  body.app { font-size: 14.5px; background: var(--bg); }
  .rail { display: none; }
  .shell { margin-left: 0; }
  .appbar { padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); gap: 10px; }
  .appbar-logo { display: grid; width: 38px; height: 38px; }
  .appbar-title { flex-direction: column; gap: 0; }
  .appbar-title .eyebrow { font-size: 11px; }
  .appbar-page { display: none; }
  .round, .avatar { width: 44px; height: 44px; }
  .subnav { margin: 14px 18px 0; max-width: calc(100% - 36px); }
  .subtab { min-height: 40px; }
  main { padding: 16px max(18px, env(safe-area-inset-right)) calc(var(--tabbar) + 28px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); gap: 14px; }
  h1 { font-size: 24px; }
  .head h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .card { padding: 16px; border-radius: 20px; }
  .card + .card, .grid > section > .card + .card, .grid > aside > .card + .card { margin-top: 14px; }
  .grid, .cols, .cols > .side { gap: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 24px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; border-radius: 16px; gap: 6px; }
  .tile .big b { font-size: 24px; }
  .tile .viz, .tile .foot { display: none; }
  .summary { padding: 14px 16px; gap: 12px; }
  .summary p { flex-basis: 100%; font-size: 13.5px; }
  .summary-ico { display: none; }
  .hello h1 { font-size: 24px; }
  .row { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 10px; }
  .inst { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px 14px; padding: 14px; background: var(--card); box-shadow: var(--shadow); border-radius: 16px; }
  .inst + .inst { margin-top: 10px; }
  .inst-name { grid-column: 1 / 3; grid-row: 1; }
  .inst .metric.live { display: none; }
  .inst .metric.disk { grid-row: 2; grid-column: 1; }
  .inst .metric.mem { grid-row: 2; grid-column: 2 / 4; }
  .inst-open { grid-row: 1; grid-column: 3; }
  .inst-open .go { display: none; }
  .card.instlist { background: none; box-shadow: none; padding: 0; }
  .ihero { padding: 18px; gap: 14px; border-radius: 20px; }
  .ihero-badge { width: 52px; height: 52px; font-size: 17px; border-radius: 14px; }
  .ihero-main h1 { font-size: 22px; }
  .ihero .actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .ihero .actions .btn, .ihero .actions form { width: 100%; }
  .ihero .actions .btn { min-height: 50px; }
  .acards { grid-template-columns: 1fr; gap: 14px; }
  .acard .do { grid-template-columns: 1fr 1fr; }
  .acard .do .primary { grid-column: 1 / -1; }
  .acard .do .btn { min-height: 52px; font-size: 15px; }
  .acard .do .primary .btn { font-weight: 700; }
  .head .actions { width: 100%; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  table { display: block; overflow-x: auto; }
  table.stack-sm { display: table; }
  table.stack-sm thead { display: none; }
  table.stack-sm tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack-sm td { display: block; padding: 0; border: 0; }
  table.stack-sm td:nth-child(3) { grid-column: 1 / -1; }
  table.stack-sm td.r { text-align: left; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 6px max(6px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(21,23,28,.05); }
  .tab-i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 14px;
    color: var(--ink-3); font-size: 11px; font-weight: 500; transition: color 160ms ease, transform 160ms var(--ease); }
  .tab-i:active { transform: scale(.94); }
  .tab-i.on { color: var(--accent); font-weight: 700; }
  .tab-i .ico { border-radius: 10px; padding: 3px 10px; width: 40px; height: 26px; transition: background 180ms var(--ease); }
  .tab-i.on .ico { background: var(--accent-bg); }
  .tab-i .badge { top: 0; right: calc(50% - 26px); }
  .tab-i .badge.info { background: var(--accent); }
}
@media (max-width: 340px) {
  .acard .do { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .chart .draw { stroke-dashoffset: 0; }
}
