/* Portál – vzhled: tmavý (výchozí, jako web) a světlý motiv. Písma a barvy z webu, tlačítka varianta 2. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-wght-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: 'Onest'; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Onest'; font-weight: 100 900; font-display: swap;
  src: url(fonts/onest-latin-wght-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; }

:root, [data-theme='dark'] {
  --bg: #15121f; --bg-2: #1c1829; --panel: #221d33; --panel-2: #2a2440; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f3f0fb; --muted: #a7a0bf; --faint: #8a83a3; --accent: #a690ff; --accent-strong: #7558f8;
  --ok: #3fd6a0; --warn: #f2b33d; --err: #ff8fa3; --info: #5fb4ff; --focus: #3fd6a0;
  --input: rgba(10, 8, 18, .55); --shadow: 0 20px 50px rgba(0,0,0,.35);
}
[data-theme='light'] {
  --bg: #f6f5fb; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f1eff8; --line: rgba(20,16,40,.08); --line-2: rgba(20,16,40,.16);
  --text: #1c1829; --muted: #5d5873; --faint: #6c6880; --accent: #5a42d2; --accent-strong: #4f37c4;
  --ok: #157a52; --warn: #9a6608; --err: #b4233c; --info: #1f6fb2; --focus: #157a52;
  --input: #ffffff; --shadow: 0 16px 40px rgba(40,30,90,.12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 'Onest', system-ui, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .faint { color: var(--faint); font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- tlačítka (varianta 2) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: inherit;
  font-weight: 650; cursor: pointer; text-decoration: none; transition: background-color .18s, border-color .18s, transform .18s; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #6248e0, #4f37c4); color: #fff; border-color: rgba(255,255,255,.08); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #6d55ea, #5a42d2); border-color: rgba(201,188,255,.55); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-danger { border-color: rgba(255,143,163,.5); color: var(--err); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* --- formuláře --- */
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 10px; background: var(--input); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(127,98,255,.22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-strong); flex: none; }
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-weight: 400; color: var(--faint); font-size: .85rem; }
.err { color: var(--err); font-size: .92rem; }
.okmsg { color: var(--ok); font-size: .92rem; }

/* --- přihlášení --- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-box { width: min(440px, 100%); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.2rem; }
.auth-logo img { width: 34px; height: 34px; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.45rem; margin-bottom: 6px; }
.auth-foot { margin-top: 16px; text-align: center; color: var(--muted); font-size: .92rem; }

/* --- rozvržení --- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px;
  background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-family: 'Plus Jakarta Sans'; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-sec { margin-top: 10px; }
.nav-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--faint); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav-site { margin: 2px 10px 6px; }
.nav-site select { padding: 6px 8px; font-size: .88rem; }
.nav a, .nav button.navb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted);
  text-decoration: none; font-weight: 550; font-size: .95rem; background: none; border: 0; width: 100%; font-family: inherit; cursor: pointer; text-align: left; }
.nav a:hover, .nav button.navb:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current=page] { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.badge-n { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: .75rem; text-align: center; }
.main { padding: 28px clamp(16px, 4vw, 48px) 60px; max-width: 1240px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.stack { display: grid; gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.card h2 { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.stat { display: grid; gap: 2px; } .stat b { font-family: 'Plus Jakarta Sans'; font-size: 1.7rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }
.meter { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #6248e0, #a690ff); }
.meter.hi i { background: var(--warn); }
.alerts { display: grid; gap: 10px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); }
.alert.warn { border-color: rgba(242,179,61,.4); background: rgba(242,179,61,.07); }
.alert.error { border-color: rgba(255,143,163,.45); background: rgba(255,143,163,.07); }
.alert.info { border-color: rgba(95,180,255,.35); background: rgba(95,180,255,.06); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 650;
  background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); background: rgba(63,214,160,.12); } .tag.warn { color: var(--warn); background: rgba(242,179,61,.12); }
.tag.err { color: var(--err); background: rgba(255,143,163,.12); } .tag.info { color: var(--info); background: rgba(95,180,255,.12); }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--faint); font-size: .82rem; font-weight: 650; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--panel-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.chip[aria-pressed=true] { background: rgba(127,98,255,.18); border-color: var(--accent); color: var(--text); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.msg { padding: 10px 13px; border-radius: 12px; margin: 8px 0; max-width: 80%; white-space: pre-wrap; }
.msg.user { background: var(--accent-strong); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.assistant { background: var(--panel-2); border-bottom-left-radius: 4px; }
.msg.unk { box-shadow: inset 3px 0 0 var(--warn); }
.code { font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--input); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; white-space: pre-wrap; word-break: break-all; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }

/* --- nastavení s náhledem --- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.subnav { position: sticky; top: 20px; display: grid; gap: 2px; }
.subnav button { text-align: left; padding: 8px 10px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.subnav button[aria-current=true] { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.preview { position: sticky; top: 20px; }
.preview iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 16px; background: #f1f0f6; }
.publish-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--accent); box-shadow: var(--shadow); margin-top: 16px; }

/* --- průvodce --- */
.wizard { max-width: 720px; }
.steps { display: flex; gap: 6px; margin: 4px 0 24px; flex-wrap: wrap; }
.steps span { flex: 1 1 80px; height: 5px; border-radius: 999px; background: var(--panel-2); }
.steps span.on { background: linear-gradient(90deg, #6248e0, #a690ff); }
.choice { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; background: var(--panel); }
.opt:has(input:checked) { border-color: var(--accent); background: rgba(127,98,255,.1); }
.opt input { margin-top: 4px; accent-color: var(--accent-strong); width: 18px; height: 18px; flex: none; }
.opt b { display: block; color: var(--text); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* --- nápověda --- */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow); z-index: 40; padding: 22px; overflow-y: auto; }
.drawer h2 { margin-bottom: 10px; } .drawer h3 { margin: 18px 0 6px; }
.drawer p, .drawer li { color: var(--muted); }
.drawer-bg { position: fixed; inset: 0; background: rgba(10,8,20,.4); z-index: 39; }
.help-topic { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(10,8,20,.55); display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }

@media (max-width: 1180px) { .settings { grid-template-columns: 180px minmax(0, 1fr); } .preview { grid-column: 1 / -1; position: static; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-105%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
    background: var(--bg-2); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; }
  .grid2, .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; }
  .settings { grid-template-columns: 1fr; } .subnav { position: static; display: flex; overflow-x: auto; }
  .subnav button { white-space: nowrap; }
  .main { padding-top: 20px; }
}
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .msg { max-width: 92%; } table.t .hide-m { display: none; } }

