/* Parlons français — original navy/violet identity with the improved responsive layout. */
:root, body.ux-refresh {
  --ui-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --studio-navy: #17285f;
  --studio-accent: #6550cb;
  --studio-canvas: #f4f5fc;
  --studio-line: #dce1f1;
  --studio-muted: #586584;
  --studio-gold: #f4dfab;
  --ink: #1b2240; --text: #3f465f; --muted: #586584; --line: #dce1f1;
  --forest: #17285f; --forest-2: #3157b7; --cream: #f6f7fc;
  --orange: #7559d9; --orange-pale: #eeeaff; --blue: #6758d8; --blue-dark: #5144ba;
  --navy: #17285f; --purple: #6853cb; --shadow: 0 18px 48px rgba(30,46,102,.12);
}
body.portal-student { --ui-font: "DM Sans",Arial,sans-serif; --heading-font: "Manrope",Arial,sans-serif; }
body.portal-professor { --ui-font: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
body:is(.portal-student,.portal-professor,.portal-videos,.portal-images,.portal-login) { font-family: var(--ui-font); background: var(--studio-canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
:is(.portal-student,.portal-professor,.portal-videos,.portal-images) :is(button,input,select,textarea) { font-family: var(--ui-font); }
:is(.portal-student,.portal-professor,.portal-videos,.portal-images) :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #7863c7; outline-offset: 3px; }
:is(.portal-student,.portal-professor,.portal-videos,.portal-images) :is(h1,h2,h3) { text-wrap: balance; }
:is(.portal-student,.portal-professor,.portal-videos) :is(.eyebrow,.kicker) { color: var(--studio-accent); letter-spacing: .11em; font-weight: 700; font-size: 12px; }
.portal-skip { position: fixed; z-index: 1000; top: -100px; left: 16px; padding: 14px 20px; border-radius: 8px; background: white; color: var(--ink); }
.portal-skip:focus { top: 12px; }
.portal-nav-label { display: block; padding: 22px 12px 8px; color: #aebbcf; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.portal-close-menu,.portal-nav-toggle,.portal-backdrop { display: none; }
.portal-resource-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eeeaf6; color: var(--studio-accent); font-size: 20px; }

/* Public entry: an editorial welcome, with the sign-in always within reach. */
.portal-student .login-screen { background: var(--studio-canvas); }
.portal-student .public-header { max-width: 1240px; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.portal-student :is(.public-brand,.app-brand) strong { font-family: var(--heading-font); font-weight: 800; }
.portal-student :is(.public-brand,.app-brand)>span { border-radius: 14px 4px; font: 800 25px var(--heading-font); }
.portal-student .public-brand small { color: var(--muted); letter-spacing: .02em; }
.portal-student .teacher-link { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.portal-student .login-main { gap: 80px; min-height: calc(100dvh - 100px); padding: 50px 32px 70px; }
.portal-student .login-story { padding: 20px 0 36px; }
.portal-student .login-story::before { display: block; border-color: #dcd5f3; background: radial-gradient(circle,#ece7ff66,transparent 70%); pointer-events: none; }
.portal-student .word-ribbon { display: flex; position: relative; left: -20px; bottom: auto; width: calc(100% + 20px); margin-top: 40px; gap: 20px; padding: 18px 20px; transform: rotate(-3deg); background: var(--studio-navy); border-radius: 12px 4px; }
.portal-student .word-ribbon span { font-family: var(--heading-font); font-size: 12px; }
.portal-student .word-ribbon span::before { margin-right: 16px; color: #c4a7ff; }
.portal-student .login-story h1 { font: 800 clamp(46px,5.5vw,76px)/1.04 var(--heading-font); letter-spacing: -.055em; }
.portal-student .login-story h1 em { color: var(--studio-accent); }
.portal-student .login-story>p:not(.eyebrow) { max-width: 480px; font-size: 17px; color: var(--muted); line-height: 1.8; }
.portal-student .login-benefits { display: grid; gap: 14px; padding-top: 10px; }
.portal-student .login-benefits span { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 500; }
.portal-student .login-benefits b { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d2c6f5; border-radius: 10px 4px; font-size: 14px; color: #5740ae; background: #eee8ff; }
.portal-student .login-card { border: 1px solid var(--line); border-radius: 28px 8px; background: white; padding: 36px; box-shadow: var(--shadow); }
.portal-student .login-card h2 { font: 800 32px/1.2 var(--heading-font); letter-spacing: -.035em; }
.portal-student .login-card label>span:first-child { font-size: 14px; font-weight: 600; }
.portal-student .login-card input { border-radius: 8px; font-size: 16px; }
.portal-student .primary-action { border-radius: 14px 5px; background: var(--studio-accent); font-weight: 800; box-shadow: 0 7px 18px #6550cb22; }
.portal-student .primary-action:hover { background: #45378d; transform: none; }
.portal-student .login-help { text-align: left; line-height: 1.7; color: var(--muted); }
.portal-login .card { border: 1px solid var(--line); border-top: 4px solid var(--studio-accent); border-radius: 24px 8px; padding: 36px; box-shadow: var(--shadow); }
.portal-login .brand small { color: var(--muted); font-weight: 500; }
.portal-login .mark { background: var(--studio-navy); border-radius: 10px; }
.portal-login h1 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; }
.portal-login p { color: var(--muted); font-size: 15px; }
.portal-login input { border-radius: 8px; }
.portal-login button { border-radius: 8px; background: var(--studio-accent); font-family: var(--ui-font); font-weight: 600; }
.portal-login-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--studio-accent); font-size: 14px; text-decoration: none; }

/* A consistent, labelled navigation. Secondary destinations never precede Home. */
.portal-student .student-app { background: var(--studio-canvas); }
.portal-student .student-sidebar { width: 240px; padding: 30px 18px 20px; background: var(--studio-navy); overflow-y: auto; }
.portal-student .app-brand { margin: 0 10px 32px; }
.portal-student .app-brand small { color: #c0c9dc; font-size: 12px; letter-spacing: .02em; }
.portal-student .student-sidebar nav { gap: 3px; }
.portal-student .student-sidebar nav :is(button,a) { display: flex; align-items: center; justify-content: flex-start; gap: 11px; min-height: 46px; padding: 10px 12px; border-radius: 8px; border: 0; font-size: 14px; font-weight: 500; color: #d5ddec; background: transparent; text-decoration: none; line-height: 1.4; }
.portal-student .student-sidebar nav :is(.nav-icon,svg) { flex: 0 0 22px; width: 22px; height: 22px; }
.portal-student .student-sidebar nav button.active { color: white; background: #6550cb; box-shadow: inset 3px 0 #d2b9ff,0 5px 15px #080d3020; font-weight: 700; }
.portal-student .student-sidebar nav button.active .nav-icon { background: none; color: var(--studio-gold); box-shadow: none; }
.portal-student .student-sidebar nav :is(button,a):hover { color: white; background: #ffffff12; }
.portal-student .sidebar-quote { border: 0; border-top: 1px solid #ffffff20; border-radius: 0; padding: 20px 10px 8px; background: transparent; margin-top: 28px; }
.portal-student .sidebar-quote>span { color: #b9c4d7; letter-spacing: .02em; text-transform: none; font-weight: 400; }
.portal-student .sidebar-quote blockquote { font: italic 16px/1.5 Georgia,serif; color: #f4e6c9; }
.portal-student .logout-button { color: #c6d0e1; margin-top: auto; min-height: 44px; text-align: left; padding-inline: 12px; }
.portal-student .student-main { margin-left: 240px; }
.portal-student .student-topbar { min-height: 90px; padding: 22px 40px; background: var(--studio-canvas); border-color: var(--line); }
.portal-student .topbar-copy h1 { font: 800 24px/1.3 var(--heading-font); }
.portal-student .student-identity>span { border-radius: 50%; color: var(--studio-navy); background: #e9e5f0; font-family: var(--ui-font); }
.portal-student .app-view { max-width: 1300px; padding: 32px 40px 64px; }
.portal-student .welcome-panel { min-height: 260px; padding: 36px 40px; border-radius: 24px 7px; gap: 28px; background: linear-gradient(115deg,#17285f 30%,#303d88); box-shadow: 0 16px 32px #17285f1a; }
.portal-student .welcome-panel .eyebrow { color: #ded0f4; }
.portal-student .welcome-panel h2 { color: white; font: 800 clamp(30px,3.4vw,46px)/1.08 var(--heading-font); letter-spacing: -.045em; max-width: 500px; }
.portal-student .welcome-panel p:not(.eyebrow) { color: #d2dbea; font-size: 15px; max-width: 430px; }
.portal-student .welcome-word { display: none; }
.portal-student .welcome-panel .primary-action { background: #7559d9; color: white; min-height: 46px; font-size: 14px; min-width: 220px; }
.portal-student .welcome-panel .primary-action:hover { background: #6550cb; }
.portal-student .today-orbit { flex-basis: 130px; height: 130px; border-width: 5px; border-top-color: #d7bf8e; transform: none; }
.portal-student .today-orbit::after { display: none; }
.portal-student .today-orbit :is(span,small) { transform: none; font-family: var(--ui-font); }
.portal-student .today-orbit small { color: #d2dbea; text-transform: none; }
.portal-discover { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.portal-discover>a { display: flex; align-items: center; gap: 16px; padding: 21px 22px; border: 1px solid #d9d1f3; border-radius: 18px 5px; color: var(--ink); background: #f0ebff; text-decoration: none; transition: border-color .15s,box-shadow .15s; }
.portal-discover>a:nth-child(2) { background: #eaf0ff; border-color: #cedafa; }
.portal-discover .portal-resource-icon { color: white; background: #6853cb; }
.portal-discover>a:nth-child(2) .portal-resource-icon { background: #3157b7; }
.portal-discover>a:hover { border-color: #b5aacf; box-shadow: 0 5px 20px #1b2d4508; }
.portal-discover>a>span:nth-child(2) { display: grid; gap: 5px; }
.portal-discover small { color: var(--muted); font-size: 12px; }
.portal-discover strong { font-size: 17px; font-weight: 600; }
.portal-discover span>span { font-size: 13px; color: var(--muted); }
.portal-discover b { margin-left: auto; font-size: 21px; font-weight: 400; color: var(--studio-accent); }
.portal-student :is(.next-card,.weekly-card,.needs-shortcut,.review-shortcut,.stat-card,.grammar-card,.progress-hero,.needs-form,.needs-history) { border-radius: 18px 5px; border-color: var(--line); box-shadow: 0 8px 24px #17285f09; }
.portal-student :is(.next-card h3,.weekly-card h3,.section-heading h2,.study-heading h2) { font-family: var(--heading-font); font-weight: 800; letter-spacing: -.035em; }
.portal-student .weekly-card { background: #6550cb; color: white; border: 1px solid #6550cb; }
.portal-student .weekly-card :is(h3,.eyebrow) { color: white; }
.portal-student .weekly-card :is(small,.week-dots span) { color: #f0eaff; }
.portal-student .week-dots i { border-color: #b9a9ef; background: #ffffff12; }
.portal-student .week-dots span.done i { color: #5740ae; background: white; }
.portal-student .week-dots span.today i { outline: 2px solid #e6d6ff; outline-offset: 2px; }
.portal-student .lesson-level { border-radius: 8px; }
.portal-student .needs-shortcut strong { font-weight: 500; font-size: 14px; }
.portal-student .review-shortcut.empty { background: transparent; opacity: 1; }
.portal-student .study-heading { align-items: center; gap: 20px; margin-bottom: 24px; }
.portal-student .study-heading h2 { font-size: 29px; }
.portal-student .study-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
.portal-student :is(.level-switch,.grammar-levels) { border-radius: 9px; background: #eaecef; padding: 4px; }
.portal-student :is(.level-switch,.grammar-levels) button { min-height: 44px; border-radius: 6px; font-size: 13px; }
.portal-student .memory-card { border-radius: 28px 8px; box-shadow: 0 18px 42px #17285f16; }
.portal-student .card-face { border-radius: 28px 8px; }
.portal-student .card-face strong { font-family: var(--heading-font); font-weight: 800; }
.portal-student .deck-menu button { border-radius: 7px; min-height: 44px; font-weight: 500; }
.portal-student .flashcard-layout { align-items: start; }
.portal-student .card-stage { margin: 0 auto; }
.portal-student .deck-menu { max-height: 540px; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.portal-student .card-controls button { border-radius: 9px; min-height: 48px; }
.portal-student .grammar-card { background: white; }
.portal-student :is(.stat-card,.progress-hero) strong { font-variant-numeric: tabular-nums; }

/* Professor: working navigation, consistent library proportions and readable controls. */
.portal-professor.ux-refresh .app-shell { grid-template-columns: 224px minmax(0,1fr); }
.portal-professor.ux-refresh .sidebar { background: var(--studio-navy); padding: 28px 14px 20px; overflow-y: auto; }
.portal-professor.ux-refresh .sidebar::after { display: none; }
.portal-professor.ux-refresh .brand { gap: 10px; padding: 4px; }
.portal-professor.ux-refresh .brand-copy strong { font-size: 14px; }
.portal-professor.ux-refresh .brand-copy small { color: #c0c9dc; letter-spacing: .02em; }
.portal-professor.ux-refresh .brand-mark { border-radius: 12px; font: 800 24px var(--ui-font); }
.portal-professor.ux-refresh .nav-list { gap: 5px; margin-top: 30px; }
.portal-professor.ux-refresh .nav-list :is(button,a) { min-height: 46px; border-radius: 8px; font-size: 14px; font-weight: 500; padding: 10px; color: #d5ddec; background: transparent; box-shadow: none; line-height: 1.35; }
.portal-professor.ux-refresh .nav-list .video-nav { justify-content: flex-start; gap: 14px; }
.portal-professor.ux-refresh .nav-list .video-nav svg { width: 22px; height: 22px; margin-left: 3px; }
.portal-professor.ux-refresh .nav-list button.active { color: white; background: #6550cb; box-shadow: inset 3px 0 #d2b9ff; font-weight: 700; }
.portal-professor.ux-refresh .nav-list button.active>span { background: transparent!important; color: var(--studio-gold); }
.portal-professor.ux-refresh .nav-list button>span { color: #bfcbe0; }
.portal-professor.ux-refresh .sidebar-summary { margin-top: auto; padding: 24px 10px 10px; }
.portal-professor.ux-refresh .sidebar-summary :is(span,strong) { color: #bac6d9; }
.portal-professor .portal-nav-toggle { position: fixed; z-index: 90; top: 8px; left: 200px; display: grid; place-items: center; width: 24px; height: 24px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 5px 0 0 5px; color: white; background: var(--studio-accent); line-height: 1; transition: left .2s ease; }
.portal-professor .portal-nav-toggle svg { display: block; width: 16px; height: 16px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-professor .portal-nav-toggle:hover { background: #7863d9; }
.portal-professor.main-sidebar-collapsed .portal-nav-toggle { left: 0; border-radius: 0 6px 6px 0; }
.portal-professor.ux-refresh .dashboard { max-width: 1640px; padding: 30px 36px 50px; }
.portal-professor.ux-refresh .topbar { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; gap: 22px; }
.portal-professor.ux-refresh .topbar h1 { font: 600 28px/1.2 var(--ui-font); letter-spacing: -.035em; }
.portal-professor.ux-refresh .topbar .kicker { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.portal-professor.ux-refresh .profile-badge { margin-left: auto; }
.portal-professor.ux-refresh .teacher-logout { font-size: 13px; min-height: 44px; padding: 8px 12px; border-radius: 8px; box-shadow: none; }
.portal-professor.ux-refresh .overview article { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px #17285f08; background: white; }
.portal-professor.ux-refresh .overview article:nth-child(1) { border-top: 3px solid #3157b7; }
.portal-professor.ux-refresh .overview article:nth-child(2) { border-top: 3px solid #7559d9; }
.portal-professor.ux-refresh .overview article:nth-child(3) { border-top: 3px solid #337d73; }
.portal-professor.ux-refresh .overview strong { font-variant-numeric: tabular-nums; font-size: 26px; }
.portal-professor.ux-refresh .student-section-nav { background: #eaecef; border: 0; border-radius: 9px; }
.portal-professor.ux-refresh :is(.student-browser,.student-workspace) { border-radius: 12px; border-color: var(--line); box-shadow: none; }
.portal-professor.ux-refresh .student-item { border-radius: 8px; }
.portal-professor.ux-refresh .student-item.selected { border-color: #c5bdda; background: #f1edf8; }
.portal-professor.ux-refresh .welcome-workspace { min-height: 380px; }
.portal-professor.ux-refresh :is(.button,.filter-chip) { border-radius: 8px; }
.portal-professor.ux-refresh .grammar-library-head { background: linear-gradient(115deg,#17285f,#393576); box-shadow: 0 12px 30px #17285f15; min-height: 160px; padding: 30px; border-radius: 20px 6px; }
.portal-professor.ux-refresh :is(.grammar-library-head,.grammar-lesson-hero) .kicker { color: #ded0f4; }
.portal-professor.ux-refresh .grammar-library-head p:last-child { font-size: 14px; }
.portal-professor.ux-refresh .grammar-library-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.portal-professor.ux-refresh.grammar-studio-open .tracker { grid-template-columns: minmax(0,1fr); }
.portal-professor.ux-refresh .grammar-library-card { display: flex; flex-direction: column; border-radius: 12px; }
.portal-professor.ux-refresh .grammar-card-image { flex: none; width: 100%; }
.portal-professor.ux-refresh .grammar-card-copy { flex: 1; padding: 22px; justify-content: flex-start; }
.portal-professor.ux-refresh .grammar-card-copy h3 { font-size: 25px; line-height: 1.2; }
.portal-professor.ux-refresh .grammar-card-copy>p:not(.kicker) { font-size: 14px; line-height: 1.65; }
.portal-professor.ux-refresh .grammar-card-copy button { min-height: 46px; max-width: none; margin-top: auto; font-size: 14px; background: var(--studio-accent); }
.portal-professor.ux-refresh .grammar-card-topics { gap: 6px; margin: 16px 0 18px; }
.portal-professor.ux-refresh .grammar-card-topics span { border-radius: 6px; font-weight: 600; }
.portal-professor.ux-refresh .grammar-library-note { display: block; padding: 24px; background: #eeeaff; border-color: #ded5f6; }
.portal-professor.ux-refresh .grammar-library-note h3 { margin: 8px 0 20px; }
.portal-professor.ux-refresh .grammar-library-note ol { gap: 20px; }
.portal-professor.ux-refresh .grammar-library-note li { display: block; border-color: #d0c4f1; }
.portal-professor.ux-refresh .grammar-library-note li b { display: block; margin-bottom: 8px; color: #5740ae; }
.portal-professor.ux-refresh .grammar-library-note li span { display: block; font-size: 14px; line-height: 1.6; }
.portal-professor.ux-refresh .grammar-lesson-head { background: linear-gradient(115deg,#17285f,#393576); grid-template-columns: 125px minmax(0,1fr) auto; gap: 20px; padding: 24px; }
.portal-professor.ux-refresh .grammar-lesson-nav button { grid-template-columns: 30px minmax(0,1fr); gap: 3px 8px; padding: 12px 10px; }
.portal-professor.ux-refresh .grammar-lesson-nav button>span { width: 30px; height: 30px; }
.portal-professor.ux-refresh .grammar-lesson-nav strong { align-self: end; overflow-wrap: anywhere; }
.portal-professor.ux-refresh .grammar-teacher-rail { width: auto; min-width: 0; }
.portal-professor.ux-refresh .grammar-stage { min-height: 0; }
.portal-professor.ux-refresh .grammar-stage-head h3 { font-size: clamp(25px,2.3vw,32px); }
.portal-professor.ux-refresh .grammar-stage-controls { gap: 12px; }
.portal-professor.ux-refresh .grammar-stage-controls button { min-height: 46px; }
.portal-professor.ux-refresh .connector-wall>div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.portal-professor.ux-refresh .connector-wall>div>span { display: block; min-width: 0; padding: 16px; }
.portal-professor.ux-refresh .connector-wall>div>span small { color: #5740ae; font-weight: 700; }
.portal-professor.ux-refresh .connector-wall>div>span strong { display: block; margin: 8px 0; color: #17285f; }
.portal-professor.ux-refresh .connector-wall>header { flex-wrap: wrap; }
.grammar-story-scenes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.grammar-story-scenes figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dce1f1; border-radius: 12px; background: #fff; }
.grammar-scene-image { position: relative; aspect-ratio: var(--scene-ratio,40 / 63); overflow: hidden; background: #e8eaf4; }
.grammar-scene-image img { position: absolute; display: block; width: 300%; max-width: none; height: 100%; top: 0; left: calc(var(--scene-index) * -100%); }
.grammar-story-scenes figcaption { padding: 14px; }
.grammar-story-scenes figcaption small { display: block; margin-bottom: 6px; color: #85591e; font-size: 12px; font-weight: 700; }
.grammar-story-scenes figcaption strong { display: block; color: #17285f; line-height: 1.5; }
@media(max-width:1180px) {
 .portal-professor.ux-refresh .grammar-library-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .portal-professor.ux-refresh .grammar-lesson-head { grid-template-columns: 110px minmax(0,1fr); }
 .portal-professor.ux-refresh .grammar-lesson-meta { grid-column: 1 / -1; }
 .portal-professor.ux-refresh .grammar-library-note ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .portal-professor.ux-refresh .grammar-library-list { grid-template-columns: 1fr; }
 .portal-professor.ux-refresh .grammar-library-head { gap: 16px; }
 .portal-professor.ux-refresh .grammar-library-count { display: flex; align-items: baseline; gap: 10px; border: 0; padding: 0; }
 .portal-professor.ux-refresh .grammar-library-count strong { font-size: 28px; }
 .portal-professor.ux-refresh .grammar-library-count span { margin: 0; }
 .portal-professor.ux-refresh .grammar-library-note ol { grid-template-columns: 1fr; gap: 14px; }
 .grammar-story-scenes { grid-template-columns: 1fr; gap: 10px; }
 .grammar-story-scenes figure { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; }
 .grammar-story-scenes figcaption { padding: 14px; }
 .portal-professor.ux-refresh .connector-wall>div { grid-template-columns: minmax(0,1fr); }
}
.portal-professor.ux-refresh .activity-library-head { padding: 30px; background: linear-gradient(115deg,#17285f,#473884); border-radius: 20px 6px; box-shadow: 0 12px 30px #17285f15; }
.portal-professor.ux-refresh .activity-library-head h2 { font: 400 38px/1.15 Georgia,serif; }
.portal-professor.ux-refresh .activity-card { border-radius: 12px; overflow: hidden; box-shadow: none; }
.portal-professor.ux-refresh .activity-card-copy { padding: 24px; }
.portal-professor.ux-refresh .activity-card-copy h3 { font-size: 27px; }
.portal-professor.ux-refresh .activity-card-copy p { font-size: 14px; line-height: 1.6; }
.portal-professor.ux-refresh .activity-card-copy button { font-size: 14px; min-height: 44px; border-radius: 8px; background: var(--studio-accent); }
.portal-professor.ux-refresh .conversation-hero { background: var(--studio-navy); box-shadow: none; }
/* Keep conversation artwork complete and reading surfaces legible. */
.portal-professor.ux-refresh .conversation-studio { max-width: 1440px; margin-inline: auto; }
.portal-professor.ux-refresh.conversation-studio-open .tracker { grid-template-columns: minmax(0,1fr); }
.portal-professor.ux-refresh .conversation-activity { gap: 20px; font-size: 16px; }
.portal-professor.ux-refresh .activity-detail-hero { grid-template-columns: minmax(0,1fr) 280px; min-height: 0; }
.portal-professor.ux-refresh .activity-detail-hero > div:first-child { min-width: 0; padding: 30px 36px; }
.portal-professor.ux-refresh .activity-detail-hero h2 { font-size: clamp(30px,3.4vw,46px); line-height: 1.15; }
.portal-professor.ux-refresh .activity-detail-hero p:last-child { color: #edefff; font-size: 15px; line-height: 1.65; }
.portal-professor.ux-refresh .activity-detail-image { width: 100%; aspect-ratio: 1; min-height: 0; background-size: 400% 200%; }
.portal-professor.ux-refresh .activity-steps { gap: 6px; }
.portal-professor.ux-refresh .activity-steps button { min-height: 48px; font-size: 14px; }
.portal-professor.ux-refresh .activity-steps button:not(.active) { color: #4b5672; }
.portal-professor.ux-refresh .activity-intro-panel { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.portal-professor.ux-refresh .activity-intro-lead { padding: 36px; }
.portal-professor.ux-refresh .activity-intro-lead h3 { color: #fff; font-size: clamp(28px,2.7vw,36px); line-height: 1.25; }
.portal-professor.ux-refresh .activity-intro-lead p { color: #f1edff; font-size: 16px; line-height: 1.65; }
.portal-professor.ux-refresh .activity-intro-lead > span { color: #f1edff; }
.portal-professor.ux-refresh .activity-rules { min-width: 0; padding: 32px; }
.portal-professor.ux-refresh .activity-rules strong { font-size: 16px; line-height: 1.5; }
.portal-professor.ux-refresh .activity-rules li p { color: #4b5672; font-size: 14px; line-height: 1.6; }
.portal-professor.ux-refresh :is(.debate-language-panel,.topic-choice-panel,.two-person-debate,.question-slider-panel) { min-width: 0; padding: 28px; }
.portal-professor.ux-refresh :is(.debate-language-panel,.topic-choice-panel,.two-person-debate) > header p:last-child { color: #4b5672; font-size: 15px; line-height: 1.6; }
.portal-professor.ux-refresh .debate-language-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.portal-professor.ux-refresh .debate-language-grid article { min-width: 0; padding: 22px; }
.portal-professor.ux-refresh .debate-language-grid h4 { font-size: 16px; }
.portal-professor.ux-refresh .debate-language-grid button { max-width: 100%; min-height: 42px; font-size: 15px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.portal-professor.ux-refresh .model-argument p { color: #343e58; font-size: 16px; line-height: 1.7; }
.portal-professor.ux-refresh .topic-worlds { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.portal-professor.ux-refresh .topic-worlds > button { min-width: 0; }
.portal-professor.ux-refresh .topic-world-image { width: 100%; height: auto; aspect-ratio: 1; background-size: 400% 200%; background-position-y: 0; }
.portal-professor.ux-refresh .topic-world-image:is(.activity-visual-5,.activity-visual-6,.activity-visual-7,.activity-visual-8) { background-position-y: 100%; }
.portal-professor.ux-refresh .topic-worlds strong { font-size: 15px; line-height: 1.5; }
.portal-professor.ux-refresh .topic-worlds small { color: #4b5672; font-size: 13px; line-height: 1.5; white-space: normal; overflow: visible; }
.portal-professor.ux-refresh .opinion-choice-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.portal-professor.ux-refresh .opinion-choice-list button { min-width: 0; min-height: 86px; padding: 16px; grid-template-columns: 30px minmax(0,1fr) 16px; }
.portal-professor.ux-refresh .opinion-choice-list strong { font: 500 16px/1.6 var(--ui-font); overflow-wrap: anywhere; }
.portal-professor.ux-refresh .debate-statement blockquote { color: #fff; font-size: 25px; line-height: 1.4; }
.portal-professor.ux-refresh .debate-statement-image { width: 100%; min-height: 0; aspect-ratio: 1; background-size: 400% 200%; }
.portal-professor.ux-refresh .debate-statement-image:is(.activity-visual-5,.activity-visual-6,.activity-visual-7,.activity-visual-8) { background-position-y: 100%; }
@media(max-width:1250px) {
 .portal-professor.ux-refresh .topic-worlds { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .portal-professor.ux-refresh .activity-detail-hero { grid-template-columns: minmax(0,1fr) 200px; }
 .portal-professor.ux-refresh .activity-detail-hero > div:first-child { padding: 24px; }
 .portal-professor.ux-refresh .activity-intro-panel { grid-template-columns: minmax(0,1fr); }
 .portal-professor.ux-refresh :is(.activity-intro-lead,.activity-rules) { padding: 24px; }
 .portal-professor.ux-refresh :is(.debate-language-grid,.opinion-choice-list) { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:540px) {
 .portal-professor.ux-refresh .activity-detail-hero { grid-template-columns: minmax(0,1fr); }
 .portal-professor.ux-refresh .activity-detail-image { max-width: 240px; justify-self: center; }
 .portal-professor.ux-refresh .activity-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .portal-professor.ux-refresh :is(.debate-language-panel,.topic-choice-panel,.two-person-debate,.question-slider-panel) { padding: 18px; }
 .portal-professor.ux-refresh .topic-worlds { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .portal-professor.ux-refresh .activity-next-button { min-width: 0; width: 100%; gap: 12px; padding: 12px 16px; }
}
.portal-student :is(.grammar-hero,.needs-hero) .eyebrow,
.portal-professor.ux-refresh :is(.grammar-lesson-head,.activity-library-head,.conversation-hero) .kicker { color: #ded0f4; }
.portal-student .grammar-hero { background: var(--studio-navy); border-radius: 22px 6px; }
.portal-student .grammar-hero h2 { font: 800 35px/1.15 var(--heading-font); letter-spacing: -.035em; }
.portal-student-picker { display: none; }
@media (min-width:981px) {
 .portal-professor.ux-refresh .app-shell { transition: grid-template-columns .2s ease; }
 .portal-professor.ux-refresh .sidebar { width: 224px; min-width: 0; transition: transform .2s ease, visibility .2s; }
 .portal-professor.ux-refresh .topbar { flex-wrap: wrap; }
 .portal-professor.ux-refresh.main-sidebar-collapsed .app-shell { grid-template-columns: 0 minmax(0,1fr); }
 .portal-professor.ux-refresh.main-sidebar-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion:reduce) {
 .portal-professor.ux-refresh :is(.app-shell,.sidebar,.portal-nav-toggle) { transition: none; }
}

/* Video & image libraries belong to the same product, not a separate microsite. */
.portal-videos .video-header { border-bottom: 1px solid var(--line); padding-block: 24px; }
.portal-videos .brand>span { border-radius: 14px 4px; background: var(--studio-navy); font: 800 25px var(--ui-font); }
.portal-videos .brand small { color: var(--muted); }
.portal-videos .intro { margin: 36px 0; }
.portal-videos .intro h1 { font: 800 clamp(32px,4vw,46px)/1.1 var(--ui-font); letter-spacing: -.035em; }
.portal-videos .intro>div>p:last-child { font-size: 16px; }
.portal-videos .identity { background: #eeebf3; color: #514561; border-radius: 8px; }
.portal-videos :is(.quiet-button,.filters button,.primary) { border-radius: 8px; }
.portal-videos .filters button[aria-pressed=true] { background: var(--studio-accent); border-color: var(--studio-accent); color: white; }
.portal-videos .video-card { border-radius: 20px 6px; box-shadow: 0 8px 24px #17285f0a; }
.portal-videos .video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px #1b2d4510; }
.portal-videos .card-copy { padding: 20px; }
.portal-videos .card-copy strong { font-weight: 750; }
.portal-videos .card-meta { letter-spacing: .025em; font-weight: 600; }
.portal-videos .thumbnail { background: #e6e8ef; }
.portal-videos .activity-panel { border-radius: 12px; }
.portal-videos .quiz-feedback { min-height: 0; }
.portal-videos .quiz-feedback:empty { display: none; }
.portal-videos .lesson-heading h2 { font: 750 36px/1.15 var(--ui-font); }
.portal-videos .lesson-heading { margin: 26px 0 22px; }
.portal-videos.video-lesson-open .intro { display: none; }
.portal-videos.video-lesson-open main { padding-top: 28px; }
.portal-videos .lesson-layout { grid-template-columns: minmax(0,1fr) 310px; }
.portal-videos .player-box { border-radius: 12px; }
.portal-images .page-head { background: var(--studio-canvas); border-bottom: 1px solid var(--line); margin-bottom: 16px; height: 82px; }
.portal-images .viewer { height: calc(100dvh - 114px); }
.portal-images :is(aside,.image-panel) { border-radius: 12px; border-color: var(--line); }
.portal-images .stage { background: #e8eaed; }
.portal-images .page-head a { border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 44px; background: white; color: var(--ink); }
.portal-images .viewer.focused { height: 100dvh; }

/* A real mobile drawer: scrollable, labelled, keyboard accessible, and dismissible. */
@media(min-width:981px) { .portal-professor .mobile-menu { display: none; } }
@media(max-width:1100px) {
 .portal-professor.ux-refresh .dashboard { padding-inline: 24px; }
 .portal-student .app-view { padding-inline: 26px; }
 .portal-student .welcome-panel { padding: 30px; }
 .portal-discover>a { padding: 18px; gap: 12px; }
 .portal-discover span>span { display: none; }
 .portal-videos .lesson-layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:980px) {
 .portal-professor.ux-refresh .app-shell,.portal-professor.main-sidebar-collapsed .app-shell { display: block; }
 .portal-professor.ux-refresh .sidebar { position: fixed; z-index: 102; inset: 0 auto 0 0; width: 280px; height: 100dvh; padding: 24px 18px; transform: translateX(-100%); transition: transform .18s ease; }
 .portal-professor.ux-refresh .sidebar.mobile-open { transform: translateX(0); }
 .portal-professor.ux-refresh .brand-copy { display: block; }
 .portal-professor.ux-refresh .brand { justify-content: flex-start; }
 .portal-professor.ux-refresh .nav-list button { grid-template-columns: 30px 1fr; justify-items: start; font-size: 14px; padding: 10px; }
 .portal-professor.ux-refresh .nav-list .video-nav { justify-content: flex-start; padding: 10px; }
 .portal-professor.ux-refresh .video-nav span { display: block; }
 .portal-professor .portal-nav-toggle { display: none; }
 .portal-professor .portal-close-menu { display: flex; }
 .portal-professor.ux-refresh .topbar { display: flex; flex-wrap: wrap; gap: 14px; }
 .portal-professor.ux-refresh .topbar .mobile-menu { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 22px; }
 .portal-professor.ux-refresh .topbar>div:first-of-type { min-width: 0; }
 .portal-professor.ux-refresh .topbar h1 { font-size: 25px; }
 .portal-professor.ux-refresh .tracker { grid-template-columns: 235px minmax(0,1fr); }
 .portal-professor.ux-refresh .profile-badge small { display: none; }
 .portal-professor.ux-refresh .teacher-logout { width: auto; }
}
@media(max-width:900px) {
 .portal-student .student-sidebar { width: 280px; z-index: 102; height: 100dvh; padding: 24px 18px; }
 .portal-student .student-sidebar.mobile-open { box-shadow: none; }
 .portal-student .student-main { margin-left: 0; }
 .portal-student .portal-close-menu { display: flex; }
 .portal-student .app-brand { margin-top: 12px; margin-bottom: 12px; }
 .portal-student .student-topbar { padding: 16px 20px; gap: 12px; }
 .portal-student .mobile-menu { border: 1px solid var(--line); border-radius: 8px; background: white; }
 .portal-student .mobile-nav { grid-template-columns: repeat(5,minmax(0,1fr)); background: #fffffff7; min-height: 66px; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px #1b2d4506; }
 .portal-student .mobile-nav button { font-weight: 500; min-height: 64px; gap: 4px; }
 .portal-student .mobile-nav button.active { color: var(--studio-accent); box-shadow: inset 0 3px var(--studio-accent); background: #f5f2fb; }
 .portal-student .app-view { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.portal-close-menu { align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 14px; padding: 8px 10px; border: 1px solid #ffffff30; border-radius: 8px; color: #d5ddec; background: transparent; font-size: 14px; }
.portal-close-menu span { font-size: 25px; }
.portal-backdrop:not([hidden]) { display: block; position: fixed; z-index: 101; inset: 0; border: 0; padding: 0; background: #13233c75; }
body.portal-menu-open { overflow: hidden; }
@media(max-width:640px) {
 .portal-student .public-header { padding: 18px 20px; gap: 12px; }
 .portal-student .public-brand strong { font-size: 14px; }
 .portal-student .teacher-link { font-size: 12px; padding: 8px 10px; text-align: center; }
 .portal-student .login-main { display: flex; flex-direction: column; gap: 25px; padding: 30px 20px 40px; }
 .portal-student .login-story { padding: 0; width: 100%; }
 .portal-student .word-ribbon { display: none; }
 .portal-student .login-story::before { display: none; }
 .portal-student .login-story h1 { font-size: 42px; }
 .portal-student .login-story>p:not(.eyebrow) { font-size: 15px; margin: 18px 0 0; line-height: 1.65; }
 .portal-student .login-benefits { display: none; }
 .portal-student .login-card { width: 100%; padding: 26px 24px; }
 .portal-student .login-card h2 { font-size: 26px; }
 .portal-student .topbar-copy h1 { font-size: 20px; }
 .portal-student .student-topbar { min-height: 80px; padding: 16px; }
 .portal-student .topbar-copy p { font-size: 12px; }
 .portal-student .app-view { padding: 22px 16px 100px; }
 .portal-student .welcome-panel { padding: 28px; min-height: 0; }
 .portal-student .welcome-panel h2 { font-size: 36px; }
 .portal-student .today-orbit { display: none; }
 .portal-student .welcome-panel p:not(.eyebrow) { font-size: 14px; }
 .portal-discover { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
 .portal-discover>a { padding: 16px; }
 .portal-discover span>span { display: block; }
 .portal-student .home-grid { margin-top: 16px; gap: 16px; }
 .portal-student :is(.next-card,.weekly-card) { padding: 24px; min-height: 0; }
 .portal-student .study-heading { margin-bottom: 18px; }
 .portal-student .study-heading h2 { font-size: 26px; }
 .portal-student .study-heading .eyebrow { display: none; }
 .portal-student .study-heading p:not(.eyebrow) { margin-top: 9px; font-size: 13px; }
 .portal-student .study-heading:not(.review-study-heading)>div:first-child>p:not(.eyebrow) { display: none; }
 .portal-student .study-heading:has(.level-switch)>div:first-child { display: none; }
 .portal-student .study-heading:has(.level-switch) { gap: 0; margin-bottom: 12px; }
 .portal-student .level-switch { width: 100%; margin-top: 0; }
 .portal-student .study-mode-tabs { margin-bottom: 14px; }
 .portal-student .study-progress { margin-bottom: 16px; }
 .portal-student .flashcard-layout { gap: 16px; }
 .portal-student .deck-menu { margin-bottom: 0; max-height: none; overflow-y: hidden; overflow-x: auto; padding-right: 0; }
 .portal-student .memory-card { height: 270px; }
 .portal-student .card-controls { margin-top: 12px; }
 .portal-student .card-toolbar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
 .portal-student .card-counter { white-space: nowrap; }
 .portal-student .card-counter small { display: none; }
 .portal-student .card-streak { order: 0; margin: 0; justify-self: center; }
 .portal-student .card-toolbar-actions { order: 0; width: auto; }
 .portal-student .card-toolbar-actions b { display: none; }
 .portal-student .card-toolbar-actions button { min-height: 44px; padding: 5px; }
 .portal-student .direction-toggle span { white-space: nowrap; }
 .portal-student .focus-toggle { min-width: 44px; justify-content: center; }
 .portal-professor.ux-refresh .dashboard { padding: 20px 16px 40px; }
 .portal-professor.ux-refresh .topbar { gap: 10px; margin-bottom: 20px; padding-bottom: 18px; }
 .portal-professor.ux-refresh .topbar h1 { font-size: 22px; }
 .portal-professor.ux-refresh .topbar .kicker { font-size: 12px; }
 .portal-professor.ux-refresh .profile-badge { display: none; }
 .portal-professor.ux-refresh .teacher-logout { margin-left: auto; font-size: 12px; padding-inline: 10px; }
 .portal-professor.ux-refresh .overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .portal-professor.ux-refresh .overview article { min-height: 82px; padding: 14px; }
 .portal-professor.ux-refresh .overview article:nth-child(3),.portal-professor.ux-refresh .overview-actions { grid-column: auto; }
 .portal-professor.ux-refresh .overview article span.stat-icon { display: none; }
 .portal-professor.ux-refresh .tracker { display: block; }
 .portal-professor.ux-refresh .student-browser { margin-bottom: 16px; }
 .portal-professor.ux-refresh .welcome-workspace { min-height: 240px; padding: 28px; }
 .portal-professor.ux-refresh .grammar-library-list { grid-template-columns: 1fr; }
 .portal-professor.ux-refresh .grammar-library-head { padding: 24px; }
 .portal-professor.ux-refresh .grammar-library-head h2 { font-size: 32px; }
 .portal-professor.ux-refresh .activity-library-head h2 { font-size: 31px; }
 .portal-professor.ux-refresh .activity-library-head { padding: 24px; }
 .portal-professor.ux-refresh .activity-card-copy { padding: 22px; }
 .portal-professor.ux-refresh .grammar-lesson-head { grid-template-columns: 1fr; gap: 12px; padding: 18px; background: var(--studio-navy); }
 .portal-professor.ux-refresh .grammar-title-block { border: 0; padding: 0; }
 .portal-professor.ux-refresh .grammar-title-block h2 { font-size: 29px; }
 .portal-professor.ux-refresh .grammar-title-block>p:last-child { font-size: 13px; line-height: 1.5; }
 .portal-professor.ux-refresh .grammar-lesson-meta { align-items: center; gap: 12px; }
 .portal-professor.ux-refresh .grammar-lesson-meta>span { min-width: 0; border: 0; padding: 0; text-align: left; }
 .portal-professor.ux-refresh .grammar-lesson-meta>span strong { display: inline; font-size: 14px; margin-right: 4px; }
 .portal-professor.ux-refresh .grammar-lesson-meta button { margin-left: auto; }
 .portal-professor.ux-refresh .grammar-lesson-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .portal-professor.ux-refresh .grammar-lesson-nav button { min-height: 52px; grid-template-columns: 22px 1fr; grid-template-rows: auto; gap: 4px; padding: 8px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
 .portal-professor.ux-refresh .grammar-lesson-nav button>span { width: 22px; height: 22px; font-size: 11px; grid-row: auto; }
 .portal-professor.ux-refresh .grammar-lesson-nav strong { font-size: 11px; align-self: center; }
 .portal-professor.ux-refresh .grammar-lesson-nav small { display: none; }
 .portal-professor.ux-refresh .grammar-lesson-nav button:nth-child(3n) { border-right: 0; }
 .portal-professor.ux-refresh .lesson-whiteboard { margin: 10px 0; }
 .portal-professor.ux-refresh .dashboard:has(.tracker[data-view=students]) .overview { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
 .portal-professor.ux-refresh .dashboard:has(.tracker[data-view=students]) .overview article { min-height: 74px; padding: 10px 8px; }
 .portal-professor.ux-refresh .dashboard:has(.tracker[data-view=students]) .overview article strong { font-size: 22px; }
 .portal-professor.ux-refresh .dashboard:has(.tracker[data-view=students]) .overview article div>span { font-size: 11px; line-height: 1.3; }
 .portal-professor.ux-refresh .dashboard:has(.tracker[data-view=students]) .overview-actions .button { flex-direction: column; gap: 3px; padding: 9px 5px; min-width: 0; font-size: 12px; }
 .portal-professor .tracker[data-view=students]>.portal-student-picker:not([hidden]) { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 14px; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: 600 14px var(--ui-font); }
 .portal-student-picker span { color: var(--studio-accent); font-size: 12px; font-weight: 500; }
 .portal-professor.portal-selection-compact .tracker[data-view=students]>.student-browser { display: none; }
 .portal-videos .video-header { padding: 18px 16px; }
 .portal-videos .intro { margin: 24px 0; }
 .portal-videos .intro h1 { font-size: 37px; }
 .portal-videos .filters { gap: 8px; }
 .portal-videos .filters button { padding: 10px 13px; }
 .portal-videos .lesson-heading h2 { font-size: 30px; }
 .portal-videos.video-lesson-open main { padding-top: 20px; }
 .portal-videos .lesson-heading { margin: 22px 0 18px; }
 .portal-videos .player-status { min-height: 46px; }
 .portal-images .page-head { height: auto; padding: 16px; margin-bottom: 0; }
 .portal-images .page-head a { display: inline-flex; padding: 9px 12px; font-size: 13px; }
 .portal-images .page-head h1 { font-size: 21px; margin: 14px 0; }
 .portal-images .viewer { height: calc(100dvh - 140px); }
 .portal-images .viewer.focused { height: 100dvh; }
}
@media(max-width:640px) and (max-height:740px) {
 .portal-student .student-topbar { min-height: 66px; padding-block: 8px; }
 .portal-student .app-view { padding-top: 12px; }
 .portal-student .study-mode-tabs { margin-bottom: 8px; }
 .portal-student .study-progress { margin-bottom: 10px; }
 .portal-student .flashcard-layout { gap: 10px; }
 .portal-student .memory-card { height: 200px; }
 .portal-student .card-face { padding: 48px 24px; }
 .portal-student .card-face small { top: 18px; }
 .portal-student .card-face>i { bottom: 18px; }
 .portal-student .card-audio-button { bottom: 12px; }
}
/* Learning focus and reduced-motion preferences always take precedence. */
body.portal-student.flashcard-focus .student-main { margin-left: 0; }
body.portal-student.flashcard-focus .app-view { padding: 20px 28px; }
@media(max-width:640px) { body.portal-student.flashcard-focus .app-view { padding: 12px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto!important; } .portal-student .student-sidebar,.portal-professor.ux-refresh .sidebar,.portal-videos .video-card,.portal-discover>a { transition: none; } }
