/* Podílový trh – design systém „Fasády“
   Inkoust na krémovém papíře, fasádní barvy, 2px obrysy, posunuté plné stíny, pilulková tlačítka. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #1D2253;
  --ink-2: #3B4170;
  --ink-3: #5A5F86;
  --ink-soft: #3A43A0;
  --paper: #FFFCF6;
  --white: #FFFFFF;
  --mustard: #F6C443;
  --mustard-50: #FFF2C9;
  --pistachio: #9ED3A0;
  --apricot: #FFAE7A;
  --lilac: #BFA9F0;
  --sky: #8FCBF0;
  --glass: #EAF6FF;
  --lav-50: #EFEAF9;
  --line: #E4E1F2;
  --up: #13804A;
  --down: #C2410C;
  --night: #141943;
  --night-2: #1A2050;
  --night-3: #232A63;
  --night-line: #2B3270;
  --night-ink: #FFFCF6;
  --night-mute: #A9AEDB;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --b: 2px solid var(--ink);
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow: 6px 6px 0 var(--ink);
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--mustard); border: var(--b); border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.t, .num { font-variant-numeric: tabular-nums; }
.d { font-family: var(--f-display); }
.mute { color: var(--ink-3); }
.mute-2 { color: var(--ink-2); }
.up { color: var(--up); } .down { color: var(--down); }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Rozvržení ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 64px; padding-bottom: 64px; }
.section--tight { padding-top: 32px; padding-bottom: 32px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.row--between { justify-content: space-between; }
.row--end { align-items: flex-end; }
.grid { display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fill, minmax(var(--min, 340px), 1fr)); }
.grid--fit { grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: var(--gap, 40px); align-items: flex-start; }
.split > .main { flex: 999 1 600px; min-width: 0; }
.split > .side { flex: 1 1 360px; min-width: 0; }

/* ---------- Typografie ---------- */
.display { font-size: clamp(52px, 8vw, 104px); line-height: .92; letter-spacing: -0.045em; font-weight: 800; }
.h1 { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -0.045em; font-weight: 800; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.035em; line-height: 1; font-weight: 800; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; font-weight: 800; }
.h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 600px; }
.big-num { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.label { font-size: 14px; color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 42px; height: 42px; border-radius: 14px; background: var(--mustard); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--ink); transform: rotate(-6deg); }
.logo__word { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo--sm .logo__mark { width: 36px; height: 36px; font-size: 20px; border-radius: 12px; }
.logo--sm .logo__word { font-size: 19px; }

/* ---------- Hlavička ---------- */
.site-head { position: relative; z-index: 20; }
.site-head__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 16px; }
.nav a { padding: 10px 14px; text-decoration: none; border-radius: 999px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; font-weight: 800; }
.nav-pill { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: var(--b); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 15.5px; }
.nav-pill a { padding: 9px 16px; border-radius: 999px; text-decoration: none; }
.nav-pill a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-pill .badge { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--apricot); color: var(--ink); font-size: 13px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.balance-chip { padding: 8px 16px; border-radius: 999px; background: var(--pistachio); border: var(--b); text-decoration: none; }
.balance-chip span { font-size: 13px; font-weight: 600; }
.avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--lilac); border: var(--b); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--f-display); font-weight: 800; flex: none; }
.bell { position: relative; width: 46px; height: 46px; border: var(--b); border-radius: 999px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bell__dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--apricot); border: var(--b); font-size: 11px; font-weight: 800; line-height: 14px; text-align: center; }
.lang-switch { font-weight: 700; font-size: 14px; padding: 8px 12px; border: var(--b); border-radius: 999px; text-decoration: none; }

