/* Generated from app.css and its layered inputs. Do not edit. */
@layer reset {
/* src/shared/styles/reset.css */
*,*::before,*::after{box-sizing:border-box}
html{height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{height:100%;margin:0}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,p,dl,dd{margin:0}
ul,ol{margin:0;padding:0}
[hidden]{display:none!important}
}

@layer theme {
/* src/shared/styles/shared-visual-tokens.css */
/* GENERATED from packages/alantil-ui. Do not edit by hand. */
:root{
  --ui-accent:#8b6b3b;
  --ui-accent-glow:rgba(139,107,59,0.20);
  --ui-accent-soft:rgba(139,107,59,0.11);
  --ui-accent-strong:#65491f;
  --ui-action-edge-gap:16px;
  --ui-app-bg:#eee9df;
  --ui-app-bg-deep:#e7e0d4;
  --ui-ashyk-button-font-size:14px;
  --ui-ashyk-button-height:38px;
  --ui-ashyk-button-horizontal:13px;
  --ui-ashyk-button-line-height:17px;
  --ui-ashyk-button-radius:14px;
  --ui-ashyk-button-vertical:7px;
  --ui-ashyk-dialog-radius:20px;
  --ui-ashyk-segmented-height:34px;
  --ui-ashyk-segmented-item-height:28px;
  --ui-ashyk-surface-radius:14px;
  --ui-button-action-radius:15px;
  --ui-button-compact-font-size:14px;
  --ui-button-compact-font-weight:750;
  --ui-button-compact-height:30px;
  --ui-button-compact-horizontal:10px;
  --ui-button-compact-line-height:1;
  --ui-button-compact-vertical:4px;
  --ui-button-cut:7px;
  --ui-button-disabled-opacity:0.46;
  --ui-button-font-size:14px;
  --ui-button-font-weight:760;
  --ui-button-height:38px;
  --ui-button-horizontal:13px;
  --ui-button-line-height:1.2;
  --ui-button-match-font-size:14px;
  --ui-button-match-font-weight:760;
  --ui-button-match-line-height:1.2;
  --ui-button-match-padding:8px;
  --ui-button-option-font-size:14px;
  --ui-button-option-font-weight:760;
  --ui-button-option-horizontal:12px;
  --ui-button-option-line-height:18px;
  --ui-button-option-vertical:9px;
  --ui-button-pressed-opacity:0.76;
  --ui-button-pressed-scale:0.98;
  --ui-button-radius:14px;
  --ui-button-settings-small-disabled-opacity:0.48;
  --ui-button-settings-small-font-size:14px;
  --ui-button-settings-small-font-weight:750;
  --ui-button-settings-small-height:29px;
  --ui-button-settings-small-horizontal:10px;
  --ui-button-settings-small-line-height:1;
  --ui-button-settings-small-radius:2px;
  --ui-button-settings-small-vertical:4px;
  --ui-button-station-font-size:14px;
  --ui-button-station-font-weight:760;
  --ui-button-station-height:36px;
  --ui-button-station-horizontal:7px;
  --ui-button-station-line-height:1.2;
  --ui-button-station-vertical:5px;
  --ui-button-vertical:7px;
  --ui-chrome-mask-bottom:linear-gradient(to top,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.28) 38%,rgba(0,0,0,0.07) 76%,transparent 100%);
  --ui-chrome-mask-top:linear-gradient(to bottom,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.28) 38%,rgba(0,0,0,0.07) 76%,transparent 100%);
  --ui-color-modal-shadow:rgba(31,30,26,0.20);
  --ui-color-overlay:rgba(31,30,26,0.52);
  --ui-content-max:720px;
  --ui-content-rest-gap:16px;
  --ui-control-h:44px;
  --ui-control-h-compact:36px;
  --ui-control-h-lg:44px;
  --ui-control-h-sm:36px;
  --ui-control-h-text:28px;
  --ui-danger:#98564c;
  --ui-danger-border:rgba(152,86,76,0.35);
  --ui-danger-soft:rgba(152,86,76,0.12);
  --ui-danger-strong:#733e36;
  --ui-duration-fast:110ms;
  --ui-duration-normal:145ms;
  --ui-favorite-active:#9b7027;
  --ui-favorite-icon-size:23px;
  --ui-favorite-size:36px;
  --ui-graph-first-try:#b45309;
  --ui-graph-shows:#1d65b5;
  --ui-graph-tests:#218044;
  --ui-guide-compact-height:35px;
  --ui-guide-compact-horizontal:10px;
  --ui-guide-compact-min-width:98px;
  --ui-guide-compact-width:390px;
  --ui-guide-font-size:11px;
  --ui-guide-font-weight:800;
  --ui-guide-height:36px;
  --ui-guide-padding-horizontal:12px;
  --ui-guide-width:104px;
  --ui-header-action-icon-size:20px;
  --ui-header-action-size:36px;
  --ui-header-text-action-font-size:14px;
  --ui-header-text-action-font-weight:750;
  --ui-header-text-action-height:34px;
  --ui-header-text-action-horizontal:10px;
  --ui-header-text-action-line-height:1;
  --ui-info:#58777a;
  --ui-info-background:#eee9df;
  --ui-info-block-gap:20px;
  --ui-info-chart-axis:10px;
  --ui-info-chart-legend:11px;
  --ui-info-chart-point:11px;
  --ui-info-edge:14px;
  --ui-info-heading-content-gap:12px;
  --ui-info-heading-gap:10px;
  --ui-info-padding:0px;
  --ui-info-radius:0px;
  --ui-info-separator-width:1px;
  --ui-info-surface:transparent;
  --ui-info-text-gap:4px;
  --ui-layer-content:0;
  --ui-layer-floating:32;
  --ui-layer-header:30;
  --ui-layer-mask:20;
  --ui-layer-modal:110;
  --ui-layer-tabs:30;
  --ui-learn-undo-direction:row;
  --ui-learn-undo-gap:4px;
  --ui-line:rgba(54,50,43,0.22);
  --ui-line-soft:rgba(54,50,43,0.12);
  --ui-line-strong:rgba(54,50,43,0.46);
  --ui-list-action:36px;
  --ui-list-description-color:#666158;
  --ui-list-description-family:var(--font-body);
  --ui-list-description-line-height:1.35;
  --ui-list-description-size:var(--text-body);
  --ui-list-description-weight:400;
  --ui-list-gap:8px;
  --ui-list-horizontal:12px;
  --ui-list-huge-primary-size:18px;
  --ui-list-huge-secondary-size:18px;
  --ui-list-huge-service-size:14px;
  --ui-list-large-primary-size:16px;
  --ui-list-large-secondary-size:16px;
  --ui-list-large-service-size:12px;
  --ui-list-leading:36px;
  --ui-list-medium-primary-size:14px;
  --ui-list-medium-secondary-size:14px;
  --ui-list-medium-service-size:10px;
  --ui-list-metric-value-color:#292722;
  --ui-list-metric-value-family:var(--font-body);
  --ui-list-metric-value-line-height:1.1;
  --ui-list-metric-value-size:calc(var(--text-body) + 3px);
  --ui-list-metric-value-weight:800;
  --ui-list-primary-size:14px;
  --ui-list-primary-weight:600;
  --ui-list-profile-progress-height:60px;
  --ui-list-result-height:80px;
  --ui-list-row-huge:72px;
  --ui-list-row-large:64px;
  --ui-list-row-medium:56px;
  --ui-list-row-number-color:#292722;
  --ui-list-row-number-family:var(--font-body);
  --ui-list-row-number-line-height:1.25;
  --ui-list-row-number-size:var(--text-body);
  --ui-list-row-number-weight:800;
  --ui-list-row-small:48px;
  --ui-list-row-title-color:#292722;
  --ui-list-row-title-family:var(--font-body);
  --ui-list-row-title-line-height:1.25;
  --ui-list-row-title-size:var(--text-body);
  --ui-list-row-title-weight:600;
  --ui-list-screen-heading-color:#292722;
  --ui-list-screen-heading-family:var(--font-body);
  --ui-list-screen-heading-line-height:1.18;
  --ui-list-screen-heading-size:var(--text-accent);
  --ui-list-screen-heading-weight:800;
  --ui-list-secondary-size:14px;
  --ui-list-section-heading-color:#292722;
  --ui-list-section-heading-family:var(--font-body);
  --ui-list-section-heading-line-height:1.2;
  --ui-list-section-heading-size:var(--text-body);
  --ui-list-section-heading-weight:800;
  --ui-list-service-size:10px;
  --ui-list-service-weight:800;
  --ui-list-small-primary-size:12px;
  --ui-list-small-secondary-size:12px;
  --ui-list-small-service-size:10px;
  --ui-list-table-header-color:#666158;
  --ui-list-table-header-family:var(--font-body);
  --ui-list-table-header-height:38px;
  --ui-list-table-header-line-height:1.2;
  --ui-list-table-header-size:var(--text-body);
  --ui-list-table-header-weight:800;
  --ui-list-timestamp-color:#918b80;
  --ui-list-timestamp-family:var(--font-body);
  --ui-list-timestamp-line-height:1.25;
  --ui-list-timestamp-size:var(--text-body);
  --ui-list-timestamp-weight:400;
  --ui-locked:#aaa49a;
  --ui-nav-h:60px;
  --ui-practice-gap:8px;
  --ui-practice-icon-size:23px;
  --ui-practice-leading-size:36px;
  --ui-practice-row-height:56px;
  --ui-practice-single-row-height:56px;
  --ui-practice-subtitle-size:14px;
  --ui-practice-title-size:14px;
  --ui-profile-gender-compact-height:150px;
  --ui-profile-gender-compact-width:360px;
  --ui-profile-gender-gap:9px;
  --ui-profile-gender-height:180px;
  --ui-profile-tab-gap:3px;
  --ui-profile-tab-item-height:30px;
  --ui-profile-tab-item-padding-horizontal:4px;
  --ui-progress-bracket-gap:5px;
  --ui-progress-fill:#292722;
  --ui-progress-segment-gap:4px;
  --ui-progress-segment-height:2px;
  --ui-progress-segment-width:8px;
  --ui-progress-segments:10;
  --ui-progress-track:rgba(41,39,34,.20);
  --ui-radius-lg:20px;
  --ui-radius-md:15px;
  --ui-radius-pill:999px;
  --ui-radius-sm:10px;
  --ui-radius-xs:7px;
  --ui-route-catalog-gap:118px;
  --ui-route-dictionary-gap:118px;
  --ui-route-heading-gap:22px;
  --ui-route-scale-diamond-size:9px;
  --ui-route-scale-dot-size:4px;
  --ui-route-scale-height:60%;
  --ui-route-scale-section-size:6px;
  --ui-route-section-gap:92px;
  --ui-social-action-size:36px;
  --ui-social-compact-action-size:36px;
  --ui-social-compact-width:560px;
  --ui-social-rank-width:36px;
  --ui-social-row-height:56px;
  --ui-social-search-height:38px;
  --ui-social-search-radius:12px;
  --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-station-footer-gap:6px;
  --ui-station-side:12px;
  --ui-station-size:60px;
  --ui-station-tab-padding-max:76px;
  --ui-station-tab-padding-min:44px;
  --ui-station-tab-padding-ratio:0.14;
  --ui-station-toolbar-height:28px;
  --ui-station-toolbar-side:18px;
  --ui-success:#5d7654;
  --ui-success-border:rgba(93,118,84,0.32);
  --ui-success-soft:rgba(93,118,84,0.12);
  --ui-success-strong:#425a3b;
  --ui-surface-0:#f6f2e9;
  --ui-surface-1:#eee8dc;
  --ui-surface-2:#e2d9c9;
  --ui-surface-3:#cec0aa;
  --ui-surface-component:rgba(255,255,255,0.28);
  --ui-surface-dark:#34312c;
  --ui-surface-panel-faint:rgba(255,255,255,0.08);
  --ui-surface-panel-mid:rgba(255,255,255,0.14);
  --ui-surface-panel-soft:rgba(255,255,255,0.10);
  --ui-surface-panel-strong:rgba(255,255,255,0.20);
  --ui-surface-paper:rgba(255,255,255,0.22);
  --ui-surface-paper-soft:rgba(255,255,255,0.13);
  --ui-surface-white-20:rgba(255,255,255,0.20);
  --ui-surface-white-23:rgba(255,255,255,0.23);
  --ui-surface-white-30:rgba(255,255,255,0.30);
  --ui-surface-white-34:rgba(255,255,255,0.34);
  --ui-surface-white-40:rgba(255,255,255,0.40);
  --ui-surface-white-55:rgba(255,255,255,0.55);
  --ui-system-control-blur:8px;
  --ui-system-mask-blur:7px;
  --ui-system-mask-glass-alpha:0.1;
  --ui-text-1:#292722;
  --ui-text-2:#666158;
  --ui-text-3:#918b80;
  --ui-text-action-font-size:14px;
  --ui-text-action-font-weight:650;
  --ui-text-action-line-height:1;
  --ui-text-action-pressed-opacity:0.68;
  --ui-text-huge-accent:28px;
  --ui-text-huge-body:18px;
  --ui-text-huge-button:16px;
  --ui-text-huge-result:48px;
  --ui-text-huge-technical:14px;
  --ui-text-inverse:#faf8f2;
  --ui-text-large-accent:24px;
  --ui-text-large-body:16px;
  --ui-text-large-button:14px;
  --ui-text-large-result:48px;
  --ui-text-large-technical:12px;
  --ui-text-medium-accent:20px;
  --ui-text-medium-body:14px;
  --ui-text-medium-button:12px;
  --ui-text-medium-result:48px;
  --ui-text-medium-technical:10px;
  --ui-text-small-accent:16px;
  --ui-text-small-body:12px;
  --ui-text-small-button:11px;
  --ui-text-small-result:48px;
  --ui-text-small-technical:10px;
  --ui-warning:#a47736;
}
}

