/* =========================================================
   Inoo Media · Appka pro poradce
   Stejný vizuální styl jako onboarding/tracking appka:
   tmavá navy + indigo, Inter (nadpisy italic 800/900), IBM Plex Mono na čísla.
   Mobil na prvním místě: velká tlačítka, jedna věc na obrazovku.
   ========================================================= */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  color-scheme: dark;

  --bg: #0A0A1A;
  --surface: #10101F;
  --surface-2: #15152A;
  --surface-3: #1B1B36;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --ink: #FAFAFA;
  --ink-muted: #9D9DAF;
  --ink-faint: #6E6E88;

  --accent: #5048E5;
  --accent-hover: #6159F2;
  --accent-text: #8E88FF;
  --accent-soft: rgba(80, 72, 229, 0.14);
  --accent-line: rgba(80, 72, 229, 0.45);
  --accent-glow: 0 10px 34px -8px rgba(80, 72, 229, 0.6);
  --grad: linear-gradient(100deg, #5B4CF0 0%, #5048E5 45%, #2F6FEB 100%);

  --good: #34D399;
  --good-strong: #10B981;
  --good-soft: rgba(52, 211, 153, 0.12);
  --bad: #F87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --orange: #FB923C;
  --orange-soft: rgba(251, 146, 60, 0.12);
  --info: #7DB4FF;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  background:
    radial-gradient(700px 380px at 50% -140px, rgba(80, 72, 229, 0.22), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

::selection { background: rgba(80, 72, 229, 0.45); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
[hidden] { display: none !important; }

/* ---------- Horní lišta ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  background: rgba(10, 10, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 600px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wide .topbar-inner { max-width: 1360px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--accent-glow);
}
.brand em { font-style: normal; color: var(--accent-text); }
.mode-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: var(--warn-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Obrazovka ---------- */

.screen {
  max-width: 600px;
  margin: 0 auto;
  padding: 18px 16px calc(96px + var(--safe-bottom));
  animation: screen-in 0.28s var(--ease) both;
}
.wide .screen { max-width: 1360px; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-head { margin: 6px 0 18px; }
.page-title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.page-title span { color: var(--accent); }
.page-sub { margin: 8px 0 0; color: var(--ink-muted); font-size: 14px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  margin-bottom: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.back:hover { color: var(--ink); }

/* ---------- Bannery (přidat na plochu, zapnout upozornění) ---------- */

.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-line);
  background: linear-gradient(180deg, rgba(80, 72, 229, 0.16), rgba(80, 72, 229, 0.06));
  margin-bottom: 14px;
  animation: rise 0.35s var(--ease) both;
}
.banner.warn { border-color: rgba(251, 191, 36, 0.35); background: var(--warn-soft); }
.banner.bad { border-color: rgba(248, 113, 113, 0.35); background: var(--bad-soft); }
.banner-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
}
.banner.warn .banner-icon { background: rgba(251, 191, 36, 0.2); color: var(--warn); }
.banner.bad .banner-icon { background: rgba(248, 113, 113, 0.2); color: var(--bad); }
.banner-body { flex: 1; min-width: 0; }
.banner-body strong { display: block; font-size: 15px; margin-bottom: 2px; }
.banner-body p { margin: 0; color: var(--ink-muted); font-size: 13.5px; }
.banner-body .btn { margin-top: 10px; }
.ios-share {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  vertical-align: -6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--info);
}

/* ---------- Sekce to-do ---------- */

.section { margin: 22px 0 0; animation: rise 0.35s var(--ease) both; }
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-head .emoji { font-size: 15px; letter-spacing: 0; }
.count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--ink);
}
.s-hned .count { background: var(--bad); color: #1a0505; }

.tasks { display: grid; gap: 10px; }

.task {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s var(--ease), border-color 0.15s ease, background 0.15s ease;
  animation: rise 0.35s var(--ease) both;
}
.task::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--ink-faint);
}
.task:hover { border-color: var(--border-strong); background: var(--surface-2); }
.task:active { transform: scale(0.985); }
.task-main { flex: 1; min-width: 0; }
.task-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-hint {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-meta {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.3;
}
.task-meta strong { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink); }
.task .chev { flex-shrink: 0; color: var(--ink-faint); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-muted);
  margin-top: 6px;
  margin-right: 4px;
}
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); }

