/* ========== ZÁKLAD / TOKENY ========== */
:root {
  --purple: #7c3aed;
  --pink: #ec4899;
  --bg: #f6f4fc;
  --ink: #1e1b2e;
  --muted: #6b6680;
  --card: #ffffff;
  --border: #ece9f7;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(124, 58, 237, 0.10);
  --gradient: linear-gradient(135deg, var(--purple), var(--pink));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 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;
}

/* ========== 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 .15s ease, box-shadow .15s ease, background .15s 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); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.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: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.app-logo { font-size: 22px; font-weight: 900; letter-spacing: -.03em; padding: 0 8px 22px; }
.app-logo span { color: var(--pink); }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.app-nav a .ic { width: 20px; height: 20px; }
.app-nav a:hover { background: #f6f3ff; color: var(--ink); }
.app-nav a.active { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.3); }

.app-credits {
  margin-top: auto; margin-bottom: 16px;
  background: #faf9fe; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.credits-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--purple); }
.credits-head .ic { width: 18px; height: 18px; }
.credits-bar { height: 8px; background: #ece9f7; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.credits-bar span { display: block; height: 100%; background: var(--gradient); border-radius: 999px; }
.credits-text { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.app-credits .btn { font-size: 13px; padding: 9px; }

.app-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--border); padding-top: 16px; }
.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: #fff;
  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: 20px; }
.topbar-title p { font-size: 13px; 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: 9px 14px; width: 280px; max-width: 32vw;
}
.topbar-search .ic { width: 18px; height: 18px; color: var(--muted); }
.topbar-search input { border: none; background: none; outline: none; font-family: inherit; font-size: 14px; 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: flex; flex-wrap: wrap; gap: 8px; }
.output-type { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: all .12s; }
.output-type .ic { width: 16px; height: 16px; }
.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-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: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  position: relative;
}
.topbar-icon:hover { color: var(--purple); border-color: var(--purple); }
.topbar-icon .ic { width: 20px; height: 20px; }
.topbar-icon .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; background: var(--pink); border-radius: 50%; }

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

/* statistiky */
.app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.app-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.app-stat-icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px;
  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));
}
.app-stat-num { font-size: 26px; font-weight: 900; }
.app-stat-label { font-size: 13px; 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: 14px; padding: 16px 18px;
  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-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: #f0eef7; 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-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; }
.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; }
.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í */
.upload-box {
  border: 2px dashed #d9d3ee; border-radius: var(--radius);
  padding: 36px; text-align: center; background: #faf9fe; margin-bottom: 28px;
}
.upload-box .ic { width: 40px; height: 40px; color: var(--purple); margin-bottom: 10px; }
.upload-box h3 { font-size: 17px; margin-bottom: 6px; }
.upload-box p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.upload-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== 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: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.detail-header h1 { font-size: 24px; margin-bottom: 8px; }
.detail-title-row { display: flex; align-items: center; gap: 10px; }
.title-edit { border: none; background: #efe7fb; 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; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.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; }

/* 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; }

/* shrnutí */
.summary-block { margin-bottom: 22px; }
.summary-block:last-child { margin-bottom: 0; }
.summary-block h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--purple); }
.summary-block h3 .ic { width: 18px; height: 18px; }
.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: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; color: #1e1b2e; 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:hover { filter: brightness(0.96); }

/* 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: #faf9fe; }
.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: #1e1b2e; line-height: 1.35; }

/* přepis */
.transcript-line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f3f1fa; }
.transcript-line:hover { background: #faf9fe; }
.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: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.side-card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-card h3 .ic { width: 18px; height: 18px; color: var(--purple); }
.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: #ece9f7; 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: #f3f1fa; 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: #f3f1fa; 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: #fff; 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;
}
.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); }
.rec-select {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
  font-family: inherit; font-size: 14px; outline: none; background: var(--bg);
  cursor: pointer; color: #1e1b2e;
}
.rec-select:focus { border-color: var(--purple); }
.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: #fff; 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 - 180px); min-height: 460px; }
.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: #fff; 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; padding: 0 24px 24px; }

/* dropzone v okně nahrání */
.dropzone {
  border: 2px dashed #d9d3ee; border-radius: 14px; padding: 36px 20px;
  text-align: center; background: #faf9fe; cursor: pointer;
}
.dropzone:hover { border-color: var(--purple); }
.dropzone .ic { width: 38px; height: 38px; color: var(--purple); margin-bottom: 10px; }
.dropzone strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dropzone span { font-size: 13px; color: var(--muted); }

/* náhled e-mailu */
.email-preview { background: #faf9fe; 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: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; margin-bottom: 10px; font-family: inherit; text-align: left;
}
.export-opt:hover { border-color: var(--purple); background: #faf9fe; }
.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: #fff; 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: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; cursor: pointer; font-family: inherit; 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: #ece9f7; 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: #f3ecfd; }
.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: #fff; 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%; }
.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: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: #1e1b2e; }
.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: #fff; 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: #fff; 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: #fff; border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer; color: #1e1b2e;
}
.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: #f3f1fa; 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; }
.player-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--purple); margin-bottom: 12px; }
.player-head .ic { width: 18px; height: 18px; }
.player-clip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.player-clip .rec-help { margin: 0; }
.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; }

/* 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: #ece9f7; border-radius: 999px; overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 999px; }
.filler-chip { background: #f3f1fa; 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: #faf9fe; }
.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: #fff; }
.slide [contenteditable]:focus { background: #fff; box-shadow: 0 0 0 2px rgba(124,58,237,.25); padding: 0 4px; }

/* 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: #faf9fe; 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: #f3ecfd; border-color: #d8c9f3; white-space: pre-wrap; overflow-y: auto; color: #1e1b2e; }
.trans-select { border: 1.5px solid #ddd3f3; }
#transUpload { border: 2px dashed #c4b1ef; background: #faf9fe; border-radius: 16px; transition: background .12s, border-color .12s; }
#transUpload:hover, #transUpload.drag { border-color: var(--purple); background: #f3ecfd; }
.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: #fff; 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: #fff; 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: #1e1b2e; }
.zap-trans-lang:hover { background: var(--bg); }

/* toast hláška */
.z-toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px;
  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 p { display: none; }
  .app-stats { grid-template-columns: 1fr; }
  .app-content { padding: 18px; }
  .detail-header { flex-direction: column; }
  .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; }
}