/* ---------- Tlačítka ---------- */
.btn { --btn-bg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: var(--b); border-radius: 999px; background: var(--btn-bg); color: var(--ink); font: inherit; font-weight: 800; font-size: 16.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { color: var(--ink); }
.btn--primary { --btn-bg: var(--mustard); box-shadow: 0 4px 0 var(--ink); }
.btn--primary:active, .btn--buy:active, .btn--sell:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--ink { --btn-bg: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); background: var(--ink-soft); }
.btn--ghost { --btn-bg: transparent; font-weight: 700; }
.btn--buy { --btn-bg: var(--pistachio); box-shadow: 0 4px 0 var(--ink); }
.btn--sell { --btn-bg: var(--apricot); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; font-weight: 700; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { --btn-bg: var(--lav-50); box-shadow: none; cursor: not-allowed; color: var(--ink-3); }
.link-btn { border: 0; background: none; padding: 8px 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.icon-btn { width: 46px; height: 46px; border: var(--b); border-radius: 999px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; color: var(--ink); text-decoration: none; }

/* ---------- Karty ---------- */
.card { background: var(--white); border: var(--b); border-radius: var(--r-lg); padding: 28px; }
.card--sm { border-radius: var(--r-md); padding: 20px; }
.card--flat { padding: 0; overflow: hidden; }
.card--tint { background: var(--tint, var(--pistachio)); }
.card--shadow { box-shadow: 8px 8px 0 var(--shade, var(--ink)); }
.card--paper { background: var(--paper); }
.card--cream { background: var(--mustard-50); }
.card--lav { background: var(--lav-50); }
.card--ink { background: var(--ink); color: var(--paper); }
.card--ink .mute { color: var(--night-mute); }
.card h2 + *, .card h3 + * { margin-top: 12px; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(2deg); }
.stat { padding: 20px; border: var(--b); border-radius: var(--r-md); background: var(--tint, var(--white)); }
.stat__label { font-weight: 700; font-size: 15px; }
.stat__value { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__note { font-size: 14.5px; }
.kv { display: grid; gap: 12px; font-size: 16.5px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; }
.kv > div > :last-child { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total { padding-top: 12px; border-top: var(--b); }
.kv-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 16px; }
.kv-grid > :nth-child(odd) { color: var(--ink-3); font-weight: 600; }
.kv-grid > :nth-child(even) { font-weight: 700; }
.hl { padding: 2px 10px; border-radius: 10px; background: var(--mustard); }

/* ---------- Štítky, pilulky ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: var(--b); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--mustard { background: var(--mustard); }
.pill--pistachio, .pill--ok { background: var(--pistachio); }
.pill--apricot, .pill--err { background: var(--apricot); }
.pill--lilac { background: var(--lilac); }
.pill--sky, .pill--info { background: var(--sky); }
.pill--cream, .pill--warn { background: var(--mustard-50); }
.pill--white { background: var(--white); }
.pill--sm { padding: 2px 10px; font-size: 13px; }
.frac-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; border: var(--b); font-family: var(--f-display); font-weight: 800; }
.frac-chip--md { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.frac-chip--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.frac-chip--lg { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.chg { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg--up { color: var(--up); } .chg--down { color: var(--down); } .chg--flat { color: var(--ink-3); }
.chg-pill { display: inline-block; min-width: 72px; padding: 5px 0; text-align: center; border: var(--b); border-radius: 999px; font-weight: 700; font-size: 13.5px; background: var(--white); }
.chg-pill.chg--up { background: var(--pistachio); color: var(--ink); }
.chg-pill.chg--down { background: var(--apricot); color: var(--ink); }

/* ---------- Ukazatel postupu ---------- */
.progress { height: 14px; border-radius: 999px; background: var(--lav-50); border: var(--b); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); }
.progress--lg { height: 18px; }
.vote-bar { position: relative; display: flex; height: 26px; border: var(--b); border-radius: 999px; background: var(--paper); overflow: hidden; }
.vote-bar > .for { background: var(--pistachio); border-right: var(--b); }
.vote-bar > .against { background: var(--apricot); border-right: var(--b); }
.vote-bar > .mark { position: absolute; top: -2px; bottom: -2px; border-left: 3px dashed var(--ink); }

/* ---------- Záložky ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { min-height: 48px; padding: 0 20px; border: var(--b); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tab[aria-selected="true"], .tab[aria-current="page"], .tab.is-active { background: var(--tab-bg, var(--mustard)); box-shadow: 3px 3px 0 var(--ink); }
.tab .count { padding: 1px 8px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: var(--b); border-radius: 999px; background: var(--white); }
.seg > * { min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.seg > [aria-pressed="true"], .seg > .is-active, .seg > input:checked + label { background: var(--mustard); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
[hidden] { display: none !important; }

/* ---------- Formuláře ---------- */
.field { display: grid; gap: 8px; font-weight: 700; }
.field__hint { font-weight: 500; font-size: 14px; color: var(--ink-3); }
.field__ok { font-weight: 500; font-size: 14px; color: var(--up); }
.field__err { font-weight: 600; font-size: 14px; color: var(--down); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number], .field input[type=date], .field input[type=datetime-local], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 0 18px; border: var(--b); border-radius: 18px; background: var(--white); font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); }
.field textarea { padding: 14px 18px; min-height: 110px; resize: vertical; }
.field select { padding-right: 40px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input--sm, .field--sm input, .field--sm select { min-height: 48px; border-radius: 14px; font-size: 15.5px; }
.field--inline { grid-auto-flow: column; justify-content: start; align-items: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); font-size: 16px; font-weight: 600; cursor: pointer; }
.choice:has(input:checked) { background: var(--mustard-50); border-color: var(--ink); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
fieldset { margin: 0; padding: 20px 22px; border: var(--b); border-radius: var(--r-md); background: var(--white); }
legend { padding: 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 56px; height: 56px; flex: none; border: var(--b); border-radius: 999px; background: var(--paper); font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--ink); cursor: pointer; }
.stepper button[data-step^="+"] { background: var(--mustard); }
.stepper input { flex: 1; min-width: 0; height: 56px; border: var(--b); border-radius: 18px; text-align: center; font-family: var(--f-display); font-size: 30px; font-weight: 800; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-input { width: 100%; height: 64px; border: var(--b); border-radius: 16px; text-align: center; font-family: var(--f-display); font-size: 30px; font-weight: 800; letter-spacing: .5em; padding-left: .5em; color: var(--ink); background: var(--white); }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Upozornění ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: var(--b); border-radius: 20px; background: var(--paper); font-size: 15.5px; line-height: 1.5; }
.notice + .notice { margin-top: 10px; }
.notice__icon { width: 32px; height: 32px; flex: none; border: var(--b); border-radius: 999px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; }
.notice--ok { background: var(--pistachio); }
.notice--err { background: var(--apricot); }
.notice--warn { background: var(--mustard-50); }
.notice--info { background: var(--sky); }
.notice strong { display: block; }
.risk-note { border: var(--b); border-radius: var(--r-md); padding: 18px 20px; font-size: 14.5px; line-height: 1.55; background: var(--mustard-50); }
.flash-stack { margin: 0 0 20px; }

