@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ===== TYPOGRAFIE (21.6.): nadpisy Plus Jakarta Sans, text Inter ===== */
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -0.01em; }

/* ========== ZÁKLAD / TOKENY ========== */
:root {
  --purple: #7c3aed;
  --pink: #ec4899;
  --bg: #f6f4fc;
  --ink: #1e1b2e;
  --muted: #6b6680;
  --card: #ffffff;
  --surface: #f3f0fb;
  --border: #ddd5ef;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(124, 58, 237, 0.10);
  /* jemný stín karet – ať „vyskočí" z pozadí (světlý režim) */
  --card-shadow: 0 1px 2px rgba(30,27,46,.04), 0 6px 20px rgba(124,58,237,.07);
  --gradient: linear-gradient(135deg, var(--purple), var(--pink));
  /* aliasy pro standalone stránky (muj-ucet.html aj.) – ať se ztmaví automaticky */
  --c-bg: var(--bg);
  --c-text: var(--ink);
  --c-text-muted: var(--muted);
  --c-accent: var(--purple);
  --c-border: var(--border);
  --c-surface: var(--surface);
}
/* ===== TMAVÝ REŽIM ===== */
html.theme-dark {
  --bg: #14121d;
  --ink: #ece9f7;
  --muted: #a39cc4;
  --card: #1f1b2e;
  --surface: #272237;
  --border: #312b46;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 2px 10px rgba(0,0,0,.25);
  /* aliasy znovu (var() se vyhodnotí až tady = tmavě; jinak by zdědily světlou z :root) */
  --c-bg: var(--bg);
  --c-text: var(--ink);
  --c-text-muted: var(--muted);
  --c-accent: var(--purple);
  --c-border: var(--border);
  --c-surface: var(--surface);
}
/* Tmavé posuvníky (scrollbary) v tmavém režimu – všude, ať nesvítí bíle */
html.theme-dark { scrollbar-color: #4a4366 transparent; scrollbar-width: thin; }
html.theme-dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.theme-dark ::-webkit-scrollbar-track { background: transparent; }
html.theme-dark ::-webkit-scrollbar-thumb {
  background: #4a4366; border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
html.theme-dark ::-webkit-scrollbar-thumb:hover {
  background: #5a5280; background-clip: padding-box; border: 2px solid transparent;
}
html.theme-dark ::-webkit-scrollbar-corner { background: transparent; }
/* doladění míst, kde nestačí proměnné */
html.theme-dark .btn-ghost { background: var(--card); color: var(--ink); }
html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select { background-color: var(--card); color: var(--ink); border-color: var(--border); }
html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder { color: var(--muted); }
html.theme-dark .topbar-search { background: var(--surface); }
html.theme-dark .topbar-search input { background: transparent; }
html.theme-dark .filler-chip { background: var(--surface); }
html.theme-dark .demo-banner { background: linear-gradient(135deg, #241c33, #2a1b29); border-color: #3a2b52; }
html.theme-dark .showcase-frame,
html.theme-dark .onboarding-card { background: var(--card); }
html.theme-dark .frame-bar { background: var(--surface); }
html.theme-dark .mock-share-link input,
html.theme-dark .mock-slide { background: var(--surface); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -0.02em; }
.ic {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
/* gradientový mikrofon (velké/zvýrazněné ikony) */
.ic.mic-grad { stroke: url(#zapsioMicGrad); }

/* ========== TLAČÍTKA ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(236,72,153,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(236,72,153,.4); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); background: var(--surface); }
.btn-danger { background: var(--card); color: #ef4444; border-color: rgba(239,68,68,.4); }
.btn-danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.08); }
html.theme-dark .btn-danger { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ========== LAYOUT ========== */
/* Aplikace je skrytá, dokud appshell.js neověří přístup – ať neproblikne nepřihlášenému/neplatícímu */
body.app-shell { visibility: hidden; }
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ========== BOČNÍ MENU ========== */
.app-sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 14px;
  position: sticky; top: 0; height: 100vh;
}
.app-logo { font-size: 22px; font-weight: 900; letter-spacing: -.03em; padding: 0 8px 12px; display: inline-flex; align-items: center; flex-shrink: 0;
  background: linear-gradient(120deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.app-logo span { -webkit-text-fill-color: transparent; }
.brand-logo-img { height: 40px; width: auto; vertical-align: middle; margin-right: 8px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.app-nav::-webkit-scrollbar { width: 6px; }
.app-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.app-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; border-radius: 9px;
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.app-nav a .ic { width: 19px; height: 19px; }
.app-nav a:hover { background: var(--surface); color: var(--ink); }
.app-nav a.active { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.3); }
.nav-section { font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); opacity: .6; padding: 10px 12px 3px; }
.nav-section:first-child { padding-top: 2px; }
/* Text „Vydělávejte se Zapsiem" = neutrální jako ostatní položky; výrazná je jen ikona. */
.app-nav a.nav-earn .ic.nav-earn-ic { color: #f59e0b; }
html.theme-dark .app-nav a.nav-earn .ic.nav-earn-ic { color: #fbbf24; }

.app-credits {
  flex-shrink: 0;
  margin-top: 12px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
}
.credits-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; margin-bottom: 7px; color: var(--purple); }
.credits-head .ic { width: 15px; height: 15px; }
.credits-bar { height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.credits-bar span { display: block; height: 100%; background: var(--gradient); border-radius: 999px; }
.credits-text { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.app-credits .btn { font-size: 12px; padding: 7px; }

.app-user { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.app-user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.app-user-avatar.has-photo { color: transparent; }
.profile-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.profile-avatar { width: 72px; height: 72px; font-size: 24px; }
.profile-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-avatar-actions p { flex-basis: 100%; margin: 4px 0 0; }
.app-user-info { flex: 1; min-width: 0; }
.app-user-info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-info span { font-size: 12px; color: var(--muted); }
.app-logout { color: var(--muted); display: flex; }
.app-logout:hover { color: var(--pink); }
.app-logout .ic { width: 18px; height: 18px; }

.app-sidebar-overlay { display: none; }

/* ========== HORNÍ LIŠTA ========== */
.app-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.app-burger { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
.app-burger .ic { width: 24px; height: 24px; }
.topbar-title h1 { font-size: 18px; }
.topbar-title p { font-size: 12px; color: var(--muted); }
.topbar-spacer { flex: 1; }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; width: 250px; max-width: 30vw;
}
.topbar-search .ic { width: 16px; height: 16px; color: var(--muted); }
.topbar-search input { border: none; background: none; outline: none; font-family: inherit; font-size: 13px; width: 100%; }
/* globální hledání – rozbalovací výsledky */
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; max-height: 380px; overflow-y: auto; padding: 6px; }
.search-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-item:hover { background: var(--bg); }
.search-item-title { font-size: 14px; font-weight: 700; }
.search-item-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { padding: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
/* výběr výstupu ze schůzky (#57) */
.output-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .output-types { grid-template-columns: 1fr; } }
.output-type { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); background: var(--bg); border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left; color: var(--ink); transition: border-color .12s, background .12s; }
.output-type .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--purple); }
.output-type .ot-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.output-type .ot-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.output-type .ot-desc { font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.output-type:hover { border-color: var(--purple); }
.output-type.active { background: var(--gradient); color: #fff; border-color: transparent; }
.output-type.active .ic { color: #fff; }
.output-type.active .ot-desc { color: #fff; opacity: .92; }
.output-text { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; font-size: 14.5px; line-height: 1.65; max-height: 400px; overflow-y: auto; }
.sentiment-label { font-size: 19px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-icon {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  position: relative; flex-shrink: 0;
}
.topbar-icon:hover { color: var(--purple); border-color: var(--purple); }
.topbar-icon .ic { width: 17px; height: 17px; }
.topbar-icon .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; background: var(--pink); border-radius: 50%; }
/* jazyk v topbaru appky – stejná výška jako ostatní ikony, ať je topbar zarovnaný */
.app-topbar .topbar-lang .lang-btn { height: 34px; box-sizing: border-box; align-items: center; }

/* ========== OBSAH ========== */
.app-content { padding: 28px 36px; max-width: none; width: 100%; }

/* statistiky */
.app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 28px; }
.app-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.app-stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.app-stat-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 13px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--purple);
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(236,72,153,.10));
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.18);
}
.theme-dark .app-stat-icon { background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(236,72,153,.15)); }
.app-stat-icon .ic { width: 23px; height: 23px; }
.app-stat-num { font-size: 24px; font-weight: 900; }
.app-stat-label { font-size: 12.5px; color: var(--muted); }

/* sekce nadpis */
.app-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.app-section-head h2 { font-size: 18px; }
.app-section-head a { font-size: 13.5px; font-weight: 700; color: var(--purple); display: inline-flex; align-items: center; gap: 4px; }
.app-section-head a .ic { width: 15px; height: 15px; }

/* seznam schůzek */
.meeting-list { display: flex; flex-direction: column; gap: 12px; }
.meeting-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.meeting-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.meeting-thumb {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--purple);
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.12));
}
.meeting-thumb { overflow: hidden; }
.meeting-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rename-thumb { width: 44px; height: 44px; }
.meeting-main { flex: 1; min-width: 0; }
.meeting-title { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.meeting-meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.meeting-meta span { display: inline-flex; align-items: center; gap: 5px; }
.meeting-meta .ic { width: 14px; height: 14px; }
.meeting-tags { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.tag {
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.tag-done { background: rgba(52,211,153,.15); color: #059669; }
.tag-progress { background: rgba(245,158,11,.15); color: #b45309; }
.tag-tasks { background: rgba(124,58,237,.1); color: var(--purple); }
.tag-platform { background: #f1eefb; color: var(--muted); }
.card-del { border: none; background: transparent; color: #c9c4d8; cursor: pointer; font-size: 16px; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; transition: background .15s ease, color .15s ease; }
.card-del:hover { background: #fdecec; color: #ef4444; }
.task-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-left: 2px; transition: background .15s ease, color .15s ease; }
.task-del:hover { background: #fdecec; color: #ef4444; }
.soon-tag { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.task-edit { border: none; background: #efe7fb; color: var(--purple); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.task-edit .ic { width: 17px; height: 17px; }
.task-edit:hover { background: var(--purple); color: #fff; }
.task-cal { border: none; background: var(--surface); color: var(--purple); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.task-cal .ic { width: 17px; height: 17px; }
.task-cal:hover { background: var(--purple); color: #fff; }
.task-edit-form { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.task-edit-form input { border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 14px; font-family: inherit; background: var(--bg); outline: none; }
.task-edit-form input:focus { border-color: var(--purple); }
.task-edit-form .te-row { display: flex; gap: 8px; }
.task-edit-form .te-row input { flex: 1; }
.task-edit-form .te-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tasks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.task-add-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.task-add-card .te-text, .task-add-card .te-owner, .task-add-card .te-due, .task-add-card .te-meeting { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--bg); outline: none; }
.task-add-card .te-text:focus, .task-add-card .te-owner:focus, .task-add-card .te-due:focus, .task-add-card .te-meeting:focus { border-color: var(--purple); }
.task-add-card .te-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: -4px; }
.task-add-card .te-row { display: flex; gap: 8px; }
.task-add-card .te-row input { flex: 1; }
/* obecný hezký styl editačních polí (kontakty, složky, portál atd. – ne jen task-add-card) */
.te-text, .te-owner, .te-due, .te-meeting { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--bg); color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
.te-text:focus, .te-owner:focus, .te-due:focus, .te-meeting:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.13); }
.te-text::placeholder, .te-owner::placeholder, .edit-area::placeholder { color: var(--muted); }
.te-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.te-row input { flex: 1; min-width: 150px; }
.te-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.task-add-card .te-actions { display: flex; gap: 8px; justify-content: flex-end; }
/* výběr schůzek v reportu */
.report-pick { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 0 -12px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 9px; transition: background .12s; }
.report-pick:hover { background: var(--bg); }
.report-pick:last-child { border-bottom: none; }
.report-pick input { width: 18px; height: 18px; accent-color: var(--purple); flex-shrink: 0; cursor: pointer; }
/* všechna zaškrtávátka v aplikaci = fialová a stejně velká (ať vypadají záměrně i v tmavém režimu) */
.app-shell input[type="checkbox"] { accent-color: var(--purple); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.report-pick-main { display: flex; flex-direction: column; }
.report-pick-title { font-size: 14px; font-weight: 600; }
.report-pick-date { font-size: 12.5px; color: var(--muted); }

/* prázdný stav / nahrávání */
/* „vyhloubená" karta – místo přerušované čáry jemné pozadí + vnitřní stín */
.upload-box {
  position: relative; overflow: hidden;
  border: none; border-radius: var(--radius);
  padding: 38px 28px; text-align: center; margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(124,58,237,.02));
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.10), 0 14px 36px rgba(124,58,237,.10);
}
/* živý „aurora" gradient v pozadí – jemně se vlní */
.upload-box::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 25% 6%, rgba(124,58,237,.22), transparent 62%),
    radial-gradient(42% 55% at 80% 98%, rgba(99,102,241,.16), transparent 62%);
  animation: uploadAurora 11s ease-in-out infinite alternate;
}
.upload-box > * { position: relative; z-index: 1; }
@keyframes uploadAurora {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -5%) scale(1.12); }
}
html.theme-dark .upload-box {
  background: linear-gradient(180deg, rgba(124,58,237,.17), rgba(124,58,237,.05));
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.22), 0 18px 44px rgba(124,58,237,.20);
}
/* pulzující mic orb – „aplikace poslouchá" */
.upload-orb {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 55px; height: 55px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(167,139,250,.34), rgba(124,58,237,.14));
  border: 1px solid rgba(168,85,247,.55);
  box-shadow: 0 0 0 7px rgba(124,58,237,.07), 0 10px 26px rgba(124,58,237,.3), inset 0 1px 1px rgba(255,255,255,.18);
}
.upload-orb .ic { width: 24px; height: 24px; color: #e9d8fd; stroke: #e9d8fd; margin: 0; }
/* světlý režim – ať je orb i mikrofon dobře vidět na světlém pozadí */
html:not(.theme-dark) .upload-orb {
  background: radial-gradient(circle at 50% 32%, rgba(168,85,247,.22), rgba(124,58,237,.12));
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 0 6px rgba(124,58,237,.06), 0 8px 22px rgba(124,58,237,.22), inset 0 1px 1px rgba(255,255,255,.5);
}
html:not(.theme-dark) .upload-orb .ic { color: #7c3aed; stroke: #7c3aed; }
.upload-orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(168,85,247,.5);
  animation: orbPulse 2.8s cubic-bezier(.22,.61,.36,1) infinite;
}
@keyframes orbPulse {
  0%   { transform: scale(1);    opacity: .6; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .upload-box::before, .upload-orb::before, .upload-orb::after { animation: none; }
}
.upload-box h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -.2px; }
.upload-box p { color: var(--muted); font-size: 14px; margin-bottom: 18px; line-height: 1.6; }
.upload-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* vedlejší tlačítka u nahrávání – jemné gradientové orámování (sjednocení se „Spustit živé nahrávání") */
.upload-actions .btn-ghost {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--gradient) border-box;
}
.upload-actions .btn-ghost:hover {
  color: var(--purple);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
}
html.theme-dark .upload-actions .btn-ghost {
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--gradient) border-box;
}
html.theme-dark .upload-actions .btn-ghost:hover {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
}

/* ========== DETAIL SCHŮZKY ========== */
.detail-top { margin-bottom: 22px; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.detail-back:hover { color: var(--purple); }
.detail-back .ic { width: 17px; height: 17px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.detail-header .detail-title-row { flex: 0 1 auto; min-width: 0; }
.detail-header h1 { font-size: 24px; }
.detail-title-row { display: flex; align-items: center; gap: 10px; }
.title-edit { border: none; background: var(--surface); color: var(--purple); cursor: pointer; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.title-edit .ic { width: 18px; height: 18px; }
.title-edit:hover { background: var(--purple); color: #fff; }
.rename-input { font-size: 20px; font-weight: 800; color: var(--ink); border: 2px solid var(--purple); border-radius: 10px; padding: 6px 12px; font-family: inherit; outline: none; min-width: 260px; max-width: 100%; }
.detail-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta .ic { width: 15px; height: 15px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 1 auto; justify-content: flex-end; margin-left: auto; }

/* Editovatelné chipy v hlavičce detailu (kontakt / projekt / typ / štítek) –
   jednotné, čisté ohraničení místo dašovaného + žádný ošklivý systémový outline. */
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.meta-chip.meta-chip-sq { border-radius: 8px; }
.meta-chip:hover { border-color: var(--purple); color: var(--purple); background: var(--card); }
.meta-chip .ic { width: 14px; height: 14px; }
.meta-pencil {
  background: none; border: none; cursor: pointer; color: inherit;
  padding: 0 2px; font-size: 13px; line-height: 1; opacity: .65;
  transition: opacity .15s ease;
}
.meta-pencil:hover { opacity: 1; }
.meta-field {
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; background: var(--card); color: var(--text);
  font-family: inherit;
}
/* čistý focus stav pro všechny ovládací prvky v meta-hlavičce */
.detail-meta button:focus, .detail-meta select:focus, .detail-meta input:focus,
#metaTags button:focus, #metaTags input:focus,
.meta-chip:focus, .meta-pencil:focus, .meta-field:focus {
  outline: none;
}
.meta-chip:focus-visible, .meta-field:focus-visible, .meta-pencil:focus-visible {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

/* Vlastní rozbalovač místo nativního <select> – plně v designu appky (i v tmavém režimu) */
.msel { position: relative; display: inline-block; vertical-align: middle; }
.msel-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 130px; max-width: 100%;
  padding: 5px 11px; font-size: 13px; font-family: inherit;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  transition: border-color .15s ease;
}
.msel-btn:hover { border-color: var(--purple); }
.msel-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel-arr { color: var(--muted); font-size: 10px; flex-shrink: 0; }
.msel-pop {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 60;
  min-width: 100%; max-height: 260px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16); padding: 5px;
}
.theme-dark .msel-pop { box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.msel-opt {
  display: block; width: 100%; text-align: left; white-space: nowrap;
  padding: 7px 11px; font-size: 13px; font-family: inherit;
  background: none; border: none; border-radius: 7px; color: var(--text); cursor: pointer;
}
.msel-opt:hover { background: var(--surface); }
.msel-opt.is-sel { background: rgba(124,58,237,.12); color: var(--purple); font-weight: 600; }
.msel-btn:focus, .msel-opt:focus { outline: none; }
.msel-btn:focus-visible { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }

/* layout detailu */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* taby */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 12px 16px; font-weight: 700; font-size: 14.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab-btn .ic { width: 17px; height: 17px; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* karta panelu */
.panel-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); }
/* Zářící fialový rámeček UVNITŘ bílého panelu – přesně jako AI bloky u shrnutí
   (stejná barva/okraj/záře), ale bez horního badge popisku. Používá se u Úkolů a AI chatu. */
.glow-frame {
  background: linear-gradient(135deg, rgba(124,58,237,.07), rgba(236,72,153,.04));
  border: 1px solid rgba(168,85,247,.32);
  border-radius: 15px;
  padding: 22px;
  box-shadow: 0 0 38px rgba(124,58,237,.08);
}
.theme-dark .glow-frame {
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(236,72,153,.05));
  border-color: rgba(168,85,247,.28);
  box-shadow: 0 0 22px rgba(124,58,237,.10);
}
/* Zářící nadpis panelu (Váš seznam úkolů, Kompletní přepis schůzky…) */
.panel-title-glow {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0;
  display: flex; align-items: center; gap: 9px; color: var(--purple);
  text-shadow: 0 0 16px rgba(124,58,237,.35);
}
/* Tmavý režim: nadpisy panelů světlé (ať vyniknou a nezapadají do fialové), fialová zůstává jen na ikoně a lince */
.theme-dark .panel-title-glow { color: #f1edfc; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.panel-title-glow .ic { width: 20px; height: 20px; color: var(--purple); filter: drop-shadow(0 0 8px rgba(124,58,237,.45)); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* shrnutí */
.summary-block { margin-bottom: 22px; }
.summary-block:last-child { margin-bottom: 0; }
/* AI bloky jako zvýrazněné karty (jako na homepage ukázce) */
.summary-block.sum-frame {
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,.07), rgba(236,72,153,.04));
  border: 1px solid rgba(168,85,247,.32);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 38px rgba(124,58,237,.08);
  margin-top: 18px;
}
.theme-dark .summary-block.sum-frame {
  background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(236,72,153,.05));
  border-color: rgba(168,85,247,.28);
  box-shadow: 0 0 22px rgba(124,58,237,.10);
}
.sum-badge {
  position: absolute; top: -11px; left: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  padding: 3px 11px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124,58,237,.35);
}
.summary-block h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--purple); }
.theme-dark .summary-block h3 { color: #f1edfc; }
.summary-block h3 .ic { width: 18px; height: 18px; color: var(--purple); }
.summary-list li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14.5px; }
.summary-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  background: var(--gradient); border-radius: 50%;
}

/* úkoly */
.task-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.task-item:last-child { border-bottom: none; }
.task-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border);
  flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.task-check.done { background: var(--gradient); border-color: transparent; color: #fff; }
.task-check .ic { width: 14px; height: 14px; }
.task-body { flex: 1; }
.task-text { font-size: 14.5px; font-weight: 600; }
.task-item.is-done .task-text { text-decoration: line-through; color: var(--muted); }
.task-sub { font-size: 12.5px; color: var(--muted); }
.task-owner { font-size: 12px; font-weight: 700; color: var(--purple); background: rgba(124,58,237,.1); padding: 4px 10px; border-radius: 999px; }
/* nenápadná hláška o e-mailových připomínkách na stránce Úkoly (#14) */
.tasks-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.tasks-hint .ic { width: 14px; height: 14px; flex-shrink: 0; color: var(--purple); }
.tasks-hint a { color: var(--purple); font-weight: 600; }

/* termín úkolu (#14 Hlídač úkolů) */
.task-overdue { display: inline-block; background: #fef2f2; color: #b91c1c; border: 1px solid #f3c5c5; border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 800; margin-left: 6px; }
.task-due-soon { display: inline-block; background: #fff8ee; color: #b45309; border: 1px solid #fae3c0; border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 800; margin-left: 6px; }

/* priorita úkolu (#20) – klikací odznak, zákazník si ji může přepnout */
.task-prio {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; color: var(--ink); vertical-align: middle;
}
.task-prio .prio-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.task-prio.prio-high { border-color: #f3c5c5; background: #fef2f2; color: #b91c1c; }
.task-prio.prio-high .prio-dot { background: #dc2626; }
.task-prio.prio-medium { border-color: #fae3c0; background: #fff8ee; color: #b45309; }
.task-prio.prio-medium .prio-dot { background: #f59e0b; }
.task-prio.prio-low { border-color: #cdeedd; background: #f0fbf5; color: #059669; }
.task-prio.prio-low .prio-dot { background: #10b981; }
.task-prio.prio-custom { border-color: #d6c8f5; background: #f5f1ff; color: #6d28d9; }
.task-prio.prio-custom .prio-dot { background: #7c3aed; }
.task-prio.prio-none { border-style: dashed; color: var(--muted); background: transparent; font-weight: 600; }
.task-prio:hover { filter: brightness(0.96); }
/* menu volby priority (presety / vlastní text / bez priority) */
.prio-menu { position: absolute; z-index: 1000; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; }
.prio-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--ink); cursor: pointer; }
.prio-menu button:hover { background: var(--bg); }

/* Smart kapitoly (#38) */
.chapters-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.chapter-item {
  display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left;
  background: transparent; border: none; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.chapter-item:hover { background: var(--surface); }
.chapter-time {
  font-size: 12px; font-weight: 700; color: var(--purple); flex-shrink: 0;
  min-width: 44px; font-variant-numeric: tabular-nums;
}
.chapter-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* přepis */
.transcript-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f3f1fa; }
.transcript-line:hover { background: var(--surface); }
.transcript-time { color: var(--purple); font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; padding-top: 2px; }
.transcript-speaker { font-weight: 700; font-size: 13.5px; }
.transcript-text { font-size: 14.5px; color: var(--ink); }

/* pravý sloupec */
.side-card {
  background: linear-gradient(135deg, rgba(124,58,237,.05), rgba(236,72,153,.03)), var(--card);
  border: 1px solid rgba(168,85,247,.22);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(30,27,46,.04), 0 10px 30px rgba(124,58,237,.10);
}
.theme-dark .side-card {
  background: linear-gradient(135deg, rgba(124,58,237,.11), rgba(236,72,153,.06)), var(--card);
  border-color: rgba(168,85,247,.30);
  box-shadow: 0 0 34px rgba(124,58,237,.13);
}
.side-card h3 {
  font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  margin: -2px -4px 14px; padding: 0 4px 11px;
  display: flex; align-items: center; gap: 8px;
  color: var(--purple);
  border-bottom: 1px solid rgba(168,85,247,.3);
  text-shadow: 0 0 16px rgba(124,58,237,.22);
}
.theme-dark .side-card h3 { color: #f1edfc; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.side-card h3 .ic { width: 19px; height: 19px; color: var(--purple); filter: drop-shadow(0 0 8px rgba(124,58,237,.4)); }
.speaker-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.speaker-row:last-child { margin-bottom: 0; }
.speaker-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.speaker-name { flex: 1; font-size: 14px; font-weight: 600; }
.speaker-bar { width: 90px; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.speaker-bar span { display: block; height: 100%; background: var(--gradient); }
.speaker-pct { font-size: 12.5px; color: var(--muted); width: 34px; text-align: right; }

/* AI chat panel */
.ai-chat { display: flex; flex-direction: column; height: 460px; }
.ai-chat-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; margin-bottom: 14px; }
.ai-msg { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: 14px; }
.ai-msg-user { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg-bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; display: flex; gap: 8px; }
.ai-msg-bot .ic { width: 18px; height: 18px; color: var(--purple); flex-shrink: 0; margin-top: 2px; }
.ai-chat-form { display: flex; gap: 8px; }
.ai-chat-form input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: 14px; outline: none; }
.ai-chat-form input:focus { border-color: var(--purple); }
.ai-chat-form button { width: 44px; padding: 0; flex-shrink: 0; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ai-suggestion { font-size: 12.5px; background: var(--surface); color: var(--purple); padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; }

/* ========== FILTRY ========== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* odkaz na schůzku u úkolu */
.task-meeting { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.task-meeting .ic { width: 13px; height: 13px; }
.tasks-group-title { font-size: 14px; font-weight: 800; color: var(--muted); margin: 24px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.tasks-group-title:first-child { margin-top: 0; }

/* ========== NASTAVENÍ ========== */
.settings-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(124,58,237,.04);
}
.settings-card > h2 { font-size: 17px; margin-bottom: 4px; }
.settings-card > .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.settings-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row .srow-main { flex: 1; }
.settings-row .srow-main strong { display: block; font-size: 14.5px; }
.settings-row .srow-main span { font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; }
.field input {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  font-family: inherit; font-size: 14px; outline: none; background: var(--bg);
}
.field input:focus { border-color: var(--purple); }
select, .rec-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 38px 11px 14px;
  font-family: inherit; font-size: 14px; outline: none; background-color: var(--bg);
  cursor: pointer; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b6680' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, .rec-select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* přepínač on/off */
.switch { width: 48px; height: 27px; border-radius: 999px; background: var(--border); border: none; cursor: pointer; position: relative; flex-shrink: 0; transition: background .2s ease; }
.switch.on { background: var(--purple); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch.on::after { transform: translateX(21px); }

/* integrace logo placeholder */
.integration { display: flex; align-items: center; gap: 14px; }
.integration-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--purple);
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.12)); font-weight: 800; font-size: 13px;
}

/* plán / kredity v nastavení */
.plan-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.08)); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.plan-badge { background: var(--gradient); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.plan-box .plan-main { flex: 1; min-width: 160px; }
.plan-box .plan-main strong { display: block; font-size: 16px; }
.plan-box .plan-main span { font-size: 13px; color: var(--muted); }

/* full chat */
.full-chat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; height: calc(100vh - 320px); min-height: 380px; }
.full-chat .ai-chat-thread { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.full-chat .ai-chat-foot { border-top: 1px solid var(--border); padding: 16px 20px; }
.full-chat .ai-msg { max-width: 70%; }

/* ========== ŽIVÉ NAHRÁVÁNÍ ========== */
.rec-bar {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px;
}
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #ef4444; animation: recpulse 1.4s infinite; flex-shrink: 0; }
@keyframes recpulse { 0%{box-shadow:0 0 0 0 rgba(239,68,68,.5)} 70%{box-shadow:0 0 0 10px rgba(239,68,68,0)} 100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} }
.rec-status { font-weight: 800; font-size: 14px; color: #ef4444; }
.rec-title { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; }
.rec-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; color: var(--ink); }
.rec-actions { display: flex; gap: 10px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.rec-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.rec-live {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; min-height: 420px;
}
.rec-live-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--purple); margin-bottom: 18px; }
.rec-live-head .ic { width: 18px; height: 18px; }
.rec-live-thread { display: flex; flex-direction: column; gap: 14px; }
.rec-line { display: flex; gap: 14px; animation: fadein .4s ease; }
@keyframes fadein { from{opacity:0; transform: translateY(6px)} to{opacity:1; transform:none} }
.rec-line .transcript-time { padding-top: 2px; }
.rec-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.rec-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9c2e6; animation: blink 1.2s infinite; }
.rec-typing span:nth-child(2){ animation-delay:.2s } .rec-typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ========== VYSKAKOVACÍ OKNA (modaly) ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30,27,46,.5);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 460px;
  box-shadow: 0 24px 70px rgba(30,27,46,.3);
  max-height: 90vh; overflow-y: auto;
  animation: modalin .2s ease;
}
@keyframes modalin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-body > p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; padding: 0 24px 24px; }

/* dropzone v okně nahrání */
.dropzone {
  position: relative;
  border: 1.5px dashed rgba(168,85,247,.45);
  border-radius: 16px; padding: 40px 24px;
  text-align: center; cursor: pointer;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(124,58,237,.10), transparent 72%),
    var(--surface);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.dropzone:hover {
  border-color: rgba(168,85,247,.9);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(124,58,237,.18), transparent 72%),
    var(--surface);
  box-shadow: 0 12px 30px rgba(124,58,237,.18);
  transform: translateY(-2px);
}
.dropzone .ic {
  width: 24px; height: 24px; color: #fff; padding: 14px;
  box-sizing: content-box; display: block; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 8px 22px rgba(124,58,237,.42);
  transition: transform .2s;
}
.dropzone:hover .ic { transform: translateY(-2px) scale(1.04); }
.dropzone strong { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.dropzone span { font-size: 13px; color: var(--muted); }

/* náhled e-mailu */
.email-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: 14px; }
.email-preview .email-row { margin-bottom: 8px; }
.email-preview .email-label { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.email-preview hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.email-preview p { margin-bottom: 10px; color: var(--ink); }

/* sdílení – odkaz */
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-family: inherit; background: var(--bg); outline: none; }
.share-opt { display: flex; align-items: center; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 10px; transition: background .15s; }
.share-opt:last-child { border-bottom: none; }
.share-opt:hover { background: var(--bg); }
.share-opt .ic { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; }
.share-opt .srow-main { flex: 1; }
.share-opt .srow-main strong { display: block; font-size: 14.5px; }
.share-opt .srow-main span { font-size: 13px; color: var(--muted); }

