:root {
  --ink: #102432;
  --line: rgba(16, 36, 50, 0.18);
  --muted: #4c6473;
  --panel: rgba(255, 255, 255, 0.92);
  --primary: #005f73;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #f7d8a0 0%, #f9f4ea 40%, #ddebf2 100%);
}

.wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 14px 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.head h1 { margin: 0 0 8px; }
.head p { margin: 4px 0; color: var(--muted); }

.filters-row {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.filter-toggle input { width: auto; margin: 0; }

.error-box {
  border: 1px solid #f3c8c1;
  color: var(--danger);
  background: #fdecea;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 18px;
}

.detail-column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.detail-item:last-of-type { border-bottom: none; }

.btn-link {
  margin-top: 12px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}

.work-package-event { border: none; background: transparent; }

.task-card-mini {
  border-left: 4px solid #ee9b00;
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  padding: 6px 8px;
  box-shadow: 0 4px 10px rgba(16, 36, 50, 0.08);
}

.task-id {
  font-weight: 700;
  font-size: 0.75rem;
  color: #92400e;
}

.task-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.task-meta-row {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.task-meta {
  font-size: 0.72rem;
  color: #415a6b;
}

.task-type-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .calendar-layout { grid-template-columns: 1fr; }
}
