@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f0;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────── */
header {
  background: #2c3e50;
  color: #fff;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

/* ── Navigace ────────────────────────────── */
header nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

header nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

header nav a:hover,
header nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Main ────────────────────────────────── */
main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 1.4rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ── Tabulka ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f0f0eb;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #fafaf8;
}

.data-table td a {
  color: #2c7be5;
  text-decoration: none;
  font-size: 0.9rem;
}

.data-table td a:hover {
  text-decoration: underline;
}

.empty-state {
  color: #888;
  padding: 32px 0;
  text-align: center;
}

.empty-state.small {
  text-align: left;
  padding: 8px 0;
  font-size: 0.9rem;
}

td.actions {
  white-space: nowrap;
}

td.actions a {
  margin-right: 8px;
}

td.actions a:last-child {
  color: #c0392b;
}

.btn-link-danger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: #c0392b;
  text-decoration: none;
  font-family: inherit;
}

.btn-link-danger:hover {
  text-decoration: underline;
}

/* ── Tlačítka ────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: #2c3e50;
  color: #fff;
  transition: background 0.15s;
}

.btn:hover {
  background: #3d5166;
}

.btn-secondary {
  background: #e0e0d8;
  color: #333;
}

.btn-secondary:hover {
  background: #ccc;
}

.btn-danger {
  background: #c0392b;
  color: #fff;
  margin-left: auto;
}

.btn-danger:hover {
  background: #a93226;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tree-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

/* ── Formulář ────────────────────────────── */
form {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  max-width: 560px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=date],
.form-group input[type=number],
.form-group input[type=url],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.15s;
}

.form-group input[type=text]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group input[type=date]:focus,
.form-group input[type=number]:focus,
.form-group input[type=url]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-error {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  color: #c0392b;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.required {
  color: #c0392b;
}

.hint {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hint-inline {
  font-size: 0.8rem;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.muted {
  color: #aaa;
  font-style: italic;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}
.form-hint {
  font-size: 0.8em;
  color: #999;
  margin-top: 3px;
}

.source-fields {
  background: #f0f4ff;
  border: 1px solid #ccd6f6;
  border-radius: 6px;
  padding: 14px;
  margin-top: 16px;
}
.source-fields h4 {
  margin: 0 0 12px;
  font-size: 0.95em;
  color: #334;
}

/* ── Person meta ─────────────────────────── */
.person-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #555;
}

/* ── Detail sekce ────────────────────────── */
.detail-section {
  margin-bottom: 36px;
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0d8;
}

.family-note {
  background: #fff;
  border-left: 4px solid #2c3e50;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
  color: #444;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.inline-form select {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  background: #fff;
  min-width: 180px;
}

/* ── Graf / Strom ────────────────────────── */
.graph-wrap,
.tree-wrap {
  overflow: auto;
  background: #fafaf8;
  border: 1px solid #e0e0d8;
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
  min-height: 300px;
}

.mermaid svg {
  min-width: 600px;
}

/* ── Vyhledávání ─────────────────────────── */
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.search-form input[type=search] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 280px;
  background: #fff;
}

.search-form input[type=search]:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.15);
}

.search-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

/* ── Pokročilé vyhledávání ───────────────── */
.advanced-search {
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e0e0d8;
  border-radius: 8px;
  padding: 0;
}

.advanced-search summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  user-select: none;
  font-weight: 500;
}

.advanced-search summary:hover {
  color: #2c3e50;
}

.advanced-search-form {
  padding: 12px 16px 16px;
  box-shadow: none;
  background: transparent;
  max-width: none;
}

.advanced-search-form .form-row {
  flex-wrap: wrap;
}

.advanced-search-form .form-group input,
.advanced-search-form .form-group select {
  font-size: 0.9rem;
  padding: 6px 10px;
}

/* ── Časová osa ──────────────────────────── */
.timeline {
  position: relative;
  padding-left: 120px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #d0d0c8;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c3e50;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #2c3e50;
}

