/* Reference composition. Canonical UI, FX and refinement files remain unchanged. */
@layer ev-reference {
  .et-reference{background:var(--ev-fx-canvas)}
  .et-reference [hidden]{display:none!important}
  .et-reference img{max-width:100%;height:auto}
  .et-reference button,.et-reference a,.et-reference input,.et-reference textarea,.et-reference select{touch-action:manipulation}
  .et-reference :is(h1,h2,h3,p,li,dd){overflow-wrap:break-word}
  .ev-header__inner{flex-wrap:nowrap}
  .ev-wishes{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
  .et-review-link{color:#cbdcf6;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:8px 14px;font-size:14px}
  .et-profile-button{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid #ffffff38;border-radius:50%;color:white;background:#ffffff12;font-weight:600}
  .et-profile-button span{display:block}
  .ev-bottomnav a span{white-space:nowrap;overflow-wrap:normal}
  .et-device-frame{box-sizing:content-box}
  .et-page{width:100%;max-width:var(--ev-max);margin-inline:auto;padding:32px var(--ev-gutter) 56px;min-width:0}
  .et-page--narrow{max-width:590px}.et-page--tools{max-width:920px}
  .et-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px;min-width:0}
  .et-page-description{margin-top:12px;max-width:62ch}
  .et-page-head .et-actions{flex-shrink:0}
  .et-context{max-width:var(--ev-max);margin:auto;padding:12px var(--ev-gutter) 0}
  .et-context-nav{display:flex;flex-wrap:wrap;gap:8px}
  .et-context-nav a{display:inline-flex;align-items:center;min-height:44px;border-radius:10px;text-decoration:none;color:var(--ev-muted);font-size:14px;font-weight:500;padding:8px 14px;border:1px solid transparent}
  .et-context-nav a[aria-current="page"]{background:#fff;border-color:#dce4f2;color:var(--ev-ink);box-shadow:0 2px 8px #34548d05}
  .et-context-mobile{display:none}
  .et-card{position:relative;min-width:0;background:#fff;border:1px solid var(--ev-line);border-radius:20px;padding:24px;box-shadow:var(--ev-shadow-card)}
  .et-card--large{padding:32px}.et-surface-content{position:relative;z-index:1;min-width:0}
  .et-stack{display:grid;gap:24px;min-width:0}.et-stack--small{gap:12px}.et-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
  .et-muted{color:var(--ev-muted)}.et-small{font-size:14px;line-height:20px}.et-eyebrow{font-size:14px;line-height:20px;color:var(--ev-muted);font-weight:500}
  .et-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.et-link{color:var(--ev-blue-hover);text-underline-offset:3px}
  .et-pill{display:inline-flex;align-items:center;gap:6px;font-size:14px;line-height:20px;font-weight:500;padding:5px 10px;border-radius:8px;color:#35506f;background:#edf3fb;max-width:100%}
  .et-pill .ev-icon{width:16px;height:16px}.et-pill--success{background:var(--ev-success-bg);color:var(--ev-success)}.et-pill--warning{background:var(--ev-warning-bg);color:var(--ev-warning)}
  .et-field{display:grid;gap:8px;min-width:0}.et-field>label{font-weight:500}.et-input{width:100%;min-width:0;min-height:var(--ev-control-height);padding:12px 16px;border:1px solid var(--ev-control-line);border-radius:12px;background:#fff;font:inherit;line-height:24px;color:var(--ev-ink)}
  textarea.et-input{min-height:144px;resize:vertical}
  .et-reference select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235e6b85' stroke-width='1.7'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:42px}
  .ev-button--secondary{background:var(--ev-paper);border-color:var(--ev-control-line);color:var(--ev-ink)}
  .et-prose{font-size:18px;line-height:30px;max-width:68ch;color:var(--ev-ink)}.et-prose p+p{margin-top:16px}.et-prose h2{font-size:26px;line-height:34px;margin:32px 0 12px;letter-spacing:-.025em}.et-prose h3{font-size:20px;line-height:28px;margin:24px 0 12px}.et-prose ul,.et-prose ol{padding-left:24px;margin:16px 0}.et-prose li+li{margin-top:8px}.et-prose :is(a,code){overflow-wrap:anywhere}
  .et-empty{padding:40px 24px;display:grid;justify-items:start;gap:16px}.et-empty .ev-icon{width:32px;height:32px;color:var(--ev-blue)}
  .et-section-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.et-section-head h2{font-size:24px;line-height:30px}
  .et-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .et-course-card{padding:0;display:flex;flex-direction:column;background:#fff;border-radius:20px;border:1px solid var(--ev-line);box-shadow:var(--ev-shadow-card);min-width:0}
  .et-course-photo{display:block;width:100%;aspect-ratio:16/8.5;object-fit:cover;border-radius:19px 19px 0 0;object-position:center 42%}
  .et-course-copy{display:flex;flex-direction:column;flex:1;padding:28px 32px 32px;border-radius:0 0 20px 20px;gap:24px;position:relative;isolation:isolate}
  .et-course-copy>.et-surface-content{display:flex;flex-direction:column;gap:16px;flex:1}
  .et-course-heading{display:grid;gap:12px}.et-course-heading h2{font-size:28px;line-height:34px;letter-spacing:-.03em;max-width:28ch}.et-course-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;line-height:20px;color:var(--ev-muted)}
  .et-course-card .et-actions{margin-top:auto;padding-top:12px}
  .et-home-tools{margin-top:40px}.et-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.et-shortcut{display:flex;align-items:center;gap:16px;min-height:98px;background:#ffffffa6;border:1px solid #fff;border-radius:16px;padding:20px;text-decoration:none;color:var(--ev-ink)}.et-shortcut>span:first-child{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#e8f0ff;color:#075dff;flex-shrink:0}.et-shortcut strong{display:block;font-size:16px;line-height:24px}.et-shortcut small{display:block;margin-top:4px;font-size:14px;line-height:20px;color:var(--ev-muted)}.et-shortcut>.ev-icon{margin-left:auto;width:18px;color:var(--ev-muted)}
  .et-note-row{display:flex;align-items:flex-start;gap:12px;padding:20px 0;font-size:14px;color:var(--ev-muted)}
  .et-note-row .ev-icon{width:20px;height:20px;flex-shrink:0}
  .et-course-hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:center;padding:32px;margin-bottom:32px}
  .et-course-hero h1{font-size:40px;line-height:44px;margin:12px 0 16px}.et-course-hero img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:16px;position:relative;z-index:1}
  .et-course-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;max-width:760px;margin-bottom:20px}.et-search-field{position:relative}.et-search-field>.ev-icon{position:absolute;left:16px;top:14px;color:var(--ev-muted)}.et-search-field input{padding-left:48px;padding-right:48px}.et-search-clear{position:absolute;right:4px;top:4px;background:transparent}
  .et-course-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}.et-filter{min-height:44px;border:1px solid var(--ev-line);background:white;border-radius:10px;padding:8px 16px;color:var(--ev-muted);font-size:14px;font-weight:500}.et-filter[aria-pressed="true"]{border-color:#afc8f5;color:#064dcf;background:#e6efff}
  .et-course-group+.et-course-group{margin-top:28px}.et-course-group>h2{margin-bottom:14px;font-size:20px;line-height:28px}.et-material-list{list-style:none;padding:0;background:#fff;border:1px solid var(--ev-line);border-radius:20px;box-shadow:var(--ev-shadow-card)}.et-material-list>li+li{border-top:1px solid var(--ev-line)}
  .et-material-link{display:grid;grid-template-columns:44px minmax(0,1fr) auto 20px;gap:16px;align-items:center;padding:20px 24px;text-decoration:none;color:var(--ev-ink);border-radius:16px;min-height:88px}.et-material-icon{width:44px;height:44px;background:var(--ev-mist);border-radius:12px;display:grid;place-items:center;color:#527198}.et-material-name{font-weight:600;display:block}.et-material-kind{font-size:14px;line-height:20px;color:var(--ev-muted);display:block;margin-top:4px}.et-material-state{font-size:14px;color:var(--ev-success);display:flex;gap:6px;align-items:center}.et-material-state .ev-icon{width:16px;height:16px}.et-material-chevron{width:20px;color:var(--ev-muted)}
  .et-learning-context{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.et-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:14px;color:var(--ev-muted);align-items:center}.et-breadcrumb a{color:var(--ev-muted);text-decoration:none;min-height:36px;display:inline-flex;align-items:center}.et-breadcrumb a:last-child{color:var(--ev-ink)}.et-learning-tools{gap:8px}.et-learning-tools .ev-button{font-size:14px;padding-inline:14px}.et-learning-tools [aria-pressed="true"]{background:var(--ev-soft);color:var(--ev-blue-hover)}
  .et-learning-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}.et-outline{padding:20px 12px;position:sticky;top:24px;max-height:calc(100dvh - 190px);overflow:auto}.et-outline-intro{padding:4px 12px 16px;display:grid;gap:8px}.et-outline-intro h2{font-size:20px;line-height:28px}.et-outline-search{display:flex;align-items:center;gap:10px;min-height:44px;border:1px solid var(--ev-line);border-radius:10px;padding:8px 12px;margin:0 8px 24px;text-decoration:none;color:var(--ev-muted);font-size:14px;background:#f9fbff}.et-outline-search .ev-icon{width:20px;height:20px}.et-outline-nav section+section{margin-top:20px}.et-outline-nav h3{font-size:14px;line-height:20px;color:var(--ev-muted);font-weight:500;padding:0 12px;margin-bottom:8px}.et-outline-nav ul{list-style:none;padding:0;display:grid;gap:4px}.et-outline-nav a{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:start;gap:10px;text-decoration:none;color:var(--ev-ink);font-size:14px;line-height:21px;padding:12px;border-radius:10px;border-left:2px solid transparent;min-height:48px}.et-outline-icon .ev-icon{width:19px;height:19px;color:#6e819e}.et-done-mark .ev-icon{width:16px;height:16px;color:#607c70}.et-outline-nav a[aria-current="step"]{background:var(--ev-fx-current-lesson);border-left-color:#075dff;font-weight:600;color:#12305a}.et-outline-nav a[aria-current="step"] .et-outline-icon .ev-icon{color:#075dff}
  .et-outline-toggle{display:none}.et-material{min-width:0}.et-reading-panel{padding:32px;min-width:0}.et-reading-panel>.et-eyebrow{margin-bottom:12px}.et-lesson-title{font-size:40px;line-height:44px;letter-spacing:-.035em;margin:0 0 28px;max-width:30ch}.et-material-content{min-width:0}.et-learning-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin-top:24px}.et-learning-footer p{font-size:14px;color:var(--ev-muted)}
  .et-focus .et-learning-grid{grid-template-columns:minmax(0,1fr);max-width:1000px;margin-inline:auto}.et-focus .et-outline{display:none}.et-focus .ev-topnav{display:none}.et-focus .et-outline-toggle{display:inline-flex}.et-focus .et-learning-context{max-width:1000px;margin-inline:auto}
  .et-review-intro{max-width:70ch;margin:16px 0 28px;color:var(--ev-muted)}.et-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.et-review-card{padding:24px;display:flex;flex-direction:column;gap:14px}.et-review-card h2{font-size:22px;line-height:28px}.et-review-card p{font-size:14px;line-height:22px;color:var(--ev-muted)}.et-review-card .et-actions{margin-top:auto}.et-review-card .ev-button{font-size:14px;min-height:44px;padding:8px 14px}.et-state-buttons{display:flex;flex-wrap:wrap;gap:8px}.et-state-button{border:1px solid var(--ev-line);background:#fff;padding:8px 10px;min-height:44px;font-size:14px;color:#31547f;border-radius:8px}.et-review-icon{width:44px;height:44px;border-radius:12px;background:var(--ev-soft);color:var(--ev-blue);display:grid;place-items:center}.et-review-toolbar{padding:20px 24px;border:1px solid var(--ev-line);border-radius:16px;background:#ffffffc9;margin-bottom:24px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
  .et-menu{display:grid;gap:8px}.et-menu a,.et-menu button{display:flex;align-items:center;gap:12px;text-align:left;min-height:52px;padding:12px;border:0;background:transparent;color:var(--ev-ink);text-decoration:none;border-radius:10px}.et-menu a:hover,.et-menu button:hover,.et-menu a[aria-current="page"]{background:var(--ev-mist)}.et-menu .ev-icon{color:var(--ev-muted)}
  .et-state-link{text-decoration:none;display:inline-flex;align-items:center}.et-text-button{border:0;background:transparent;min-height:44px;cursor:pointer}
  .et-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100% - 32px));width:max-content;background:#142341;color:#fff;padding:14px 20px;border-radius:12px;font-size:14px;line-height:22px;box-shadow:0 12px 32px #101d3c20;z-index:60}
  .et-device-dialog{width:min(960px,calc(100% - 24px));max-height:calc(100dvh - 24px);background:#f1f4fa}.et-device-dialog .ev-dialog__body{padding:12px 24px 24px}.et-device-controls{display:flex;gap:8px;align-items:center;justify-content:center;margin-bottom:16px}.et-device-controls .ev-button{font-size:14px;background:#fff;color:var(--ev-muted);border-color:var(--ev-line);padding:8px 12px}.et-device-controls [aria-pressed="true"]{background:var(--ev-soft);color:var(--ev-blue);border-color:#afc8f5}.et-device-stage{display:flex;justify-content:center;overflow:auto;padding:4px}.et-device-frame{display:block;border:1px solid #b6c5dd;border-radius:20px;width:390px;min-width:320px;height:min(844px,calc(100dvh - 224px));background:#eef3ff;box-shadow:0 20px 50px #233b5b1a;flex-shrink:0}
  .et-login-card{padding:32px;display:grid;gap:24px}.et-login-card h1{font-size:36px;line-height:42px}.et-login-fields{display:grid;gap:20px}.et-login-card .ev-button{width:100%}.et-login-logo{text-align:center;padding-top:16px;color:var(--ev-muted)}
  .et-catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.et-catalogue-card{padding:0;display:flex;flex-direction:column;min-width:0}.et-catalogue-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:19px 19px 0 0}.et-catalogue-card>div{padding:24px;display:flex;flex-direction:column;gap:16px;flex:1}.et-catalogue-card h2{font-size:22px;line-height:28px}.et-catalogue-card p{font-size:14px;line-height:22px;color:var(--ev-muted)}.et-catalogue-card .et-actions{margin-top:auto}
  @media(min-width:781px){.et-reference .ev-main{scrollbar-gutter:stable}}
  @media(hover:hover){.et-context-nav a:hover,.et-filter:hover{background:#f9fbff;color:var(--ev-ink)}.et-material-link:hover,.et-outline-nav a:hover{background:#f3f7ff}.et-shortcut:hover{background:#fff;box-shadow:0 6px 18px #34548d07}.et-review-link:hover{color:#fff}.et-state-button:hover{background:var(--ev-soft)}}
  @media(max-width:1100px){.et-learning-grid{grid-template-columns:minmax(0,1fr)}.et-outline{display:none}.et-outline-toggle{display:inline-flex}.et-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.et-course-copy{padding:24px}.et-course-heading h2{font-size:26px;line-height:32px}.et-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
  @media(max-width:780px){
    .et-page{padding-top:24px;padding-bottom:32px}.et-page-head{align-items:flex-start;flex-direction:column;gap:20px;margin-bottom:24px}.et-page-description{font-size:16px;line-height:24px;margin-top:10px}.et-page-head .et-actions{width:100%}
    .et-context{padding-top:8px}.et-context-nav{display:none}.et-context-mobile{display:flex;align-items:center;gap:12px}.et-context-mobile label{font-size:14px;color:var(--ev-muted);white-space:nowrap}.et-context-mobile select{flex:1;min-width:0;min-height:44px;border:1px solid #dce4f2;background-color:#ffffffc9;border-radius:10px;font-size:14px;padding-block:9px;padding-left:12px}
    .et-review-link{display:none}.ev-header__actions{gap:10px}.et-profile-button{min-width:44px;min-height:44px;width:44px;height:44px}.ev-brand{font-size:24px}.ev-wishes{padding-inline:12px}.ev-bottomnav a{font-size:14px;line-height:18px}.ev-bottomnav a[aria-current="page"]{background:transparent;position:relative}.ev-bottomnav a[aria-current="page"]:before{content:"";height:3px;width:24px;border-radius:0 0 4px 4px;background:var(--ev-blue);position:absolute;top:0}
    .et-card--large,.et-reading-panel{padding:16px}.et-grid2,.et-home-grid{grid-template-columns:minmax(0,1fr)}.et-prose{font-size:16px;line-height:28px}.et-prose h2{font-size:24px;line-height:32px;margin-top:24px}.et-course-photo{aspect-ratio:16/8.5}.et-course-copy{padding:24px}.et-course-heading h2{font-size:26px;line-height:32px}.et-course-card .et-actions .ev-button{flex:1 1 auto;white-space:nowrap}.et-home-tools{margin-top:32px}.et-shortcuts{grid-template-columns:minmax(0,1fr);gap:12px}.et-shortcut{min-height:86px;padding:16px}.et-section-head{gap:16px}.et-section-head h2{font-size:22px;line-height:28px}.et-section-head a{font-size:14px}
    .et-course-hero{grid-template-columns:1fr;padding:24px;gap:24px;margin-bottom:24px}.et-course-hero img{display:none}.et-course-hero h1{font-size:32px;line-height:36px}.et-course-search{grid-template-columns:1fr auto;gap:8px}.et-course-search>.ev-button{padding-inline:16px}.et-course-filters{gap:8px;margin-bottom:24px}.et-filter{padding:8px 12px}.et-material-link{grid-template-columns:36px minmax(0,1fr) 16px;gap:12px;padding:16px}.et-material-icon{width:36px;height:36px}.et-material-icon .ev-icon{width:20px;height:20px}.et-material-state{grid-column:2;grid-row:2;font-size:13px}.et-material-chevron{grid-column:3;grid-row:1}.et-material-name{font-size:16px;line-height:24px}.et-material-kind{font-size:14px}
    .et-learning-context{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:20px}.et-learning-tools{width:100%}.et-learning-tools .et-outline-toggle{margin-right:auto}.et-learning-tools .ev-button{padding-inline:12px}.et-breadcrumb{gap:8px;line-height:20px}.et-breadcrumb a{min-height:28px}.et-lesson-title{font-size:32px;line-height:36px;margin-bottom:24px;max-width:none}.et-reading-panel>.et-eyebrow{margin-bottom:10px}.et-learning-footer{margin-top:20px;gap:12px}.et-learning-footer>.ev-button{flex:1 1 160px}.et-learning-footer .et-actions{width:100%}
    .et-toast{bottom:calc(86px + env(safe-area-inset-bottom,0px))}.et-review-grid{grid-template-columns:1fr}.et-review-toolbar{padding:20px}.et-device-dialog{width:calc(100% - 12px)}.et-device-dialog .ev-dialog__body{padding:8px}.et-catalogue-grid{grid-template-columns:1fr}.et-login-card{padding:24px}.et-login-card h1{font-size:32px;line-height:36px}
  }
  @media(max-width:359px){.ev-header__inner{gap:6px}.ev-header__actions{gap:6px}.ev-brand{font-size:22px;gap:6px}.ev-brand__mark{display:block;width:12px;height:20px}.ev-wishes{font-size:14px;padding-inline:8px}.et-profile-button{width:44px;min-width:44px}.et-course-copy{padding:20px}.et-learning-tools .ev-button{font-size:14px;padding-inline:10px}.et-learning-tools .ev-button .ev-icon{width:20px;height:20px}.et-page-head h1{font-size:30px;line-height:36px}.et-material-state{font-size:13px}}
  @media(max-height:480px){.et-reference .ev-shell{height:auto;min-height:100dvh;display:block}.et-reference .ev-header{position:sticky;top:0;z-index:10}.et-reference .ev-main{overflow:visible}.et-reference .ev-bottomnav{position:static}.et-outline{position:static;max-height:none}.et-device-frame{min-height:260px}}
}