.t-hned::before { background: var(--bad); }
.t-hned .task-meta strong { color: var(--bad); }
.t-znovu::before { background: var(--orange); }
.t-znovu .task-meta strong { color: var(--orange); }
.t-slibil::before { background: var(--accent); }
.t-vysledek::before { background: var(--warn); }
.t-cekam::before { background: var(--warn); }
.t-cekam .task-meta strong { color: var(--warn); }
.t-neprirazene::before { background: var(--warn); }
.t-schuzky::before { background: var(--good); }
.t-schuzky .task-meta strong { color: var(--good); }
.t-poSchuzce::before { background: var(--warn); }
.t-poSchuzce .task-meta strong { color: var(--warn); }

.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bad);
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

/* Prázdný stav */
.empty {
  text-align: center;
  padding: 56px 16px 32px;
  animation: rise 0.4s var(--ease) both;
}
.empty-badge {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.35), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--good);
  animation: pop 0.5s var(--ease) both;
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.empty h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.empty p { margin: 8px 0 0; color: var(--ink-muted); }

.foot-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
.foot-links a, .linkish {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.foot-links a:hover, .linkish:hover { color: var(--ink); }

details.planned {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
}
details.planned summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
details.planned summary::-webkit-details-marker { display: none; }
details.planned[open] summary { border-bottom: 1px solid var(--border); }
.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
}
.plan-row:last-child { border-bottom: 0; }
.client-row { align-items: center; }
.client-main { min-width: 0; }
.client-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.client-chips .chip { margin: 0; }
.client-side { display: flex; align-items: center; gap: 6px; color: var(--ink-faint); flex-shrink: 0; }
.page-title.client-title { font-size: clamp(26px, 7vw, 40px); }
.plan-row:hover { background: rgba(255,255,255,0.02); }

/* ---------- Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s var(--ease), box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 17px; border-radius: 16px; }
.btn.ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.subtle { background: transparent; border-color: var(--border-strong); color: var(--ink-muted); }
.btn.subtle:hover { color: var(--ink); background: rgba(255,255,255,0.03); }
.btn.danger { background: transparent; border-color: rgba(248,113,113,0.4); color: var(--bad); }
.btn.danger-solid { background: #DC2626; color: #fff; }
.btn.danger-solid:hover { background: #EF4444; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.grad { background: var(--grad); box-shadow: var(--accent-glow); }

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  border-radius: 20px;
  border: 0;
  background: linear-gradient(100deg, #22C55E, #10B981 60%, #0EA5A4);
  color: #04130B;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 40px -12px rgba(16, 185, 129, 0.75);
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.2s ease;
  animation: call-breathe 2.8s ease-in-out infinite;
}
.btn-call:active { transform: scale(0.98); }
.btn-call svg { flex-shrink: 0; }
@keyframes call-breathe {
  0%, 100% { box-shadow: 0 14px 40px -12px rgba(16, 185, 129, 0.75); }
  50% { box-shadow: 0 14px 52px -8px rgba(16, 185, 129, 0.95); }
}

/* ---------- Karta leadu ---------- */

.lead-head { margin: 4px 0 18px; animation: rise 0.3s var(--ease) both; }
.lead-name {
  margin: 10px 0 4px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  word-break: break-word;
}
.lead-phone { color: var(--ink-muted); font-size: 15px; }
.lead-actions { display: grid; gap: 10px; margin-bottom: 18px; }
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-muted);
}
.state-chip.novy { background: var(--bad-soft); color: var(--bad); }
.state-chip.znovu { background: var(--orange-soft); color: var(--orange); }
.state-chip.slibil { background: var(--accent-soft); color: var(--accent-text); }
.state-chip.schuzka { background: var(--good-soft); color: var(--good); }
.state-chip.pending { background: var(--warn-soft); color: var(--warn); }
.state-chip.ceka { background: var(--warn-soft); color: var(--warn); }