.timeline-date {
  position: absolute;
  left: -118px;
  top: 4px;
  width: 90px;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

.timeline-date-unknown {
  color: #aaa;
  font-style: italic;
  font-weight: 400;
}

.timeline-content {
  background: #fff;
  border: 1px solid #e0e0d8;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 260px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.timeline-event {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-certainty {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
}

.certainty-confirmed {
  background: #d4edda;
  color: #155724;
}

.certainty-probable {
  background: #cce5ff;
  color: #004085;
}

.certainty-estimated {
  background: #fff3cd;
  color: #856404;
}

.certainty-disputed {
  background: #f8d7da;
  color: #721c24;
}

.certainty-unknown {
  background: #e2e3e5;
  color: #383d41;
}

.timeline-place {
  font-size: 0.88rem;
  color: #555;
  margin-top: 4px;
}

.timeline-date-detail {
  font-size: 0.82rem;
  color: #888;
  margin-top: 2px;
  font-style: italic;
}

.timeline-note {
  font-size: 0.88rem;
  color: #555;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #f0f0ea;
}

.timeline-actions {
  margin-top: 8px;
}

.timeline-actions a {
  font-size: 0.82rem;
  color: #2c7be5;
  text-decoration: none;
}

.timeline-actions a:hover {
  text-decoration: underline;
}

/* ── Média ───────────────────────────────── */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.media-item {
  width: 140px;
  text-align: center;
}

.media-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: block;
}

.pdf-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 100px;
  background: #f5f5f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
  word-break: break-all;
  padding: 8px;
}

.pdf-link:hover {
  background: #e8e8e3;
}

.media-title {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-delete {
  font-size: 0.8rem;
  color: #c0392b;
  text-decoration: none;
}

.media-delete:hover {
  text-decoration: underline;
}

.media-upload-form {
  margin-top: 16px;
}

/* ── Admin — statistiky ───────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #f8f8f5;
  border: 1px solid #e0e0d8;
  border-radius: 6px;
  padding: 18px 20px;
}
.stat-card h4 {
  margin: 0 0 6px;
  font-size: 0.8em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card .stat-num {
  font-size: 1.9em;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}
.stat-card .stat-sub {
  font-size: 0.8em;
  color: #999;
  margin-top: 4px;
}

/* ── Admin — navigační karty ─────────────── */
.admin-nav-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.admin-nav-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px 28px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.05em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-nav-card:hover {
  border-color: #6a994e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ── Admin — info panel ──────────────────── */
.admin-info {
  background: #f8f8f5;
  border: 1px solid #e0e0d8;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 0.9em;
  color: #555;
}
.admin-info table {
  border-collapse: collapse;
  width: 100%;
  max-width: 500px;
}
.admin-info td {
  padding: 5px 12px 5px 0;
  vertical-align: top;
}
.admin-info td:first-child {
  color: #888;
  white-space: nowrap;
}

/* ── Admin — tabulka ─────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #ddd;
  font-size: 0.85em;
  color: #666;
}
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.admin-table tr:last-child td {
  border-bottom: none;
}

/* ── Admin — formulář ────────────────────── */
.admin-form {
  background: #f8f8f5;
  border: 1px solid #e0e0d8;
  border-radius: 6px;
  padding: 20px;
  margin-top: 28px;
  max-width: 600px;
  box-shadow: none;
}
.admin-form h3 {
  margin: 0 0 16px;
  font-size: 1em;
}

.deactivate-warn {
  font-size: 0.78em;
  color: #c62828;
  display: block;
  margin-top: 3px;
}

/* ── Badges ──────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78em;
  font-weight: 600;
}

.badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-inactive {
  background: #fce4ec;
  color: #c62828;
}

.badge-admin {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-user {
  background: #f3f3f0;
  color: #555;
}

/* ── Import — nový import (2-sloupcový layout) ── */
.import-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .import-layout {
    grid-template-columns: 1fr;
  }
}

.import-right {
  background: #f8f8f5;
  border: 1px solid #e0e0d8;
  border-radius: 6px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.import-right summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: #555;
  user-select: none;
}
.import-right pre {
  font-size: 0.78em;
  line-height: 1.4;
  overflow: auto;
  max-height: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin: 8px 0 0;
}
.import-right details + details {
  margin-top: 14px;
}

/* ── Import — review ─────────────────────── */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr;
  }
}