@layer theme {
/* src/shared/styles/theme.css */
:root,
html[data-theme="alan-paper"]{
  color-scheme:light;

  --font-body:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:var(--font-body);
  --font-brand:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --font-terminal:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;

  /* Four-role typography source. Medium is the application default. */
  --text-technical:var(--ui-text-medium-technical);
  --text-body:var(--ui-text-medium-body);
  --text-button:var(--ui-text-medium-button);
  --text-accent:var(--ui-text-medium-accent);
  --text-result:var(--ui-text-medium-result);

  /* Transitional aliases: no selector may use these as a semantic role. */
  --text-micro:var(--text-technical);
  --text-caption:var(--text-technical);
  --text-emphasis:var(--text-accent);
  --text-title:var(--text-accent);
  --text-display:var(--text-accent);

  --text-1:var(--ui-text-1);
  --text-2:var(--ui-text-2);
  --text-3:var(--ui-text-3);
  --text-inverse:var(--ui-text-inverse);

  --app-bg:var(--ui-app-bg);
  --app-bg-deep:var(--ui-app-bg-deep);
  --shell-bg:var(--app-bg);
  --surface-0:var(--ui-surface-0);
  --surface-1:var(--ui-surface-1);
  --surface-2:var(--ui-surface-2);
  --surface-3:var(--ui-surface-3);
  --surface-dark:var(--ui-surface-dark);
  --surface-glass:rgba(238,233,223,.94);
  --surface-paper:var(--ui-surface-paper);
  --surface-paper-soft:var(--ui-surface-paper-soft);
  --surface-panel:transparent;
  --surface-panel-strong:var(--ui-surface-panel-strong);
  --surface-panel-mid:var(--ui-surface-panel-mid);
  --surface-panel-soft:var(--ui-surface-panel-soft);
  --surface-panel-faint:var(--ui-surface-panel-faint);
  --surface-panel-ghost:transparent;
  --surface-white-55:var(--ui-surface-white-55);
  --surface-white-40:var(--ui-surface-white-40);
  --surface-white-34:var(--ui-surface-white-34);
  --surface-white-30:var(--ui-surface-white-30);
  --surface-white-23:var(--ui-surface-white-23);
  --surface-white-20:var(--ui-surface-white-20);
  --surface-list:transparent;
  --surface-list-soft:transparent;
  --surface-component:var(--ui-surface-component);
  --surface-card-gradient:none;
  --surface-learn-gradient:linear-gradient(145deg,rgba(248,245,237,.92),rgba(232,224,211,.9));

  --line-soft:var(--ui-line-soft);
  --line:var(--ui-line);
  --line-strong:var(--ui-line-strong);

  --accent:var(--ui-accent);
  --accent-strong:var(--ui-accent-strong);
  --accent-soft:var(--ui-accent-soft);
  --accent-glow:var(--ui-accent-glow);
  --success:var(--ui-success);
  --success-strong:var(--ui-success-strong);
  --success-soft:var(--ui-success-soft);
  --danger:var(--ui-danger);
  --danger-strong:var(--ui-danger-strong);
  --danger-soft:var(--ui-danger-soft);
  --warning:var(--ui-warning);
  --info:var(--ui-info);
  --locked:var(--ui-locked);
  --success-border:var(--ui-success-border);
  --danger-border:var(--ui-danger-border);
  --success-button-top:#718c68;
  --danger-button-top:#ad6c61;
  --button-shadow:rgba(56,45,28,.12);
  --pulse-clear:rgba(139,107,59,0);

  --path-scene-gradient:
    radial-gradient(circle at 28% 12%,rgba(255,255,255,.36),transparent 34%),
    linear-gradient(180deg,var(--app-bg),var(--app-bg-deep));
  --path-grain:repeating-linear-gradient(12deg,rgba(61,55,46,.018) 0 1px,transparent 1px 4px);
  --path-controls-bg:linear-gradient(180deg,var(--app-bg) 0%,rgba(238,233,223,.98) 72%,rgba(238,233,223,0) 100%);
  --path-road:repeating-linear-gradient(180deg,rgba(93,86,75,.36) 0 6px,transparent 6px 12px);
  --path-road-outline:rgba(54,50,43,.08);
  --path-label-shadow:rgba(238,233,223,.86);
  --path-nav-dot:rgba(70,66,59,.22);
  --path-nav-dot-seen:rgba(70,66,59,.4);
  --path-nav-dot-current:rgba(101,73,31,.68);
  --path-segment-1:none;
  --path-segment-2:none;
  --path-segment-3:none;
  --path-segment-4:none;
  --path-segment-5:none;
  --path-segment-6:none;
  --path-segment-7:none;
  --path-segment-8:none;
  --media-progress:0%;

  --topographic-lines:
    radial-gradient(ellipse at 16% 12%,transparent 0 16%,rgba(73,78,57,.10) 16.2% 16.6%,transparent 16.8% 23%,rgba(73,78,57,.08) 23.2% 23.6%,transparent 23.8%),
    radial-gradient(ellipse at 78% 48%,transparent 0 17%,rgba(73,78,57,.08) 17.2% 17.6%,transparent 17.8% 25%,rgba(73,78,57,.07) 25.2% 25.6%,transparent 25.8%),
    repeating-radial-gradient(ellipse at 55% 92%,transparent 0 26px,rgba(73,78,57,.045) 27px 28px,transparent 29px 39px);

  --millstone-size:78px;
  --millstone-border:rgba(75,70,61,.42);
  --millstone-face:
    radial-gradient(circle at 50% 50%,var(--app-bg) 0 8%,transparent 9%),
    repeating-conic-gradient(from 4deg,rgba(255,255,255,.2) 0 7deg,rgba(74,69,60,.06) 7deg 13deg),
    radial-gradient(circle at 36% 30%,#eee8dc 0 4%,transparent 5%),
    radial-gradient(circle at 66% 66%,rgba(81,75,65,.12) 0 3%,transparent 4%),
    linear-gradient(145deg,#d8d0c2,#bdb2a2);
  --millstone-face-locked:
    radial-gradient(circle at 50% 50%,var(--app-bg) 0 8%,transparent 9%),
    repeating-conic-gradient(from 4deg,rgba(255,255,255,.1) 0 7deg,rgba(74,69,60,.03) 7deg 13deg),
    linear-gradient(145deg,#e3ded5,#ccc5ba);
  --millstone-face-mastered:
    radial-gradient(circle at 50% 50%,var(--app-bg) 0 8%,transparent 9%),
    repeating-conic-gradient(from 4deg,rgba(255,255,255,.17) 0 7deg,rgba(91,66,29,.07) 7deg 13deg),
    linear-gradient(145deg,#d9c79e,#b89a63);
  --millstone-ring:rgba(101,73,31,.42);
  --millstone-inner-border:rgba(72,66,56,.18);
  --millstone-hole-shadow:inset 0 1px 3px rgba(50,46,39,.25);
  --millstone-shadow:0 5px 12px rgba(54,50,43,.12);
  --station-stone-image:none;

  --shadow-xs:0 1px 2px rgba(41,39,33,.05);
  --shadow-sm:0 5px 14px rgba(41,39,33,.07);
  --shadow-md:0 12px 30px rgba(41,39,33,.12);
  --shadow-stone:var(--millstone-shadow);
  --shell-shadow:transparent;
  --nav-shadow:transparent;
  --shell-session-gradient:var(--app-bg);

  --radius-xs:var(--ui-radius-xs);
  --radius-sm:var(--ui-radius-sm);
  --radius-md:var(--ui-radius-md);
  --radius-lg:var(--ui-radius-lg);
  --radius-pill:var(--ui-radius-pill);

  --space-1:var(--ui-space-1);
  --space-2:var(--ui-space-2);
  --space-3:var(--ui-space-3);
  --space-4:var(--ui-space-4);
  --space-5:var(--ui-space-5);
  --space-6:var(--ui-space-6);
  --space-7:var(--ui-space-7);
  --space-8:var(--ui-space-8);

  --control-h-sm:var(--ui-control-h-sm);
  --control-h:var(--ui-control-h);
  --control-h-compact:var(--ui-control-h-compact);
  --control-h-text:var(--ui-control-h-text);
  --control-h-lg:var(--ui-control-h-lg);
  --content-max:var(--ui-content-max);
  --header-h:46px;
  --nav-h:var(--ui-nav-h);
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);

  --duration-fast:var(--ui-duration-fast);
  --duration-normal:var(--ui-duration-normal);
  --ease-standard:cubic-bezier(.2,.7,.2,1);

  --route-station-gap:25px;
  --route-section-gap:var(--ui-route-section-gap);
  --route-dictionary-gap:var(--ui-route-dictionary-gap);
  --route-catalog-gap:var(--ui-route-catalog-gap);
  --route-heading-gap:var(--ui-route-heading-gap);
  --route-scale-dot-size:var(--ui-route-scale-dot-size);
  --route-scale-section-size:var(--ui-route-scale-section-size);
  --route-scale-diamond-size:var(--ui-route-scale-diamond-size);
  --route-scale-height:var(--ui-route-scale-height);
  --route-scale-unpassed:color-mix(in srgb,var(--text-1) 18%,transparent);
  --route-scale-passed:color-mix(in srgb,var(--text-1) 72%,transparent);
  --route-scale-section-color:color-mix(in srgb,var(--text-1) 34%,transparent);
  --route-scale-diamond-color:color-mix(in srgb,var(--text-1) 55%,transparent);
  --station-size:var(--ui-station-size);
  --station-progress-track:color-mix(in srgb,var(--text-1) 10%,transparent);
  --station-progress-fill:var(--accent-strong);
  --header-blur:5px;
  --segmented-progress-segments:10;

  --z-content:var(--ui-layer-content);
  --z-mask:var(--ui-layer-mask);
  --z-header:var(--ui-layer-header);
  --z-tabs:var(--ui-layer-tabs);
  --z-path-controls:var(--ui-layer-tabs);
  --z-nav:var(--ui-layer-floating);
  --z-overlay:100;
  --z-modal:var(--ui-layer-modal);

  /* Compatibility aliases retained for stable feature logic. */
  --r:var(--radius-lg);
  --brand:var(--accent);
  --brand-dark:var(--accent-strong);
  --bg:var(--app-bg);
  --card-bg:var(--surface-0);
  --text-main:var(--text-1);
  --text-secondary:var(--text-2);
  --border:var(--line-soft);
  --font-base:var(--font-body);
  --fw-bold:850;
  --fw-semibold:720;
  --fw-regular:400;
  --fs-24px:var(--text-accent);
  --fs-22px:var(--text-accent);
  --fs-20px:var(--text-accent);
  --fs-18px:var(--text-accent);
  --fs-16px:var(--text-accent);
  --fs-14px:var(--text-body);
  --color-main:var(--text-1);
  --color-muted:var(--text-2);
  --color-white:#fff;
  --color-black:#000;
  --color-icon:var(--text-1);
  --color-text-dark:var(--text-1);
  --color-muted-ui:var(--text-3);
  --color-input-border:var(--line);
  --color-neutral:var(--surface-3);
  --color-success:var(--success);
  --color-danger:var(--danger);
  --favorite-active:var(--ui-favorite-active);
  --favorite-active-soft:rgba(155,112,39,.1);
  --color-check-muted:rgba(38,37,31,.25);
  --color-check-light:rgba(255,255,255,.7);
  --color-overlay:var(--ui-color-overlay);
  --color-modal-shadow:var(--ui-color-modal-shadow);
  --brand-soft-06:rgba(139,107,59,.06);
  --brand-soft-08:rgba(139,107,59,.08);
  --brand-soft-10:rgba(139,107,59,.1);
  --brand-soft-12:rgba(139,107,59,.12);
  --brand-soft-18:rgba(139,107,59,.18);
  --brand-soft-20:rgba(139,107,59,.2);
  --brand-soft-25:rgba(139,107,59,.25);
  --brand-soft-45:rgba(139,107,59,.45);
  --brand-soft-55:rgba(139,107,59,.55);
  --success-soft-12:rgba(93,118,84,.12);
  --success-soft-45:rgba(93,118,84,.45);
  --danger-soft-10:rgba(152,86,76,.1);
  --danger-soft-45:rgba(152,86,76,.45);
  --word-group-bg:rgba(88,119,122,.09);
  --instagram-gradient:linear-gradient(135deg,#bd7835,#8d4d5a 56%,#65527d);
  --mask-solid:#000;
  --swipe-brand-rgb:139,107,59;
  --swipe-success-rgb:93,118,84;
  --swipe-danger-rgb:152,86,76;
  --control-height:var(--control-h);
  --control-height-compact:var(--control-h-compact);
  --control-radius:var(--radius-sm);
  --control-padding-inline:14px;
  --control-background:var(--surface-component);
  --control-border:var(--line);
}

html[data-text-size="small"]{
  --text-technical:var(--ui-text-small-technical);
  --text-body:var(--ui-text-small-body);
  --text-button:var(--ui-text-small-button);
  --text-accent:var(--ui-text-small-accent);
  --text-result:var(--ui-text-small-result);
}

html[data-text-size="medium"]{
  --text-technical:var(--ui-text-medium-technical);
  --text-body:var(--ui-text-medium-body);
  --text-button:var(--ui-text-medium-button);
  --text-accent:var(--ui-text-medium-accent);
  --text-result:var(--ui-text-medium-result);
}

html[data-text-size="large"]{
  --text-technical:var(--ui-text-large-technical);
  --text-body:var(--ui-text-large-body);
  --text-button:var(--ui-text-large-button);
  --text-accent:var(--ui-text-large-accent);
  --text-result:var(--ui-text-large-result);
}

html[data-text-size="huge"]{
  --text-technical:var(--ui-text-huge-technical);
  --text-body:var(--ui-text-huge-body);
  --text-button:var(--ui-text-huge-button);
  --text-accent:var(--ui-text-huge-accent);
  --text-result:var(--ui-text-huge-result);
}
}

@layer base {
/* src/shared/styles/base.css */
html,body{overflow:hidden}
body{
  font-family:var(--font-body);
  color:var(--text-1);
  background:var(--app-bg);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:var(--accent-soft)}
.hidden{display:none!important}
.typo-title,.panelTitle,.secTitle{font-size:20px;font-weight:820;color:var(--text-1)}
.typo-subtitle,.hintText,.meta,.learnLabel{font-size:14px;color:var(--text-2)}
.typo-card-main,.groupPill{font-size:20px;font-weight:700;color:var(--text-1)}
.typo-body,.trans{font-size:16px;color:var(--text-1)}
.typo-muted,.setTileCount,.hint,.smallNote,.dictNum{font-size:13px;color:var(--text-2)}
.smallNote{line-height:1.5}.smallNote+.smallNote{margin-top:8px}
button,input{touch-action:manipulation}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent-glow);outline-offset:2px}

button,a,[role="button"],label{-webkit-tap-highlight-color:transparent}

*{scrollbar-width:none}
*::-webkit-scrollbar{width:0;height:0;display:none}
html,body,.appShell,.appViewport{overflow-x:hidden}
}

@layer shell {
/* src/shared/styles/shell.css */
.appShell{
  --header-h:42px;
  --nav-h:60px;
  --content-rest-gap:var(--ui-content-rest-gap);
  --action-edge-gap:var(--ui-action-edge-gap);
  --chrome-top-depth:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap));
  --chrome-bottom-depth:calc(var(--safe-bottom) + var(--content-rest-gap));
  --system-mask-bg:rgb(238 233 223 / var(--ui-system-mask-glass-alpha));
  --system-mask-blur:var(--ui-system-mask-blur);
  --system-control-bg:color-mix(in srgb,var(--surface-0) 28%,transparent);
  --system-control-bg-active:color-mix(in srgb,var(--surface-0) 46%,transparent);
  --system-control-border:color-mix(in srgb,var(--line) 44%,transparent);
  position:relative;
  width:min(100%,var(--content-max));
  height:100dvh;
  margin:0 auto;
  overflow:hidden;
  background:var(--app-bg);
  isolation:isolate;
}
.appViewport::before,.appViewport::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  z-index:var(--z-mask);
  pointer-events:none;
  background:rgba(238,233,223,.18);
  background:var(--system-mask-bg);
  -webkit-backdrop-filter:blur(var(--system-mask-blur)) saturate(1.02);
  backdrop-filter:blur(var(--system-mask-blur)) saturate(1.02);
}
.appViewport::before{
  top:0;
  height:var(--chrome-top-depth);
  -webkit-mask-image:var(--ui-chrome-mask-top);
  mask-image:var(--ui-chrome-mask-top);
}
.appViewport::after{
  bottom:0;
  height:var(--chrome-bottom-depth);
  -webkit-mask-image:var(--ui-chrome-mask-bottom);
  mask-image:var(--ui-chrome-mask-bottom);
}
.appShell[data-bottom-nav="true"]{--chrome-bottom-depth:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap))}
.appHeader{
  position:absolute;
  z-index:var(--z-header);
  inset:0 0 auto 0;
  height:calc(var(--header-h) + var(--safe-top));
  min-width:0;
  padding:var(--safe-top) 10px 0;
  pointer-events:none;
  background:transparent;
  border:0;
  box-shadow:none;
}
.appHeaderLeading,.appHeaderTrailing{position:absolute;z-index:2;top:var(--safe-top);height:var(--header-h);display:flex;align-items:center;gap:6px;min-width:0;pointer-events:auto}
.appHeaderLeading{left:10px;justify-content:flex-start}
.appHeaderTrailing{right:10px;justify-content:flex-end}
.appHeaderCenter{position:absolute;z-index:1;top:var(--safe-top);left:56px;right:56px;height:var(--header-h);min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.05;pointer-events:none}
.appHeaderText{min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.appHeaderScreenTitle{max-width:100%;font:800 clamp(15px,4vw,18px)/1.08 var(--font-body);color:var(--text-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appHeaderSubtitle{max-width:100%;margin-top:2px;color:var(--text-2);font:650 10px/1.1 var(--font-terminal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appHeaderAction{
  appearance:none;
  width:var(--ui-header-action-size);
  height:var(--ui-header-action-size);
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--system-control-border);
  border-radius:50%;
  background:var(--system-control-bg);
  color:var(--text-2);
  box-shadow:0 2px 9px rgba(41,39,33,.025);
  -webkit-backdrop-filter:blur(var(--ui-system-control-blur));
  backdrop-filter:blur(var(--ui-system-control-blur));
  transition:transform var(--duration-fast),background var(--duration-fast),border-color var(--duration-fast),opacity var(--duration-fast);
}
.appHeaderAction:active{opacity:1;transform:scale(.96);background:var(--system-control-bg-active);border-color:var(--line)}
.appHeaderAction svg{display:block;width:var(--ui-header-action-icon-size);height:var(--ui-header-action-icon-size);margin:0;transform:none}
.appHeaderActionSlot{display:flex;align-items:center;justify-content:flex-end;min-width:0;pointer-events:auto}
.appHeaderTextAction{appearance:none;min-width:0;min-height:var(--ui-header-text-action-height);padding:0 var(--ui-header-text-action-horizontal);border:1px solid var(--system-control-border);border-radius:999px;background:var(--system-control-bg);color:var(--text-2);font:var(--ui-header-text-action-font-weight) var(--ui-header-text-action-font-size)/var(--ui-header-text-action-line-height) var(--font-terminal);-webkit-backdrop-filter:blur(var(--ui-system-control-blur));backdrop-filter:blur(var(--ui-system-control-blur))}
.appHeaderTextAction:active{opacity:1;transform:scale(.97);background:var(--system-control-bg-active)}
.appViewport{position:absolute;z-index:1;inset:0;min-width:0;min-height:0;overflow:hidden;background:var(--app-bg)}
.sessionStatus{min-width:max-content;min-height:0;padding:0;display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--text-2);font:750 10px/1.2 var(--font-terminal);background:transparent;pointer-events:none}
.sessionMode:empty{display:none}
.appScreenHost{width:100%;height:100%;min-height:0;overflow:hidden;position:relative;transition:opacity var(--duration-normal) var(--ease-standard),transform var(--duration-normal) var(--ease-standard)}
.appScreenHost.is-entering{opacity:0;transform:translateY(5px)}
.screenState{height:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:calc(var(--header-h) + var(--safe-top) + 24px) 24px calc(var(--nav-h) + var(--safe-bottom) + 24px);text-align:center;color:var(--text-2)}
.screenStatePulse{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 var(--accent-glow);animation:screenPulse 1.2s infinite}
.screenStateError{color:var(--danger)}
@keyframes screenPulse{70%{box-shadow:0 0 0 8px var(--pulse-clear)}100%{box-shadow:0 0 0 0 var(--pulse-clear)}}
.bottomNav{
  position:absolute;
  z-index:var(--z-nav);
  inset:auto 0 0 0;
  min-width:0;
  height:calc(var(--nav-h) + var(--safe-bottom));
  padding:2px 12px var(--safe-bottom);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:start;
  background:transparent;
  border:0;
  box-shadow:none;
}
.bottomNav::before,.bottomNav::after{content:none}
.bottomNav[hidden]{display:none}
.bottomNavItem{
  appearance:none;
  position:relative;
  z-index:1;
  min-width:0;
  height:var(--nav-h);
  padding:1px 3px 2px;
  border:0;
  background:transparent;
  color:color-mix(in srgb,var(--text-2) 62%,transparent);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  font-size:10px;
  font-weight:650;
  transition:color var(--duration-fast),opacity var(--duration-fast),transform var(--duration-fast);
}
.bottomNavItem.active{color:var(--text-1);background:transparent}
.bottomNavItem:active{background:transparent;opacity:.78;transform:scale(.97)}
.bottomNavIconBubble{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--line) 34%,transparent);
  border-radius:50%;
  background:color-mix(in srgb,var(--surface-0) 22%,transparent);
  color:var(--text-2);
  box-shadow:0 2px 8px rgba(41,39,33,.018);
  -webkit-backdrop-filter:blur(var(--ui-system-control-blur));
  backdrop-filter:blur(var(--ui-system-control-blur));
  transition:background var(--duration-fast),border-color var(--duration-fast),color var(--duration-fast),transform var(--duration-fast);
}
.bottomNavItem.active .bottomNavIconBubble{background:color-mix(in srgb,var(--text-1) 88%,transparent);border-color:color-mix(in srgb,var(--text-1) 32%,transparent);color:var(--text-inverse)}
.bottomNavPathBubble{color:var(--text-1)}
.bottomNavItem.active .bottomNavPathBubble{color:var(--text-inverse)}
.bottomNavIcon{display:block;width:20px;height:20px;fill:none;stroke:currentColor}
.bottomNavElbrus{display:block;width:29px;height:auto;max-height:17px;object-fit:contain;opacity:.9;filter:brightness(0) saturate(100%)}
.bottomNavItem.active .bottomNavElbrus{opacity:1;filter:none}
.bottomNavLabel{line-height:1.05;white-space:nowrap}
.stationLaunchPanel,.setPreparationFooter,.modeLaunchBar,.learnSessionActions{position:relative;z-index:var(--ui-layer-floating);background:transparent!important;border:0;box-shadow:none}
.profilePrimaryNav,.stationViewTabs{position:relative;z-index:var(--z-tabs)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .appViewport::before,.appViewport::after{background:rgba(238,233,223,.16)}
  .appHeaderAction,.appHeaderTextAction,.bottomNavIconBubble{background:color-mix(in srgb,var(--surface-0) 48%,transparent)}
}
@media(max-width:360px){.appHeader{padding-left:6px;padding-right:6px}.bottomNav{padding-left:8px;padding-right:8px}.bottomNavItem{font-size:9px}.bottomNavIconBubble{width:36px;height:36px;flex-basis:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.expandSearchToggle{color:var(--text-2)}
.expandSearchToggle.active{color:var(--accent-strong)}
.expandSearchToggle svg{width:16px;height:16px;fill:currentColor;color:inherit}
}

@layer components {
/* src/shared/styles/components.css */
.view,.screen{width:100%;height:100%;min-height:0}
.view{padding:12px}
.panel{
  width:100%;height:100%;min-height:0;
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface-card-gradient);
  box-shadow:var(--shadow-sm);
}
.panel-header{position:relative;z-index:var(--ui-layer-floating);min-height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:2px 0 4px;border:0}
.panelTitle{min-width:0;flex:0 1 auto;margin:0;font-size:20px;font-weight:850;line-height:1.18}
.panel-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 16px 18px}
.panel-body::-webkit-scrollbar,.contentList::-webkit-scrollbar{width:5px}
.panel-body::-webkit-scrollbar-thumb,.contentList::-webkit-scrollbar-thumb{background:var(--line);border-radius:var(--radius-pill)}
.stack{display:flex;flex-direction:column;gap:10px}
.row{display:flex;gap:10px;margin-top:12px}
.row>*{min-width:0}
.field{display:grid;gap:7px;margin:10px 0}
.field span{color:var(--text-2);font-size:14px}
input,textarea,select{
  width:100%;min-height:var(--control-h);padding:0 14px;
  border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--surface-component);color:var(--text-1);
  box-shadow:inset 0 1px 0 var(--surface-white-55);
}
input::placeholder,textarea::placeholder{color:var(--text-3)}
.searchInput{flex:1;min-width:0;height:40px;min-height:40px;border-radius:var(--radius-pill);padding-inline:15px}
.btn,.sectionMenuItem,.menuItem,.profileLink,.optionBtn,.matchCard,.storyRow{
  appearance:none;border:1px solid var(--line);background:var(--surface-0);color:var(--text-1);
  box-shadow:var(--shadow-xs);transition:transform var(--duration-fast),background var(--duration-fast),border-color var(--duration-fast),box-shadow var(--duration-fast),opacity var(--duration-fast);
}
.btn{
  min-height:var(--ui-button-height);padding:var(--ui-button-vertical) var(--ui-button-horizontal);border-radius:2px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:var(--ui-button-font-size);font-weight:var(--ui-button-font-weight);line-height:var(--ui-button-line-height);
}
.btn:hover:not(:disabled),.sectionMenuItem:hover:not(:disabled),.menuItem:hover:not(:disabled),.profileLink:hover:not(:disabled),.optionBtn:hover:not(:disabled){border-color:var(--accent);box-shadow:var(--shadow-sm)}
.btn:active:not(:disabled),.sectionMenuItem:active:not(:disabled),.menuItem:active:not(:disabled),.profileLink:active:not(:disabled),.optionBtn:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.btn:disabled,.optionBtn:disabled{opacity:var(--ui-button-disabled-opacity);box-shadow:none}
.btn.actionPrimary{border-color:var(--accent-strong);background:var(--accent);color:var(--text-inverse);box-shadow:none}
.btn.actionText{border-color:transparent;background:transparent;color:var(--text-2);box-shadow:none}
.btn.actionText:hover:not(:disabled){border-color:transparent;background:transparent;color:var(--text-1);box-shadow:none}
.btn.actionCompact{min-height:var(--ui-button-compact-height);padding:var(--ui-button-compact-vertical) var(--ui-button-compact-horizontal);font:var(--ui-button-compact-font-weight) var(--ui-button-compact-font-size)/var(--ui-button-compact-line-height) var(--font-terminal)}
.btn.mini{min-height:var(--control-h-sm);margin-top:12px}
.btnIcon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto}
.btnIcon svg{width:100%;height:100%;fill:currentColor}
.btnLabel{min-width:0}
.iconBtn{width:40px;height:40px;flex:0 0 40px;padding:9px;border:0;border-radius:0;background:transparent;color:var(--text-1);display:grid;place-items:center}
.iconBtn svg,.iconBtn img{width:22px;height:22px;object-fit:contain}
.hintText{margin:0 0 10px;color:var(--text-2);font-size:14px;line-height:1.45}
.errorState,.emptyState{padding:22px;border:1px dashed var(--line);border-radius:var(--radius-md);background:var(--surface-panel-faint);text-align:center;color:var(--text-2)}
.errorState{color:var(--danger)}
.loadingState{height:100%;display:grid;place-items:center;color:var(--text-2)}
.emptyStateTitle,.noteTitle{font-size:18px;font-weight:850;color:var(--text-1);margin-bottom:5px}
.noteCenter{text-align:center;padding:24px 12px}
.successNoteLine{margin-top:7px;color:var(--success-strong)}