.conv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .conv-grid { grid-template-columns: 1fr; } }
.settings.acc { grid-template-columns: 200px minmax(0, 1fr); }
@media (max-width: 900px) { .settings.acc { grid-template-columns: 1fr; } }
.code { overflow-wrap: anywhere; }
.list a.grow { color: var(--text); text-decoration: none; }
.list a.grow:hover { color: var(--accent); text-decoration: underline; }

/* ===== Zadání 3: horní lišta se záložkami služeb, levé menu služby, odznáčky, ⓘ, motiv AI Kovárny ===== */
:root { --badge: #d92d32; --topbar-h: 60px; }
[data-brand='aikovarna'][data-theme='light'] {
  --bg: #f8f5f1; --bg-2: #fffdfa; --panel: #ffffff; --panel-2: #f3eee7; --line: rgba(31,31,35,.09); --line-2: rgba(31,31,35,.17);
  --text: #1f1f23; --muted: #55525a; --faint: #66626b; --accent: #a34b06; --accent-strong: #d97706;
  --ok: #157a52; --warn: #8a5a00; --err: #b4233c; --info: #1f5f9e; --focus: #a34b06;
  --input: #ffffff; --shadow: 0 14px 36px rgba(31,31,35,.10); --btn-bg: #d97706; --btn-bg-h: #c26a05; --btn-fg: #1f1f23;
}
[data-brand='aikovarna'][data-theme='dark'] {
  --bg: #17161a; --bg-2: #1f1e23; --panel: #25242a; --panel-2: #2e2c33; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15);
  --text: #f4f1ec; --muted: #b5b0a8; --faint: #9a948c; --accent: #f0a04b; --accent-strong: #d97706; --focus: #f0a04b;
  --input: rgba(0,0,0,.25); --btn-bg: #d97706; --btn-bg-h: #e8850f; --btn-fg: #1f1f23;
}
[data-brand='aikovarna'] .btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
[data-brand='aikovarna'] .btn-primary:hover:not(:disabled) { background: var(--btn-bg-h); border-color: transparent; transform: translateY(-1px); }
[data-brand='aikovarna'] .meter i, [data-brand='aikovarna'] .steps span.on, [data-brand='aikovarna'] .bars span { background: linear-gradient(90deg, #b45309, #f0a04b); }
[data-brand='aikovarna'] .msg.user { background: #1f1f23; color: #fff; }
[data-brand='aikovarna'][data-theme='dark'] .msg.user { background: #d97706; color: #1f1f23; }
[data-brand='aikovarna'] .chip[aria-pressed=true], [data-brand='aikovarna'] .opt:has(input:checked) { background: rgba(217,119,6,.12); border-color: var(--accent-strong); }
[data-brand='aikovarna'] input:focus, [data-brand='aikovarna'] textarea:focus, [data-brand='aikovarna'] select:focus { box-shadow: 0 0 0 3px rgba(217,119,6,.22); }

.logo-wide { display: inline-flex; align-items: center; }
.logo-wide img { height: 34px; width: auto; }
.auth-logo .logo-wide img { height: 48px; }
.lw-dark { display: none; } [data-theme='dark'] .lw-light { display: none; } [data-theme='dark'] .lw-dark { display: block; }

.topbar { display: flex; align-items: center; gap: 14px; height: var(--topbar-h); padding: 0 16px; background: var(--bg-2);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; }
.topbar .brand { padding: 0 6px 0 0; flex: none; }
.burger { display: none; }
.tabs { display: flex; align-items: stretch; gap: 2px; height: 100%; min-width: 0; flex: 1; }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-current=page] { color: var(--text); border-bottom-color: var(--accent-strong); }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.ta { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 0;
  background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; }
.ta:hover, .ta[aria-current=page] { background: var(--panel-2); color: var(--text); }
.ta .badge-n { position: absolute; top: 2px; left: 22px; margin: 0; }
details.more, details.acct { position: relative; display: flex; align-items: center; }
details.more > summary, details.acct > summary { list-style: none; cursor: pointer; }
details.more > summary { display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 100%; color: var(--muted); font-weight: 600; }
details > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; z-index: 30; display: grid; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.more-menu.right { left: auto; right: 0; }
.more-menu a, .more-menu .navb { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500;
  border: 0; background: none; text-align: left; font-family: inherit; cursor: pointer; width: 100%; }
.more-menu a:hover, .more-menu .navb:hover { background: var(--panel-2); }
.more-menu .tab { border: 0; padding: 9px 12px; }

.app { grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.side { top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); padding-top: 14px; }
.nav-title { padding-top: 2px; }
.nav-site { margin: 4px 10px 10px; display: grid; gap: 4px; }
.nav-site .nav-h { padding: 0; }
.nav a .grow { flex: 1; min-width: 0; }
.badge-n { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: auto;
  border-radius: 999px; background: var(--badge); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.tab .badge-n, .subnav .badge-n { margin-left: 2px; }
.only-m { display: none; }

/* ⓘ nápověda u polí */
.lt { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.info { position: relative; display: inline-flex; vertical-align: middle; }
.info-b { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); background: none; color: var(--faint);
  font: italic 700 12px/1 Georgia, serif; cursor: help; display: grid; place-items: center; padding: 0; }
.info-b:hover, .info.open .info-b { border-color: var(--accent); color: var(--accent); }
.tip { display: none; position: absolute; z-index: 45; left: -8px; top: calc(100% + 8px); width: min(320px, 80vw); padding: 12px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  font-size: .88rem; font-weight: 400; line-height: 1.45; text-transform: none; letter-spacing: 0; }
.tip b { display: block; margin-bottom: 4px; }
.tip-ex { display: block; margin-top: 8px; color: var(--faint); font-size: .8rem; font-weight: 600; }
.tip ul { margin: 4px 0 0; padding-left: 18px; } .tip li { margin: 2px 0; }
.info:hover .tip, .info:focus-within .tip, .info.open .tip { display: block; }
@media (hover: none) { .info:hover .tip { display: none; } .info.open .tip { display: block; } }
.check-row { display: flex; align-items: center; gap: 8px; }

/* tajná pole (žádné type=password) */
input.secret { -webkit-text-security: disc; font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
input.secret::placeholder { letter-spacing: normal; font-family: inherit; }

/* různé */
.fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fs legend { padding: 0; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.card-in { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sub { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sub h3 { margin: 0; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: flex; gap: 8px; } .inline input { flex: 1; }
.wiz-prev { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 14px; background: #f1f0f6; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars span { flex: 1; min-width: 4px; background: linear-gradient(#a690ff, #6248e0); border-radius: 4px 4px 0 0; }
.export-box { margin-bottom: 20px; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabbar a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabbar a[aria-current=page] { color: var(--text); border-bottom-color: var(--accent-strong); }
.opt.tier > span { display: grid; gap: 4px; }
.opt.tier .price { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.35rem; color: var(--text); margin-top: 6px; }
.opt.tier .price small { font-size: .8rem; font-weight: 600; color: var(--faint); }
.consent { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.steps-list { margin: 6px 0; padding-left: 20px; } .steps-list li { margin: 6px 0; color: var(--muted); }
.help-body { margin-top: 8px; }
.support .list li svg { flex: none; color: var(--accent); }

@media (max-width: 1100px) { .tab span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; } .ta span { display: none; } }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; row-gap: 0; }
  .tabs { order: 3; flex-basis: 100%; height: 44px; overflow-x: auto; margin: 4px -12px 0; padding: 0 6px; border-top: 1px solid var(--line); }
  .hide-m { display: none !important; }
  .only-m { display: block; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; top: 0; height: 100vh; width: 280px; z-index: 40; transform: translateX(-105%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .logo-wide img { height: 28px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .tip { left: auto; right: -40px; }
}
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } .wiz-prev { height: 480px; } .page-head h1 { font-size: 1.45rem; } }