/* ---------- Tabulky ---------- */
.table-box { background: var(--white); border: var(--b); border-radius: var(--r-lg); padding: 8px 24px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; color: var(--ink-3); font-size: 14px; font-weight: 700; padding: 16px 12px 10px 0; white-space: nowrap; }
.table td { padding: 14px 12px 14px 0; border-top: 2px solid var(--lav-50); vertical-align: middle; }
.table .r { text-align: right; }
.table td.r, .table th.r { padding-right: 0; padding-left: 12px; }
.table tr.is-hl td { background: var(--mustard-50); }
.table a { font-weight: 700; }

/* ---------- Fasáda (ilustrace domu) ---------- */
.facade { display: flex; flex-direction: column; width: var(--w, 170px); }
.facade__roof { height: var(--roof, 34px); background: var(--ink); margin: 0 -8px; }
.facade__roof--gable { clip-path: polygon(0 100%, 50% 0, 100% 100%); height: var(--roof, 46px); }
.facade__roof--flat { clip-path: polygon(0 100%, 4% 0, 96% 0, 100% 100%); }
.facade__roof--mansard { clip-path: polygon(0 100%, 14% 10%, 86% 10%, 100% 100%); }
.facade__wall { position: relative; flex: 1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: var(--win-h, 30px); gap: var(--win-gap, 12px); padding: var(--pad, 14px); border: var(--b); border-bottom: 0; align-content: start; }
.facade__win { border: var(--b); background: var(--glass); border-radius: 3px; }
.facade__win--arch { border-radius: 999px 999px 4px 4px; }
.facade__win.is-lit { background: var(--mustard); }
.facade__door { border: var(--b); background: var(--ink); border-radius: 999px 999px 0 0; grid-row: span 1; }
.facade__split { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--den), 1fr); }
.facade__split > span { border-right: 2px dashed var(--ink); }
.facade__split > span:last-child { border-right: 0; }
.facade__split > .is-share { background: repeating-linear-gradient(135deg, rgba(246,196,67,.85) 0 10px, rgba(246,196,67,.55) 10px 20px); }

