*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f1419;
  color: #e8edf4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
}

.meta {
  margin: 6px 0 0;
  color: #8b9cb3;
  font-size: 0.875rem;
}

.topbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  border: 1px solid #2d3a4d;
  border-radius: 8px;
  background: #1a2332;
  color: #e8edf4;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.btn:hover {
  background: #243044;
}

.btn--primary {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #2d3a4d;
  background: #1a2332;
  font-size: 0.85rem;
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.chip--p0 .chip__dot { background: #ef4444; }
.chip--p1 .chip__dot { background: #f59e0b; }
.chip--ok .chip__dot { background: #22c55e; }

.section-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b9cb3;
}

.panel {
  border: 1px solid #2d3a4d;
  border-radius: 12px;
  background: #1a2332;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.today-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0f1419;
  border: 1px solid #2d3a4d;
}

.today-item__prio {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #243044;
  color: #94a3b8;
}

.today-item__prio--P0 { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.today-item__prio--P1 { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.today-item__prio--P2 { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }

.today-item__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.today-item__detail {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #8b9cb3;
}

.today-item__project {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.project-card {
  border: 1px solid #2d3a4d;
  border-radius: 12px;
  background: #1a2332;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.project-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.status-dot {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-dot--ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.status-dot--p1 { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.status-dot--p2 { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.status-dot--p0 { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.status-dot--unknown { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }

.project-card__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: #8b9cb3;
  display: grid;
  gap: 4px;
}

.project-card__stats strong {
  color: #e8edf4;
}

.project-card__link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #2d3a4d;
}

table.data th {
  color: #8b9cb3;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted {
  color: #8b9cb3;
  font-size: 0.85rem;
}

.error-box {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.loading {
  color: #8b9cb3;
  padding: 40px 0;
  text-align: center;
}

.empty {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #2d3a4d;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .today-item {
    grid-template-columns: 1fr;
  }
}