.sectionMenu{display:flex;flex-direction:column;gap:0;width:100%}
.sectionMenuItem{width:100%;min-height:var(--table-row-height,52px);padding:0 var(--ui-list-horizontal);border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent;box-shadow:none;text-align:left}
.sectionMenuTitle{display:flex;align-items:center;gap:10px;font-weight:760}
.sectionMenuFavoriteIcon{width:20px;height:20px;color:var(--favorite-active)}
.sectionMenuFavoriteIcon svg{width:100%;height:100%;fill:currentColor}

.contentList{display:flex;flex-direction:column;gap:0;min-height:0}
.contentListGrouped{gap:0}
.contentListRow{
  min-height:var(--ui-list-row-medium);display:grid;grid-template-columns:minmax(0,1fr);align-items:center;
  border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--surface-list);overflow:hidden;
}
.contentListRow.hasLeading{grid-template-columns:auto minmax(0,1fr)}
.contentListRow.hasTrailing{grid-template-columns:minmax(0,1fr) auto}
.contentListRow.hasLeading.hasTrailing{grid-template-columns:auto minmax(0,1fr) auto}
.contentListLeading,.contentListTrailing{display:grid;place-items:center;padding:0}
.contentListMain{appearance:none;border:0;background:transparent;color:inherit;min-width:0;min-height:var(--ui-list-row-medium);padding:4px var(--ui-list-horizontal);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left}
button.contentListMain{cursor:pointer}
.contentListPrimary{max-width:100%;font-size:var(--ui-list-primary-size);font-weight:var(--ui-list-primary-weight);overflow-wrap:anywhere}
.contentListSecondary{max-width:100%;margin-top:var(--ui-info-text-gap);overflow-wrap:anywhere}
.contentListDetail{display:block;margin-top:2px}
.contentListService{font:var(--ui-list-service-weight) var(--ui-list-service-size)/1.1 var(--font-terminal);color:var(--text-3);font-variant-numeric:tabular-nums}
.contentListPills{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.contentListPill{padding:3px 7px;border-radius:var(--radius-pill);background:var(--accent-soft);font:700 10px/1.2 var(--font-terminal)}
.contentListIndex{font:700 12px/1 var(--font-terminal);color:var(--text-3)}
.contentListCheckbox,.scopeCheckbox{width:18px;height:18px;min-height:0;accent-color:var(--accent)}
.contentListStatus{width:26px;height:26px;display:grid;place-items:center;border-radius:50%}
.contentListStatus svg{width:18px;height:18px;fill:currentColor}
.contentListStatus.ok{background:var(--success-soft);color:var(--success)}
.contentListStatus.bad{background:var(--danger-soft);color:var(--danger)}
.analyticsFailMark{position:relative}
.analyticsFailCount{position:absolute;right:-4px;bottom:-5px;min-width:16px;height:16px;padding:0 3px;border-radius:var(--radius-pill);background:var(--danger);color:var(--text-inverse);font:700 9px/16px var(--font-terminal)}
.sectionHeader{margin-top:8px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--accent-soft);font-weight:800;cursor:pointer}
.sectionHeader:first-child{margin-top:0}

