/* Silicon Academy learner screens: Today, Map, Fix-it, Progress and practice focus mode.
   Scoped to Academy learners so teaching workspaces keep their own UI. Colours are the live Silicon Workshop palette. */
body.academy-adventure{background:#F6F4EE;color:#141A33}
.academy-adventure .app-shell{display:block!important;background:#F6F4EE!important}
.academy-adventure .mode-rail,.academy-adventure .context-panel,.academy-adventure .tab-bar,.academy-adventure .bottom-nav{display:none!important}
.academy-adventure .workspace{position:relative;grid-column:auto!important;min-width:0;margin:0!important;padding:0!important}
/* The account tools (notifications, profile) sit inside the learner top bar instead of a second header row. */
.academy-adventure .workspace-header{position:absolute!important;top:0;left:auto!important;right:max(12px,calc((100% - 1120px)/2 + 12px));z-index:6;width:auto;height:60px;min-height:60px;margin:0;padding:0;background:transparent;border:0;box-shadow:none;justify-content:flex-end}
.academy-adventure .workspace-header .mobile-menu,.academy-adventure .workspace-header .top-brand,.academy-adventure .workspace-header .top-nav,.academy-adventure .workspace-header .command-trigger,.academy-adventure .workspace-header .search-trigger,.academy-adventure .workspace-header [data-action=search],.academy-adventure .workspace-header [data-action=open-nav]{display:none!important}
.academy-adventure .view{padding:0!important;min-height:0;background:transparent!important}
.academy-adventure .workspace-header,.academy-adventure .header-tools{background:transparent!important;box-shadow:none!important;border:0!important}
.academy-adventure .header-tools{gap:4px}
.academy-adventure .profile-switch{height:44px;padding:0 2px;border:0;background:transparent}
.academy-adventure .profile-switch p{display:none!important}
.academy-adventure .notification-button{background:transparent;border:0}

.lx-page,.lx-session{max-width:1120px;margin:0 auto;padding:0 20px 24px;font-family:'DM Sans',system-ui,sans-serif;color:#141A33}
.lx-page *,.lx-session *{box-sizing:border-box}
.lx-page h1,.lx-page h2,.lx-page h3{font-family:'Bricolage Grotesque','DM Sans',sans-serif;letter-spacing:-.025em;margin:0}
.lx-page p{margin:0}
.lx-page a:focus-visible,.lx-page button:focus-visible,.lx-page summary:focus-visible,.lx-page select:focus-visible,.lx-page input:focus-visible{outline:3px solid #283593;outline-offset:2px}
.lx-next a:focus-visible,.lx-next button:focus-visible{outline-color:#F6D47E}

/* Top bar and tabs */
.lx-top{display:flex;align-items:center;gap:20px;height:60px;padding-right:100px}
.lx-brand{display:flex;align-items:center;gap:8px;color:#141A33;text-decoration:none;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:17px;letter-spacing:-.02em;white-space:nowrap}
.lx-brand b{font-weight:800}
.lx-mark{flex:none;display:block}
.lx-tabs{display:flex;gap:4px}
.lx-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;color:#5B6079;font-size:14px;font-weight:700;text-decoration:none}
.lx-tab svg{width:18px;height:18px}
.lx-tab:hover{color:#141A33;background:#ECE9E1}
.lx-tab.is-active{background:#ECEEF8;color:#283593}
.lx-badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#EAA431;color:#141A33;font-size:11px;font-weight:700;display:inline-grid;place-items:center}
.lx-studio{margin-left:auto;font-size:14px;font-weight:700;color:#283593;text-decoration:none;min-height:40px;display:inline-flex;align-items:center}

/* Shared pieces */
.lx-head{margin:8px 0 14px}
.lx-head>p:first-child{font-size:14px;font-weight:500;color:#5B6079}
.lx-head h1{font-weight:800;font-size:32px;line-height:1.05;letter-spacing:-.035em}
.lx-lead{font-size:15px;line-height:1.45;color:#5B6079;margin-top:6px!important;max-width:560px}
.lx-section{margin-top:20px}
.lx-section-title{font-family:'DM Sans',sans-serif!important;font-size:15px;font-weight:700;letter-spacing:0!important;color:#333A55;margin:0 0 8px!important}
.lx-empty{font-size:15px;line-height:1.45;color:#5B6079;background:#fff;border-radius:18px;padding:16px}
.lx-object{flex:none;display:grid;place-items:center;background:#ECEEF8;border-radius:18px;color:#283593}
.lx-object img{display:block;height:auto}
.lx-object-m{width:76px;height:76px}.lx-object-m img{width:60px}
.lx-object-s{width:44px;height:44px;border-radius:12px}.lx-object-s img{width:34px}
.lx-object-icon svg{width:22px;height:22px}
.lx-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border:0;border-radius:999px;background:#283593;color:#fff;font:700 16px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer}
.lx-button:hover{background:#1A2366}
.lx-button-warm{background:#EAA431;color:#141A33}.lx-button-warm:hover{background:#DD9620}
.lx-pill{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:0;border-radius:999px;background:#283593;color:#fff;font:700 14px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer}
.lx-pill-quiet{background:#ECEEF8;color:#1A2366}
.lx-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#283593;font-weight:700;text-decoration:none}
.lx-bar{display:block;width:100%;height:6px;border-radius:999px;background:#ECE9E1;overflow:hidden}
.lx-bar i{display:block;height:100%;border-radius:inherit;background:#283593}
.lx-accent{color:#283593!important;font-weight:700}

/* Today */
.lx-today{display:grid;gap:12px;align-items:start}
.lx-next{background:#283593;color:#fff;border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:14px}
.lx-next-top{display:flex;align-items:flex-start;gap:12px}
.lx-next-copy{flex:1;min-width:0}
.lx-eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#F6D47E}
.lx-next h2{font-weight:800;font-size:26px;line-height:1.08;margin-top:4px;overflow-wrap:anywhere}
.lx-next-detail{margin-top:6px!important;font-size:15px;line-height:1.45;color:#D9DDF5}
.lx-next .lx-button{width:100%}
.lx-next-done{background:#fff;color:#141A33}
.lx-next-done .lx-eyebrow{color:#7A4E0B}
.lx-next-done .lx-next-detail{color:#5B6079}
.lx-today .lx-section{margin-top:0}
.lx-list{display:flex;flex-direction:column;gap:8px}
.lx-row{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 12px;border:0;border-radius:18px;background:#fff;color:#141A33;font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.lx-row:hover{background:#FBFAF7}
.lx-row>svg{flex:none;color:#5B6079}
.lx-row-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-row-copy small{font-size:13px;color:#5B6079}
.lx-row-copy strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.lx-row-feature{background:#FCF1DC}.lx-row-feature:hover{background:#FAEBD0}
.lx-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lx-subject{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:18px;background:#fff;color:#141A33;text-decoration:none}
.lx-subject:hover{background:#FBFAF7}
.lx-subject-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.lx-subject-copy strong{font-size:15px}
.lx-subject-copy small{font-size:13px;line-height:1.3;color:#5B6079}

/* Today: hero, map panel, week and last session. Two columns from 900px, stacked below. */
.lx-home{display:grid;gap:16px;align-items:start;margin-top:8px}
.lx-home-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.lx-home-side{min-width:0}
.lx-hero{display:flex;flex-wrap:wrap;background:#283593;color:#fff;border-radius:28px;overflow:hidden}
.lx-hero-copy{flex:1 1 300px;min-width:0;padding:28px;display:flex;flex-direction:column;gap:14px}
.lx-hero h1{font-weight:800;font-size:clamp(30px,4.2vw,44px);line-height:1;letter-spacing:-.04em;overflow-wrap:anywhere}
.lx-hero-topic{color:#F6D47E}
.lx-hero-detail{font-size:16px;line-height:1.5;color:#D9DDF5;max-width:420px}
.lx-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:2px}
.lx-button-butter{background:#F6D47E;color:#141A33;min-height:54px;padding:0 26px;font-size:17px}
.lx-button-butter:hover{background:#F1C65C}
.lx-hero a:focus-visible,.lx-hero button:focus-visible{outline-color:#F6D47E}
.lx-also{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.lx-also button{width:100%;min-height:48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:8px 14px;border:0;border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font:500 15px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.lx-also button:hover{background:rgba(255,255,255,.16)}
.lx-also span{min-width:0;overflow-wrap:anywhere}
.lx-also small{order:-1;font-size:12px;font-weight:700;color:#F6D47E}
.lx-scene{flex:1 1 240px;min-height:240px;display:flex;align-items:center;justify-content:center;padding:20px;background:#3A47A8}
.lx-scene-art{width:100%;max-width:320px;height:auto;display:block}
.lx-plate{width:200px;height:200px;border-radius:999px;background:#ECEEF8;display:grid;place-items:center}
.lx-plate img{width:150px;height:auto;display:block}

.lx-mapcard{background:#fff;border-radius:28px;padding:24px;display:flex;flex-direction:column;gap:14px}
.lx-mapcard-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.lx-mapcard h2{font-weight:700;font-size:24px;letter-spacing:-.02em}
.lx-mapcard-head a{min-height:44px;display:inline-flex;align-items:center;font-size:14px;font-weight:700;color:#283593;text-decoration:none}
.lx-mapcard-sub{font-size:15px;line-height:1.45;color:#5B6079}
.lx-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:#333A55}
.lx-legend li{display:flex;align-items:center;gap:6px}
.lx-legend i{width:14px;height:14px;border-radius:4px}
.lx-areas{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.lx-area{display:flex;flex-direction:column;gap:6px}
.lx-area.is-today{margin:0 -10px;padding:8px 10px;border-radius:14px;background:#ECEEF8}
.lx-area-name{font-size:15px;font-weight:700;line-height:1.3}
.lx-area-name b{color:#283593}
.lx-legend i{display:block;flex:none}
.is-secure{--tile:#1E6A47}.is-working{--tile:#EAA431}.is-new{--tile:#ECE9E1}
.lx-legend i{background:var(--tile)}

.lx-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lx-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.lx-card-head h2{font-family:'DM Sans',sans-serif!important;font-size:16px;font-weight:700;letter-spacing:0!important}
.lx-card-head span{font-size:14px;color:#5B6079}
.lx-week{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.lx-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.lx-days li{height:36px;border-radius:10px;background:#ECE9E1;color:#5B6079;font-size:12px;font-weight:700;display:grid;place-items:center}
.lx-days li.is-done{background:#283593;color:#fff}
.lx-days li.is-today:not(.is-done){background:#fff;box-shadow:inset 0 0 0 2px #283593;color:#283593}
.lx-days li.is-future{background:#fff;box-shadow:inset 0 0 0 2px #E6E2D8}
.lx-card.lx-last{background:#F6D47E;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.lx-last .lx-card-head span{color:#333A55}
.lx-page .lx-last-score{font-family:'Bricolage Grotesque',sans-serif!important;font-weight:800;font-size:34px!important;line-height:1.05!important;letter-spacing:-.03em;color:#141A33}
.lx-last-note{font-size:14px;line-height:1.4;color:#333A55}

.lx-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lx-how>div{background:#fff;border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:6px}
.lx-how>div.is-first{background:#F6D47E}
.lx-how b{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:28px;line-height:1;color:#5B6079}
.lx-how .is-first b{color:#141A33}
.lx-how strong{font-size:16px}
.lx-how span{font-size:14px;line-height:1.45;color:#333A55}
.lx-subject-add{border:2px dashed #C5CAE9;background:transparent;align-items:center}
.lx-subject-add:hover{background:#fff}
.lx-add-objects{flex:none;display:flex}
.lx-add-objects .lx-object+.lx-object{margin-left:-14px}

/* Subjects and year group */
.lx-settings{margin-top:20px;border-radius:18px;background:#fff}
.lx-section .lx-settings{margin-top:0}
.lx-settings summary,.lx-group summary,.lx-review summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;cursor:pointer;list-style:none}
.lx-settings summary::-webkit-details-marker,.lx-group summary::-webkit-details-marker,.lx-review summary::-webkit-details-marker{display:none}
.lx-settings summary>span,.lx-group summary>span,.lx-review summary>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-settings summary strong,.lx-group summary strong,.lx-review summary strong{font-size:16px}
.lx-settings summary small,.lx-group summary small,.lx-review summary small{font-size:13px;color:#5B6079}
.lx-settings summary>svg,.lx-group summary>svg,.lx-review summary>svg{flex:none;color:#5B6079;transition:transform .15s}
.lx-settings[open] summary>svg,.lx-group[open] summary>svg,.lx-review[open] summary>svg{transform:rotate(90deg)}
.lx-settings form{padding:0 16px 16px;display:flex;flex-direction:column;gap:14px}
.lx-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lx-fields label:where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)){display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}
.lx-fields select{min-height:44px;padding:0 10px;border:1px solid #E6E2D8;border-radius:12px;background:#fff;color:#141A33;font:500 15px 'DM Sans',sans-serif}
.lx-settings fieldset{border:0;margin:0;padding:0}
.lx-settings legend{padding:0;margin-bottom:8px;font-size:14px;font-weight:700}
.lx-checks{display:flex;flex-wrap:wrap;gap:8px}
.lx-checks label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid #E6E2D8;border-radius:999px;font-size:14px;font-weight:500;cursor:pointer}
.lx-checks label[hidden]{display:none}
.lx-checks input{width:18px;height:18px;accent-color:#283593;margin:0}
.lx-settings .lx-button{align-self:flex-start}

/* Map */
.lx-chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;margin:0 -20px;padding-inline:20px;scrollbar-width:none}
.lx-chips::-webkit-scrollbar{display:none}
.lx-chip{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid #E6E2D8;border-radius:999px;background:#fff;color:#333A55;font-size:14px;font-weight:700;text-decoration:none}
.lx-chip.is-active{background:#141A33;border-color:#141A33;color:#fff}
.lx-map-head{display:flex;align-items:center;gap:14px;margin:4px 0 16px}
.lx-map-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.lx-map-head h1{font-weight:800;font-size:30px;line-height:1.05;letter-spacing:-.03em}
.lx-map-head p{font-size:14px;color:#5B6079}
.lx-map-head .lx-bar{max-width:280px}
.lx-gate{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:16px;border-radius:20px;background:#FCF1DC}
.lx-gate>div{flex:1 1 220px}
.lx-gate h2{font-family:'DM Sans',sans-serif!important;letter-spacing:0!important;font-size:17px;font-weight:700}
.lx-gate p{margin-top:4px!important;font-size:14px;line-height:1.45;color:#333A55}
.lx-groups{display:flex;flex-direction:column;gap:10px}
.lx-group{border-radius:20px;background:#fff}
.lx-topics{list-style:none;margin:0;padding:0 8px 8px}
.lx-topics.lx-card{padding:4px 8px;border-radius:20px;background:#fff}
.lx-topic{display:flex;align-items:center;gap:12px;padding:10px 8px;border-top:1px solid #F0EEE7}
.lx-topics.lx-card .lx-topic:first-child{border-top:0}
.lx-topic-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-topic-copy strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.lx-topic-copy small{font-size:13px;color:#5B6079}
.lx-dot{flex:none;position:relative;width:22px;height:22px;border:2px solid #C5CAE9;border-radius:999px}
.is-secure .lx-dot{background:#1E6A47;border-color:#1E6A47}
.is-secure .lx-dot::after{content:'';position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.is-retry .lx-dot{background:#FCF1DC;border-color:#EAA431}

/* Fix-it */
.lx-page>.lx-main>.lx-next{margin-bottom:4px}
.lx-fixes{list-style:none;margin:0;padding:4px 8px}
.lx-card{border-radius:20px;background:#fff}
.lx-fix{display:flex;align-items:center;gap:12px;padding:12px 8px;border-top:1px solid #F0EEE7}
.lx-fix:first-child{border-top:0}
.lx-prompt{font-size:14px;line-height:1.4;color:#333A55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lx-when{flex:none;max-width:110px;font-size:13px;font-weight:500;color:#5B6079;text-align:right}

/* Practice focus mode and session ending */
.academy-adventure .workspace:has(.lx-session) .workspace-header{display:none!important}
.lx-session{padding-top:12px}
.lx-session .practice-shell,.lx-review .practice-shell{padding:0!important;max-width:none}
.lx-session .practice-context,.lx-review .practice-context,.lx-session .practice-timer{display:none!important}
.lx-session .practice-layout,.lx-review .practice-layout{grid-template-columns:minmax(0,1fr)!important}
.lx-done{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:8px;padding:24px 20px;border-radius:24px;background:#fff;text-align:center}
.lx-done-top{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.lx-score{width:76px;height:76px;display:grid;place-items:center;border-radius:999px;background:#FCF1DC;color:#7A4E0B}
.lx-score.is-secure{background:#E1F2E8;color:#1E6A47}
.lx-score.is-neutral{background:#ECEEF8;color:#283593}
.lx-score strong{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:24px}
.lx-done h1{font-weight:800;font-size:28px;line-height:1.1}
.lx-done>p{max-width:440px;font-size:15px;line-height:1.5;color:#5B6079}
.lx-done-actions{display:flex;flex-direction:column;gap:6px;width:100%;max-width:400px;margin-top:10px}
.lx-done-actions .lx-button{width:100%}
.lx-review{margin-top:14px;border-radius:20px;background:#fff}
.lx-review>:not(summary){padding:0 12px 12px}

/* Today: personality line, next task, key idea */
.lx-hero-quip{display:block;margin-top:8px;font-size:clamp(20px,2.4vw,26px);line-height:1.2;letter-spacing:-.02em;color:#F6D47E}
.lx-hero-next{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.08)}
.lx-page .lx-hero-task{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:24px!important;line-height:1.1;letter-spacing:-.02em;color:#fff}
.lx-hero-next .lx-hero-detail{font-size:15px}
.lx-home-side{display:flex;flex-direction:column;gap:16px}
.lx-idea{background:#FCF3DC;border-radius:24px;padding:20px 22px;display:flex;flex-direction:column;gap:8px}
.lx-page .lx-idea-eyebrow{font-size:12px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7A4E0B}
.lx-idea h2{font-weight:800;font-size:22px;line-height:1.15}
.lx-page .lx-idea-body{font-size:15px!important;line-height:1.5;color:#333A55}
.lx-idea-link{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;min-height:44px;font-size:14px;font-weight:700;color:#283593;text-decoration:none}
.lx-idea-link svg{width:16px;height:16px}

/* Question screen */
.lx-q{max-width:1120px;margin:0 auto;font-family:'DM Sans',system-ui,sans-serif;color:#141A33}
.lx-q *{box-sizing:border-box}
.lx-q-top{display:flex;align-items:center;gap:14px;min-height:64px}
.lx-q-close{flex:none;width:44px;height:44px;border:0;border-radius:999px;background:#ECE9E1;color:#141A33;display:grid;place-items:center;cursor:pointer}
.lx-q-close:hover{background:#E1DDD2}
.lx-q-title{min-width:0;display:flex;flex-direction:column}
.lx-q-title strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lx-q-title small{font-size:13px;color:#5B6079}
.lx-q-bar{flex:1;min-width:60px;height:8px;border-radius:999px;background:#ECE9E1;overflow:hidden}
.lx-q-bar i{display:block;height:100%;border-radius:inherit;background:#283593;transition:width .25s}
.lx-q-count{flex:none;font-family:'DM Mono',monospace;font-size:13px;color:#5B6079}
.lx-q-body{display:grid;gap:16px;align-items:start;padding-bottom:24px}
.lx-q-card{background:#fff;border-radius:28px;padding:28px;min-width:0}
.lx-page .lx-q-meta,.lx-q .lx-q-meta{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;font-size:13px!important;color:#5B6079}
.lx-q-meta b{flex:none;padding:3px 10px;border-radius:999px;background:#ECEEF8;color:#1A2366;font-weight:700}
.lx-q-prompt{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(22px,2.6vw,28px);line-height:1.25;letter-spacing:-.015em;margin:4px 0 20px;overflow-wrap:anywhere}
.lx-q .stimulus-card,.lx-q .question-visual{margin-bottom:16px}
.lx-options{border:0;margin:0;padding:0;display:grid;gap:10px}
.lx-option{position:relative;display:flex;align-items:center;gap:14px;min-height:58px;padding:12px 16px;border:2px solid #E6E2D8;border-radius:18px;background:#fff;font-size:17px;cursor:pointer;transition:border-color .15s,background .15s}
.lx-option:hover{border-color:#C5CAE9}
.lx-option input{position:absolute;opacity:0;width:1px;height:1px}
.lx-option:has(input:checked){border-color:#283593;background:#ECEEF8}
.lx-option:has(input:focus-visible){outline:3px solid #283593;outline-offset:2px}
.lx-option-letter{flex:none;width:32px;height:32px;border-radius:10px;background:#ECE9E1;color:#333A55;font-size:14px;font-weight:700;display:grid;place-items:center}
.lx-option:has(input:checked) .lx-option-letter{background:#283593;color:#fff}
.lx-q .lx-option-text{min-width:0;overflow-wrap:anywhere;font-size:18px!important;line-height:1.35;color:#141A33}
.lx-option-text svg{display:block;max-width:120px;height:auto;margin-bottom:4px}
.lx-option.is-correct{border-color:#1E6A47;background:#E1F2E8}
.lx-option.is-correct .lx-option-letter{background:#1E6A47;color:#fff}
.lx-option.is-chosen-wrong{border-color:#B42318;background:#FEE4E2}
.lx-option.is-chosen-wrong .lx-option-letter{background:#B42318;color:#fff}
.lx-option.is-dim{opacity:.55}
.lx-option:has(input:disabled){cursor:default}
.lx-input{display:flex;flex-direction:column;gap:8px}
.lx-input label{font-size:14px;font-weight:700}
.lx-input input,.lx-input textarea{width:100%;min-height:58px;padding:12px 16px;border:2px solid #E6E2D8;border-radius:16px;background:#fff;color:#141A33;font:500 20px 'DM Sans',sans-serif}
.lx-input textarea{font-size:16px;line-height:1.5;resize:vertical}
.lx-input input:focus,.lx-input textarea:focus{outline:0;border-color:#283593;box-shadow:0 0 0 4px #ECEEF8}
.lx-keys{display:flex;flex-wrap:wrap;gap:8px}
.lx-key{min-width:52px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:#ECE9E1;color:#141A33;font:700 17px 'DM Sans',sans-serif;cursor:pointer}
.lx-key:hover{background:#E1DDD2}
.lx-your-answer{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:16px;background:#F6F4EE}
.lx-your-answer small{font-size:13px;color:#5B6079}
.lx-your-answer strong{font-size:20px;overflow-wrap:anywhere}
.lx-hint{margin-top:14px;border-radius:16px;background:#FCF3DC}
.lx-hint summary{min-height:48px;display:flex;align-items:center;padding:0 16px;font-weight:700;color:#7A4E0B;cursor:pointer}
.lx-hint .lx-steps-list{padding:0 16px 14px 36px}
.lx-q-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:20px}
.lx-skip{min-height:50px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:#5B6079;font:700 16px 'DM Sans',sans-serif;cursor:pointer}
.lx-skip:hover{background:#ECE9E1;color:#141A33}
.lx-steps-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.lx-steps-list li{font-size:16px!important;line-height:1.5}

/* Result panel beside the question */
.lx-result{background:#fff;border-radius:28px;padding:24px;display:flex;flex-direction:column;gap:16px;border-top:6px solid #C5CAE9;outline:0}
.lx-result.is-right{border-top-color:#1E6A47}.lx-result.is-wrong{border-top-color:#B42318}.lx-result.is-skipped{border-top-color:#EAA431}
.lx-result-head{display:flex;align-items:center;gap:12px}
.lx-result-icon{flex:none;width:44px;height:44px;border-radius:999px;display:grid;place-items:center;font-size:20px;font-weight:800;background:#ECEEF8;color:#283593}
.is-right .lx-result-icon{background:#E1F2E8;color:#1E6A47}.is-wrong .lx-result-icon{background:#FEE4E2;color:#B42318}.is-skipped .lx-result-icon{background:#FCF1DC;color:#7A4E0B}
.lx-result h2{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:24px;line-height:1.1;margin:0}
.lx-q .lx-result-head p{margin:2px 0 0;font-size:14px!important;color:#5B6079}
.lx-result-answer{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:16px;background:#E1F2E8}
.lx-result-answer small{font-size:13px;color:#1E6A47;font-weight:700}
.lx-result-answer strong{font-size:20px;overflow-wrap:anywhere}
.lx-result h3,.lx-rev-body h3{font-family:'DM Sans',sans-serif;font-size:15px;font-weight:700;margin:0 0 8px}
.lx-result-watch{padding:12px 16px;border-radius:16px;background:#FCF3DC}
.lx-q .lx-result-watch p{margin:0;font-size:14px!important;line-height:1.5;color:#333A55}
.lx-q .lx-result-note{margin:0;font-size:14px!important;line-height:1.45;color:#5B6079}
.lx-result-next{width:100%}

/* Session ending */
.lx-done-stats{list-style:none;margin:6px 0 0;padding:0;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.lx-done-stats li{min-width:96px;padding:10px 14px;border-radius:16px;background:#F6F4EE;display:flex;flex-direction:column;align-items:center}
.lx-done-stats strong{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:22px}
.lx-done-stats small{font-size:13px;color:#5B6079}
.lx-revs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.lx-rev{border-radius:20px;background:#fff;border-left:6px solid #C5CAE9}
.lx-rev.is-right{border-left-color:#1E6A47}.lx-rev.is-wrong{border-left-color:#B42318}.lx-rev.is-skipped{border-left-color:#EAA431}
.lx-rev summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;cursor:pointer;list-style:none}
.lx-rev summary::-webkit-details-marker{display:none}
.lx-rev-num{flex:none;width:30px;height:30px;border-radius:999px;background:#ECE9E1;font-size:13px;font-weight:700;display:grid;place-items:center}
.lx-rev-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-rev-copy small{font-size:13px;color:#5B6079}
.lx-rev-copy strong{font-size:15px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lx-rev[open] .lx-rev-copy strong{display:block}
.lx-rev-marks{flex:none;font-family:'DM Mono',monospace;font-size:14px}
.lx-rev-body{padding:0 16px 16px 58px;display:flex;flex-direction:column;gap:12px}
.lx-rev-pair{display:flex;flex-wrap:wrap;gap:10px}
.lx-rev-pair>div{flex:1 1 160px;padding:10px 14px;border-radius:14px;background:#F6F4EE;display:flex;flex-direction:column;gap:2px}
.lx-rev-pair small{font-size:12px;color:#5B6079}
.lx-rev-pair strong{font-size:16px;overflow-wrap:anywhere}

/* Map: syllabus page */
.lx-syl{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.lx-syl>*{min-width:0}
.lx-syl-areas{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:0 20px 2px}
.lx-syl-areas::-webkit-scrollbar{display:none}
.lx-syl-area{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;color:#333A55;font-size:14px;font-weight:700;text-decoration:none}
.lx-syl-area small{font-size:12px;font-weight:500;color:#5B6079}
.lx-syl-area.is-active{background:#283593;color:#fff}.lx-syl-area.is-active small{color:#D9DDF5}
.lx-syl-panel{background:#fff;border-radius:28px;padding:22px 24px;min-width:0}
.lx-syl-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.lx-syl-panel-head h2{font-weight:800;font-size:24px;line-height:1.15}
.lx-syl-panel-head span{font-size:14px;color:#5B6079;flex:none}
.lx-syl-topics{list-style:none;margin:0;padding:0}
.lx-syl-topic{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #F0EEE7}
.lx-syl-topic:first-child{border-top:0}
.lx-syl-topic.is-next{margin:0 -12px;padding:12px;border-radius:16px;background:#ECEEF8;border-top-color:transparent}
.lx-syl-topic.is-next+.lx-syl-topic{border-top-color:transparent}
.lx-syl-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-syl-name strong{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.lx-syl-name small{font-size:13px;color:#5B6079}
.is-next .lx-syl-name small{color:#283593;font-weight:700}
.lx-syl-steps{flex:none;display:flex;gap:4px}
.lx-syl-steps i{width:16px;height:8px;border-radius:999px;background:#ECE9E1}
.is-working .lx-syl-steps i.on{background:#EAA431}
.is-secure .lx-syl-steps i.on{background:#1E6A47}

/* Footer */
.academy-adventure .lx-footer{max-width:1120px;margin:12px auto 0;padding:16px 20px 24px;border-top:1px solid #E6E2D8;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;color:#5B6079;font-size:12px;font-family:'DM Sans',sans-serif}
.lx-footer nav{display:flex;flex-wrap:wrap;gap:16px}
.lx-footer a{color:inherit;text-decoration:none;min-height:24px;display:inline-flex;align-items:center}
.lx-footer a:hover{text-decoration:underline}

/* Learn: greeting, next-step banner, streak / Fix-it / key idea down the side, subject tiles. */
.lx-hello{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:10px 0 16px}
.lx-hello h1{font-weight:800;font-size:clamp(26px,3.2vw,34px);line-height:1.05;letter-spacing:-.035em}
.lx-page .lx-hello p{font-family:'Bricolage Grotesque','DM Sans',sans-serif;font-weight:700;font-size:clamp(18px,2.2vw,24px)!important;letter-spacing:-.02em;color:#283593}
.lx-banner{display:flex;flex-wrap:wrap;background:#283593;color:#fff;border-radius:24px;overflow:hidden;margin-bottom:20px}
.lx-banner-copy{flex:1 1 360px;min-width:0;padding:24px 28px;display:flex;flex-direction:column;gap:10px}
.lx-banner h2{font-weight:800;font-size:clamp(24px,3vw,32px);line-height:1.05;letter-spacing:-.035em;overflow-wrap:anywhere}
.lx-page .lx-banner-detail{font-size:15px!important;line-height:1.5;color:#D9DDF5;max-width:520px}
.lx-banner-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.lx-banner a:focus-visible,.lx-banner button:focus-visible{outline-color:#F6D47E}
.lx-banner-also{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.lx-banner-also button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:44px;max-width:280px;padding:7px 14px;border:0;border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font:500 14px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.lx-banner-also button:hover{background:rgba(255,255,255,.16)}
.lx-banner-also small{font-size:12px;font-weight:700;color:#F6D47E}
.lx-banner .lx-scene{flex:0 1 300px;min-height:200px;padding:16px}
.lx-banner .lx-scene-art{max-width:240px}
.lx-banner .lx-plate{width:150px;height:150px}.lx-banner .lx-plate img{width:110px}
.lx-learn{display:grid;gap:16px;align-items:start}
.lx-learn-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.lx-streak{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:20px;background:#FCF3DC}
.lx-streak-count{flex:none;display:flex;align-items:center;gap:4px;color:#5B6079}
.lx-streak-count svg{width:22px;height:22px}
.lx-streak-count.is-on{color:#C2410C}.lx-streak-count.is-on svg{fill:#EAA431;stroke:#C2410C}
.lx-streak-count b{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:24px;color:#141A33}
.lx-streak-days{flex:1;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.lx-streak-days li{height:28px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:700;color:#7A4E0B}
.lx-streak-days li.is-done{background:#EAA431;color:#141A33}
.lx-streak-days li.is-today:not(.is-done){box-shadow:inset 0 0 0 2px #EAA431}
.lx-streak-days li.is-future{color:#B49A6C}
.lx-fixcard{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;border-radius:20px;background:#fff;color:#141A33;text-decoration:none}
.lx-fixcard:hover{background:#FBFAF7}
.lx-fixcard>svg:first-child{flex:none;width:36px;height:36px;padding:8px;border-radius:12px;background:#FCF1DC;color:#7A4E0B}
.lx-fixcard>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lx-fixcard strong{font-size:15px}.lx-fixcard small{font-size:13px;color:#5B6079}
.lx-fixcard>svg:last-child{flex:none;color:#5B6079}
.lx-subjtiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.lx-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:150px;padding:16px;border-radius:20px;background:var(--tile,#ECEEF8);color:#141A33;text-decoration:none;overflow:hidden;transition:transform .15s}
.lx-tile:hover{transform:translateY(-2px)}
.lx-tile-art{width:64px;height:52px;display:block}
.lx-tile-art img{width:100%;height:100%;object-fit:contain;object-position:left top;display:block}
.lx-tile-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.lx-tile-copy strong{font-family:'Bricolage Grotesque','DM Sans',sans-serif;font-weight:800;font-size:19px;letter-spacing:-.02em}
.lx-tile-copy small{font-size:13px;line-height:1.3;color:#333A55}
.lx-tile .lx-bar{background:rgba(20,26,51,.1)}
.lx-tile-edit{background:#fff;border:2px dashed #C5CAE9;justify-content:flex-start}
.lx-tile-edit>svg{width:26px;height:26px;color:#283593}
.lx-tile-edit .lx-tile-copy strong{font-size:16px}

/* Track */
.lx-stats{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.lx-stats li{background:#fff;border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.lx-stats strong{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.lx-stats small{font-size:13px;color:#5B6079}
.lx-subcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.lx-subcard{background:#fff;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px}
.lx-subcard-head{display:flex;align-items:center;gap:12px}
.lx-subcard-head>div{flex:1;min-width:0}
.lx-subcard h3{font-family:'DM Sans',sans-serif!important;letter-spacing:0!important;font-size:16px;font-weight:700}
.lx-subcard small{font-size:13px;color:#5B6079}
.lx-stack{display:flex;height:10px;border-radius:999px;background:#ECE9E1;overflow:hidden}
.lx-stack i{display:block;height:100%;background:var(--tile)}
.lx-hists{list-style:none;margin:0;padding:4px 8px;border-radius:20px;background:#fff}
.lx-hists li+li{border-top:1px solid #F0EEE7}
.lx-hist{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 8px;color:#141A33;text-decoration:none;border-radius:14px}
.lx-hist:hover{background:#FBFAF7}
.lx-hist>svg{flex:none;color:#5B6079}
.lx-hist-score{flex:none;display:flex;flex-direction:column;align-items:flex-end}
.lx-hist-score b{font-size:15px}.lx-hist-score small{font-size:12px;color:#5B6079}
.lx-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;color:#283593;text-decoration:none}

/* Test */
.lx-filter{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;scrollbar-width:none}
.lx-filter::-webkit-scrollbar{display:none}
.lx-papers{list-style:none;margin:0;padding:4px 8px}
.lx-paper{display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 8px;border-top:1px solid #F0EEE7}
.lx-paper:first-child{border-top:0}
.lx-paper .lx-row-copy small{display:flex;flex-wrap:wrap;gap:4px 12px}

/* Practice paper header: time left and hand in. */
.lx-q-clock{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;background:#ECEEF8;color:#1A2366;font-family:'DM Mono',monospace;font-size:15px}
.lx-q-clock.is-low{background:#FEE4E2;color:#B42318}
.lx-q-handin{flex:none;min-height:44px;padding:0 16px;border:2px solid #141A33;border-radius:999px;background:#fff;color:#141A33;font:700 14px 'DM Sans',sans-serif;cursor:pointer}

@media (min-width:900px){
 .lx-learn{grid-template-columns:minmax(260px,300px) minmax(0,1fr);gap:20px}
 .lx-subjtiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .lx-home{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px}
 .lx-home-main{gap:20px}
 .lx-hero-copy{padding:36px}
 .lx-subjects{grid-template-columns:repeat(3,minmax(0,1fr))}
 .lx-q-body.has-result{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}
 .lx-q-body.has-result .lx-result{position:sticky;top:16px}
 .lx-q-body:not(.has-result) .lx-q-card{max-width:820px;margin:0 auto;width:100%}
 .lx-q-card{padding:36px}
 .lx-syl{grid-template-columns:260px minmax(0,1fr);gap:20px}
 .lx-syl-areas{flex-direction:column;overflow:visible;margin:0;padding:8px;border-radius:24px;background:#fff;position:sticky;top:16px}
 .lx-syl-area{border-radius:16px;padding:10px 14px;white-space:normal;line-height:1.3}
 .lx-syl-area:not(.is-active):hover{background:#F6F4EE}
}
@media (max-width:640px){
 .lx-banner-copy{padding:20px}
 .lx-banner .lx-scene{order:-1;flex-basis:100%;min-height:0;padding:12px}
 .lx-banner .lx-scene-art{max-width:160px}
 .lx-banner .lx-plate{width:96px;height:96px}.lx-banner .lx-plate img{width:70px}
 .lx-banner-actions .lx-button{width:100%}
 .lx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .lx-tile{min-height:132px}
 .lx-q-top.is-paper{flex-wrap:wrap}
 .lx-q-top.is-paper .lx-q-bar{order:5;flex-basis:100%}
 .lx-q-card{padding:20px;border-radius:24px}
 .lx-q-top{gap:10px}
 .lx-q-title{display:none}
 .lx-q-actions{justify-content:stretch}.lx-q-actions .lx-button{flex:1}
 .lx-result{padding:20px;border-radius:24px}
 .lx-syl-panel{padding:18px;border-radius:24px}
 .lx-syl-topic{flex-wrap:wrap;row-gap:8px}
 .lx-syl-name{flex-basis:calc(100% - 100px)}
 .lx-syl-topic .lx-pill{margin-left:auto}
 .lx-rev-body{padding-left:16px}
}
@media (max-width:640px){
 .lx-hero-copy{padding:22px}
 .lx-scene{order:-1;flex-basis:100%;min-height:0;padding:12px}
 .lx-scene-art{max-width:170px}
 .lx-plate{width:104px;height:104px}.lx-plate img{width:76px}
 .lx-subject-add{grid-column:1/-1}
 .lx-hero-actions .lx-button{width:100%}
 .lx-pair,.lx-how{grid-template-columns:1fr}
 .lx-how>div{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:10px;padding:14px 16px;border-radius:18px}
 .lx-how span{flex-basis:100%}
 .lx-mapcard{padding:20px;border-radius:24px}
}
/* Phones and small tablets: tabs move to a bar along the bottom. */
@media (max-width:759px){
 .lx-page{padding-bottom:96px}
 .lx-top{height:56px;padding-right:96px}
 .lx-brand{font-size:16px}
 .academy-adventure .workspace-header{height:56px;min-height:56px}
 .lx-tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #E6E2D8}
 .lx-tab{flex-direction:column;justify-content:center;gap:2px;min-height:50px;padding:0 4px;border-radius:14px;font-size:12px}
 .lx-tab svg{width:22px;height:22px}
 .lx-tab.is-active{background:transparent}
 .lx-tab:hover{background:transparent}
 .lx-badge{position:absolute;top:2px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px}
 .lx-studio{display:none}
 .academy-adventure .lx-footer{padding-bottom:96px}
}
@media (max-width:420px){
 .lx-page,.lx-session{padding-inline:16px}
 .lx-chips{margin:0 -16px;padding-inline:16px}
 .lx-syl-areas{margin:0 -16px;padding:0 16px 2px}
 .lx-head h1{font-size:30px}
 .lx-next h2{font-size:24px}
 .lx-fields{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.lx-page *{transition:none!important}}

/* Family: parent accounts. Same tokens as the learner screens. */
.fam-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin:4px 0 20px}
.fam-card{background:#fff;border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:14px;color:#141A33;text-decoration:none}
.fam-card-head{display:flex;align-items:flex-start;gap:12px}
.fam-card-head>div{flex:1;min-width:0}
.fam-card-head h2{font-size:20px;font-weight:800;line-height:1.15}
.fam-card-head p{font-size:13px;color:#5B6079;margin:2px 0 8px}
.fam-card-head .fam-badge{display:inline-block}
.fam-avatar{flex:none;width:44px;height:44px;border-radius:14px;background:#283593;color:#F6D47E;display:grid;place-items:center;font:800 16px 'Bricolage Grotesque',sans-serif}
.fam-badge{flex:none;align-self:flex-start;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.fam-badge.is-trial{background:#FDF1D3;color:#7A4E0B}
.fam-badge.is-on{background:#E4F1EA;color:#1E6A47}
.fam-badge.is-off{background:#FBE5E1;color:#9A2E1F}
.fam-card-week{display:flex;flex-direction:column;gap:6px}
.fam-card-week small{font-size:12px;font-weight:700;color:#5B6079;text-transform:uppercase;letter-spacing:.06em}
.fam-week{background:#FBF6E8;border-radius:999px;padding:4px}
.fam-facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fam-facts li{background:#F6F4EE;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.fam-facts strong{font:800 18px/1.15 'Bricolage Grotesque',sans-serif;overflow-wrap:anywhere}
.fam-facts small{font-size:12px;color:#5B6079}
.fam-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #F0EEE7;padding-top:12px}
.fam-login{font-size:13px;color:#5B6079}.fam-login b{color:#141A33;font-family:'DM Mono',monospace;font-weight:500}
.fam-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.fam-add{align-self:start;align-items:center;justify-content:center;text-align:center;min-height:200px;border:2px dashed #CFCBBF;background:transparent;color:#283593}
.fam-add:hover{background:#fff;border-color:#283593}
.fam-add svg{width:32px;height:32px}
.fam-add strong{font:800 18px 'Bricolage Grotesque',sans-serif}
.fam-add small{font-size:13px;color:#5B6079}
.fam-how{margin-bottom:24px}
.fam-plan{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#FDF1D3;border-radius:20px;padding:16px 18px;margin-bottom:14px}
.fam-plan div{display:flex;flex-direction:column;gap:2px}
.fam-plan strong{font-size:16px}.fam-plan small{font-size:13px;color:#5B4A2A}
.fam-weekcard{background:#fff;border-radius:20px;padding:14px}
.fam-hist{display:flex;align-items:center;gap:12px;padding:10px 8px}
.fam-form{display:flex;flex-direction:column;gap:14px;max-width:760px;margin-bottom:32px}
.fam-form-card{background:#fff;border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:14px}
.fam-form-card h2{font-size:20px;font-weight:800}
.fam-hint{font-size:14px;color:#5B6079}
.fam-form input:not([type=checkbox]):where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)),.fam-form select,.fam-form-inline input:where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)){min-height:46px;padding:0 12px;border:1px solid #D9D5CA;border-radius:12px;background:#fff;color:#141A33;font:500 16px 'DM Sans',sans-serif;width:100%}
.fam-form .lx-fields small{font-size:12px;font-weight:500;color:#5B6079}
.fam-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;max-width:280px}
.fam-subjects{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fam-subjects legend{font-size:14px;font-weight:700;padding:0;margin-bottom:8px}
.fam-subjects legend small,.fam-subjects .lx-checks small{font-weight:500;color:#5B6079;font-size:12px}
.fam-consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;background:#fff;border-radius:16px;padding:14px 16px}
.fam-consent input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:#283593}
.fam-consent a{color:#283593;font-weight:700}
.fam-error{color:#9A2E1F;font-weight:700;font-size:14px}
.fam-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px}
.fam-added{max-width:560px;margin:24px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.fam-added h1{outline:none}
.fam-creds{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin:6px 0 0}
.fam-creds div{background:#fff;border-radius:16px;padding:14px}
.fam-creds dt{font-size:12px;font-weight:700;color:#5B6079;text-transform:uppercase;letter-spacing:.06em}
.fam-creds dd{margin:4px 0 0;font:500 18px 'DM Mono',monospace;overflow-wrap:anywhere}
.fam-note{font-size:14px;color:#5B6079}
.fam-reset form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:0 16px 16px}
.fam-reset label:where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)){display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;flex:1;min-width:200px}
@media (max-width:640px){
  .fam-grid{grid-template-columns:1fr}
  .fam-form .lx-fields,.fam-creds{grid-template-columns:1fr}
  .fam-form-actions{flex-direction:column-reverse;align-items:stretch}
  .fam-form-actions .lx-button{width:100%}
  .fam-field{max-width:none}
}

.fam-creds dd.fam-plain{font:500 16px 'DM Sans',sans-serif}
.fam-close{margin-top:12px}
.fam-danger{background:#9A2E1F}.fam-danger:hover{background:#7E2418}

/* Account page for learners, children and parents. */
.ax-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:start;margin-bottom:40px}
.ax-nav{position:sticky;top:16px;display:flex;flex-direction:column;gap:2px}
.ax-nav button{min-height:42px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:#5B6079;font:700 14px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.ax-nav button:hover{background:#ECE9E1;color:#141A33}
.ax-nav button.active{background:#ECEEF8;color:#283593}
.ax-sections{display:flex;flex-direction:column;gap:16px;max-width:760px}
.ax-card{background:#fff;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:16px}
.ax-card:focus{outline:none}
.ax-card header{display:flex;flex-direction:column;gap:4px}
.ax-card h2{font-size:21px;font-weight:800}
.ax-card header p,.ax-text,.ax-hint{font-size:14px;line-height:1.55;color:#5B6079}
.ax-card h3{font-family:'DM Sans',sans-serif!important;letter-spacing:0!important;font-size:15px;font-weight:700;margin-top:4px!important}
.ax-text a,.ax-card header p a{color:#283593;font-weight:700}
.ax-form{display:flex;flex-direction:column;gap:14px}
.ax-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ax-fields label:where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)),.ax-inline{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}
.ax-form input:not([type=checkbox]):where(:not([class*="astryx-"],:is(.astryx-button,.astryx-link,.astryx-field,.astryx-clickable-card,.astryx-breadcrumb-item) *)),.ax-form select{min-height:46px;padding:0 12px;border:1px solid #D9D5CA;border-radius:12px;background:#fff;color:#141A33;font:500 16px 'DM Sans',sans-serif;width:100%}
.ax-readonly{display:flex;flex-direction:column;gap:2px;background:#F6F4EE;border-radius:14px;padding:12px 14px}
.ax-readonly span{font-size:12px;font-weight:700;color:#5B6079;text-transform:uppercase;letter-spacing:.06em}
.ax-readonly strong{font:500 16px 'DM Mono',monospace;overflow-wrap:anywhere}
.ax-readonly small{font-size:13px;color:#5B6079}
.ax-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ax-actions p{font-size:13px;color:#1E6A47;font-weight:700}
.ax-subjects{border:0;margin:0;padding:0}
.ax-subjects legend{font-size:14px;font-weight:700;padding:0;margin-bottom:8px}
.ax-subjects ul{list-style:none;margin:0;padding:0;border:1px solid #ECE9E1;border-radius:14px}
.ax-subject{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;min-height:58px}
.ax-subject+.ax-subject{border-top:1px solid #ECE9E1}
.ax-subject[hidden]{display:none}
.ax-subject-name{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;cursor:pointer}
.ax-subject-name input{width:20px;height:20px;accent-color:#283593;margin:0}
.ax-board select{min-width:180px}
.ax-board-note{font-size:13px;color:#5B6079}
.ax-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ax-status strong{font-size:16px}.ax-status small{font-size:13px;color:#5B6079}
.ax-dot{width:10px;height:10px;border-radius:50%;background:#C9C4B6}
.ax-dot.is-on{background:#1E6A47}.ax-dot.is-trial{background:#EAA431}.ax-dot.is-off{background:#9A2E1F}
.ax-plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ax-plan{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px;border:1.5px solid #D9D5CA;border-radius:16px;background:#fff;color:#141A33;cursor:pointer;font-family:'DM Sans',sans-serif;text-align:left}
.ax-plan:hover{border-color:#283593;background:#F7F8FD}
.ax-plan strong{font-size:16px}.ax-plan span{font-size:14px;color:#5B6079}
.ax-list{list-style:none;margin:0;padding:0;border:1px solid #ECE9E1;border-radius:14px}
.ax-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
.ax-list li+li{border-top:1px solid #ECE9E1}
.ax-list span{display:flex;flex-direction:column;gap:2px}.ax-list small{font-size:13px;color:#5B6079}
.ax-bullets{margin:0;padding-left:20px;font-size:14px;line-height:1.6;color:#3A3F57}
.ax-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ax-links a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:#F6F4EE;color:#283593;font-size:14px;font-weight:700;text-decoration:none}
.ax-links a:hover{background:#ECEEF8}
.ax-delete{border-top:1px solid #ECE9E1;padding-top:12px}
.ax-delete>summary{cursor:pointer;font-size:14px;font-weight:700;color:#9A2E1F;min-height:40px;display:flex;align-items:center}
.ax-delete[open]{display:flex;flex-direction:column;gap:12px}
.ax-danger{background:#9A2E1F}.ax-danger:hover{background:#7E2418}
@media (max-width:820px){
  .ax-layout{grid-template-columns:1fr;gap:12px}
  .ax-nav{position:static;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:4px}
  .ax-nav button{white-space:nowrap;flex:none}
}
@media (max-width:560px){
  .ax-card{padding:18px}
  .ax-fields,.ax-plans{grid-template-columns:1fr}
  .ax-subject{flex-wrap:wrap}
  .ax-board,.ax-board select{width:100%}
}
