/* Roan Academy: shared product surfaces, grouped navigation and restrained motion.
   Inspired by shadcn/ui composition and Magic UI interaction principles.
   Native HTML/CSS; no additional runtime or external font requests. */
:root{--ui-surface:#fff;--ui-subtle:#f4f5f7;--ui-hover:#eceef2;--ui-text:#18202e;--ui-muted:#626b79;--ui-border:#e1e4e9;--ui-bluewash:#eaf0fd;--ui-blue:#2563eb;--ui-radius:12px;--bg:#f8f9fb;--line:var(--ui-border);--muted:var(--ui-muted);--ink:var(--ui-text)}
:root[data-theme="dark"]{--ui-surface:#131a26;--ui-subtle:#192130;--ui-hover:#222c3c;--ui-text:#edf0f5;--ui-muted:#a3adbd;--ui-border:#2a3342;--ui-bluewash:#1c2d4b;--ui-blue:#99baff;--bg:#04060c;--line:var(--ui-border);--muted:var(--ui-muted);--ink:var(--ui-text)}
:root[data-theme] body{background:var(--bg);color:var(--ui-text);-webkit-font-smoothing:antialiased}
:root[data-theme] h1{font-size:clamp(1.7rem,2.5vw,2.2rem);font-weight:600;letter-spacing:-.045em;line-height:1.2}
:root[data-theme] h2{font-weight:600;letter-spacing:-.025em}
:root[data-theme] .eyebrow{font-weight:550;letter-spacing:.09em;font-size:.65rem}
:root[data-theme] .sidebar{width:248px;padding:24px 16px 12px;background:var(--ui-surface);border-right:1px solid var(--ui-border);box-shadow:none;overflow:hidden;gap:0}
:root[data-theme] .brand{display:flex;align-items:center;gap:11px;text-align:left;padding:0 8px 24px;flex:none}
:root[data-theme] .brand .logo{width:46px;height:46px;margin:0;border-radius:9px;background:#fff;border:1px solid #eceef2}
:root[data-theme] .brand-wordmark{font-size:.7rem;letter-spacing:.105em;font-weight:700;color:var(--ui-text)}
:root[data-theme] .brand-wordmark small{display:block;font-weight:450;font-size:.82rem;letter-spacing:0;color:var(--ui-muted);margin-top:4px}
:root[data-theme] .nav-search{display:flex;align-items:center;gap:9px;min-height:40px;border:1px solid var(--ui-border);border-radius:7px;padding:8px 10px;background:var(--ui-surface);color:var(--ui-muted);font-size:.79rem;margin:0 4px 16px;text-align:left}
:root[data-theme] .nav-search svg{width:16px;height:16px}
:root[data-theme] .nav-search kbd{margin-left:auto;font:inherit;font-size:.65rem;border:1px solid var(--ui-border);background:var(--ui-subtle);border-radius:4px;padding:2px 4px;white-space:nowrap}
:root[data-theme] .nav{gap:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:2px 2px 16px;scrollbar-width:thin}
:root[data-theme] .nav-group-label{display:block;margin:0 12px 7px;font-size:.66rem;font-weight:600;color:var(--ui-muted);letter-spacing:.04em}
:root[data-theme] .nav a{min-height:39px;padding:9px 11px;margin:2px 0;gap:10px;font-size:.82rem;font-weight:450;border-radius:6px;line-height:1.45;color:var(--ui-muted);box-shadow:none}
:root[data-theme] .nav a svg{width:17px;height:17px;stroke-width:1.7;transform:none;animation:none}
:root[data-theme] .nav a:hover{background:var(--ui-subtle);color:var(--ui-text)}
:root[data-theme] .nav a.active{background:var(--ui-bluewash);color:var(--ui-blue);font-weight:600;box-shadow:none}
:root[data-theme] .nav-active-dot{width:5px;height:5px;border-radius:50%;background:currentColor;margin-left:auto;flex:none}
:root[data-theme] .sidebar-bottom{margin-top:8px;flex:none;border-top:1px solid var(--ui-border)}
:root[data-theme] .sidebar-progress{display:block;padding:17px 10px}
:root[data-theme] .sidebar-progress>span{display:flex;justify-content:space-between;gap:10px;font-size:.68rem;color:var(--ui-muted);margin-bottom:10px}
:root[data-theme] .sidebar-progress strong{font-weight:550;font-variant-numeric:tabular-nums;color:var(--ui-text)}
:root[data-theme] .sidebar-account{display:flex;align-items:center;gap:6px;border-top:1px solid var(--ui-border);padding:12px 4px 0}
:root[data-theme] .sidebar-account>a{display:flex;align-items:center;gap:10px;min-width:0;flex:1;border-radius:6px}
:root[data-theme] .sidebar-account>a>span:last-child{min-width:0}
:root[data-theme] .sidebar-account strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:550}
:root[data-theme] .sidebar-account small{display:block;font-size:.65rem;color:var(--ui-muted);margin-top:3px}
:root[data-theme] .sidebar-account .iconbtn{color:var(--ui-muted);width:34px;height:40px;flex:none}
:root[data-theme] .avatar{box-shadow:none;outline:none}
:root[data-theme] .avatar--soft .avatar__fallback--accent{background:var(--ui-bluewash);color:var(--ui-blue)}
:root[data-theme] .shell{margin-left:248px}
:root[data-theme] .topbar{height:68px;padding:0 38px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border)}
:root[data-theme] .crumb{display:flex;align-items:center;gap:12px;color:var(--ui-muted);font-size:.78rem}
:root[data-theme] .crumb strong{color:var(--ui-text);font-weight:500}
:root[data-theme] .crumb-divider{opacity:.4}
:root[data-theme] .top-right{gap:10px}
:root[data-theme] .mobile-search{display:none}
:root[data-theme] .iconbtn{border-radius:7px;color:var(--ui-muted)}
:root[data-theme] .theme-toggle{background:transparent;border:1px solid var(--ui-border);color:var(--ui-muted);width:38px;height:38px}
:root[data-theme] .language select{min-height:38px;border-radius:7px;background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-muted);font-size:.75rem}
:root[data-theme] .page{max-width:1390px;padding:36px 38px 24px}
:root[data-theme] :is(.heading,.journey-heading,.journal-heading){margin:0 0 28px;gap:20px}
:root[data-theme] :is(.heading,.journey-heading,.journal-heading) h1{font-size:clamp(1.7rem,2.5vw,2.2rem);font-weight:600;margin:0;letter-spacing:-.045em}
:root[data-theme] :is(.heading,.journey-heading,.journal-heading) p{color:var(--ui-muted);font-size:.9rem;line-height:1.65;margin-top:10px;max-width:660px}
:root[data-theme] .journey-heading .eyebrow{margin-bottom:10px;color:var(--ui-muted)}
:root[data-theme] .heading-period{display:none}
:root[data-theme] .btn{min-height:42px;padding:10px 16px;border-radius:7px;box-shadow:0 1px 2px #0000000a;font-weight:550;font-size:.8rem;background:#2563eb;color:#fff;transform:none}
:root[data-theme] .btn:hover{background:#1d4ed8;transform:none}
:root[data-theme] .btn.secondary{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
:root[data-theme] .btn.secondary:hover{background:var(--ui-subtle)}
:root[data-theme] .quiet-link{color:var(--ui-blue);font-size:.8rem}
:root[data-theme] .progress-line{height:4px;background:var(--ui-hover);border-radius:3px;overflow:hidden}
:root[data-theme] .progress-line>span{background:#2563eb;border-radius:3px}
/* Course overview: one primary action, a quiet progress strip, then the route. */
:root[data-theme] .continue-card{padding:26px 28px;gap:24px;background:var(--ui-surface);border:1px solid var(--ui-border);border-left:3px solid #2563eb;border-radius:var(--ui-radius);box-shadow:none;margin-bottom:20px}
:root[data-theme] .continue-mark{width:44px;height:44px;border-radius:10px;background:var(--ui-bluewash);color:var(--ui-blue);box-shadow:none;border:0}
:root[data-theme] .continue-copy .eyebrow{color:var(--ui-muted);font-size:.62rem}
:root[data-theme] .continue-copy h2{font-size:1.3rem;line-height:1.4;color:var(--ui-text);margin:8px 0}
:root[data-theme] .continue-copy p{color:var(--ui-muted);font-size:.8rem}
:root[data-theme] .continue-progress{color:var(--ui-muted);font-size:.7rem}
:root[data-theme] .journey-cta{min-height:44px;border-radius:7px;box-shadow:none;background:#2563eb;color:#fff;padding:9px 14px;gap:14px;font-size:.8rem;font-weight:550;transform:none}
:root[data-theme] .journey-cta:hover{background:#1d4ed8;transform:none;box-shadow:none}
:root[data-theme] .cta-arrow{width:21px;height:23px;background:none;color:inherit;border-radius:0}
:root[data-theme] .journey-cta:hover .cta-arrow{width:21px;transform:translateX(2px)}
:root[data-theme] .expedition-summary{padding:16px 0 24px;margin-bottom:26px;border:0;border-bottom:1px solid var(--ui-border);background:transparent;border-radius:0;box-shadow:none;gap:24px}
:root[data-theme] .traveler-profile .avatar{width:38px;height:38px}
:root[data-theme] .traveler-profile small{font-size:.6rem;color:var(--ui-muted);letter-spacing:.07em}
:root[data-theme] .traveler-profile strong{font-size:.85rem;color:var(--ui-text)}
:root[data-theme] .traveler-profile strong span{color:var(--ui-muted)}
:root[data-theme] .soft-chip{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:6px;box-shadow:none;color:var(--ui-muted);font-size:.7rem}
:root[data-theme] .expedition-layout{grid-template-columns:minmax(0,1fr) 330px;gap:24px}
:root[data-theme] .landscape-map{border-radius:12px;border-color:var(--ui-border);box-shadow:none;background:var(--ui-surface)}
:root[data-theme] .landscape-caption{padding:22px 24px;background:var(--ui-surface);flex-direction:row;align-items:center;border-bottom:1px solid var(--ui-border)}
:root[data-theme] .landscape-caption h2{font-size:1.1rem;margin-top:5px;color:var(--ui-text)}
:root[data-theme] .landscape-caption .eyebrow{color:var(--ui-muted);letter-spacing:.08em}
:root[data-theme] .locate-button{border-radius:7px;box-shadow:none;background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-border)}
:root[data-theme] .terrain{height:850px}
:root[data-theme] .terrain-image{filter:saturate(.55);opacity:.92}
:root[data-theme] .terrain-shade{background:linear-gradient(180deg,rgba(13,18,32,.04),transparent 18%)}
:root[data-theme] .terrain-pin{box-shadow:0 2px 6px #15294325;background:#fff;border:1px solid #bdcadd;color:#315074;font-weight:550}
:root[data-theme] .terrain-stop.done .terrain-pin{box-shadow:0 2px 6px #15294325;background:#2563eb;color:#fff}
:root[data-theme] .terrain-stop.here .terrain-pin{box-shadow:0 0 0 5px #2563eb26;outline-offset:3px}
:root[data-theme] .terrain-stop.here .terrain-pin:after{animation:none;border:0}
:root[data-theme] .terrain-stop>a:hover .terrain-pin{transform:translateY(-2px);box-shadow:0 3px 10px #15294330}
:root[data-theme] .stop-label{border-radius:6px;box-shadow:0 2px 4px #15294310;background:#fff;border-color:#d9e0e9;padding:8px 10px}
:root[data-theme] .stop-label strong{color:#263a53;font-weight:550}
:root[data-theme] .stop-label small{color:#5c6d80}
:root[data-theme] .terrain-stop.here .stop-label{background:#0d1220;border-color:#0d1220}
:root[data-theme] .terrain-stop.here .stop-label strong{color:#fff}
:root[data-theme] .terrain-stop.here .stop-label small{color:#c5d3e9}
:root[data-theme] .summit-label{border-radius:6px;background:#fff;color:#315074;letter-spacing:.07em}
:root[data-theme] .terrain-key{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-muted)}
:root[data-theme] .expedition-guide{position:static}
:root[data-theme] .module-switch{padding:4px;gap:4px;background:var(--ui-hover);border-radius:8px;margin-bottom:16px}
:root[data-theme] .module-switch button{border-radius:5px;min-height:57px;color:var(--ui-muted)}
:root[data-theme] .module-switch button[aria-pressed=true]{background:var(--ui-surface);color:var(--ui-text);box-shadow:0 1px 3px #0001}
:root[data-theme] .module-switch button>span{border:0;background:none;color:inherit;border-radius:4px}
:root[data-theme] .module-switch button small{color:var(--ui-muted)}
:root[data-theme] .expedition-guide .journey-chapter-panel{border-radius:12px;border-color:var(--ui-border);padding:22px;background:var(--ui-surface);box-shadow:none;animation:none}
:root[data-theme] .journey-chapter-panel h2{font-size:1.35rem;color:var(--ui-text)}
:root[data-theme] :is(.chapter-symbol,.trail-dot,.chapter-checkpoint){box-shadow:none;border-radius:7px}
:root[data-theme] .chapter-checkpoint{background:var(--ui-subtle);border:1px solid var(--ui-border)}
:root[data-theme] .chapter-trail li>a{border-radius:6px}
:root[data-theme] .chapter-trail li>a:hover{background:var(--ui-subtle)}
:root[data-theme] .chapter-trail .done .trail-dot{box-shadow:none}
:root[data-theme] .track-step>span{border-radius:5px;box-shadow:none}
:root[data-theme] .field-note{color:var(--ui-muted);font-size:.75rem}
/* The same surfaces and spacing across lessons, journals, news and management. */
:root[data-theme] :is(.module-card,.module-detail,.reading,.quiz-card,.progress-card,.admin-card,.journal-card,.journal-day-panel,.account-card,.study-card,.study-detail,.study-empty,.practice-tile,.practice-observe,.practice-answer,.practice-analysis,.practice-empty,.analysis-card,.analysis-detail,.analysis-empty,.leader-board,.leader-guide,.news-daily-overview,.fundamental-panel){border-radius:var(--ui-radius);background:var(--ui-surface);border-color:var(--ui-border);box-shadow:none;color:var(--ui-text)}
:root[data-theme] :is(.module-card,.analysis-card,.study-card,.practice-tile):hover{transform:none;box-shadow:0 3px 12px #0d122008;border-color:#9da9bd}
:root[data-theme] .library-controls{padding:0 0 20px;margin-bottom:24px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;box-shadow:none;background:transparent;gap:16px}
:root[data-theme] .search{border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface);box-shadow:none;min-height:44px}
:root[data-theme] .search input{background:transparent;color:var(--ui-text);font-size:.875rem}
:root[data-theme] :is(.filters,.news-view-tabs,.journal-view-tabs){padding:4px;gap:3px;border-radius:8px;background:var(--ui-hover);border:0;box-shadow:none}
:root[data-theme] :is(.filter,.news-view-tabs button,.journal-view-tabs button){border:0;border-radius:5px;font-size:.78rem;color:var(--ui-muted);min-height:36px;background:transparent;box-shadow:none}
:root[data-theme] :is(.filter.active,.news-view-tabs button[aria-pressed=true],.journal-view-tabs button[aria-pressed=true]){background:var(--ui-surface);color:var(--ui-text);box-shadow:0 1px 3px #0001}
:root[data-theme] .module-grid{gap:24px}
:root[data-theme] .module-art{min-height:190px;padding:24px;filter:saturate(.65)}
:root[data-theme] .module-art-icon{display:none}
:root[data-theme] .module-art .art-title{font-size:1.7rem;max-width:90%;font-weight:500;line-height:1.2;letter-spacing:-.035em}
:root[data-theme] .module-art .module-num{font-size:.65rem;letter-spacing:.1em}
:root[data-theme] .module-content{padding:24px 24px 0}
:root[data-theme] .module-content h3{font-size:1rem;line-height:1.4}
:root[data-theme] .module-content p{font-size:.85rem;color:var(--ui-muted)}
:root[data-theme] .module-meta{font-size:.7rem;color:var(--ui-muted)}
:root[data-theme] .module-bottom{padding:20px 24px 24px}
:root[data-theme] .module-action{font-size:.8rem;color:var(--ui-blue)}
:root[data-theme] .module-lesson{padding:22px 24px;border-color:var(--ui-border)}
:root[data-theme] .module-lesson:hover{background:var(--ui-subtle)}
:root[data-theme] .lesson-number{background:var(--ui-subtle);color:var(--ui-muted);border-radius:6px}
:root[data-theme] .lesson-journey-ribbon{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px}
:root[data-theme] :is(.lesson-actions,.lesson-actions:has([data-status=started])){background:var(--ui-subtle);border-color:var(--ui-border);border-radius:10px;box-shadow:none}
:root[data-theme] .reading{padding:32px;max-width:none}
:root[data-theme] .reading-block{max-width:76ch}
:root[data-theme] .reading-block p{line-height:1.85;color:var(--ui-text)}
:root[data-theme] .quiz-option{border-radius:7px;background:var(--ui-surface);border-color:var(--ui-border);box-shadow:none;transform:none}
:root[data-theme] .quiz-option:has(input:checked){border-color:#2563eb;background:var(--ui-bluewash);box-shadow:inset 3px 0 #2563eb}
:root[data-theme] :is(.pill,.study-kind,.study-market,.journal-status,.journal-side){border-radius:5px;font-size:.68rem}
:root[data-theme] :is(.journal-stat,.studio-stats>div,.review-stats>div){border-radius:10px;box-shadow:none;border-color:var(--ui-border)}
:root[data-theme] .journal-stat:not(.all){background:var(--ui-surface);color:var(--ui-text)}
:root[data-theme] .journal-stat strong{font-size:1.8rem;font-weight:550;font-variant-numeric:tabular-nums}
:root[data-theme] :is(.journal-week,.news-days){gap:6px}
:root[data-theme] :is(.journal-day,.news-day){border-radius:7px;box-shadow:none;background:var(--ui-surface);border:1px solid var(--ui-border);transform:none}
:root[data-theme] :is(.journal-day.selected,.news-day.selected){background:var(--ui-bluewash);border-color:var(--ui-blue);color:var(--ui-blue);box-shadow:none}
:root[data-theme] .journal-trade{border-radius:8px;box-shadow:none;border-color:var(--ui-border);transform:none}
:root[data-theme] .journal-trade:hover{transform:none;background:var(--ui-subtle)}
:root[data-theme] .journal-check{border-radius:7px;background:var(--ui-surface);border-color:var(--ui-border)}
:root[data-theme] :is(.journal-reminder,.review-reminder,.account-passport){border-radius:10px;box-shadow:none}
:root[data-theme] .news-market-card{border-radius:10px;box-shadow:none}
:root[data-theme] .news-bias-pill{border-radius:5px}
:root[data-theme] :is(.news-event,.fundamental-article,.news-daily-details){border-radius:8px;box-shadow:none;border-color:var(--ui-border);background:var(--ui-surface)}
:root[data-theme] .news-scenario-option{border-radius:6px;box-shadow:none}
:root[data-theme] .fundamental-tag{border-radius:5px;letter-spacing:.03em}
:root[data-theme] :is(.news-settings>summary,.news-settings[open] .news-controls){border-radius:8px;background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text)}
:root[data-theme] :is(.study-card-body,.analysis-card-body){padding:22px}
:root[data-theme] :is(.study-card-meta,.analysis-meta){font-size:.7rem;letter-spacing:.025em}
:root[data-theme] .leader-row{border-radius:6px;border-color:var(--ui-border)}
:root[data-theme] .leader-row.is-you{background:var(--ui-bluewash)}
:root[data-theme] .account-avatar-option{border-radius:8px;background:var(--ui-subtle);border-color:var(--ui-border)}
:root[data-theme] :is(.form-field input,.form-field textarea,.form-field select,.account-card input:not([type=radio])){border-radius:7px;background:var(--ui-surface);border:1px solid var(--ui-border);color:var(--ui-text);box-shadow:0 1px 2px #00000004;min-height:44px;font-size:.9rem}
:root[data-theme] input[readonly]{background:var(--ui-subtle)}
:root[data-theme] :is(.form-field input,.form-field textarea,.form-field select):focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb16}
:root[data-theme] .form-field{font-size:.8rem;font-weight:500;color:var(--ui-text)}
:root[data-theme] .notice{border-radius:8px;background:var(--ui-subtle);border:1px solid var(--ui-border);color:var(--ui-muted);font-size:.85rem;line-height:1.7}
:root[data-theme] .footnote{color:var(--ui-muted);font-size:.65rem;letter-spacing:.04em;border-color:var(--ui-border);padding-top:20px;margin-top:36px}
/* Entry screen follows the same, quieter visual language. */
:root[data-theme] .auth-page{background:var(--bg)}
:root[data-theme] .auth-card{background:var(--ui-surface);border-radius:16px;box-shadow:0 12px 40px #00000008;border-color:var(--ui-border)}
:root[data-theme] .auth-aside h1{color:#fff;font-weight:500;letter-spacing:-.04em}
:root[data-theme] .auth-form .btn{min-height:50px}
:root[data-theme] .auth-form input{min-height:50px;font-size:1rem}
:root[data-theme] .auth-form h2{font-weight:550}
/* Native command dialog: keyboard navigation, touch targets and no hidden menu items. */
:root[data-theme] .quick-dialog{padding:0;width:min(580px,calc(100% - 32px));max-height:min(680px,85dvh);border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 20px 80px #0004;overflow:hidden}
:root[data-theme] .quick-dialog[open]{display:flex;flex-direction:column;animation:quick-enter 140ms ease-out}
:root[data-theme] .quick-dialog::backdrop{background:rgba(9,15,26,.52)}
:root[data-theme] .quick-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;gap:12px;flex:none}
:root[data-theme] .quick-heading h2{font-size:.85rem;font-weight:550}
:root[data-theme] .quick-heading .iconbtn{font-size:1.5rem}
:root[data-theme] .quick-input{display:flex;align-items:center;gap:10px;padding:0 22px 14px;border-bottom:1px solid var(--ui-border);flex:none}
:root[data-theme] .quick-input svg{color:var(--ui-muted)}
:root[data-theme] .quick-input input{width:100%;min-width:0;min-height:44px;border:0;background:transparent;box-shadow:none;color:var(--ui-text);font-size:1rem;padding:6px}
:root[data-theme] .quick-results{overflow-y:auto;overscroll-behavior:contain;padding:8px;min-height:0}
:root[data-theme] .quick-results a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:6px;min-height:58px}
:root[data-theme] .quick-results a:hover,:root[data-theme] .quick-results a:focus{background:var(--ui-subtle);outline-offset:-2px}
:root[data-theme] .quick-results a>svg{width:18px;color:var(--ui-muted);flex:none}
:root[data-theme] .quick-results a>svg:last-child{margin-left:auto;width:15px}
:root[data-theme] .quick-results strong{display:block;font-size:.85rem;font-weight:500;line-height:1.5}
:root[data-theme] .quick-results small{display:block;color:var(--ui-muted);font-size:.7rem;margin-top:3px}
:root[data-theme] .quick-empty{padding:28px 16px;font-size:.875rem;color:var(--ui-muted)}
:root[data-theme] .quick-foot{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--ui-border);padding:12px 20px;font-size:.65rem;color:var(--ui-muted);background:var(--ui-subtle);flex:none}
@keyframes quick-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(min-width:1500px){:root[data-theme] .page{padding:42px 48px}:root[data-theme] .expedition-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1100px){:root[data-theme] .page{padding:28px}:root[data-theme] .topbar{padding:0 28px}:root[data-theme] .expedition-layout{grid-template-columns:minmax(0,1fr)}:root[data-theme] .expedition-guide .chapter-trail{display:grid;grid-template-columns:1fr 1fr;gap:4px 22px}:root[data-theme] .expedition-guide .chapter-trail li:before{display:none}:root[data-theme] .terrain{height:820px}:root[data-theme] .continue-card{flex-wrap:wrap}:root[data-theme] .continue-card>.journey-cta{margin-left:68px}}
@media(max-width:760px){
 :root[data-theme] .sidebar{width:280px;padding:18px 14px 12px;transform:translateX(-100%);transition:transform 180ms ease-out;z-index:40}
 :root[data-theme] .sidebar.open{transform:translateX(0)}
 :root[data-theme] .sidebar .nav a{min-height:44px}
 :root[data-theme] .sidebar .nav{gap:16px}
 :root[data-theme] .shell{margin-left:0}
 :root[data-theme] .topbar{height:64px;padding:0 16px;gap:10px}
 :root[data-theme] .top-right{gap:7px}
 :root[data-theme] .mobile-search,:root[data-theme] .mobile-menu{display:grid}
 :root[data-theme] .crumb{min-width:0;flex:1;font-size:.75rem}
 :root[data-theme] .crumb>span{display:none}
 :root[data-theme] .crumb strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 :root[data-theme] .top-right>.account-avatar-link{display:none}
 :root[data-theme] .language select{max-width:91px;min-height:40px;padding:8px 18px 8px 7px;font-size:.7rem}
 :root[data-theme] .theme-toggle{width:40px;height:40px}
 :root[data-theme] .page{padding:26px 18px 20px}
 :root[data-theme] .journey-heading{align-items:start;flex-wrap:wrap}
 :root[data-theme] .journey-heading>.btn{min-height:40px}
 :root[data-theme] .continue-card{padding:20px;gap:16px;align-items:start;border-radius:10px}
 :root[data-theme] .continue-mark{display:none}
 :root[data-theme] .continue-copy{min-width:0;flex-basis:100%}
 :root[data-theme] .continue-copy h2{font-size:1.2rem}
 :root[data-theme] .continue-card>.journey-cta{margin:0;width:100%}
 :root[data-theme] .expedition-summary{padding:0 0 20px;gap:16px}
 :root[data-theme] .expedition-layout{gap:22px}
 :root[data-theme] .expedition-guide .chapter-trail{grid-template-columns:1fr}
 :root[data-theme] .terrain{height:880px}
 :root[data-theme] .landscape-caption{padding:18px;gap:12px}
 :root[data-theme] .landscape-caption h2{font-size:1rem}
 :root[data-theme] .module-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 :root[data-theme] .module-art{min-height:175px}
 :root[data-theme] .module-art .art-title{font-size:1.6rem}
 :root[data-theme] .module-content{padding:20px 20px 0}
 :root[data-theme] .module-bottom{padding:20px}
 :root[data-theme] :is(.reading,.quiz-card){padding:24px 20px}
 :root[data-theme] :is(.form-field input,.form-field textarea,.form-field select){font-size:1rem}
 :root[data-theme] .filters{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 :root[data-theme] .filter{white-space:nowrap;flex:none;min-height:40px}
 :root[data-theme] .quick-dialog{max-height:85dvh;margin-top:7dvh}
}
@media(max-width:420px){:root[data-theme] .topbar{padding:0 10px;gap:4px}:root[data-theme] .top-right{gap:5px}:root[data-theme] .crumb{display:none}:root[data-theme] .top-right{margin-left:auto}:root[data-theme] .page{padding-left:14px;padding-right:14px}:root[data-theme] .quick-heading h2{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){:root[data-theme] .quick-dialog[open]{animation:none}:root[data-theme] .sidebar{transition:none}:root[data-theme] .journey-cta:hover .cta-arrow{transform:none}}

:root[data-theme] .drawer-close{display:none}
:root[data-theme] body.nav-drawer-open{overflow:hidden}
@media(max-width:760px){:root[data-theme] .drawer-close{display:grid;position:absolute;right:10px;top:20px;width:36px;height:40px;font-size:1.4rem}:root[data-theme] .sidebar .brand{padding-right:34px}:root[data-theme] .sidebar .brand-wordmark{font-size:.62rem}}

:root[data-theme] .continue-card{color:var(--ui-text)}
:root[data-theme] .continue-card .progress-line{background:var(--ui-hover)}
:root[data-theme] .continue-card .progress-line>span{background:#2563eb}
:root[data-theme] .continue-progress strong{color:var(--ui-text)}
:root[data-theme] .library-controls .search input{background:transparent;color:var(--ui-text)}
:root[data-theme] .library-controls .filters{background:var(--ui-hover);border-radius:8px}
:root[data-theme] .library-controls .filter.active{background:var(--ui-surface);color:var(--ui-text)}
@media(max-width:760px){:root[data-theme] .library-controls .filters{flex-wrap:nowrap}:root[data-theme] .library-controls .filter{flex:none}}

/* The course library reads like a curriculum, with one row per module. */
:root[data-theme] .module-grid{grid-template-columns:minmax(0,1fr);gap:18px}
:root[data-theme] .module-card{display:grid;grid-template-columns:190px minmax(0,1fr) 180px;min-height:220px;align-items:stretch}
:root[data-theme] .module-art{min-height:220px;padding:20px;border-radius:0}
:root[data-theme] .module-art .art-title{display:none}
:root[data-theme] .module-art .module-num{background:#0d1220b3;color:#fff;display:inline-flex;align-self:start;border:1px solid #ffffff30;border-radius:4px;padding:6px 8px}
:root[data-theme] .module-content{padding:26px;display:flex;flex-direction:column;justify-content:center;gap:12px}
:root[data-theme] .module-content h3{font-size:1.2rem;line-height:1.35;letter-spacing:-.025em;margin:0}
:root[data-theme] .module-content p{margin:0;line-height:1.75}
:root[data-theme] .module-meta{margin:0;gap:12px;flex-wrap:wrap}
:root[data-theme] .module-bottom{display:flex;flex-direction:column;justify-content:center;padding:24px;border-left:1px solid var(--ui-border);border-top:0}
:root[data-theme] .module-bottom .module-action{margin-top:24px;font-size:.75rem}
:root[data-theme] .module-bottom .line-label{font-size:.65rem}
@media(max-width:1100px){:root[data-theme] .module-card{grid-template-columns:160px minmax(0,1fr)}:root[data-theme] .module-art{grid-row:span 2}:root[data-theme] .module-bottom{grid-column:2;padding:0 24px 24px;border:0}:root[data-theme] .module-bottom .module-action{margin-top:16px}:root[data-theme] .module-content{padding:24px}}
@media(max-width:760px){:root[data-theme] .module-card{display:flex;flex-direction:column}:root[data-theme] .module-art{min-height:150px;padding:20px}:root[data-theme] .module-content{padding:22px}:root[data-theme] .module-meta{flex-direction:row}:root[data-theme] .module-bottom{padding:0 22px 22px}:root[data-theme] .module-bottom .line-label{font-size:.75rem}}
:root[data-theme] .module-art .module-cover{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 70%;pointer-events:none;z-index:0;opacity:1;visibility:visible}
:root[data-theme] .module-art[data-chapter="02"] .module-cover{object-position:center}
