/* DS CLASSES purple branding layer. Loaded last so all existing screens share one palette. */
:root {
  color-scheme: light;
  --bg: #FAF8FF;
  --panel: #FFFFFF;
  --panel2: #F1E8FF;
  --line: #E4D4FA;
  --text: #21152F;
  --muted: #70647E;
  --lime: #8E3DCE;
  --brand-lime: #D9ED16;
  --blue: #7627C8;
  --blue-2: #6D25B4;
  --blue-soft: #F1E8FF;
  --navy: #421078;
  --lux-navy: #32105D;
  --lux-royal: #7627C8;
  --lux-blue: #9250DE;
  --lux-cyan: #B34DFF;
  --lux-ivory: #FAF8FF;
  --lux-surface: #FFFFFF;
  --lux-line: #E4D4FA;
  --lux-ink: #21152F;
  --lux-muted: #70647E;
  --lux-shadow: 0 9px 26px rgba(66, 16, 120, .09);
  --lux-shadow-strong: 0 14px 34px rgba(66, 16, 120, .14);
  --popup-bg: #FFFFFF;
  --popup-text: #21152F;
  --popup-muted: #70647E;
  --popup-border: #DCC8F3;
  --popup-selected: #F1E8FF;
  --popup-accent: #7627C8;
  --surface-shadow: 0 12px 34px rgba(66, 16, 120, .08);
  --legal-bg: #FAF8FF;
  --legal-blue: #7627C8;
  --legal-blue-dark: #6D25B4;
  --legal-ink: #21152F;
  --legal-line: #E4D4FA;
  --legal-navy: #421078;
}