/* export volby */
.export-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; margin-bottom: 10px; font-family: inherit; text-align: left; color: var(--ink);
}
.export-opt:hover { border-color: var(--purple); background: var(--surface); }
.export-opt .ic { width: 24px; height: 24px; color: var(--purple); }
.export-opt strong { display: block; font-size: 14.5px; }
.export-opt span { font-size: 12.5px; color: var(--muted); }

/* oznámení */
.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gradient); margin-top: 6px; flex-shrink: 0; }
.notif-item.read .notif-dot { background: var(--border); }
.notif-text { font-size: 14px; }
.notif-time { font-size: 12px; color: var(--muted); }

/* ========== PŘIHLÁŠENÍ / REGISTRACE ========== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(150deg, #2a2440, #1e1b2e);
  color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-side .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.auth-side .b1 { width: 320px; height: 320px; background: var(--purple); top: -80px; right: -60px; }
.auth-side .b2 { width: 280px; height: 280px; background: var(--pink); bottom: -60px; left: -40px; }
.auth-side-inner { position: relative; z-index: 1; }
.auth-logo { font-size: 28px; font-weight: 900; margin-bottom: 28px; }
.auth-logo span { color: var(--pink); }
.auth-side h2 { font-size: 30px; line-height: 1.2; margin-bottom: 18px; }
.auth-side p { color: #c9c4e6; font-size: 16px; margin-bottom: 28px; }
.auth-points li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.auth-points .ic { width: 20px; height: 20px; color: #fff; background: rgba(255,255,255,.15); border-radius: 50%; padding: 3px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-tabs { display: flex; background: #efecf9; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); border: none; background: none; font-family: inherit; }
.auth-tab.active { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.auth-divider { text-align: center; margin: 20px 0; position: relative; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-forgot { display: block; text-align: right; font-size: 13px; font-weight: 600; color: var(--purple); text-decoration: none; margin: -6px 0 16px; }
.auth-forgot:hover { text-decoration: underline; }

/* ========== NAHRÁVÁNÍ – BLOK 1 ========== */
.consent { margin-bottom: 20px; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.consent-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--purple); flex-shrink: 0; }
.rec-help { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.rec-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.rec-choice {
  text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; cursor: pointer; font-family: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rec-choice:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); }
