.test-week-page {
  align-self: flex-start;
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #eef4fb 100%);
  box-sizing: border-box;
}

.test-week-shell {
  width: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
}

.test-week-hero,
.test-week-panel {
  width: 100%;
  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);
  box-sizing: border-box;
}

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

.test-week-hero__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.test-week-hero__heading {
  min-width: 0;
  text-align: center;
}

.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__score {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.92);
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.test-week-score-compare {
  font-size: 12px;
  color: #94a3b8;
}

.test-week-score-compare__delta--positive {
  color: #dc2626;
}

.test-week-score-compare__delta--negative {
  color: #16a34a;
}

.test-week-score-compare__delta--neutral {
  color: #94a3b8;
}

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

.test-week-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d6dde6;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(20, 31, 46, 0.12);
  color: #25313d;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.test-week-nav-btn:hover {
  background-color: #f4f7fb;
  border-color: #b8c4d1;
  transform: translateY(-1px);
}

.test-week-nav-btn:active {
  transform: translateY(0);
}

.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--interactive {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.test-week-card--interactive:hover,
.test-week-card--interactive:focus-visible {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.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-card__meta--positive {
  color: #047857;
}

.test-week-card__meta--negative {
  color: #dc2626;
}

.test-week-card__meta--neutral {
  color: #64748b;
}

.test-week-hero-tooltip__title {
  margin-bottom: 8px;
  font-weight: 900;
  color: #f8fafc;
}

.test-week-hero-tooltip__list {
  display: grid;
  gap: 8px;
}

.test-week-hero-tooltip__item {
  display: grid;
  gap: 2px;
}

.test-week-hero-tooltip__item strong {
  color: #ffffff;
  font-size: 12px;
}

.test-week-hero-tooltip__item span,
.test-week-hero-tooltip__empty {
  color: #cbd5e1;
  font-size: 11px;
}

.test-week-hero-tooltip__body,
.test-week-hero-tooltip__formula,
.test-week-hero-tooltip__calc,
.test-week-hero-tooltip__note,
.test-week-hero-tooltip__subtitle,
.test-week-hero-tooltip__more {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.45;
}

.test-week-hero-tooltip__formula,
.test-week-hero-tooltip__calc {
  margin-top: 7px;
  color: #f8fafc;
  font-weight: 800;
}

.test-week-hero-tooltip__note {
  margin-top: 7px;
  color: #94a3b8;
}

.test-week-hero-tooltip__subtitle {
  margin-top: 10px;
  color: #f8fafc;
  font-weight: 900;
}

.test-week-hero-tooltip__bullets {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.test-week-hero-tooltip__bullets li {
  color: #cbd5e1;
}

.test-week-hero-tooltip__bullets strong {
  display: block;
  color: #ffffff;
  font-size: 11px;
}

.test-week-hero-tooltip__bullets span {
  display: block;
  margin-top: 1px;
  color: #cbd5e1;
  font-size: 11px;
}

.test-week-hero-tooltip__more {
  margin-top: 6px;
  color: #94a3b8;
}

.test-week-hero-tooltip__divider {
  margin: 10px 0 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.34);
}

.test-week-panel--weekly-change,
.test-week-panel--improvement {
  padding: 20px 22px;
}

.test-week-change-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.test-week-change-column {
  min-width: 0;
}

.test-week-change-column h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.test-week-change-column p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.test-week-improvement-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.test-week-change-column .test-week-improvement-list {
  grid-template-columns: 1fr;
}

.test-week-improvement {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.test-week-improvement__mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.13);
}

.test-week-improvement--positive .test-week-improvement__mark {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.test-week-improvement--negative .test-week-improvement__mark {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.13);
}

.test-week-improvement__copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.test-week-improvement__copy strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.test-week-improvement__copy span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.test-week-problem-change {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.test-week-problem-change__group {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.test-week-problem-change__group h4 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.test-week-problem-change__list {
  display: grid;
  gap: 8px;
}

.test-week-problem-change__row {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.test-week-problem-change__row:hover,
.test-week-problem-change__row:focus-visible,
.test-week-problem-change__row.is-linked-active {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.test-week-problem-change__row--positive {
  background: #f0fdf4;
  border-color: rgba(187, 247, 208, 0.92);
}

.test-week-problem-change__row--negative {
  background: #fff7ed;
  border-color: rgba(254, 215, 170, 0.92);
}

.test-week-problem-change__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.test-week-problem-change__meta,
.test-week-problem-change__empty {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.test-week-problem-change__empty {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(203, 213, 225, 0.9);
  line-height: 1.4;
}

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

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

.test-week-layout--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.test-week-panel--timeline-strip {
  position: relative;
  z-index: 8;
  overflow: visible;
  --test-week-strip-label-width: 228px;
}

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

.test-week-panel--project-trend {
  overflow: hidden;
}

.test-week-xp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.test-week-xp-grid--project-trend {
  margin-top: 16px;
  margin-bottom: 16px;
}

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

.test-week-xp-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

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

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

.test-week-progress--xp {
  margin-top: 12px;
}

.test-week-progress--xp .test-week-progress__track {
  height: 14px;
  background: linear-gradient(180deg, rgba(231, 236, 243, 0.98), rgba(217, 225, 236, 0.98));
  border: 1px solid rgba(191, 201, 214, 0.92);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
}

.test-week-progress--xp .test-week-progress__labels {
  height: 16px;
  margin-bottom: 6px;
}

.test-week-progress--xp .test-week-progress__elapsed-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
  z-index: 2;
}

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

.test-week-project-xp-tooltip__title {
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.28);
  color: #ffffff;
  font-weight: 800;
}

.test-week-project-xp-tooltip__body {
  color: #ffffff;
  line-height: 1.35;
}

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

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

.test-week-panel__header-main {
  min-width: 0;
  flex: 1;
}

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

.test-week-panel__icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  color: #36506a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.test-week-panel__icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
  color: #1e3a8a;
}

.test-week-panel__icon-btn span {
  font-size: 18px;
  line-height: 1;
}

.test-week-modal[hidden] {
  display: none;
}

.test-week-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
}

.test-week-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

.test-week-modal__dialog {
  position: relative;
  width: min(1220px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.96) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.test-week-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  background: #1A2533;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.test-week-modal__header h2 {
  margin: 0;
  font-size: 24px;
  color: #f8fafc;
}

.test-week-modal__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.test-week-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.test-week-modal__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 28px 28px;
  max-height: calc(100vh - 130px);
  overflow: auto;
}

.test-week-modal__section {
  min-width: 0;
}

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

.test-week-inline-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(191, 219, 254, 0.72);
}

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

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

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

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