.starBtn{appearance:none;width:var(--ui-favorite-size);height:var(--ui-favorite-size);padding:8px;border:0;border-radius:50%;background:transparent;color:var(--text-3);display:grid;place-items:center}
.starBtn svg{width:var(--ui-favorite-icon-size);height:var(--ui-favorite-icon-size);fill:currentColor}
.starBtn.on{color:var(--favorite-active);background:transparent}

.secBlock{margin-top:18px}
.secBlock:first-child{margin-top:0}
.secTitle{margin:0 0 9px;font-size:15px}
.setsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.setTile,.set-tile{min-height:74px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-0);box-shadow:var(--shadow-xs);display:flex;flex-direction:column;justify-content:center;cursor:pointer}
.setTileTitle{font-weight:800}
.setTileCount{margin-top:4px}
.sectionRouteLink{appearance:none;width:100%;border:0;background:transparent;color:inherit;text-align:left;font-weight:800;padding:0}

.scopeBlock{border:0;border-radius:0;background:transparent;overflow:hidden}
.scopeDictRow,.scopeSectionRow{display:flex;align-items:center;gap:var(--ui-list-gap);height:var(--table-row-height);min-height:var(--table-row-height);padding:4px var(--ui-list-horizontal);border-bottom:1px solid var(--line-soft);background:transparent}
.scopeDictRow{font-weight:800}
.scopeSectionRow{padding-left:var(--ui-list-leading-slot);color:var(--text-2)}
.testScopeList{display:grid;gap:0}
.testScopeTitle,.testLimitTitle{margin:16px 0 8px;font-weight:820}
.testLimitRow{margin-top:14px}
.testLimitRadios{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.radioOpt{position:relative;display:block}
.radioOpt input{position:absolute;opacity:0;pointer-events:none}
.radioOpt span{min-height:30px;display:grid;place-items:center;border:0;border-radius:999px;background:transparent;color:var(--text-3);font-weight:760}
.radioOpt input:checked+span{border-color:transparent;background:color-mix(in srgb,var(--surface-0) 76%,transparent);color:var(--text-1);box-shadow:var(--shadow-xs)}

.groups{width:100%;display:flex;flex-direction:column;gap:18px}
.groupRow{display:grid;grid-template-columns:30px minmax(0,1fr);gap:7px;align-items:start}
.groupNum{min-width:30px;padding-top:1px;color:var(--accent-strong);font:800 12px/1.45 var(--font-terminal)}
.groupPill{min-width:0;padding:0;border:0;border-radius:0;background:transparent}
.gTrans{font-weight:820;line-height:1.35}
.gEx{margin-top:6px;font-size:13px;color:var(--text-2);line-height:1.48;white-space:normal;overflow-wrap:anywhere}
.wordCard{padding:4px 0}
.wordCardHeader{display:flex;align-items:flex-start;gap:12px}
.wordCardWord{flex:1;font-size:26px;font-weight:860;overflow-wrap:anywhere}
.wordCardMeanings{margin-top:14px}

.modalRoot{position:relative;z-index:var(--z-modal)}
.modalBackdrop{position:fixed;inset:0;z-index:var(--z-modal);display:grid;place-items:center;padding:18px;background:var(--color-overlay);backdrop-filter:blur(5px)}
.modal{width:min(100%,520px);max-height:min(88dvh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface-0);box-shadow:0 24px 70px var(--color-modal-shadow)}
.modalHeader{display:flex;align-items:center;gap:12px;padding:15px 16px;border-bottom:1px solid var(--line-soft)}
.modalTitle{flex:1;font-size:18px;font-weight:850}
.modalBody{min-height:0;overflow:auto;padding:16px}
.modalActions{display:flex;gap:10px;padding:12px 16px 16px}
.modalClose{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--surface-1)}

.instagramBlock{margin-top:auto;padding-top:14px}
.instagramLink{display:flex;align-items:center;gap:12px;text-decoration:none;background:var(--surface-0);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px}
.instagramBadge{display:inline-flex;align-items:center;justify-content:center;min-width:82px;height:32px;border-radius:9px;background:var(--instagram-gradient);color:var(--text-inverse);font-size:12px;font-weight:700}
.instagramText{display:flex;flex-direction:column;gap:2px;min-width:0}.instagramTitle{font-size:15px}.instagramSubtitle{color:var(--text-2);font-size:12px}.instagramArrow{margin-left:auto;color:var(--text-3);font-size:20px}

@media(max-width:420px){.view{padding:8px}.panel-header{padding:2px 0 4px}.panel-body{padding:8px 12px 12px}.row{gap:8px}.setsGrid{grid-template-columns:1fr 1fr}}
@media(max-width:340px){.setsGrid{grid-template-columns:1fr}.btn{padding-inline:10px;font-size:13px}}

.exitModal{position:fixed;inset:0;z-index:var(--z-modal);display:grid;place-items:center;padding:18px}
.exitModalBackdrop{position:absolute;inset:0;background:var(--color-overlay);backdrop-filter:blur(5px)}
.exitModalCard{position:relative;z-index:1;width:min(100%,500px);max-height:min(88dvh,760px);overflow:auto;padding:18px;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--surface-0);box-shadow:0 24px 70px var(--color-modal-shadow)}
.exitModalText{font-size:17px;font-weight:800;line-height:1.4;text-align:center}
.exitModalActions{display:flex;gap:10px;margin-top:18px}
.infoModalCard{display:flex;flex-direction:column;overflow:hidden}
.infoModalTitle{text-align:left;padding-bottom:12px;border-bottom:1px solid var(--line-soft)}
.infoModalContent{min-height:0;overflow:auto;padding:14px 0}
body.modal-open{overflow:hidden}

button,a,[role="button"],label{-webkit-tap-highlight-color:transparent}
.srOnly{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
button:active,a:active,[role="button"]:active,label:active{background-color:transparent}
.segmentedProgress{display:inline-grid;grid-auto-flow:column;grid-auto-columns:var(--ui-progress-segment-width);gap:var(--ui-progress-segment-gap);align-items:center;vertical-align:middle}
.segmentedProgressSegment{display:block;width:8px;height:2px;border-radius:999px;background:color-mix(in srgb,var(--text-1) 18%,transparent)}
.segmentedProgressSegment.isFilled{background:var(--text-1)}
.textAction{min-height:var(--control-h-text);padding:0;border:0;background:transparent;color:var(--text-2)}
.textAction:active{opacity:var(--ui-text-action-pressed-opacity);transform:translateY(1px)}
.starBtn{width:var(--control-h-compact);height:var(--control-h-compact);background:transparent!important}
.starBtn.on{color:var(--favorite-active);background:transparent!important}
.starBtn.on svg{fill:currentColor}

/* Overlay shell insets. Feature layouts may override these values when they own the full viewport. */
.appShell[data-bottom-nav="false"] .appScreenHost>.view{padding-top:calc(var(--header-h) + var(--safe-top) + 8px);padding-bottom:12px}
.appShell[data-bottom-nav="true"] .appScreenHost>.view{padding-top:calc(var(--header-h) + var(--safe-top) + 8px);padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 8px)}
.panel-body,.contentList,.view,.screen,.appViewport,.appScreenHost{scrollbar-width:none;-ms-overflow-style:none}
.panel-body::-webkit-scrollbar,.contentList::-webkit-scrollbar,.view::-webkit-scrollbar,.screen::-webkit-scrollbar,.appViewport::-webkit-scrollbar,.appScreenHost::-webkit-scrollbar{width:0;height:0;display:none}

/* 13.6 mountain field-journal components */
.bracketHeading{display:flex;align-items:center;gap:.38em;margin:0;color:var(--text-1);font:850 17px/1.2 var(--font-terminal);letter-spacing:.045em}
.bracketHeading>span:first-child,.bracketHeading>span:last-child{color:var(--accent-strong);font-weight:900}
.segmentedProgress{display:inline-flex;align-items:center;gap:var(--ui-progress-bracket-gap);max-width:100%;vertical-align:middle;color:var(--accent-strong);font:800 12px/1 var(--font-terminal)}
.segmentedProgressTrack{display:inline-grid;grid-auto-flow:column;grid-auto-columns:var(--ui-progress-segment-width);gap:var(--ui-progress-segment-gap);align-items:center;min-width:0}
.segmentedProgressBracket{flex:0 0 auto}
.segmentedProgressSegment{display:block;width:var(--ui-progress-segment-width);height:var(--ui-progress-segment-height);border-radius:0;background:var(--ui-progress-track)}
.segmentedProgressSegment.isFilled{background:var(--text-1)}
.btn,.directionChoiceButton,.optionBtn,.matchCard{
  border-radius:2px;
  border-color:var(--line-strong);
  background:color-mix(in srgb,var(--surface-0) 72%,transparent);
  box-shadow:none;
  clip-path:polygon(var(--ui-button-cut) 0,100% 0,100% calc(100% - var(--ui-button-cut)),calc(100% - var(--ui-button-cut)) 100%,0 100%,0 var(--ui-button-cut));
}
.btn:hover:not(:disabled),.directionChoiceButton:hover:not(:disabled),.optionBtn:hover:not(:disabled),.matchCard:hover:not(:disabled){border-color:var(--accent-strong);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent)}
.btn:active:not(:disabled),.directionChoiceButton:active:not(:disabled),.optionBtn:active:not(:disabled),.matchCard:active:not(:disabled){background:color-mix(in srgb,var(--surface-0) 72%,transparent);opacity:var(--ui-button-pressed-opacity);transform:translateY(1px)}
.contentListRow{border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid var(--line-soft)}
.scopeBlock{border:0;border-top:1px solid var(--line-soft);border-radius:0;background:transparent}
.scopeDictRow,.scopeSectionRow{background:transparent;border-bottom:1px solid var(--line-soft)}
.scopeDictRow{font-size:15px;font-weight:850}.scopeSectionRow{padding-left:34px;color:var(--text-2);font-size:13px}

/* Unified interactive vocabulary: text/icon action, primary action, segment,
   bracket tab and selectable choice. Navigation rows stay a list pattern. */
.iconAction{appearance:none;border:0;background:transparent;box-shadow:none}
.iconAction:active{background:transparent;opacity:.68;transform:translateY(1px)}
:where(.textAction,.appHeaderAction,.iconBtn,.starBtn,.mediaPlayButton,.expandSearchToggle){box-shadow:none}
:where(.tabAction,.profilePrimaryTab,.profileSubTab,.stationViewTab,.storyTab){border:0;background:transparent;box-shadow:none}
:where(.segmentControl,.settingsSegments,.stationDirectionToggle,.modeDirectionToggle,.testLimitRadios){box-shadow:none}
.segmentOption{min-width:0}
:where(.choiceControl,.optionBtn,.matchCard,.profileGenderChoices button){box-shadow:none}
.optionBtn,.matchCard{background:color-mix(in srgb,var(--surface-0) 48%,transparent)}
.optionBtn.selected,.matchCard.selected{border-color:var(--accent-strong);background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 34%,transparent)}

.bracketCheckbox{position:relative;display:grid;place-items:center;min-width:36px;min-height:44px;cursor:pointer}
.bracketCheckbox input{position:absolute;width:1px;height:1px;min-height:0;opacity:0;pointer-events:none}
.bracketCheckboxMark{position:relative;width:34px;height:20px;display:grid;place-items:center;color:var(--text-3);font:850 14px/1 var(--font-terminal);font-variant-ligatures:none;white-space:nowrap}
.bracketCheckboxMark::before{content:"[ ]";display:block;width:34px;text-align:center}
.bracketCheckbox input:checked+.bracketCheckboxMark,.bracketCheckbox input:indeterminate+.bracketCheckboxMark{color:var(--accent-strong)}
.bracketCheckbox input:checked+.bracketCheckboxMark::before{content:"[✓]"}
.bracketCheckbox input:indeterminate+.bracketCheckboxMark::before{content:"[-]"}
.bracketCheckbox input:focus-visible+.bracketCheckboxMark{outline:2px solid var(--accent);outline-offset:4px}

/* Shared single-line overflow motion used by vocabulary lists and test results. */
.overflowMarqueeClip{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-align:left!important;direction:ltr}
.overflowMarqueeTrack{display:inline-block;min-width:max-content;white-space:nowrap;transform:translateX(0);will-change:transform;text-align:left!important}
.overflowMarqueeTrack.isOverflowing.isMarqueeVisible{animation:overflowTextMarquee var(--marquee-duration,5.8s) linear .55s infinite}
@keyframes overflowTextMarquee{0%,16%{transform:translateX(0)}84%,100%{transform:translateX(calc(-1 * var(--marquee-distance,0px)))}}
@media(prefers-reduced-motion:reduce){.overflowMarqueeTrack{animation:none!important;transform:none!important}}

/* One result-row contract is shared by learn, test, station test and match. */
.resultListRow{
  height:var(--ui-list-result-height);min-height:var(--ui-list-result-height);grid-template-columns:var(--ui-list-leading) minmax(0,1fr) var(--ui-list-action)!important;
  align-items:stretch;box-sizing:border-box;overflow:hidden;
}
.resultListRow .contentListLeading,.resultListRow .contentListTrailing{
  width:var(--ui-list-leading);min-width:var(--ui-list-leading);height:var(--ui-list-result-height);padding:0 4px;box-sizing:border-box;
}
.resultListRow .contentListMain{
  width:100%;height:var(--ui-list-result-height);min-height:0;padding:8px var(--ui-list-horizontal);box-sizing:border-box;
  justify-content:center;overflow:hidden;text-align:left;align-items:flex-start;
}
.resultListRow .contentListPrimary,.resultListRow .contentListSecondary{
  display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;
  white-space:nowrap;overflow-wrap:normal;text-align:left!important;
}
.resultListRow .contentListPrimary{line-height:1.2}

.resultStatus{position:relative;width:30px;height:30px;display:grid;place-items:center;background:transparent;border:0;color:var(--text-3)}
.resultStatus svg{width:22px;height:22px;fill:currentColor}
.resultStatus.ok{color:var(--success-strong)}.resultStatus.bad{color:var(--danger-strong)}
.resultStatusCount{
  position:absolute;right:-5px;bottom:-3px;min-width:14px;height:14px;padding:0 2px;
  display:grid;place-items:center;border-radius:0;background:var(--app-bg);color:var(--danger-strong);
  font:850 9px/14px var(--font-terminal);
}
.resultPrimaryClip,.resultDetailClip{width:100%;min-width:0;text-align:left!important}
.resultPrimaryTrack{font-weight:780;line-height:1.2}
.resultDetailGroup{display:grid;width:100%;min-width:0;gap:2px}
.resultDetailLine{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;
  width:100%;min-width:0;height:17px;overflow:hidden;white-space:nowrap;text-align:left;
}
.resultDetailLine:not(:has(>strong)){grid-template-columns:minmax(0,1fr)}
.resultDetailLine>strong{font:800 10px/1 var(--font-terminal);white-space:nowrap}
.resultDetailLine.is-wrong>strong{color:var(--danger)}.resultDetailLine.is-correct>strong{color:var(--success-strong)}
.resultDetailTrack{font-size:13px;line-height:17px;color:var(--text-2)}