/* Ulice na úvodní stránce */
.street { position: relative; margin-top: 8px; }
.street__houses { display: flex; align-items: flex-end; height: 420px; }
.street__house { position: relative; display: flex; flex-direction: column; flex: var(--flex, 1); height: var(--h, 300px); }
.street__house .facade { width: auto; height: 100%; }
.street__house .facade__wall { --win-h: 44px; --win-gap: 14px 12px; padding: 18px 16px 0; border-left-width: 2px; }
.street__house + .street__house .facade__wall { border-left: 0; }
.street__tag { position: absolute; left: 50%; top: var(--top, -30px); transform: translateX(-50%) rotate(var(--tilt, -3deg)); white-space: nowrap; padding: 10px 14px; border-radius: 16px; background: var(--white); border: var(--b); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; z-index: 2; }
.street__tag strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.street__tag span { display: block; font-size: 13.5px; font-weight: 600; }
.street__road { height: 64px; background: var(--ink); }
.ticker-band { background: var(--ink); color: var(--paper); }
.ticker-band__in { display: flex; flex-wrap: wrap; gap: 30px; padding-bottom: 22px; font-size: 15px; }
.ticker-band a { color: var(--paper); text-decoration: none; display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; }
.ticker-band .sym { color: var(--night-mute); }
.ticker-band .chg--up { color: var(--pistachio); }
.ticker-band .chg--down { color: var(--apricot); }
.ticker-band .chg--flat { color: #D7DAF2; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-top: 40px; }
.hero__text { flex: 1 1 560px; min-width: 0; padding-bottom: 24px; }
.hero__card { flex: 1 1 420px; min-width: 0; display: flex; justify-content: flex-end; }
.quote-card { position: relative; width: 400px; max-width: 100%; background: var(--white); border: var(--b); border-radius: 26px; padding: 22px; box-shadow: 8px 8px 0 var(--lilac); transform: rotate(2deg); text-decoration: none; display: block; }
.quote-card .spark { display: block; margin-top: 14px; width: 100%; height: 70px; color: var(--ink); }

/* Karty nabídky */
.offer { display: flex; flex-direction: column; border: var(--b); border-radius: var(--r-lg); overflow: hidden; background: var(--white); text-decoration: none; box-shadow: 6px 6px 0 var(--shade, transparent); color: var(--ink); }
.offer:hover { color: var(--ink); }
.offer:hover .offer__cta { background: var(--mustard); }
.offer__top { position: relative; height: 200px; background: var(--tint); padding: 22px; display: flex; justify-content: space-between; align-items: flex-start; }
.offer__frac { font-family: var(--f-display); font-size: 92px; font-weight: 800; line-height: .8; letter-spacing: -0.05em; }
.offer__top .facade { position: absolute; right: 22px; bottom: 0; --w: 150px; }
.offer__top .facade__wall { --win-h: 26px; --win-gap: 10px; }
.offer__body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.offer__place { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.offer__nums { display: flex; flex-wrap: wrap; gap: 28px; }
.offer__nums .v { font-family: var(--f-display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer__cta { margin-top: auto; min-height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--cta, var(--white)); border: var(--b); font-weight: 800; }

/* Kroky */
.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: var(--b); }
.steps li { padding: 28px 24px 0 0; }
.step-dot { width: 56px; height: 56px; border-radius: 999px; background: var(--tint, var(--mustard)); border: var(--b); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.steps h3 { margin: 18px 0 8px; font-size: 24px; }
.steps p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.big-callout { background: var(--lilac); border: var(--b); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.big-callout > * { flex: 1 1 380px; min-width: 0; }

/* Detail titulu */
.title-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-top: 20px; }
.title-hero__text { flex: 1 1 540px; min-width: 0; padding-bottom: 28px; }
.title-hero__art { flex: 1 1 380px; display: flex; justify-content: center; }
.title-hero__art .facade { --w: 380px; }
.title-hero__art .facade__wall { --win-h: 54px; --win-gap: 16px 14px; --pad: 22px; }
.title-hero__art .facade__roof--gable { --roof: 70px; }
.ground { height: 18px; background: var(--ink); }
.metrics { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 26px; }
.metrics .v { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.breadcrumb { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }

/* Dokumenty */
.doc-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border: var(--b); border-radius: 20px; background: var(--white); text-decoration: none; }
.doc-icon { width: 40px; height: 48px; flex: none; border: var(--b); border-radius: 6px 14px 6px 6px; background: var(--tint, var(--mustard)); }

/* Seznamy (portfolio, události) */
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: var(--b); border-radius: 20px; background: var(--white); text-decoration: none; color: var(--ink); }
.list-item:hover { color: var(--ink); background: var(--mustard-50); }
.list-item__main { flex: 1; min-width: 0; }
.list-item__title { display: block; font-weight: 700; font-size: 16.5px; }
.list-item__sub { display: block; font-size: 14px; color: var(--ink-3); }
.list-item__end { text-align: right; }
.list-item.is-current { background: var(--mustard-50); box-shadow: 5px 5px 0 var(--ink); }

/* Účet */
.acct-head { padding-top: 28px; padding-bottom: 8px; }
.empty { text-align: center; padding: 48px 24px; }
.empty .facade { margin: 0 auto 24px; }

/* Registrace a přihlášení */
.auth-split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; max-width: 560px; background: var(--mustard); border-right: var(--b); padding: 32px 40px; display: flex; flex-direction: column; gap: 32px; }
.auth-main { flex: 999 1 560px; min-width: 0; padding: 48px 56px 72px; display: flex; justify-content: center; }
.auth-main > div { width: 100%; max-width: 640px; }
.auth-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; border: 2px solid transparent; }
.auth-steps li.is-current { background: var(--paper); border-color: var(--ink); }
.auth-steps .dot { width: 36px; height: 36px; flex: none; border-radius: 999px; border: var(--b); background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; }
.auth-steps li.is-done .dot { background: var(--ink); color: var(--paper); }
.mini-street { margin-top: auto; display: flex; align-items: flex-end; height: 150px; }
.mini-street > span { flex: 1; border: var(--b); border-bottom: 0; }
.mini-street > span + span { border-left: 0; }
.login-page { min-height: 100vh; background: var(--sky); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 480px; background: var(--paper); border: var(--b); border-radius: 32px; padding: 36px; box-shadow: 10px 10px 0 var(--ink); }
.login-street { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; height: 300px; padding: 0 2%; }
.login-street > span { flex: 1; border: var(--b); border-bottom: 0; }
.login-street > span + span { border-left: 0; }
.login-road { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--ink); }
.qr-box { width: 200px; height: 200px; background: var(--white); border: var(--b); border-radius: 22px; padding: 14px; display: flex; align-items: center; justify-content: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.qr-box--sm { width: 120px; height: 120px; padding: 8px; border-radius: 14px; }

/* Onboarding (průvodce) */
.wizard { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.wizard__nav { flex: 1 1 280px; max-width: 320px; background: var(--white); border: var(--b); border-radius: var(--r-lg); padding: 12px; }
.wizard__nav ol { margin: 0; padding: 0; list-style: none; }
.wizard__nav li a, .wizard__nav li > span { width: 100%; display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.wizard__nav li.is-current a, .wizard__nav li.is-current > span { background: var(--mustard-50); }
.wizard__nav .dot { width: 30px; height: 30px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 2px solid var(--line); background: var(--white); }
.wizard__nav li.is-done .dot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wizard__nav li.is-current .dot { border-color: var(--ink); }
.wizard__nav .t1 { display: block; font-weight: 700; font-size: 14.5px; }
.wizard__nav .t2 { display: block; font-size: 12.5px; color: var(--ink-3); }
.wizard__main { flex: 999 1 560px; min-width: 0; background: var(--white); border: var(--b); border-radius: var(--r-lg); padding: 32px; }
.check-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); }
.check-row--ok { background: var(--pistachio); border-color: var(--ink); }
.check-row--warn { background: var(--mustard-50); border-color: var(--ink); }
.check-row--fail { background: var(--apricot); border-color: var(--ink); }
.check-row .ic { width: 28px; height: 28px; flex: none; border: var(--b); border-radius: 999px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.dropzone { border: 2px dashed var(--ink); border-radius: var(--r-md); padding: 22px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); }
.contract-body { border: var(--b); border-radius: var(--r-md); background: var(--paper); padding: 24px; max-height: 420px; overflow-y: auto; font-size: 15.5px; line-height: 1.6; }
.contract-body h2 { font-size: 20px; margin: 18px 0 6px; }
.contract-draft { padding: 10px 14px; border-radius: 12px; background: var(--mustard-50); border: var(--b); font-weight: 700; }

/* Události */
.event-hero { padding: 28px 30px; border-bottom: var(--b); background: var(--tint, var(--mustard)); }

/* FAQ */
.faq details { border: var(--b); border-radius: 24px; background: var(--white); overflow: hidden; }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 0 22px; font-weight: 800; font-size: 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 36px; height: 36px; flex: none; border: var(--b); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); font-family: var(--f-display); }
.faq details[open] { background: var(--mustard-50); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: var(--b); border-radius: 32px; overflow: hidden; background: var(--white); }
.journey > div { padding: 28px; border-right: var(--b); display: flex; flex-direction: column; gap: 18px; background: var(--tint); }
.journey > div:last-child { border-right: 0; }
.journey .art { height: 170px; display: flex; align-items: center; justify-content: center; }
.timeline-day { display: grid; grid-template-columns: 1fr .4fr 6fr .6fr 3fr; border: var(--b); border-radius: 24px; overflow: hidden; min-height: 150px; }
.timeline-day > div { padding: 16px; border-right: var(--b); }
.timeline-day > div:last-child { border-right: 0; }