.test-week-list-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 12px;
  background: #f8fbff;
  color: #3b5d84;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.test-week-list-toggle[hidden] {
  display: none;
}

.test-week-list-toggle:hover {
  border-color: rgba(96, 165, 250, 0.72);
  background: #f1f7ff;
}

.test-week-panel--project-progress .test-week-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.test-week-modal__section > .test-week-stack {
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(191, 219, 254, 0.9);
}

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

.test-week-clickable-card {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.test-week-clickable-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.11);
}

.test-week-row-card--project {
  position: relative;
  padding-left: 26px;
}

.test-week-row-card--project::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: var(--test-week-project-color, #94a3b8);
}

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

.test-week-row-card__rank {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 6px 14px rgba(30, 58, 138, 0.08);
  color: #315174;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.test-week-row-card__rank::before {
  content: '#';
  margin-right: 1px;
  color: #93a4bb;
  font-size: 10px;
  font-weight: 900;
}

.test-week-row-card--category:first-child .test-week-row-card__rank {
  background: linear-gradient(180deg, #fff8dc 0%, #fde68a 100%);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.test-week-row-card--category:first-child .test-week-row-card__rank::before {
  color: #d97706;
}

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

.test-week-row-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.test-week-row-card__metric-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: #1d4ed8;
}

.test-week-row-card__metric-line--primary .test-week-row-card__metric-value {
  font-size: 24px;
}

.test-week-row-card__metric-label {
  font-size: 17px;
  font-weight: 800;
}

.test-week-row-card__metric-value {
  font-size: 22px;
  font-weight: 900;
}

.test-week-compare-meta {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.test-week-compare-delta--positive {
  color: #dc2626;
}

.test-week-compare-delta--negative {
  color: #16a34a;
}

.test-week-compare-delta--neutral {
  color: #94a3b8;
}

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

.test-week-row-card__meta--deadline {
  color: #9a3412;
  font-weight: 700;
}

.test-week-inline-diff--positive {
  color: #dc2626;
  font-weight: 800;
}

.test-week-inline-diff--negative {
  color: #16a34a;
  font-weight: 800;
}

.test-week-inline-diff--neutral {
  color: #64748b;
  font-weight: 700;
}

.test-week-delta {
  font-weight: 800;
}

.test-week-delta--positive {
  color: #dc2626;
}

.test-week-delta--negative {
  color: #16a34a;
}

.test-week-delta--neutral {
  color: #475569;
}

.test-week-progress {
  margin-top: 12px;
  position: relative;
}

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

.test-week-progress__track {
  height: 10px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.test-week-progress__labels {
  position: relative;
  height: 14px;
  margin-bottom: 2px;
}

.test-week-progress__marker {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.test-week-progress__marker--base {
  color: #2563eb;
}

.test-week-progress__marker--week {
  color: #38bdf8;
}

.test-week-progress__marker--base-apart {
  transform: translateX(calc(-100% - 4px));
}

.test-week-progress__marker--week-apart {
  transform: translateX(4px);
}

.test-week-category-chart {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(191, 219, 254, 0.85);
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 312px;
}

.test-week-category-chart__visual {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.test-week-category-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.test-week-category-chart__segment {
  transition: opacity 0.14s ease, transform 0.14s ease;
  cursor: pointer;
}

.test-week-category-chart__segment:hover {
  opacity: 0.92;
}

.test-week-category-chart__center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

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

.test-week-category-chart__center-value {
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1;
}

.test-week-category-chart__center-meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
}

.test-week-category-chart__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(10px, -110%);
  min-width: 180px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  z-index: 5;
}

.test-week-category-chart__tooltip-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.test-week-category-chart__legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: start;
}

.test-week-category-chart__legend-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
}

.test-week-category-chart__legend-rank {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-align: right;
}

.test-week-category-chart__legend-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.test-week-category-chart__legend-name {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-category-chart__legend-share {
  font-size: 12px;
  font-weight: 800;
  color: #1e40af;
  justify-self: end;
}

.test-week-category-chart__legend-average {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  justify-self: start;
}

.test-week-category-chart__legend-delta {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
}

.test-week-category-chart__legend-delta--positive {
  color: #dc2626;
}

.test-week-category-chart__legend-delta--negative {
  color: #16a34a;
}

.test-week-category-chart__legend-delta--neutral {
  color: #94a3b8;
}

.test-week-project-trend {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.test-week-project-trend__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.84);
}

.test-week-project-trend__legend-item {
  display: grid;
  grid-template-columns: 26px 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.92);
  cursor: pointer;
}

.test-week-project-trend__legend-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: #315174;
  font-size: 11px;
  font-weight: 900;
}

