/* Auto-split from style.css */

html[data-theme="dark"] .course-unit-trail {
    --trail-border: #625543;
    --trail-step: #383127;
    --trail-surface: #2d2925;
    --trail-current: #ffb778;
}

html[data-theme="dark"] .courses-grade-icon { border-color: #3a527b; color: #c9d7ff; background: #203352; }

html[data-theme="dark"] .learning-status-error { color: #ffadbd; }

html[data-theme="dark"] .account-menu-panel {
    border-color: var(--line);
    background: #1b2940;
}

html[data-theme="dark"] .account-menu-panel a,
html[data-theme="dark"] .account-menu-panel button {
    color: var(--ink);
}

html[data-theme="dark"] .account-menu-panel a:hover,
html[data-theme="dark"] .account-menu-panel button:hover {
    background: #263651;
}

html[data-theme="dark"] body { background: #101a2b; }

html[data-theme="dark"] .site-header { background: rgba(18, 27, 43, .9); }

html[data-theme="dark"] .welcome-banner { border-color: #385072; background: linear-gradient(125deg, #1b2b48, #20365b); }

html[data-theme="dark"] .welcome-banner h1 { color: #edf3ff; }

html[data-theme="dark"] .welcome-description { color: #c2cee2; }

html[data-theme="dark"] .welcome-stats { border-color: #385072; background: rgba(22, 36, 60, .7); }

html[data-theme="dark"] .page-heading { border-color: #344867; background: linear-gradient(120deg, #1b2b45, #17243a); }

html[data-theme="dark"] .breadcrumbs { background: #1d304f; }

html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .lesson-card,
html[data-theme="dark"] .recommend-card,
html[data-theme="dark"] .grade-course-card,
html[data-theme="dark"] .unit-card,
html[data-theme="dark"] .page-panel,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .quiz-widget,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .teacher-card,
html[data-theme="dark"] .practice-dashboard {
    border-color: #385072;
    background: #1b2d4a;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7edf8;
    --muted: #a6b2c7;
    --line: #334159;
    --surface: #1a2639;
    --background: #131e30;
    --primary: #89a9ff;
    --primary-dark: #7194f2;
    --shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
    color: var(--ink);
    background: #121b2b;
}

html[data-theme="dark"] .site-header {
    border-color: var(--line);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .primary-nav .nav-link {
    color: #bdc8da;
}

html[data-theme="dark"] .primary-nav .nav-link.active,
html[data-theme="dark"] .primary-nav .nav-link:hover,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .footer-support-link {
    color: #9bb6ff !important;
}

html[data-theme="dark"] .site-search input,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .utility-button,
html[data-theme="dark"] .profile-chip,
html[data-theme="dark"] .setting-control {
    border-color: var(--line);
    color: var(--ink);
    background: #1b2940;
}

html[data-theme="dark"] .profile-chip:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .utility-button:hover {
    background: #263651;
}

html[data-theme="dark"] .site-search input {
    color: var(--ink);
}

html[data-theme="dark"] .welcome-banner,
html[data-theme="dark"] .practice-dashboard,
html[data-theme="dark"] .community-card,
html[data-theme="dark"] .community-page-hero,
html[data-theme="dark"] .teacher-page-hero {
    border-color: #344669;
    background: linear-gradient(125deg, #1c2b45, #202c42);
}

html[data-theme="dark"] .welcome-banner h1,
html[data-theme="dark"] .welcome-greeting,
html[data-theme="dark"] .welcome-description,
html[data-theme="dark"] .welcome-stat strong,
html[data-theme="dark"] .welcome-stat > span:last-child > small {
    color: #e7edf8;
}

html[data-theme="dark"] .welcome-stat-icon,
html[data-theme="dark"] .art-note,
html[data-theme="dark"] .art-book {
    border-color: #354460;
}

html[data-theme="dark"] .art-note,
html[data-theme="dark"] .art-book {
    box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .art-book {
    border-color: #26344e;
}

html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .lesson-card,
html[data-theme="dark"] .recommend-card,
html[data-theme="dark"] .grade-course-card,
html[data-theme="dark"] .unit-card,
html[data-theme="dark"] .page-panel,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .teacher-card,
html[data-theme="dark"] .quiz-widget,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .faq-item {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: 0 9px 26px rgba(0, 0, 0, .14);
}

html[data-theme="dark"] .grade-course-card,
html[data-theme="dark"] .grade-11,
html[data-theme="dark"] .grade-12 {
    background: linear-gradient(145deg, #202e46, #1a2639);
}

html[data-theme="dark"] .recommend-blue { background: linear-gradient(140deg, #293b60, #263650); }

html[data-theme="dark"] .recommend-purple { background: linear-gradient(140deg, #3a2e55, #2d2944); }

html[data-theme="dark"] .recommend-green { background: linear-gradient(140deg, #213e3a, #22352f); }

html[data-theme="dark"] .lesson-art-vocab { background: linear-gradient(140deg, #293b60, #263650); }

html[data-theme="dark"] .lesson-art-grammar { background: linear-gradient(140deg, #3a2e55, #2d2944); }

html[data-theme="dark"] .lesson-art-reading { background: linear-gradient(140deg, #213e3a, #22352f); }

html[data-theme="dark"] .lesson-card h3,
html[data-theme="dark"] .recommend-card h3,
html[data-theme="dark"] .grade-course-card h3,
html[data-theme="dark"] .unit-card h3,
html[data-theme="dark"] .skill-card strong,
html[data-theme="dark"] .panel-heading h2,
html[data-theme="dark"] .panel-heading h3,
html[data-theme="dark"] .page-heading h1,
html[data-theme="dark"] .section-heading-row h2,
html[data-theme="dark"] .page-panel h2,
html[data-theme="dark"] .page-panel h3,
html[data-theme="dark"] .quiz-question,
html[data-theme="dark"] .notice-title-row strong,
html[data-theme="dark"] .goal-copy strong,
html[data-theme="dark"] .footer-column h2,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .community-card h2,
html[data-theme="dark"] .teacher-card h3,
html[data-theme="dark"] .exam-question legend,
html[data-theme="dark"] .summary-card strong,
html[data-theme="dark"] .profile-facts strong,
html[data-theme="dark"] .setting-row strong,
html[data-theme="dark"] .faq-item summary {
    color: var(--ink);
}

html[data-theme="dark"] .reading-passage,
html[data-theme="dark"] .notice-detail,
html[data-theme="dark"] .notification-detail,
html[data-theme="dark"] .inline-notice,
html[data-theme="dark"] .exam-meta > span,
html[data-theme="dark"] .grammar-formula {
    color: #c4d0e2;
    background: #202e44;
}

html[data-theme="dark"] .grammar-formula {
    border-color: #4a6192;
}

html[data-theme="dark"] .grade-tab,
html[data-theme="dark"] .grade-tab.active,
html[data-theme="dark"] .unit-chips span,
html[data-theme="dark"] .quiz-option,
html[data-theme="dark"] .goal-check,
html[data-theme="dark"] .practice-skill-card textarea,
html[data-theme="dark"] .support-form input,
html[data-theme="dark"] .support-form textarea,
html[data-theme="dark"] .goal-dialog input {
    border-color: var(--line);
    color: var(--ink);
    background: #1d2a3f;
}

html[data-theme="dark"] .grade-tab.active {
    border-color: #7192e8;
    color: #d4deff;
    background: #30476e;
}

html[data-theme="dark"] .grade-tab[aria-selected="true"] {
    border-color: #8aa7f2;
    color: #eef2ff;
    background: #3c5684;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .notification-menu-item:not(.is-read),
html[data-theme="dark"] .notice-item:not(.is-read) {
    background: #202f49;
}

html[data-theme="dark"] .notification-menu-item:hover,
html[data-theme="dark"] .notification-menu-item:focus-visible,
html[data-theme="dark"] .notice-item:hover,
html[data-theme="dark"] .notice-item:focus-visible {
    background: #293d5c;
}

html[data-theme="dark"] .notification-item-icon {
    color: #b6c8ff;
    background: #2a3c5a;
}

html[data-theme="dark"] .notification-unread-label,
html[data-theme="dark"] .notification-time,
html[data-theme="dark"] .notification-preview {
    color: #aebbd0;
}

html[data-theme="dark"] .quiz-option > span {
    color: #c6d1e4;
    background: #2b3a52;
}

html[data-theme="dark"] .quiz-option.correct {
    border-color: #4b9d7c;
    color: #9ce0be;
    background: #1d3a35;
}

html[data-theme="dark"] .quiz-option.wrong {
    border-color: #aa6868;
    color: #ffc0ba;
    background: #402d36;
}

html[data-theme="dark"] .sample-tag,
html[data-theme="dark"] .tag-blue,
html[data-theme="dark"] .skill-blue,
html[data-theme="dark"] .summary-icon.skill-blue {
    border-color: #3b4f77;
    color: #a9beff;
    background: #263654;
}

html[data-theme="dark"] .tag-purple,
html[data-theme="dark"] .skill-purple {
    color: #d0b7ff;
    background: #352a4c;
}

html[data-theme="dark"] .tag-green,
html[data-theme="dark"] .skill-green {
    color: #9ce0bd;
    background: #1e3c35;
}

html[data-theme="dark"] .skill-orange { color: #f1c47e; background: #433525; }

html[data-theme="dark"] .skill-pink { color: #f2afc3; background: #442c3b; }

html[data-theme="dark"] .skill-yellow { color: #f0d77f; background: #403a27; }

html[data-theme="dark"] .skill-indigo { color: #c1bbff; background: #302f4f; }

html[data-theme="dark"] .weekly-chart {
    border-color: var(--line);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(180, 195, 219, .1) 45px, transparent 46px);
}

html[data-theme="dark"] .chart-column > span {
    background: linear-gradient(180deg, #a1b8ff, #5c7de5);
}

html[data-theme="dark"] .achievement-icon,
html[data-theme="dark"] .achievement-star {
    color: #f0cb7e;
    background: #413a2a;
}

html[data-theme="dark"] .goal-dialog {
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface);
}

html[data-theme="dark"] .goal-dialog h2,
html[data-theme="dark"] .goal-dialog label {
    color: var(--ink);
}

html[data-theme="dark"] .goal-dialog p {
    color: var(--muted);
}

html[data-theme="dark"] .btn-outline {
    border-color: #3a4962;
    color: #d7e1f1;
    background: #1b2940;
}

html[data-theme="dark"] .btn-outline:hover {
    border-color: #6078ac;
    background: #24334b;
}

html[data-theme="dark"] .profile-large-avatar,
html[data-theme="dark"] .profile-avatar {
    color: #c3d2ff;
    background: #34466a;
}

html[data-theme="dark"] .section-label,
html[data-theme="dark"] .welcome-banner .eyebrow {
    color: #a8beff;
}

html[data-theme="dark"] .community-symbol,
html[data-theme="dark"] .teacher-icon {
    color: #adc1ff;
    background: #263550;
}

html[data-theme="dark"] .practice-skill-card blockquote {
    border-color: #738fe5;
    color: #c7d3e8;
    background: #202e44;
}

html[data-theme="dark"] .support-form input::placeholder,
html[data-theme="dark"] .support-form textarea::placeholder,
html[data-theme="dark"] .practice-skill-card textarea::placeholder {
    color: #8796ad;
}

html[data-theme="dark"] .goal-item[aria-pressed="true"] .goal-copy strong {
    color: #94a1b8;
}

html[data-theme="dark"] .footer-grid,
html[data-theme="dark"] .footer-bottom {
    border-color: var(--line);
}

html[data-theme="dark"] body { background: #101a2b; }

html[data-theme="dark"] .site-header { background: rgba(18, 27, 43, .9); }

html[data-theme="dark"] .welcome-banner { border-color: #385072; background: linear-gradient(125deg, #1b2b48, #20365b); }

html[data-theme="dark"] .welcome-banner h1 { color: #edf3ff; }

html[data-theme="dark"] .welcome-description { color: #c2cee2; }

html[data-theme="dark"] .welcome-stats { border-color: #385072; background: rgba(22, 36, 60, .7); }

html[data-theme="dark"] .page-heading { border-color: #344867; background: linear-gradient(120deg, #1b2b45, #17243a); }

html[data-theme="dark"] .breadcrumbs { background: #1d304f; }

html[data-theme="dark"] .site-footer {
    --ink: #e7edf8;
    --muted: #a6b2c7;
    --primary: #9bb6ff;
    --line: #2a3d59;
    border-top-color: var(--line);
    background: #0c1525;
}

html[data-theme="dark"] .account-notice--success {
    border-color: #365f4c;
    color: #a1ddbc;
    background: #173629;
}

html[data-theme="dark"] .account-notice--error {
    border-color: #724049;
    color: #f5bbc3;
    background: #3d222b;
}

/* Keep the stronger outlines visible in the dark theme. */
html[data-theme="dark"] .courses-overview .courses-grade-card,
html[data-theme="dark"] .courses-overview .courses-skill-card {
    border-color: #4b6488;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .15);
}

html[data-theme="dark"] .courses-overview .courses-grade-card:hover,
html[data-theme="dark"] .courses-overview .courses-grade-card:focus-visible,
html[data-theme="dark"] .courses-overview .courses-skill-card:hover,
html[data-theme="dark"] .courses-overview .courses-skill-card:focus-visible {
    border-color: #83a4ee;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .courses-overview .courses-grade-icon,
html[data-theme="dark"] .courses-overview .courses-skill-card .skill-icon {
    border-color: #526e98;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(1) {
    border-color: #718642;
    background: #354729;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(2) {
    border-color: #a9575b;
    background: #67363d;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(3) {
    border-color: #4e80af;
    background: #254a71;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card,
html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card h3,
html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card > p,
html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card .card-action {
    color: #f3f6fc;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(1) .courses-grade-icon {
    border-color: #75884d;
    color: #e0edbd;
    background: #4b6138;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(2) .courses-grade-icon {
    border-color: #a35b63;
    color: #ffe0df;
    background: #83454b;
}

html[data-theme="dark"] .courses-overview .courses-grade-grid > .courses-grade-card:nth-child(3) .courses-grade-icon {
    border-color: #5c88b3;
    color: #d6eaff;
    background: #365e88;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(1) {
    border-color: #4d86b5;
    background: #204c75;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(2) {
    border-color: #a05278;
    background: #692f4b;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(3) {
    border-color: #528b6b;
    background: #1e523d;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(4) {
    border-color: #9d813c;
    background: #60471d;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card strong { color: #ffffff; }

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card > span:not(.skill-icon):not(.courses-card-arrow) { color: #f0eefa; }

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-card-arrow { color: #ffffff; }

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(1) {
    border-color: #8163ab;
    background: #513c73;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(2) {
    border-color: #528b83;
    background: #22534d;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(3) {
    border-color: #a05278;
    background: #692f4b;
}

html[data-theme="dark"] .courses-overview .courses-group-review .courses-skill-card {
    border-color: #a47c4e;
    background: #65472a;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card strong,
html[data-theme="dark"] .courses-overview .courses-group-review .courses-skill-card strong {
    color: #ffffff;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card > span:not(.skill-icon):not(.courses-card-arrow),
html[data-theme="dark"] .courses-overview .courses-group-review .courses-skill-card > span:not(.skill-icon):not(.courses-card-arrow) {
    color: #f0eefa;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(1) .skill-icon {
    border-color: #527d9d;
    color: #a6dcff;
    background: #34556b;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(2) .skill-icon {
    border-color: #87576c;
    color: #ffc0d1;
    background: #5a394a;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(3) .skill-icon {
    border-color: #50795e;
    color: #a9e6be;
    background: #365342;
}

html[data-theme="dark"] .courses-overview .courses-group-skills .courses-skill-card:nth-child(4) .skill-icon {
    border-color: #897447;
    color: #f4d98b;
    background: #55492c;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(1) .skill-icon {
    border-color: #705b96;
    color: #d4baff;
    background: #4a3a65;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(2) .skill-icon {
    border-color: #4f8982;
    color: #a3e3d9;
    background: #315651;
}

html[data-theme="dark"] .courses-overview .courses-group-knowledge .courses-skill-card:nth-child(3) .skill-icon {
    border-color: #87576c;
    color: #ffc0d1;
    background: #5a394a;
}

html[data-theme="dark"] .courses-overview .courses-group-review .courses-skill-card .skill-icon {
    border-color: #916647;
    color: #ffd0a5;
    background: #60452f;
}