.contentListSecondary[data-adaptive-marquee],.socialRowMeta[data-adaptive-marquee]{min-width:0;width:100%;white-space:nowrap;overflow:hidden}.contentListSecondary .adaptiveMarqueeClip{width:100%}

/* Non-blocking indication that locally cached data is being used offline. */
.alantilOfflineNotice{position:fixed;z-index:115;left:50%;bottom:calc(76px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);pointer-events:none;white-space:nowrap;padding:6px 12px;border:1px solid var(--line-soft,#c9c4b8);border-radius:999px;background:var(--surface,#f5f1e8);color:var(--text-primary,#302f2b);font-size:12px;line-height:18px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.alantilOfflineNotice[hidden]{display:none!important}
}

@layer components {
/* src/shared/styles/learning-preview.css */
.learningPreviewCard{
  width:100%;
  min-width:0;
  margin:0;
}
.learningPreviewSurface{
  position:relative;
  overflow:hidden;
  padding:17px 20px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface-learn-gradient);
  box-shadow:var(--shadow-sm);
}
.learningPreviewSurface::before{
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid var(--line-soft);
  border-radius:calc(var(--radius-lg) - 7px);
  pointer-events:none;
  opacity:.55;
}
.learningPreviewContent{
  position:relative;
  z-index:1;
  display:grid;
  gap:10px;
}
.learningPreviewWord{
  max-width:100%;
  text-align:center;
  font-size:clamp(28px,7vw,38px);
  font-weight:900;
  line-height:1.08;
  overflow-wrap:anywhere;
}
.learningPreviewDetails{
  min-width:0;
  display:grid;
  gap:5px;
}
.learningPreviewTranslation{
  min-width:0;
  text-align:center;
  font-size:14px;
  font-weight:820;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.learningPreviewExample{
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  color:var(--text-2);
  font-size:12px;
  line-height:1.4;
  text-align:center;
  overflow-wrap:anywhere;
}
.learningPreviewSeparator{color:var(--accent-strong)}
[data-preview-word],
[data-preview-translation],
[data-preview-example],
[data-preview-example-translation]{will-change:auto}
@media(max-width:390px){
  .learningPreviewSurface{padding:15px 16px 14px}
  .learningPreviewContent{gap:8px}
  .learningPreviewWord{font-size:clamp(27px,8vw,34px)}
}
@media(prefers-reduced-motion:reduce){
  [data-preview-word],
  [data-preview-translation],
  [data-preview-example],
  [data-preview-example-translation]{animation:none!important;transition:none!important}
}
}

@layer components {
/* src/shared/styles/profile-tabs.css */
.profilePrimaryNav{
  width:auto;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(var(--profile-tab-count,3),minmax(0,1fr));
  align-items:center;
  gap:var(--ui-profile-tab-gap);
  overflow:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.profilePrimaryNav::-webkit-scrollbar{display:none}
.profilePrimaryTab{
  appearance:none;
  min-width:0;
  min-height:var(--ui-profile-tab-item-height);
  padding:0 var(--ui-profile-tab-item-padding-horizontal);
  border:0;
  background:transparent;
  color:var(--text-3);
  font-family:var(--font-terminal);
  font-weight:750;
  line-height:1.35;
  white-space:nowrap;
  scroll-snap-align:center;
}
.profilePrimaryTab.active{color:var(--text-1);font-weight:900}
.profilePrimaryTab:active{opacity:.62}
}

@layer components {
/* src/shared/styles/privacy.css */
.analyticsConsentPanel{position:fixed;left:50%;bottom:calc(8px + var(--safe-bottom));z-index:var(--z-overlay);width:min(560px,calc(100% - 16px));transform:translateX(-50%);padding:10px;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--surface-0);box-shadow:var(--shadow-md)}
.analyticsConsentText{color:var(--text-2);font-size:12px;line-height:1.35;text-align:center}
.analyticsConsentText strong{color:var(--text-1);font-weight:750}
.analyticsConsentText a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:2px}
.analyticsConsentActions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.analyticsConsentButton{min-height:36px;padding:6px 8px;font-size:11px;font-weight:750}
.analyticsConsentDecline{border-color:transparent;background:transparent;color:var(--text-2)}
.analyticsConsentAccept{border-color:var(--accent-strong);background:var(--accent);color:var(--text-inverse)}
.analyticsConsentButton:active{transform:translateY(1px)}
.analyticsSettingsSection{margin-top:24px;scroll-margin-block:12px 150px}
.analyticsPreferenceRow{display:flex;align-items:flex-start;gap:10px;margin-top:12px;font-size:15px;line-height:1.4}
.analyticsPreferenceCheckbox{flex:0 0 20px;width:20px;height:20px;min-height:0;margin:1px 0 0;padding:0;accent-color:var(--accent)}
.analyticsPreferenceSave{width:100%;margin-top:12px}
.analyticsPreferenceMessage{margin-top:8px;color:var(--success);font-size:13px;text-align:center}
@media(max-width:360px){.analyticsConsentPanel{width:calc(100% - 12px);padding:8px}.analyticsConsentText{font-size:11px}.analyticsConsentButton{font-size:10px}}

.legalAgreement{display:grid;gap:10px}.legalCheck{display:flex;align-items:flex-start;gap:10px;line-height:1.4;color:var(--text-1)}.legalCheck input{flex:0 0 20px;width:20px;height:20px;min-height:0;margin:2px 0 0;accent-color:var(--accent)}.legalAgreement a,.legalDocumentLink a,.settingsDocument a{text-decoration:underline;text-underline-offset:2px;color:var(--accent-strong)}.legalDocumentLink{font-size:.85em;margin:0}.analyticsConsentPanel{bottom:calc(72px + var(--safe-bottom));max-height:45vh;overflow:auto}.analyticsConsentActions .btn{white-space:normal;min-height:40px;height:auto}
}

@layer features {
/* src/features/onboarding/onboarding.css */
[data-feature="onboarding"] .appHeader,[data-feature="onboarding"] .bottomNav{display:none!important}
[data-feature="onboarding"] .appViewport{inset:0;padding:0;overflow:auto;background:var(--path-scene-gradient)}
[data-feature="onboarding"] .appViewport::before,[data-feature="onboarding"] .appViewport::after{pointer-events:none}
[data-feature="onboarding"] .appScreenHost{min-height:100%;overflow:visible}
.learningSetupScreen{
  box-sizing:border-box;
  min-height:100dvh;
  padding:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap)) 14px max(24px,calc(var(--safe-bottom) + 18px));
  display:flex;
  flex-direction:column;
}
.learningSetupPane{position:relative;width:min(100%,560px);margin:auto;display:grid;gap:12px}
.learningSetupStep{
  min-width:0;
  visibility:hidden;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .24s var(--ease-standard),transform .24s var(--ease-standard),visibility 0s linear .24s;
}
.learningSetupStep.isVisible{
  visibility:visible;
  opacity:1;
  transform:none;
  pointer-events:auto;
  transition-delay:0s;
}
.learningSetupStep h1,.learningSetupStep h2{
  margin:0 0 7px;
  color:var(--text-2);
  font-size:13px;
  font-weight:850;
  line-height:1.2;
}
.learningSetupStep h1{color:var(--text-1)}
.learningSetupStep h2{
  min-block-size:2.4em;
  display:flex;
  align-items:flex-end;
}
.learningSetupLanguageSegments{width:100%}
.learningSetupFlag{width:20px;height:13px;display:block;overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px color-mix(in srgb,var(--text-1) 14%,transparent)}
.learningSetupFlag svg{display:block;width:100%;height:100%}
[data-feature="onboarding"] .learningSetupCard{width:100%}
.learningSetupContinue{width:100%}
.learningSetupCoach{
  position:absolute;
  left:0;
  top:0;
  width:42px;
  height:48px;
  z-index:8;
  opacity:0;
  pointer-events:none;
  will-change:transform,opacity;
  transform-origin:39% 0%;
  filter:drop-shadow(0 3px 5px rgba(41,39,33,.18));
}
.learningSetupCoach svg{display:block;width:100%;height:100%;overflow:visible}
.learningSetupCoach path{fill:var(--text-1)}
.learningSetupStatus{
  box-sizing:border-box;
  min-width:0;
  min-block-size:56px;
  visibility:hidden;
  opacity:0;
  transition:opacity var(--duration-normal),visibility 0s linear var(--duration-normal);
}
.learningSetupStatus.isVisible{visibility:visible;opacity:1;transition-delay:0s}
.learningSetupError{padding:10px 12px;border:1px solid color-mix(in srgb,var(--danger) 45%,transparent);border-radius:var(--radius-sm);color:var(--danger);font-size:12px;line-height:1.4}
@media(max-width:390px){
  .learningSetupScreen{padding-inline:10px}
  .learningSetupPane{gap:10px}
  .learningSetupLanguageSegments .settingsChoiceBody{gap:4px;padding-inline:4px;font-size:8.5px}
  .learningSetupFlag{width:18px;height:12px}
}
@media(max-height:700px){
  .learningSetupScreen{padding-top:calc(var(--safe-top) + var(--header-h) + 8px)}
  .learningSetupPane{margin-top:0;margin-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  .learningSetupStep,.learningSetupStep.isVisible,.learningSetupStatus,.learningSetupStatus.isVisible{transition:none;transform:none}
  .learningSetupCoach{will-change:auto}
}
}

@layer utilities {
/* src/shared/styles/paper-components.css */
/* Shared paper-style component overrides. Keep visual tokens in theme.css. */
.panel,.stonePanel{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.panel-header{padding-inline:0;background:transparent;border:0}
.panel-body{padding-inline:0}
.sectionMenu{gap:0}
.sectionMenuItem,.menuItem,.profileLink{
  border:0;
  border-bottom:1px solid var(--line-soft);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.sectionMenuItem:hover,.menuItem:hover,.profileLink:hover{background:var(--surface-paper-soft);box-shadow:none}
.contentList{gap:0}
.contentListRow{
  border:0;
  border-bottom:1px solid var(--line-soft);
  border-radius:0;
  background:transparent;
}
.contentListRow:last-child{border-bottom-color:transparent}
.scopeBlock{border:0;border-radius:0;background:transparent}
.scopeDictRow{background:transparent;border-bottom:1px solid var(--line-soft)}
.scopeSectionRow{border-top:0;border-bottom:1px solid var(--line-soft)}
.setTile,.set-tile{border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent;box-shadow:none}

.setPreparation{
  width:min(100%,var(--content-max));
  height:100%;
  min-height:0;
  margin:0 auto;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
}
.setPreparationToolbar{position:relative;z-index:var(--ui-layer-floating);min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 4px 5px}.setSelectionCount{color:var(--text-1);font:700 11px/1.2 var(--font-terminal)}
.setSelectionTools{display:flex;align-items:center;gap:5px;color:var(--text-3)}
.textAction{
  appearance:none;
  min-height:28px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text-2);
  font:var(--ui-text-action-font-weight) var(--ui-text-action-font-size)/var(--ui-text-action-line-height) var(--font-body);
  cursor:pointer;
}
.textAction:hover{color:var(--accent-strong)}
.setPreparationWords{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.setPreparationWord{position:relative;border-bottom:0!important}
.setPreparationWord::after{content:"";position:absolute;left:44px;right:42px;bottom:0;height:1px;background:color-mix(in srgb,var(--line-soft) 72%,transparent);pointer-events:none}
.setPreparationWord:last-child::after{display:none}
.setPreparationWord .contentListMain{min-height:50px;padding-block:6px;text-align:left;align-items:flex-start}
.setPreparationWord .contentListLeading{padding-left:4px;padding-right:8px}
.setPreparationWord .contentListTrailing{padding-left:4px;padding-right:2px}
.setPreparationFooter{
  display:grid;
  gap:7px;
  padding:8px 2px max(4px,var(--safe-bottom));
  background:transparent;
}
.directionChoice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:2px;border:1px solid var(--line);border-radius:999px}
.directionChoiceButton{
  appearance:none;
  min-height:28px;
  padding:4px 8px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--text-1);
  font:700 12px/1.1 var(--font-terminal);
  cursor:pointer;
}
.directionChoiceButton:hover:not(:disabled){border-color:var(--accent);color:var(--accent-strong)}
.directionChoiceButton:disabled{opacity:.38;cursor:default}
.directionChoiceButton.active{border-color:transparent;color:var(--text-1);background:color-mix(in srgb,var(--surface-0) 82%,transparent);box-shadow:var(--shadow-xs)}
.setStudyButton,.setTestButton{width:100%}

.btn,.optionBtn{box-shadow:none}
.btn.actionPrimary{background:var(--accent);box-shadow:none}
.btn.actionText{background:transparent;box-shadow:none;clip-path:none}

@media(max-width:340px){
  .directionChoiceButton{font-size:11px;padding-inline:5px}
}

.setPreparationWords::-webkit-scrollbar{width:0;height:0;display:none}
}

@layer utilities {
/* src/shared/styles/chrome.css */
/* Unified viewport chrome: one faint top mask and one faint bottom mask.
   Feature controls float above the masks; document content scrolls behind them. */

.appScreenHost,.appScreenHost>.view,.appScreenHost>.screen{
  width:100%;max-width:100%;height:100%;min-width:0;min-height:0;overflow-x:hidden;
}
.appScreenHost>.view{padding:0!important}

:where(
  .panel-body,
  .pathMapViewport,
  .stationWordList,
  .stationStatisticsPane,
  .adminUsersScroll,
  .profileScroll,
  .settingsHomeScroll,
  .socialBody,
  .setPreparationWords,
  .modeScroll,
  .modeResultList,
  .matchResultsView
){
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap));
  --scroll-fade-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--scroll-fade-top),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 var(--scroll-fade-top),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%);
}

.appShell[data-bottom-nav="true"] :where(.panel-body,.profileScroll,.settingsHomeScroll,.socialBody,.pathMapViewport){
  --scroll-fade-bottom:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap));
}

/* Generic document/list panels. */
.panel{position:relative!important;display:block!important;height:100%;min-height:0;overflow:hidden}
.panel-header{
  position:absolute!important;z-index:var(--z-tabs);top:calc(var(--safe-top) + var(--header-h) + 4px);left:14px;right:14px;
  height:40px;min-height:40px;padding:0!important;pointer-events:auto;background:transparent!important;
}
.panel-body{
  position:absolute;inset:0;width:100%;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap)) 16px calc(var(--safe-bottom) + var(--content-rest-gap))!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap));
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
}
.panel.hasPanelToolbar .panel-body{
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 60px);
  padding-top:calc(var(--safe-top) + var(--header-h) + 60px)!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 60px);
}
.appShell[data-bottom-nav="true"] .panel-body{
  padding-bottom:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap))!important;
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap));
}
.appShell:has(.panel.hasPanelToolbar){--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 60px)}

