/* Zentrale Lesbarkeitsstufe. Fachlich notwendige Mikrobeschriftungen in Rastern bleiben ausgenommen. */
:root {
  --text-readable: 14px;
  --text-secondary: 12px;
  --text-label: 11px;
}

/* Kreuzworträtsel: Nummern bleiben kompakt, Hinweise sind normal lesbarer Inhalt. */
.word-search-grid.crossword-grid small,
.public-crossword-grid .crossword-input-cell small {
  top: 2px;
  left: 3px;
  font-size: clamp(8px, .72vw, 11px);
  line-height: 1;
  font-weight: 900;
}
.crossword-clues section > b { font-size: var(--text-label); }
.crossword-clues li { font-size: var(--text-secondary); line-height: 1.5; }
.public-crossword-clues li { font-size: var(--text-readable); line-height: 1.5; }
@media (max-width: 600px) {
  .word-search-grid.crossword-grid small,
  .public-crossword-grid .crossword-input-cell small { font-size: 8px; }
  .crossword-clues li,
  .public-crossword-clues li { font-size: 13px; }
}

.button,
.landing-nav-actions .button,
.landing-login,
.panel-button,
.file-actions .button,
.word-grid-shuffle-button { font-size: 13px; }

.teacher-nav button { font-size: 12px; }
@media (max-width: 850px) {
  .teacher-nav-label { display: none; }
}
.worksheet-path,
.breadcrumbs button { font-size: 12px; }
.user-dropdown-label { font-size: var(--text-label); }
.user-email { font-size: 13px; }
.user-dropdown button { font-size: 13px; }

.file-columns { font-size: var(--text-label); }
.file-name b { font-size: var(--text-readable); }
.file-name small,
.file-kind,
.file-row time { font-size: var(--text-secondary); }

.app-dialog label,
.task-type-field legend { font-size: var(--text-secondary); }
.app-dialog input,
.app-dialog select,
.app-dialog textarea { font-size: var(--text-readable); }
.dialog-error,
.danger-notice { font-size: var(--text-secondary); }
.task-setting-row b,
.task-type-copy b { font-size: 13px; }
.task-setting-row small,
.task-settings-note,
.task-type-copy small { font-size: var(--text-label); }

.profile-dialog form>p:not(.dialog-error),
.profile-form-grid input { font-size: var(--text-readable); }
.profile-form-grid label { font-size: var(--text-secondary); }
.profile-form-grid label>small,
.profile-section-head small,
.profile-danger-zone small { font-size: var(--text-label); }
.profile-danger-zone b,
.billing-plan { font-size: var(--text-secondary); }
.billing-details>span { font-size: var(--text-secondary); }
.billing-details>span b,
.billing-details p,
.billing-allowance div { font-size: var(--text-label); }

.template-showcase-side>span,
.template-browser-head small { font-size: var(--text-label); }
.template-showcase-tabs button,
.template-showcase-tabs>span,
.template-browser-head b { font-size: var(--text-secondary); }
.template-showcase-side>p { font-size: 13px; }
.early-access-offer>span,
.pricing-recommended { font-size: var(--text-label); }
.early-access-offer p,
.early-access-offer>strong,
.pricing-price small,
.pricing-note { font-size: var(--text-secondary); }
.pricing-card>p,
.pricing-card li { font-size: 13px; }

.dia-launcher { font-size: var(--text-readable); }
.dia-chat>header small { font-size: var(--text-secondary); }
.dia-message p,
.dia-composer textarea { font-size: var(--text-readable); }
.dia-message small,
.dia-source-label,
.dia-message.typing em,
.dia-disclaimer { font-size: var(--text-label); }
.dia-message nav button,
.dia-suggestions button,
.dia-undo,
.dia-task-draft>footer button,
.dia-workspace-browser>footer button,
.dia-task-review>[data-dia-apply-suggestions],
.dia-collection-review [data-dia-apply-suggestions] { font-size: var(--text-secondary); }
.dia-change-choice>span>b,
.dia-task-draft>small,
.dia-task-review>p,
.dia-task-review article p,
.dia-task-review article small,
.dia-collection-review>p,
.dia-collection-review li b,
.dia-collection-review li span,
.dia-collection-review li small,
.dia-draft-preview,
.dia-browser-list label small,
.dia-workspace-browser>footer span,
.dia-collection-review summary small { font-size: var(--text-secondary); }
.dia-task-draft>b,
.dia-task-review article b,
.dia-browser-list label b,
.dia-collection-review summary b,
.dia-collection-review>b { font-size: 13px; }
.dia-task-review>span,
.dia-task-review>b,
.dia-task-draft>span,
.dia-draft-meta em,
.dia-quality>strong small,
.dia-quality>span b,
.dia-workspace-browser>nav button,
.dia-workspace-browser>nav i,
.dia-collection-review>span { font-size: var(--text-label); }

.help-center-trigger,
.footer-help-trigger,
.help-search>button { font-size: var(--text-secondary); }
.help-center-shell>header p,
.help-article-summary,
.help-ai-answer { font-size: 13px; }
.help-search input { font-size: var(--text-readable); }
.help-center-body>aside section>span,
#helpContextSuggestion>span,
.help-article-meta,
.help-ai-sources>span,
.help-center-shell>footer { font-size: var(--text-label); }
.help-center-body>aside nav button b,
#helpContextSuggestion button,
.help-source { font-size: var(--text-secondary); }
.help-center-body>aside nav button small { font-size: var(--text-label); }
.help-article-body h3 { font-size: 16px; }
.help-article-body p,
.help-article-body li { font-size: var(--text-readable); line-height: 1.7; }
.help-article-body code { font-size: 12px; }

@media (max-width: 760px) {
  .app-dialog input,
  .app-dialog select,
  .app-dialog textarea,
  .dia-composer textarea,
  .help-search input { font-size: 16px; }
}
