.test-week-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #eef4fb 100%);
}

.test-week-shell {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.test-week-hero,
.test-week-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.test-week-hero {
  padding: 24px;
}

.test-week-hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.test-week-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.test-week-hero__title {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.1;
  color: #0f172a;
}

.test-week-hero__headline {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 900px;
}

.test-week-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.test-week-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(191, 219, 254, 0.8);
}

.test-week-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.test-week-card__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.test-week-card__meta {
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
}

.test-week-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.test-week-layout--split {
  grid-template-columns: 1fr 0.9fr;
}

.test-week-panel {
  padding: 22px;
}

.test-week-panel__header h2 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.test-week-panel__header p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.test-week-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.test-week-row-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(191, 219, 254, 0.75);
}

.test-week-row-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
}

.test-week-row-card__value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1d4ed8;
}

.test-week-row-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
}

.test-week-progress {
  height: 10px;
  margin-top: 12px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
}

.test-week-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 999px;
}

.test-week-progress--soft {
  background: #e2e8f0;
}

.test-week-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.test-week-overruns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.test-week-overrun {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.test-week-overrun__date {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}

.test-week-overrun__title {
  font-weight: 700;
  color: #7c2d12;
}

.test-week-overrun__meta {
  margin-top: 4px;
  font-size: 13px;
  color: #9a3412;
}

.test-week-overrun__diff {
  font-size: 15px;
  font-weight: 800;
  color: #dc2626;
}

.test-week-reflection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.test-week-reflection__card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.test-week-reflection__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.test-week-reflection__value {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
}

.test-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.test-week-day {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(191, 219, 254, 0.85);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.test-week-day:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.test-week-day__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.test-week-day__label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.test-week-day__date {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.test-week-score {
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.test-week-score.is-empty {
  background: #e5e7eb;
  color: #94a3b8;
}

.test-week-day__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.test-week-day__stats span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.test-week-day__stats strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #0f172a;
}

.test-week-day__project {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.test-week-day__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.test-week-day__notes span {
  display: inline-block;
  min-width: 58px;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.test-week-empty {
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
}

@media (max-width: 1400px) {
  .test-week-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .test-week-shell {
    padding: 18px;
  }

  .test-week-hero__grid,
  .test-week-layout,
  .test-week-layout--split,
  .test-week-reflection,
  .test-week-days {
    grid-template-columns: 1fr;
  }
}