/* ---------- schůzky ---------- */
.panel.note.meet-panel { border-color: rgba(52, 211, 153, 0.4); background: linear-gradient(180deg, rgba(52,211,153,0.14), rgba(52,211,153,0.04)); }
/* ---------- garance ---------- */
.g-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-card { margin: 0; }
.g-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 17px; }
.g-progress { display: flex; align-items: center; gap: 14px; }
.g-num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.g-num span { font-size: 16px; color: var(--ink-muted); font-weight: 600; }
.g-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.g-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--good)); }
.g-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.g-conds .chip { margin: 0; }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.g-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.g-row .input { min-height: 40px; padding: 6px 10px; }
.g-pauses { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.g-pauses .linkish { padding: 0 0 0 4px; font-size: 13px; }
.g-leads tr.g-flag td { background: var(--bad-soft); }
.g-viol { color: var(--bad); font-size: 13px; font-weight: 600; min-width: 140px; }
.mail-text { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; color: var(--ink-muted); margin: 8px 0 0; }
.delete-box { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px solid rgba(248,113,113,0.35); background: var(--bad-soft); }
.delete-box > strong { display: block; font-size: 16px; margin-bottom: 6px; }
.delete-box > p { margin: 0 0 12px; font-size: 14px; color: var(--ink-muted); }
.meet-panel .grid-2 .btn { font-size: 15px; padding-inline: 10px; white-space: nowrap; }
.meet-big { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.meet-when {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}
.meet-when.ok { background: var(--good-soft); color: var(--good); font-size: 15.5px; }
.meet-note { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--good); }
.meet-cancel { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 600; }
.meet-saved { text-align: center; padding: 6px 0 4px; }
.meet-saved-badge {
  width: 64px; height: 64px;
  margin: 4px auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--good);
  color: #04130B;
  animation: pop 0.4s var(--ease) both;
}
.meet-saved-when { margin: 6px 0 8px; font-size: 18px; font-weight: 800; }
.meet-saved-badge.cal { background: var(--grad); color: #fff; box-shadow: var(--accent-glow); }
.meet-cal-step .sheet-title { margin-bottom: 2px; }
.meet-sms-done { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-muted); font-size: 13.5px; font-weight: 600; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  animation: rise 0.35s var(--ease) both;
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.panel.note { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(80,72,229,0.12), rgba(80,72,229,0.04)); }
.rows { margin: 0; display: grid; gap: 0; }
.row {
  display: grid;
  grid-template-columns: minmax(110px, 40%) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.row:last-child { border-bottom: 0; padding-bottom: 2px; }
.row:first-child { padding-top: 2px; }
.row dt { color: var(--ink-muted); }
.row dd { margin: 0; font-weight: 600; word-break: break-word; }
.na { color: var(--ink-faint); font-size: 13.5px; margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 12px 22px;
  font-size: 14px;
  color: var(--ink-muted);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 7px; top: 18px; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.hl::before { background: var(--accent-text); }
.timeline .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-right: 6px; }
.timeline strong { color: var(--ink); font-weight: 600; }

.note-add .btn { margin-top: 10px; }
.note-add textarea.input { min-height: 56px; }
.notes { margin-top: 14px; display: grid; gap: 10px; }
.note-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  animation: rise 0.3s var(--ease) both;
}
.note-item.pending { border-style: dashed; border-color: rgba(251, 191, 36, 0.35); }
.note-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.note-body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.45; }

.inbound {
  display: block;
  margin: 18px auto 0;
  text-align: center;
}
.btn-delete {
  margin-top: 26px;
  background: var(--bad-soft);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--bad);
}
.btn-delete:hover { background: rgba(248, 113, 113, 0.2); }

