/* SORAL obchod - prototyp. Barvy podle soral.eu (viz README). */
:root {
  --g-dark: #254334;
  --g-dark-2: #1c3428;
  --g-mid: #4F733F;
  --g-lime: #95C11F;
  --g-lime-2: #a9cf45;
  --g-light: #D2E68C;
  --g-pale: #F2F7E4;
  --g-line: #E3E8D7;
  --bg: #F6F8F3;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5f6b63;
  --muted-2: #8a948d;
  --red: #A00600;
  --red-pale: #fdecea;
  --amber: #b26a00;
  --amber-pale: #fff4e0;
  --blue: #126086;
  --blue-pale: #e6f1f7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(37, 67, 52, .06), 0 4px 14px rgba(37, 67, 52, .05);
  --shadow-lg: 0 10px 40px rgba(20, 40, 30, .18);
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --nav-w: 208px;
  --top-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--g-mid); }
iconify-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top-h); background: var(--g-dark); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 18px; z-index: 30; }
.topbar .logo { width: calc(var(--nav-w) - 36px); display: flex; align-items: center; }
.topbar .logo svg { height: 30px; width: auto; }
.topbar h1 { font-size: 19px; font-weight: 500; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #d9e6d2; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 10px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.sync-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-lime); box-shadow: 0 0 0 3px rgba(149,193,31,.25); }
.sync-chip.busy .dot { background: #f4c542; animation: pulse 1s infinite; }
.sync-chip.busy iconify-icon { animation: spin 1s linear infinite; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn .badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--g-lime); border-radius: 50%; border: 2px solid var(--g-dark); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--g-dark); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; background: var(--g-pale); color: var(--g-dark); }
.avatar.lime { background: var(--g-light); }
.user-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 4px; border-radius: 10px; }
.user-btn:hover { background: rgba(255,255,255,.08); }