.test-week-project-trend__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.test-week-project-trend__legend-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.test-week-project-trend__legend-value {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.test-week-project-trend__legend-delta {
  grid-column: 3 / -1;
  justify-self: start;
  margin-top: -4px;
  color: #0891b2;
  font-size: 11px;
  font-weight: 900;
}

.test-week-project-trend__legend-deadline {
  grid-column: 3 / -1;
  justify-self: start;
  margin-top: -4px;
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
}

.test-week-project-trend__legend-remaining {
  grid-column: 3 / -1;
  justify-self: start;
  margin-top: -5px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.test-week-project-trend__chart {
  min-width: 0;
  padding: 8px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(125, 211, 252, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
  border: 1px solid rgba(191, 219, 254, 0.86);
  position: relative;
}

.mandal-progress-view .test-week-project-trend__chart {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.test-week-project-trend__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.test-week-project-trend__grid-line {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.test-week-project-trend__grid-line--vertical {
  stroke: rgba(191, 219, 254, 0.5);
}

.test-week-project-trend__elapsed-band {
  fill: rgba(100, 116, 139, 0.075);
}

.test-week-project-trend__grid-line--vertical.is-today {
  stroke: rgba(37, 99, 235, 0.72);
  stroke-width: 1.6;
  stroke-dasharray: none;
}

.test-week-project-trend__axis-label {
  fill: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.test-week-project-trend__axis-label.is-today {
  fill: #1d4ed8;
  font-weight: 900;
}

.test-week-project-trend__axis-sublabel {
  fill: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.test-week-project-trend__axis-sublabel.is-today {
  fill: #2563eb;
  font-weight: 900;
}

.test-week-project-trend__deadline {
  cursor: pointer;
}

.test-week-project-trend__deadline line {
  stroke: #111827;
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
  opacity: 0.7;
}

.test-week-project-trend__deadline path {
  fill: #111827;
  opacity: 0.92;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.16));
}

.test-week-project-trend__deadline-label {
  fill: #111827;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 4px;
  stroke-linejoin: round;
  font-size: 10px;
  font-weight: 900;
}

.test-week-project-trend__deadline-gap path {
  fill: none;
  stroke: #111827;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.9;
}

.test-week-project-trend__deadline-gap-value,
.test-week-project-trend__deadline-gap-meta {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.test-week-project-trend__deadline-gap-value {
  fill: #0f172a;
  font-size: 10px;
  font-weight: 900;
}

.test-week-project-trend__deadline-gap-meta {
  fill: #475569;
  font-size: 9px;
  font-weight: 800;
}

.test-week-project-trend__series polyline {
  filter: drop-shadow(0 5px 6px rgba(15, 23, 42, 0.1));
  cursor: pointer;
  transition: stroke-width 0.16s ease, opacity 0.16s ease;
}

.test-week-project-trend__series {
  cursor: pointer;
  outline: none;
}

.test-week-project-trend__series:focus-visible polyline {
  stroke-width: 4.5;
}

.test-week-project-trend__point circle {
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.14));
  cursor: pointer;
  transition: transform 0.16s ease, r 0.16s ease;
}

.test-week-project-trend__end-label {
  pointer-events: none;
}

.test-week-project-trend__end-label line {
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.72;
}

.test-week-project-trend__end-label text {
  fill: #0f172a;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4px;
  stroke-linejoin: round;
  font-size: 11px;
  font-weight: 900;
}

.test-week-project-trend__series:hover polyline {
  stroke-width: 4.5;
  opacity: 0.98;
}

.test-week-project-trend__series:hover circle {
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.2));
}

.test-week-project-trend__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  min-width: 150px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  z-index: 8;
}

.test-week-project-trend__tooltip-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
}

.test-week-project-trend__tooltip-divider {
  height: 1px;
  margin: 7px 0;
  background: rgba(226, 232, 240, 0.28);
}

.test-week-progress-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.test-week-progress-row .test-week-progress {
  flex: 1;
}

.test-week-progress-label {
  min-width: 38px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  line-height: 1;
  padding-bottom: 1px;
}

.test-week-progress__fill--base {
  background: linear-gradient(90deg, #5b8def 0%, #3b82f6 100%);
}

.test-week-progress__fill--week {
  background: linear-gradient(90deg, #8ee3ff 0%, #67e8f9 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0 999px 999px 0;
}

.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: 18px;
  margin-top: 18px;
}

.test-week-overrun {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(214, 223, 234, 0.92);
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.test-week-overrun--procrastinated {
  grid-template-columns: minmax(0, 1fr);
}

.test-week-overrun__risk-badge {
  position: absolute;
  top: 0;
  right: 10px;
  transform: translateY(-52%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.68em;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.09);
  pointer-events: none;
}

.test-week-overrun__risk-badge--inline {
  position: static;
  transform: none;
}

.test-week-overrun__risk-badge--deadline-overdue {
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #b91c1c;
  background: #fee2e2;
}

.test-week-overrun__risk-badge--deadline-today {
  border: 1px solid rgba(234, 88, 12, 0.42);
  color: #c2410c;
  background: #ffedd5;
}

.test-week-overrun__risk-badge--deadline-soon {
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #c2410c;
  background: #fff0d4;
}

.test-week-overrun__risk-badge--deadline-upcoming {
  border: 1px solid rgba(234, 179, 8, 0.44);
  color: #a16207;
  background: #fef9c3;
}

.test-week-overrun__risk-badge--procrastination {
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #6d28d9;
  background: #faf7ff;
}

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

.test-week-overrun__date--stack {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 92px;
}

.test-week-overrun__date-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px 6px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.24);
  font-size: 17px;
  line-height: 1;
  font-weight: 850;
  color: #c05621;
  letter-spacing: 0;
  white-space: nowrap;
}

