/* R98: 30-day practice follows the user's GRE exam reference. */
html:has(.daily-plan-exam), body:has(.daily-plan-exam) { height: auto; overflow-y: auto; }
.app-shell.daily-plan-shell:has(.daily-plan-exam) { height: auto; min-height: 100dvh; overflow: visible; background: #fff; }
.daily-plan-shell.workbook-shell .daily-plan-exam {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: calc(100% - 12px);
  height: auto;
  max-height: none;
  min-height: calc(100dvh - 12px);
  margin: 6px;
  border: 2px solid #9d9d9d;
  box-shadow: inset 0 0 0 1px #e1e1e1;
  overflow: visible;
  background: #fff;
  color: #242424;
}
.daily-plan-exam > header.gre-toolbar {
  box-sizing: border-box;
  flex: 0 0 auto;
  height: auto;
  min-height: 64px;
  padding: 4px 6px 4px 16px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.daily-plan-exam > header.gre-toolbar .daily-gre-brand { align-items: center; gap: 12px; min-width: 0; }
.daily-plan-exam > header.gre-toolbar .daily-gre-brand strong { font: 700 42px/1 Arial, sans-serif; letter-spacing: -.02em; }
.daily-plan-exam > header.gre-toolbar .daily-ets-mark {
  display: inline-flex;
  flex: 0 0 48px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font: italic 700 21px/1 Arial, sans-serif;
}
.daily-plan-exam > header.gre-toolbar .daily-gre-product { font: 700 16px/1.25 Arial, sans-serif; color: #fff; margin-left: 4px; }
.daily-plan-exam > header.gre-toolbar nav { display: flex; align-items: stretch; gap: 4px; }
.daily-plan-exam > header.gre-toolbar nav button { height: 50px; min-width: 78px; padding: 0 14px; font-size: 14px; }
.daily-plan-exam .gre-progressbar { flex: 0 0 auto; box-sizing: border-box; height: auto; min-height: 30px; padding: 5px 10px; gap: 12px; font-size: 13px; line-height: 1.4; }
.daily-plan-exam .daily-plan-context { display: inline-block; padding-right: 12px; margin-right: 12px; border-right: 1px solid #a3a3a3; }
.daily-plan-exam .gre-progressbar strong { white-space: nowrap; }
.daily-plan-exam .question-panel {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 12px 0;
  overflow: visible;
}
.daily-plan-exam .gre-instruction { width: 80%; max-width: none; margin: 0 auto; padding: 10px 22px; font: 400 16px/1.4 Arial, 'Microsoft YaHei', sans-serif; }
.daily-plan-exam .question-body {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 74%;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(40px, 12.5vh, 128px) 0 24px;
  gap: 32px;
}
.daily-plan-exam .question-body .stem { width: 100%; max-width: none; margin: 0; font: 400 20px/1.4 Arial, 'Microsoft YaHei', sans-serif; overflow-wrap: anywhere; }
.daily-plan-exam .se-options { width: max-content; min-width: 170px; max-width: min(100%, 560px); margin: 0 auto; gap: 0; }
.daily-plan-exam .se-options .exam-choice { box-sizing: border-box; width: 100%; min-height: clamp(44px, 5.65vh, 62px); padding: 8px 0; font: 400 20px/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
.daily-plan-exam .se-options .exam-checkbox { flex: 0 0 18px; margin-right: 14px; }
.daily-plan-exam .single-option-table { width: min(100%, 360px); margin: 0 auto; }
.daily-plan-exam .single-option-table .exam-choice { height: auto; min-height: 44px; padding: 8px 12px; white-space: normal; overflow-wrap: anywhere; }
.daily-plan-exam .gre-bottom-note { position: static; transform: none; box-sizing: border-box; width: fit-content; max-width: calc(100% - 32px); min-width: 0; height: auto; min-height: 0; margin: 0 auto; padding: 10px 20px; font-size: 16px; line-height: 1.4; text-align: center; }
@media (max-height: 700px) and (min-width: 769px) {
  .daily-plan-exam .question-body { padding-top: 40px; gap: 24px; }
}
/* Shared workbook mobile rules use !important; keep this override local. */
@media (max-width: 768px) {
  .daily-plan-shell.workbook-shell .daily-plan-exam { width: 100%; min-height: 100dvh; margin: 0; border-width: 1px; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar { min-height: 0; padding: 8px 10px !important; gap: 8px; align-items: stretch; flex-direction: column; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar .daily-gre-brand { justify-content: flex-start; gap: 10px; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar .daily-gre-brand strong { font-size: 32px !important; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar .daily-ets-mark { display: inline-flex !important; flex-basis: 40px; height: 28px; font-size: 17px; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar .daily-gre-product { display: block !important; font-size: 12px; margin-left: 0; }
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar nav button { font-size: 12px !important; }
  .daily-plan-shell .daily-plan-exam .gre-progressbar { padding: 6px 10px; gap: 8px; font-size: 11px; }
  .daily-plan-shell .daily-plan-exam .daily-plan-context { display: block; border: 0; margin: 0; padding: 0; }
  .daily-plan-shell .daily-plan-exam .question-panel { width: 100%; padding: 12px 0 !important; }
  .daily-plan-shell .daily-plan-exam .gre-instruction { width: calc(100% - 28px) !important; max-width: none; margin: 0 auto !important; padding: 10px 12px !important; font-size: 14px !important; }
  .daily-plan-shell .daily-plan-exam .question-body { width: calc(100% - 36px) !important; padding: 32px 0 28px !important; gap: 24px; }
  .daily-plan-shell .daily-plan-exam .question-body .stem { margin: 0 !important; font-size: 18px !important; }
  .daily-plan-shell .daily-plan-exam .se-options { width: max-content !important; min-width: 170px !important; max-width: 100% !important; margin: 0 auto !important; gap: 0 !important; }
  .daily-plan-shell .daily-plan-exam .se-options .exam-choice { min-height: 46px !important; padding: 8px 0 !important; font-size: 17px !important; }
  .daily-plan-shell .daily-plan-exam .gre-bottom-note { width: fit-content !important; margin: 0 auto !important; font-size: 14px; }
}
@media (max-width: 360px) {
  .daily-plan-shell .daily-plan-exam > header.gre-toolbar nav button { font-size: 11px !important; }
}
