/* Aplikace pro řemeslníky – vzhled
   Jedna úzká pracovní obrazovka. Žluté „staveništní“ tlačítko je jediný hlavní ovladač,
   dole lišta s celkovou cenou a dalším krokem. Vysoký kontrast kvůli práci venku. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #EEF0F2;
  --surface: #FFFFFF;
  --ink: #12161A;
  --muted: #4A5560;
  --line: #CDD4DA;
  --hair: #E0E4E8;
  --accent: #F5B800;
  --accent-ink: #12161A;
  --accent-shadow: #A87E00;
  --graphite: #14181C;
  --graphite-2: #232A31;
  --on-graphite: #F4F5F6;
  --on-graphite-muted: #A9B2BB;
  --shadow-1: 0 1px 2px rgba(18,22,26,.06), 0 8px 24px rgba(18,22,26,.07);
  --steel: #1E3A5C;
  --danger: #B3141A;
  --danger-bg: #FDE7E6;
  --go: #0B7A3B;
  --go-ink: #FFFFFF;
  --scrim: rgba(5,10,14,.55);
  --paper: #FFFFFF;
  --paper-ink: #111418;
  --paper-muted: #5A6570;
  --paper-line: #D5DBE0;
  --paper-fill: #F1F3F5;
  --f-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1013; --surface: #171C21; --ink: #F2F4F6; --muted: #A3ADB7; --line: #333C45; --hair: #262D34;
    --accent-shadow: #7A5B00; --graphite: #06080A; --graphite-2: #1B2127; --shadow-1: 0 1px 0 rgba(0,0,0,.5);
    --steel: #8DB4E2; --danger: #FF7A70; --danger-bg: #3B1614; --go: #22A55A; --go-ink: #04130A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1013; --surface: #171C21; --ink: #F2F4F6; --muted: #A3ADB7; --line: #333C45; --hair: #262D34;
  --accent-shadow: #7A5B00; --graphite: #06080A; --graphite-2: #1B2127; --shadow-1: 0 1px 0 rgba(0,0,0,.5);
  --steel: #8DB4E2; --danger: #FF7A70; --danger-bg: #3B1614; --go: #22A55A; --go-ink: #04130A; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 19px; line-height: 1.35;
  -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within { outline: 3px solid var(--steel); outline-offset: 2px; }
img { max-width: 100%; }

.app { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px 190px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.top { display: flex; align-items: center; gap: 12px; min-height: 64px; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 5; }
.top h1 { font-size: 26px; font-weight: 800; flex: 1; min-width: 0; line-height: 1.1; }
.back { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.back svg { width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand b { font-family: var(--f-display); font-size: 24px; font-weight: 800; display: block; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 15px; }
.label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Hlavní tlačítko */
.mic-btn { margin-top: 8px; width: 100%; min-height: 200px; border-radius: 22px; background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; box-shadow: 0 4px 0 var(--accent-shadow); border: 3px solid var(--ink); }
.mic-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-shadow); }
.mic-btn .ring { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.mic-btn .ring svg { width: 50px; height: 50px; }
.mic-btn span:last-child { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; }
.mic-hint { text-align: center; color: var(--muted); font-size: 17px; margin: 10px 0 18px; }

.q-row { width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.q-row .t { font-weight: 700; font-size: 19px; min-width: 0; overflow-wrap: anywhere; }
.q-row .sum { font-family: var(--f-display); font-weight: 800; font-size: 22px; white-space: nowrap; }
.q-row .meta { color: var(--muted); font-size: 16px; grid-column: 1 / -1; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 14px; font-weight: 700; padding: 1px 10px; border-radius: 999px; border: 2px solid currentColor; white-space: nowrap; }
.pill.sent { color: var(--go); } .pill.draft { color: var(--muted); } .pill.miss { color: var(--danger); }
.empty-state { background: var(--surface); border: 2px dashed var(--line); border-radius: 14px; padding: 18px 16px; color: var(--muted); font-size: 18px; }

.tabbar, .dock { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 2px solid var(--line); z-index: 6;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.tabbar-in { max-width: 540px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tab { min-height: 62px; border-radius: 12px; font-weight: 700; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Velká tlačítka */
.big { width: 100%; min-height: 66px; border-radius: 14px; font-family: var(--f-display); font-weight: 800; font-size: 25px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-align: center; line-height: 1.05; }
.big svg { width: 28px; height: 28px; flex: none; }
.big.primary { background: var(--accent); color: var(--accent-ink); border: 3px solid var(--ink); }
.big.dark { background: var(--ink); color: var(--bg); }
.big.ghost { background: var(--surface); border: 2px solid var(--line); color: var(--ink); font-size: 21px; min-height: 60px; }
.big.go { background: var(--go); color: var(--go-ink); }
.big.danger { background: var(--danger); color: #fff; }
.big[disabled] { opacity: .45; cursor: not-allowed; }
.small-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-actions button { flex: 1; min-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 17px; padding: 0 12px; }
.small-actions button.warn { color: var(--danger); border-color: var(--danger); }

/* Diktování */
.dictate { width: 100%; min-height: 220px; font: inherit; font-size: 21px; line-height: 1.4; color: var(--ink); background: var(--surface); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; resize: vertical; }
.how { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 17px; }
.how .k { width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; }
.how .k svg { width: 26px; height: 26px; }
.example { font-size: 16px; color: var(--muted); border-left: 4px solid var(--line); padding: 4px 0 4px 12px; }
.example button { color: var(--steel); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; min-height: 40px; }

/* Nabídka */
.cust { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.cust button { display: block; width: 100%; text-align: left; padding: 10px 16px; min-height: 64px; }
.cust button + button { border-top: 2px solid var(--line); }
.cust .v { font-size: 21px; font-weight: 700; display: block; overflow-wrap: anywhere; }
.cust .v.ph { color: var(--muted); font-weight: 600; }
.alert { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-bg); color: var(--danger); border: 2px solid var(--danger); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 18px; }
.alert svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.item { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 16px; }
.item.missing { border-color: var(--danger); background: var(--danger-bg); }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item-name { font-weight: 700; font-size: 20px; min-width: 0; text-align: left; overflow-wrap: anywhere; min-height: 40px; }
.item-total { font-family: var(--f-display); font-weight: 800; font-size: 24px; white-space: nowrap; }
.item.missing .item-total { color: var(--danger); }
.cells { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 8px; align-items: center; margin-top: 8px; }
.cell { min-height: 60px; border-radius: 10px; border: 2px solid var(--ink); background: var(--bg); padding: 4px 10px; text-align: left; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cell small { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cell b { font-size: 22px; font-family: var(--f-display); font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.empty { border-color: var(--danger); border-style: dashed; color: var(--danger); }
.cell.empty small { color: var(--danger); }
.times { font-weight: 700; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 50px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; font-size: 17px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dock-in { max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sumrow span { font-weight: 700; color: var(--muted); font-size: 17px; }
.sumrow b { font-family: var(--f-display); font-size: 32px; font-weight: 800; white-space: nowrap; }

/* Náhled papíru */
.paper-wrap { overflow-x: auto; margin: 0 -4px; padding: 4px; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 12px 30px rgba(0,0,0,.18);
  padding: 22px 20px 26px; font-size: 13px; line-height: 1.4; min-width: 330px; font-family: var(--f-body); }
.p-head { display: flex; gap: 12px; align-items: center; border-bottom: 3px solid var(--paper-ink); padding-bottom: 12px; }
.p-logo { width: 46px; height: 46px; border-radius: 6px; background: #FFC20E; color: #111418; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; flex: none; border: 2px solid #111418; }
.p-logo-img { max-width: 110px; max-height: 46px; flex: none; }
.p-head .n { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.p-head .c { color: var(--paper-muted); font-size: 12px; }
.p-title { display: flex; justify-content: space-between; align-items: flex-start; margin: 14px 0 10px; gap: 8px; flex-wrap: wrap; }
.p-title h2 { font-size: 22px; font-weight: 800; }
.p-title .meta { color: var(--paper-muted); font-size: 12px; text-align: right; }
.p-title .meta b { color: var(--paper-ink); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.p-grid > div { min-width: 0; overflow-wrap: anywhere; }
.p-k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); font-weight: 700; }
.p-v { font-weight: 600; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); border-bottom: 1.5px solid var(--paper-ink); padding: 4px; }
.p-table td { border-bottom: 1px solid var(--paper-line); padding: 6px 4px; vertical-align: top; }
.p-table .r { text-align: right; white-space: nowrap; }
.p-table .miss { color: #B3141A; font-weight: 700; }
.p-total { margin-top: 10px; padding: 10px 12px; background: var(--paper-fill); border-radius: 4px; display: grid; gap: 2px; }
.p-total div { display: flex; justify-content: space-between; align-items: baseline; }
.p-total b { font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.p-terms { margin-top: 14px; }
.p-terms ul { margin: 4px 0 0; padding-left: 18px; }
.p-sign { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--paper-muted); }
.p-sign div { flex: 1; border-top: 1px solid var(--paper-ink); padding-top: 4px; }
.confirm-box { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; font-size: 18px; display: flex; gap: 10px; }
.confirm-box svg { width: 26px; height: 26px; flex: none; }

/* Ceník a údaje */
.pl-row { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.pl-row input[type=text] { width: 100%; min-width: 0; font: inherit; font-weight: 700; font-size: 19px; color: var(--ink); background: transparent; border: 0; border-bottom: 2px dashed var(--line); padding: 6px 0; }
.pl-bottom { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.pl-bottom select { font: inherit; font-size: 18px; min-height: 60px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 8px; }
.pl-price { flex: 1; }
.del { width: 50px; height: 50px; border-radius: 10px; border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.del.armed { background: var(--danger); color: #fff; border-color: var(--danger); width: auto; padding: 0 12px; font-weight: 700; font-size: 16px; }
.del svg { width: 22px; height: 22px; }
.form { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; }
.field { font: inherit; font-size: 20px; font-weight: 600; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 10px; padding: 12px; min-width: 0; width: 100%; }
.logo-pick { display: flex; gap: 12px; align-items: center; }
.logo-pick .prev { width: 72px; height: 72px; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; background: #fff; overflow: hidden; flex: none; color: #5A6570; font-size: 13px; text-align: center; }
.logo-pick .prev img { max-width: 100%; max-height: 100%; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.banner { background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 18px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--ink); }

/* Spodní panel */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 540px; border-radius: 20px 20px 0 0; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet h3 { font-size: 24px; font-weight: 800; }
.display { font-family: var(--f-display); font-weight: 800; font-size: 52px; background: var(--bg); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 16px; min-height: 84px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; overflow: hidden; }
.display small { font-size: 22px; color: var(--muted); font-weight: 700; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { min-height: 62px; border-radius: 12px; background: var(--bg); border: 2px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 30px; display: grid; place-items: center; }
.pad button:active { background: var(--line); }
.pad svg { width: 30px; height: 30px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 18px; font-weight: 600; min-height: 48px; }
.check input { width: 28px; height: 28px; accent-color: var(--ink); flex: none; }
.text-in { font: inherit; font-size: 22px; font-weight: 600; padding: 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; }
.pick-list { display: grid; gap: 8px; }
.pick { width: 100%; min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; font-weight: 700; font-size: 19px; }
.pick span:last-child { font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 17px; }
.linkish { color: var(--danger); font-weight: 700; font-size: 17px; min-height: 48px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.done-ico { width: 110px; height: 110px; border-radius: 50%; background: var(--go); color: var(--go-ink); display: grid; place-items: center; margin: 20px auto 6px; }
.done-ico svg { width: 60px; height: 60px; }
.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 30; max-width: calc(100% - 32px); text-align: center; }
.spinner { width: 28px; height: 28px; border: 4px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Prémiová vrstva (v1.1): grafitový pás, zlato, jemné karty ===== */
body { overflow-x: clip; }
body.top-dark::before { background: var(--graphite); }
.hero { background: var(--graphite); color: var(--on-graphite); margin-inline: calc(50% - 50vw); margin-top: -8px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 22px max(16px, env(safe-area-inset-left, 0px)); border-radius: 0 0 28px 28px;
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(245,184,0,.14), transparent 60%); }
.hero-in { max-width: 540px; margin: 0 auto; }
.hero .top { background: transparent; position: static; }
.hero .brand b { color: var(--on-graphite); }
.hero .brand small { color: var(--on-graphite-muted); }
.hero .brand-mark { border-color: var(--accent); }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-left: auto; white-space: nowrap; }
.mic-btn { border: 0; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -3px 0 rgba(0,0,0,.12) inset, 0 10px 30px rgba(245,184,0,.25); min-height: 190px;
  background: linear-gradient(180deg, #FFCB2E 0%, var(--accent) 55%, #E9AE00 100%); }
.mic-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 14px rgba(245,184,0,.25); }
.mic-btn .ring { box-shadow: 0 0 0 8px rgba(18,22,26,.08); }
.hero .mic-hint { color: var(--on-graphite-muted); margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--graphite-2); border-radius: 14px; padding: 10px 14px; }
.stat small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-graphite-muted); }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--on-graphite); white-space: nowrap; }
.stat b em { font-style: normal; color: var(--accent); }

.q-row, .item, .cust, .pl-row, .form, .how, .cond, .confirm-box { border: 1px solid var(--hair); box-shadow: var(--shadow-1); border-radius: 16px; }
.q-row { padding: 16px 18px; }
.item.missing { border: 2px solid var(--danger); }
.cust button + button { border-top: 1px solid var(--hair); }
.cell { border-width: 1.5px; border-color: var(--line); background: var(--bg); border-radius: 12px; }
.cell:active { border-color: var(--ink); }
.cell.empty { border-width: 2px; }
.label { color: var(--muted); }
.chip { border-width: 1.5px; border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--on-graphite); box-shadow: inset 0 -3px 0 var(--accent); }
.big.primary { border: 0; background: linear-gradient(180deg, #FFCB2E, var(--accent)); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 18px rgba(245,184,0,.25); }
.big.ghost { border-width: 1.5px; border-color: var(--line); box-shadow: 0 1px 2px rgba(18,22,26,.05); }
.big.dark { background: var(--graphite); color: var(--on-graphite); }
.back { border-width: 1.5px; border-color: var(--hair); box-shadow: 0 1px 2px rgba(18,22,26,.06); }
.dictate { border-width: 2px; box-shadow: var(--shadow-1); }
.field, .text-in { border-width: 1.5px; border-color: var(--line); }
.field:focus, .text-in:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(245,184,0,.45); }

.tabbar { background: var(--graphite); border-top: 0; box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
.tab { color: var(--on-graphite-muted); }
.tab[aria-current="page"] { background: var(--graphite-2); color: var(--accent); }
.dock { border-top: 1px solid var(--hair); box-shadow: 0 -10px 30px rgba(18,22,26,.08); }
.sumrow b { letter-spacing: -.01em; }

.pill { border-width: 1.5px; }
.banner { border: 0; background: var(--graphite); color: var(--on-graphite); box-shadow: inset 4px 0 0 var(--accent); }
.steps i.on { background: var(--accent); }
.sheet { border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.25); }
.sheet::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin-bottom: 2px; }
.display { border-width: 2px; }
.done-ico { box-shadow: 0 0 0 10px rgba(11,122,59,.12); }

/* Náhled papíru ve stylu PDF */
.paper { padding: 0 0 24px; overflow: hidden; }
.paper > :not(.p-band) { margin-inline: 20px; }
.p-band { background: #14181C; color: #F4F5F6; padding: 18px 20px 16px; display: flex; gap: 12px; align-items: center; border-bottom: 3px solid #F5B800; margin-bottom: 4px; }
.p-band .n { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.p-band .c { color: #A9B2BB; font-size: 12px; }
.p-band .p-logo { border-color: #F5B800; background: #F5B800; }
.p-band .p-logo-img { background: #fff; border-radius: 4px; padding: 3px; }
.p-total { background: #14181C; color: #F4F5F6; border-radius: 6px; }
.p-total b { color: #F5B800; }
.p-table tbody tr:nth-child(even) td { background: #F7F8F9; }
.mic-btn .ring { background: #12161A; color: #F5B800; }

/* ===== Hlas (v1.2) ===== */
.rec { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 12px; }
.pulse { position: relative; width: 190px; height: 190px; display: grid; place-items: center; --lvl: 0; }
.pulse .core { width: 140px; height: 140px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; z-index: 1;
  transform: scale(calc(1 + var(--lvl) * .12)); transition: transform .08s linear; box-shadow: 0 10px 30px rgba(179,20,26,.35); }
.pulse .core svg { width: 64px; height: 64px; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--danger); opacity: .22; animation: pulse 1.6s ease-out infinite; }
.pulse::after { animation-delay: .8s; }
.pulse.idle::before, .pulse.idle::after { animation: none; opacity: 0; }
.pulse.idle .core { background: var(--graphite-2); color: var(--accent); box-shadow: none; }
@keyframes pulse { from { transform: scale(.75); opacity: .3; } to { transform: scale(1.18); opacity: 0; } }
.timer { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: .02em; }
.rec-hint { text-align: center; color: var(--muted); font-size: 18px; max-width: 30ch; }
.transcript { width: 100%; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); border-radius: 16px; padding: 14px 16px; font-size: 19px; }
.big-spin { width: 72px; height: 72px; border: 7px solid var(--hair); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-top: 30px; }
.item.unsure { border: 2px solid var(--accent); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.heard { font-size: 15px; color: var(--muted); margin-top: 2px; font-style: italic; overflow-wrap: anywhere; }
.check-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; font-size: 18px; }
.check-box ul { margin: 6px 0 0; padding-left: 20px; }
details.said { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-1); }
details.said summary { font-weight: 700; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
details.said p { margin-top: 6px; color: var(--muted); font-size: 17px; }
.status-line { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; }
.status-line i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.status-line i.ok { background: var(--go); } .status-line i.off { background: var(--danger); }
.kbd-link { color: var(--on-graphite-muted); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