.test-week-overrun__date-secondary {
  max-width: 94px;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  color: #8b796f;
  text-align: center;
  white-space: nowrap;
}

.test-week-overrun__date--delayed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 12px 8px;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.34);
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  color: #b45309;
  text-align: center;
  white-space: nowrap;
}

.test-week-overrun__content {
  min-width: 0;
}

.test-week-overrun__title {
  font-weight: 700;
  color: #22313f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-overrun__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6b82;
}

.test-week-overrun__source-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

.test-week-overrun__meta {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7c8f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.test-week-risk-matrix {
  --test-week-risk-cell-size: 112px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  overflow: visible;
}

.test-week-risk-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--test-week-risk-cell-size) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 20px;
  background: #fbfcfe;
  border: 1px solid #e4ebf3;
  overflow: visible;
}

.test-week-risk-row:hover {
  z-index: 3;
}

.test-week-risk-row__project {
  appearance: none;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  width: var(--test-week-risk-cell-size);
  height: var(--test-week-risk-cell-size);
  padding: 12px 10px;
  border: 1px solid var(--test-week-project-color, #94a3b8);
  border-radius: 16px;
  background: var(--test-week-project-color, #94a3b8);
  box-shadow: 0 2px 10px rgba(36, 52, 71, 0.06);
  text-align: left;
  font: inherit;
  color: inherit;
  overflow: visible;
}

.test-week-risk-row__project-name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--test-week-project-text-color, rgba(255, 255, 255, 0.98));
  font-weight: 750;
  line-height: 1.22;
  font-size: 14px;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.test-week-risk-row__project.test-week-clickable-card:hover {
  transform: translateY(-3px) scale(1.035);
  border-color: var(--test-week-project-color, #94a3b8);
  background: var(--test-week-project-color, #94a3b8);
  box-shadow: 0 14px 28px rgba(36, 52, 71, 0.18);
}

.test-week-risk-row__todos {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--test-week-risk-cell-size));
  align-items: start;
  gap: 10px;
}

.test-week-risk-todo {
  appearance: none;
  position: relative;
  display: flex;
  align-items: flex-start;
  z-index: 1;
  width: var(--test-week-risk-cell-size);
  height: var(--test-week-risk-cell-size);
  padding: 20px 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(36, 52, 71, 0.06);
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: visible;
}

.test-week-risk-todo:hover {
  z-index: 4;
}

.test-week-risk-todo.is-risk-overdue {
  border-color: rgba(220, 38, 38, 0.48);
  background: #fee2e2;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.17);
}

.test-week-risk-todo.is-risk-due-today {
  border-color: rgba(234, 88, 12, 0.48);
  background: #ffedd5;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.16);
}

.test-week-risk-todo.is-risk-due-soon {
  border-color: rgba(245, 158, 11, 0.52);
  background: #fff0d4;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.15);
}

.test-week-risk-todo.is-risk-upcoming {
  border-color: rgba(234, 179, 8, 0.45);
  background: #fef9c3;
  box-shadow: 0 10px 24px rgba(234, 179, 8, 0.14);
}

.test-week-risk-todo.is-risk-procrastinated {
  border-color: rgba(124, 58, 237, 0.28);
  background: #f5f3ff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.11);
}

.test-week-risk-todo.test-week-clickable-card:hover {
  transform: translateY(-2px);
}

.test-week-risk-todo.is-risk-overdue.test-week-clickable-card:hover {
  border-color: rgba(220, 38, 38, 0.58);
  background: #fee2e2;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

.test-week-risk-todo.is-risk-due-today.test-week-clickable-card:hover {
  border-color: rgba(234, 88, 12, 0.58);
  background: #ffedd5;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.2);
}

.test-week-risk-todo.is-risk-due-soon.test-week-clickable-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: #fff0d4;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.2);
}

.test-week-risk-todo.is-risk-upcoming.test-week-clickable-card:hover {
  border-color: rgba(234, 179, 8, 0.55);
  background: #fef9c3;
  box-shadow: 0 14px 28px rgba(234, 179, 8, 0.18);
}

.test-week-risk-todo.is-risk-procrastinated.test-week-clickable-card:hover {
  border-color: rgba(124, 58, 237, 0.42);
  background: #f5f3ff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.17);
}

.test-week-risk-todo__badges {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 40;
  display: inline-flex;
  gap: 4px;
  transform: translateY(-47%);
}

.test-week-risk-todo__title {
  display: -webkit-box;
  overflow: hidden;
  width: 100%;
  color: #5d6570;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.22;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.test-week-risk-todo__quick-add {
  appearance: none;
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(44, 62, 80, 0.14);
  border-radius: 50%;
  background: #2c3e50;
  box-shadow: 0 10px 22px rgba(44, 62, 80, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.test-week-risk-todo:hover .test-week-risk-todo__quick-add,
.test-week-risk-todo:focus-within .test-week-risk-todo__quick-add,
.test-week-risk-todo__quick-add:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.test-week-risk-todo__quick-add:hover,
.test-week-risk-todo__quick-add:focus-visible {
  background: #1c2f42;
  outline: none;
}

.test-week-risk-todo__quick-add:disabled {
  cursor: wait;
  opacity: 0.7;
}

.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-reflection__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-week-reflection__date {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.test-week-reflection__score {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.test-week-reflection__section {
  margin-top: 14px;
}

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

.test-week-reflection__section--keep .test-week-reflection__section-label {
  color: #16a34a;
}

.test-week-reflection__section--problem .test-week-reflection__section-label {
  color: #dc2626;
}

.test-week-reflection__section-body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
}

.test-week-reflection__empty {
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
}

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

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

.test-week-experiments--master-detail {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.test-week-experiment-list {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: clamp(420px, 58vh, 620px);
  overflow: auto;
  padding: 4px 6px 4px 2px;
}

.test-week-experiment-list::-webkit-scrollbar {
  width: 6px;
}

.test-week-experiment-list::-webkit-scrollbar-track {
  background: transparent;
}

.test-week-experiment-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
}

.test-week-experiment-filter {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.test-week-experiment-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.test-week-experiment-filter__btn:hover,
.test-week-experiment-filter__btn:focus-visible,
.test-week-experiment-filter__btn.is-active {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  outline: none;
}

.test-week-experiment-filter__swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.test-week-experiment-filter__btn em {
  font-style: normal;
  color: #64748b;
  font-size: 11px;
}

.test-week-experiment-summary {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.test-week-experiment-summary:hover,
.test-week-experiment-summary:focus-visible,
.test-week-experiment-summary.is-linked-active,
.test-week-experiment-summary.is-selected {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.09);
  outline: none;
  transform: translateY(-1px);
}

.test-week-experiment-summary.is-selected {
  box-shadow: inset 3px 0 0 var(--experiment-accent-color, #3b82f6), 0 12px 24px rgba(37, 99, 235, 0.09);
}

.test-week-experiment-summary.is-filter-hidden,
.test-week-experiment.is-filter-hidden,
.test-week-experiment-summary[hidden],
.test-week-experiment[hidden] {
  display: none;
}

.test-week-experiment-summary__pin {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.test-week-experiment-summary__body {
  min-width: 0;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.test-week-experiment-summary__top {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.test-week-experiment-summary__top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.test-week-experiment-summary__top span,
.test-week-experiment-summary__days {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.test-week-experiment__trend {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.test-week-experiment__trend--positive,
.test-week-experiment__metric--positive {
  background: #ecfdf5;
  border-color: rgba(167, 243, 208, 0.9);
  color: #047857;
}

.test-week-experiment__trend--negative,
.test-week-experiment__metric--negative {
  background: #fef2f2;
  border-color: rgba(254, 202, 202, 0.9);
  color: #dc2626;
}

.test-week-experiment__trend--neutral,
.test-week-experiment__metric--neutral {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.8);
  color: #64748b;
}

.test-week-experiment-summary__tries {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.test-week-experiment-routines {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.test-week-experiment-routine {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 150px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.82);
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.test-week-experiment-routine span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-experiment-routine__swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.test-week-experiment-routine--more {
  color: #64748b;
}

.test-week-experiment-summary__try {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #047857;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.test-week-experiment-summary__try.is-muted {
  background: #f8fafc;
  color: #94a3b8;
}

.test-week-experiment-detail {
  min-width: 0;
  min-height: 0;
  display: grid;
}

.test-week-experiment {
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.test-week-experiment:hover,
.test-week-experiment:focus-visible,
.test-week-experiment.is-linked-active {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.1);
}

.test-week-experiment__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(34, 197, 94, 0.08));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.test-week-experiment__problem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.test-week-experiment__pin {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.14);
  font-size: 14px;
  font-weight: 900;
}

.test-week-experiment__problem-copy {
  min-width: 0;
}

.test-week-experiment__problem-copy h3 {
  margin: 1px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.test-week-experiment__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.test-week-experiment__days {
  margin: 14px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.test-week-experiment__metric,
.test-week-experiment__day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.test-week-experiment__metric {
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.7);
  color: #475569;
}

.test-week-experiment__metric--response {
  background: #eff6ff;
  border-color: rgba(147, 197, 253, 0.8);
  color: #1d4ed8;
}

.test-week-experiment__day-pill {
  background: rgba(241, 245, 249, 0.9);
  color: #64748b;
}

.test-week-experiment__loop {
  margin: 18px 20px 0;
}

.test-week-experiment__section-title,
.test-week-experiment__tries {
  margin-top: 13px;
}

.test-week-experiment__section-title,
.test-week-experiment__tries-title {
  margin-bottom: 10px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-week-experiment__loop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.test-week-experiment__loop-day-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.86);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.test-week-experiment__loop-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 4px;
}

.test-week-experiment__loop-day-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
}

.test-week-experiment__loop-day-header strong {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.test-week-experiment__loop-item {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  overflow: hidden;
}

.test-week-experiment__loop-item + .test-week-experiment__loop-item {
  margin-top: 0;
}

.test-week-experiment__loop-node {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 11px;
}

.test-week-experiment__loop-node--problem {
  background: rgba(254, 242, 242, 0.78);
  border-bottom: 1px solid rgba(254, 202, 202, 0.72);
}

.test-week-experiment__loop-node--try {
  background: rgba(240, 253, 244, 0.82);
}

.test-week-experiment__loop-node--missing-try {
  background: rgba(248, 250, 252, 0.86);
  border-top: 1px dashed rgba(203, 213, 225, 0.9);
  color: #64748b;
}

.test-week-experiment__loop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.test-week-experiment__loop-response {
  min-width: 0;
}

.test-week-experiment__loop-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.test-week-experiment__loop-badge--problem {
  background: #fee2e2;
  color: #dc2626;
}

.test-week-experiment__loop-badge--try {
  background: #dcfce7;
  color: #047857;
}

.test-week-experiment__loop-badge--missing {
  background: #e2e8f0;
  color: #64748b;
}

.test-week-experiment__loop-day {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.test-week-experiment__loop-copy {
  min-width: 0;
}

.test-week-experiment__loop-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
}

.test-week-experiment__loop-copy .test-week-experiment__loop-try-list {
  display: grid;
  gap: 5px;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.test-week-experiment__loop-try-line {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.test-week-experiment__loop-try-line .test-week-experiment__try-version {
  display: inline-flex;
  flex: 0 0 auto;
  background: #dcfce7;
  color: #047857;
}

.test-week-experiment__loop-try-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-experiment__loop-empty {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.test-week-experiment__tries {
  margin: 18px 20px 20px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.test-week-experiment__tries-title {
  grid-column: 1 / -1;
}

.test-week-experiment__try {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.78);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.test-week-experiment__try + .test-week-experiment__try {
  margin-top: 0;
}

.test-week-experiment__try-version {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
}

.test-week-experiment__try-version {
  padding: 2px 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
}

.test-week-experiment__try.is-applied .test-week-experiment__try-version {
  background: #dcfce7;
  color: #047857;
}

.test-week-experiment__try.is-latest {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28);
}

.test-week-experiment__try--positive {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
}

.test-week-experiment__try--negative {
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.test-week-experiment__try.is-linked-active {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.test-week-experiment__try.is-linked-active .test-week-experiment__try-version {
  background: #dbeafe;
  color: #2563eb;
}

.test-week-experiment__try-content {
  min-width: 0;
  flex: 1 1 auto;
}

.test-week-experiment__try-content strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.test-week-experiment__try-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-experiment__try-content strong::after {
  content: '';
  flex: 0 0 auto;
  min-width: 0;
}

.test-week-experiment__try-current {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 10px;
  font-weight: 900;
}

.test-week-experiment__try-content span,
.test-week-experiment__try-empty {
  color: #64748b;
  font-size: 11px;
}

.test-week-experiment__try-content .test-week-experiment__try-effect {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}

.test-week-experiment-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  background: #f8fafc;
  font-size: 14px;
}

@media (max-width: 640px) {
  .test-week-experiment__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-week-experiment__meta {
    justify-content: flex-start;
  }

}

.test-week-timeline-rows {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.test-week-strip-axis {
  display: grid;
  grid-template-columns: var(--test-week-strip-label-width) minmax(0, 1fr);
  gap: 2px;
  align-items: end;
  margin-top: 14px;
  margin-bottom: 4px;
}

.test-week-strip-axis__spacer {
  height: 1px;
}

.test-week-strip-axis__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.test-week-strip-axis__labels span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.test-week-strip-axis__labels span:nth-child(1) { justify-self: start; }
.test-week-strip-axis__labels span:nth-child(2) { justify-self: center; }
.test-week-strip-axis__labels span:nth-child(3) { justify-self: center; }
.test-week-strip-axis__labels span:nth-child(4) { justify-self: center; }
.test-week-strip-axis__labels span:nth-child(5) { justify-self: end; }

.test-week-strip-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: var(--test-week-strip-label-width) minmax(0, 1fr);
  gap: 2px;
  align-items: center;
}

.test-week-strip-row__label {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.test-week-strip-row__label-inline {
  display: grid;
  grid-template-columns: 42px 42px 28px 38px 50px;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.test-week-strip-row__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 0;
  box-sizing: border-box;
  padding: 2px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.9);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-strip-row__date {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-week-strip-row__content {
  min-width: 0;
  position: relative;
  overflow: visible;
}

.test-week-strip-row__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  box-sizing: border-box;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #eef2f6;
  color: #556270;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 0;
}

.test-week-strip-row__metric--score .test-week-strip-row__metric-tooltip {
  min-width: 220px;
}

.test-week-strip-row__score.is-empty {
  background: #f3f5f7;
  color: #9aa7b4;
}

.test-week-strip-row__metric {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.test-week-strip-row__metric-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  box-sizing: border-box;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.test-week-strip-row__metric--actual-time .test-week-strip-row__metric-trigger {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  width: 50px;
}

.test-week-strip-row__metric-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  color: #f8fafc;
}

.test-week-strip-row__metric:hover .test-week-strip-row__metric-tooltip {
  opacity: 1;
  visibility: visible;
}

.test-week-strip-row__metric-tooltip--sectioned .test-week-day__alignment-tooltip-title {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}

.test-week-strip-row__metric-tooltip .test-week-day__alignment-tooltip-title,
.test-week-strip-row__metric-tooltip .test-week-day__alignment-tooltip-body,
.test-week-strip-row__metric-tooltip .test-week-day__alignment-tooltip-item,
.test-week-strip-row__metric-tooltip .test-week-day__alignment-tooltip-item span {
  color: #ffffff;
}

.test-week-strip-grid {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(144, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 14px;
  background: #dbe7f5;
  border: 1px solid rgba(191, 219, 254, 0.85);
  overflow: hidden;
}

.test-week-strip-cell {
  display: block;
  min-width: 0;
  height: 18px;
}

.test-week-strip-problem-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 18px;
  pointer-events: none;
  z-index: 7000;
}

.test-week-strip-problem-segment {
  position: absolute;
  top: -2px;
  min-width: 10px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid rgba(239, 68, 68, 0.36);
  border-radius: 7px;
  background: rgba(254, 202, 202, 0.18);
  pointer-events: auto;
  cursor: help;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.test-week-strip-problem-segment::after {
  content: "!";
  position: absolute;
  right: -7px;
  top: -10px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 0 0 2px #ffffff, 0 5px 10px rgba(239, 68, 68, 0.24);
  pointer-events: none;
}

.test-week-strip-problem-segment.is-active {
  z-index: 40;
  border-color: #ef4444;
  background: rgba(254, 202, 202, 0.58);
  box-shadow: 0 0 0 2px #ffffff, 0 7px 15px rgba(239, 68, 68, 0.24);
  transform: translateY(-2px);
}

.test-week-strip-problem-segment.is-routine-linked {
  z-index: 39;
  border-color: #f97316;
  background: rgba(254, 215, 170, 0.66);
  box-shadow: 0 0 0 2px #ffffff, 0 8px 18px rgba(249, 115, 22, 0.26);
  transform: translateY(-2px);
}

.test-week-strip-try-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 18px;
  pointer-events: none;
  z-index: 6000;
}

.test-week-strip-try-segment {
  position: absolute;
  top: -3px;
  min-width: 12px;
  height: 24px;
  box-sizing: border-box;
  border: 2px dashed #10b981;
  border-radius: 7px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.34) 0,
      rgba(16, 185, 129, 0.34) 4px,
      rgba(255, 255, 255, 0.18) 4px,
      rgba(255, 255, 255, 0.18) 8px
    );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(16, 185, 129, 0.24);
  pointer-events: auto;
  z-index: 1;
}

.test-week-strip-try-segment.is-completed {
  border-style: solid;
  border-color: #10b981;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.34) 0,
      rgba(16, 185, 129, 0.34) 4px,
      rgba(255, 255, 255, 0.18) 4px,
      rgba(255, 255, 255, 0.18) 8px
    );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.95), 0 4px 12px rgba(16, 185, 129, 0.26);
}

.test-week-strip-try-segment:hover {
  z-index: 30;
  border-style: solid;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.46) 0,
      rgba(16, 185, 129, 0.46) 4px,
      rgba(255, 255, 255, 0.22) 4px,
      rgba(255, 255, 255, 0.22) 8px
    );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.98), 0 8px 18px rgba(16, 185, 129, 0.3);
}

.test-week-strip-try-segment.is-active {
  z-index: 32;
  border-style: solid;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 8px 20px rgba(16, 185, 129, 0.34);
}

.test-week-strip-try-segment.is-problem-linked {
  z-index: 31;
  border-style: solid;
  border-color: #059669;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(5, 150, 105, 0.48) 0,
      rgba(5, 150, 105, 0.48) 4px,
      rgba(255, 255, 255, 0.22) 4px,
      rgba(255, 255, 255, 0.22) 8px
    );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.98), 0 8px 18px rgba(16, 185, 129, 0.34);
  transform: translateY(-2px);
}

.test-week-strip-try-segment.is-routine-linked {
  z-index: 31;
  border-style: solid;
  border-color: #059669;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(5, 150, 105, 0.5) 0,
      rgba(5, 150, 105, 0.5) 4px,
      rgba(255, 255, 255, 0.22) 4px,
      rgba(255, 255, 255, 0.22) 8px
    );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.98), 0 8px 18px rgba(16, 185, 129, 0.34);
  transform: translateY(-2px);
}

.test-week-strip-try-segment.is-completed:hover {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.46) 0,
      rgba(16, 185, 129, 0.46) 4px,
      rgba(255, 255, 255, 0.22) 4px,
      rgba(255, 255, 255, 0.22) 8px
    );
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.98), 0 8px 18px rgba(16, 185, 129, 0.3);
}

.test-week-strip-try-segment__label {
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  padding: 1px 5px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 8px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.22);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.test-week-strip-try-segment.is-completed .test-week-strip-try-segment__label {
  background: #059669;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.22);
}

.test-week-strip-try-segment:hover .test-week-strip-try-segment__label {
  opacity: 1;
}

.test-week-strip-floating-tooltip {
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
  white-space: normal;
}

.test-week-strip-floating-tooltip__title {
  margin-bottom: 3px;
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
}

.test-week-strip-floating-tooltip__meta {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.test-week-strip-floating-tooltip__body,
.test-week-strip-floating-tooltip__try {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  color: #f8fafc;
}

.test-week-strip-floating-tooltip__problem {
  color: #e2e8f0;
}

.test-week-strip-floating-tooltip__problem strong,
.test-week-strip-floating-tooltip__try strong {
  display: block;
  margin-bottom: 2px;
  color: #fecaca;
  font-size: 11px;
}

.test-week-strip-floating-tooltip__try strong {
  color: #bbf7d0;
}

.test-week-strip-floating-tooltip .test-week-day__alignment-tooltip-title {
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.22);
  color: #ffffff;
  font-weight: 900;
}

.test-week-strip-floating-tooltip .test-week-day__alignment-tooltip-body,
.test-week-strip-floating-tooltip .test-week-day__alignment-tooltip-item,
.test-week-strip-floating-tooltip .test-week-day__alignment-tooltip-item span {
  color: #ffffff;
}

.test-week-strip-markers {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 24px;
  pointer-events: none;
  z-index: 3;
}

.test-week-strip-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
  cursor: default;
  pointer-events: auto;
}

