/* WBX Sandbox – zákaznický portál. Bez buildu a bez CDN.
   Paleta: inkoustová modrá (struktura), papír (plochy), jantarová jako LED na serveru
   (jen pro „běží / živě“), modrá pro odkazy a akce. Rohy max. 4 px. */
:root {
  --white: var(--surface);
  --r: 3px; --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Paleta portálu (0.14.7) – technický styl pro vývojáře. Světlý režim jako administrace:
   bílý postranní panel, neutrální šedé, tenké linky; tmavý režim opravdu tmavý (téměř černá).
   Přepisuje hodnoty z theme.css (stejné selektory = stejná specificita, načítá se později). */
:root {
  --paper: #f4f6f8; --surface: #ffffff; --surface-2: #f8fafb; --hover: #f3f6f8;
  --ink: #111a24; --ink-2: #0b1219; --text: #1f2a35; --text-2: #3d4b57; --muted: #5d6b77; --faint: #8794a0;
  --line: #dde3e7; --line-2: #ecf0f2; --line-strong: #c5ced5;
  --blue: #2457c5; --blue-ink: #ffffff; --blue-soft: #e9effb; --blue-line: #c3d3f3; --blue-strong: #1b45a3;
  --side: #ffffff; --side-2: #f4f6f8; --side-active: #e9effb; --side-line: #e3e8eb;
  --side-ink: #3d4b57; --side-muted: #7a8792; --side-strong: #111a24; --side-icon: #8794a0;
  --code-bg: #0f151c; --code-ink: #d7dfe9; --code-muted: #7f8d9b; --code-accent: #f2d47e; --code-line: #0f151c;
  --chart: #9fb6ec; --chart-soft: #e9effb; --chart-grid: #ecf0f2;
  --heat-0: #eef1f4; --heat-1: #d2ddf7; --heat-2: #9fb6ec; --heat-3: #5a80d8; --heat-4: #2457c5;
  --series-0: #2457c5; --series-1: #e09b16; --series-2: #1f8a4c; --series-3: #8a5cd1; --series-4: #d1495b; --series-5: #8794a0;
  --shadow: none; --tip-bg: #111a24; --tip-ink: #ffffff;
}
:root[data-theme="dark"] {
  --paper: #0a0c0f; --surface: #101317; --surface-2: #14181d; --hover: #171b21;
  --ink: #eef2f6; --ink-2: #ffffff; --text: #d3dae2; --text-2: #aab5c1; --muted: #828e9c; --faint: #636e7b;
  --line: #22272e; --line-2: #191d23; --line-strong: #323943;
  --blue: #6f9bff; --blue-ink: #0a0c0f; --blue-soft: #15203a; --blue-line: #2a3f6c; --blue-strong: #9bbaff;
  --side: #07080a; --side-2: #111419; --side-active: #16203a; --side-line: #1a1e24;
  --side-ink: #aeb8c4; --side-muted: #6c7785; --side-strong: #ffffff; --side-icon: #6c7785;
  --code-bg: #06080a; --code-ink: #d7dfe9; --code-muted: #6f7c8a; --code-accent: #f2d47e; --code-line: #22272e;
  --chart: #3d5fae; --chart-soft: #142038; --chart-grid: #1d2229;
  --heat-0: #161a20; --heat-1: #1c2b4d; --heat-2: #2c4a86; --heat-3: #4a72cc; --heat-4: #7ea4ff;
  --series-0: #6f9bff; --series-1: #f0b232; --series-2: #3cc78a; --series-3: #b28af0; --series-4: #ff7a8a; --series-5: #828e9c;
  --shadow: none; --tip-bg: #eef2f6; --tip-ink: #0a0c0f;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper: #0a0c0f; --surface: #101317; --surface-2: #14181d; --hover: #171b21;
    --ink: #eef2f6; --ink-2: #ffffff; --text: #d3dae2; --text-2: #aab5c1; --muted: #828e9c; --faint: #636e7b;
    --line: #22272e; --line-2: #191d23; --line-strong: #323943;
    --blue: #6f9bff; --blue-ink: #0a0c0f; --blue-soft: #15203a; --blue-line: #2a3f6c; --blue-strong: #9bbaff;
    --side: #07080a; --side-2: #111419; --side-active: #16203a; --side-line: #1a1e24;
    --side-ink: #aeb8c4; --side-muted: #6c7785; --side-strong: #ffffff; --side-icon: #6c7785;
    --code-bg: #06080a; --code-ink: #d7dfe9; --code-muted: #6f7c8a; --code-accent: #f2d47e; --code-line: #22272e;
    --chart: #3d5fae; --chart-soft: #142038; --chart-grid: #1d2229;
    --heat-0: #161a20; --heat-1: #1c2b4d; --heat-2: #2c4a86; --heat-3: #4a72cc; --heat-4: #7ea4ff;
    --series-0: #6f9bff; --series-1: #f0b232; --series-2: #3cc78a; --series-3: #b28af0; --series-4: #ff7a8a; --series-5: #828e9c;
    --shadow: none; --tip-bg: #eef2f6; --tip-ink: #0a0c0f;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.55 var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); border: 1px solid var(--line-2); padding: 0 5px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: 26px; margin: 0; font-weight: 600; }
h2 { font-size: 17px; margin: 0; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------------- tlačítka a formuláře */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--r);
  border: 1px solid var(--blue); background: var(--blue); color: var(--blue-ink); font: inherit; font-weight: 500; font-size: 13.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--blue-strong); border-color: var(--blue-strong); color: var(--blue-ink); text-decoration: none; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { filter: brightness(.94); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.sec:hover { background: var(--hover); border-color: var(--faint); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); margin: 0 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r); font: inherit; font-size: 13.5px;
  background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 80px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--text); }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inline { display: inline; }

