/* Answer text stays light, independently of the stronger interface typography. */
#answerInput, #dictationAnswerInput,
#answerInput::placeholder, #dictationAnswerInput::placeholder { font-weight: 400; }

.study-fullscreen-toolbar { display: none; }
.study-fullscreen-toggle { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.study-fullscreen-toggle .ui-icon { width: 15px; height: 15px; }
@media (max-width: 1100px) {
  body:not(.tablet-focus-mode) #mainContent.study-view .head-actions:has(.study-fullscreen-toggle) { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  #mainContent.study-view .head-actions:has(.study-fullscreen-toggle) .study-library-label { display: none; }
  body:not(.tablet-focus-mode) #mainContent.study-view .head-actions .study-fullscreen-toggle { min-height: 30px; padding-block: 4px; }
}

body.study-fullscreen-mode { overflow: hidden; padding: 0; }
body.study-fullscreen-mode :is(.sidebar, .topbar, .mobile-nav, .site-filing),
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent > :is(.page-head, .learning-plan-strip),
body.study-fullscreen-mode .study-side { display: none !important; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  width: 100%; max-width: none; height: var(--tablet-viewport-height, 100dvh);
  min-height: 0; margin: 0; padding: max(16px, env(safe-area-inset-top)) clamp(18px, 5vw, 80px) max(18px, env(safe-area-inset-bottom));
  overflow: hidden; background: #fafbf9;
}
body.study-fullscreen-mode .study-fullscreen-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100%, 1000px); min-height: 44px; flex: 0 0 auto; margin-bottom: 12px;
  color: #40564a; font-size: 14px;
}
.study-fullscreen-toolbar > div { display: flex; align-items: center; gap: 16px; }
.study-fullscreen-toolbar .button { min-height: 36px; font-size: 12px; box-shadow: none; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .learn-grid {
  display: flex; width: min(100%, 1000px); flex: 1 1 0; height: auto; min-height: 0; gap: 0;
}
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .study-card {
  width: 100%; min-height: 0; flex: 1; margin: 0; padding: 16px 24px 20px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .study-top { flex: 0 0 auto; flex-wrap: nowrap; min-height: 32px; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view :is(.mode-pill, .source-hint, .tablet-focus-toggle, .meaning-label) { display: none; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .study-progress-track { flex: 0 0 auto; height: 2px; margin-top: 12px; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-wrap { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; min-height: 0; max-height: none; padding: 24px 4px; overflow: auto; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-text.english-prompt { font-size: clamp(48px, 6vw, 78px); line-height: 1.25; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-text { font-size: clamp(25px, 3vw, 36px); line-height: 1.6; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-text.prompt-compact { font-size: clamp(18px, 2.4vw, 26px); }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view :is(.answer-mode-row, .answer-form, .system-handwriting-form, .answer-foot, .result-panel, .meaning-review-panel, .preview-footer) { width: min(100%, 760px); align-self: center; flex: 0 0 auto; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-box { min-height: 58px; background: #fff; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-box input { font-size: 22px; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-foot { justify-content: flex-end; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-foot > span:first-child { display: none; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .preview-definition { max-width: 760px; margin-inline: auto; font-size: 22px; }
body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-review-panel { max-height: 34dvh; overflow: auto; }

@media (max-width: 600px) {
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view { padding-inline: 12px; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .study-card { padding: 6px 4px 4px; }
  body.study-fullscreen-mode .study-fullscreen-toolbar { margin-bottom: 8px; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-box input { font-size: 20px; }
}
@media (max-height: 540px) {
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view { padding-block: 6px; }
  body.study-fullscreen-mode .study-fullscreen-toolbar { min-height: 32px; margin-bottom: 0; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .study-card { padding-block: 0; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-wrap { padding-block: 8px; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .meaning-text.english-prompt { font-size: 42px; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-mode-row { display: none; }
  body.study-fullscreen-mode:not(.tablet-focus-mode) #mainContent.study-view .answer-box { min-height: 48px; }
}