.rec-choice .ic { width: 28px; height: 28px; color: var(--purple); margin-bottom: 10px; }
.rec-choice strong { display: block; font-size: 15.5px; margin-bottom: 5px; }
.rec-choice span { font-size: 13px; color: var(--muted); }
.rec-divider { text-align: center; color: var(--muted); font-size: 13px; margin: 20px 0; position: relative; }
.rec-divider::before, .rec-divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.rec-divider::before { left: 0; } .rec-divider::after { right: 0; }

.level-meter { height: 12px; background: var(--surface); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.level-meter span { display: block; height: 100%; width: 0; background: var(--gradient); border-radius: 999px; transition: width .08s linear; }
.rec-controls { display: flex; gap: 12px; flex-wrap: wrap; }

.done-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center;
}
.done-icon .ic { width: 32px; height: 32px; }
.rec-error {
  margin-top: 16px; background: #fdecec; border: 1px solid #f5c2c2; color: #b42318;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.transcript-out { white-space: pre-wrap; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
/* klikatelný přepis (Blok F) */
.transcript-out.clickable { white-space: normal; }
.tline { display: flex; flex-wrap: wrap; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.tline:hover { background: var(--bg); }
.tline.active { background: var(--surface); }
.tline-time { color: var(--purple); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 44px; padding-top: 2px; }
.tline-body { flex: 1; }
.tline-speaker { display: block; font-size: 12.5px; font-weight: 700; color: var(--purple); margin-bottom: 1px; }
.tline-text { font-size: 14.5px; line-height: 1.6; }
/* play/stop u věty přepisu (#61) – přehrání jednotlivé věty přímo v přepisu */
.tline-play {
  flex-shrink: 0; align-self: center; width: 28px; height: 28px;
  border: 1px solid var(--border); background: var(--card); color: var(--purple);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.tline-play .ic { width: 13px; height: 13px; }
.tline-play:hover { background: var(--bg); }
.tline-play.is-playing { background: var(--gradient); color: #fff; border-color: transparent; }
/* přehrávač u věty (#61) – skutečný <audio> + volba rychlosti, objeví se u aktivní věty */
.tline-player { flex-basis: 100%; width: 100%; }
.tline-player:empty { display: none; }
.line-player-wrap { width: 100%; margin-top: 8px; }
.line-player-wrap audio { width: 100%; }

/* Uložené úryvky (klipy uložené ve schůzce) */
.clips-list { display: flex; flex-direction: column; gap: 14px; }
.saved-clip { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); }
.saved-clip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.saved-clip-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.saved-clip-del { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.saved-clip-del:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.saved-clip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.line-speed { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.speed-btn { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink); }
.speed-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* Soundbite / klip (#60) – tlačítko u věty přepisu + volba délky v okně */
.tline-clip {
  flex-shrink: 0; align-self: center;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--purple);
  padding: 3px 10px; cursor: pointer; opacity: .5; transition: opacity .12s;
}
.tline:hover .tline-clip { opacity: 1; }
.tline-clip:hover { background: var(--bg); }
/* poznámky u věty (#61) */
.tline-note {
  flex-shrink: 0; align-self: center;
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #b45309;
  padding: 3px 10px; cursor: pointer; opacity: .5; transition: opacity .12s;
}
.tline:hover .tline-note { opacity: 1; }
.tline-note:hover { background: #fff8ee; }
.tline-comments { flex-basis: 100%; width: 100%; }
.tline-comments:empty { display: none; }
.tline-comment { display: flex; align-items: flex-start; gap: 8px; background: #fff7ed; border: 1px solid #fde6c8; border-radius: 8px; padding: 6px 10px; margin-top: 6px; font-size: 13px; }
.tline-comment .ic { width: 14px; height: 14px; color: #b45309; flex-shrink: 0; margin-top: 2px; }
.tline-comment-text { flex: 1; color: #7c4a13; }
.comment-del { border: none; background: transparent; color: #b45309; cursor: pointer; font-size: 13px; flex-shrink: 0; line-height: 1; }
.comment-add-form { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.comment-input { flex: 1; min-width: 180px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 13px; outline: none; }
.comment-input:focus { border-color: var(--purple); }
.clip-lengths { display: flex; gap: 8px; }
.clip-len {
  border: 1px solid var(--border); background: var(--card); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.clip-len.active { background: var(--gradient); color: #fff; border-color: transparent; }
.clip-range { display: flex; gap: 12px; }
.clip-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.clip-field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.clip-time {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 15px; font-weight: 700; outline: none; background: var(--bg);
  text-align: center; font-variant-numeric: tabular-nums;
}
.clip-time:focus { border-color: var(--purple); }
.proc-banner { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.proc-banner.err { background: #fdecec; border-color: #f5c2c2; color: #b42318; }
.player-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--card-shadow); }
.player-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--purple); margin-bottom: 12px; }
.player-head .ic { width: 19px; height: 19px; color: var(--purple); filter: drop-shadow(0 0 8px rgba(124,58,237,.45)); }
.theme-dark .player-head { color: #f1edfc; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.player-clip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.player-clip .rec-help { margin: 0; }
/* Moderní přehrávač nahrávky */
.zplayer { display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, rgba(124,58,237,.09), rgba(236,72,153,.06)); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; }
.zp-play { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--gradient); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 14px rgba(124,58,237,.35); transition: transform .15s ease; }
.zp-play:hover { transform: scale(1.07); }
.zp-play svg { width: 17px; height: 17px; fill: #fff; }
.zp-time { font-size: 12.5px; font-weight: 600; color: var(--muted); flex-shrink: 0; min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.zp-range { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: var(--border); cursor: pointer; outline: none; touch-action: none; }
.zp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
.zp-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--purple); border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
.zp-rate { flex-shrink: 0; border: 1px solid var(--border); background: var(--card); color: var(--purple); font-size: 12px; font-weight: 700; border-radius: 9px; padding: 6px 10px; cursor: pointer; transition: background .15s ease; }
.zp-rate:hover { background: var(--bg); }
@media (max-width: 760px) {
  .zplayer { gap: 9px; padding: 12px; }
  .zp-play { width: 40px; height: 40px; }
  .zp-rate { padding: 7px 9px; }
  /* větší dotyková plocha posuvníku na mobilu */
  .zp-range { height: 12px; }
  .zp-range::-webkit-slider-thumb { width: 26px; height: 26px; border-width: 4px; }
  .zp-range::-moz-range-thumb { width: 26px; height: 26px; border-width: 4px; }
}
.edit-area { width: 100%; min-height: 280px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-family: inherit; font-size: 14.5px; line-height: 1.7; resize: vertical; outline: none; }
.edit-area:focus { border-color: var(--purple); }
.empty-meetings { text-align: center; padding: 50px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.empty-meetings p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
/* Prázdné stavy s ikonou – „připraveno, čeká na data" */
.empty-state { text-align: center; padding: 52px 24px; max-width: 480px; margin: 6px auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.empty-state-ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--muted); opacity: .75; }
.empty-state-ic .ic { width: 30px; height: 30px; }
.empty-state h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.empty-state p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 auto; max-width: 400px; }
.empty-state .btn { margin-top: 18px; }

/* velké tlačítko + světlé varianty (pro gradientová pozadí v appce) */
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-light { background: #fff; color: var(--purple); border: none; }
.btn-light:hover { filter: brightness(0.96); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

/* ONBOARDING – uvítací karta pro nové uživatele (0 schůzek) */
.onboarding-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; text-align: center; box-shadow: 0 10px 30px rgba(80,40,160,.06);
}
.onboarding-card .ob-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.onboarding-card h2 { font-size: 24px; margin-bottom: 8px; }
.onboarding-card > p { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto 24px; }
.ob-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; margin: 0 auto 26px; text-align: left; }
.ob-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ob-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient);
  color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.ob-step strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.ob-step span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ob-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ob-feat-title { font-weight: 700; font-size: 17px; margin: 4px 0 16px; }
.ob-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; max-width: 940px; margin: 0 auto 28px; text-align: left; }
.ob-feat { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; }
.ob-feat-ic { flex: 0 0 auto; display: flex; align-items: center; color: #a855f7; margin-top: 1px; }
.ob-feat-ic .ic { width: 20px; height: 20px; }
.ob-feat strong { display: block; font-size: 14px; margin-bottom: 3px; }
.ob-feat span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 720px) { .ob-steps { grid-template-columns: 1fr; } .ob-features { grid-template-columns: 1fr; } .ob-actions { flex-direction: column; } .ob-actions .btn { width: 100%; justify-content: center; } }

/* DEMO / UKÁZKOVÁ SCHŮZKA – banner nahoře + závěrečná výzva */
.demo-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f3ecff, #fdeef6); border: 1px solid #e6d8fb;
  border-radius: 14px; padding: 16px 20px; margin-bottom: 22px;
}
.demo-banner-ic { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.demo-banner-txt { flex: 1; min-width: 220px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.demo-banner-more { display: block; margin-top: 8px; font-size: 13.5px; color: var(--purple); }
.demo-cta {
  margin-top: 28px; background: var(--gradient); color: #fff; border-radius: var(--radius);
  padding: 40px 30px; text-align: center;
}
.demo-cta-emoji { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.demo-cta h2 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.demo-cta p { font-size: 15px; opacity: .92; max-width: 520px; margin: 0 auto 24px; }
.demo-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .demo-cta-actions { flex-direction: column; } .demo-cta-actions .btn { width: 100%; justify-content: center; } }

/* DEMO SHOWCASE – 4 náhledy „co appka vytvoří" (mockupy jako screenshoty) */
.demo-showcase { margin-top: 40px; }
.showcase-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.eyebrow-demo { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--purple); background: #f3ecff; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.showcase-head h2 { font-size: 24px; margin-bottom: 8px; }
.showcase-head p { color: var(--muted); font-size: 14.5px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.showcase-item { display: flex; flex-direction: column; }
.showcase-frame { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px rgba(80,40,160,.10); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d7d2e6; flex: 0 0 auto; }
.frame-bar span:nth-child(1) { background: #ff5f57; }
.frame-bar span:nth-child(2) { background: #febc2e; }
.frame-bar span:nth-child(3) { background: #28c840; }
.frame-bar em { margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.frame-body { padding: 18px; }
.showcase-cap { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; padding: 0 4px; }
.showcase-cap strong { color: var(--ink); }

/* mock: cenová nabídka */
.mock-doc h4 { font-size: 16px; margin-bottom: 4px; }
.mock-doc .mock-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.mock-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.mock-total { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 12px 0 2px; }
.mock-total strong { color: var(--purple); }

/* mock: prezentace slidy */
.mock-slides { display: flex; flex-direction: column; gap: 10px; }
.mock-slide { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.mock-slide strong { display: block; font-size: 14px; margin-bottom: 6px; }
.mock-slide ul { margin: 0; padding-left: 18px; }
.mock-slide li { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.mock-slide-title { background: var(--gradient); color: #fff; text-align: center; padding: 20px 14px; }
.mock-slide-title strong { font-size: 16px; line-height: 1.35; }
.mock-slide-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .85; margin-bottom: 8px; }
.mock-slide-title span { display: block; margin-top: 8px; font-size: 12px; opacity: .85; }

/* mock: sdílet */
.mock-share-link { display: flex; gap: 8px; margin-bottom: 8px; }
.mock-share-link input { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; font-size: 13px; color: var(--muted); background: var(--surface); }
.mock-copy { display: inline-flex; align-items: center; background: var(--gradient); color: #fff; border-radius: 9px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.mock-share .share-opt { cursor: default; }

/* mock: export (vypnuté, jen na ukázku) */
.mock-export .export-opt { cursor: default; opacity: 1; }
.mock-export .export-opt:hover { border-color: var(--border); background: var(--card); }

@media (max-width: 760px) { .showcase-grid { grid-template-columns: 1fr; } }
.showcase-more {
  display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
  text-align: center; max-width: 640px; margin: 28px auto 0;
  background: var(--surface); border: 1px dashed rgba(168,85,247,.32); border-radius: 16px; padding: 16px 22px;
}
.showcase-more .sm-spark { font-size: 22px; line-height: 1; }
.showcase-more p { font-size: 14.5px; color: var(--ink); margin: 0; line-height: 1.5; }

/* HROMADNÉ NAHRÁNÍ – seznam souborů + stav */
.dropzone.dragover {
  border-color: var(--purple); border-style: solid;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(124,58,237,.26), transparent 72%),
    var(--surface);
  box-shadow: 0 0 0 3px rgba(124,58,237,.22), 0 14px 34px rgba(124,58,237,.30);
  transform: translateY(-2px);
}
.bulk-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--card); }
.bulk-item > .ic { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; }
.bulk-main { flex: 1; min-width: 0; }
.bulk-main strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-status { font-size: 12.5px; color: var(--muted); }
.bulk-rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 8px; line-height: 1; }
.bulk-rm:hover { color: #ef4444; }
.bulk-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.bulk-badge.bulk-ok { background: #dcfce7; color: #15803d; }
.bulk-badge.bulk-err { background: #fee2e2; color: #b91c1c; }
.bulk-item.bulk-done { border-color: #bbf7d0; }
.bulk-item.bulk-error { border-color: #fecaca; }

/* skóre (efektivita / coaching) */
.score-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.score-num { font-size: 32px; font-weight: 900; line-height: 1; }
.score-max { font-size: 14px; color: var(--muted); font-weight: 700; }
.score-rating { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.score-bar { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 999px; }
.filler-chip { background: var(--surface); color: var(--purple); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* slidy prezentace */
.slide { border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 12px; background: var(--surface); }
.slide-num { font-size: 11px; font-weight: 800; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; }
.slide h4 { font-size: 16px; margin: 6px 0 10px; }
.slide ul { margin: 0 0 0 18px; }
.slide li { font-size: 14px; margin-bottom: 5px; }
.slide [contenteditable] { outline: none; border-radius: 5px; transition: background .12s, box-shadow .12s; }
.slide [contenteditable]:hover { background: var(--card); }
.slide [contenteditable]:focus { background: var(--card); box-shadow: 0 0 0 2px rgba(124,58,237,.25); padding: 0 4px; }

/* Příprava na schůzku (#53) – vyhledávací/poznámkové pole */
.prep-search { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: 14px; outline: none; background: var(--bg); }
.prep-search:focus { border-color: var(--purple); }

/* AI Překladač (#35) – samostatná stránka */
.trans-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.trans-col { display: flex; flex-direction: column; gap: 8px; }
.trans-head { display: flex; align-items: center; gap: 8px; }
.trans-lang-label { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.trans-select { flex: 1; min-width: 0; }
.trans-area { min-height: 230px; border: 1.5px solid #ddd3f3; border-radius: 14px; padding: 14px; font-family: inherit; font-size: 14.5px; line-height: 1.7; outline: none; background: var(--surface); resize: vertical; width: 100%; box-sizing: border-box; }
.trans-area:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.trans-result { background: var(--surface); border-color: var(--border); white-space: pre-wrap; overflow-y: auto; color: var(--ink); }
.trans-select { border: 1.5px solid #ddd3f3; }
#transUpload {
  border: 1.5px dashed rgba(168,85,247,.45); border-radius: 18px;
  background: radial-gradient(130% 100% at 50% 0%, rgba(124,58,237,.10), transparent 72%), var(--surface);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
#transUpload:hover, #transUpload.drag {
  border-color: rgba(168,85,247,.9);
  background: radial-gradient(130% 100% at 50% 0%, rgba(124,58,237,.18), transparent 72%), var(--surface);
  box-shadow: 0 12px 30px rgba(124,58,237,.18); transform: translateY(-2px);
}
#transUpload.drag { border-style: solid; box-shadow: 0 0 0 3px rgba(124,58,237,.22), 0 14px 34px rgba(124,58,237,.30); }
.trans-foot { min-height: 28px; display: flex; align-items: center; }
.trans-swap { display: flex; align-items: center; justify-content: center; }
.trans-swap-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--purple); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.trans-swap-btn:hover { background: var(--bg); }
.trans-swap-btn .ic { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .trans-grid { grid-template-columns: 1fr; }
  .trans-swap { transform: rotate(90deg); margin: 4px 0; }
}

/* kontextový překladač – plovoucí tlačítko + nabídka jazyků */
.zap-trans-bar { position: absolute; z-index: 9999; }
.zap-trans-go { display: inline-flex; align-items: center; gap: 6px; background: var(--gradient, linear-gradient(135deg,#7c3aed,#ec4899)); color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(124,58,237,.3); }
.zap-trans-go .ic { width: 14px; height: 14px; }
.zap-trans-menu { position: absolute; z-index: 9999; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(30,27,46,.18); padding: 6px; max-height: 280px; overflow-y: auto; width: 200px; }
.zap-trans-menu-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 8px; }
.zap-trans-lang { display: block; width: 100%; text-align: left; background: transparent; border: none; border-radius: 8px; padding: 7px 10px; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.zap-trans-lang:hover { background: var(--bg); }

/* toast hláška */
.z-toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2b2640; color: #fff; padding: 13px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(30,27,46,.35);
  z-index: 300; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  max-width: 90vw; text-align: center;
}
.z-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.transcript-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--purple);
  display: inline-block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RESPONZIVITA ========== */
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .app-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 760px) {
  .app-sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(30,27,46,.45); z-index: 50; }
  .app-burger { display: flex; padding: 6px; margin: -6px; }
  .topbar-search { display: none; }
  /* kompaktní horní lišta na mobilu – jeden řádek, bez podtitulku */
  .app-topbar { padding: 12px 16px; gap: 10px; }
  .app-burger .ic { width: 26px; height: 26px; }
  .topbar-title { flex: 0 1 auto; min-width: 0; }
  .topbar-title h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-title.title-expanded h1 { white-space: normal; overflow: visible; text-overflow: clip; }
  .topbar-title p { display: none; }
  .app-stats { grid-template-columns: 1fr; }
  .app-content { padding: 18px; }
  .detail-header { flex-direction: column; }
  /* hlavička detailu – přehlednější rozložení na telefonu */
  .detail-title-row h1 { font-size: 21px; }
  .detail-meta { gap: 8px 14px; font-size: 13px; row-gap: 9px; }
  .detail-meta #metaClient { flex-basis: 100%; }
  #metaTags { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border); }
  .field-row { grid-template-columns: 1fr; }
  .rec-choices { grid-template-columns: 1fr; }
  /* akční tlačítka pod sebe na plnou šířku – snadno klikatelná prstem */
  .upload-box { padding: 28px 18px; }
  .upload-actions { flex-direction: column; }
  .upload-actions .btn { width: 100%; justify-content: center; }
  /* lišta živého nahrávání – ať se nemačká */
  .rec-bar { flex-wrap: wrap; }
  .rec-actions { width: 100%; }
  .rec-actions .btn { flex: 1; justify-content: center; }
  .rec-controls .btn { flex: 1; justify-content: center; }
  /* modální tlačítka na plnou šířku */
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; justify-content: center; }
  /* Úkoly – 2 řádky: titulek+info nahoře, tag vlevo + akce vpravo pod tím */
  .task-item { flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
  .task-check { order: 1; margin-top: 2px; }
  .task-body { order: 2; flex: 1 1 calc(100% - 34px); }
  .task-owner { order: 3; margin-left: 34px; align-self: center; }
  .task-cal { order: 4; margin-left: auto; }
  .task-edit { order: 5; }
  .task-del { order: 6; }
  /* AI chat – návrhové chipy na plnou šířku pod sebou (uniformní, ne ragged) */
  .ai-suggestions { flex-direction: column; align-items: stretch; }
  .ai-suggestion { width: 100%; text-align: left; }
  /* Karty schůzek (Přehled / Schůzky) – 2 řádky: ikona+název+datum nahoře, tagy pod tím */
  .meeting-card { flex-wrap: wrap; }
  .meeting-main { flex: 1 1 calc(100% - 62px); min-width: 0; }
  .meeting-tags { flex-basis: 100%; margin-left: 62px; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  /* Detail schůzky – akční tlačítka do úhledné 2sloupcové mřížky (ne ragged) */
  .detail-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .detail-actions > button, .detail-actions > a { width: 100%; justify-content: center; margin: 0; white-space: nowrap; }
}

/* ============================================================
   PREMIUM UI LAYER — design brief 20.6.2026
   Body 1 (glass), 3 (zaoblení), 4 (typografie), 5 (ambient mesh), 6 (whitespace).
   Bod 2 (glow na tlačítkách) ZÁMĚRNĚ vynechán – tlačítka beze změny.
   Snadno vratné: smaž celý tento blok (od této hlavičky po konec souboru).
   ============================================================ */

/* (3) Větší zaoblení karet/sekcí – konzistentně přes proměnnou (bylo 18px) */
:root { --radius: 20px; }

/* (5) Ambient gradient mesh – jemné fialové/růžové „světelné skvrny" na pozadí */
html.theme-dark body {
  background-color: #100e18;
  background-image:
    radial-gradient(820px 560px at 6% -10%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(760px 560px at 106% 2%, rgba(236,72,153,.10), transparent 58%),
    radial-gradient(960px 720px at 50% 118%, rgba(99,102,241,.13), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
html:not(.theme-dark) body {
  background-color: #f3f0fb;
  background-image:
    radial-gradient(820px 560px at 6% -10%, rgba(124,58,237,.07), transparent 60%),
    radial-gradient(820px 600px at 106% 2%, rgba(236,72,153,.05), transparent 58%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* (1) Glassmorphism – karty „plavou" nad pozadím (tmavý režim) */
html.theme-dark .app-stat,
html.theme-dark .meeting-card,
html.theme-dark .panel-card,
html.theme-dark .dash-card,
html.theme-dark .dash-next {
  background: linear-gradient(180deg, rgba(48,42,74,.55), rgba(31,27,46,.42));
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 16px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
html.theme-dark .app-stat:hover,
html.theme-dark .meeting-card:hover,
html.theme-dark .dash-card:hover {
  border-color: rgba(168,85,247,.42);
  box-shadow: 0 22px 52px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.10);
}
/* světlý režim – jemné sklo, ať zůstane perfektně čitelné */
html:not(.theme-dark) .app-stat,
html:not(.theme-dark) .meeting-card,
html:not(.theme-dark) .panel-card,
html:not(.theme-dark) .dash-card,
html:not(.theme-dark) .dash-next {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px) saturate(116%);
  backdrop-filter: blur(12px) saturate(116%);
  border: 1px solid rgba(124,58,237,.12);
  box-shadow: 0 12px 32px rgba(124,58,237,.09), inset 0 1px 0 rgba(255,255,255,.65);
}

/* dash karty mají styl inline v app.html – přebijeme zaoblení/rozestupy (vyšší specificita) */
html .dash-card, html .dash-next { border-radius: var(--radius); }
html .dash-card { padding: 22px 24px; }
html .dash-charts { gap: 28px; margin-bottom: 32px; }

/* (6) Whitespace – aplikaci víc „nadechnout" */
.app-content { padding: 40px 48px; }
.app-stats { gap: 30px; margin-bottom: 36px; }
.meeting-list { gap: 16px; }
.app-section-head { margin: 0 0 20px; }
.upload-box { padding: 46px 32px; margin-bottom: 36px; }

/* (4) Typografie – tučnější nadpisy, tabulární čísla, kontrast popisků na skle */
.app-section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.app-stat-num { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.5px; }
html.theme-dark .app-stat-label,
html.theme-dark .meeting-meta,
html.theme-dark .meeting-meta span { color: #b7adda; }

/* responsivita – whitespace zkrotit na malých displejích */
@media (max-width: 900px) {
  .app-content { padding: 26px 18px; }
  .app-stats { gap: 18px; }
}
/* ===== KONEC PREMIUM UI LAYER ===== */

/* ============================================================
   SIDEBAR REDESIGN — brief 20.6.2026 (prémiový SaaS boční panel)
   Snadno vratné: smaž celý tento blok.
   ============================================================ */

/* (3) víc prostoru mezi položkami – panel „dýchá" */
html .app-nav { gap: 5px; }
html .app-nav a { padding: 9px 12px; position: relative; }

/* (3) nadpisy sekcí (HLAVNÍ / NÁSTROJE) – menší, řidší, diskrétnější (ztlumené) */
html .nav-section { font-size: 9.5px; letter-spacing: 1.5px; opacity: .42; padding: 16px 12px 6px; }
html .nav-section:first-child { padding-top: 4px; }

/* (2) hover – extrémně decentní zesvětlení, bez přeplácaných efektů */
html.theme-dark .app-nav a:hover { background: rgba(255,255,255,.035); color: var(--ink); }
html:not(.theme-dark) .app-nav a:hover { background: rgba(20,18,29,.04); color: var(--ink); }

/* (1) aktivní položka – PRYČ plné fialové podbarvení; ikona+text se rozsvítí do fialovo-růžové,
   neaktivní zůstávají tlumené (var(--muted)). */
html .app-nav a.active { background: transparent; box-shadow: none; color: #c77dff; font-weight: 700; }
html .app-nav a.active .ic { color: #c77dff; }
html.theme-dark .app-nav a.active:hover { color: #c77dff; background: rgba(255,255,255,.035); }
html:not(.theme-dark) .app-nav a.active:hover { color: #c77dff; background: rgba(20,18,29,.04); }
/* (1) tenký vertikální indikátor na pravém okraji aktivní položky */
html .app-nav a.active::after {
  content: ''; position: absolute; right: 0; top: 7px; bottom: 7px;
  width: 3px; border-radius: 999px;
  background: linear-gradient(180deg, #a855f7, #ec4899);
}
/* ikona „Vydělávejte se Zapsiem" zůstává jantarová i jako aktivní */
html .app-nav a.nav-earn.active .ic.nav-earn-ic { color: #fbbf24; }

/* (4) tenčí linkové ikony (pokud sprite používá stroke) */
html .app-nav a .ic { stroke-width: 1.7px; }

/* (4) panel vizuálně oddělit od dashboardu – jemně odlišný odstín + tenká poloprůhledná
   dělicí linka + lehká elevace, ať „vystupuje do prostoru". */
html.theme-dark .app-sidebar {
  background: #1b1828;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 8px 0 24px rgba(0,0,0,.18);
}
html:not(.theme-dark) .app-sidebar {
  border-right: 1px solid rgba(124,58,237,.10);
  box-shadow: 6px 0 22px rgba(124,58,237,.05);
}
/* (sidebar) kompaktnější box kreditů – ať menu „dýchá" a je vidět celé */
html .app-credits { margin-top: 8px; margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; }
html .credits-head { font-size: 11.5px; margin-bottom: 5px; }
html .credits-head .ic { width: 13px; height: 13px; }
html .credits-bar { height: 5px; margin-bottom: 5px; }
html .credits-text { font-size: 10.5px; margin-bottom: 6px; }
html .app-credits .btn { font-size: 11px; padding: 6px; }
/* ===== KONEC SIDEBAR REDESIGN ===== */

/* ============================================================
   GLOBAL CARD UNIFY — sjednocení glass přes CELOU appku (20.6.2026)
   Doplňuje premium sklo na bespoke karty všech stránek:
   Kontakty(.client-card), Složky(.folder-card), Témata(.tt-card),
   Úkoly(.voicenote-panel), Partner(.pt-stat), Tabule(.kb-card),
   Kalendář(.cal-day-meet/.cal-ev). (Příprava/Report/Překladač už jedou .panel-card.)
   Snadno vratné: smaž celý tento blok.
   ============================================================ */

html.theme-dark .client-card,
html.theme-dark .folder-card,
html.theme-dark .tt-card,
html.theme-dark .pt-stat,
html.theme-dark .kb-card,
html.theme-dark .cal-day-meet,
html.theme-dark .cal-ev {
  background: linear-gradient(180deg, rgba(48,42,74,.55), rgba(31,27,46,.42));
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: 0 16px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
html:not(.theme-dark) .client-card,
html:not(.theme-dark) .folder-card,
html:not(.theme-dark) .tt-card,
html:not(.theme-dark) .pt-stat,
html:not(.theme-dark) .kb-card,
html:not(.theme-dark) .cal-day-meet,
html:not(.theme-dark) .cal-ev {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px) saturate(116%);
  backdrop-filter: blur(12px) saturate(116%);
  border: 1px solid rgba(124,58,237,.12);
  box-shadow: 0 12px 32px rgba(124,58,237,.09), inset 0 1px 0 rgba(255,255,255,.65);
}
/* zaoblení sjednotit s premium kartami */
html .client-card, html .folder-card, html .tt-card,
html .pt-stat, html .cal-day-meet, html .cal-ev { border-radius: var(--radius); }

/* .voicenote-panel (Úkoly) má pozadí v inline style="" → nutný !important */
html.theme-dark .voicenote-panel {
  background: linear-gradient(180deg, rgba(48,42,74,.55), rgba(31,27,46,.42)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  backdrop-filter: blur(14px) saturate(118%);
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
html:not(.theme-dark) .voicenote-panel {
  background: rgba(255,255,255,.72) !important;
  -webkit-backdrop-filter: blur(12px) saturate(116%);
  backdrop-filter: blur(12px) saturate(116%);
  border: 1px solid rgba(124,58,237,.12) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 12px 32px rgba(124,58,237,.09), inset 0 1px 0 rgba(255,255,255,.65);
}
/* ===== KONEC GLOBAL CARD UNIFY ===== */

/* ============================================================
   PRETTY-SELECT — čistý vlastní dropdown místo nativního <select>
   (nativní select je skrytý, drží hodnotu; viz pretty-select.js)
   ============================================================ */
.psel-wrap { position: relative; }
.psel-native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.psel-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; line-height: 1.3; text-align: left;
  background: var(--bg); border: 1px solid var(--border); color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.psel-trigger:hover { border-color: var(--purple); }
.psel-wrap.open .psel-trigger { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.psel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psel-arrow { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; transition: transform .15s ease; }
.psel-wrap.open .psel-arrow { transform: rotate(180deg); }
.psel-menu {
  display: none; position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.32); padding: 6px; max-height: 320px; overflow-y: auto;
}
.psel-wrap.open .psel-menu { display: block; }
.psel-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); transition: background .1s ease; }
.psel-item:hover { background: var(--surface); }
.psel-item.is-sel { color: var(--purple); font-weight: 700; background: rgba(124,58,237,.10); }
/* ===== KONEC PRETTY-SELECT ===== */

/* ============================================================
   DETAIL SCHŮZKY – polish (brief 20.6.2026)
   ============================================================ */
/* (2) zmenšit řadu tlačítek (Vytvořit výstup zůstává zářivé primary) */
.detail-actions .btn { padding: 8px 13px; font-size: 13px; }
.detail-actions .btn .ic { width: 16px; height: 16px; }
/* (2) vedlejší tlačítka minimalistická – jemný outline / poloprůhledné tmavé pozadí */
html.theme-dark .detail-actions .btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); color: #cfc7e6; box-shadow: none; }
html.theme-dark .detail-actions .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(168,85,247,.5); color: var(--ink); }
html:not(.theme-dark) .detail-actions .btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
html:not(.theme-dark) .detail-actions .btn-ghost:hover { background: var(--surface); border-color: var(--purple); color: var(--purple); }
/* (3) Kapitoly – vyšší kontrast časů na tmavém podkladu */
html.theme-dark .chapter-time { color: #c3a6ff; }
/* (4) víc prostoru mezi shrnutím a sloupcem kapitol */
.detail-grid { gap: 36px; }
/* ===== KONEC DETAIL SCHŮZKY ===== */

/* ============================================================
   PRO POLISH – globální dotažení (modály, toasty, focus, empty, skeleton)
   Snadno vratné: smaž celý tento blok.
   ============================================================ */

/* Modály – skleněné okno + jemně rozostřené pozadí */
.modal-overlay { background: rgba(13,11,20,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal { border-radius: 20px; }
html.theme-dark .modal {
  background: linear-gradient(180deg, rgba(40,35,62,.94), rgba(28,24,44,.94));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Toast – skleněný, prémiový */
html.theme-dark .z-toast {
  background: linear-gradient(180deg, rgba(48,42,74,.94), rgba(31,27,46,.94));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 44px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Jednotný focus ring (jen klávesnice – neruší při kliknutí myší) */
.app-shell input:focus-visible,
.app-shell textarea:focus-visible,
.app-shell select:focus-visible,
.app-shell .psel-trigger:focus-visible,
.app-shell button:focus-visible,
.app-shell a.btn:focus-visible {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.22);
}

/* Empty states – čistě a vystředěně, s diskrétní ikonou */
.empty-state, .empty-meetings {
  text-align: center; padding: 44px 24px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-meetings::before { content: "🗂️"; font-size: 34px; line-height: 1; opacity: .7; }
.empty-state .es-ic { font-size: 34px; line-height: 1; opacity: .7; }
.empty-state h4 { font-size: 16px; color: var(--ink); margin: 0; }
.empty-state p, .empty-meetings p { font-size: 14px; color: var(--muted); margin: 0; max-width: 420px; }

/* Skeleton shimmer (pro loadery) */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: skel 1.3s infinite; }
@keyframes skel { 100% { transform: translateX(100%); } }
/* ===== KONEC PRO POLISH ===== */