/* Patička */
.site-foot { background: var(--ink); color: #D7DAF2; margin-top: 40px; }
.site-foot__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 28px; font-size: 15px; }
.site-foot a { color: #D7DAF2; }
.site-foot h2 { color: var(--paper); font-size: 24px; }
.site-foot .legal { padding-bottom: 32px; font-size: 13.5px; color: var(--night-mute); }
.site-foot .risk { grid-column: span 2; line-height: 1.6; }

/* Oznámení (rozbalovací) */
.notif-list { display: grid; gap: 10px; }
.notif { display: flex; gap: 14px; padding: 14px 16px; border: var(--b); border-radius: 18px; background: var(--white); text-decoration: none; }
.notif.is-unread { background: var(--mustard-50); }

/* ---------- Tmavý terminál ---------- */
body.night { background: var(--night); color: var(--night-ink); font-size: 13px; }
body.night a { color: var(--night-ink); }
.term-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--night-line); background: var(--night-2); }
.term-head .logo__mark { width: 34px; height: 34px; font-size: 19px; border-radius: 11px; color: var(--night); }
.term-head .logo__word { font-size: 18px; color: var(--night-ink); }
.term-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--night-3); color: var(--night-mute); min-width: 240px; }
.term-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--night-ink); font: inherit; }
.phase-pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--night-line); font-weight: 700; }
.phase-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--pistachio); }
.phase-pill.is-closed .dot { background: var(--apricot); }
.term-cash { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.term-cash .l { font-size: 11px; color: var(--night-mute); }
.term-cash .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.term-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--night-line); min-height: calc(100vh - 59px); }
.term-col { background: var(--night-2); min-width: 0; }
.term-watch { flex: 1 1 230px; max-width: 290px; }
.term-main { flex: 999 1 560px; background: var(--night); display: flex; flex-direction: column; }
.term-side { flex: 1 1 320px; max-width: 370px; display: flex; flex-direction: column; }
.term-h { padding: 12px 14px 6px; display: flex; justify-content: space-between; align-items: baseline; color: var(--night-mute); font-weight: 700; font-size: 12.5px; }
.term-h .d { font-size: 15px; color: var(--night-ink); }
.watch-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--night-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.watch-item.is-current { background: var(--night-3); border-left-color: var(--pistachio); }
.watch-item .s { display: block; font-size: 11.5px; color: var(--night-mute); }
.watch-item .p { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.term-title { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; border-bottom: 1px solid var(--night-line); }
.term-title .metrics-mini { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.term-title .l { font-size: 11px; color: var(--night-mute); }
.term-title .v { font-variant-numeric: tabular-nums; }
body.night .chg--up, body.night .up { color: var(--pistachio); }
body.night .chg--down, body.night .down { color: var(--apricot); }
.tf-row { padding: 10px 18px 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tf-row button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--night-mute); font: inherit; font-weight: 700; cursor: pointer; }
.tf-row button.is-active { background: var(--night-line); color: var(--night-ink); }
.chart-box { position: relative; height: 340px; margin: 10px 18px 0; border-bottom: 1px solid var(--night-line); }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--night-mute); }
.term-tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--night-line); }
.term-tabs button { height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--night-mute); font: inherit; font-weight: 700; cursor: pointer; }
.term-tabs button.is-active { border-bottom-color: var(--pistachio); color: var(--night-ink); }
.term-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.term-table th { color: var(--night-mute); text-align: left; font-size: 11.5px; font-weight: 700; padding: 10px 8px 8px 0; }
.term-table td { padding: 10px 8px 10px 0; border-top: 1px solid var(--night-3); font-variant-numeric: tabular-nums; }
.term-table .r { text-align: right; }
.term-table button { height: 30px; padding: 0 12px; border: 1px solid #4A52A0; border-radius: 999px; background: transparent; color: var(--night-ink); font: inherit; cursor: pointer; }
.book-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 14px; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.book-row .bar { position: absolute; right: 0; top: 1px; bottom: 1px; }
.book-row.ask .bar { background: rgba(255,174,122,.18); }
.book-row.bid .bar { background: rgba(158,211,160,.18); }
.book-row span { position: relative; }
.book-row span:nth-child(2), .book-row span:nth-child(3) { text-align: right; }
.book-row span:nth-child(3) { color: #C9CCEB; }
.book-row.ask span:first-child { color: var(--apricot); }
.book-row.bid span:first-child { color: var(--pistachio); }
.book-mid { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 14px; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.ticket { margin: 12px 14px 14px; padding: 14px; border-radius: 22px; background: #1D2457; border: 1px solid var(--night-line); }
.ticket .side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--night); }
.ticket .side-switch button { height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--night-mute); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.ticket .side-switch .is-buy { background: var(--pistachio); color: var(--night); }
.ticket .side-switch .is-sell { background: var(--apricot); color: var(--night); }
.ticket .types { margin-top: 12px; display: flex; gap: 6px; }
.ticket .types button { flex: 1; height: 36px; border: 2px solid #3A4290; border-radius: 999px; background: transparent; color: var(--night-mute); font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }
.ticket .types button.is-active { border-color: var(--pistachio); color: var(--night-ink); }
.ticket label { display: block; margin-top: 12px; color: var(--night-mute); font-size: 11.5px; font-weight: 700; }
.ticket .num-in { margin-top: 4px; display: flex; align-items: center; height: 44px; border: 1px solid #3A4290; border-radius: 10px; background: var(--night); }
.ticket .num-in button { width: 40px; height: 42px; border: 0; background: transparent; color: var(--night-ink); font: inherit; font-size: 18px; cursor: pointer; }
.ticket .num-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--night-ink); text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket .pcts { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ticket .pcts button { height: 28px; border: 1px solid #3A4290; border-radius: 999px; background: transparent; color: #C9CCEB; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ticket select { height: 32px; border: 1px solid #3A4290; border-radius: 999px; background: var(--night); color: var(--night-ink); font: inherit; font-size: 12px; padding: 0 10px; }
.ticket .sum { margin-top: 12px; display: grid; gap: 6px; }
.ticket .sum div { display: flex; justify-content: space-between; }
.ticket .sum span:first-child { color: var(--night-mute); }
.ticket .send { margin-top: 12px; width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--pistachio); color: var(--night); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.ticket .send.is-sell { background: var(--apricot); }
.ticket .msg { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.ticket .msg.ok { background: var(--night-line); color: var(--pistachio); }
.ticket .msg.err { background: #4A1F2A; color: var(--apricot); }
.trade-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 14px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.trade-row span:nth-child(2), .trade-row span:nth-child(3) { text-align: right; }
.trade-row span:nth-child(3) { color: var(--night-mute); }
.term-banner { margin: 12px 18px 0; padding: 10px 14px; border-radius: 14px; background: var(--night-line); color: var(--mustard); font-weight: 700; }

/* ---------- Administrace ---------- */
body.admin { background: var(--paper); }
.admin-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.admin-nav { flex: 1 1 240px; max-width: 260px; background: var(--ink); color: #D7DAF2; padding: 18px 12px; }
.admin-nav .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: var(--white); }
.admin-nav .brand .logo__mark { width: 40px; height: 40px; font-size: 22px; }
.admin-nav .brand b { display: block; font-size: 15px; }
.admin-nav .brand small { display: block; font-size: 11.5px; color: var(--night-mute); }
.admin-nav .grp { padding: 16px 10px 6px; font-size: 13px; font-weight: 700; color: var(--night-mute); }
.admin-nav a.item { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: #D7DAF2; text-decoration: none; font-size: 14px; font-weight: 600; }
.admin-nav a.item:hover { background: var(--night-line); }
.admin-nav a.item[aria-current="page"] { background: var(--mustard); color: var(--ink); }
.admin-nav .badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.admin-nav a.item[aria-current="page"] .badge { background: var(--paper); }
.admin-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--white); border-bottom: var(--b); }
.admin-top h1 { font-size: 22px; letter-spacing: -0.02em; }
.admin-body { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.admin-body .card { border-radius: 26px; padding: 22px; }
.admin-body .table { font-size: 15px; }
.admin-body .table td { padding: 11px 12px 11px 0; }
.admin .btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi { border: var(--b); border-radius: 22px; padding: 18px; background: var(--tint, var(--white)); box-shadow: 4px 4px 0 var(--ink); }
.kpi .l { font-size: 13.5px; font-weight: 700; }
.kpi .v { margin-top: 6px; font-family: var(--f-display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .n { font-size: 13.5px; }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { font-size: 13.5px; }
.pager { display: flex; gap: 8px; align-items: center; }
.matrix td { text-align: center; }
.matrix .yes { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: var(--b); border-radius: 999px; font-weight: 800; }
.matrix .no { display: inline-block; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 999px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--lav-50); padding: 2px 6px; border-radius: 6px; }
.doc-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doc-preview a { aspect-ratio: 1.4; border: var(--b); border-radius: 14px; background: var(--lav-50); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border: var(--b); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; }

/* ---------- Mobil (PWA) ---------- */
.m-tabbar { display: none; }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-head__in { padding-top: 14px; padding-bottom: 14px; }
  .site-head .nav, .site-head .nav-pill { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .site-head .nav-pill { display: none; }
  .head-actions .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
  .balance-chip { display: none; }
  .street__houses { height: 300px; }
  .street__house:nth-child(n+6) { display: none; }
  .street__tag strong { font-size: 16px; }
  .street__tag span { display: none; }
  .street__house .facade__wall { --win-h: 28px; --win-gap: 10px 8px; padding: 12px 10px 0; }
  .quote-card { transform: none; }
  .card { padding: 22px; }
  .auth-main { padding: 28px 16px 56px; }
  .auth-side { padding: 24px 16px; max-width: none; border-right: 0; border-bottom: var(--b); }
  .mini-street { display: none; }
  .wizard__nav { max-width: none; }
  .wizard__main { padding: 22px; }
  .timeline-day { grid-template-columns: 1fr; }
  .timeline-day > div { border-right: 0; border-bottom: var(--b); }
  .site-foot .risk { grid-column: auto; }
  .offer__frac { font-size: 72px; }
  .title-hero__art .facade { --w: 280px; }
  body.has-tabbar { padding-bottom: 96px; }
  .m-tabbar { display: grid; position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 50; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 999px; background: var(--ink); }
  .m-tabbar a { min-height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #D7DAF2; text-decoration: none; font-weight: 700; font-size: 14px; }
  .m-tabbar a[aria-current="page"] { background: var(--mustard); color: var(--ink); }
  .term-watch, .term-side { max-width: none; }
  .admin-nav { max-width: none; }
}

@media print {
  .site-head, .site-foot, .m-tabbar, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- JS pomocníci ---------- */
.js-hide { display: none !important; }
@keyframes pt-flash { from { background: var(--mustard); } to { background: transparent; } }
.flash { animation: pt-flash 1.2s ease-out; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

/* Terminál na úzkých displejích: sloupce pod sebou, bez vodorovného posunu */
@media (max-width: 900px) {
  .term-grid { flex-direction: column; flex-wrap: nowrap; }
  .term-watch, .term-main, .term-side { flex: 1 1 auto; max-width: none; width: 100%; min-width: 0; }
  .term-watch [data-watch] { display: flex; overflow-x: auto; }
  .term-watch .watch-item { flex: 0 0 auto; width: auto; min-width: 150px; border-left: 0; border-bottom: 3px solid transparent; }
  .term-watch .watch-item.is-current { border-bottom-color: var(--pistachio); }
  .term-title .metrics-mini { margin-left: 0; }
  .chart-box { height: 260px; }
  .term-head { flex-wrap: wrap; }
  .term-search { flex: 1 1 200px; }
}

/* ---------- Administrace: doplňky ---------- */
.auth-solo { max-width: 460px; margin: 8vh auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.admin-body h2 { font-size: 20px; letter-spacing: -0.01em; }
.admin-body .table-box { overflow-x: auto; }
.admin-body .table th { font-size: 13px; }
.admin-body .small { font-size: 13.5px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.admin-form { display: grid; gap: 12px; }
.admin-form .field { font-size: 14px; }
.admin-form .row { --gap: 10px; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 6px 12px 6px 0; width: 40%; vertical-align: top; }
.kv-table td { padding: 6px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.pager { display: flex; gap: 8px; align-items: center; }
.tabs-admin { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs-admin a { padding: 6px 14px; border: var(--b); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; background: var(--white); }
.tabs-admin a[aria-current="page"] { background: var(--ink); color: var(--white); }
.diff-bad { background: #FDE2D6; }
.admin-body .card .table-box { border: 0; padding: 0; box-shadow: none; border-radius: 0; background: transparent; }

/* Nastavení */
.settings-card { scroll-margin-top: 64px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 18px; margin-top: 14px; }
.settings-grid .field { font-size: 14px; align-content: start; }
.settings-grid .field.is-missing input { border-color: var(--down); background: var(--mustard-50); }
#kalendar, #historie { scroll-margin-top: 64px; }

/* Šablony dokumentů */
.contract-body h3 { font-size: 17px; margin: 14px 0 4px; }
.contract-body h4 { font-size: 15.5px; margin: 12px 0 4px; }
.contract-body p { margin: 0 0 10px; }
.contract-body ul, .contract-body ol { margin: 0 0 10px; padding-left: 26px; }
.contract-body li { margin: 2px 0; }
.contract-body blockquote { margin: 0 0 10px; padding: 4px 0 4px 16px; border-left: 4px solid var(--lav-50); }
.contract-body hr { border: 0; border-top: 2px solid var(--lav-50); margin: 16px 0; }
.contract-body table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14.5px; }
.contract-body th, .contract-body td { border: 1.5px solid var(--ink-3); padding: 6px 10px; text-align: left; vertical-align: top; }
.contract-body th { background: var(--paper); }
.contract-body .contract-draft { margin: 0 0 12px; }
.tpl-missing { background: #FDE2D6; color: var(--ink); padding: 0 3px; border-radius: 4px; }

.tpl-status { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.tpl-status > div { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; scroll-margin-top: 16px; }
@media (max-width: 1100px) { .tpl-layout { grid-template-columns: minmax(0, 1fr); } }
.tpl-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.tpl-varsearch { margin-top: 10px; min-height: 40px; padding: 0 14px; border: var(--b); border-radius: 999px; font: inherit; font-size: 14px; }
.tpl-varlist { margin-top: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.tpl-vargroup { margin: 10px 0 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.tpl-varbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.tpl-varbtn small { font-weight: 500; font-size: 12px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-varbtn:hover, .tpl-varbtn:focus-visible { background: var(--lav-50); }
.tpl-editor { margin-top: 14px; border: var(--b); border-radius: 18px; background: var(--white); }
.tpl-toolbar, .tpl-tabletools, .tpl-linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: var(--b); }
.tpl-toolbar { position: sticky; top: 0; z-index: 3; background: var(--white); border-radius: 18px 18px 0 0; }
.tpl-toolbar button, .tpl-tabletools button, .tpl-toolbar select { min-height: 34px; min-width: 34px; padding: 0 9px; border: 1.5px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tpl-toolbar select { border-color: var(--ink-3); background: var(--white); }
.tpl-toolbar button:hover, .tpl-tabletools button:hover { background: var(--lav-50); }
.tpl-toolbar button[aria-pressed="true"] { background: var(--mustard); border-color: var(--ink); }
.tpl-toolbar button:disabled, .tpl-toolbar select:disabled { opacity: .35; cursor: default; }
.tpl-tabletools, .tpl-linkbar { background: var(--paper); }
.tpl-tabletools button { border-color: var(--ink-3); background: var(--white); }
.tpl-linkbar input { flex: 1 1 260px; min-height: 36px; padding: 0 12px; border: var(--b); border-radius: 10px; font: inherit; }
.tpl-sep { width: 1.5px; height: 22px; background: var(--lav-50); margin: 0 4px; }
.tpl-grow { flex: 1 1 auto; }
.tpl-area { min-height: 420px; max-height: none; border: 0; border-radius: 0; background: var(--white); outline: none; }
.tpl-area:focus { box-shadow: inset 0 0 0 3px var(--mustard-50); }
.tpl-source { display: block; width: 100%; min-height: 420px; padding: 16px; border: 0; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; background: #FBFAF5; }
.tpl-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: var(--b); }
[data-tpl-state].is-dirty { color: var(--down); font-weight: 700; }
.tpl-var { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 999px; background: var(--sky); border: 1.5px solid var(--ink-3); font-size: .86em; font-weight: 700; line-height: 1.55; white-space: nowrap; cursor: default; user-select: all; }
.tpl-var--unknown { background: #FDE2D6; border-color: var(--down); }
.tpl-doc-title { margin-top: 0 !important; font-size: 24px !important; }
.tpl-review { border-color: var(--ink); background: var(--mustard-50); }
.tpl-diff > div { padding: 2px 8px; margin: 0 -8px; border-radius: 6px; }
.tpl-diff .diff-same { opacity: .55; }
.tpl-diff .diff-add { background: #DDF1D9; }
.tpl-diff .diff-del { background: #FDE2D6; text-decoration: line-through; }
.tpl-diff .diff-change { background: var(--mustard-50); }
.tpl-diff ins, .tpl-review ins, .card ins { background: #BFE6B6; text-decoration: none; }
.tpl-diff del, .card del { background: #F7C4AE; }
.diff-key { padding: 2px 8px; border-radius: 6px; margin-left: 4px; }
.diff-key--add { background: #DDF1D9; } .diff-key--del { background: #FDE2D6; } .diff-key--chg { background: var(--mustard-50); }
.diff-fold { margin: 6px 0; }
.diff-fold > summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-3); padding: 6px 10px; border: 1.5px dashed var(--ink-3); border-radius: 10px; list-style: none; }
.diff-fold[open] > summary { margin-bottom: 6px; }

/* Vstup s PINem (vývojová verze) */
.dev-strip { background: var(--ink); color: var(--mustard); text-align: center; font-size: 13px; font-weight: 700; padding: 5px var(--gutter); letter-spacing: .02em; }
.gate-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(29, 34, 83, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate { box-sizing: border-box; position: fixed; inset: 0; z-index: 91; margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border: var(--b); border-radius: var(--r-xl, 28px); background: var(--white); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.gate::backdrop { background: rgba(29, 34, 83, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.is-gated .gate-backdrop { display: none; }
.is-gated body { overflow: hidden; }
.gate__top { display: flex; align-items: center; gap: 12px; }
.gate__top .logo__mark { width: 44px; height: 44px; font-size: 24px; }
.gate__lang { margin-left: auto; font-weight: 700; font-size: 14px; }
.gate__title { margin-top: 18px; font-family: var(--f-display); font-size: clamp(24px, 5vw, 30px); line-height: 1.12; letter-spacing: -0.02em; }
.gate__text { margin-top: 12px; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.gate__form { margin-top: 20px; display: grid; gap: 10px; }
.gate__row { display: flex; gap: 10px; flex-wrap: wrap; }
.gate__pin { flex: 1 1 160px; min-width: 0; width: 100%; box-sizing: border-box; min-height: 56px; padding: 0 18px; border: var(--b); border-radius: 16px; font: 700 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5em; text-align: center; text-transform: uppercase; background: var(--paper); color: var(--ink); }
.gate__pin:focus { outline: 3px solid var(--mustard); outline-offset: 2px; }
.gate__pin.is-error { border-color: var(--down); background: #FDE2D6; }
.gate__row .btn { min-height: 56px; }
@media (max-width: 420px) { .gate { padding: 22px 18px; } .gate__row .btn { flex: 1 1 100%; } }
.offer__demo { position: absolute; left: 22px; bottom: 16px; z-index: 2; }
.demo-login { margin-top: 22px; padding: 16px 18px; border: 2px dashed var(--ink); border-radius: 18px; background: var(--lilac); display: grid; gap: 8px; }
.log-file { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.log-file small { color: var(--ink-3); font-weight: 500; }
.log-file:hover { background: var(--lav-50); }
.log-file.is-active { background: var(--mustard); }
.log-view { margin-top: 10px; max-height: 70vh; overflow: auto; padding: 14px; border: var(--b); border-radius: 14px; background: #141943; color: #D7DAF2; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.log-view .log-err { color: #FFAE7A; font-weight: 700; }