.review-json {
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 6px;
  padding: 14px;
  overflow: auto;
  font-family: monospace;
  font-size: 0.78em;
  line-height: 1.5;
  position: sticky;
  top: 16px;
  max-height: 85vh;
}
@media (max-width: 900px) {
  .review-json {
    position: static;
    max-height: 300px;
  }
}

.ep-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fafaf8;
}
.ep-card.linked {
  border-color: #2a7a2a;
  background: #f0fff0;
}
.ep-card.new_person {
  border-color: #1a5fa0;
  background: #f0f6ff;
}
.ep-card.ignored {
  border-color: #bbb;
  background: #f5f5f5;
  opacity: 0.7;
}

.ep-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ep-name {
  font-weight: 600;
  font-size: 1.05em;
}

.role-badge {
  background: #e8e4dc;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: 600;
  color: #444;
}

.candidates {
  margin-top: 12px;
  border-top: 1px solid #e0ddd8;
  padding-top: 12px;
}
.candidates h5 {
  font-size: 0.85em;
  color: #666;
  margin: 0 0 8px;
  font-weight: 600;
}

.candidate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.88em;
  flex-wrap: wrap;
}

.cand-score {
  font-weight: 700;
  min-width: 36px;
  color: #333;
}

.cand-name {
  flex: 1;
}

.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
}

.status-indicator {
  font-size: 0.8em;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.status-linked {
  background: #d4edda;
  color: #155724;
}

.status-new_person {
  background: #cce5ff;
  color: #004085;
}

.status-ignored {
  background: #e2e3e5;
  color: #383d41;
}

.event-meta {
  background: #f0f4ff;
  border: 1px solid #ccd6f6;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 18px;
}
.event-meta h4 {
  margin: 0 0 10px;
  font-size: 0.95em;
}

/* ── Header: pravá část ──────────────────── */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.collection-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.collection-badge:hover {
  background: rgba(255, 255, 255, 0.22);
}

.header-help {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-help:hover, .header-help.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── Sdílená data notice ─────────────────── */
.shared-data-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #664d03;
  line-height: 1.5;
}

.shared-data-notice--prominent {
  padding: 14px 18px;
  font-size: 0.95em;
  border-left: 4px solid #ffc107;
}

/* ── Onboarding banner ───────────────────── */
.onboarding-banner {
  background: #f0f4ff;
  border: 1px solid #b8c9f5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}

.onboarding-inner h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #2c3e50;
}

.onboarding-inner p {
  color: #555;
  margin: 0 0 16px;
  font-size: 0.95em;
}

.onboarding-inner .btn + .btn {
  margin-left: 8px;
}

/* ── Dashboard kolekce info ──────────────── */
.dashboard-collection {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.95em;
  color: #555;
}

.dashboard-collection-label {
  color: #888;
}

.dashboard-collection-change {
  font-size: 0.85em;
  color: #3498db;
  text-decoration: none;
}
.dashboard-collection-change:hover {
  text-decoration: underline;
}

/* ── Akční karty (dashboard) ─────────────── */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #fff;
  border: 1px solid #e0e0d8;
  border-radius: 10px;
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.action-card:hover {
  border-color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.action-card-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.action-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
}

.action-card-desc {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.4;
}

/* ── Help page ───────────────────────────── */
.help-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0d8;
}

.help-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.help-scenario-card {
  background: #fff;
  border: 1px solid #e0e0d8;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-scenario-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.help-scenario-card h4 {
  font-size: 0.95rem;
  margin: 0;
  color: #2c3e50;
}

.help-scenario-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.4;
  flex: 1;
}

.help-workflow {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.help-workflow li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.95em;
  color: #444;
}
.help-workflow li::before {
  content: counter(step);
  background: #2c3e50;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  font-weight: 700;
  flex-shrink: 0;
}

.help-workflow li a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.88em;
}
.help-workflow li a:hover {
  text-decoration: underline;
}

.help-workflow-note {
  font-size: 0.8em;
  color: #3498db;
  background: #e8f4fd;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ── Kolekce list: zvýraznění aktivní ────── */
.row-active {
  background: #f0f7ff;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 600px) {
  .action-cards {
    grid-template-columns: 1fr 1fr;
  }
  .help-scenarios {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .action-cards {
    grid-template-columns: 1fr;
  }
}
