/* Sunalytiq Portál — vizuální jazyk webu sunalytiq.com a aplikace Finance:
   Instrument Sans, bílá plocha, světle šedé panely, modré hlavní tlačítko, tenké linky, velká čísla. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/instrument-sans-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; }

:root {
  color-scheme: light;
  --bg: #fff; --bg-raised: #fff; --bg-field: #fff; --bg-disabled: #fafafa; --glass: rgba(255,255,255,.95); --seg-on: #fff;
  --ink: #171a20; --ink-2: #393c41; --muted: #5c5e62; --faint: #8e8e8e; --placeholder: #a3a5a8; --on-ink: #fff;
  --line: #eeeeee; --line-2: #d0d1d2; --soft: #f4f4f4; --soft-2: #ebebeb; --soft-hover: #e8e8e8;
  --hover: rgba(23,26,32,.025); --hover-strong: rgba(23,26,32,.06);
  --blue: #3e6ae1; --blue-hover: #3457b1; --blue-text: #3457b1; --blue-disabled: #a8bbef; --blue-tint: rgba(62,106,225,.1); --blue-area: rgba(62,106,225,.14);
  --ok: #1a7f4b; --warn: #a15c00; --bad: #b3261e; --ok-ink: #14532d; --warn-ink: #6d3f00;
  --ok-bg: #e7f3ec; --warn-bg: #fdf1df; --bad-bg: #fbe9e7;
  --chart-out: #a9acb0; --chart-load: #393c41; --chart-soc: #1a7f4b;
  --shadow: rgba(23,26,32,.1); --shadow-strong: rgba(23,26,32,.18); --backdrop: rgba(23,26,32,.36);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171a20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); --logo-filter: none;
  --radius: 4px; --radius-card: 12px; --side: 248px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Tmavý vzhled: šedé plochy místo černé. Ruční volba (data-theme) má přednost před nastavením systému. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #2b2d31; --bg-raised: #303237; --bg-field: #2b2d31; --bg-disabled: #303237; --glass: rgba(43,45,49,.94); --seg-on: #51545a;
  --ink: #ececee; --ink-2: #c9ccd1; --muted: #a0a4ab; --faint: #80848b; --placeholder: #7d8189; --on-ink: #1f2124;
  --line: #3b3e44; --line-2: #4d5158; --soft: #393c41; --soft-2: #424549; --soft-hover: #46494e;
  --hover: rgba(255,255,255,.035); --hover-strong: rgba(255,255,255,.07);
  --blue: #4a74e6; --blue-hover: #5d84ee; --blue-text: #93adf6; --blue-disabled: #3c4c78; --blue-tint: rgba(110,145,245,.16); --blue-area: rgba(110,145,245,.2);
  --ok: #6fcf97; --warn: #f0b35a; --bad: #f28b82; --ok-ink: #a7e3bf; --warn-ink: #f5cf94;
  --ok-bg: rgba(111,207,151,.13); --warn-bg: rgba(240,179,90,.13); --bad-bg: rgba(242,139,130,.13);
  --chart-out: #6b6f76; --chart-load: #c9ccd1; --chart-soc: #6fcf97;
  --shadow: rgba(0,0,0,.28); --shadow-strong: rgba(0,0,0,.42); --backdrop: rgba(12,13,15,.55);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ececee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); --logo-filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #2b2d31; --bg-raised: #303237; --bg-field: #2b2d31; --bg-disabled: #303237; --glass: rgba(43,45,49,.94); --seg-on: #51545a;
    --ink: #ececee; --ink-2: #c9ccd1; --muted: #a0a4ab; --faint: #80848b; --placeholder: #7d8189; --on-ink: #1f2124;
    --line: #3b3e44; --line-2: #4d5158; --soft: #393c41; --soft-2: #424549; --soft-hover: #46494e;
    --hover: rgba(255,255,255,.035); --hover-strong: rgba(255,255,255,.07);
    --blue: #4a74e6; --blue-hover: #5d84ee; --blue-text: #93adf6; --blue-disabled: #3c4c78; --blue-tint: rgba(110,145,245,.16); --blue-area: rgba(110,145,245,.2);
    --ok: #6fcf97; --warn: #f0b35a; --bad: #f28b82; --ok-ink: #a7e3bf; --warn-ink: #f5cf94;
    --ok-bg: rgba(111,207,151,.13); --warn-bg: rgba(240,179,90,.13); --bad-bg: rgba(242,139,130,.13);
    --chart-out: #6b6f76; --chart-load: #c9ccd1; --chart-soc: #6fcf97;
    --shadow: rgba(0,0,0,.28); --shadow-strong: rgba(0,0,0,.42); --backdrop: rgba(12,13,15,.55);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ececee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); --logo-filter: invert(1);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
h3 { font-weight: 500; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(62, 106, 225, .18); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 14px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); }
.skip:focus { left: 8px; }

/* ---------- Tlačítka, odkazy, pole (jako web) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius); font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background-color .2s, box-shadow .2s, color .2s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-blue:disabled { background: var(--blue-disabled); cursor: default; }
.btn-gray { background: var(--soft); color: var(--ink); }
.btn-gray:hover { background: var(--soft-hover); }
.btn-gray:disabled { color: var(--faint); cursor: default; }
.btn-gray:disabled:hover { background: var(--soft); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-danger { background: var(--soft); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent; animation: spin .7s linear infinite; }
.btn-gray.is-busy::after, .btn-line.is-busy::after, .btn-danger.is-busy::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.push-right { margin-left: auto; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.field > label, .field > .label { font-weight: 500; color: var(--ink-2); }
.input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius); background: var(--soft); font: 15px var(--font); color: var(--ink); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background-color .15s; }
.input::placeholder { color: var(--placeholder); }
.input:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.input:focus { outline: none; background: var(--bg-field); box-shadow: inset 0 0 0 1.5px var(--ink); }
.input:disabled, .input[readonly] { color: var(--ink-2); background: var(--bg-disabled); box-shadow: inset 0 0 0 1px var(--line); }
.input[readonly]:focus { box-shadow: inset 0 0 0 1px var(--line-2); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.input.is-invalid { background: var(--bg-field); box-shadow: inset 0 0 0 1.5px var(--bad); }
.input-sm { width: auto; height: 36px; font-size: 14px; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 64px; }
.unit-input span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.error { margin-top: 6px; font-size: 12px; color: var(--bad); }
.notice { margin-top: 16px; padding: 12px; border-radius: var(--radius); background: var(--soft); font-size: 13px; color: var(--ink-2); }
.hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hint b { font-weight: 500; color: var(--ink-2); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.banner { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--ink-2); }
.banner.ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner .link { color: inherit; }
.eyebrow { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }

/* ---------- Přihlášení (stejně jako sunalytiq.com/prihlaseni) ---------- */
.auth-page { display: flex; flex-direction: column; min-height: 100svh; }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(16px, 4vw, 72px) 0 clamp(24px, 5vw, 88px); }
.logo img { height: 26px; width: auto; filter: var(--logo-filter); }
.region-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.region-link:hover { background: var(--hover-strong); }
.region-link svg { width: 20px; height: 20px; }
.auth { width: 100%; max-width: 360px; margin: 48px auto 0; padding: 0 24px; flex: 1; }
.auth.auth-wide { max-width: 440px; }
.auth h1 { margin-bottom: 24px; font-size: 32px; }
.auth-lead { margin: -12px 0 24px; font-size: 14px; color: var(--muted); }
.auth .field { margin-bottom: 20px; font-size: 14px; }
.auth .field > label { font-weight: 400; }
.auth .form-grid .field { margin-bottom: 0; }
.auth .form-grid { margin-bottom: 20px; }
.auth-center { margin-top: 20px; text-align: center; }
.auth-note { color: var(--muted); }
.auth-note .link { color: var(--ink); }
.auth-msg { margin-bottom: 20px; padding: 12px; border-radius: var(--radius); font-size: 13px; }
.auth-msg.is-error { background: var(--bad-bg); color: var(--bad); }
.auth-msg.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.auth-hint { margin: -10px 0 20px; }
.auth-consent { margin-bottom: 24px; font-size: 13px; color: var(--ink-2); }
.auth-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-google svg { flex: none; }
.divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; padding: 10px 12px; border-radius: var(--radius); background: var(--soft); font-size: 14px; }
.who span { overflow: hidden; text-overflow: ellipsis; }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 44px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 22px; height: 22px; }
.pw-toggle.is-on { color: var(--ink); }
.code-input { font-size: 22px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 28px 24px 34px; font-size: 12px; color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* ---------- Rozvržení aplikace ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100svh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; height: 100svh; padding: 20px 16px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.side-logo { display: inline-flex; align-items: center; gap: 12px; padding: 4px 8px 0; }
.side-logo img { height: 22px; width: auto; filter: var(--logo-filter); }
.side-logo span { padding-left: 12px; border-left: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--muted); }
.site-switch { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 2px 10px; width: 100%; margin: 24px 0 16px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--soft); text-align: left; cursor: pointer; transition: background-color .15s; }
.site-switch:hover { background: var(--soft-hover); }
.site-switch:disabled { cursor: default; }
.site-switch:disabled:hover { background: var(--soft); }
.site-switch b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.site-switch small { grid-column: 1; overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.site-switch i { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; background: var(--chevron) center / 16px no-repeat; }
.site-switch:disabled i { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .15s; }
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.side-nav a.is-active { background: var(--soft); color: var(--ink); }
.count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.count.bad { background: var(--bad); color: #fff; }
.main { min-width: 0; }
.topbar { display: none; }
.view { padding: 36px clamp(24px, 3.5vw, 56px) 80px; outline: none; }
.scrim { display: none; }

/* ---------- Záhlaví stránky ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.page-head > div:first-child { min-width: 0; max-width: 820px; }
.page-head h1 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-note { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* ---------- Velké číslo a ukazatele ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 32px; }
.hero-value { font-size: clamp(44px, 5.4vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-value small { margin-left: 6px; font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.hero-sub { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-sub b { font-weight: 500; color: var(--ink-2); }
.hero-side { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.hero-side dt { font-size: 13px; color: var(--muted); }
.hero-side dd { margin-top: 4px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; margin-bottom: 32px; }
@media (min-width: 1280px) { .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: block; padding-top: 16px; border-top: 1px solid var(--line-2); }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { margin-top: 8px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-value small { margin-left: 4px; font-size: .5em; letter-spacing: 0; color: var(--muted); }
.kpi-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.kpi-sub.ok { color: var(--ok); }
.kpi-sub.bad { color: var(--bad); }
.card .kpis { margin-bottom: 0; }

/* Mřížka přes celou šířku. Široké okno 8+4 / 4+4+4 / 6+6, střední 12 / 6+6, úzké pod sebou. */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dash-grid + .dash-grid, .kpis + .dash-grid { margin-top: 16px; }
.dash-grid > * { grid-column: span 6; min-width: 0; }
.dash-grid > .span-8, .dash-grid > .span-12 { grid-column: 1 / -1; }
.dash-grid > .span-4 { grid-column: span 6; }
@media (min-width: 1380px) {
  .dash-grid > .span-8 { grid-column: span 8; }
  .dash-grid > .span-4 { grid-column: span 4; }
}

/* ---------- Panely ---------- */
.panel { padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-card); background: var(--soft); }
.card { padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-card); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 20px; }
.card-head p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.card-head > .link, .card-head > a.muted { margin-top: 4px; font-size: 13px; }
.card-foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.empty-block { padding: 28px; border-radius: var(--radius-card); background: var(--soft); }
.empty-block h2 { margin-bottom: 8px; font-size: 20px; }
.empty-block p { max-width: 640px; color: var(--ink-2); }
.empty-block p + p { margin-top: 10px; }
.empty-block .btn { margin-top: 18px; }
.empty { padding: 28px 4px; color: var(--muted); }
.loading { padding: 48px 4px; color: var(--muted); }

