body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: #0b1020;
  color: #edf2f7;
}

.container {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) 0 clamp(28px, 5vw, 48px);
}

.hero {
  margin-bottom: clamp(18px, 3vw, 24px);
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.hero p,
.muted,
code,
.date-label {
  color: #a0aec0;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
  justify-content: flex-end;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: auto;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  flex: 0 0 auto;
}

.action-link.primary {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #ffffff;
}

code {
  word-break: break-all;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.stat,
.card,
.item-card,
.prose-block,
.separated-section {
  background: #121a2f;
  border: 1px solid #23304f;
  border-radius: 16px;
  padding: clamp(14px, 2.8vw, 18px);
  box-sizing: border-box;
}

.stat strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 6px;
}

.grid,
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.report-grid {
  gap: 16px;
}

.summary-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-column {
  min-width: 0;
}

.summary-column h3,
.card h2,
.item-card h3,
.report-items-section h2,
.section-header h2 {
  margin: 10px 0;
  line-height: 1.25;
}

.summary-column ul,
.card ul,
.prose-block ul {
  padding-left: 1.15rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill,
.item-badge,
.priority-badge,
.action-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 100%;
}

.pill.daily { background: #1d4ed8; }
.pill.weekly { background: #7c3aed; }
.pill.other { background: #475569; }
.item-badge { background: #0f766e; color: #ecfeff; }
.priority-badge.priority-high { background: #991b1b; color: #fee2e2; }
.priority-badge.priority-medium { background: #92400e; color: #fef3c7; }
.priority-badge.priority-low { background: #1f2937; color: #d1d5db; }
.action-chip.action-validovat { background: #1d4ed8; color: #dbeafe; }
.action-chip.action-postavit\ mvp { background: #7c3aed; color: #ede9fe; }
.action-chip.action-prověřit { background: #b45309; color: #fef3c7; }
.action-chip.action-sledovat { background: #374151; color: #e5e7eb; }

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

.priority-high {
  border-color: rgba(239, 68, 68, 0.45);
}

.priority-medium {
  border-color: rgba(245, 158, 11, 0.4);
}

.priority-low {
  border-color: rgba(100, 116, 139, 0.35);
}

.article {
  line-height: 1.65;
}

.article-layout {
  display: grid;
  gap: 18px;
}

.back-link {
  margin-bottom: -4px;
}

.prose-block {
  overflow-wrap: anywhere;
}

.prose-block h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.prose-block h2 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin: 1.4rem 0 0.7rem;
}

.prose-block h3 {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  margin: 1.1rem 0 0.5rem;
}

.prose-block > h2:first-of-type {
  margin-top: 1rem;
}

.prose-block > ul:first-of-type,
.prose-block h2 + ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding-left: 0;
}

.prose-block h2 + ul li {
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
}

.article a,
.card a,
.item-card a,
a {
  color: #7dd3fc;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article a:hover,
.card a:hover,
.item-card a:hover,
a:hover {
  text-decoration: underline;
}

.article p,
.article li,
.card p,
.card li,
.summary-column li,
.item-card p {
  color: #e2e8f0;
}

.report-card,
.structured-item-card,
.separated-section {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.report-card p:last-child,
.item-card p:last-child,
.stat span:last-child {
  margin-bottom: 0;
}

.report-card h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

.compact p {
  margin: 0.35rem 0;
}

.report-items-section,
.latest-items-section,
.reports-overview-section,
.summary-panel-section {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.section-header {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.item-card-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sources-form,
.item-filters {
  display: grid;
  gap: 16px;
}

.item-filters {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.sources-form label,
.item-filters label {
  display: grid;
  gap: 8px;
}

.sources-form span,
.item-filters span {
  font-weight: 600;
}

.sources-form textarea,
.item-filters select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.5;
}

.sources-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.inline-actions {
  align-items: end;
}

.form-actions button {
  border: 0;
  border-radius: 12px;
  background: #1d4ed8;
  color: white;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.success-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

@media (max-width: 900px) {
  .summary-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .stats,
  .grid,
  .item-grid,
  .summary-panel-grid,
  .article-layout,
  .item-filters {
    gap: 12px;
  }

  .meta-row,
  .item-card-top {
    align-items: flex-start;
  }

  .prose-block,
  .separated-section {
    padding: 14px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .form-actions button {
    width: 100%;
  }

  .hero-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    display: inline-flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .action-link {
    width: auto;
    box-sizing: border-box;
  }

  .action-link.icon-only {
    width: auto;
    min-width: 42px;
  }
}
-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-link {
    width: 100%;
    box-sizing: border-box;
  }
}
ion-link {
    width: 100%;
    box-sizing: border-box;
  }
}
  width: 100%;
    box-sizing: border-box;
  }
}
