/* A calm navy palette shared by all roles, public pages and account dialogs. */
.nt-theme-button{display:inline-grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;border:1px solid #dce7f7;border-radius:13px;background:#f1f6ff;color:#174c93;padding:0;cursor:pointer;transition:background .16s,color .16s,transform .16s}
.nt-theme-button svg{width:22px;height:22px;pointer-events:none}.nt-theme-button:hover{background:#e5efff;transform:translateY(-1px)}.nt-theme-button:focus-visible{outline:3px solid #6bb3ff;outline-offset:3px}.nt-theme-button:active{transform:scale(.95)}
body.dark,body.dark.p1-shell{color-scheme:dark;--bg:#0c1423;--card:#132033;--panel:#132033;--text:#e9f1ff;--muted:#b2c1d8;--navy:#e9f1ff;--line:#2b3e5a;--p1-bg:#0c1423;--p1-surface:#132033;--p1-card:#132033;--p1-ink:#e9f1ff;--p1-text:#e9f1ff;--p1-muted:#b2c1d8;--p1-line:#2b3e5a;--p1-blue:#8bbcff;--p1-blue-light:#1b3354;--p1-teal:#69d8ca;--p1-teal-light:#153c3c;--p1-orange:#f4c670;--p1-orange-light:#3b3020;background:var(--bg)!important;color:var(--text)}
body.dark :is(.app-main,.page-content,.landing-view){background:var(--bg)!important;color:var(--text)}
body.dark :is(.app-header,.marketing-header,.sidebar,.side-brand,#p1MobileNav){background:var(--card)!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.panel,.settings-card,.stat-card,.quick-card,.course-tile,.landing-cards article,.tn-card,.tn-rent-summary,.tn-tool-card,.tn-teacher-option,.px-support-card,.id-avatar-card,.id-parent-child,.bf-footer,.sec-panel,.sec-card,.ac-settings-card,.ac-push-card,.cc-builder,.cc-builder-head,.cc-pane,.cc-manage-card,.cc-access-card,.cc-instapay-admin,.cc-student-course,.vx-session,.vx-empty){background:var(--card)!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.dialog-card,.auth-dialog,.sec-dialog-card,.id-proof-dialog,.px-welcome-dialog,.ac-report-dialog){background:var(--card)!important;border:1px solid var(--line);color:var(--text)}
body.dark dialog::backdrop{background:#030913b8;backdrop-filter:blur(5px)}
body.dark :is(input,select,textarea){background:#0e1a2b!important;border-color:#354d6c!important;color:#e9f1ff!important;color-scheme:dark}
body.dark input::placeholder,body.dark textarea::placeholder{color:#9fb0c9;opacity:1}body.dark :is(input,select,textarea):focus{border-color:#7fb4ff!important}body.dark input[type=checkbox],body.dark input[type=radio]{accent-color:#6faaff}body.dark input[type=color]{padding:3px}
body.dark :is(.profile-block b,.page-title h1,.settings-card-title h3,.auth-brand h2,.tn-section-heading h2,.tn-card h2,.tn-card h3,.tn-billing-numbers strong,.tn-tool-copy b,.px-support-card h2,.id-avatar-content h3,.id-profile-summary b,.sec-head h2,.sec-card-title b,.sec-session b,.sec-device-card h2,.sec-device-choice b,.ac-featured h3,.cc-manage-card h3,.cc-student-course h3,.cc-form label,.cc-builder-head h2,.cc-pay-number b){color:var(--text)!important}
body.dark :is(.field>span,.auth-form label,.settings-card-title p,.profile-block small,.tn-tool-copy small,.tn-hint,.px-support-card p,.id-avatar-content p,.id-avatar-status,.id-profile-summary small,.id-proof-dialog>p,.sec-head p,.sec-card-title small,.sec-session small,.sec-note,.sec-device-choice small,.ac-report-note,.cc-form small,.cc-description,.cc-meta){color:var(--muted)!important}
body.dark :is(.search-box,.id-profile-note,.tn-teacher-picker,.tn-billing-numbers>div,.tn-follow-banner,.st-follow,.cc-footer,.cc-tabs,.cc-lock,.cc-pay-number,.cc-no-media,.cc-youtube-cover,.ac-follow-numbers,.hw-preview-item,.hw-preview-item img,.media-preview,.banner-manager,.banner-controls,.auth-form .role-fields,.auth-form .grade-checks label,.sec-setup,.sec-secret,.sec-device-choice){background:#1a2b43!important;border-color:var(--line)!important;color:var(--text)}
body.dark :is(.p1-soft-btn,.secondary-btn,.nt-theme-button,.ac-header-logout,.dialog-close,.px-welcome-close,.id-avatar-pick,.logout-btn,.p1-log-controls button,.lh-filters button,.cc-tab,.cc-upload-video,.cc-proof-upload){background:#1b3354!important;border-color:#355174!important;color:#c6ddff!important}
body.dark :is(.p1-btn,.primary-btn,.bf-support){background:linear-gradient(110deg,#176ad4,#165cbd)!important;color:#fff!important;box-shadow:0 5px 15px #0002}
body.dark :is(.p1-text-btn,.lh-progress b,.ac-report-head button){color:#8bbcff}
body.dark :is(.p1-square,.st-tool-icon,.tn-tool-icon,.lh-shortcut-icon,.p1-illustration){background:#1b3354!important;color:#9ac5ff!important}
body.dark :is(.st-tool.video .st-tool-icon,.st-tool.attendance .st-tool-icon,.tn-tool-card.video .tn-tool-icon,.p1-square.teal,.lh-meeting-icon,.px-support-icon){background:#153c3c!important;color:#83e0d2!important}
body.dark :is(.st-tool.review .st-tool-icon,.st-tool.trophy .st-tool-icon,.tn-tool-card.review .tn-tool-icon,.p1-square.orange){background:#3b3020!important;color:#f4c670!important}
body.dark :is(.st-tool.tasks .st-tool-icon,.tn-tool-card.tasks .tn-tool-icon){background:#302543!important;color:#cdb2ff!important}
body.dark :is(.st-follow h2,.tn-follow-banner h2){color:var(--text)}body.dark :is(.st-follow p,.tn-follow-banner p){color:var(--muted)}
body.dark :is(.p1-progress-hero,.p1-reward-card,.p1-award){background:linear-gradient(120deg,#253145,#332c22);border-color:#4d4331}body.dark :is(.p1-progress-hero h2,.p1-progress-hero strong,.p1-progress-hero b,.p1-reward-card h2,.p1-award h3){color:#f4d292}body.dark :is(.p1-progress-hero p,.p1-reward-card p,.p1-award p){color:#d7c5a8}
body.dark :is(.lh-hero,.lh-catalog-intro,.lh-shortcuts button,.p1-tip,.p1-notification.unread,.cc-access-card.active,.cc-upload-video:hover){background:var(--p1-blue-light);border-color:var(--line)}
body.dark :is(.lh-hero.review,.lh-shortcuts .review){background:var(--p1-orange-light)}body.dark :is(.lh-hero.video,.lh-shortcuts .video){background:var(--p1-teal-light)}body.dark .lh-shortcuts .tasks{background:#302543}body.dark :is(.lh-filters button.active,.cc-tab.active,.p1-log-controls button[aria-pressed=true]){background:#28558d!important;color:#fff!important}
body.dark :is(.st-hero,.tn-dashboard .tn-hero,.ac-welcome-art,.ac-welcome-art.custom){background:#132033;border-color:var(--line)}
body.dark .st-hero:after,body.dark .tn-dashboard .tn-hero:after{background:linear-gradient(270deg,#132033fc 0%,#132033ed 37%,#132033a8 59%,#13203318 90%)}
body.dark .ac-welcome-art:after,body.dark .ac-welcome-art.custom:after{background:linear-gradient(90deg,#13203318 10%,#132033b8 40%,#132033f5 62%,#132033ff 100%)}
body.dark :is(.st-hero,.tn-hero,.ac-welcome-art)>picture img,body.dark .ac-welcome-art>img{filter:brightness(.78) saturate(.85)}
body.dark :is(.st-hero,.tn-hero) :is(h1,h2){color:#f1f6ff!important;text-shadow:none}body.dark .st-hero h2 em,body.dark .tn-hero h2 :is(span,strong,em){color:#85b8ff!important}body.dark :is(.st-hero p,.st-hero-role,.tn-hero p,.tn-hero-subject){color:#bfcee3!important;text-shadow:none}body.dark .tn-hero-copy{text-shadow:none!important}
body.dark :is(.st-hero-kicker,.tn-hero-kicker,.tn-hero .p1-eyebrow,.ac-welcome-kicker,.ac-hero-promise){background:#3b3020!important;color:#ffdc94!important;border-color:#756139!important}
body.dark .ac-welcome-art .ac-hero-slogan{color:#e9f1ff!important}body.dark .ac-welcome-art .ac-hero-name{color:#ff8c9b}body.dark .ac-welcome-art :is(.ac-banner-intro,.ac-welcome-hint){color:#bfcee3!important}
body.dark .data-table :is(th,td){border-color:var(--line);color:var(--text)}body.dark .data-table th{background:#1a2b43}body.dark .data-table tr:hover{background:#1a2b43}body.dark :is(.error-box,.tn-form-error,.id-proof-error,.ac-error){background:#3c2531;color:#ffb6c0;border-color:#66384a}body.dark :is(.success-box,.tn-form-status){color:#91e0ba}body.dark :is(.sec-grade.warn,.cc-badge.paid){background:#3b3020;color:#f4d292}body.dark .sec-grade.good{background:#153c3c;color:#91e0ba}
body.dark .bf-footer{box-shadow:0 8px 25px #0002}body.dark :is(.bf-bottom,.id-profile-summary){border-color:var(--line)}body.dark #avatarMini.id-photo-avatar{border-color:#2b3e5a!important;box-shadow:0 0 0 1px #47617f}body.dark .nt-theme-button{color:#f8cf77!important}body.dark .nt-theme-button:hover{background:#29436a!important}
body.dark .search-box input{background:transparent!important;box-shadow:none}
body.dark .landing-cards article>span{background:#1b3354!important;color:#9ac5ff!important}body.dark .landing-cards article:nth-child(2)>span{background:#153c3c!important;color:#83e0d2!important}body.dark .landing-cards article:nth-child(3)>span{background:#302543!important;color:#cdb2ff!important}body.dark .landing-cards article:nth-child(4)>span{background:#3b3020!important;color:#f4c670!important}
@media(max-width:700px){.p1-shell .app-header-actions{gap:5px}.p1-shell .nt-theme-button{width:37px;height:37px;min-height:37px;flex-basis:37px;border-radius:11px}.p1-shell .nt-theme-button svg{width:21px;height:21px}}
@media(max-width:420px){body .marketing-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:13px 16px}.marketing-header>.ac-public-brand{grid-column:1;grid-row:1}.marketing-header>.marketing-actions{display:contents}.marketing-actions .nt-theme-button{grid-column:2;grid-row:1;justify-self:end}.marketing-actions #loginBtn{grid-column:2;grid-row:2;min-height:40px}.marketing-actions #registerBtn{grid-column:1;grid-row:2;justify-self:start;min-height:40px}}
@media(max-width:700px){body.dark .st-hero:after,body.dark .tn-dashboard .tn-hero:after{background:linear-gradient(270deg,#132033f5 0%,#132033e8 44%,#132033a8 75%,#13203366 100%)}body.dark .ac-welcome-art:after,body.dark .ac-welcome-art.custom:after{background:linear-gradient(270deg,#132033ed 0%,#132033d9 48%,#132033b0 75%,#13203380 100%)}}
@media(prefers-reduced-motion:reduce){.nt-theme-button{transition:none}.nt-theme-button:hover,.nt-theme-button:active{transform:none}}