.test-week-strip-marker::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 8px;
  transform: translateX(-50%);
  background: rgba(148, 163, 184, 0.85);
  border-radius: 999px;
}

.test-week-strip-marker__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 160px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 4;
  white-space: normal;
  text-align: left;
}

.test-week-strip-marker:hover .test-week-strip-marker__tooltip {
  opacity: 1;
}

.test-week-strip-marker__tooltip-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.test-week-strip-marker__tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-week-strip-marker__tooltip-item {
  display: block;
}

.test-week-routine-problem-grid {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.test-week-routine-problem-grid:empty {
  display: none;
}

.test-week-routine-problem-grid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.test-week-routine-problem-grid__head strong {
  font-size: 13px;
  color: #0f172a;
}

.test-week-routine-problem-grid__head span {
  font-size: 12px;
  color: #64748b;
}

.test-week-routine-problem-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.test-week-routine-problem {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(191, 219, 254, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.test-week-routine-problem:hover,
.test-week-routine-problem:focus-visible {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.test-week-routine-problem.is-active {
  border-color: #f97316;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18), 0 12px 28px rgba(249, 115, 22, 0.12);
}

.test-week-routine-problem__swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.test-week-routine-problem__main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.test-week-routine-problem__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.test-week-routine-problem__main span {
  font-size: 11px;
  color: #64748b;
}

.test-week-experiment-summary.is-routine-linked,
.test-week-experiment.is-routine-linked,
.test-week-problem-change__row.is-routine-linked {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.test-week-day {
  position: relative;
  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.is-best-day {
  border-color: rgba(0, 180, 115, 0.72);
  box-shadow: 0 0 0 2px rgba(0, 180, 115, 0.12), 0 16px 32px rgba(0, 180, 115, 0.12);
}

.test-week-day.is-worst-day {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1), 0 16px 32px rgba(239, 68, 68, 0.1);
}

.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.is-best-day:hover {
  border-color: rgba(0, 180, 115, 0.82);
  box-shadow: 0 0 0 2px rgba(0, 180, 115, 0.16), 0 18px 34px rgba(0, 180, 115, 0.16);
}

.test-week-day.is-worst-day:hover {
  border-color: rgba(239, 68, 68, 0.82);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.14), 0 18px 34px rgba(239, 68, 68, 0.14);
}

.test-week-day__badge {
  position: absolute;
  top: -10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.test-week-day__badge--best {
  background: #dff8ed;
  color: #047857;
  border: 1px solid rgba(0, 180, 115, 0.34);
}

.test-week-day__badge--worst {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.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__alignment {
  position: relative;
  display: inline-block;
}

.test-week-day__alignment-trigger {
  cursor: default;
}

.test-week-day__alignment-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 12;
}

.test-week-day__alignment:hover .test-week-day__alignment-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.test-week-day__completed {
  position: relative;
}

.test-week-day__completed-trigger {
  cursor: default;
}

.test-week-day__completed-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 12;
}

.test-week-day__completed:hover .test-week-day__completed-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.test-week-day__alignment-tooltip-title {
  font-size: 12px;
  font-weight: 800;
}

.test-week-day__alignment-tooltip-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

.test-week-day__alignment-tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.test-week-day__tooltip-divider {
  margin: 8px 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.test-week-day__alignment-tooltip-bullet-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
}

.test-week-day__alignment-tooltip-bullet-list li + li {
  margin-top: 4px;
}

.test-week-day__alignment-tooltip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 12px;
}

.test-week-day__project {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-week-day__project-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(147, 197, 253, 0.7);
}

.test-week-day__empty-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c8da5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.test-week-day__empty-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.35);
  flex-shrink: 0;
}

.test-week-day__empty-state--project {
  width: 100%;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

.test-week-day__empty-state--inline {
  min-height: 22px;
}

.test-week-day__empty-state--inline::before {
  display: none;
}

.test-week-day__project-chip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.test-week-day__project-chip-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.test-week-day__project-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.test-week-day__project-chip-todo {
  font-size: 11px;
  font-weight: 700;
  color: #5b6b82;
  white-space: nowrap;
  flex-shrink: 0;
}

.test-week-day__project-chip-progress-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.test-week-day__project-chip-progress {
  flex: 1;
  min-width: 0;
}

.test-week-day__project-chip-progress-labels {
  position: relative;
  height: 14px;
  margin-bottom: 2px;
}

.test-week-day__project-chip-progress-marker {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.test-week-day__project-chip-progress-marker--base {
  color: #2563eb;
}

.test-week-day__project-chip-progress-marker--day {
  color: #38bdf8;
}

.test-week-day__project-chip-progress-marker--base-apart {
  transform: translateX(calc(-100% - 4px));
}

.test-week-day__project-chip-progress-marker--day-apart {
  transform: translateX(4px);
}

.test-week-day__project-chip-progress-total {
  min-width: 34px;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: #5b6b82;
  line-height: 1;
  padding-bottom: 1px;
}

.test-week-progress--compact {
  height: 8px;
  margin-top: 0;
}

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

.test-week-day__mismatch-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.test-week-day__mismatch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.test-week-day__mismatch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid rgba(191, 219, 254, 0.55);
}

.test-week-day__mismatch-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  color: #475569;
}

.test-week-day__mismatch-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.test-week-day__mismatch-diff {
  flex-shrink: 0;
  font-weight: 800;
  color: #0f172a;
}

.test-week-day__mismatch-diff--positive {
  color: #dc2626;
}

.test-week-day__mismatch-diff--negative {
  color: #16a34a;
}

.test-week-day__mismatch-empty {
  margin-top: 6px;
  color: #94a3b8;
}

.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__note {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.test-week-day__note--keep span,
.test-week-day__note--highlight span {
  color: #16a34a;
}

.test-week-day__note--problem span {
  color: #dc2626;
}

.test-week-day__note-body {
  color: #334155;
  word-break: break-word;
}

.test-week-day__note-body.is-empty {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  border: 1px dashed rgba(203, 213, 225, 0.9);
}

.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));
  }

  .test-week-experiments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-week-experiments--master-detail {
    grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
  }
}

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

  .test-week-hero__grid,
  .test-week-improvement-list,
  .test-week-change-grid,
  .test-week-problem-change,
  .test-week-xp-grid,
  .test-week-project-trend,
  .test-week-layout,
  .test-week-layout--split,
  .test-week-panel__stats,
  .test-week-reflection,
  .test-week-days,
  .test-week-experiments,
  .test-week-modal__body {
    grid-template-columns: 1fr;
  }

  .test-week-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .test-week-modal__header,
  .test-week-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .test-week-risk-row {
    grid-template-columns: 1fr;
  }

  .test-week-risk-row__todos {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .test-week-experiment-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .test-week-risk-todo,
  .test-week-risk-row__project {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