/* ---------- Spodní panel „Jak dopadl hovor?“ ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 14, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 81;
  max-width: 600px;
  margin: 0 auto;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(22px + var(--safe-bottom));
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,0.7);
  animation: sheet-up 0.32s var(--ease) both;
}
.sheet.nudge { animation: sheet-up 0.32s var(--ease) both, nudge 0.6s 0.3s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nudge {
  0%, 100% { transform: none; }
  30% { transform: translateY(-10px); }
  60% { transform: translateY(2px); }
}
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 4px auto 14px; }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.sheet-sub { margin: 6px 0 0; color: var(--ink-muted); font-size: 15px; }
.sheet-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.outcomes { display: grid; gap: 10px; }
.outcome {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s ease, border-color 0.15s ease;
  animation: rise 0.3s var(--ease) both;
}
.outcome:nth-child(2) { animation-delay: 0.04s; }
.outcome:nth-child(3) { animation-delay: 0.08s; }
.outcome:nth-child(4) { animation-delay: 0.12s; }
.outcome:nth-child(5) { animation-delay: 0.16s; }
.outcome.o-podklady .o-icon { background: var(--warn-soft); color: var(--warn); }
.outcome:active { transform: scale(0.985); }
.outcome .o-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}
.outcome.o-schuzka { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(100deg, rgba(52,211,153,0.18), rgba(52,211,153,0.05)); }
.outcome.o-schuzka .o-icon { background: var(--good); color: #04130B; }
.outcome.o-nedovolano .o-icon { background: var(--orange-soft); color: var(--orange); }
.outcome.o-pozdeji .o-icon { background: var(--accent-soft); color: var(--accent-text); }
.outcome.o-nezajem .o-icon { background: var(--bad-soft); color: var(--bad); }
.outcome:hover { background: var(--surface-3); }
.outcome.o-schuzka:hover { background: linear-gradient(100deg, rgba(52,211,153,0.24), rgba(52,211,153,0.08)); }

.sheet-foot { text-align: center; margin-top: 14px; }
.steps { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.steps li::marker { color: var(--accent-text); font-weight: 800; }

.chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-weight: 700;
}
.chosen button { margin-left: auto; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quick button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.quick.small button { min-height: 36px; font-size: 13px; font-weight: 600; padding: 0 12px; }

.hint-line { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 14px; }

/* Důvod u „Nemá zájem / nevhodný“ (povinný) */
label.f .req { font-weight: 600; font-size: 11.5px; color: var(--bad); background: var(--bad-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.reason {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.reason strong { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.reason small { font-size: 12px; color: var(--ink-faint); line-height: 1.25; }
.reason.wide { grid-column: 1 / -1; min-height: 48px; }
.reason:hover { background: var(--surface-3); }
.reason.on { background: var(--bad-soft); border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.reason.on small { color: var(--ink-muted); }
.reason:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sms-preview {
  position: relative;
  margin: 0 0 14px auto;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px 18px 4px 18px;
  background: linear-gradient(180deg, #3B82F6, #2563EB);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* ---------- Formuláře ---------- */

label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin: 0 0 6px; }
label.f .opt { font-weight: 400; color: var(--ink-faint); }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 16px; /* iOS nezoomuje */
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* iPhone: pole data/času má jinak vlastní minimální šířku a přetéká ze sloupce. */
input[type='date'].input, input[type='time'].input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  color-scheme: dark;
}
input[type='date'].input::-webkit-date-and-time-value, input[type='time'].input::-webkit-date-and-time-value { text-align: left; }
.grid-2 > * { min-width: 0; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error {
  color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* Přihlášení */
.auth {
  max-width: 420px;
  margin: 0 auto;
  padding: calc(48px + var(--safe-top)) 20px 60px;
  animation: screen-in 0.35s var(--ease) both;
}
.auth .logo {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--accent-glow);
  margin-bottom: 22px;
}
.auth h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.auth h1 span { color: var(--accent); }
.auth > p { color: var(--ink-muted); margin: 0 0 26px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(22px + var(--safe-bottom));
  margin: 0 auto;
  width: fit-content;
  z-index: 100;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #F5F5FF;
  color: #0A0A1A;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.6);
  animation: toast-in 0.3s var(--ease) both;
}
.toast.bad { background: #FECACA; }
.toast .sub { display: block; font-weight: 500; font-size: 13px; opacity: 0.75; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast svg { flex-shrink: 0; }
.toast-action {
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Přejetí řádku → Smazat (jako v iPhonu) ---------- */
.swipe {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.swipe:last-child { border-bottom: 0; }
.swipe.collapsing { transition: height 0.3s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.3s ease; opacity: 0; }
.swipe-row {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-bottom: 0 !important;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
}
.swipe-action {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0;
  overflow: hidden;
  background: #E5484D;
}
.swipe-label {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 88px;
  will-change: transform;
}
.swipe-del {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.swipe-row:hover, .swipe-row:active { background: var(--surface-2); }
.swipe.dragging .swipe-row { background: var(--surface); }
.swipe-row.appear { animation: fade-in 0.35s ease both; } /* jen průhlednost – transform patří prstu */

/* Horní lišta načítání */
.busy-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.busy-bar::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #8E88FF, #5048E5, transparent);
  animation: busy 1.1s var(--ease) infinite;
}
.is-busy .busy-bar { opacity: 1; }
@keyframes busy { from { left: -40%; } to { left: 100%; } }

.skeleton {
  height: 74px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  margin-bottom: 10px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Nastavení ---------- */

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; }
.list-item small { color: var(--ink-muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex-shrink: 0; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot.off { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.dot.wait { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }

/* ---------- Admin ---------- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.tabs a.active { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tabs a .count { margin-left: 6px; height: 18px; min-width: 18px; font-size: 11px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards .panel { margin: 0; }
.cards .panel > p { color: var(--ink-muted); font-size: 13.5px; margin: 8px 0 0; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 14px; }
.stats .panel { margin: 0; }
.stat { font-family: var(--font-mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.stat-label { color: var(--ink-muted); font-size: 13px; }
.status-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status-line + p { margin: 6px 0 0; color: var(--ink-muted); font-size: 13.5px; word-break: break-word; }
.codebox {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
  margin: 8px 0 0;
  color: var(--ink);
}
.qr {
  width: 172px; height: 172px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  margin-top: 12px;
}
.qr img { width: 100%; height: 100%; display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255,255,255,0.02); }
table.t .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }

.user-card { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.user-card .grow { flex: 1; min-width: 220px; }
.user-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-box { margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.invite-box .row-flex { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }

.opp { border-bottom: 1px solid var(--border); padding: 14px 0; }
.opp:last-child { border-bottom: 0; }
.opp-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.opp-note {
  white-space: pre-wrap;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  color: var(--ink-muted);
}

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { width: 20px; height: 20px; accent-color: var(--bad); }

/* ---------- Monitoring ---------- */

.mon-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mon-updated { font-size: 12.5px; }
.mon-h { margin: 26px 2px 12px; }
.mon-name {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
}
.mon-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }

.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.seg button {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.seg button.on { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.seg button svg { vertical-align: -2px; }
.seg { flex-wrap: wrap; max-width: 100%; }
.seg button { white-space: nowrap; }
@media (max-width: 520px) { .seg button { padding: 8px 10px; } }
.mon-period { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mon-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mon-range[hidden] { display: none; }
.mon-range label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.mon-range .input { min-height: 40px; padding: 6px 10px; width: auto; color-scheme: dark; }
.mon-range .btn { min-height: 40px; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; animation: rise 0.35s var(--ease) both; }
.kpi-label { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.kpi-sub { font-size: 12px; color: var(--ink-faint); margin-top: 2px; min-height: 1em; }

.dot-s { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--ink-faint); flex-shrink: 0; }
.dot-s.good { background: var(--good); }
.dot-s.warn { background: var(--warn); }
.dot-s.bad { background: var(--bad); }

.mstatus { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mstatus.good { background: var(--good-soft); color: var(--good); }
.mstatus.warn { background: var(--warn-soft); color: var(--warn); }
.mstatus.bad { background: var(--bad-soft); color: var(--bad); }
.mstatus.off { background: var(--surface-3); color: var(--ink-faint); }

.meter { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meter-track { display: inline-block; width: 56px; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 6px; }
.meter-fill.good { background: var(--good); }
.meter-fill.warn { background: var(--warn); }
.meter-fill.bad { background: var(--bad); }

.alerts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.alert-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  background: var(--surface);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink);
  animation: rise 0.35s var(--ease) both;
  transition: background 0.15s ease;
}
.alert-card:hover { background: var(--surface-2); }
.alert-card.problem { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(248,113,113,0.08), var(--surface) 40%); }
.alert-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; }
.alert-card ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-muted); }
.alert-card li.problem::marker { color: var(--bad); }
.alert-card li.pozor::marker { color: var(--warn); }
.alert-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

.mon-table th.sortable { cursor: pointer; user-select: none; }
.mon-table th.sortable:hover, .mon-table th.sorted { color: var(--ink); }
.mon-table td { vertical-align: middle; }
table.t.mon-table th { white-space: normal; min-width: 52px; line-height: 1.3; padding: 12px 10px; letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; color: var(--ink-muted); font-family: var(--font-ui); }
table.t.mon-table td { padding: 12px 10px; }
.mon-table .meter-track { width: 44px; }
table.t.mon-table th.num { font-family: var(--font-ui); white-space: normal; }
table.t.mon-table td.num { font-family: var(--font-ui); white-space: normal; }
.mon-table td.num, .mon-table .mono { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.mon-table .meter .mono { font-family: var(--font-ui); }
td.nowrap { white-space: nowrap; }
tr.dim td { opacity: 0.55; }

.mon-panels { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.mon-panels .panel { margin: 0; }
.hbars { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 74px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar-label { color: var(--ink-muted); }
.hbar-area { display: block; min-width: 0; }
.hbar-fill { display: block; height: 14px; border-radius: 0 4px 4px 0; background: var(--accent); transition: width 0.5s var(--ease); }
.hbar-fill.crit { background: var(--bad); }
.hbar-row:hover .hbar-fill { filter: brightness(1.15); }
.hbar-val { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .page-title { font-size: 40px; }
  .lead-name { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Monitoring → Kvalita leadů ---------- */
.subtabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.subtabs a {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.subtabs a:hover { color: var(--ink); background: var(--surface-2); }
.subtabs a.on { background: var(--surface-3); color: var(--ink); border-color: var(--border-strong); }
.q-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 16px; }
.q-filter { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.q-filter-label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
select.input.q-select { width: auto; min-width: 180px; max-width: 100%; min-height: 40px; padding: 7px 12px; }
.q-pending { margin: -4px 0 14px; }
.meter-fill.muted { background: var(--ink-faint); }
.q-name { display: flex; gap: 8px; align-items: flex-start; min-width: 150px; }
.q-caret { color: var(--ink-faint); font-size: 12px; line-height: 1.6; width: 10px; flex-shrink: 0; }
table.t.q-table tr.open td { background: var(--surface-2); }
table.t.q-table tr.q-open > td { background: var(--surface-2); padding: 4px 14px 16px; border-top: 0; }
.q-chip { margin: 2px 4px 2px 0; font-size: 12px; white-space: nowrap; }
.q-leads { font-size: 13.5px; }
table.t.q-leads td, table.t.q-leads th { padding: 9px 10px; }
.q-reason { color: var(--ink); }

/* ---------- Potvrzení schůzky SMS ---------- */
.sms-confirm { margin: 4px 0 14px; }
.sms-confirm .sms-preview { margin-bottom: 12px; }
.sms-docs { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.sms-docs input { accent-color: var(--accent); }
.sheet-actions { display: grid; gap: 10px; }
.btn.done { background: var(--good-soft); border-color: rgba(52, 211, 153, 0.45); color: var(--good); box-shadow: none; }

/* ---------- 🔥 Horký lead / ⚠️ upozornění ---------- */
.chip.hot { background: var(--orange-soft); color: var(--orange); }
.chip.sm { margin-top: 0; }
.task-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.task-chips .chip { margin: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lead-hot { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.lead-hot .chip { margin: 0; font-size: 13px; padding: 4px 10px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
