/* Kompas OSVČ – vzhled.
   Koncept: kancelářský papír + účtenka. Výsledky se tisknou jako pásek s tečkovanými vodítky.
   Tokeny (barvy, písma) jsou hned na začátku, aby se daly snadno změnit. */

:root {
  --paper: #edf0f4;
  --card: #ffffff;
  --ink: #0f1b33;
  --ink-2: #4a566e;
  --line: #cdd5e0;
  --accent: #1b47d1;
  --accent-ink: #ffffff;
  --accent-soft: #e3eaff;
  --mark: #ffe15d;
  --mark-ink: #0f1b33;
  --tape: #fbfbf6;
  --good: #0d7a4d;
  --warn: #a64b05;
  --bad: #b42318;
  --shadow: 0 1px 0 rgba(15, 27, 51, .06), 0 10px 30px -18px rgba(15, 27, 51, .35);

  --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 20px;
  --maxw: 1120px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1322;
    --card: #131e35;
    --ink: #e8edf7;
    --ink-2: #a2aec8;
    --line: #28365a;
    --accent: #86a2ff;
    --accent-ink: #0b1322;
    --accent-soft: #1b2a50;
    --mark: #f0d445;
    --mark-ink: #0b1322;
    --tape: #1a2744;
    --good: #4fd08f;
    --warn: #f0a35a;
    --bad: #ff8b7d;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1322;
  --card: #131e35;
  --ink: #e8edf7;
  --ink-2: #a2aec8;
  --line: #28365a;
  --accent: #86a2ff;
  --accent-ink: #0b1322;
  --accent-soft: #1b2a50;
  --mark: #f0d445;
  --mark-ink: #0b1322;
  --tape: #1a2744;
  --good: #4fd08f;
  --warn: #f0a35a;
  --bad: #ff8b7d;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.narrow { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hlavička ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--f-head); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font: 500 .72rem/1.2 var(--f-body); color: var(--ink-2); letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.theme-btn { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.theme-btn:hover { border-color: var(--accent); }
@media (min-width: 980px) {
  .head-row { gap: 24px; }
  .head-wide { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .head-wide .nav { padding-bottom: 0; }
}

/* ---------- tlačítka a formuláře ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--f-body); padding: 13px 20px; border-radius: 8px; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--ink); }
.btn.small { padding: 9px 14px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.form { display: grid; gap: 18px; }
.form.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form.cols { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .lbl, legend.lbl { font-weight: 700; font-size: .95rem; }
.hint { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
input[type="number"], input[type="text"], input[type="date"], input[type="search"], select, textarea {
  font: 500 1.05rem/1.3 var(--f-body); color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 84px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.unit { position: relative; }
.unit input { padding-right: 52px; font-variant-numeric: tabular-nums; }
.unit::after { content: attr(data-unit); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; font-size: .92rem; pointer-events: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 10px 8px; font-weight: 600; font-size: .95rem; cursor: pointer; border-left: 1.5px solid var(--line); }
.seg label:first-of-type { border-left: 0; }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
input[type="range"] { accent-color: var(--accent); width: 100%; }

/* ---------- obsah ---------- */
main { display: block; padding-block: 36px 70px; }
.page-head { display: grid; gap: 14px; margin-bottom: 30px; max-width: 820px; }
.page-head p.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.55; }
.crumbs { font-size: .88rem; color: var(--ink-2); }
.crumbs a { color: inherit; }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; }
.prose h3 { margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 700; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose code, code.k { font-family: var(--f-mono); font-size: .9em; background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.callout { border: 1.5px solid var(--line); border-left-width: 6px; border-radius: 8px; background: var(--card); padding: 14px 18px; }
.callout.note { border-left-color: var(--accent); }
.callout.warn { border-left-color: var(--warn); }
.callout.good { border-left-color: var(--good); }
.callout > * + * { margin-top: .5em; }
.callout strong:first-child { display: block; }

.tbl { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); max-width: 100%; }
.tbl table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--accent-soft); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- úvodní strana ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 8px 20px; align-items: start; }
@media (min-width: 940px) { .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); margin-top: 18px; max-width: 46ch; line-height: 1.55; }
.hero .btn-row { margin-top: 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .92rem; color: var(--ink-2); }
.trust span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--good); border-radius: 50%; margin-right: 8px; }

.mini { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.mini h2 { font-size: 1.25rem; }

.section { margin-top: 64px; }
.section > h2 { margin-bottom: 8px; }
.section > p.sub { color: var(--ink-2); max-width: 62ch; margin-bottom: 22px; }

.index { border-top: 2px solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.index a:hover { background: var(--accent-soft); }
.index .t { font: 700 1.2rem/1.25 var(--f-head); }
.index .d { color: var(--ink-2); font-size: .98rem; }
.index .tag { font-size: .8rem; font-weight: 700; color: var(--accent); }
@media (min-width: 760px) {
  .index a { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) auto; align-items: baseline; padding-inline: 10px; }
  .index .tag { justify-self: end; }
}
.cols-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plain h3 { margin-bottom: 6px; }
.plain p { color: var(--ink-2); }
.plain a { font-weight: 600; }

/* ---------- nástroje: formulář + výsledek ---------- */
.tool { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 20px; }
@media (min-width: 960px) { .tool { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; } .tool .out.sticky { position: sticky; top: 120px; } }
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 22px; }
.panel > h2, .panel > h3 { margin-bottom: 14px; }
.example-note { font-size: .86rem; color: var(--ink-2); margin-top: -4px; }