html, body { background: radial-gradient(ellipse at 4% 5%, #F3E9FF 0, transparent 32%), linear-gradient(180deg, #FAF8FF 0%, #FFFFFF 54%, #F6F0FD 100%); color: #21152F; }
.sidebar { border-color: #E4D4FA; box-shadow: 8px 0 30px rgba(66,16,120,.06); }
.brand-mark,.auth-mobile-brand .brand-mark,.session-splash-mark { background: linear-gradient(145deg,#9A55E4,#6420B1)!important; box-shadow: 0 7px 18px rgba(118,39,200,.2); }
.brand-mark,.auth-mobile-brand .brand-mark { overflow:hidden; padding:0!important; border-radius:50%; background:transparent!important; box-shadow:none!important; }
.brand-mark img { display:block; width:100%; height:100%; border-radius:50%; object-fit:contain; }
.legal-mark { width:40px; height:40px; display:block; overflow:hidden; border-radius:50%; background:transparent; }
.legal-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-mark span,.session-splash-mark span { color: var(--brand-lime)!important; }
.brand-copy small,.auth-brand .brand-copy small { color: #7627C8; }
.nav-item.active,.nav-item:hover { background: #F1E8FF; color: #6420B1; }
.nav-item.active .nav-icon { color: #7627C8; }
.topbar,.feature-modal-head,.admin-dashboard-mode .feature-modal-head { background: linear-gradient(105deg,#8E4AD4 0%,#7627C8 53%,#542090 100%); border-color: rgba(255,255,255,.45); box-shadow: 0 7px 20px rgba(90,33,151,.16); }
.hero-card,.classroom-banner,.auth-visual,.legal-hero { background: radial-gradient(circle at 88% 18%,rgba(255,255,255,.2) 0 8%,transparent 8.5%),linear-gradient(118deg,#9B62E0 0%,#7627C8 55%,#421078 100%)!important; border-color: rgba(179,77,255,.24); }
.hero-art { background: linear-gradient(135deg,#B34DFF,#7627C8 62%,#421078)!important; }
.hero-card h2 em,.auth-message h1 em { color: var(--brand-lime); }
.home-update-heading,.home-upcoming .home-update-heading { background: linear-gradient(100deg,#9250DE,#6420B1); }
.home-notice-card { border-left-color: #9250DE; background: linear-gradient(115deg,#fff,#F8F2FF); }
.notice-preview-item { border-left-color:#9250DE; background:#F5EFFF; }
.home-upcoming-card { background: linear-gradient(135deg,#FAF7FF,#F0E8FB); }
.home-course-cover,.course-cover,.course-thumbnail-preview,.course-card-blue .home-course-cover,.home-course-cover:has(.home-course-image) { background: radial-gradient(circle at 82% 23%,rgba(255,255,255,.24) 0 8%,transparent 8.5%),linear-gradient(120deg,#9B62E0 0%,#7627C8 58%,#421078 100%); }
.home-course-rail { scrollbar-color:#B994E3 transparent; }
.course-context-bar { border-bottom-color:#E4D4FA; }
.home-course-card.course-card-lime .home-course-cover { background: linear-gradient(120deg,#B69AE0,#9670CE 58%,#67469F); }
.home-course-class { background: rgba(50,16,93,.87); }
.home-course-button,.feature-submit,.primary-button,.auth-submit,.admin-photo-edit,.small-action.secondary,.course-context-bar button,.admin-inline-back,.download-button,.course-thumbnail-picker,.legal-back,.legal-contact { border-color: rgba(118,39,200,.24)!important; background: linear-gradient(100deg,#8B43D1,#6420B1 72%,#421078)!important; color: #fff!important; box-shadow: 0 7px 17px rgba(87,29,146,.17); }
.small-action { border-color: #E4D4FA!important; background: #F1E8FF!important; color: #57218C!important; }
.feature-form input:focus,.feature-form select:focus,.feature-form textarea:focus,.feature-input:focus,.comment-form input:focus,.feature-form input:focus-visible,.profile-form input:focus-visible { border-color: #9250DE!important; box-shadow: 0 0 0 3px rgba(146,80,222,.16)!important; }
.feature-form input,.feature-form select,.feature-form textarea,.feature-input,.comment-form input,.profile-form input,.profile-form select,.student-filter-panel input,.student-filter-panel select,.community-compose textarea,#authForm input,#adminAuthForm input,.admin-search { border-color: #E4D4FA!important; }
.course-thumbnail-editor { border-color:#E4D4FA; background:linear-gradient(130deg,#fff,#F7F1FD); }
.admin-page-header { border-color:#E4D4FA; background:linear-gradient(105deg,#F7F0FF,#fff); box-shadow:0 6px 17px rgba(66,16,120,.055); }
.admin-dashboard-mode .feature-content,.feature-content { background:linear-gradient(180deg,#F8F3FD,#FCFAFF); }
.admin-dashboard-intro { background:radial-gradient(circle at 96% 22%,rgba(146,80,222,.12) 0 7%,transparent 7.5%),linear-gradient(110deg,#F0E6FC,#FBF9FE 70%); }
.admin-dashboard-intro::after { border-color:rgba(118,39,200,.18); box-shadow:0 0 0 20px rgba(118,39,200,.055),0 0 0 42px rgba(118,39,200,.035); }
.admin-dashboard-card { box-shadow:0 8px 20px rgba(66,16,120,.08)!important; }
.admin-dashboard-card:nth-child(6n+1) { background:#F0E6FC!important; border-color:#D8C0F2!important; }
.admin-dashboard-card:nth-child(6n+3) { background:#F2EDFF!important; border-color:#D9CCFA!important; }
.admin-dashboard-icon { border-color:rgba(87,33,140,.16)!important; background:#DCC8F3!important; color:#57218C!important; }
.feature-tile,.feature-card,.notice-preview,.assessment-question,.video-library-card,.subject-card,.profile-preview,.admin-record-card,.admin-student-card,.student-filter-panel,.community-compose,.post-card,.admin-profile-card,.admin-profile-access { border-color:#E4D4FA!important; box-shadow:0 7px 19px rgba(66,16,120,.06)!important; }
.feature-tile:hover,.admin-dashboard-card:hover,.subject-card:hover { border-color:#B994E3!important; box-shadow:0 11px 24px rgba(87,29,146,.12)!important; }
.tile-icon { border-color:#E4D4FA; background:#F1E8FF!important; color:#7627C8!important; }
.feature-tile .tile-icon,.tile-community .tile-icon,.tile-tests .tile-icon,.tile-profile .tile-icon { border-color:#E4D4FA; background:#F1E8FF!important; color:#7627C8!important; }
.type-badge { background:#F1E8FF; color:#7627C8; }
.empty-state { border-color:#E4D4FA; background:linear-gradient(135deg,#fff,#F8F3FD); }
.mobile-bottom-nav { border-color:#E4D4FA; box-shadow:0 -6px 22px rgba(66,16,120,.09); }
.mobile-nav-item.active,.mobile-nav-item.active>span { color:#7627C8; }
.bottom-more-sheet,.account-menu { border-color:#E4D4FA; color:#21152F; }
.bottom-more-grid button { background:#F1E8FF; }
.auth-screen,.session-checking .session-splash { background:radial-gradient(ellipse at 10% 8%,#F3E9FF,#FAF8FF 58%,#F6F0FD); }
.auth-shell { border-color:#E4D4FA; }
.auth-welcome,.auth-tab.active,.password-input button,.forgot-password-button,.reset-cancel { color:#7627C8; }
.auth-tab.active { border-color:#7627C8; }
#authForm input:focus,.mobile-input:focus-within,.password-input:focus-within { border-color:#9250DE!important; box-shadow:0 0 0 3px rgba(146,80,222,.16)!important; }
.forgot-password-button,.reset-cancel { color:#6420B1; }
.password-reset-panel { border-color:#E4D4FA; }
.password-reset-panel input:focus { border-color:#9250DE; box-shadow:0 0 0 3px rgba(146,80,222,.16); }
.auth-storage-note { background:#F1E8FF; border-color:#E4D4FA; }
.student-profile-summary,.profile-edit-panel { border-color:#E4D4FA; background:linear-gradient(140deg,#fff,#F8F3FD); box-shadow:0 10px 26px rgba(66,16,120,.08); }
.student-profile-avatar { box-shadow:0 0 0 2px #C7A5EA,0 7px 18px rgba(87,29,146,.15); background:#F1E8FF; color:#57218C; }
.student-profile-field { border-color:#EEE5F7; }
.student-profile-name>strong { color:#57218C; }
.student-profile-edit-actions { background:linear-gradient(180deg,rgba(255,255,255,.88),#fff 35%); }

/* Shared choice surfaces and selection states. */
select option:checked,select option[selected],[role=option][aria-selected=true],[role=menuitem][aria-checked=true],[role=menuitem][aria-current=true],.dropdown-menu [aria-selected=true],.select-menu .selected,.selection-dialog .selected,.popup-choice.is-selected,.select-option.is-selected { color:#421078!important; background-color:#F1E8FF!important; }
input[type=radio],input[type=checkbox] { accent-color:#7627C8; }
input[type=radio]:focus-visible,input[type=checkbox]:focus-visible,select:focus-visible { outline-color:rgba(118,39,200,.35); }
.dropdown-menu button[aria-pressed=true],.dropdown-menu button[aria-selected=true],.select-menu button[aria-pressed=true],.select-menu button[aria-selected=true],.selection-dialog button[aria-pressed=true],.selection-dialog button[aria-selected=true] { color:#421078!important; background:#F1E8FF!important; border-color:#C7A5EA!important; }
.feature-modal-head>div>span { color:#F0E4FF!important; }
.legal-mark { border-radius:50%; background:transparent!important; }
.legal-brand small,.legal-links a,.footer-legal a,.legal-menu-link { color:#7627C8!important; }
.legal-card a { color:#6420B1; }
.legal-hero { background:linear-gradient(120deg,#9250DE,#7627C8 66%,#542090)!important; }
.legal-back,.legal-contact { background:linear-gradient(100deg,#8B43D1,#6420B1)!important; color:#fff!important; }
.legal-menu-link { border-color:#E4D4FA; background:#F1E8FF; }

/* Test, quiz and result accents (success/warning/error colors remain semantic). */
.result-tabs button.is-active { color:#6420B1; }
.result-stat-card>span { background:#F1E8FF; color:#7627C8; }
.result-stat-card:nth-child(3n+2)>span { background:#F5EDFF; color:#8A4FD0; }
.result-stat-card:nth-child(3n)>span { background:#F5EFFF; color:#6D25B4; }
.result-trend-chart polyline,.result-trend-chart circle { stroke:#7627C8; }
.result-comparison-card>b,.result-history-score b { color:#6420B1; }
.result-leaderboard-empty>span { background:#F1E8FF; color:#7627C8; }
.quiz-clock:not(.is-warning):not(.is-expired):not(.timer-off) { border-color:#DCC8F3; background:#F1E8FF; color:#6420B1; }
.quiz-progress-track i { background:linear-gradient(90deg,#7627C8,#B34DFF); }
.quiz-question-palette button.is-current { border-color:#7627C8; background:#7627C8; box-shadow:0 4px 10px #7627C833; }
.quiz-question-card,.quiz-exam-header { border-color:#E4D4FA; }
.quiz-question-card h3 { color:#32105D; }
.quiz-option.is-selected { border-color:#9250DE; background:#F5EFFF; color:#421078; box-shadow:0 0 0 2px #9250DE22; }
.quiz-option.is-selected .quiz-option-letter { background:#7627C8; }
.quiz-option>i { color:#7627C8; }
.quiz-submit { background:linear-gradient(135deg,#7627C8,#542090)!important; }
.quiz-timer-setting input { accent-color:#7627C8; }

/* Deep-purple Learning Studio accents, retaining its dark player surface. */
.feature-modal.learning-studio-mode { background:#11071F; }
.feature-modal.learning-studio-mode .feature-sheet { background:#160A2B; }
.learning-studio { background:radial-gradient(ellipse at 50% 0%,#3C1765 0%,#21103A 48%,#160A2B 100%); }
.learning-studio:before { background:radial-gradient(circle at 83% 38%,#B34DFF22,transparent 25%),linear-gradient(145deg,transparent 70%,#7627C822); }
.studio-topbar { background:linear-gradient(105deg,#1C0A34F2,#421078F2); border-bottom-color:#B34DFF38; }
.studio-topbar>span { color:#F1E8FF; }
.studio-topbar .studio-brand-mark { border-color:#B34DFF; color:#D5A9FF; }
.studio-topbar>span b { color:#D5A9FF; }
.learning-studio .ds-player-heading { border-color:#B34DFF2C; }
.learning-studio .ds-player-heading .eyebrow { color:#D5A9FF; }
.learning-studio .ds-player-heading h2 { text-shadow:0 2px 16px #B34DFF2A; }
.video-library-row { border-color:#E4D4FA; background:linear-gradient(100deg,#fff,#F8F3FD); }
.video-library-row:hover,.video-library-row:focus-visible { border-color:#B34DFF; box-shadow:0 8px 20px #7627C828; }
.video-row-play { border-color:#E4D4FA; background:#F1E8FF; color:#7627C8; }
.video-row-open,.studio-material-link>i { color:#9250DE; }
.lesson-material-upload { border-color:#DCC8F3; background:#F8F3FD; }
.material-remove-option input { accent-color:#7627C8; }
.studio-material-link { border-color:#DCC8F3; background:linear-gradient(100deg,#FBF9FE,#F1E8FF); }
.material-file-icon { background:#6420B1; }
.pptx-slide-stage { background:#F1EDF5; }
.video-library-topbar { border-bottom-color:#E4D4FA; }
.video-library-topbar b { color:#421078; }
.video-library-row { color:#32105D; }
.feature-modal.subject-library-mode,.feature-modal.admin-photo-editor-mode { background:rgba(66,16,120,.25); }
.subject-card { border-color:#E4D4FA; }
.subject-purple { background:radial-gradient(circle at 90% 12%,#F1E8FF,#FAF8FF 65%); }
.subject-cyan { background:radial-gradient(circle at 90% 12%,#EFE8FA,#F8F3FD 65%); }
.subject-green { background:radial-gradient(circle at 90% 12%,#F0F8F1,#E4F2E8 65%); }
.video-thumbnail { background:radial-gradient(circle,#F1E8FF,#F1E8FF 75%); }
.video-thumbnail i { background:rgba(241,232,255,.9); }
.video-library-card { border-color:#E4D4FA; }
.library-player-wrap { border-color:#E4D4FA; background:#160A2B; }
.library-video-player,.library-video-frame { background:#160A2B; }
.admin-course-card { border-color:#E4D4FA; background:#FAF8FF; }
.student-filter-panel { border-color:#E4D4FA; }
.admin-profile-logo { border-color:#C7A5EA; }
.admin-photo-edit { border-color:#fff; }
.admin-photo-preview { border-color:#C7A5EA; }
.admin-photo-preview-wrap .admin-photo-preview { background:#F1E8FF; }
.home-course-cover:has(.home-course-image) { background:#7627C8; }

/* Recorded video controls and Notes Reader use the same purple highlight system. */
.ds-player-heading { border-color:#E4D4FA; }
.ds-player-heading h2,.video-detail-card h3 { color:#32105D; }
.ds-video-player,.library-player-frame,.ds-video-player-unavailable { border-color:rgba(118,39,200,.3); }
.ds-video-player,.library-video-player,.library-player-frame iframe { background:#160A2B; }
.ds-video-spinner { border-top-color:#B34DFF; }
.ds-video-play,.ds-video-fullscreen { background:rgba(118,39,200,.9); }
.ds-video-timeline input,.ds-video-volume input,.ds-video-volume { accent-color:#B34DFF; }
.ds-video-fullscreen { background:rgba(66,16,120,.9); }
.ds-video-speed-label select { background:#32105D; }
.ds-video-unavailable-icon { background:#7627C8; }
.ds-video-player-unavailable small { color:#7627C8; }
.video-detail-meta span { border-color:#E4D4FA; background:#F8F3FD; color:#57218C; }
.notes-reader { background:#F6F0FD; }
.notes-reader>header { background:linear-gradient(105deg,#7627C8,#421078); }
.notes-reader iframe { background:#fff; }
.notes-reader .ds-video-spinner { border-top-color:#9250DE; }
.reader-tools button { border-color:#DCC8F3; }
.reader-loading,.reader-error { border-color:#E4D4FA; }
.reader-tools button,.reader-toolbar button,.reader-controls button,.reader-page-control button { accent-color:#7627C8; }
.reader-paper { box-shadow:0 8px 24px rgba(66,16,120,.12); }
.date-blue { border-color:#DCC8F3; background:#F1E8FF; }
.date-blue b,.blue-label,.home-course-tag,.verified,.calendar-link,.course-footer a span { color:#7627C8!important; }
.blue-fill { background:#9250DE!important; }
.join-arrow { border-color:#E4D4FA; background:#F1E8FF; color:#7627C8; }
.account-delete-consent input { accent-color:#7627C8; }
.account-delete-entry a { color:#6420B1; }
.studio-brand-mark { overflow:hidden; border-radius:50%!important; background:transparent!important; }
.studio-brand-mark img { display:block; width:100%; height:100%; object-fit:contain; }

/* Purple accents in the Learning Studio; retain the dark video surface for contrast. */
.learning-studio .studio-player-frame { border-color:#B34DFF88; background:linear-gradient(135deg,#E4C9FF,#7627C8 45%,#B34DFF); box-shadow:0 0 22px #7627C828,0 12px 28px #02061766; }
.learning-studio .ds-video-controls { color:#F8F2FF; }
.learning-studio .ds-video-play { border-color:#D5A9FF; background:linear-gradient(145deg,#A24DDF,#6420B1); box-shadow:0 0 17px #B34DFF44; }
.learning-studio .ds-video-fullscreen,.learning-studio .ds-video-skip { border-color:#B34DFF66; background:#32105DDE; color:#F8F2FF; }
.learning-studio .ds-video-settings,.learning-studio .ds-video-fullscreen { border-color:#D5A9FF66; background:#32105DDE; }
.learning-studio .ds-video-settings[aria-expanded="true"] { color:#D5A9FF; border-color:#D5A9FF; }
.learning-studio .ds-video-settings-menu { border-color:#B34DFF80; background:#1B0D30F5; }
.learning-studio .ds-video-settings-menu select,.learning-studio .video-quality-select-label select,.learning-studio .ds-video-speed-label select { border-color:#B34DFF77; background:#32105D; }
.learning-studio .ds-video-settings-menu .video-quality-label,.learning-studio .video-quality-label { color:#D5A9FF; }
.learning-studio .ds-video-notice { border-color:#B34DFF66; background:#21103ADF; }
.learning-studio .ds-video-player-unavailable { border-color:#B34DFF77; background:radial-gradient(ellipse at 50% 0%,#421078,#160A2B 75%); }
.learning-studio .ds-video-player-unavailable small { color:#D5A9FF; }
.learning-studio .studio-tabs .studio-tab { border-color:#9250DE66; background:linear-gradient(145deg,#32105D,#21103A); }
.learning-studio .studio-tabs .studio-tab.is-active { border-color:#B34DFF; background:linear-gradient(145deg,#7627C8,#421078); box-shadow:0 0 19px #7627C82B; }
.learning-studio .studio-panel { border-color:#9250DE44; background:linear-gradient(145deg,#21103ADD,#160A2BF2); }
.learning-studio .studio-panel-heading>span,.learning-studio .studio-empty>span { color:#D5A9FF; }
.learning-studio .studio-comments .feature-form textarea { border-color:#9250DE77!important; }
.learning-studio .studio-comments .feature-submit { border-color:#B34DFF; background:linear-gradient(105deg,#7627C8,#542090)!important; box-shadow:0 5px 18px #7627C833!important; }
.learning-studio .studio-comments .empty-state,.learning-studio .studio-comments .warning-note { border-color:#9250DE55!important; background:#21103A!important; color:#E4D4FA!important; }
.learning-studio .video-detail-meta span { border-color:#9250DE55; background:#32105D; }
.learning-studio .studio-brand-mark { border-color:#D5A9FF; }

@media(max-width:760px) {
  .topbar { box-shadow:0 7px 20px rgba(66,16,120,.16); }
}

/* Personalized Home dashboard: compact, conditional and based on existing student data. */
.home-current-date { margin:6px 0 0; color:#70657c; font-size:12px; }
#studentAvatar.has-profile-photo { background-position:center; background-size:cover; color:transparent; overflow:hidden; }
#homeCatalogAction[hidden],#homeProgressSection[hidden],#homeLearningShortcuts[hidden] { display:none!important; }
.home-course-heading { align-items:center; }
.home-course-heading .eyebrow { color:#7b55a3; font-size:10px; font-weight:800; letter-spacing:.1em; }
.home-course-heading .small-action { flex:none; }
.home-updates { margin-block:0 17px; }
.home-notice-card.is-important { border-left-color:#7627c8; background:linear-gradient(125deg,#fbf7ff,#fff); }
.home-notice-priority { display:inline-flex; margin:0 7px 4px 0; padding:3px 7px; border-radius:99px; background:#7627c8; color:#fff; font-size:9px; font-weight:800; letter-spacing:.04em; }
.home-notice-open { margin-top:9px; min-height:34px; }
.home-event-type.is-live { background:#e5f7ed; color:#18764c; }
.home-event-join { grid-column:3; grid-row:1/3; }
.home-schedule-empty,.home-section-error { padding:12px 14px; border:1px solid #e8def4; border-radius:13px; background:#fbf9fd; color:#70657c; font-size:12px; line-height:1.5; }
.home-section-error .small-action { margin-inline-start:8px; }
.home-progress-summary { padding:15px; border:1px solid #e7dcf4; border-radius:16px; background:#fff; }
.home-progress-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 14px; }
.home-progress-copy { display:grid; gap:4px; min-width:0; }
.home-progress-copy b { color:#38244b; font-size:14px; }
.home-progress-copy small { color:#716b78; font-size:11px; }
.home-progress-bar { grid-column:1/-1; height:7px; overflow:hidden; border-radius:99px; background:#ece4f6; }
.home-progress-bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#7627c8,#b34dff); }
.home-progress-card>.small-action { grid-column:2; grid-row:1; white-space:nowrap; }
.home-learning-shortcuts { margin:0 0 20px; }
.home-shortcut-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.home-shortcut-grid button { min-height:70px; padding:11px 13px; display:grid; grid-template-columns:28px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; justify-items:start; column-gap:9px; border:1px solid #e8def4; border-radius:14px; background:#fff; color:#38244b; text-align:left; box-shadow:0 5px 16px rgba(66,16,120,.05); }
.home-shortcut-grid button span { grid-column:1; grid-row:1/3; color:#7627c8; font-size:20px; line-height:1; }
.home-shortcut-grid button b { grid-column:2; grid-row:1; font-size:11px; font-weight:700; }
.home-shortcut-grid button small { grid-column:2; grid-row:2; color:#74697f; font-size:9px; line-height:1.3; }
.home-shortcut-grid button:focus-visible { outline:3px solid rgba(118,39,200,.28); outline-offset:2px; }
.home-featured-course { margin:0 0 13px; }
.home-featured-course>.home-update-heading { margin-bottom:9px; padding:0; background:none; color:#38244b; }
.home-featured-course>.home-update-heading h3 { margin:0; font-size:14px; }
.home-featured-course .home-course-card { flex-basis:min(100%,420px); }
.home-course-more-empty { flex:1 0 100%; }
.home-notice-card p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.home-notice-open { min-height:32px; }
.home-notice-card { display:grid; align-content:start; gap:5px; padding:11px 13px; }
.home-notice-card h3 { margin:2px 0 0; line-height:1.25; }
.home-notice-card time { color:#74697f; font-size:10px; }
.home-update-heading { min-width:0; }
#homeNoticeSection>.home-update-heading { align-items:center; min-height:58px; }
#homeNoticeSection>.home-update-heading>div { display:grid; gap:3px; min-width:0; }
#homeNoticeSection .home-update-heading .eyebrow { line-height:1.2; }
#homeNoticeHeading { margin:0; font-size:17px; line-height:1.25; overflow-wrap:anywhere; }
.home-course-card { display:flex; flex-direction:column; min-height:350px; }
.home-course-cover { flex:0 0 auto; }
.home-course-body { display:flex; flex:1; flex-direction:column; align-items:stretch; min-width:0; gap:0; }
.home-course-body h3 { min-height:0; margin:8px 0 5px; line-height:1.3; overflow-wrap:anywhere; }
.home-course-body p { display:-webkit-box; min-height:0; max-height:none; height:auto; margin:0 0 12px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow-wrap:anywhere; line-height:1.45; }
.home-course-button { flex:0 0 auto; margin-top:auto; white-space:normal; line-height:1.3; }
.home-schedule-empty { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.home-schedule-empty .small-action { min-height:34px; flex:0 0 auto; }
.home-updates { margin-block-end:14px; }
.home-course-section { margin-bottom:22px; }
.home-planner-summary { margin-block:0 14px; }
.home-progress-summary { margin-block-end:14px; }
.public-course-preview { display:grid; gap:16px; max-width:820px; margin:0 auto; }
.public-course-preview-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:18px; align-items:center; overflow:hidden; border:1px solid #e8def4; border-radius:18px; background:linear-gradient(135deg,#fbf8ff,#fff); }
.public-course-preview-head>img { width:100%; height:100%; min-height:180px; max-height:260px; object-fit:cover; }
.public-course-preview-head>div { padding:20px; }
.public-course-preview-head h2 { margin:9px 0 6px; color:#32105d; font:700 22px var(--display); }
.public-course-preview-head p,.public-course-preview section p { margin:0; color:#70657c; font-size:12px; line-height:1.6; }
.public-course-facts { display:flex; flex-wrap:wrap; gap:10px; }
.public-course-facts span { display:grid; gap:4px; min-width:115px; padding:11px 13px; border:1px solid #ece3f6; border-radius:12px; background:#fff; }
.public-course-facts small { color:#786e82; font-size:10px; }
.public-course-facts b { color:#3b2452; font-size:13px; }
.public-course-preview section { padding:14px 16px; border:1px solid #ece3f6; border-radius:14px; background:#fff; }
.public-course-preview section h3 { margin:0 0 8px; color:#38244b; font-size:14px; }
.public-course-preview section ul { display:grid; gap:5px; margin:0; padding-inline-start:18px; color:#5e526a; font-size:12px; }
.public-course-access-note { margin:0; color:#70657c; font-size:11px; line-height:1.5; }
.public-course-actions { display:flex; }
.public-course-actions .feature-submit { width:100%; }
@media(max-width:760px) {
  .public-course-preview-head { grid-template-columns:1fr; }
  .public-course-preview-head>img { height:170px; min-height:0; }
  .public-course-preview-head>div { padding:0 16px 16px; }
  .public-course-preview-head h2 { font-size:19px; }
}
@media(max-width:420px) {
  .home-course-heading { align-items:flex-start; }
  .home-course-heading .small-action { max-width:132px; white-space:normal; text-align:center; }
  .home-course-card { min-height:340px; }
  .home-notice-card { padding:10px 11px; }
  .home-notice-card h3 { font-size:14px; }
  .home-event-join { grid-column:2; grid-row:auto; justify-self:start; }
  .home-progress-card { grid-template-columns:minmax(0,1fr); }
  .home-progress-card>.small-action { grid-column:1; grid-row:auto; justify-self:start; }
}

/* Home-only refinements based on the current installed Android screen. */
.topbar-leading { display:flex; align-items:center; gap:10px; min-width:0; }
.student-support-header { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; min-width:42px; padding:9px; border:1px solid rgba(255,255,255,.28); border-radius:13px; background:rgba(255,255,255,.14); color:#fff; }
.student-support-header svg { display:block; width:22px; height:22px; }
.student-support-header:focus-visible { outline:3px solid #fff; outline-offset:2px; }
body.student-home-mode .student-sidebar-support { display:none!important; }
.home-welcome { margin-block:10px 12px; }
.home-welcome h1 { margin-block:3px 0; font-size:clamp(21px,4vw,28px); line-height:1.18; }
.home-enrollment-state { margin:8px 0 12px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--muted); font-size:12px; line-height:1.45; }
.home-enrollment-state.is-error { border-color:#e9b8b8; background:#fff7f7; color:#8a3131; }
.home-discovery-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 14px; padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(115deg,#421078,#7627C8 70%,#8B3BDA); color:#fff; box-shadow:0 10px 24px rgba(66,16,120,.13); }
.home-discovery-hero .eyebrow { color:#EAD9FF; }
.home-discovery-hero h2 { margin:5px 0 6px; color:#fff; font-size:19px; line-height:1.25; }
.home-discovery-hero p { max-width:560px; margin:0; color:#F4ECFF; font-size:12px; line-height:1.5; }
.home-discovery-button { flex:0 0 auto; min-height:42px; padding:0 15px; border:0; border-radius:12px; background:#fff; color:#421078; font-size:12px; font-weight:800; cursor:pointer; }
.home-course-categories { margin:0 0 15px; padding:13px 15px; border:1px solid var(--line); border-radius:15px; background:var(--panel); }
.home-course-categories .home-course-heading { margin:0 0 9px; }
.home-course-categories h2 { margin:3px 0 0; color:var(--text); font-size:15px; }
.home-category-list { display:flex; flex-wrap:wrap; gap:8px; }
.home-category-chip { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:var(--panel2); color:var(--navy); font-size:11px; font-weight:700; }
.home-category-chip small { color:var(--muted); font-size:10px; font-weight:600; }
.home-course-heading { gap:10px; }
.home-course-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.home-planner-summary { padding:12px 14px; border-radius:15px; }
.home-planner-summary #homePlannerSummaryContent { gap:5px 12px; }
.home-planner-copy { gap:3px; }
.home-planner-copy .eyebrow { font-size:9px; }
.home-planner-copy b { font-size:13px; line-height:1.35; }
.home-planner-copy small,.home-planner-focus { font-size:10px; line-height:1.4; }
.home-planner-summary .small-action { min-height:36px; padding:7px 11px; font-size:11px; }
.home-updates { margin-block-end:11px; }
.home-upcoming .home-update-heading { margin-bottom:8px; }
.home-schedule-empty { padding:10px 12px; }
.home-learning-shortcuts { display:grid; gap:9px; }
.home-learning-shortcuts>.home-update-heading { margin:0; }
.home-shortcut-group { min-width:0; }
.home-shortcut-group h3 { margin:0 0 7px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
#homeShortcutGrid { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; min-width:0; }
.home-shortcut-group .home-shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; gap:9px; }
.home-shortcut-group .home-shortcut-grid button { width:100%; min-width:0; min-height:62px; height:auto; padding:9px 10px; grid-template-columns:26px minmax(0,1fr); column-gap:8px; align-content:center; overflow:hidden; }
.home-shortcut-group .home-shortcut-grid button b,
.home-shortcut-group .home-shortcut-grid button small { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.home-shortcut-group .home-shortcut-grid button b { font-size:12px; line-height:1.3; }
.home-shortcut-group .home-shortcut-grid button small { font-size:10px; line-height:1.3; }
.home-learning-shortcuts>.home-update-heading { display:block; min-height:0; padding:0!important; border:0; background:transparent!important; box-shadow:none!important; color:var(--text); }
.home-learning-shortcuts>.home-update-heading h2 { margin:0; color:var(--text); font-size:17px; line-height:1.3; }
.home-learning-shortcuts>.home-update-heading .eyebrow { margin-bottom:3px; color:var(--muted)!important; font-size:9px; }

@media(max-width:620px) {
  .topbar-leading { gap:7px; }
  .student-support-header { flex-basis:40px; width:40px; height:40px; min-width:40px; }
  .topbar-leading .breadcrumb { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .home-discovery-hero { align-items:flex-start; flex-direction:column; gap:12px; padding:15px; }
  .home-discovery-hero h2 { font-size:17px; }
  .home-discovery-button { width:100%; }
  .home-course-heading { align-items:flex-start; }
  .home-course-actions { max-width:50%; }
  .home-course-actions .small-action { white-space:normal; }
}
@media(max-width:380px) {
  .home-shortcut-group .home-shortcut-grid { gap:7px; }
  .home-shortcut-group .home-shortcut-grid button { grid-template-columns:22px minmax(0,1fr); column-gap:6px; padding-inline:8px; }
  .home-shortcut-group .home-shortcut-grid button span { font-size:18px; }
}

:root[data-theme="dark"] .home-enrollment-state,
:root[data-theme="dark"] .home-course-categories,
:root[data-theme="dark"] .home-category-chip { border-color:#553276; background:#211332; color:#F1E8FF; }
:root[data-theme="dark"] .home-enrollment-state.is-error { border-color:#754343; background:#301c24; color:#ffd5d5; }
:root[data-theme="dark"] .home-category-chip small { color:#c8b7dc; }
:root[data-theme="dark"] .home-discovery-hero { border-color:#653a92; }
:root[data-theme="dark"] .home-shortcut-group h3 { color:#c8b7dc; }
