.studyPlanPage{max-width:1180px;margin:0 auto;display:grid;gap:16px;min-width:0}
#mainContent > #home[hidden],
#mainContent:has(> #studyPlanPage:not([hidden]):not(.hidden)) > #home {
  display: none !important;
}
.studyPlanPage .cycleTop{margin:0}
.studyPlanLabel{display:inline-block;font-size:.73rem;font-weight:800;letter-spacing:.08em;color:var(--muted)}
.studyPlanPage h2{margin:0 0 6px;font-size:1.2rem}
.studyPlanNotice p,.studyAgendaDays p{margin:6px 0 14px}
.studyPlanPicker,.studyPlanActions,.studyPlanInputs,.studyPlanSectionTitle{display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.studyPlanPicker,.studyPlanSectionTitle{justify-content:space-between}
.studyPlanPicker label,.studyPlanInputs label{display:grid;gap:5px;min-width:0}
.studyPlanPicker select{max-width:min(100%,34rem)}
.studyPlanPicker label{flex:1 1 260px}
.studyPlanPage .evoluaNextActionCard,#cyclePage .evoluaNextActionCard{margin:0}
#cyclePage .evoluaNextActionCard{margin:16px 0}
.studyPlanStats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr));gap:10px}
.studyPlanStats div{display:grid;gap:4px;padding:14px;border:1px solid var(--line);background:var(--panel);border-radius:12px}
.studyPlanStats span,.studyAgendaDay small,.studyAgendaDay li span{font-size:.83rem;color:var(--muted)}
.studyPlanStats b{font-size:1.2rem}
.studyAgendaDay{border-top:1px solid var(--line);padding:12px 0}
.studyAgendaDay summary,.studyPlanSettings summary{cursor:pointer}
.studyAgendaDay summary span{margin-inline-start:10px;font-size:.83rem;color:var(--muted)}
.studyAgendaDay ol,.studyPlanOrder{padding-left:1.7rem;margin:.65rem 0 0}
.studyAgendaDay li{padding:8px 8px 8px 0;border-bottom:1px solid var(--line)}
.studyAgendaDay li div,.studyAgendaDay li span{display:block}
.studyPlanOrder{margin:12px 0}
.studyPlanOrder li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:8px 0;border-bottom:1px solid var(--line)}
.studyPlanSubjectInfo{display:flex;flex-direction:column;gap:3px;flex:1 1 240px;min-width:0}
.studyPlanSubjectHead{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.studyPlanSubjectHead span:first-child{overflow-wrap:anywhere;font-weight:600}
.studyExamWeightNote{font-size:.76rem;color:var(--muted)}
.studyGroupBadge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.73rem;font-weight:700;line-height:1.4;white-space:nowrap}
.studyGroupBadge.isSpecific{background:rgba(59,130,246,.16);color:#7db3ff;border:1px solid rgba(59,130,246,.35)}
.studyGroupBadge.isBasic{background:rgba(148,163,184,.14);color:#b7c2d0;border:1px solid rgba(148,163,184,.28)}
body.theme-day .studyGroupBadge.isSpecific{background:#e7f0fe;color:#174f89;border-color:#b6d0f7}
body.theme-day .studyGroupBadge.isBasic{background:#eef3ef;color:#3f5449;border-color:#cddad1}
.studyPlanRowControls{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.studyWeightLabel{display:inline-flex;align-items:center;gap:5px;font-size:.8rem;color:var(--muted);font-weight:600}
.studyPlanWeightInput{width:76px;padding:5px 7px;border-radius:8px;border:1px solid var(--line);background:var(--panel,#131d2b);color:var(--text);font-size:.84rem;font-weight:600}
body.theme-day .studyPlanWeightInput{background:#ffffff;color:#14221b;border-color:#c6d2c9}
.studyPlanSettings summary{font-weight:750}
.studyPlanSettings form>.muted:not(p){margin-inline-start:8px}
#studyTimerWorkspace{position:sticky;top:0;z-index:15;margin:0 0 12px}
#studyTimerReader{position:fixed;z-index:30;right:12px;bottom:calc(10px + env(safe-area-inset-bottom, 0px));max-width:calc(100% - 24px)}
#readerMode:has(.paper.pdfPaper) #studyTimerReader{bottom:calc(66px + env(safe-area-inset-bottom, 0px))}
#readerMode.immersiveMode #studyTimerReader{display:none!important}
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) .rhmContainer,
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) .readerShell:has(> .paper:not(.pdfPaper):not(.hidden)),
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) .readerShell:has(> #practice:not(.hidden)),
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) .paper:not(.pdfPaper),
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) #practice{
  padding-bottom:168px!important;
}
#readerMode:is(.hasStudyTimer, :has(#studyTimerReader)) :is(#reviewQuizArea, .adaptedFlowActions, #practice){
  scroll-margin-bottom:170px;
}
.studySessionTimer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;
  padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#131d2b);
  color:var(--text);box-shadow:0 6px 24px #0003}
.studyTimerCompactToggle{display:none}
.studyTimerFullBody{display:contents}
.studySessionTimer.isPaused{border-color:rgba(245,158,11,.55)}
.studySessionTimer div:first-child span,.studyTimerFullInfo span{font-size:.72rem;color:var(--muted)}
.studyTimerFullInfo{display:grid;gap:2px}
.studySessionTimer strong{font-size:.87rem}
.studySessionClocks{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.studySessionTimer time{font-size:1.1rem;font-weight:800;font-variant-numeric:tabular-nums}
.studyBreakReadout{font-size:.76rem;font-weight:700;color:#fbbf24;font-variant-numeric:tabular-nums}
body.theme-day .studySessionTimer{background:#ffffff;color:#14221b;border-color:#d4ddd6}
body.theme-day .studyBreakReadout{color:#b45309}
.studySessionActions{display:flex;gap:6px;flex-wrap:wrap}
.studySessionActions button{padding:6px 9px}
@media(max-width:850px){
  #studyTimerReader{left:10px;right:auto;width:auto;max-width:calc(100vw - 20px);bottom:calc(12px + env(safe-area-inset-bottom, 0px));z-index:480}
  #readerMode:has(.paper.pdfPaper) #studyTimerReader{bottom:calc(var(--reader-pdf-actions-height, 112px) + 18px + env(safe-area-inset-bottom, 0px))}
  #studyTimerReader:not(.isExpanded) .studySessionTimer{padding:0;border-radius:999px}
  #studyTimerReader .studyTimerCompactToggle{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:inherit;font-weight:800;font-size:.9rem;box-shadow:none}
  #studyTimerReader .studyTimerCompactToggle time{font-size:.95rem}
  #studyTimerReader:not(.isExpanded) .studyTimerFullBody{display:none}
  #studyTimerReader.isExpanded{left:8px;right:8px;max-width:none}
  #studyTimerReader.isExpanded .studySessionTimer{flex-direction:column;align-items:stretch;padding:10px 12px;gap:8px}
  #studyTimerReader.isExpanded .studyTimerCompactToggle{align-self:flex-start;min-height:44px;padding:0 8px}
  #studyTimerReader.isExpanded .studyTimerFullBody{display:grid;gap:8px}
  #studyTimerReader.isExpanded .studySessionClocks{align-items:flex-start}
  #studyTimerReader.isExpanded .studySessionActions button{min-height:44px;flex:1 1 auto}
}
@media(max-width:600px){
  .studyPlanPicker,.studyPlanSectionTitle{align-items:stretch}
  .studyPlanInputs label{flex:1 1 105px}
  .studySessionClocks{align-items:flex-start}
  .studySessionActions button{padding:5px 8px;font-size:12px}
}

.editalSubjectSelectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 14px 0 6px;
  font-weight: 700;
}

.editalSubjectSelectionHeader label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  cursor: pointer;
}

.editalSubjectSelectionHeader input {
  margin: 0;
  accent-color: var(--brand-primary);
}