/* Root Path: story controls now occupy the former brand-header zone. */
.pathView{display:block!important;padding:0!important;overflow:hidden}
.pathStickyControls{
  position:absolute!important;z-index:var(--z-tabs);top:var(--safe-top)!important;left:0;right:0;height:56px!important;
  padding:0 38px 2px 8px!important;grid-template-rows:32px 22px!important;
  pointer-events:auto;background:transparent!important;
}
.storyTabsShell{height:32px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.storyTabsShell::before{background:linear-gradient(90deg,color-mix(in srgb,var(--app-bg) 30%,transparent),transparent)!important}
.storyTabsShell::after{background:linear-gradient(270deg,color-mix(in srgb,var(--app-bg) 30%,transparent),transparent)!important}
.storyTabsShell .storyTab{height:30px;margin:1px 0;padding:1px 8px;border-radius:12px;transition:background var(--duration-fast),color var(--duration-fast),opacity var(--duration-fast),transform var(--duration-fast)}
.storyTabsShell .storyTab.active{background:color-mix(in srgb,var(--surface-0) 28%,transparent);box-shadow:none}
.pathMapViewport{position:absolute!important;inset:0;min-height:0;overflow-y:auto;overflow-x:hidden;--scroll-fade-top:calc(var(--safe-top) + 60px)!important}
.routeMap{min-height:100%;padding-top:calc(var(--safe-top) + 64px)!important;padding-bottom:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap))!important}
.appShell[data-feature="path"][data-screen="home"]{--chrome-top-depth:calc(var(--safe-top) + 60px)}

/* Station: title remains in the header; tabs and visibility controls are compacted below it. */
.appShell[data-feature="path"][data-screen="station"]{--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 60px);--chrome-bottom-depth:calc(var(--safe-bottom) + 108px)}
.appShell[data-feature="path"][data-screen="station"][data-station-pane="statistics"]{--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 38px);--chrome-bottom-depth:calc(var(--safe-bottom) + var(--content-rest-gap))}
.stationViewTabs{top:calc(var(--safe-top) + var(--header-h) - 4px)!important;height:28px!important}
.stationViewTab{min-height:28px!important}
.stationMenuToolbar{top:calc(var(--safe-top) + var(--header-h) + 24px)!important;height:var(--ui-station-toolbar-height)!important}
.stationWordList{
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 56px);
  --scroll-fade-bottom:calc(var(--safe-bottom) + 108px);
  padding:calc(var(--safe-top) + var(--header-h) + 56px) 12px calc(var(--safe-bottom) + 108px)!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 56px)!important;
  scroll-padding-bottom:calc(var(--safe-bottom) + 108px)!important;
}
.stationLaunchPanel{bottom:calc(var(--safe-bottom) + var(--action-edge-gap))!important;background:transparent!important}
.stationStatisticsPane{
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 36px);
  --scroll-fade-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
  padding:calc(var(--safe-top) + var(--header-h) + 36px) 12px calc(var(--safe-bottom) + var(--content-rest-gap))!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 36px)!important;
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap))!important;
}
.appShell[data-feature="path"][data-screen="study"],.appShell[data-feature="learn"][data-screen="study"]{--chrome-bottom-depth:calc(var(--safe-bottom) + 80px)}

/* Profile/settings/users root navigation replaces the old brand-header row. */
[data-feature="profile"] .profileView,[data-feature="settings"] .settingsHomeView,[data-feature="friends"] .socialView{display:block!important;padding:0!important;overflow:hidden}
[data-feature="profile"] .profilePrimaryNav,
[data-feature="settings"] .settingsHomeView>.profilePrimaryNav,
[data-feature="admin"][data-screen="users"] .profilePrimaryNav,
[data-feature="friends"] .socialHeader{
  position:absolute!important;z-index:var(--z-tabs);top:calc(var(--safe-top) + 2px)!important;left:10px!important;right:10px!important;height:34px!important;min-height:34px!important;
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;pointer-events:auto;
}
[data-feature="profile"] .profileScroll,[data-feature="settings"] .settingsHomeScroll{
  position:absolute;inset:0;width:auto!important;max-width:none;min-height:0;margin:0!important;overflow-y:auto;overflow-x:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--scroll-fade-top),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%)!important;
  mask-image:linear-gradient(to bottom,transparent 0,#000 var(--scroll-fade-top),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%)!important;
}
[data-feature="profile"] .profileScroll,[data-feature="settings"] .settingsHomeScroll{
  --scroll-fade-top:calc(var(--safe-top) + 42px);
  padding:calc(var(--safe-top) + 42px) 16px calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap))!important;
  scroll-padding-top:calc(var(--safe-top) + 42px);
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--nav-h) + var(--content-rest-gap));
}
.appShell[data-feature="profile"],.appShell[data-feature="settings"][data-screen="home"],.appShell[data-feature="admin"][data-screen="users"],.appShell[data-feature="friends"]{--chrome-top-depth:calc(var(--safe-top) + 42px)}
[data-feature="admin"][data-screen="users"] .adminUsersScroll{
  --scroll-fade-top:calc(var(--safe-top) + 42px);
  --scroll-fade-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
  padding:calc(var(--safe-top) + 42px) 0 calc(var(--safe-bottom) + var(--content-rest-gap))!important;
  scroll-padding-top:calc(var(--safe-top) + 42px)!important;
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap))!important;
}

/* Set preparation: full-height list behind a small toolbar and transparent action zone. */
.setPreparationView,.setPreparation{position:relative;display:block!important;padding:0!important;overflow:hidden}
.setPreparationToolbar{
  position:absolute!important;z-index:var(--ui-layer-floating);top:calc(var(--safe-top) + var(--header-h) + 4px);left:14px;right:14px;height:34px;
  pointer-events:auto;background:transparent!important;
}
.setPreparationWords{
  position:absolute;inset:0;min-height:0;overflow-y:auto;overflow-x:hidden;
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 54px);
  --scroll-fade-bottom:calc(var(--safe-bottom) + 94px);
  padding:calc(var(--safe-top) + var(--header-h) + 54px) 14px calc(var(--safe-bottom) + 110px)!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 54px);
  scroll-padding-bottom:calc(var(--safe-bottom) + 110px);
}
.setPreparationFooter{
  position:absolute!important;z-index:var(--ui-layer-floating);left:14px;right:14px;bottom:calc(var(--safe-bottom) + var(--action-edge-gap));padding:0!important;pointer-events:auto;background:transparent!important;
}
.appShell[data-feature="learn"][data-screen="set"]{--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 54px);--chrome-bottom-depth:calc(var(--safe-bottom) + 94px)}
.setPreparation:has(.setTestButton) .setPreparationWords{--scroll-fade-bottom:calc(var(--safe-bottom) + 138px);padding-bottom:calc(var(--safe-bottom) + 154px)!important;scroll-padding-bottom:calc(var(--safe-bottom) + 154px)}
.appShell[data-feature="learn"][data-screen="set"]:has(.setTestButton){--chrome-bottom-depth:calc(var(--safe-bottom) + 138px)}

/* Test and matching menus/results use the same full-height content layer. */
[data-feature="test"] .modeView,[data-feature="match"] .modeView{position:relative;display:block!important;padding:0!important;overflow:hidden}
.modeScroll,.modeResultList{
  position:absolute;inset:0;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap)) 14px calc(var(--safe-bottom) + 70px)!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap));
  scroll-padding-bottom:calc(var(--safe-bottom) + 70px);
}
.modeScroll{--scroll-fade-bottom:calc(var(--safe-bottom) + 54px)}
.modeView>.modeLaunchBar{position:absolute!important;z-index:var(--ui-layer-floating);left:14px;right:14px;bottom:calc(var(--safe-bottom) + var(--action-edge-gap));padding:0!important;pointer-events:auto;background:transparent!important}
.appShell[data-feature="match"][data-screen="menu"],.appShell[data-feature="test"][data-screen="results"]{--chrome-bottom-depth:calc(var(--safe-bottom) + 54px)}
.appShell[data-feature="test"][data-screen="menu"]{--chrome-bottom-depth:calc(var(--safe-bottom) + 93px)}
.testMenuView .modeScroll{--scroll-fade-bottom:calc(var(--safe-bottom) + 93px);padding-bottom:calc(var(--safe-bottom) + 109px)!important;scroll-padding-bottom:calc(var(--safe-bottom) + 109px)}
.testResultsView .modeResultSummary{position:absolute;z-index:var(--ui-layer-floating);top:calc(var(--safe-top) + var(--header-h) + 4px);left:14px;right:14px;height:116px;min-height:116px;pointer-events:auto}
.testResultsView .modeResultList{
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 136px);--scroll-fade-bottom:calc(var(--safe-bottom) + 54px);
  padding-top:calc(var(--safe-top) + var(--header-h) + 136px)!important;scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 136px);
}
.appShell[data-feature="test"][data-screen="results"]{--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 136px)}
.matchResultsView .modeResultList{--scroll-fade-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap))!important;scroll-padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap))}

/* Shared result-screen geometry. */
.resultScreen{position:relative;display:block!important;padding:0!important;overflow:hidden!important}
.resultScreenSummary{position:absolute;z-index:var(--ui-layer-floating);top:calc(var(--safe-top) + var(--header-h) + 4px);left:14px;right:14px;height:116px;min-height:116px;overflow:hidden;pointer-events:auto}
.resultScreen.hasSummary .resultScreenList{
  --scroll-fade-top:calc(var(--safe-top) + var(--header-h) + 136px);
  padding-top:calc(var(--safe-top) + var(--header-h) + 136px)!important;
  scroll-padding-top:calc(var(--safe-top) + var(--header-h) + 136px);
}
.resultScreenList{padding-left:14px!important;padding-right:14px!important}
.resultScreen:not(.hasFooter) .resultScreenList{
  --scroll-fade-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
  padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap))!important;
  scroll-padding-bottom:calc(var(--safe-bottom) + var(--content-rest-gap));
}
.resultScreenFooter{position:absolute!important;z-index:var(--ui-layer-floating);left:14px;right:14px;bottom:calc(var(--safe-bottom) + var(--action-edge-gap));padding:0!important;pointer-events:auto;background:transparent!important}
.resultScreenFooter>.btn{margin-left:auto}
.resultScreenFooter .stationActions{width:100%;margin:0}
.learnResultScreenSummary{display:grid;align-items:center}
.learnResultScreenSummary .learnResultSummary{width:100%}
.appShell:has(.resultScreen.hasSummary){--chrome-top-depth:calc(var(--safe-top) + var(--header-h) + 136px)}

/* Buttons keep their semantic colors but use the same restrained geometry. */
.btn{border-radius:var(--ui-button-radius);box-shadow:0 3px 12px rgba(41,39,33,.045)}
.btn:hover:not(:disabled){box-shadow:0 5px 15px rgba(41,39,33,.06)}
.btn:active:not(:disabled){transform:scale(var(--ui-button-pressed-scale));box-shadow:0 1px 5px rgba(41,39,33,.03)}
.btn.actionPrimary{box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 16%,transparent)}
.btn.actionText{box-shadow:none}
.stationLaunchActions .btn,.setPreparationFooter .btn,.modeLaunchBar .btn,.learnSessionActions .btn,.resultScreenFooter .btn{border-radius:var(--ui-button-action-radius)}
.stationLaunchActions .stationStudyButton{background:color-mix(in srgb,var(--surface-0) 72%,transparent);-webkit-backdrop-filter:blur(var(--ui-system-control-blur));backdrop-filter:blur(var(--ui-system-control-blur))}
.stationLaunchActions .stationTestButton{background:var(--accent);color:var(--text-inverse)}

/* Modals keep individual controls; they are not part of the page masks. */
.modalBackdrop,.exitModalBackdrop{background:color-mix(in srgb,var(--color-overlay) 84%,transparent);-webkit-backdrop-filter:blur(var(--ui-system-control-blur));backdrop-filter:blur(var(--ui-system-control-blur))}
.modal,.exitModalCard{border:1px solid color-mix(in srgb,var(--line) 62%,transparent);border-radius:22px;background:color-mix(in srgb,var(--surface-0) 92%,transparent);box-shadow:0 22px 64px rgba(31,30,26,.18);-webkit-backdrop-filter:blur(20px) saturate(1.05);backdrop-filter:blur(20px) saturate(1.05)}
.modalHeader{padding:11px 12px 9px 16px;border-bottom:1px solid color-mix(in srgb,var(--line-soft) 74%,transparent)}
.modalClose{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--system-control-border);border-radius:50%;background:var(--system-control-bg);color:var(--text-1);box-shadow:0 3px 10px rgba(41,39,33,.04);font:500 22px/1 var(--font-body)}
.modalClose:active{transform:scale(.95);background:var(--system-control-bg-active)}

.appHeaderTextAction.songInfoButton{font-size:var(--ui-header-text-action-font-size)}
.bottomNavItem.isPending{color:var(--accent-strong);opacity:.72}
.appShell[data-navigation-pending="true"] .appHeader::after{content:"";position:absolute;z-index:60;left:0;bottom:0;width:34%;height:2px;background:var(--accent-strong);pointer-events:none;animation:routePending 1s ease-in-out infinite alternate}
@keyframes routePending{from{transform:translateX(-40%);opacity:.35}to{transform:translateX(290%);opacity:.9}}
@media(prefers-reduced-motion:reduce){.appShell[data-navigation-pending="true"] .appHeader::after{animation:none;width:100%;opacity:.55}}

/* Fixed session canvases respect the same transparent chrome. */
.appScreenHost>.modeSessionView,.appScreenHost>.stationTestView,.appScreenHost>.stationResultView:not(.resultScreen){padding:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap)) 14px calc(var(--safe-bottom) + var(--action-edge-gap))!important}
.appScreenHost>.learnSession{padding-top:calc(var(--safe-top) + var(--header-h) + var(--content-rest-gap))!important;padding-bottom:calc(var(--safe-bottom) + var(--action-edge-gap))!important}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .stationLaunchActions .stationStudyButton,.modal,.exitModalCard{background:var(--surface-0)}
}
@media(max-width:420px){.panel-body{padding-left:14px!important;padding-right:14px!important}}
}

@layer utilities {
/* src/shared/styles/utilities.css */
.u-terminal{font-family:var(--font-terminal);letter-spacing:.06em}
.u-muted{color:var(--text-2)}
.u-scroll{min-height:0;overflow:auto;overscroll-behavior:contain}
.u-center{text-align:center}
.u-full{width:100%}
}