.sidenav { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--nav-w); background: #fff; border-right: 1px solid var(--g-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; z-index: 20; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #33403a; text-decoration: none; font-weight: 500; border: 0; background: none; text-align: left; width: 100%; transition: background .15s, color .15s; }
.nav-item iconify-icon { font-size: 20px; color: #5a6a60; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--g-pale); color: var(--g-dark); }
.nav-item.active iconify-icon { color: var(--g-mid); }
.nav-item .count { margin-left: auto; background: var(--g-lime); color: var(--g-dark); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.nav-sep { height: 1px; background: var(--g-line); margin: 10px 6px; }
.nav-foot { margin-top: auto; font-size: 11px; color: var(--muted-2); padding: 10px 12px; line-height: 1.5; }
.nav-mic { display: none; }

.main { margin-left: var(--nav-w); padding: calc(var(--top-h) + 22px) 26px 40px; min-height: 100vh; }
.view { max-width: 1280px; margin: 0 auto; }
.view.enter { animation: viewIn .32s cubic-bezier(.2,.7,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- typografie a karty ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 8px; background: none; border: 0; padding: 0; }
.back:hover { color: var(--g-dark); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-7-5 { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.g-5-7 { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.g-8-4 { grid-template-columns: minmax(0,8fr) minmax(0,4fr); }
.card { background: var(--card); border: 1px solid var(--g-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.card.pad0 { padding: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; font-weight: 700; margin: 0; flex: 1; display: flex; align-items: center; gap: 9px; }
.card-h h3 iconify-icon { color: var(--g-mid); font-size: 19px; }
.card-h .link { font-size: 12.5px; color: var(--g-mid); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; }
.card.tint { background: var(--g-pale); border-color: #dfe9c4; }
.card.warn { border-color: #f1d9a8; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; color: var(--muted-2); }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; }

/* ---------- tlačítka, štítky ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid var(--g-line); background: #fff; padding: 9px 14px; font-weight: 500; font-size: 13.5px; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { border-color: #cdd8bf; background: #fbfcf8; }
.btn:active { transform: scale(.98); }
.btn iconify-icon { font-size: 17px; }
.btn.primary { background: var(--g-dark); border-color: var(--g-dark); color: #fff; }
.btn.primary:hover { background: var(--g-dark-2); }
.btn.lime { background: var(--g-lime); border-color: var(--g-lime); color: var(--g-dark); font-weight: 700; }
.btn.lime:hover { background: var(--g-lime-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--g-pale); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 13px 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { animation: spin .8s linear infinite; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--g-pale); color: var(--g-mid); white-space: nowrap; }
.tag.amber { background: var(--amber-pale); color: var(--amber); }
.tag.red { background: var(--red-pale); color: var(--red); }
.tag.blue { background: var(--blue-pale); color: var(--blue); }
.tag.gray { background: #eef0ee; color: #5b625e; }
.tag.dark { background: var(--g-dark); color: #fff; }
.tag iconify-icon { font-size: 13px; }
.src { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--g-line); color: var(--muted); background: #fff; }
.src.raynet { color: #126086; border-color: #cfe1ec; background: #f4f9fc; }
.src.abra { color: #7a4d00; border-color: #f0dfbd; background: #fffaf0; }

/* ---------- seznamy ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--g-line); }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; border-radius: 8px; transition: background .12s; }
.li.click:hover { background: #fafbf7; }
.li .chev { color: var(--muted-2); font-size: 18px; }
.time-pill { min-width: 62px; text-align: center; background: var(--g-pale); color: var(--g-dark); font-weight: 700; border-radius: 8px; padding: 7px 6px; font-size: 14px; }
.time-pill.sugg { background: #fff; border: 1.5px dashed var(--g-lime); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { font-size: 12.5px; color: var(--muted); }
.num-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--g-dark); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.num-badge.sugg { background: #fff; color: var(--g-dark); border: 1.5px dashed var(--g-lime); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 7px 8px; border-bottom: 1px solid var(--g-line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid #eef2e6; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fafbf7; }
.tbl-wrap { overflow-x: auto; }

/* ---------- formuláře ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; position: relative; }
.field label { font-size: 12.5px; font-weight: 600; color: #3a4640; }
.field label .req { color: var(--red); }
.input, .textarea, .select { width: 100%; border: 1px solid #d7dfcb; border-radius: 10px; padding: 10px 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--g-lime); box-shadow: 0 0 0 3px rgba(149,193,31,.2); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.input-icon { position: relative; }
.input-icon > iconify-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 17px; }
.input-icon .input { padding-left: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7dfcb; background: #fff; border-radius: 99px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--g-lime); }
.chip.on { background: var(--g-pale); border-color: var(--g-lime); color: var(--g-dark); font-weight: 600; }
.chip.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g-lime); }

/* napovídání */
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--g-line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 40; max-height: 300px; overflow-y: auto; padding: 4px; animation: pop .14s ease-out; }
.ac-item { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.ac-item:hover, .ac-item.sel { background: var(--g-pale); }
.ac-item mark { background: var(--g-light); color: inherit; border-radius: 3px; padding: 0 1px; }
.ac-item .ac-meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.ac-empty { padding: 10px; color: var(--muted); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- skeleton / loader ---------- */
.sk { background: linear-gradient(90deg, #eef2e8 0%, #f7f9f3 40%, #eef2e8 80%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; border-radius: 8px; }
.sk-line { height: 12px; margin: 10px 0; }
.sk-card { height: 150px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
.loading-strip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.loading-strip iconify-icon { animation: spin 1s linear infinite; color: var(--g-mid); }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 20px; top: calc(var(--top-h) + 14px); display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: var(--g-dark); color: #fff; border-radius: 12px; padding: 12px 14px 12px 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; min-width: 280px; max-width: 380px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); font-size: 13.5px; }
.toast iconify-icon { color: var(--g-lime); font-size: 20px; flex: none; }
.toast .t-sub { color: #c5d6c0; font-size: 12px; margin-top: 2px; }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- přihlášení ---------- */
.login { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-art { background: var(--g-dark); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .shapes { position: absolute; right: -60px; bottom: -40px; width: 320px; opacity: .08; }
.login-art .shapes svg { width: 100%; height: auto; display: block; }
.login-art h2 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; font-weight: 700; max-width: 460px; }
.login-art p { color: #c9d8c4; max-width: 440px; font-size: 15px; }
.login-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: #e3ecdf; }
.login-art li { display: flex; gap: 10px; align-items: center; }
.login-art li iconify-icon { color: var(--g-lime); font-size: 20px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.login-box { width: 100%; max-width: 420px; }
.login-box .logo-big svg { height: 54px; width: auto; }
.user-pick { display: grid; gap: 8px; margin: 18px 0; }
.user-opt { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1.5px solid var(--g-line); border-radius: 12px; cursor: pointer; transition: all .15s; text-align: left; }
.user-opt:hover { border-color: #cdd8bf; }
.user-opt.on { border-color: var(--g-lime); box-shadow: 0 0 0 3px rgba(149,193,31,.18); }
.user-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c5cfba; margin-left: auto; position: relative; }
.user-opt.on .radio { border-color: var(--g-mid); }
.user-opt.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--g-mid); }
.sync-steps { display: grid; gap: 10px; margin-top: 20px; }
.sync-step { background: #fff; border: 1px solid var(--g-line); border-radius: 12px; padding: 12px 14px; }
.sync-step .row { gap: 10px; }
.sync-step .st-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--g-pale); color: var(--g-mid); font-size: 17px; }
.sync-step .st-state { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sync-step.run .st-state iconify-icon { animation: spin 1s linear infinite; }
.sync-step.done .st-state { color: var(--g-mid); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: #edf1e6; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--g-lime); border-radius: 99px; transition: width .25s linear; }

/* ---------- mapa ---------- */
.map { position: relative; border-radius: 10px; overflow: hidden; background: #eef3e6; border: 1px solid var(--g-line); }
.map svg { display: block; width: 100%; height: 100%; }
.map .route { fill: none; stroke: var(--g-mid); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.map .route.draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map-legend { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 6px 10px; font-size: 12px; display: flex; gap: 12px; }
.map-tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.kpi .k-label iconify-icon { color: var(--g-mid); font-size: 18px; }
.kpi .k-val { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k-delta { font-size: 12px; font-weight: 600; }
.up { color: var(--g-mid); } .down { color: var(--red); }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 8px 4px 0; border-bottom: 1px solid var(--g-line); }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars .b i { display: block; width: 100%; max-width: 64px; background: var(--g-lime); border-radius: 6px 6px 0 0; height: 0; transition: height .9s cubic-bezier(.2,.8,.2,1); }
.bars .b:nth-child(1) i { background: var(--g-dark); }
.bars .b:nth-child(2) i { background: var(--g-mid); }
.bars .b:nth-child(3) i { background: #7ea33a; }
.bars .b b { font-size: 13px; }
.bars-x { display: flex; gap: 14px; padding: 6px 4px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.hbar { height: 8px; background: #edf1e6; border-radius: 99px; overflow: hidden; min-width: 70px; }
.hbar i { display: block; height: 100%; background: var(--g-lime); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); border-radius: 99px; }
.hbar.low i { background: #e2a33a; }

/* ---------- týden ---------- */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wday { border: 1px solid var(--g-line); border-radius: 10px; padding: 9px 10px; font-size: 12px; background: #fff; min-height: 92px; }
.wday b { display: block; font-size: 12.5px; margin-bottom: 4px; }
.wday.today { border-color: var(--g-lime); background: var(--g-pale); }
.wday.done { opacity: .6; }
.wday div { color: var(--muted); margin-top: 3px; }
.wday .sugg { color: var(--g-mid); font-weight: 500; }

/* ---------- klient ---------- */
.client-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.client-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--g-pale); color: var(--g-mid); display: grid; place-items: center; font-size: 28px; flex: none; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--g-line); margin: 18px 0 16px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; font-weight: 500; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--g-dark); border-color: var(--g-lime); font-weight: 600; }
.tab .cnt { font-size: 11px; background: #eef1ea; padding: 0 6px; border-radius: 99px; }
.price-hint { display: block; font-size: 12px; line-height: 1.5; color: var(--g-mid); background: var(--g-pale); border-radius: 6px; padding: 3px 8px; width: fit-content; max-width: 100%; margin-top: 5px; }
.price-hint iconify-icon { margin-right: 4px; }
.price-hint .mono { font-size: 11.5px; }
.price-hint.none { color: var(--muted); background: #f1f3ef; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--g-line); }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--g-lime); }

/* ---------- nahrávání ---------- */
.rec { display: flex; align-items: center; gap: 14px; background: var(--g-pale); border-radius: 12px; padding: 12px 14px; }
.rec-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--g-dark); color: #fff; font-size: 24px; display: grid; place-items: center; flex: none; position: relative; transition: background .2s; }
.rec-btn.on { background: var(--red); }
.rec-btn.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); opacity: .5; animation: ring 1.3s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.wave { flex: 1; height: 38px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.wave i { width: 3px; border-radius: 3px; background: var(--g-mid); height: 4px; transition: height .12s; flex: none; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; text-align: right; }
.transcript { background: #fff; border: 1px dashed #cfdabf; border-radius: 10px; padding: 12px; min-height: 70px; font-size: 13.5px; color: #33403a; margin-top: 10px; }
.caret::after { content: "▍"; color: var(--g-lime); animation: pulse .8s infinite; margin-left: 1px; }

/* ---------- e-mail ---------- */
.mail { border: 1px solid var(--g-line); border-radius: 12px; overflow: hidden; background: #fff; }
.mail-h { padding: 10px 14px; border-bottom: 1px solid var(--g-line); font-size: 13px; display: grid; grid-template-columns: 60px 1fr; gap: 6px 10px; background: #fbfcf9; }
.mail-h span:nth-child(odd) { color: var(--muted); }
.mail-body { padding: 16px; min-height: 300px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; outline: none; }
.mail-body[contenteditable="true"]:focus { box-shadow: inset 0 0 0 2px rgba(149,193,31,.35); }
.info-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #3c4a42; background: var(--g-pale); border-radius: 10px; padding: 10px 12px; }
.info-note iconify-icon { color: var(--g-mid); font-size: 18px; flex: none; margin-top: 1px; }
.gen-steps { display: grid; gap: 6px; font-size: 13px; }
.gen-steps div { display: flex; align-items: center; gap: 8px; color: var(--muted-2); transition: color .2s; }
.gen-steps div.on { color: var(--text); }
.gen-steps div.done { color: var(--g-mid); }
.gen-steps div iconify-icon { font-size: 16px; }

/* ---------- nabídka ---------- */
.offer-row { display: grid; grid-template-columns: 1fr 90px 120px 90px 120px 34px; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--g-line); animation: viewIn .25s; }
.offer-row:first-of-type { border-top: 0; }
.offer-row .input { padding: 8px 10px; }
.offer-head { display: grid; grid-template-columns: 1fr 90px 120px 90px 120px 34px; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.total-box { background: var(--g-dark); color: #fff; border-radius: 12px; padding: 16px 18px; }
.total-box .tv { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-box .muted { color: #b9cbb5; }
.margin-hint { font-size: 12px; margin-top: 3px; }

/* ---------- servis ---------- */
.sched { display: grid; grid-template-columns: 120px repeat(5, 1fr); border: 1px solid var(--g-line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.sched > div { border-right: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); padding: 6px; min-height: 54px; background: #fff; }
.sched > div:nth-child(6n) { border-right: 0; }
.sched .sh { background: #fafbf7; font-weight: 600; min-height: 0; color: var(--muted); text-align: center; }
.sched .sh.today { color: var(--g-dark); background: var(--g-pale); }
.sched .tech { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; background: #fafbf7; }
.job { border-radius: 7px; padding: 5px 7px; margin-bottom: 4px; cursor: pointer; border: 1px solid #dfe9c4; background: var(--g-pale); transition: transform .1s, box-shadow .15s; }
.job:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.job.red { border-color: #f3c9c4; background: var(--red-pale); }
.job.amber { border-color: #f1d9a8; background: var(--amber-pale); }
.job.sel { outline: 2px solid var(--g-dark); }
.job b { display: block; font-size: 11.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #eef2e6; cursor: pointer; }
.check:first-child { border-top: 0; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c5cfba; flex: none; display: grid; place-items: center; color: #fff; font-size: 14px; transition: all .15s; }
.check.on .box { background: var(--g-mid); border-color: var(--g-mid); }
.check.on .ct { color: var(--muted); text-decoration: line-through; }
.sign { border: 1.5px dashed #c9d5b9; border-radius: 10px; background: #fcfdfa; height: 140px; position: relative; touch-action: none; }
.sign canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sign .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); pointer-events: none; font-size: 13px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,35,27,.42); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); padding: 22px; animation: pop .2s ease-out; max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- mobilní lišta ---------- */
.bottombar { display: none; }
.fab-mic { display: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1100px) {
  :root { --nav-w: 76px; }
  .nav-item { flex-direction: column; gap: 4px; font-size: 10.5px; padding: 9px 4px; text-align: center; }
  .nav-item .count { position: absolute; margin: 0; transform: translate(14px, -4px); font-size: 10px; padding: 0 5px; }
  .nav-item { position: relative; }
  .nav-foot { display: none; }
  .topbar .logo { width: auto; }
  .topbar .logo .wordmark { display: none; }
  .g-8-4, .g-7-5, .g-5-7 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 860px) {
  .g2, .g3, .g-8-4, .g-7-5, .g-5-7 { grid-template-columns: minmax(0,1fr); }
  .g4 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .week { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
}
@media (max-width: 640px) {
  :root { --top-h: 54px; }
  body { font-size: 14px; }
  .sidenav { display: none; }
  .main { margin-left: 0; padding: calc(var(--top-h) + 14px) 16px 96px; }
  .topbar { padding: 0 10px 0 14px; gap: 8px; }
  .topbar h1 { font-size: 16px; }
  .sync-chip .lbl { display: none; }
  .topbar .hide-m { display: none; }
  .page-head h2 { font-size: 22px; }
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--g-line); z-index: 30; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); }
  .bottombar .nav-item { width: auto; flex: 1; font-size: 10.5px; padding: 6px 2px; }
  .bottombar .mic { width: 54px; height: 54px; border-radius: 50%; background: var(--g-dark); color: #fff; border: 0; font-size: 24px; display: grid; place-items: center; margin-top: -26px; box-shadow: 0 6px 18px rgba(37,67,52,.35); flex: none; }
  .card { padding: 14px; }
  .offer-head { display: none; }
  .offer-row { grid-template-columns: 1fr 1fr; }
  .offer-row > :first-child { grid-column: 1 / -1; }
  .sched { grid-template-columns: 90px repeat(5, 140px); overflow-x: auto; }
  .toasts { left: 12px; right: 12px; top: calc(var(--top-h) + 8px); }
  .toast { min-width: 0; max-width: none; }
  .week { display: flex; }
  .week .wday { min-width: 140px; }
  .hide-m { display: none; }
}

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

/* doplňky */
.enter { animation: viewIn .32s cubic-bezier(.2,.7,.2,1); }
.hide-desktop { display: none; }
@media (max-width: 640px) { .hide-desktop { display: block; } .quick .btn { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 12px; } }

.view > div, .grid > * { min-width: 0; }
.grid.quick { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 8px; }
@media (max-width: 640px) { .offer-row > button { justify-self: end; grid-column: 2; } }

.modal.search { overflow: visible; }
#jobDetail { scroll-margin-top: calc(var(--top-h) + 12px); }
.ofl { display: block; }
.m-lbl { display: none; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
@media (max-width: 640px) { .m-lbl { display: block; } .offer-row { grid-template-columns: repeat(3, minmax(0,1fr)); } .offer-row > :first-child { grid-column: 1 / -1; } .offer-row > div.right { grid-column: 1 / 3; padding-top: 4px !important; } .offer-row > button { grid-column: 3; justify-self: end; } }