.tapes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tape {
  position: relative; background: var(--tape); color: var(--ink);
  font-family: var(--f-mono); font-size: .88rem; line-height: 1.5;
  padding: 20px 18px 26px; border: 1px solid var(--line); border-bottom: 0;
  --zig: radial-gradient(circle at 8px 0, transparent 7px, #000 7.5px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, radial-gradient(circle at 9px 0, transparent 6px, #000 6.5px) bottom / 18px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, radial-gradient(circle at 9px 0, transparent 6px, #000 6.5px) bottom / 18px 9px repeat-x;
  filter: drop-shadow(0 8px 12px rgba(15, 27, 51, .12));
}
.tape.best { outline: 3px solid var(--mark); outline-offset: 3px; }
.tape h3 { font: 700 1rem/1.2 var(--f-head); letter-spacing: 0; margin-bottom: 4px; }
.tape .sub { font-size: .78rem; color: var(--ink-2); margin-bottom: 12px; }
.tape .r { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; }
.tape .r .k { flex: none; max-width: 62%; }
.tape .r .dots { flex: 1; border-bottom: 1.5px dotted var(--ink-2); opacity: .55; transform: translateY(-3px); min-width: 8px; }
.tape .r .v { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tape .r.neg .v { color: var(--good); }
.tape .r.sep { margin-top: 8px; padding-top: 8px; border-top: 1.5px solid var(--ink); }
.tape .r.total { font-weight: 700; font-size: 1rem; }
.tape .r.total .v, .tape .net { background: var(--mark); color: var(--mark-ink); padding: 0 6px; }
.tape .net { display: block; margin-top: 12px; padding: 10px 12px; font-weight: 700; }
.tape .net small { display: block; font-weight: 500; font-size: .78rem; }
.tape .net b { font-size: 1.35rem; font-family: var(--f-head); letter-spacing: -.02em; }
.tape .badge { position: absolute; right: 12px; top: 12px; transform: rotate(4deg); background: var(--ink); color: var(--paper); font: 700 .72rem/1 var(--f-body); padding: 6px 9px; border-radius: 4px; }
.tape.off { opacity: .72; }
.tape .why { font-family: var(--f-body); font-size: .86rem; color: var(--bad); margin-top: 8px; }
.verdict { display: grid; gap: 8px; padding: 18px 20px; border-radius: 10px; background: var(--ink); color: var(--paper); margin-bottom: 22px; }
.verdict b { font: 700 1.25rem/1.25 var(--f-head); }
.verdict span { opacity: .85; font-size: .95rem; }
.verdict mark { background: var(--mark); color: var(--mark-ink); padding: 0 5px; border-radius: 3px; }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi .n { font: 800 1.6rem/1.1 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .86rem; color: var(--ink-2); margin-top: 4px; }
.kpi.hl { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.kpi.hl .l { color: var(--mark-ink); opacity: .8; }

/* ---------- FAQ, slovníček ---------- */
.searchbar { margin-bottom: 18px; max-width: 520px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-of-type { border-top: 2px solid var(--ink); }
details.qa > summary { list-style: none; cursor: pointer; padding: 16px 38px 16px 4px; font: 700 1.1rem/1.35 var(--f-head); position: relative; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font: 400 1.6rem/1 var(--f-body); color: var(--accent); }
details.qa[open] > summary::after { content: "\2212"; }
details.qa > div { padding: 0 4px 18px; max-width: 70ch; }
details.qa > div > * + * { margin-top: .7em; }
.gl dt { font: 700 1.1rem/1.3 var(--f-head); margin-top: 22px; }
.gl dd { margin: 4px 0 0; max-width: 70ch; color: var(--ink-2); }
.gl dt:first-child { margin-top: 0; }
.nores { color: var(--ink-2); padding: 14px 0; }

/* ---------- kalendář ---------- */
.cal-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.cal-month { margin: 26px 0 6px; font: 700 1.15rem/1 var(--f-head); }
.ev { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ev .d { font: 700 .98rem/1.2 var(--f-mono); }
.ev .d small { display: block; font: 500 .75rem/1.2 var(--f-body); color: var(--ink-2); margin-top: 2px; }
.ev .t { font-weight: 700; }
.ev .w { font-size: .92rem; color: var(--ink-2); margin-top: 2px; }
.ev .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.ev.past { opacity: .45; }
.ev.next { background: linear-gradient(90deg, var(--mark) 0 6px, transparent 6px); padding-left: 16px; margin-left: -16px; }

/* ---------- checklist ---------- */
.todo { display: grid; gap: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.todo .step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.todo .step input { width: 24px; height: 24px; accent-color: var(--good); margin-top: 2px; }
.todo .step h3 { font-size: 1.08rem; }
.todo .step p { color: var(--ink-2); margin-top: 4px; font-size: .98rem; }
.todo .step.done h3 { text-decoration: line-through; opacity: .6; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 24px; }
.progress i { display: block; height: 100%; width: 0; background: var(--good); transition: width .25s; }

/* ---------- faktura ---------- */
.items { display: grid; gap: 10px; }
.item-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, .9fr) 40px; align-items: end; padding: 12px; border: 1.5px solid var(--line); border-radius: 8px; }
.item-row .wide { grid-column: 1 / -1; }
.item-row .field > label { font-size: .8rem; }
.iconbtn { height: 44px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.iconbtn:hover { border-color: var(--bad); color: var(--bad); }
.invoice { background: #fff; color: #111; border: 1px solid #c9ced8; padding: 34px 36px; font-size: .92rem; line-height: 1.5; box-shadow: var(--shadow); max-width: 820px; }
.invoice h2 { font: 800 1.7rem/1.1 var(--f-head); color: #111; }
.invoice .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid #111; padding-bottom: 14px; margin-bottom: 18px; }
.invoice .parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 18px; }
.invoice .parties h4 { font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 6px; }
.invoice .meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; padding: 12px 14px; background: #f1f3f7; border-radius: 6px; margin-bottom: 18px; }
.invoice table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.invoice th { text-align: left; font-size: .75rem; color: #555; border-bottom: 2px solid #111; padding: 6px 6px; }
.invoice td { padding: 7px 6px; border-bottom: 1px solid #dde1e8; vertical-align: top; }
.invoice .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice .sum { margin-left: auto; width: min(100%, 320px); }
.invoice .sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.invoice .sum .grand { font: 800 1.2rem/1.2 var(--f-head); border-top: 2px solid #111; margin-top: 6px; padding-top: 8px; }
.invoice .pay { display: flex; gap: 18px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.invoice .qr { width: 118px; height: 118px; flex: none; }
.invoice .qr img, .invoice .qr canvas { width: 118px !important; height: 118px !important; }
.invoice .foot { margin-top: 16px; font-size: .8rem; color: #555; }
@media (max-width: 620px) { .invoice { padding: 20px 16px; } .invoice .parties, .invoice .meta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- patička ---------- */
.site-foot { border-top: 2px solid var(--ink); padding-block: 34px 50px; margin-top: 30px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .95rem; }
.site-foot h4 { margin-bottom: 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-foot a { color: var(--ink); }
.disclaimer { grid-column: 1 / -1; color: var(--ink-2); font-size: .86rem; max-width: 90ch; }

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

@media print {
  body { background: #fff; color: #000; padding: 0; }
  .site-head, .site-foot, .no-print, .tool .form-col, .page-head, .crumbs, .prose, .skip { display: none !important; }
  main { padding: 0; }
  .tool { display: block; }
  .invoice { box-shadow: none; border: 0; padding: 0; max-width: none; }
}

[hidden] { display: none !important; }
.items.no-vat .item-row { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.4fr) 40px; }

/* mini kalkulačka na úvodu */
.hbar { display: grid; gap: 6px; }
.hbar .hl { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 600; }
.hbar .hl em { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--mark); color: var(--mark-ink); padding: 2px 7px; border-radius: 3px; margin-left: 6px; }
.hbar .track { height: 14px; background: var(--accent-soft); border-radius: 3px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; transition: width .25s; }
.hbar.best .track i { background: var(--accent); }
.hbar.off { opacity: .5; }
.verdict-line { font-size: 1.02rem; line-height: 1.5; }
.verdict-line mark { background: var(--mark); color: var(--mark-ink); padding: 0 4px; border-radius: 3px; }

/* graf */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--ink); }
.legend i[style] { height: 3px; border: 0; }
.legend i.d1 { border-top: 3px dashed var(--ink); }
.legend i.d2 { border-top: 3px dotted var(--warn); }

/* rozdělení příjmů */
.stack { display: flex; height: 26px; border-radius: 5px; overflow: hidden; margin: 6px 0 14px; background: var(--line); }
.stack i { display: block; height: 100%; min-width: 2px; }
.legend2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend2 li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 48px; gap: 10px; align-items: center; font-size: .95rem; }
.legend2 li i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.legend2 li .muted { text-align: right; }

.form.cols3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 22px; }
.seg { position: relative; }
@media (min-width: 960px) { .tool.wide-form { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); } }

.field { align-content: start; }
.field > label.check, fieldset.field > label.check { font-weight: 500; font-size: .98rem; }
input[type="number"], input[type="text"], input[type="date"], input[type="search"], select { height: 46px; }
select { padding-block: 0; }
.theme-btn svg { width: 20px; height: 20px; display: block; margin: auto; }
