.phase-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.phase-tab {
  display: grid;
  gap: 3px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid #d9ceba;
  border-radius: 16px;
  background: #fffdf8;
  color: #31585d;
  text-align: left;
  box-shadow: 0 8px 22px rgba(59, 73, 68, .05);
}

.phase-tab:hover {
  border-color: #bda96f;
}

.phase-tab.active {
  border-color: #1f5964;
  background: #edf5f3;
  box-shadow: 0 10px 26px rgba(31, 89, 100, .12);
}

.phase-tab .phase-time {
  color: #9a7027;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.phase-tab strong {
  font: 700 1.02rem Georgia, serif;
  color: #294b4f;
}

.phase-tab small {
  color: #71817e;
  font-size: .76rem;
}

.simple-phase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.simple-study-card {
  overflow: hidden;
  border: 1px solid #ddd3c1;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 14px 36px rgba(64, 54, 35, .08);
}

.simple-study-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e7dfd0;
}

.simple-study-heading h2 {
  margin: 4px 0 0;
  color: #24494f;
  font: 700 1.85rem Georgia, serif;
}

.simple-phase-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #1f5964;
  color: white;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.simple-context-card {
  display: grid;
  gap: 4px;
  margin: 20px 24px 0;
  padding: 16px 18px;
  border: 1px solid #dfd2b4;
  border-radius: 15px;
  background: #f8f3e7;
}

.simple-context-card small {
  color: #9a7027;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.simple-context-card strong {
  color: #294b4f;
  font: 700 1.12rem Georgia, serif;
}

.simple-context-card p {
  margin: 0;
  color: #687a76;
  font-size: .86rem;
}

.simple-study-card .study-section {
  margin: 20px 24px 0;
}

.simple-notes-section {
  margin: 20px 24px 0;
  padding: 20px;
  border-radius: 16px;
  background: #f4f7f5;
}

.simple-notes-section .wide-field {
  margin: 0;
}

.simple-notes-section textarea {
  min-height: 180px;
}

.simple-study-card .study-actions {
  margin-top: 22px;
  padding: 18px 24px 24px;
  border-top: 1px solid #e7dfd0;
}

.simple-phase-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.simple-phase-sidebar .today-card {
  margin: 0;
}

.simple-phase-sidebar .stop-list-card {
  max-height: 68vh;
  overflow: hidden;
}

.simple-phase-sidebar .stop-list {
  max-height: 58vh;
  overflow: auto;
}

.simple-phase-sidebar .stop-list button small {
  line-height: 1.3;
}

.phase-help-note {
  margin: 10px 0 0;
  color: #6f7e7a;
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .simple-phase-panel {
    grid-template-columns: 1fr;
  }

  .simple-phase-sidebar {
    position: static;
  }

  .simple-phase-sidebar .stop-list-card {
    max-height: none;
  }

  .simple-phase-sidebar .stop-list {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .phase-switcher {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .phase-tab {
    min-height: 70px;
    padding: 11px 13px;
  }

  .simple-study-heading {
    display: grid;
    padding: 20px 18px 16px;
  }

  .simple-study-heading h2 {
    font-size: 1.55rem;
  }

  .simple-phase-badge {
    justify-self: start;
  }

  .simple-context-card,
  .simple-study-card .study-section,
  .simple-notes-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .simple-study-card .study-actions {
    padding-left: 16px;
    padding-right: 16px;
  }
}