@layer utilities {
/* src/shared/styles/table-system.css */
/* Shared list/table geometry. Values are generated from LIST_TABLE_CONTRACT. */
:root,html[data-text-size="medium"]{
  --table-row-height:var(--ui-list-row-medium);
  --table-head-height:var(--ui-list-table-header-height);
  --table-row-padding-y:5px;
  --list-primary-size:var(--ui-list-medium-primary-size);--list-secondary-size:var(--ui-list-medium-secondary-size);--list-service-size:var(--ui-list-medium-service-size);
}
html[data-text-size="small"]{--table-row-height:var(--ui-list-row-small);--table-row-padding-y:4px;--list-primary-size:var(--ui-list-small-primary-size);--list-secondary-size:var(--ui-list-small-secondary-size);--list-service-size:var(--ui-list-small-service-size)}
html[data-text-size="large"]{--table-row-height:var(--ui-list-row-large);--table-row-padding-y:7px;--list-primary-size:var(--ui-list-large-primary-size);--list-secondary-size:var(--ui-list-large-secondary-size);--list-service-size:var(--ui-list-large-service-size)}

html[data-text-size="huge"]{--table-row-height:var(--ui-list-row-huge);--table-row-padding-y:8px;--list-primary-size:var(--ui-list-huge-primary-size);--list-secondary-size:var(--ui-list-huge-secondary-size);--list-service-size:var(--ui-list-huge-service-size)}

/* Semantic groups do not change the screen background or functional game panels. */
:where(.uiInfoBlock){
  min-width:0;
  padding:var(--ui-info-padding);
  background:var(--ui-info-surface);
  border-radius:var(--ui-info-radius);
}
:where(.uiInfoBlock + .uiInfoBlock):not(:where(.accountStack > *,.socialBody > *)){margin-block-start:var(--ui-info-block-gap)}

/* Flat list primitive. Leading/actions are present only when rendered. */
.contentList{gap:0!important}
.contentListRow:not(.resultListRow){height:var(--table-row-height);min-height:var(--table-row-height);max-height:var(--table-row-height);box-sizing:border-box;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.contentListRow:not(.resultListRow) .contentListMain{height:100%;min-height:0;padding:4px var(--ui-list-horizontal);box-sizing:border-box}
.contentListRow:not(.resultListRow) .contentListLeading{width:var(--ui-list-leading);min-width:var(--ui-list-leading);padding:0;box-sizing:border-box}
.contentListRow:not(.resultListRow) .contentListTrailing{width:var(--ui-list-action);min-width:var(--ui-list-action);padding:0;box-sizing:border-box}

/* Vocabulary rows share exactly the same row geometry. */
.stationWordRow{height:var(--table-row-height)!important;min-height:var(--table-row-height)!important;max-height:var(--table-row-height)!important;padding-left:0!important;padding-right:0!important;gap:var(--ui-list-gap)!important}
.stationWordToggle{width:var(--ui-list-leading)!important;height:var(--table-row-height)!important}
.stationWordRow .contentListMain{height:100%!important;min-height:0!important;padding:3px var(--ui-list-horizontal)!important;grid-template-rows:auto auto!important;align-content:center!important;gap:0}
.stationWordRow [data-station-line]{min-height:0;overflow:hidden}
.stationTextClip{line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important}
.stationWordRow::after{left:calc(var(--ui-list-leading) + var(--ui-list-gap))!important;right:calc(var(--ui-list-action) + var(--ui-list-gap))!important}

/* Extended statistics table. */
:where([data-feature="admin"],.adminUsersEmbedded) .adminUsersTable tbody tr{height:var(--table-row-height)}
:where([data-feature="admin"],.adminUsersEmbedded) .adminUsersTable tbody th,
:where([data-feature="admin"],.adminUsersEmbedded) .adminUsersTable tbody td{height:var(--table-row-height)!important;max-height:var(--table-row-height);padding:var(--table-row-padding-y) var(--ui-list-horizontal)!important;white-space:nowrap!important;overflow:hidden}
:where([data-feature="admin"],.adminUsersEmbedded) .adminUsersTable thead tr{min-height:var(--table-head-height)}
:where([data-feature="admin"],.adminUsersEmbedded) .adminUsersTable thead th{height:auto!important;min-height:var(--table-head-height)!important;padding:4px var(--ui-list-horizontal)!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}

/* Other table-like lists. */
:where([data-feature="admin"],.adminActivityModal) .adminTestRow,
[data-feature="admin"] .adminResultWord,
[data-feature="settings"] .settingsRow,
[data-feature="settings"] .settingsDictionaryVersions>div,
[data-feature="settings"] .settingsLink,
[data-feature="account"] .accountFact,
.stationProblemRow,
.stationHistoryRow,
.sessionWordRow,
.profileActivityRow,
.socialRow,
[data-feature="practice"] .menuItem,
[data-feature="settings"] .settingsFacts>div{
  height:var(--table-row-height)!important;min-height:var(--table-row-height)!important;max-height:var(--table-row-height)!important;box-sizing:border-box;overflow:hidden
}
.stationProblemHead,.stationHistoryHead,.sessionWordHead,.uiTableHeader{min-height:var(--table-head-height);box-sizing:border-box;padding-block:4px}
:where(.stationProblemHead,.stationHistoryHead,.sessionWordHead,.uiTableHeader)>*{min-width:0;white-space:normal;overflow-wrap:anywhere}
:where(thead th){overflow-wrap:anywhere}
:where([data-feature="admin"],.adminActivityModal) .adminTestStory{display:block!important;white-space:nowrap!important;overflow:hidden!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}

/* Generic managed marquee: values remain one line and move only on overflow. */
.adaptiveMarqueeClip{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-align:inherit}
.adaptiveMarqueeTrack{display:inline-block;min-width:max-content;white-space:nowrap;transform:translateX(0);will-change:transform}
.adaptiveMarqueeTrack.isOverflowing.isMarqueeVisible{animation:adaptiveValueMarquee var(--marquee-duration,5.8s) linear .55s infinite}
@keyframes adaptiveValueMarquee{0%,16%{transform:translateX(0)}84%,100%{transform:translateX(calc(-1 * var(--marquee-distance,0px)))}}
.stationStaticText>.adaptiveMarqueeClip,.appHeaderScreenTitle>.adaptiveMarqueeClip{text-align:left}
@media(prefers-reduced-motion:reduce){.adaptiveMarqueeTrack{animation:none!important;transform:none!important}}

/* Shared information heading: balanced rules and centered text. */
:is(.uiSectionHeading,.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminUsageBlock h3){display:flex;align-items:center;justify-content:center;gap:var(--ui-info-heading-gap);width:100%;min-width:0;box-sizing:border-box;margin:0 0 var(--ui-info-heading-content-gap);padding:0;border:0;text-align:center;white-space:normal;overflow-wrap:anywhere;font-family:var(--ui-list-section-heading-family);font-size:var(--ui-list-section-heading-size);font-weight:var(--ui-list-section-heading-weight);color:var(--ui-list-section-heading-color)}
:is(.uiSectionHeading,.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminUsageBlock h3)::before,:is(.uiSectionHeading,.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminUsageBlock h3)::after{content:"";flex:1 1 0;min-width:0;height:var(--ui-info-separator-width)}
:is(.uiSectionHeading,.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminUsageBlock h3)::before{background:linear-gradient(to right,transparent,var(--line))}
:is(.uiSectionHeading,.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminUsageBlock h3)::after{background:linear-gradient(to left,transparent,var(--line))}
:is(.profileActivityHead,.stationStatsTitleRow,.settingsSectionHead,.adminSectionHead){display:flex;position:relative;align-items:center;justify-content:center;min-height:var(--ui-list-action);box-sizing:border-box;margin-bottom:var(--ui-info-heading-content-gap);border:0;padding-block:0}
:is(.profileActivityHead,.stationStatsTitleRow,.settingsSectionHead,.adminSectionHead)>:is(.profileSectionTitle,.stationStatsHeading,.settingsSectionTitle,h2){margin:0}
:is(.profileActivityHead,.stationStatsTitleRow,.settingsSectionHead,.adminSectionHead):has(>button){padding-inline:calc(2 * var(--ui-list-action) + var(--ui-info-heading-gap))}
:is(.profileActivityHead,.stationStatsTitleRow,.settingsSectionHead,.adminSectionHead)>button{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%)}
.stationWordRow .contentListMain{gap:var(--ui-info-text-gap)}

/* Row separators are owned by the row that has a following row. */
.contentListRow:not(.resultListRow):has(+ .contentListRow:not(.resultListRow)){border-bottom:var(--ui-info-separator-width) solid var(--line-soft)!important}
.stationWordRow::after{content:none!important}
:is(.profileStoryRow,.profileActivityRow,.stationProblemRow,.stationHistoryRow,.sessionWordRow,.adminTestRow,.adminResultWord,.adminStoryRow,.adminWordTile,.adminStudyHistoryRow,.settingsRow,.settingsLink,.accountFact,.socialRow,.sectionMenuItem,.scopeDictRow,.scopeSectionRow,.setTile,.set-tile,.menuItem):not(:has(+ :is(.profileStoryRow,.profileActivityRow,.stationProblemRow,.stationHistoryRow,.sessionWordRow,.adminTestRow,.adminResultWord,.adminStoryRow,.adminWordTile,.adminStudyHistoryRow,.settingsRow,.settingsLink,.accountFact,.socialRow,.sectionMenuItem,.scopeDictRow,.scopeSectionRow,.setTile,.set-tile,.menuItem))){border-bottom:0!important}
:where([data-feature="settings"]) :is(.settingsDictionaryVersions,.settingsFacts)>div:last-of-type{border-bottom:0!important}
:where(.adminProgressTable,.adminUsersTable) tbody>tr:last-child>:is(th,td){border-bottom:0!important}
:is(.profileFutureNote,.stationSingleMetric:last-child,.adminEmpty,.adminStateMessage,.adminUsersEmpty,.adminUsersError){border-block:0!important}
.uiNavAction{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;color:#666158!important;cursor:pointer}
.uiNavAction svg{width:20px;height:20px;flex:0 0 20px}
:is(.profileActivityHead,.profileShelfHeading):has(>button){padding-inline:54px;min-height:44px}
.profileShelfHeading{display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:var(--ui-info-heading-content-gap)}
.profileShelfHeading>h2{margin:0}
.profileShelfHeading>button{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%)}
}

@layer utilities {
/* src/shared/styles/bracket-tabs.css */
/* Only existing bracket navigation uses this shared overflow contract. */
.bracketTabsShell{position:relative;min-width:0;display:block;overflow:hidden}
.bracketTabsTrack{width:100%;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr);align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.bracketTabsTrack::-webkit-scrollbar{display:none}
.bracketTabsShell::before,.bracketTabsShell::after{position:absolute;z-index:2;top:0;bottom:0;width:14px;display:flex;align-items:center;justify-content:center;color:var(--text-2);pointer-events:none;opacity:0;transition:opacity var(--duration-fast)}
.bracketTabsShell::before{content:'‹';left:0;background:linear-gradient(90deg,var(--app-bg),transparent)}
.bracketTabsShell::after{content:'›';right:0;background:linear-gradient(270deg,var(--app-bg),transparent)}
.bracketTabsShell.canScrollStart::before,.bracketTabsShell.canScrollEnd::after{opacity:.8}
.bracketTabsShell .bracketTabsTrack{padding-inline:14px}
.profilePrimaryNav.bracketTabsShell{display:block}
.appShell[data-screen="ashyk"] .ashykSetupToolbar .ashykModeButtons{display:block;flex:1;overflow:hidden}
.storyTabsShell .storyTabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(max-content,1fr)}
.storyTabsShell .storyTab{max-width:none;overflow:visible;text-overflow:clip}
}

@layer utilities {
/* src/shared/styles/segmented-control.css */
.segmentControl{
  width:100%;
  min-width:0;
  padding:2px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  box-shadow:none;
}
.settingsSegments{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
}
.settingsChoice,.radioOpt,.searchModeItem{position:relative;display:block;min-width:0}
.settingsChoice input,.radioOpt input,.searchModeItem input{
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  opacity:0;
  pointer-events:none;
}
.settingsChoiceBody,.settingsChoice>span,
.radioOpt span,
.modeDirectionToggle button,
.stationDirectionToggle button,
.directionChoiceButton,
.searchModeItem span{
  appearance:none;
  min-width:0;
  min-height:28px;
  padding:4px 7px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--text-3);
  font-family:var(--font-body);
  font-size:var(--text-button);
  font-weight:750;
  line-height:1.15;
  white-space:nowrap;
  transition:background var(--duration-fast),color var(--duration-fast),box-shadow var(--duration-fast),opacity var(--duration-fast);
}
.settingsChoice input:checked+.settingsChoiceBody,
.settingsChoice input:checked+span,
.radioOpt input:checked+span,
.searchModeItem input:checked+span{
  background:color-mix(in srgb,var(--surface-0) 90%,var(--accent-soft));
  color:var(--text-1);
  font-weight:850;
  box-shadow:inset 0 0 0 1px var(--line-strong),0 2px 6px rgba(41,39,34,.12);
}
.modeDirectionToggle button.active,
.stationDirectionToggle button.active,
.directionChoiceButton.active,
.searchModeItem.active span{
  background:color-mix(in srgb,var(--surface-0) 90%,var(--accent-soft));
  color:var(--text-1);
  font-weight:850;
  box-shadow:inset 0 0 0 1px var(--line-strong),0 2px 6px rgba(41,39,34,.12);
}
.settingsChoice input:focus-visible+.settingsChoiceBody,
.settingsChoice input:focus-visible+span,
.radioOpt input:focus-visible+span,
.searchModeItem input:focus-visible+span,
.modeDirectionToggle button:focus-visible,
.stationDirectionToggle button:focus-visible,
.directionChoiceButton:focus-visible{
  outline:2px solid var(--accent-strong);
  outline-offset:2px;
}
.settingsChoice input:disabled+.settingsChoiceBody,
.settingsChoice input:disabled+span,
.radioOpt input:disabled+span,
.searchModeItem input:disabled+span,
.modeDirectionToggle button:disabled,
.stationDirectionToggle button:disabled,
.directionChoiceButton:disabled{
  opacity:var(--ui-button-disabled-opacity);
  cursor:default;
}
@media(max-width:360px){
  .settingsChoiceBody,.settingsChoice>span,
  .radioOpt span,.modeDirectionToggle button,.stationDirectionToggle button,
  .directionChoiceButton,.searchModeItem span{padding-inline:5px}
}
}

