/* WordWise's canonical interface. Feature styles are isolated in @layer legacy. */
:root {
  --ui-space-1:4px; --ui-space-2:8px; --ui-space-3:12px; --ui-space-4:16px;
  --ui-space-5:20px; --ui-space-6:24px; --ui-space-7:32px; --ui-space-8:40px;
  --ui-radius-sm:8px; --ui-radius-md:12px; --ui-radius-lg:18px;
  --ui-text:var(--ink); --ui-muted:color-mix(in srgb,var(--ink) 80%,var(--card));
  --ui-surface:var(--card); --ui-surface-soft:color-mix(in srgb,var(--card) 94%,var(--ink));
  --ui-border:color-mix(in srgb,var(--ink) 18%,var(--card));
  --muted:var(--ui-muted); --ui-accent:color-mix(in srgb,var(--green) 84%,var(--ink)); --ui-accent-soft:color-mix(in srgb,var(--green) 12%,var(--card));
  --ui-blue:#3865b5; --ui-violet:#7450b4; --ui-teal:#237779; --ui-amber:#8b601f;
  --ui-success:#256b50; --ui-danger:#ad3b4a; --ui-warning:#886019;
  --ui-body:15px; --ui-support:13px; --ui-caption:12px; --ui-type-scale:1;
  --ui-word:60px; --ui-shadow:0 8px 28px #00000008; --ui-motion:160ms;
}
html[data-appearance=dark] {
  --ui-blue:#9ebdf6; --ui-violet:#c5aff3; --ui-teal:#86d7d4; --ui-amber:#e9c080;
  --ui-success:#8bd4b2; --ui-danger:#f6abb4; --ui-warning:#efcc89;
  --ui-shadow:0 8px 28px #00000018;
}
html[data-text-size=small]{--ui-body:14px;--ui-support:13px;--ui-caption:12px;--ui-type-scale:.96}
html[data-text-size=large]{--ui-body:18px;--ui-support:16px;--ui-caption:14px;--ui-type-scale:1.18}
html[data-word-size=small]{--ui-word:46px}html[data-word-size=large]{--ui-word:76px}html[data-word-size=extra-large]{--ui-word:92px}
html[data-theme=high-contrast]{--ui-border:var(--ink);--ui-muted:var(--ink);--ui-shadow:none}
html{scroll-padding-top:90px}
body{font-family:var(--sans);font-size:var(--ui-body);line-height:1.55;color:var(--ui-text);background:var(--paper)}
*{box-sizing:border-box}
[hidden]{display:none!important}
:where(button,input,select,textarea){font:inherit;color:inherit}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
:where(button,a,summary){-webkit-tap-highlight-color:transparent}
:where(button){touch-action:manipulation}
:where(p){line-height:1.65}
.ui-icon{display:inline-block;flex-shrink:0;vertical-align:middle;overflow:visible}
.ui-icon-tile{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ui-accent-soft);color:var(--ui-accent)}
:where(.eyebrow,.metric-label,.practice-rail-heading){font:650 var(--ui-caption)/1.4 var(--sans);letter-spacing:.055em;color:var(--ui-muted)}
:where(.muted,.chart-note,.chart-summary,.practice-rail-note,.functional-muted){font-size:var(--ui-support);line-height:1.6;color:var(--ui-muted)}
:where(.page h1){font:650 clamp(1.75rem,2.5vw,2.35rem)/1.18 var(--sans);letter-spacing:-.035em;color:inherit;margin:var(--ui-space-2) 0 var(--ui-space-3)}
:where(.page h1 em){font-style:normal;color:var(--ui-accent)}
:where(.page h2){font:650 calc(20px * var(--ui-type-scale))/1.3 var(--sans);letter-spacing:-.02em;color:inherit}
:where(.page h3){font:650 calc(17px * var(--ui-type-scale))/1.35 var(--sans);color:inherit}
:where(.page h4){font:650 var(--ui-body)/1.4 var(--sans);color:inherit}
:where(.page p,.page li){font-size:var(--ui-body)}
:where(.page small,.page .small){font-size:var(--ui-caption);line-height:1.5}
:where(.page label,.setting-label){font-size:var(--ui-support);font-weight:600;line-height:1.5}
:where(.page .lede){max-width:65ch;font-size:var(--ui-body);line-height:1.65;color:var(--ui-muted);margin:0}
:where(.panel,.metric-card,.daily-practice-card,.practice-card,.origin-explorer,.mnemonic-composer,.ww-item,.settings-card){
  min-width:0;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);
  border-radius:var(--ui-radius-lg);padding:var(--ui-space-6);box-shadow:none;
}
:where(.panel-heading,.compact-heading,.mnemonic-library-heading){display:flex;justify-content:space-between;align-items:center;gap:var(--ui-space-4);margin-bottom:var(--ui-space-5)}
:where(.panel-heading,.compact-heading) :where(h2,h3,p){margin:0}
:where(.page-heading,.welcome-row){display:flex;align-items:center;justify-content:space-between;gap:var(--ui-space-6);margin:0 0 var(--ui-space-7);padding:0 0 var(--ui-space-6);border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:none;box-shadow:none;min-height:0}
:where(.page[data-page-mood])>.page-heading{background:none;min-height:0;padding:0 0 var(--ui-space-6);border:0;border-bottom:1px solid var(--ui-border);box-shadow:none;border-radius:0;overflow:visible}
:where(.page-heading .page-scene,.page-heading>.page-flora,.page-heading>.page-illustration,.page-heading .chapter-scene,.page-heading .section-sketch){display:none}
:where(.page[data-page-mood])>.page-heading::before,:where(.page[data-page-mood])>.page-heading::after{display:none}
:where(.button,.ww-quiet,.text-button,.select-trigger,.origin-paging button,.final-index-tabs button,.final-categories button){
  display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:10px 15px;
  font:600 var(--ui-support)/1.4 var(--sans);letter-spacing:0;border-radius:var(--ui-radius-sm);cursor:pointer;text-decoration:none;
  color:var(--ui-text);border:1px solid var(--ui-border);background:var(--ui-surface);
  box-shadow:none;transition:background var(--ui-motion),border-color var(--ui-motion),box-shadow var(--ui-motion);
}
:where(.button-primary,.button-next){background:var(--ui-accent);border-color:var(--ui-accent);color:var(--card)}
:where(.button-primary,.button-next):hover{background:var(--ui-accent);filter:brightness(1.08);color:var(--card)}
:where(.button-secondary,.ww-quiet):hover{background:var(--ui-accent-soft);border-color:var(--ui-accent)}
:where(.text-button,.button-quiet){background:transparent;border-color:transparent;color:var(--ui-accent);padding:9px 10px}
:where(.text-button,.button-quiet):hover{background:var(--ui-accent-soft);border-color:transparent}
:where(button:disabled){cursor:not-allowed;opacity:.58;filter:none;transform:none}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=hidden]),textarea,select){
  min-width:0;max-width:100%;min-height:44px;padding:11px 13px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-sm);
  background:var(--ui-surface);color:var(--ui-text);font:400 var(--ui-body)/1.5 var(--sans);box-shadow:none;
}
:where(input,textarea)::placeholder{color:var(--ui-muted);opacity:1}
:where(textarea){resize:vertical;line-height:1.7}
:where(input[type=checkbox],input[type=radio]){width:18px;height:18px;accent-color:var(--ui-accent)}
:where(select){padding-right:34px}
:where(.select-trigger){min-width:0;width:100%;justify-content:space-between;font-weight:500;font-size:var(--ui-body);padding:10px 13px;background:var(--ui-surface);color:var(--ui-text)}
:where(.custom-select){min-width:0;max-width:100%}
:where(.select-options){padding:6px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);box-shadow:0 14px 40px #0002;z-index:80;overscroll-behavior:contain}
:where(.select-options button,[role=option]){min-height:44px;font-size:var(--ui-body);padding:10px 12px;border-radius:7px;white-space:normal;color:var(--ui-text)}
:where(.select-options [aria-selected=true]){background:var(--ui-accent-soft);color:var(--ui-accent);font-weight:650}
:where(.functional-actions,.mnemonic-item-actions){display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui-space-2)}
:where(.density-tabs,.ww-tabs,.browse-tabs,.ww-segmented){display:flex;flex-wrap:wrap;gap:5px;background:var(--ui-surface-soft);padding:5px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-md)}
:where(.density-tabs,.ww-tabs,.browse-tabs,.ww-segmented) button{font-size:var(--ui-support);min-height:38px;padding:8px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ui-muted)}
:where(.density-tabs,.ww-tabs,.browse-tabs,.ww-segmented) button[aria-pressed=true]{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text);box-shadow:0 2px 5px #00000008}
:where(.status-tag,.pill,.dictionary-band,.difficulty-tag,.rarity-chip){font:600 var(--ui-caption)/1.3 var(--sans);letter-spacing:.015em;padding:6px 9px;border-radius:7px;white-space:normal}
:where(.empty-state,.chart-empty,.mnemonic-empty,.dictionary-empty,.ww-empty){padding:var(--ui-space-7);color:var(--ui-muted);font-size:var(--ui-body);line-height:1.7;background:var(--ui-surface-soft);border:1px dashed var(--ui-border);border-radius:var(--ui-radius-md);text-align:center}
:where(table){font-size:var(--ui-support);border-collapse:collapse;width:100%;line-height:1.6}
:where(th){font-size:var(--ui-caption);font-weight:650;color:var(--ui-muted);text-align:left;white-space:normal}
:where(th,td){padding:12px 14px;border-bottom:1px solid var(--ui-border);vertical-align:top}
:where(.density-table,.functional-table,.assessment-history-table){overflow:auto;max-width:100%;scrollbar-width:thin}
:where(.density-table table){font-size:var(--ui-support)}
:where(summary){min-height:44px;padding:10px 0;cursor:pointer;font-size:var(--ui-support);font-weight:600;line-height:1.5}
:where(dialog){max-width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:var(--ui-space-7);border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);color:var(--ui-text);background:var(--ui-surface);box-shadow:0 24px 90px #0005}
:where(dialog)::backdrop{background:#080d1b99;backdrop-filter:blur(5px)}
:where(dialog h2){margin-top:0;font-size:24px}
:where(dialog p,dialog li){font-size:var(--ui-body);line-height:1.7}
:where(.app-shell){background:var(--paper)}
:where(.sidebar){width:var(--user-sidebar-width,244px);padding:24px 14px 18px;background:color-mix(in srgb,var(--card) 96%,var(--paper));border-right:1px solid var(--ui-border);color:var(--ui-text)}
:where(.brand){padding:0 12px 22px;gap:11px;font:650 23px var(--sans);letter-spacing:-.04em}
:where(.brand-mark){width:37px;height:37px;border-radius:12px;font:700 23px var(--sans);background:var(--ui-accent);color:var(--card);box-shadow:none}
:where(.primary-nav){display:grid;gap:4px}
:where(.nav-group){margin:4px 0;border:0}
:where(.nav-group>summary){padding:12px 12px 6px;min-height:34px;font-size:12px;line-height:1.5;text-transform:uppercase;letter-spacing:.065em;color:var(--ui-muted);list-style:none}
:where(.nav-group>summary)::after{content:'⌄';float:right;font-size:13px}
:where(.nav-group-links){padding:0;border:0}
:where(.nav-group-links>div){display:grid;gap:3px;margin:0;padding:0;border:0}
:where(.nav-link){display:flex;align-items:center;gap:12px;min-height:43px;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ui-muted);font:500 var(--ui-support)/1.35 var(--sans);text-decoration:none}
:where(.nav-link>span:first-child){display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;color:inherit;font-size:18px}
:where(.nav-link.active){background:var(--ui-accent-soft);border-color:color-mix(in srgb,var(--ui-accent) 20%,var(--card));color:var(--ui-accent);font-weight:650;box-shadow:none}
:where(.nav-link)::before,:where(.nav-link)::after{display:none}
:where(.nav-link:hover){background:var(--ui-surface-soft);color:var(--ui-text)}
:where(.nav-link .density-nav-count){margin-left:auto;min-width:21px;padding:1px 6px;border-radius:6px;font:650 11px/1.6 var(--sans);background:var(--ui-surface);color:var(--ui-accent)}
:where(.sidebar-bottom){margin-top:22px;padding:18px 12px 0;border-top:1px solid var(--ui-border)}
:where(.sidebar-bottom p){font-size:13px;line-height:1.6;color:var(--ui-muted)}
:where(.sidebar-version){font-size:11px;letter-spacing:.03em}
:where(.sidebar-leaf){display:none}
:where(.app-main){margin-left:var(--user-sidebar-width,244px);min-width:0}
:where(.content){max-width:1680px;margin:auto;padding:32px clamp(20px,3vw,40px) 40px;font-size:var(--ui-body)}
:where(.topbar){height:72px;padding:0 clamp(20px,3vw,40px);background:color-mix(in srgb,var(--card) 88%,var(--paper));border-bottom:1px solid var(--ui-border);gap:16px}
:where(.breadcrumb){font:500 12px/1.4 var(--sans);letter-spacing:.04em;color:var(--ui-muted)}
:where(.breadcrumb strong){font-weight:650;color:var(--ui-text)}
:where(.topbar-right){gap:18px;min-width:0}
:where(.sync-state){font:400 12px/1.4 var(--sans);color:var(--ui-muted);max-width:225px}
:where(.global-profile){gap:10px;min-height:44px;padding:4px;border-radius:10px}
:where(.global-profile-copy strong){font-size:13px;color:var(--ui-text)}
:where(.global-profile-copy small){font-size:11px;color:var(--ui-muted)}
:where(.music-control){min-height:40px;font-size:12px;border-color:var(--ui-border)}
:where(.date-card){display:none}
:where(.page.active){animation:ui-page-in .18s ease-out}
@keyframes ui-page-in{from{opacity:.4}to{opacity:1}}
/* Home: study actions, saved activity, and goals. */
:where(.home-heading){border-bottom:0;margin-bottom:20px;padding:0}
:where(.home-heading h1){margin-bottom:8px}
:where(.home-heading .ui-icon-tile){margin-bottom:12px}
:where(.home-overview){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
:where(.home-stat){position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:20px;overflow:hidden;border:1px solid var(--ui-border);border-radius:var(--ui-radius-md);background:var(--ui-surface);color:var(--ui-text)}
:where(.home-stat-copy){min-width:0}
:where(.home-stat-copy span){display:block;font-size:var(--ui-caption);color:var(--ui-muted);font-weight:600;margin-bottom:8px}
:where(.home-stat-copy strong){display:block;font:650 calc(30px * var(--ui-type-scale))/1.2 var(--sans);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
:where(.home-stat-copy small){display:block;margin-top:5px;color:var(--ui-muted);font-size:var(--ui-caption)}
:where(.home-stat)::after{content:'';position:absolute;inset:auto 0 0;height:2px;background:currentColor;opacity:.55}
:where(.home-stat[data-tone=blue]){color:var(--ui-blue)}:where(.home-stat[data-tone=teal]){color:var(--ui-teal)}:where(.home-stat[data-tone=violet]){color:var(--ui-violet)}:where(.home-stat[data-tone=amber]){color:var(--ui-amber)}
:where(.home-stat .ui-icon-tile){color:inherit;background:color-mix(in srgb,currentColor 11%,var(--ui-surface))}
:where(.home-stat-copy strong){color:var(--ui-text)}
:where(.home-study-row){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;margin-bottom:20px}
:where(.home-study-row .feature-card){padding:24px;background:linear-gradient(110deg,var(--ui-accent-soft),var(--ui-surface));border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);box-shadow:none;min-height:0;overflow:visible}
:where(.home-study-row .feature-card)::before,:where(.home-study-row .feature-card)::after{display:none}
:where(.home-study-row .feature-copy){padding:0;max-width:none}
:where(.home-study-row .feature-copy h2){font:650 24px/1.3 var(--sans);letter-spacing:-.025em;margin:10px 0}
:where(.home-study-row .feature-copy p){font-size:var(--ui-support);max-width:58ch;margin:0 0 18px;color:var(--ui-muted)}
:where(.home-study-row .daily-card){padding:24px;display:flex;gap:16px;flex-wrap:wrap;align-content:center;align-items:center;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg)}
:where(.home-study-row .daily-card .daily-body){flex:1 1 160px}
:where(.home-study-row .daily-card h3){font-size:18px;margin:7px 0}
:where(.home-study-row .daily-card p){font-size:var(--ui-support);color:var(--ui-muted);margin:0}
:where(.home-study-row .daily-card>.text-button){margin-left:54px}
:where(.home-dashboard){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}
:where(.home-dashboard>.panel){grid-column:span 6;margin:0;padding:24px}
:where(.home-dashboard>.home-activity){grid-column:span 12}
:where(.home-dashboard>.home-goals){grid-column:span 6}
:where(.home-dashboard>.home-recent){grid-column:span 12}
:where(.home-dashboard .compact-heading h2){font-size:18px;display:flex;align-items:center;gap:9px}
:where(.home-dashboard .density-metrics){display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
:where(.home-dashboard .density-metric){padding:0;background:transparent;border:0;min-width:0}
:where(.density-metric strong){font:650 calc(28px * var(--ui-type-scale))/1.25 var(--sans);letter-spacing:-.035em;line-height:1.25;font-variant-numeric:tabular-nums}
:where(.density-metric span){font-size:var(--ui-caption);color:var(--ui-muted);line-height:1.5;margin-top:5px;display:block}
:where(.density-metric small){font-size:var(--ui-caption);line-height:1.5}
:where(.home-dashboard .hub-task){padding:14px 0;border:0;border-bottom:1px solid var(--ui-border);background:transparent;border-radius:0;gap:12px}
:where(.hub-task strong){font-size:var(--ui-support);line-height:1.5}
:where(.hub-task small,.task-status){font-size:var(--ui-caption);line-height:1.5;color:var(--ui-muted)}
:where(.hub-task-mark){width:24px;height:24px;background:var(--ui-accent-soft);border-radius:7px;color:var(--ui-accent)}
:where(.home-dashboard .hub-task>div){min-width:0}
:where(.hub-level-track,.mastery-track,.achievement-track){height:7px;border-radius:6px;background:var(--ui-surface-soft);overflow:hidden}
:where(.hub-level-track>span,.task-progress>i){height:100%;display:block;border-radius:inherit;background:var(--ui-accent)}
:where(.hub-streak){padding-top:16px;margin-top:16px;border-top:1px solid var(--ui-border)}
:where(.hub-streak strong){font-size:22px}
:where(.hub-streak span){font-size:var(--ui-support)}
:where(.hub-activity){display:grid;grid-template-columns:1fr auto auto;gap:16px;padding:13px 0;border-bottom:1px solid var(--ui-border);font-size:var(--ui-support)}
:where(.hub-activity strong){font-size:var(--ui-body)}
:where(.hub-activity small){font-size:var(--ui-caption)}
:where(.mastery-legend){font-size:var(--ui-caption);line-height:1.6;gap:10px;margin-top:14px}
:where(.mastery-strip){height:12px;border-radius:8px;overflow:hidden}
:where(.density-heatmap){margin:24px 0 18px;padding:0;max-width:100%}
:where(.density-months){font-size:11px;color:var(--ui-muted);margin-bottom:10px}
:where(.density-heat-grid){gap:3px}
:where(.density-heat-cell){min-height:0;padding:0;border-radius:3px;border:0;background:var(--ui-surface-soft);box-shadow:none}
:where(.density-heat-cell[data-level="1"]){background:color-mix(in srgb,var(--ui-blue) 30%,var(--ui-surface))}
:where(.density-heat-cell[data-level="2"]){background:color-mix(in srgb,var(--ui-blue) 55%,var(--ui-surface))}
:where(.density-heat-cell[data-level="3"]){background:color-mix(in srgb,var(--ui-blue) 80%,var(--ui-surface))}
:where(.density-heat-cell[data-level="4"]){background:var(--ui-blue)}
:where(.density-heat-cell.future){opacity:.5}
:where(.heat-summary){font-size:var(--ui-caption);color:var(--ui-muted);gap:12px;flex-wrap:wrap}
:where(.heat-key i){width:10px;height:10px;border-radius:2px}
:where(.home-heat-controls){display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
:where(.home-heat-controls .density-tabs){margin:0;padding:3px}
:where(.home-heat-controls button){min-height:32px;padding:5px 9px;font-size:12px}
:where(.home-heat-year){display:flex;align-items:center;gap:5px;font-size:var(--ui-support)}
/* The learning interaction keeps a single focal column and readable supporting text. */
:where(#page-practice .practice-layout){grid-template-columns:176px minmax(0,1fr) 176px;gap:24px;max-width:1280px;margin:auto;align-items:start}
:where(#page-practice .practice-card){padding:28px}
:where(#page-practice .practice-context,#page-practice .practice-aside){font-size:var(--ui-support);line-height:1.6}
:where(#page-practice .practice-rail-note,#page-practice .practice-session-stats dt){font-size:var(--ui-caption);color:var(--ui-muted)}
:where(#page-practice .practice-session-stats dd){font-size:20px}
:where(#page-practice .practice-meta){font-size:var(--ui-caption);gap:10px}
:where(#page-practice .practice-meta .part-label){font-size:var(--ui-support);color:var(--ui-muted)}
:where(#page-practice .word-wrap,#page-daily .word-wrap){padding:32px 0 24px}
:where(#page-practice .word-wrap h2,#page-daily .word-wrap h2){font:650 clamp(36px,5vw,var(--ui-word))/1.15 var(--sans);letter-spacing:-.045em;color:var(--ui-text)}
:where(#page-practice .word-rule,#page-daily .word-rule){display:none}
:where(#answer-form label,#daily-answer-form label){font-size:var(--ui-body);font-weight:500;margin-bottom:12px}
:where(#answer-form textarea,#daily-answer-form textarea){font-size:var(--ui-body);min-height:142px;line-height:1.75;background:var(--ui-surface-soft);padding:16px 18px;border-radius:var(--ui-radius-md)}
:where(.keyboard-hint){font-size:var(--ui-caption)}
:where(#page-practice .form-bottom){gap:16px;align-items:center;margin-top:16px}
:where(.practice-actions){display:flex;gap:10px;align-items:center}
:where(#page-practice .button-next){position:static;min-height:48px;width:100%;margin:20px 0 0;font-size:var(--ui-body);box-shadow:none}
:where(#guided-study-panel){font-size:var(--ui-body);padding:28px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);margin-bottom:20px}
:where(.guided-teaching){font-size:var(--ui-body);gap:24px}
:where(.guided-teaching p,.guided-teaching .example){font-size:var(--ui-body);line-height:1.75}
:where(.guided-counts .button){min-width:48px;min-height:44px;font-size:var(--ui-body)}
:where(#guided-exclude-current){margin:14px auto 0;display:flex;font-size:var(--ui-support);color:var(--ui-muted)}
:where(.ww-grade-result){padding:24px;border:0;border-top:1px solid var(--ui-border);border-radius:0;background:transparent;gap:20px;box-shadow:none;animation:none}
:where(.ww-grade-icon){width:34px;min-height:34px;flex-basis:34px;font-size:20px;box-shadow:none;background:var(--ui-surface-soft);color:var(--ui-muted)}
:where(.ww-grade-result[data-outcome=correct] .ww-grade-icon){background:color-mix(in srgb,var(--ui-success) 12%,var(--ui-surface));color:var(--ui-success);box-shadow:none}
:where(.ww-grade-result[data-outcome=partial] .ww-grade-icon,.ww-grade-result[data-outcome=alternate_valid_sense] .ww-grade-icon){background:color-mix(in srgb,var(--ui-warning) 12%,var(--ui-surface));color:var(--ui-warning);box-shadow:none}
:where(.ww-grade-result[data-outcome=incorrect] .ww-grade-icon){background:color-mix(in srgb,var(--ui-danger) 12%,var(--ui-surface));color:var(--ui-danger);box-shadow:none}
:where(.ww-grade-result .result-heading){font:650 23px/1.3 var(--sans);letter-spacing:-.02em}
:where(.ww-grade-result .ww-grade-eyebrow,.ww-grade-result .ww-grade-progress){font-size:var(--ui-caption);line-height:1.6;color:var(--ui-muted);margin-top:5px}
:where(.ww-grade-xp){font-size:var(--ui-support);font-weight:650;color:var(--ui-accent)}
:where(.ww-grade-details){gap:20px;padding:18px 0;border-color:var(--ui-border)}
:where(.ww-grade-details dt,.ww-result-teaching h4){font:650 var(--ui-caption)/1.5 var(--sans);letter-spacing:.02em;text-transform:none;color:var(--ui-muted);margin-bottom:8px}
:where(.ww-grade-details dd,.ww-grade-result .actual-definition,.ww-grade-judgment p,.ww-result-teaching p){font:400 var(--ui-body)/1.75 var(--sans);color:inherit}
:where(.ww-grade-details>div+div){border-color:var(--ui-border);padding-left:20px}
:where(.ww-result-teaching){gap:20px;padding-top:20px;border-color:var(--ui-border);grid-template-columns:minmax(0,1fr)}
:where(.ww-result-memory){border:0;border-top:1px solid var(--ui-border);padding:18px 0 0}
:where(.ww-grade-result p.example){font:400 var(--ui-body)/1.75 var(--sans);padding-left:14px;border-left:3px solid var(--ui-accent);color:inherit}
:where(.ww-result-actions button,.ww-grade-method summary){font-size:var(--ui-support);min-height:44px;padding:8px 0;color:var(--ui-accent)}
:where(.ww-result-footer){border-color:var(--ui-border);gap:8px 16px}
:where(.ww-content-unavailable,.ww-grade-sense-note){font-size:var(--ui-support);color:var(--ui-muted)}
:where(.ww-recall-cue){font-size:var(--ui-support);background:var(--ui-accent-soft);padding:10px 12px;border-radius:8px}
:where(.word-structure:has(.origin-compact)){margin:0;padding:16px 0 0;border-color:var(--ui-border)}
:where(.origin-compact .origin-history,.origin-history){font-size:var(--ui-support);line-height:1.75;color:var(--ui-muted)}
:where(.origin-word-heading .eyebrow,.origin-part-kind){font-size:var(--ui-caption);letter-spacing:.015em}
:where(.origin-source,.origin-components-summary,.origin-compact .origin-components-summary){font-size:var(--ui-support)}
:where(.origin-segment,.origin-plain){min-height:44px;border-radius:8px;padding:8px 12px;font-size:20px;background:var(--ui-accent-soft);border-color:var(--ui-border)}
:where(.origin-plain){background:transparent;border-color:transparent}
:where(.origin-component-detail){font-size:var(--ui-support);line-height:1.7}
:where(.origin-narrative,.origin-example,.origin-definition){font-size:var(--ui-body);line-height:1.75}
:where(.origin-recall){font-size:var(--ui-support)}
:where(.origin-memory h4){font-size:var(--ui-caption);text-transform:none;letter-spacing:0}
:where(.origin-memory>small,.origin-uncertainty){font-size:var(--ui-caption)}
:where(.page-footer){font-size:11px;letter-spacing:.04em;color:var(--ui-muted);padding:28px 0 0;margin-top:32px}
@media(min-width:1600px){:where(#page-practice .practice-layout){grid-template-columns:208px minmax(0,1fr) 208px;gap:28px}}
@media(max-width:1190px){:where(#page-practice .practice-layout){grid-template-columns:minmax(0,1fr);max-width:780px;gap:16px}:where(#page-practice .practice-context){display:flex;flex-wrap:wrap;gap:16px;padding:0 4px}:where(#page-practice .practice-context>.practice-rail-heading,#page-practice .practice-context>.text-button,#page-practice .practice-context>.practice-rail-note,#page-practice .practice-context>.session-track){display:none}:where(.practice-session-stats){display:flex;flex-wrap:wrap;gap:20px}:where(.practice-session-stats>div){border:0;padding:0;gap:8px}:where(#page-practice .practice-aside){display:none}:where(.home-overview){grid-template-columns:repeat(2,minmax(0,1fr))}:where(.home-dashboard>.panel){grid-column:span 6}:where(.home-dashboard>.home-activity,.home-dashboard>.home-recent){grid-column:span 12}}
@media(max-width:900px){:where(.sidebar){transform:translateX(-105%);z-index:100;max-width:calc(100vw - 52px);box-shadow:16px 0 60px #0003}:where(.sidebar.open){transform:translateX(0)}:where(.app-main){margin-left:0}:where(.mobile-menu){display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;font-size:22px}:where(.sidebar-resizer){display:none}:where(.ww-leaderboard-self){left:16px;right:16px}:where(.topbar){gap:14px}:where(.sync-state){display:none}}
@media(max-width:600px){:root{--ui-space-6:20px;--ui-space-7:24px;--ui-space-8:32px}:where(.content){padding:24px 16px 32px}:where(.topbar){height:64px;padding:0 16px}:where(.topbar-right){margin-left:auto;gap:12px}:where(.topbar .breadcrumb,.global-profile-copy,.music-control span){display:none}:where(.page-heading,.welcome-row){align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:24px}:where(.page h1){font-size:28px}:where(.page h2){font-size:20px}:where(.panel,.metric-card,.practice-card,.origin-explorer){padding:20px}:where(.home-overview){gap:10px}:where(.home-stat){display:block;padding:16px}:where(.home-stat .ui-icon-tile){width:32px;height:32px;margin-bottom:12px}:where(.home-stat-copy strong){font-size:27px}:where(.home-stat-copy span){margin-bottom:6px}:where(.home-study-row){grid-template-columns:1fr;gap:14px}:where(.home-dashboard){gap:16px}:where(.home-dashboard>.panel){grid-column:span 12;padding:20px}:where(.home-study-row .feature-card,.home-study-row .daily-card){padding:20px}:where(.home-dashboard .hub-activity){grid-template-columns:1fr auto;gap:6px 12px}:where(.hub-activity small){grid-column:1/-1}:where(#page-practice .practice-card){padding:20px}:where(#page-practice .word-wrap){padding:30px 0 22px}:where(#page-practice .practice-meta){display:flex;flex-wrap:wrap;gap:8px}:where(#answer-form textarea){padding:14px;min-height:140px}:where(#page-practice .form-bottom){flex-direction:column;align-items:stretch}:where(.practice-actions){display:grid;grid-template-columns:1fr 1.3fr;gap:8px}:where(.practice-actions .button){padding:10px 8px;white-space:normal}:where(.ww-grade-result){padding:22px 0 0}:where(.ww-grade-details){grid-template-columns:1fr;gap:16px}:where(.ww-grade-details>div+div){border:0;padding:0}:where(.ww-grade-result .result-heading){font-size:22px}:where(.ww-result-footer){display:flex;align-items:flex-start;flex-direction:column}:where(.ww-result-actions){gap:6px 16px}:where(.ww-result-actions button){font-size:var(--ui-caption)}:where(dialog){padding:22px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}:where(.density-metrics){gap:16px}:where(.density-metric strong){font-size:25px}}
@media(max-width:360px){:where(.content){padding-inline:12px}:where(.home-stat){padding:13px}:where(.home-stat-copy strong){font-size:25px}:where(.practice-actions){grid-template-columns:1fr}:where(.practice-actions .button){width:100%}:where(.global-profile){padding:0}:where(.topbar){gap:8px}}
@media(prefers-reduced-motion:reduce){:root{--ui-motion:0ms}:where(.page.active){animation:none}:where(.app-shell *){scroll-behavior:auto;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.ui-page-mark{display:inline-flex;vertical-align:middle;margin-right:7px;color:var(--ui-accent)}
.ui-page-mark .ui-icon{width:15px;height:15px}
.ui-nav-scrim{position:fixed;inset:0;z-index:99;border:0;border-radius:0;background:#060b1599;cursor:default}
.home-today{font-size:var(--ui-support);color:var(--ui-muted);font-variant-numeric:tabular-nums}
@media(min-width:901px){.ui-nav-scrim{display:none}}

:where(.home-study-row .feature-card,.home-study-row .feature-copy h2){color:var(--ui-text)}
:where(.home-study-row .ww-daily-sun,.home-dashboard .hub-illustration){display:none}
:where(.home-dashboard .hub-card)::before{display:none}
:where(.home-dashboard>.hub-planner){grid-column:1/-1;order:9}
:where(.hub-planner-empty){min-height:0;padding:16px 0}
:where(.topbar){flex-wrap:nowrap;min-height:72px}
:where(.topbar-right){flex-wrap:nowrap;width:auto;max-width:none;align-items:center}
:where(.global-profile){margin-left:0}
:where(fieldset){min-inline-size:0;max-width:100%}
:where(.avatar-choice){font-size:var(--ui-caption);line-height:1.5}
:where(.density-metric .density-value-note){font-size:calc(16px * var(--ui-type-scale));line-height:1.5;overflow-wrap:normal;word-break:normal;letter-spacing:0}
:where(.ww-market){background:var(--ui-accent-soft);color:var(--ui-text);border:1px solid var(--ui-border)}
:where(.ww-market h2,.ww-market p,.ww-market small){color:var(--ui-text)}
:where(.inbox-counts){display:flex;flex-wrap:wrap;gap:8px;align-content:start}
:where(.inbox-count){display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;flex:1 1 140px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);font-size:var(--ui-support)}
:where(.inbox-count.active){background:var(--ui-accent-soft);color:var(--ui-accent)}
:where(.app-footer,.app-footer span,.sidebar-version,.breadcrumb span){color:var(--ui-muted);opacity:1;font-size:var(--ui-caption)}
:where(.week-dot){background:var(--ui-surface-soft);color:var(--ui-muted)}
:where(.week-dot.done){background:var(--ui-accent);color:var(--card)}
:where(#admin-summary .metric-card){background:var(--ui-surface);color:var(--ui-text)}
:where(#admin-summary .metric-note){color:var(--ui-muted);opacity:1;font-size:var(--ui-support)}
:where(.planner-time-head strong){color:var(--ui-text)}
:where(.planner-time-head .is-today strong,.planner-mini-grid .is-selected){background:var(--ui-accent);color:var(--card)}
:where(.planner-layer-note,.planner-calendar-hint){color:var(--ui-text)}
:where(.oct-resale summary span){opacity:1;color:var(--ui-muted)}
:where(.density-metrics){grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr))}
:where(.ww-chat-count,[id^=ww-unread-]){color:var(--ui-text);background:var(--ui-accent-soft)}
:where(.planner-calendar-sidebar>summary){color:var(--ui-text)}
:where(.design-motion-editor,.design-motion-editor>*,[data-motion-map]){min-width:0;max-width:100%}
@media(max-width:800px){:where(.design-motion-editor){grid-template-columns:minmax(0,1fr)}:where(.design-motion-editor ol){grid-column:auto}}
@media(max-width:740px){
 :where(.topbar){height:auto;min-height:64px;padding:8px 16px}
 :where(.topbar-right){flex:0 1 auto;margin-left:auto;gap:10px}
 :where(.topbar .sync-state,.topbar .assessment-reminder,.topbar #assessment-dismiss,.topbar .final-event-pill){display:none}
 :where(.topbar .music-control){display:inline-flex;align-items:center;gap:8px;min-width:44px;min-height:44px}
 :where(.topbar .global-profile){margin:0;flex:none}
 :where(.topbar .global-profile-copy){display:none}
}
