/* Shared platform colors and typography. Feature styles control layout and feedback states. */
.platform-theme {
  --platform-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --platform-font-display: var(--platform-font-body);
  --body-font: var(--platform-font-body);
  --theme-background: #e3f1ed;
  --theme-soft: #f3faf7;
  --theme-panel: #fff;
  --theme-ink: #143631;
  --theme-muted: #47645e;
  --theme-line: #b6d5cd;
  --theme-accent: #126153;
  --theme-card-radius: 13px;
  --theme-button-radius: 9px;
  font-family: var(--platform-font-body);
}
.platform-theme :is(h1, h2, h3, .brand) { font-family: var(--platform-font-display); }
.platform-theme :is(button, input, select, textarea) { font-family: inherit; }

.platform-theme:not(.dark):not(.dark-mode) {
  --bg: var(--theme-background);
  --bg-main: var(--theme-background);
  --paper: var(--theme-background);
  --bg-panel: var(--theme-panel);
  --panel: var(--theme-panel);
  --surface: var(--theme-panel);
  --ink: var(--theme-ink);
  --text: var(--theme-ink);
  --text-dark: var(--theme-ink);
  --muted: var(--theme-muted);
  --line: var(--theme-line);
  --border-color: var(--theme-line);
  --border-focus: var(--theme-accent);
  --primary-color: var(--theme-accent);
  --primary-hover: #0c4b40;
  --primary-light: var(--theme-soft);
  --accent: var(--theme-accent);
  --accent-2: var(--theme-accent);
  --blue: var(--theme-accent);
  --green: var(--theme-accent);
  --accent-blue: var(--theme-accent);
  --accent-teal: var(--theme-accent);
  --ielts-paper: var(--theme-background);
  --ielts-panel: var(--theme-panel);
  --ielts-panel-soft: var(--theme-soft);
  --ielts-line: var(--theme-line);
  --ielts-ink: var(--theme-ink);
  --ielts-muted: var(--theme-muted);
  --ielts-blue: var(--theme-accent);
  --quiz-paper: var(--theme-background);
  --quiz-panel: var(--theme-panel);
  --quiz-card-bg: var(--theme-panel);
  --quiz-border: var(--theme-line);
  --quiz-line: var(--theme-line);
  --quiz-ink: var(--theme-ink);
  --quiz-muted: var(--theme-muted);
  --quiz-blue: var(--theme-accent);
  --study-paper: var(--theme-background);
  --study-panel: var(--theme-panel);
  --study-line: var(--theme-line);
  --study-ink: var(--theme-ink);
  --study-blue: var(--theme-accent);
  --lesson-bg: var(--theme-background);
  --lesson-tint: var(--theme-soft);
  --lesson-border: var(--theme-line);
  --lesson-accent: var(--theme-accent);
  --lesson-text: var(--theme-ink);
  --lesson-muted: var(--theme-muted);
  background: var(--theme-background);
}

.platform-theme:not(.dark):not(.dark-mode) :is(.panel, .auth-card, .payment-panel, .account-panel, .setup-container, .step-card, .detail-card, .test-card, .action-button, .track-card, .srs-picker-card, .quiz-review-header, #subject-hub .card, #book-shelf .card, #level-grid .card) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
  border-radius: var(--theme-card-radius);
  box-shadow: none;
}
.platform-theme:not(.dark):not(.dark-mode) :is(.mode-select-btn, .back-button, .top-action-btn, .guide-button:not(.guide-primary), .button.secondary, .auth-btn.ghost, .ielts-home-aside > .review-button) {
  background: var(--theme-panel);
  color: var(--theme-ink);
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-button-radius);
}
.platform-theme:not(.dark):not(.dark-mode) :is(.mode-select-btn, .back-button, .top-action-btn, .guide-button:not(.guide-primary), .button.secondary, .auth-btn.ghost, .ielts-home-aside > .review-button):hover:not(:disabled) {
  background: var(--theme-soft);
  border-color: var(--theme-accent);
}
.platform-theme:not(.dark):not(.dark-mode) :is(.main-header, .topbar, #topControlBar, #top-bar-container) {
  background: var(--theme-soft);
  color: var(--theme-ink);
  border-color: var(--theme-line);
}
.platform-theme:not(.dark):not(.dark-mode) :is(.main-header, .topbar) :is(h1, .subtitle) { color: var(--theme-ink); }
.platform-theme:not(.dark):not(.dark-mode) :is(.auth-btn.primary, .btn.primary, .lesson-primary, .guide-primary, .ielts-mock-action, .submit-btn, .button:not(.secondary), .action-button .button-icon) {
  background: var(--theme-accent);
  color: #fff;
  border-radius: var(--theme-button-radius);
}
.platform-theme :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #298575; outline-offset: 2px; }
.platform-subscription:not(.dark):not(.dark-mode) > .hero { background: var(--theme-accent); }
.platform-mock:not(.dark):not(.dark-mode) {
  --app--background: #fff;
  --main-button-bg-color: var(--theme-accent);
  --main-button-bg-hover: #0c4b40;
  --footer--selected-border: var(--theme-accent);
  --footer--progress-bar-fill-color: var(--theme-accent);
  --question--input-border-focus: var(--theme-accent);
}