/* ---------- Grafy ---------- */
.chart { position: relative; height: 240px; margin-top: 4px; }
.chart.tall { height: 300px; }
.chart.short { height: 180px; }
.chart svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.card.fill { display: flex; flex-direction: column; }
.card.fill .chart { flex: 1 1 auto; height: auto; min-height: 240px; }
.card.fill .chart.short { min-height: 200px; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart line.axis { stroke: var(--line-2); shape-rendering: crispEdges; }
.chart .area-pv { fill: var(--blue-area); }
.chart .line-pv { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart .line-exp { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .line-load { fill: none; stroke: var(--chart-load); stroke-width: 1.5; stroke-linejoin: round; }
.chart .line-soc { fill: none; stroke: var(--chart-soc); stroke-width: 1.5; stroke-linejoin: round; }
.chart .bar-pv { fill: var(--blue); }
.chart .bar-pv.part { fill: var(--blue-disabled); }
.chart .bar-fc { fill: var(--blue-area); stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 2; }
.chart .bar-cloud { fill: var(--soft-2); }
.chart .tick-exp { stroke: var(--ink); stroke-width: 2; }
.chart .now { stroke: var(--line-2); stroke-dasharray: 2 3; }
.chart .cursor { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.chart .dot { fill: var(--bg); stroke: var(--blue); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .zero { stroke: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.legend .lg-pv { background: var(--blue); }
.legend .lg-area { background: var(--blue-area); box-shadow: inset 0 2px 0 var(--blue); }
.legend .lg-exp { height: 0; border-top: 1.5px dashed var(--muted); border-radius: 0; }
.legend .lg-load { height: 2px; background: var(--chart-load); }
.legend .lg-soc { height: 2px; background: var(--chart-soc); }
.legend .lg-tick { height: 2px; background: var(--ink); }
.legend .lg-cloud { background: var(--soft-2); }
.legend .lg-fc { background: var(--blue-area); box-shadow: inset 0 0 0 1px var(--blue); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 1.5; white-space: nowrap; transform: translate(-50%, -100%); }
.chart-tip b { font-weight: 600; }
.chart-tip div { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip span { opacity: .75; }

/* ---------- Tok energie ---------- */
.flow { position: relative; width: 100%; max-width: 420px; height: 290px; margin: 6px auto 0; }
.flow.no-batt { height: 196px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines path { fill: none; vector-effect: non-scaling-stroke; }
.flow .fl-base { stroke: var(--line-2); stroke-width: 1.5; }
.flow .fl-on { stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; animation: flow 1s linear infinite; }
.flow .fl-on.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .flow .fl-on { animation: none; stroke-dasharray: none; } }
.fl-node { position: absolute; width: 42%; min-height: 62px; padding: 10px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.fl-node.on { box-shadow: inset 0 0 0 1.5px var(--blue); }
.fl-node span { display: block; overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.fl-node b { display: block; margin-top: 2px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-node small { display: block; font-size: 12px; color: var(--muted); }
.fl-pv { left: 29%; top: 0; }
.fl-grid { left: 0; top: 50%; transform: translateY(-50%); }
.fl-home { right: 0; top: 50%; transform: translateY(-50%); }
.fl-batt { left: 29%; bottom: 0; }
.fl-hub { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); }
.flow-note { margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }

/* ---------- Řádky s čísly (bilance) ---------- */
.balance > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.balance > div:last-child { border-bottom: 0; }
.balance dt { color: var(--muted); }
.balance dd { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.balance dd small { margin-left: 6px; font-weight: 400; color: var(--muted); }

/* ---------- Předpověď po dnech ---------- */
.fc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fc-day { display: flex; flex-direction: column; padding: 14px 12px; border-radius: 10px; background: var(--soft); min-width: 0; }
.fc-day.is-today { background: var(--blue-tint); }
.fc-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.fc-date { font-size: 12px; color: var(--muted); }
.fc-kwh { margin-top: 14px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-kwh small { margin-left: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.fc-bar { height: 4px; margin-top: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.fc-meta { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.fc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fc-row { display: grid; grid-template-columns: minmax(118px, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fc-row span { color: var(--muted); }
.fc-row span { white-space: nowrap; }
.fc-row span b { margin-right: 4px; font-weight: 500; color: var(--ink); }
.fc-row small { display: block; font-size: 12px; color: var(--muted); }
.fc-row .fc-bar { margin: 0; height: 6px; background: var(--soft-2); }
.fc-row strong { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Upozornění ---------- */
.alerts { border-top: 1px solid var(--line-2); }
.al-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.al-row .dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--faint); }
.al-row.critical .dot { background: var(--bad); }
.al-row.warning .dot { background: var(--warn); }
.al-row.resolved .dot { background: var(--ok); }
.al-row b { font-weight: 500; }
.al-row p { grid-column: 2; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.al-row small { grid-column: 2; margin-top: 4px; font-size: 12px; color: var(--muted); }
.al-row .al-side { grid-column: 3; grid-row: 1 / span 3; align-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ok-state { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; padding: 4px 0; }
.ok-state .dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ok); }
.ok-state b { font-weight: 500; font-size: 15px; }
.ok-state p { grid-column: 2; font-size: 13px; color: var(--muted); }
.watch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.watch li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.watch b { display: block; font-weight: 500; }
.watch span { font-size: 13px; color: var(--muted); }

/* ---------- Seznamy, filtry, nabídky ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; background: var(--soft); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--ink); }
.seg button.is-on, .seg a.is-on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.seg .n { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .input { width: auto; min-width: 150px; height: 36px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius); background: var(--soft); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--soft-hover); }
.icon-btn:disabled { color: var(--faint); cursor: default; }
.icon-btn:disabled:hover { background: var(--soft); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 36px; margin-bottom: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary > div { display: flex; flex-direction: column; gap: 2px; }
.summary span { font-size: 12px; color: var(--muted); }
.summary b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary b.bad { color: var(--bad); }
.search { width: min(320px, 100%); height: 36px; font-size: 14px; }

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th.right, .table td.right { text-align: right; }
.table th:first-child, .table td:first-child { padding-left: 4px; }
.table th:last-child, .table td:last-child { padding-right: 4px; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--hover); }
.table .primary { font-weight: 500; }
.table .secondary { display: block; font-size: 12px; color: var(--muted); }
.table tfoot td { border-bottom: 0; font-weight: 500; }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 6px; }
.pr-bar { display: inline-block; width: 56px; height: 6px; margin-right: 8px; border-radius: 999px; background: var(--soft-2); vertical-align: 1px; overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.pr-bar.low i { background: var(--warn); }

/* ---------- Stavy ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.s-ok::before { background: var(--ok); }
.status.s-warn::before { background: var(--warn); }
.status.s-bad::before { background: var(--bad); }
.status.s-blue::before { background: var(--blue); }
.status.s-bad { color: var(--bad); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Zařízení ---------- */
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.meter-track { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.meter-track.warn span { background: var(--warn); }
.meter-track.bad span { background: var(--bad); }
.strings { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.string { padding: 14px 16px; border-radius: 10px; background: var(--soft); }
.string b { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.string strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.string span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Nastavení ---------- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 860px); gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 8px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.settings-nav a:hover { background: var(--soft); }
.settings-nav a.is-on { background: var(--soft); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-block + .form-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-block h2 { margin-bottom: 6px; font-size: 18px; }
.form-block > p.muted { margin-bottom: 16px; font-size: 13px; }
.form-block .hint { margin-top: 8px; }
.inline-action { display: flex; gap: 8px; }
.inline-action .input { flex: 1; min-width: 0; }
.places { display: grid; gap: 0; margin-top: 6px; border-radius: 10px; background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line), 0 10px 30px var(--shadow); overflow: hidden; }
.places button { display: block; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.places button:hover { background: var(--soft); }
.places b { font-weight: 500; }
.places span { margin-left: 6px; font-size: 12.5px; color: var(--muted); }
.coords { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Výběr elektrárny ---------- */
.pick-list { max-height: min(420px, 60svh); overflow-y: auto; margin-top: 12px; border-top: 1px solid var(--line); }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%; padding: 11px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pick-row:hover, .pick-row.is-on { background: var(--hover-strong); }
.pick-row b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.pick-row small { grid-column: 1; font-size: 12px; color: var(--muted); }
.pick-row span { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; color: var(--muted); }

/* ---------- Modální okno a hlášení ---------- */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--bg-raised); color: var(--ink); box-shadow: 0 24px 64px var(--shadow-strong); }
.modal.modal-wide { width: min(680px, calc(100vw - 32px)); }
.modal::backdrop { background: var(--backdrop); }
.modal-in { padding: 28px; }
.modal h2 { margin-bottom: 8px; font-size: 22px; }
.modal p.lead { margin-bottom: 18px; color: var(--ink-2); }
.modal .field { margin-bottom: 14px; }
.modal .form-grid .field { margin-bottom: 0; }
.modal .form-grid { margin-bottom: 14px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 14px; transform: translateX(-50%); box-shadow: 0 12px 32px var(--shadow-strong); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- Menší obrazovky ---------- */
@media (max-width: 1180px) {
  .fc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .25s; }
  .side.is-open { transform: none; box-shadow: 0 0 40px var(--shadow-strong); }
  .scrim.is-open { display: block; position: fixed; inset: 0; z-index: 30; background: var(--backdrop); }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); background: var(--glass); }
  .topbar .side-logo { padding: 0; }
  .menu-btn { height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius); background: var(--soft); font-weight: 500; cursor: pointer; }
  .view { padding: 24px 16px 64px; }
  .kpis, .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .dash-grid > *, .dash-grid > .span-4 { grid-column: 1 / -1; }
  .settings { grid-template-columns: 1fr; gap: 20px; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .hero-side { gap: 16px 28px; }
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .toolbar, .toolbar-right { width: 100%; }
  .page-actions { width: 100%; }
  .hero { margin-bottom: 24px; }
  .hero-value { font-size: 48px; }
  .hero-side dd { font-size: 19px; }
  .fc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { gap: 10px 22px; }
  .modal-in { padding: 22px 18px; }
  .table .hide-sm { display: none; }
  .table td, .table th { padding-left: 8px; padding-right: 8px; }
  .al-row { grid-template-columns: 22px minmax(0, 1fr); }
  .al-row .al-side { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; margin-top: 8px; }
  .stepper { flex: 1; }
  .stepper .input { flex: 1; min-width: 0; }
  .auth .form-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .auth .form-grid .field { margin-bottom: 20px; }
}

/* ---------- Profil dole v menu: ikona postavy a jméno, po kliknutí nabídka (stejné v portálu, správě i Finance) ---------- */
.side-foot { position: relative; display: block; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-btn { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .15s; }
.profile-btn:hover, .profile-btn[aria-expanded="true"], .profile-btn.is-active { background: var(--soft); }
.profile-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft-2); color: var(--ink-2); }
.profile-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-text { display: flex; flex-direction: column; min-width: 0; }
.profile-text b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-text small { overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.profile-chevron { width: 16px; height: 16px; background: var(--chevron) center / 14px no-repeat; transform: rotate(180deg); transition: transform .15s; }
.profile-btn[aria-expanded="true"] .profile-chevron { transform: none; }
.profile-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 60; display: flex; flex-direction: column; padding: 6px; border-radius: 12px; background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line), 0 12px 32px var(--shadow); }
.profile-head { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.profile-head b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-head span { overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.profile-menu a, .profile-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; font: 500 14px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--soft); }
.profile-menu svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-2); }
.profile-apps { display: flex; flex-direction: column; margin: 4px 0; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-apps > span { padding: 6px 10px 2px; font-size: 12px; color: var(--muted); }
.profile-logout { margin-top: 2px; }
.switch { position: relative; flex: none; width: 32px; height: 18px; margin-left: auto; border-radius: 999px; background: var(--line-2); transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
[aria-checked="true"] > .switch { background: var(--blue); }
[aria-checked="true"] > .switch::after { transform: translateX(14px); }

/* ---------- Dvoufázové ověření ---------- */
.mfa-qr { display: grid; place-items: center; margin: 16px auto 8px; }
.mfa-qr svg { width: 196px; height: 196px; padding: 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mfa-key { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: var(--soft); font: 500 13px/1.5 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .06em; color: var(--ink); word-break: break-all; user-select: all; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; padding: 16px; border-radius: 10px; background: var(--soft); }
.mfa-codes code { font: 500 15px/1.6 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .08em; text-align: center; color: var(--ink); }
.code-input.is-recovery { letter-spacing: .14em; }
/* Přihlášení potvrzené e-mailem: čekání na kliknutí v e-mailu a stránka potvrzení */
.mfa-wait { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--ink-2); }
.mfa-wait::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--blue); border-radius: 50%; animation: mfa-spin .9s linear infinite; }
@keyframes mfa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mfa-wait::before { animation: none; } }
.confirm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 24px; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); font-size: 14px; }
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { overflow-wrap: anywhere; }