@layer typography {
/* src/shared/styles/typography.css */
/* 16.8.0.18 — five-role semantic typography contract.
   Roles own both size and family:
   Technical = service data / counters / IDs, Body = readable UI/content,
   Button = interactive control labels, Accent = primary headings/questions/metrics,
   Result = final score. Bracket navigation uses Button size with the body family. */

:where(body,body *,body *::before,body *::after){font-size:var(--text-body)}

/* Technical — service data, counters, versions, dates and compact numeric metadata. */
:where(
  .sessionStatus,.contentListPill,.contentListIndex,.analyticsFailCount,
  .resultStatusCount,.resultDetailLine>strong,
  .stationOrdinal,.stationWordCount,.stationMilestones,.stationAttempt small,
  .storyProgress .pathProgressCount,.groupNum,.learnResultCount,
  .settingsUpdateBadge,.settingsDictionaryVersions dd,.settingsLinkEnd small,.settingsDocumentDate,
  .mediaTimeline,.profileAvatarFrame::before,.profileStoryHead>span,.problemWord small,
  .adminRankLabel,.adminTableNumber,.adminTestDate,.adminInlineAction,
  .adminProblemCounts,.adminTestTitle>span,.adminTestFacts dt,
  .adminResultWordStatus strong,.adminResultWordStatus small,
  .testResultAnswerLine>strong,
  .ashykScore span,.ashykTopControls>button,.ashykShotControl>span,.ashykShotTimer span,
  .ashykFace span,.ashykFace b,.ashykWaiting span,.ashykWaiting small,.ashykJoin input,.scopeLabel small,
  .towerPill,.towerItemName,.towerPrice,.towerStatus,.towerSelected,.towerAxisLetter
){font-family:var(--font-terminal);font-size:var(--text-technical)}

/* Body — all ordinary interface copy, object names, labels, translations and examples. */
:where(
  .appHeaderSubtitle,.appHeaderTextAction,.btn.actionCompact,.storyProgress,
  .typo-subtitle,.hintText,.meta,.learnLabel,.typo-body,.trans,
  .typo-muted,.setTileCount,.hint,.smallNote,.dictNum,
  .contentListPrimary,.contentListSecondary,.gTrans,.gEx,.groupPill,
  .field span,.secTitle,.scopeSectionRow,.resultDetailTrack,
  .bracketHeading,.segmentedProgress,.instagramBadge,.instagramSubtitle,.textAction,.directionChoiceButton,
  .settingsChoiceBody,.settingsChoice>span,
  .analyticsConsentText,.analyticsConsentButton,.analyticsPreferenceMessage,
  .googleIdentityLoading,.accountField>span,.accountGenderField legend,.googleIdentityStatus,.accountMessage,.accountPrivacyNote,
  .accountNicknameMessage,.accountGenderIntro span,.accountIntro,.analyticsPreferenceRow,
  .learningSetupError,.learningSetupStep h1,.learningSetupStep h2,.learningSetupLanguageSegments .settingsChoiceBody,
  .guestProfilePrompt p,.routeCatalogHeading,.routeSectionHeading,.stationLabel,.stationMenuToolbar,
  .stationWordRow .contentListPrimary,.stationWordRow .contentListSecondary,
  .stationDirectionControl>span,.stationDirectionToggle button,.stationLaunchActions .btn,
  .stationStatLabel,.stationMasteryBadge small,.stationMetricGrid span,.stationAttempt span,
  .stationProblemWord,.stationProblemRow,.stationEmptyState,.storyIntro,
  .learnCard .hint,.learnCard .trans,.learnCardAction>span,.sessionDecision,.learnResultSummary span,
  .optionBtn,.matchCard,.songOriginalLine,.songTranslatedLine,.songInfoButton,
  .profileStoryHead,.profileFutureNote,.profileInlineError,.profileStat span,.problemWord,
  .profileLockedState>span,.profileGenderSetup>span,
  .settingsRowLabel,.settingsDictionaryVersions>div,
  .settingsDictionaryNotice,.settingsDictionaryError,.settingsLink,.settingsDocument,.settingsSmallAction,
  .expandSearchInput,.searchModeItem span,.mediaError,
  .modeLead,.modeLead small,.modeOptionLabel,.modeResultSummary>span:last-child,
  .modeDirectionControl>span,.modeDirectionToggle button,.radioOpt span,.stationLegendRow,.stationHistoryRow,.testResultAnswerTrack,
  .adminUsersTable,.adminUserLink,.adminStoryRowHead,.adminStoryRowHead span,
  .adminTestRow,.adminTestRow strong,.adminTestRow>span:last-child,
  .adminTestStory,.adminTestSet,.adminTestResult,.adminProblemRow,.adminProblemRow strong,
  .adminEmpty,.adminWordTile strong,.adminResultWordMain strong,.adminResultWordMain span,
  .adminStateMessage,.adminModalState,.adminTestFacts dd,
  .practiceMenu .menuItem strong,.practiceMenu .menuItem small,.sectionMenuTitle,.setTileTitle,.scopeDictRow,
  h2,h3,.settingsDocument h2,.settingsDocument h3,
  .ashykSetupHelpButton span,.ashykSetupHelpButton b,.ashykEyebrow,.ashykSectionLabel,
  .ashykDifficultyHint,.ashykModeAccessLock p,.ashykQuestionScopeRow,.ashykQuestionScopeName,
  .ashykFacts>div,.ashykFacts b,.ashykScopeNote,.ashykPrimary,.ashykSecondary,.ashykJoin button,
  .ashykPlayerHead,.ashykPlayerStatus,.ashykPlayerActionCell,.ashykPlayerAction,.ashykPlayerDualAction button,
  .ashykInlineNotice,.ashykInlineError,.ashykStatus strong,.ashykOutcome,.ashykHelp>p,.ashykFinish>p,
  .ashykRuleRows>div,.ashykOptions button,.ashykRuleNote,.ashykQuestionRule,
  .ashykFriendChoice small,.ashykFriendChoice>b,.ashykFriendChoice strong,
  .ashykQuestionMeta strong,.ashykMenuCurrent>strong,
  .towerReadOnly,.towerDimensions label,.towerPosition label
){font-family:var(--font-body);font-size:var(--text-body)}

/* Button — labels of interactive controls only. Lists and ordinary copy remain Body. */
:where(
  .btn,.textAction,.appHeaderTextAction,.settingsSmallAction,
  .settingsChoiceBody,.settingsChoice>span,
  .stationDirectionToggle button,.directionChoiceButton,.searchModeItem span,
  .bracketNavigation,.optionBtn,.matchCard,.profileGenderChoices button,
  .analyticsConsentButton,.learnCardAction>span,.sessionDecision,.songInfoButton,
  .adminInlineAction,.ashykTopControls>button,
  .ashykPrimary,.ashykSecondary,.ashykJoin button,.ashykPlayerAction,.ashykPlayerDualAction button,
  .ashykOptions button,.ashykFriendChoice small,.ashykFriendChoice>b,.ashykFriendChoice strong
){font-family:var(--font-body);font-size:var(--text-button)}

/* Accent — primary headings, questions and important numeric metrics. */
:where(
  h1,.panelTitle,.typo-title,.emptyStateTitle,.noteTitle,.modalTitle,.exitModalText,
  .profileNickname,.profileGenderSetup>strong,.settingsPageHead h1,.settingsDocument h1,
  .wordCardWord,.instagramArrow,.modalClose,
  .stationMasteryBlock strong,.stationMasteryBadge>span,.stationMetricGrid strong,
  .stationAttempt strong,.stationResultMark,.learnResultSummary strong,
  .accountGenderIntro strong,.profileLockedState>strong,.profileStat strong,
  .adminSummaryGrid strong,.adminUserSummaryHead h1,.adminTestTitle h1,
  .appHeaderScreenTitle,.learnCard .word,.modeQuestion,.stationTestQuestion,.modeResultMark,
  .ashykPageHead h1,.ashykModeAccessLock strong,.ashykShotTimer strong,.ashykFace strong,
  .ashykWaiting>strong,.ashykDialog h2,.ashykScore strong,.ashykTimer,.ashykTurnTimer,
  .ashykQuestionPrompt,.ashykFinish h2,.ashykFinalScore span,.ashykAccessLock h1,
  .storySteleCard::before
){font-family:var(--font-body);font-size:var(--text-accent)}

/* Result — final scores stay fixed at 48px. */
:where(.stationResultScore,.modeResultSummary strong,.ashykFinalScore strong){font-family:var(--font-terminal);font-size:var(--text-result)}

/* Intentional family exceptions. */
.bottomNavItem{font-family:var(--font-body);font-size:var(--text-button)}
.bracketNavigation{font-family:var(--font-body);font-size:var(--text-button);font-weight:750;line-height:1.35;letter-spacing:normal;white-space:nowrap;text-align:center;min-height:30px;padding:0 6px;border:0;border-radius:0;background:transparent;box-shadow:none}
.bracketNavigation.active{font-weight:900;color:var(--text-1)}
.storyTabsShell::before,.storyTabsShell::after{font-family:var(--font-body);font-size:var(--text-button)}
.storySteleContent,.storySteleTitle,.storySteleBody,.storySteleCard::before,.storySteleTriggerGlyph>span{font-family:var(--font-brand)}
.storySteleTitle{font-size:var(--text-accent)!important}
.storySteleBody{font-size:var(--text-body)!important}
.storySteleTriggerGlyph>span{font-size:var(--text-technical)}
.appShell[data-screen="ashyk"] .ashykModeButton{justify-content:center;padding:0 6px;min-height:30px;font-family:var(--font-body);font-size:var(--text-body)}
.appShell[data-screen="ashyk"] .ashykModeButton b{font:inherit}
.appShell[data-screen="ashyk"] .ashykSetupHelpButton span,
.appShell[data-screen="ashyk"] .ashykSetupHelpButton b{font-family:var(--font-body);font-size:var(--text-body)}
.storyTab:not(.active){opacity:1}
.appShell[data-screen="ashyk"] .ashykModeBracket{font:inherit;color:inherit}

/* Shared tableHeader */
:where(thead th,thead th>*,.uiTableHeader,.uiTableHeader>*,
  .stationProblemHead,.stationProblemHead>*,.stationHistoryHead,.stationHistoryHead>*,
  .sessionWordHead,.sessionWordHead>*){
  font-family:var(--ui-list-table-header-family);font-size:var(--ui-list-table-header-size);
  font-weight:var(--ui-list-table-header-weight);line-height:var(--ui-list-table-header-line-height);
  color:var(--ui-list-table-header-color);letter-spacing:normal;text-transform:none;
}
/* Shared sectionHeading */
:where(.uiSectionHeading,.stationStatsHeading,.profileSectionTitle,.settingsSectionTitle,.storyWordCatalog,.storyWordSection,.routeCatalogHeading,.routeSectionHeading,.settingsDocument h2,.settingsDocument h3,
  .socialSection h2,.natureEditorAside h2,.modeOptionLabel,.ashykSectionLabel,.sectionMenuTitle,.adminDetailSection>h2,.adminSectionHead h2,.adminAnalyticsSectionHead h2,.adminUsageBlock h3){
  font-family:var(--ui-list-section-heading-family);font-size:var(--ui-list-section-heading-size);
  font-weight:var(--ui-list-section-heading-weight);line-height:var(--ui-list-section-heading-line-height);
  color:var(--ui-list-section-heading-color);letter-spacing:normal;text-transform:none;
}

:where(h1,.uiScreenHeading,.appHeaderScreenTitle,.modalTitle){
  font-family:var(--ui-list-screen-heading-family);
  font-size:var(--ui-list-screen-heading-size);
  font-weight:var(--ui-list-screen-heading-weight);
  line-height:var(--ui-list-screen-heading-line-height);
  color:var(--ui-list-screen-heading-color);
}

:where(.uiRowTitle,.contentListPrimary,.stationProblemWord>strong,.adminUserLink,.adminResultWordMain>strong,.profileStoryHead>strong,.socialRowName>strong,.accountFact dd,.natureEditorAside label,.masonryStone span:not(.masonryPlus),.adminTestRow>strong,.scopeLabel>span,.practiceMenu .menuItem strong){
  font-family:var(--ui-list-row-title-family);
  font-size:var(--ui-list-row-title-size);
  font-weight:var(--ui-list-row-title-weight);
  line-height:var(--ui-list-row-title-line-height);
  color:var(--ui-list-row-title-color);
}

:where(.uiRowNumber,.masonryCatalogPaging span,.stationSingleMetric>strong,.stationProblemMetric,.stationHistoryRow>strong,.profileStoryHead>span,.profileStoryPercent,.scopeLabel>small,.profileStat>strong:not(.uiTimestamp),.adminTableNumber,.adminSummaryGrid strong,.adminTestResult,.adminUsageMetric strong,.socialRowValue,.contentListService:not(.uiTimestamp),.learnResultSummary strong){
  font-family:var(--ui-list-row-number-family);
  font-size:var(--ui-list-row-number-size);
  font-weight:var(--ui-list-row-number-weight);
  line-height:var(--ui-list-row-number-line-height);
  color:var(--ui-list-row-number-color);
  font-variant-numeric:tabular-nums;
}

:where(.uiDescription,.masonryStone small,.natureEditorAside .natureHint,.contentListSecondary,.stationProblemTrans,.stationLegendRow>span:last-child,.accountFact dt,.accountField>span,.socialRowMeta,.adminResultWordMain>span,.practiceMenu .menuItem small,.learningPreviewTranslation){
  font-family:var(--ui-list-description-family);
  font-size:var(--ui-list-description-size);
  font-weight:var(--ui-list-description-weight);
  line-height:var(--ui-list-description-line-height);
  color:var(--ui-list-description-color);
}

:where(.uiTimestamp,.sessionStamp,.stationHistoryRow>span:first-child,.adminTestDate,.settingsDocumentDate,.mediaTimeline,time){
  font-family:var(--ui-list-timestamp-family);
  font-size:var(--ui-list-timestamp-size);
  font-weight:var(--ui-list-timestamp-weight);
  line-height:var(--ui-list-timestamp-line-height);
  color:var(--ui-list-timestamp-color);
}

/* Upper information metrics include dates and durations. */
:is(.uiMetricValue,.profileStat>strong,.learnResultSummary strong,.adminSummaryGrid strong){
 font-family:var(--ui-list-metric-value-family);font-size:var(--ui-list-metric-value-size);font-weight:var(--ui-list-metric-value-weight);line-height:var(--ui-list-metric-value-line-height);color:var(--ui-list-metric-value-color);font-variant-numeric:tabular-nums;
}
}

@layer features {
  .pathStickyControls{padding:0 0 2px!important}
  .storyTabs{width:100%;min-width:0;padding:0;scroll-padding-inline:8px}
  .storyTab:first-child{margin-left:8px}
  .storyTab:last-child{margin-right:8px}
}

.pathView{--route-wave-amplitude:min(clamp(64px,22vw,90px),max(0px,calc((100vw - 220px)/2)))}
html[data-text-size="small"] .pathView{--route-station-gap:58px;--route-station-meta-reserve:48px}
html[data-text-size="medium"] .pathView{--route-station-gap:58px;--route-station-meta-reserve:52px}
html[data-text-size="large"] .pathView{--route-station-gap:72px;--route-station-meta-reserve:66px}
html[data-text-size="huge"] .pathView{--route-station-gap:84px;--route-station-meta-reserve:78px}
.pathView .routeCatalogGroups{padding-bottom:64px}
.pathView .routeSectionStations{padding-bottom:8px}
.pathView .routeSectionHeading{width:min(360px,calc(100% - 48px));max-width:none;margin:6px auto 0;font-family:var(--font-body);font-size:20px;font-weight:800;line-height:1.2;overflow-wrap:normal;word-break:normal;transform:translateX(calc((var(--route-map-right) - var(--route-map-left))/2))}


.stationMeta{position:static;width:168px;display:grid;justify-items:center;gap:3px;text-align:center;pointer-events:none}
.stationMeta .stationLabel{width:100%}
.stationMeta .stationWordCount{white-space:nowrap;line-height:1}

.stationNode[data-route-step="1"]{--station-shift:calc(0px - var(--route-wave-amplitude))}
.stationNode[data-route-step="2"]{--station-shift:0px}
.stationNode[data-route-step="3"]{--station-shift:var(--route-wave-amplitude)}
.stationNode[data-route-step="4"]{--station-shift:0px}

.appShell .learnSession .alantilGuideTrigger.isLearningGuideTrigger{
  position:fixed;z-index:calc(var(--z-header) + 2);left:auto;right:10px;top:auto;
  bottom:max(12px,calc(var(--safe-bottom) + 10px));transform:none;
}
.appShell .learnSession .alantilGuideTrigger.isLearningGuideTrigger:active{transform:translateY(1px) scale(.97)}