/* ---------------- hlášky a štítky */
.flash { padding: 10px 13px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.flash.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }
.flash.err { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad-ink); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 2px; font: 500 11.5px/1.7 var(--mono); background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok-line); }
.tag.bad { background: var(--bad-soft); color: var(--bad-ink); border-color: var(--bad-line); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn-line); }
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px var(--led-soft); }
.secret { font-family: var(--mono); border: 1px solid var(--code-line); background: var(--code-bg); color: var(--code-accent); padding: 11px 13px; border-radius: var(--r); word-break: break-all; margin: 6px 0 10px; font-size: 13.5px; }
pre.code { background: var(--code-bg); color: var(--code-ink); padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--code-line); overflow: auto; margin: 8px 0 10px; line-height: 1.55; }
pre.code .c { color: var(--code-muted); }
pre.code .o { color: var(--code-accent); }

/* ---------------- panely a tabulky */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.panel > .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); min-height: 46px; }
.panel > .ph h2 { font-size: 14px; font-weight: 600; }
.panel > .ph > .muted, .panel > .ph > span.small { font: 11.5px var(--mono); color: var(--muted); }
.panel .pb { padding: 14px 16px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; line-height: 1.4; }
th { font: 500 11.5px/1.4 var(--mono); color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); padding-top: 7px; padding-bottom: 7px; white-space: nowrap; }
td.num, td .mono, td.mono { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 26px 18px; text-align: center; }
.empty .btn { margin-top: 10px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.metrics > div { padding: 14px 18px; border-left: 1px solid var(--line-2); }
.metrics > div:first-child { border-left: 0; }
.metrics .v { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.metrics .l { font: 11.5px var(--mono); color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 4px 0; }
.bars .b { flex: 1; max-width: 26px; background: var(--blue-line); border-radius: 2px 2px 0 0; min-height: 1px; }
.bars .b:hover { background: var(--blue); }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* ---------------- aplikace: postranní panel a plocha */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.in-app { background: var(--paper); }
.side { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 20; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; }
.side .brand { display: flex; align-items: center; gap: 9px; color: var(--side-strong); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.side .brand:hover { text-decoration: none; }
.navtoggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.navtoggle span { display: block; width: 18px; height: 2px; background: var(--side-ink); margin: 3px 0; border-radius: 1px; }
.side-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.side .team { margin: 0 12px 12px; padding: 9px 11px; border: 1px solid var(--side-line); border-radius: var(--r); display: flex; flex-direction: column; gap: 1px; color: var(--side-ink); }
.side .team:hover { border-color: var(--line-strong); background: var(--side-2); text-decoration: none; }
.side .team strong { color: var(--side-strong); font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .team span { font: 11.5px var(--mono); color: var(--side-muted); }
.side nav { padding: 0 10px; }
.side nav a { display: flex; align-items: center; gap: 11px; color: var(--side-ink); padding: 7px 10px; font-size: 13.5px; border-radius: var(--r); position: relative; }
.side nav a .ic { color: var(--side-icon); flex: none; }
.side nav a:hover { color: var(--side-strong); background: var(--side-2); text-decoration: none; }
.side nav a:hover .ic { color: var(--side-ink); }
.side nav a.active { color: var(--side-strong); background: var(--side-active); font-weight: 500; }
.side nav a.active .ic { color: var(--blue); }
.side nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; background: var(--blue); border-radius: 0 2px 2px 0; }
.side nav .gap { height: 1px; background: var(--side-line); margin: 10px 10px; }
.side .credit { margin: auto 12px 10px; padding: 10px 12px; background: var(--side-2); border: 1px solid var(--side-line); border-radius: var(--r); display: flex; flex-direction: column; color: var(--side-muted); font: 11.5px var(--mono); }
.side .credit:hover { border-color: var(--line-strong); text-decoration: none; }
.side .credit strong { color: var(--side-strong); font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--side-line); }
.side .credit + .who { margin-top: 0; }
.side nav + .who { margin-top: auto; }
.side .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
.side .who > div { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.side .who strong { color: var(--side-strong); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who span { font-size: 12px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who form { display: contents; }
.side .who button { background: none; border: 0; color: var(--side-muted); cursor: pointer; padding: 6px; border-radius: var(--r); display: grid; place-items: center; }
.side .who button:hover { color: var(--side-strong); background: var(--side-2); }
.main { padding: 26px 32px 64px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.head .sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn .ic { margin: -2px 0; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; border: 1px solid; flex-wrap: wrap; }
.banner.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.banner.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad-ink); }
.banner.info { background: var(--blue-soft); border-color: var(--blue-line); color: var(--text); }
.in-app .panel { border-color: var(--line); box-shadow: var(--shadow); }
.in-app .metrics { border-color: var(--line); box-shadow: var(--shadow); }

/* mřížka přehledu (12 sloupců) */
.dgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dgrid > .panel { margin: 0; min-width: 0; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.ph .push { margin-left: auto; }

/* rack: běžící sandboxy jako jednotky v racku */
.rack { background: var(--surface); color: var(--text); }
.rack > .ph { border-bottom-color: var(--side-line); justify-content: flex-start; }
.rack > .ph h2 { color: var(--ink); }
.rack > .ph a { color: var(--blue); }
.rack-count { color: var(--muted); font: 11.5px var(--mono); }
.rack-count strong { color: var(--led); font-size: 14px; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 6px; padding: 14px 16px 16px; }
.unit { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; color: var(--text); min-height: 50px; overflow: hidden; }
.unit:hover { border-color: var(--blue-line); text-decoration: none; }
.unit .led { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.unit.running .led { background: var(--led); box-shadow: 0 0 0 3px rgba(232, 163, 23, .18), 0 0 10px rgba(232, 163, 23, .55); animation: blink 2.4s ease-in-out infinite; }
.unit.paused .led { background: #7fa2e8; }
.unit .u-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.unit .u-main strong { color: var(--ink); font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit .u-main .mono { font-size: 11.5px; color: var(--muted); }
.unit .u-side { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit .life { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-2); }
.unit .life i { display: block; height: 100%; background: linear-gradient(90deg, #4f78d8, #9ec1ff); }
.unit.free { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--faint); }
.unit.free .u-main span { font-size: 13px; }
.rack-empty { padding: 0 16px 16px; margin: -4px 0 0; color: var(--muted) !important; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* KPI karty */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 0; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.kpi .kl { font: 11.5px var(--mono); color: var(--muted); }
.kpi .kv { font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .kf { font-size: 12px; color: var(--muted); min-height: 19px; }
.kpi .spark { display: block; width: calc(100% + 36px); margin: 8px -18px 0; height: 44px; }
.spark .area { fill: var(--chart-soft); }
.spark .line { fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linejoin: round; }
.spark .dot { fill: var(--blue); }
.delta { font-weight: 650; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.credit-kpi { padding-bottom: 14px; }
.credit-kpi .kf strong { color: var(--ink); }
.fuel { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 12px 0 10px; }
.fuel i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #3fb37f); border-radius: 3px; }
.fuel.low i { background: linear-gradient(90deg, var(--bad), #e8703f); }

/* grafy */
.chartbox { position: relative; padding-left: 0; }
.chart { position: absolute; top: 0; bottom: 0; left: 44px; width: calc(100% - 44px); height: 100%; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .bar { fill: var(--chart); transition: fill .12s; }
.chart .col .hit { fill: transparent; }
.chart .col:hover .bar, .chart .col.mark .bar { fill: var(--blue); }
.chart .col:hover .hit { fill: color-mix(in srgb, var(--blue) 7%, transparent); }
.chart .col.mark .bar { fill: var(--led); }
.ylab span, .xlab span { position: absolute; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ylab span { left: 0; transform: translateY(-50%); width: 36px; text-align: right; }
.xlab { position: absolute; left: 44px; right: 0; }
.xlab span { transform: translateX(-50%); }
.dfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.dfacts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dfacts span { font-size: 12.5px; color: var(--muted); }
.dfacts strong { color: var(--ink); font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmix { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.donut { width: 170px; height: 170px; }
.donut circle { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 60px 60px; }
.donut .track { stroke: var(--line-2); }
.donut .seg { cursor: default; transition: stroke-width .12s; }
.donut .seg:hover { stroke-width: 17; }
.donut .dv { font-size: 19px; font-weight: 720; fill: var(--ink); text-anchor: middle; font-family: var(--sans); }
.donut .dl { font-size: 9.5px; fill: var(--muted); text-anchor: middle; font-family: var(--sans); }
.s0 { stroke: var(--series-0); background: var(--series-0); } .s1 { stroke: var(--series-1); background: var(--series-1); } .s2 { stroke: var(--series-2); background: var(--series-2); } .s3 { stroke: var(--series-3); background: var(--series-3); } .s4 { stroke: var(--series-4); background: var(--series-4); } .s5 { stroke: var(--series-5); background: var(--series-5); }
.legend { list-style: none; margin: 0; padding: 0; width: 100%; }
.legend li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.legend li:last-child { border-bottom: 0; }
.legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend strong { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat i { display: block; height: 22px; border-radius: 2px; background: var(--heat-0); }
.heat i:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat .l1, .heat-key .l1 { background: var(--heat-1); } .heat .l2, .heat-key .l2 { background: var(--heat-2); }
.heat .l3, .heat-key .l3 { background: var(--heat-3); } .heat .l4, .heat-key .l4 { background: var(--heat-4); }
.heat .hd { font-size: 11.5px; color: var(--muted); }
.heat .hh { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.heat-key { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 12px; }
.heat-key i { width: 11px; height: 11px; border-radius: 2px; background: var(--heat-0); display: inline-block; }
.hbar { margin: 0 0 12px; }
.hb-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.hb-l strong { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hb-t { height: 8px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--blue); border-radius: 2px; }
.hb-t.warn i { background: var(--led); }
.hb-t.bad i { background: var(--bad); }

/* plovoucí popisek grafů */
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--tip-bg); color: var(--tip-ink); font-size: 12.5px; padding: 6px 9px; border-radius: 3px; max-width: 320px; box-shadow: 0 4px 14px rgba(19, 33, 58, .25); line-height: 1.4; }

/* ---------------- přihlášení */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .aside { background: var(--code-bg); color: #b9c4d3; border-right: 1px solid var(--code-line); padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .aside .brand { color: #fff; font-weight: 750; font-size: 18px; display: flex; gap: 9px; align-items: center; }
.auth .aside blockquote { margin: 0; font-size: 21px; line-height: 1.45; color: #fff; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; }
.auth .aside .transcript { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #9fb0cb; }
.auth .aside .transcript b { color: #f4d78a; font-weight: 500; }
.auth .form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth .box { width: 100%; max-width: 400px; }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.auth .lead { color: var(--muted); margin-bottom: 24px; }
.auth .alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth .social { display: grid; gap: 8px; }
.auth .social-btn { gap: 10px; }
.auth .or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------------- veřejné stránky */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1160px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 26px; }
.top .brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 750; font-size: 16px; letter-spacing: -.01em; }
.top .brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--text); }
.top .cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 76px 0 64px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; max-width: 16ch; }
.hero .lead { font-size: 18px; color: var(--text-2); margin: 20px 0 28px; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.term { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--r); color: var(--code-ink); font-family: var(--mono); font-size: 13.5px; line-height: 1.75; overflow: hidden; }
.term .bar { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #253756; color: #8796ad; font-size: 12px; }
.term pre { margin: 0; padding: 16px 18px 18px; white-space: pre-wrap; }
.term .c { color: #7f8ea7; }
.term .k { color: #9ec1ff; }
.term .s { color: #b7e4c7; }
.term .ms { color: var(--led); font-weight: 600; }
.band { border-top: 1px solid var(--line); padding: 60px 0; }
.band h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 600; max-width: 30ch; }
.band .intro { color: var(--muted); font-size: 16px; margin: 10px 0 30px; max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps > div { padding: 18px 22px 6px 0; }
.steps .n { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.steps h3 { font-size: 17px; margin: 6px 0 8px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.facts h3 { font-size: 16px; }
.facts p { color: var(--text-2); font-size: 14.5px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.plan { padding: 22px 20px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan.hl { box-shadow: inset 0 2px 0 var(--blue); }
.plan h3 { font-size: 17px; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.plan .price { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; font-size: 14px; }
.plan li { padding: 5px 0 5px 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 2px; background: var(--ink); }
.plan .btn { margin-top: auto; }
.cur { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; font-size: 13px; }
.cur a { padding: 5px 11px; color: var(--text); }
.cur a.on { background: var(--blue); color: var(--blue-ink); }
.cur a:hover { text-decoration: none; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot .in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); margin-right: 16px; }
/* odznaky katalogů z administrace (Nastavení → Web → patička) */
.foot-extra { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.foot-extra a { margin-right: 0; }
.foot-extra img { display: block; height: 40px; width: auto; max-width: 100%; }
.doc { max-width: 820px; }
.doc h2 { margin: 30px 0 10px; font-size: 20px; }
.doc p, .doc li { color: var(--text-2); }
.legal { max-width: 760px; padding: 40px 0 60px; }
.legal h2 { margin: 24px 0 8px; }

.usecases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.usecases a { padding: 16px 20px 6px 0; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.usecases a:hover { text-decoration: none; }
.usecases a:hover strong { color: var(--blue); }
.usecases strong { color: var(--ink); font-size: 16px; }
.usecases span { color: var(--muted); font-size: 14px; }

/* ---------------- první kroky na přehledu */
.onboard ol { list-style: none; margin: 0; padding: 0; counter-reset: ob; }
.onboard li { counter-increment: ob; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px 12px 56px; border-bottom: 1px solid var(--line-2); position: relative; flex-wrap: wrap; }
.onboard li:last-child { border-bottom: 0; }
.onboard li::before { content: counter(ob); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.onboard li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.onboard li > div { display: flex; flex-direction: column; gap: 2px; }

/* ---------------- dokumentace */
.docs { padding: 32px 0 60px; }
.docs.in-app { padding-top: 0; }
.dtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtabs a { padding: 8px 14px; color: var(--muted); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dtabs a:hover { color: var(--ink); text-decoration: none; }
.dtabs a.on { color: var(--ink); border-bottom-color: var(--blue); }
.dkey { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin: -8px 0 24px; }
.docs .doc { max-width: 880px; }
.doc h1 { font-size: 32px; letter-spacing: -.025em; margin-bottom: 10px; }
.doc .lead { font-size: 17px; color: var(--text-2); max-width: 68ch; margin-bottom: 22px; }
.doc h2 { margin: 40px 0 12px; font-size: 21px; scroll-margin-top: 80px; }
.doc h3.sub { margin: 22px 0 8px; font-size: 15px; }
.doc ul, .doc ol { padding-left: 20px; max-width: 72ch; }
.doc li { margin: 4px 0; }
.doc .panel { margin: 12px 0 16px; }
.doc .panel table td, .doc .panel table th { padding: 8px 14px; }
.callout { border-left: 3px solid var(--led); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 8px; max-width: 72ch; color: var(--text-2); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 14px 0; }
.cmp > div { padding: 16px 18px; }
.cmp > div + div { border-left: 1px solid var(--line); }
.cmp ul { list-style: none; padding: 0; margin: 8px 0 0; }
.cmp li { padding: 4px 0 4px 22px; position: relative; font-size: 14px; }
.cmp ul.bad li::before { content: "×"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.cmp ul.good li::before { content: "✓"; position: absolute; left: 3px; color: var(--ok); font-weight: 700; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 14px 0; }
.uses > div { background: var(--surface); padding: 14px 16px; }
.uses h3 { font-size: 14.5px; margin-bottom: 4px; }
.uses p { font-size: 13.5px; color: var(--muted); margin: 0; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 14px 0 18px; }
.flow > div { padding: 12px 18px 4px 0; display: flex; flex-direction: column; gap: 3px; }
.flow .fn { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.concepts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.concepts dt { font-weight: 650; color: var(--ink); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.concepts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.qs { list-style: none; padding: 0; counter-reset: qs; max-width: none !important; }
.qs > li { counter-increment: qs; position: relative; padding: 0 0 8px 40px; margin: 0 0 14px; }
.qs > li::before { content: counter(qs); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; }
.faq summary { padding: 11px 14px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.faq p { padding: 0 14px 4px; font-size: 14px; }
.tchoose td { font-size: 14px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; margin: 0 0 16px; scroll-margin-top: 80px; }
.tcard header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.tcard h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.tcard .tname { font-size: 14px; background: var(--ink); color: var(--surface); padding: 3px 8px; }
.tcard .tag-line { color: var(--muted); margin: 4px 0 0; }
.tmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.tmeta > span:not(.tag) { font-size: 12.5px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 1px 8px; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 4px; }
.tcols h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.tcols ul { margin: 0; font-size: 14px; }
.tcard .note { border-left: 3px solid var(--warn); padding: 4px 10px; color: var(--warn-ink); background: var(--warn-soft); border-radius: 0 3px 3px 0; }
.ref td:first-child { width: 42%; word-break: break-word; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.toc a { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; padding: 4px 10px; font-size: 13px; color: var(--ink); }
.toc a:hover { border-color: var(--blue); text-decoration: none; }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* OAuth souhlas */
.consent { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 18px 0; background: var(--white); }
.consent ul { margin: 6px 0 10px 18px; padding: 0; }
.consent p { margin: 6px 0; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* tabulky aplikace */
.tscroll { overflow-x: auto; }
.ev { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9aa8bd; }
.ev.start::before { background: var(--ok); }
.ev.bad { color: var(--bad); }
.ev.bad::before { background: var(--bad); }
.tpl { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 3px; padding: 0 7px; font-family: var(--mono); }
.in-app th { background: var(--surface-2); }
.in-app tr:hover td { background: var(--hover); }
.ev.warn::before { background: var(--led); }
.runcell { white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.rb { display: inline-block; width: 70px; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 9px; }
.rb i { display: block; height: 100%; background: var(--chart); border-radius: 3px; }

/* sandboxy: kvóty, karty, filtry */
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); }
.m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 11.5px var(--mono); color: var(--muted); }
.m-top strong { font: 600 19px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.m-top strong .muted { font-size: 14px; font-weight: 500; }
.m-bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.m-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .4s; }
.m-bar.hot i { background: var(--led); }
.sbcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.sbcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); scroll-margin-top: 20px; }
.sbcard:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-line); }
.sbcard header { display: flex; align-items: center; gap: 9px; }
.sbcard header .tag { margin-left: auto; }
.sbcard .led { width: 9px; height: 9px; border-radius: 50%; background: #9aa8bd; }
.sbcard.running .led { background: var(--led); box-shadow: 0 0 0 3px var(--led-soft); animation: blink 2.4s ease-in-out infinite; }
.sbcard.paused .led { background: #7fa2e8; }
.sb-id { display: flex; align-items: center; gap: 8px; }
.sb-id code { background: none; padding: 0; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.copy { background: none; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 11.5px; color: var(--muted); padding: 1px 7px; cursor: pointer; }
.copy:hover { color: var(--blue); border-color: var(--blue); }
.sbcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.sbcard dt { font-size: 12px; color: var(--muted); }
.sbcard dd { margin: 0; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.life2 { height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.life2 i { display: block; height: 100%; background: linear-gradient(90deg, #4f78d8, #8fb0f2); border-radius: 3px; }
.life2.low i { background: var(--led); }
.sbcard footer { display: flex; justify-content: flex-end; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.filters select { width: auto; padding: 5px 9px; font-size: 13px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 18px 30px; gap: 6px; }
.empty-state strong { color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0 0 8px; }
.es-rack { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.es-rack i { display: block; width: 88px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 2px; position: relative; }
.es-rack i::before { content: ""; position: absolute; left: 6px; top: 3.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* spotřeba */
.seg { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.seg > a, .seg > span { padding: 7px 12px; font-size: 14px; color: var(--ink); display: flex; align-items: center; }
.seg > span:not(.off) { font-weight: 650; min-width: 132px; justify-content: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.seg > a { font-size: 18px; line-height: 1; }
.seg > a:hover { background: var(--paper); text-decoration: none; }
.seg > .off { color: var(--line-strong); font-size: 18px; line-height: 1; }
.bigfig { display: flex; flex-direction: column; margin-bottom: 14px; }
.bigfig strong { font-size: 26px; color: var(--ink); font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bigfig span { font-size: 13px; color: var(--muted); }
.bigfig b { color: var(--ink); }
.chart.cum .area { fill: var(--chart-soft); }
.chart.cum .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart.cum .proj { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
.chart.cum .hit { fill: transparent; }
.chart.cum .hit:hover { fill: rgba(41, 82, 204, .07); }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 230px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.wd-bar { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.wd-bar i { display: block; width: 100%; background: var(--chart); border-radius: 3px 3px 0 0; }
.wd-bar i.top { background: var(--blue); }
.wd:hover .wd-bar i { background: var(--blue); }
.wd-l { font-size: 12px; color: var(--muted); }
.split { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--line-2); gap: 2px; }
.split i { display: block; height: 100%; }
.split-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.split-legend > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; align-items: center; }
.split-legend i { width: 10px; height: 10px; border-radius: 2px; }
.split-legend span { font-size: 13px; color: var(--muted); }
.split-legend strong { grid-column: 2; font-size: 19px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.split-legend small { grid-column: 2; font-size: 12px; color: var(--muted); }
tr.total td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); background: var(--surface-2); }
.minor { font-size: 13px; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }

/* API klíče */
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack > .panel { margin: 0; }
.keymeter { display: flex; gap: 4px; padding: 12px 18px 0; }
.keymeter i { flex: 1; height: 5px; border-radius: 2px; background: var(--line-2); max-width: 60px; }
.keymeter i.on { background: var(--blue); }
.keys { list-style: none; margin: 0; padding: 6px 0; }
.keys li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.keys li:last-child { border-bottom: 0; }
.keys li.off { opacity: .6; }
.kicon { width: 36px; height: 36px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.kicon.is-app { background: var(--led-soft); color: var(--led-ink); }
.kmain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.kmain strong { color: var(--ink); font-weight: 600; }
.kmeta { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.kmeta code { font-size: 12px; }
.kused { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.live-dot.on { background: var(--led); box-shadow: 0 0 0 3px var(--led-soft); }
.revoked { border-top: 1px solid var(--line); }
.revoked summary { padding: 11px 18px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
pre.small-code { font-size: 12px; white-space: pre; overflow-x: auto; }
.dgrid.atop { align-items: start; }
.netflow { display: flex; flex-direction: column; align-items: stretch; }
.nf-node { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 8px 12px; text-align: center; font-weight: 650; color: var(--ink); font-size: 14px; }
.nf-node.internet { border-color: var(--blue); color: var(--blue); }
.nf-node.off { border-style: dashed; border-color: var(--line-strong); color: #9aa8bd; text-decoration: line-through; }
.nf-arrow { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; }
.nf-arrow::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--line-strong); }
.nf-arrow span { position: relative; background: var(--surface); font-size: 12px; color: var(--muted); padding: 0 6px; }
.nf-block { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.nf-block li { font-size: 13px; padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--line-2); }
.nf-block li::before { content: "×"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.person { display: inline-flex; align-items: center; gap: 10px; }
.avatar.sm { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-line); color: var(--blue); display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.roles > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.roles strong { color: var(--ink); font-size: 14px; }
.roles span { font-size: 13px; color: var(--muted); }

/* dokumentace: obsah stránky vpravo */
.docwrap { display: grid; grid-template-columns: minmax(0, 880px) minmax(180px, 240px); gap: 48px; align-items: start; justify-content: space-between; }
.doctoc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); padding-left: 16px; }
.doctoc[hidden] { display: none; }
.doctoc strong { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.doctoc nav { display: flex; flex-direction: column; }
.doctoc a { font-size: 13px; color: var(--muted); padding: 4px 0; line-height: 1.35; }
.doctoc a:hover { color: var(--ink); text-decoration: none; }
.doctoc a.on { color: var(--blue); font-weight: 600; }
.in-app .dkey { box-shadow: var(--shadow); }
@media (max-width: 1100px) { .docwrap { grid-template-columns: minmax(0, 1fr); } .doctoc { display: none; } }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.kpad { height: 16px; }
.stack > .grid .panel { margin: 0; }
.invlist { list-style: none; margin: 0; padding: 4px 0; }
.invlist li { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
.invlist li:last-child { border-bottom: 0; }
.invlist li > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.invlist strong { font-size: 13.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invlist .amt { font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }


@media (prefers-reduced-motion: reduce) { .unit.running .led, .sbcard.running .led { animation: none; } }

/* ---------------- responzivita (musí být na konci souboru) */
@media (max-width: 1180px) and (min-width: 961px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .dgrid .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; }
  .side-top { padding: 12px 16px; }
  .navtoggle { display: block; }
  .side-body { display: none; max-height: calc(100vh - 56px); padding-bottom: 8px; }
  .nav-open .side-body { display: flex; }
  .side .credit { margin-top: 10px; }
  .main { padding: 20px 16px 40px; }
  .dgrid > *, .dgrid > .panel { grid-column: 1 / -1; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .meters, .roles, .split-legend { grid-template-columns: 1fr; }
  .dfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head h1 { font-size: 23px; }
  .ph { flex-wrap: wrap; }
  .filters { margin-left: 0; width: 100%; }
  .units { grid-template-columns: 1fr; }
  .g2, .g3, .facts, .steps, .plans, .hero, .auth, .cmp, .uses, .flow, .tcols, .concepts, .usecases { grid-template-columns: 1fr; }
  .cmp > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .concepts dt { border-bottom: 0; padding-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .hero { padding: 40px 0; gap: 30px; }
  .hero h1 { font-size: 36px; }
  .auth .aside { display: none; }
  .top nav { display: none; }
  th, td { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .kpis, .kpis.three { grid-template-columns: 1fr; }
  .heat { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .heat .hd { font-size: 10px; }
  .sbcards { grid-template-columns: 1fr; padding: 12px; }
  .head-actions { width: 100%; }
  .unit.free ~ .unit.free { display: none; }
  .xlab span:nth-child(even) { display: none; }
}

/* nástroje v hlavičce postranního panelu (přepínač vzhledu, menu na mobilu) */
.side-tools { display: flex; align-items: center; gap: 6px; }

/* billing: rozpočet úloh */
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.row > .field.fit { flex: 0 0 auto; }

/* compute preferences: výběr výchozí výkonové třídy */
.cls-list { display: flex; flex-direction: column; gap: 8px; }
.cls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 400; cursor: pointer; margin: 0; }
.cls:hover { border-color: var(--line-strong); }
.cls.on { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.cls.off { cursor: default; background: var(--surface-2); }
.cls.off .cls-name { color: var(--muted); }
.cls input { margin-top: 3px; }
.cls-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cls-name { font-weight: 650; color: var(--ink); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cls-why { color: var(--warn); }
.cls-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; white-space: nowrap; }
.cls-warn { grid-column: 2 / -1; padding: 8px 10px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn-ink); border: 1px solid var(--warn-line); font-size: 13px; }
.cls-warn[hidden] { display: none; }
@media (max-width: 640px) {
  .cls { grid-template-columns: auto minmax(0, 1fr); }
  .cls-price { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* úlohy: detail, stránkování, log */
.pager { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line-2); }
.facts-list { margin: 0; display: flex; flex-direction: column; }
.facts-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.joblog { max-height: 420px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
details.receipt > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
details.receipt > summary h2 { font-size: 15px; }
details.receipt > summary::-webkit-details-marker { display: none; }
details.receipt > summary h2::before { content: "▸ "; color: var(--muted); }
details.receipt[open] > summary h2::before { content: "▾ "; }
details.receipt:not([open]) > summary { border-bottom: 0; }

/* ---------------- homepage (0.13.5): úloha jako jeden celek – životní cyklus, schopnosti, třídy */
.hero-x h1 { max-width: 17ch; }
.assure { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.assure li { position: relative; padding-left: 14px; }
.assure li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--led); }

.demo { background: var(--code-bg); border: 1px solid var(--code-line); color: var(--code-ink); border-radius: var(--r); overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.75; }
.demo > input { position: absolute; opacity: 0; pointer-events: none; }
.demo-tabs { display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid #253756; }
.demo-tabs label { padding: 9px 10px 8px; color: #8796ad; font-size: 12.5px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.demo-tabs label:hover { color: #dbe3ef; }
.demo-note { margin-left: auto; color: #6c7c95; font-size: 11.5px; }
#d-job:checked ~ .demo-tabs label[for="d-job"], #d-batch:checked ~ .demo-tabs label[for="d-batch"], #d-sb:checked ~ .demo-tabs label[for="d-sb"] { color: #fff; border-bottom-color: var(--led); }
#d-job:focus-visible ~ .demo-tabs label[for="d-job"], #d-batch:focus-visible ~ .demo-tabs label[for="d-batch"], #d-sb:focus-visible ~ .demo-tabs label[for="d-sb"] { outline: 2px solid var(--blue); outline-offset: -2px; }
.demo-pane { display: none; margin: 0; padding: 16px 18px 18px; white-space: pre-wrap; min-height: 252px; }
#d-job:checked ~ .p-job, #d-batch:checked ~ .p-batch, #d-sb:checked ~ .p-sb { display: block; }
.demo .c { color: #7f8ea7; } .demo .k { color: #9ec1ff; } .demo .s { color: #b7e4c7; } .demo .o { color: #6c7c95; }
.demo .st { color: #c9d4e4; } .demo .ok { color: var(--led); font-weight: 600; }

.lifecycle { list-style: none; counter-reset: lc; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lifecycle li { counter-increment: lc; position: relative; padding: 30px 22px 0 0; border-top: 2px solid var(--ink); }
.lifecycle li::before { content: counter(lc); position: absolute; top: -13px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font: 700 12px/20px var(--sans); text-align: center; }
.lifecycle li:last-child { border-top-color: var(--led); }
.lifecycle li:last-child::before { border-color: var(--led); background: var(--led); color: #13213a; }
.lifecycle h3 { font-size: 16px; margin-bottom: 6px; }
.lifecycle p { color: var(--text-2); font-size: 14.5px; }

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.caps > div { padding: 20px 0 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.caps h3 { font-size: 16px; }
.caps p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.caps a { font-size: 14px; font-weight: 550; }

.hsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.hsplit .intro { margin-bottom: 16px; }
.more { font-weight: 550; font-size: 14px; }
.classes { margin: 0; border-top: 2px solid var(--ink); }
.classes > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.classes dt { font-weight: 650; color: var(--ink); }
.classes dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.sub { font-size: 18px; margin: 52px 0 18px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usecases-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ways { margin: 8px 0 0; }
.ways > div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.ways dt { font-weight: 650; color: var(--ink); }
.ways dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.closing { padding: 72px 0 80px; text-align: center; }
.closing .intro { margin-left: auto; margin-right: auto; }
.closing h2 { font-size: 34px; max-width: 26ch; margin: 0 auto; }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1100px) { .usecases-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .lifecycle, .caps, .hsplit, .facts-3, .usecases-5 { grid-template-columns: 1fr; }
  .lifecycle { gap: 26px; }
  .hsplit { gap: 28px; }
  .closing h2 { font-size: 27px; }
  .demo-pane { min-height: 0; }
}
@media (max-width: 560px) { .classes > div, .ways > div { grid-template-columns: 1fr; gap: 2px; } }

/* job detail: neúspěšné testy */
.fails { list-style: none; margin: 6px 0 0; padding: 0; }
.fails li { padding: 6px 0; border-top: 1px solid var(--line); }
.fails li:first-child { border-top: 0; }

/* homepage: čím se WBX liší */
.apart { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diffs { margin: 0; display: grid; gap: 0; }
.diffs > div { padding: 14px 0; border-top: 1px solid var(--line); }
.diffs > div:first-child { border-top: 2px solid var(--ink); }
.diffs dt { font-weight: 650; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.diffs dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.term .er { color: #ff9b8a; font-weight: 600; }
.term-note { margin: 0; padding: 10px 16px 14px; font: 12px/1.5 var(--sans); color: #8796ad; }

/* ---------------- 0.14.7: drobnosti technického vzhledu */
.side .theme-toggle:hover { color: var(--side-strong); }
.hsplit > .term, .hsplit > .demo { position: sticky; top: 76px; }
td a.mono, td .mono a { font-size: 12.5px; }
.in-app tr:hover td { background: var(--hover); }
::selection { background: var(--blue-soft); }

/* chybové stránky (404, 403, 419, 429, 500, 503) */
.errpage { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--paper); }
.errbox { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.errbox header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.errbox header a.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.errbox header a.brand:hover { text-decoration: none; }
.errbox .code { font: 500 12px var(--mono); color: var(--muted); }
.errbox .eb { padding: 22px 16px 18px; }
.errbox h1 { font-size: 22px; margin-bottom: 8px; }
.errbox p { color: var(--text-2); }
.errbox pre { margin: 14px 0 16px; padding: 10px 12px; background: var(--code-bg); color: var(--code-muted); border: 1px solid var(--code-line); border-radius: var(--r); font-size: 12px; white-space: pre-wrap; }
.errbox pre b { color: var(--code-accent); font-weight: 500; }
.errbox .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* homepage: MCP a WebAssembly */
.mcpband { background: var(--surface); }
.clients, .wspecs { margin: 4px 0 18px; border-top: 1px solid var(--line); }
.clients > div, .wspecs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.clients dt, .wspecs dt { font: 500 12.5px/1.6 var(--mono); color: var(--ink); }
.clients dd, .wspecs dd { margin: 0; color: var(--text-2); font-size: 14px; }
.mcp-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; max-width: none; }
.mcp-url span { font: 11.5px var(--mono); color: var(--muted); }
.mcp-url code { font-size: 13px; padding: 3px 8px; }
@media (max-width: 560px) { .clients > div, .wspecs > div { grid-template-columns: 1fr; gap: 2px; } }

/* Docs → Connect ChatGPT & Claude: kroky s obrázky (schémata v docs/figs) */
.cn-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; margin: 18px 0 14px; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); }
.cn-url span { font-size: 13px; color: var(--text-2); }
.cn-url code { font-size: 15px; padding: 3px 9px; background: var(--surface); }
.cn-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.cn-pick a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.cn-pick a:hover { border-color: var(--blue); text-decoration: none; }
.cn-pick span { font-size: 12.5px; color: var(--muted); }
.cn-steps { list-style: none; padding: 0; margin: 14px 0 8px; counter-reset: cn; max-width: none !important; }
.cn-steps > li { counter-increment: cn; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.cn-steps > li.cn-noimg { grid-template-columns: minmax(0, 1fr); }
.cn-txt { position: relative; padding-left: 40px; }
.cn-txt::before { content: counter(cn); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.cn-txt h3 { font-size: 16px; margin: 2px 0 6px; }
.cn-txt p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.cn-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cn-prompts p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r); background: var(--surface); font-size: 14px; }
.cn-faq dt { font-weight: 600; margin-top: 12px; }
.cn-faq dd { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; }
/* schémata: barvy z tokenů, takže sedí ve světlém i tmavém vzhledu */
.fig { width: 100%; height: auto; display: block; font-family: var(--sans); }
.fig .fx-win { fill: var(--surface); stroke: var(--line-strong); }
.fig .fx-side, .fig .fx-bar { fill: var(--surface-2); stroke: var(--line); }
.fig .fx-dim { fill: var(--paper); stroke: var(--line); }
.fig .fx-card, .fig .fx-row, .fig .fx-in { fill: var(--surface); stroke: var(--line); }
.fig .fx-hl, .fig .fx-row-hl { fill: var(--blue-soft); stroke: var(--blue-line); }
.fig .fx-in-hl { fill: var(--surface); stroke: var(--blue); stroke-width: 1.5; }
.fig .fx-btn { fill: var(--surface); stroke: var(--line-strong); }
.fig .fx-btn-hl { fill: var(--blue); }
.fig .fx-btn-t { fill: var(--blue-ink); font-size: 13px; font-weight: 600; }
.fig .fx-ph { fill: var(--line); }
.fig .fx-tog { fill: var(--line-strong); } .fig .fx-tog-on { fill: var(--blue); } .fig .fx-knob { fill: #fff; }
.fig .fx-h { fill: var(--ink); font-size: 15px; font-weight: 600; }
.fig .fx-t { fill: var(--text); font-size: 13px; } .fig .fx-b { font-weight: 600; }
.fig .fx-m { fill: var(--muted); font-size: 12.5px; } .fig .fx-note { fill: var(--muted); font-style: italic; }
.fig .fx-l { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.fig .fx-v { fill: var(--ink); font-size: 13px; } .fig .fx-mono { font-family: var(--mono); font-size: 12px; }
.fig .fx-cur { fill: var(--ink); stroke: var(--surface); stroke-width: 1.2; }
@media (max-width: 760px) {
  .cn-pick, .cn-prompts, .cn-steps > li { grid-template-columns: 1fr; }
  .cn-steps > li { gap: 12px; }
}
/* fakturační měna: upozornění u formuláře fakturačních údajů */
.banner.cur-note { display: block; margin: 6px 0 14px; font-size: 14px; line-height: 1.5; }
.banner.cur-note:not(.info) { background: var(--surface-2); border-color: var(--line); color: var(--text); }

/* Fakturace → výběr částky dobití: stejně vysoké volby, zvýrazněná vybraná, „Other“ s polem v řádku */
.amt-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.amt-opt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 400; font-size: 14px; color: var(--text); cursor: pointer; }
.amt-opt:hover { border-color: var(--line-strong); }
.amt-opt:has(input[type="radio"]:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.amt-opt input[type="radio"] { margin: 0; }
.amt-opt input[type="number"] { width: 110px; height: 28px; padding: 2px 8px; margin: 0; }
.ok-text { color: var(--ok-ink); }
.bad-text { color: var(--bad-ink); font-weight: 500; }
