/* EGE prototype, second design (EXPERIMENT-EGE-002, owner: «свежий дизайн», 2026-09-28).
   The palette is the taskbook's own tokens and every task row is the taskbook's own
   markup and styles; only the chrome around the tasks is new: one dark bar, a rail at
   the left, the reading column, panels and cards. Interface text is set in Geologica
   (vendor/geologica, the owner's choice of 2026-09-29 over the system face); tasks,
   headings and large figures keep the reader face. */
.ege-shell [hidden]{display:none!important}
body.ege-body{background:var(--folio-semantic-color-background-canvas);margin:0}
/* The page is laid out on the whole width of the screen (owner, 2026-09-29: «ширину
   отсчитывай от всего экрана»): a scrollbar — there on a long page, absent on a short
   one — lies over the right edge instead of narrowing the page, so the bar and the
   columns stand still from page to page. The body clips what lies under the scrollbar
   without becoming a scroller, so nothing, not even a script, scrolls the page sideways
   (the root keeps its own overflow, so the body's is not handed to the window). */
.ege-root{overflow:auto}
body.ege-body{overflow-x:clip}
.ege-shell{width:100vw}

/* Scrollbars (owner, 2026-09-29: «все кастомные: узкие, подходящие по цвету»): a thin
   rounded grey thumb, darker under the pointer, on no trough; a grey that reads on the
   bar and on the page alike. Inside the page (the reference data, tables, panels)
   Chromium and Safari draw them from ::-webkit-scrollbar (which they ignore once
   scrollbar-width/-color is set, so those stay unset there); Firefox, without that
   selector, from scrollbar-width/-color. */
.ege-root{
  --ege-bar-h:52px;
  --ege-toolbar-h:0px;
  --ege-header-h:calc(var(--ege-bar-h) + var(--ege-toolbar-h));
  --ege-back-h:0px;
  --ege-content-top:calc(var(--ege-header-h) + var(--ege-back-h));
  --ege-page-max:1480px;
  /* Translucent like iOS (owner, 2026-10-01); stronger under the pointer and while
     dragged, with the surface still visible through the thumb in either state. */
  --ege-scroll-thumb:color-mix(in srgb,var(--folio-primitive-color-graphite-400) 50%,transparent);
  --ege-scroll-thumb-hover:color-mix(in srgb,var(--folio-primitive-color-graphite-400) 75%,transparent);
}
.ege-shell ::-webkit-scrollbar{background:transparent;height:8px;width:8px}
.ege-shell ::-webkit-scrollbar-track,.ege-shell ::-webkit-scrollbar-corner{background:transparent}
.ege-shell ::-webkit-scrollbar-thumb{background:var(--ege-scroll-thumb) padding-box;border:2px solid transparent;border-radius:8px}
/* Scrollbar parts take :hover and :active only as written out, not inside :is(). */
.ege-shell ::-webkit-scrollbar-thumb:hover,.ege-shell ::-webkit-scrollbar-thumb:active{background-color:var(--ege-scroll-thumb-hover)}
/* The page's own scrollbar is a thumb that floats over the bar and the page, drawn by
   chrome.js where a mouse drives the page; the browser's is hidden then. A column of its
   own beside the page had to meet the bar's edge, and at a fractional zoom the two
   missed by a pixel; beside the phone's row of places it was a light strip (owner:
   «ступеньки», «целая белая полоса»). Touch screens keep the browser's floating bars;
   without the script the browser's own scrollbar stays. */
.ege-overlay-scroll,.ege-overlay-scroll>body{scrollbar-width:none}
.ege-overlay-scroll::-webkit-scrollbar,.ege-overlay-scroll>body::-webkit-scrollbar{display:none}
.ege-scroll{bottom:0;position:fixed;right:0;top:0;width:var(--folio-primitive-space-12);z-index:49}
.ege-scroll-thumb{background:var(--ege-scroll-thumb);border-radius:3px;position:absolute;right:2px;top:0;transition:background-color .15s,width .15s;width:4px}
.ege-scroll:hover .ege-scroll-thumb,.ege-scroll.is-dragging .ege-scroll-thumb{background:var(--ege-scroll-thumb-hover);width:6px}
/* Keep the page scrollbar at the viewport edge, above the reference panel. The panel's
   right padding reserves this track's width so the two scrollbars stay separate. */
@supports not selector(::-webkit-scrollbar){
  .ege-root{scrollbar-color:var(--ege-scroll-thumb) var(--folio-semantic-color-background-canvas);scrollbar-width:thin}
  /* No weight, so a rail's or a strip's own «none» still hides theirs. */
  :where(.ege-root body *){scrollbar-color:var(--ege-scroll-thumb) transparent;scrollbar-width:thin}
}
.ege-shell{
  --ege-ui:"Geologica","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Roboto,Arial,sans-serif;
  /* Three weights for the interface, each a little lighter than the usual 400/500/600. */
  --ege-w-regular:350;--ege-w-medium:450;--ege-w-strong:540;
  --folio-semantic-typography-interfaceFamily:var(--ege-ui);
  --ege-reader:var(--folio-semantic-typography-readerFamily);
  --ege-ink:var(--folio-semantic-color-text-primary);
  --ege-muted:var(--folio-semantic-color-text-secondary);
  --ege-faint:var(--folio-primitive-color-graphite-300);
  --ege-line:var(--folio-semantic-color-border-subtle);
  --ege-hover:rgb(29 32 30 / 5%);
  --ege-paper:var(--folio-semantic-color-background-content);
  --ege-canvas:var(--folio-semantic-color-background-canvas);
  --ege-dark:var(--folio-semantic-color-background-inverse);
  --ege-dark-2:var(--folio-primitive-color-graphite-800);
  --ege-on-dark:var(--folio-semantic-color-text-inverse);
  --ege-on-dark-muted:var(--folio-primitive-color-graphite-300);
  --ege-on-dark-line:rgb(247 244 235 / 14%);
  --ege-green:var(--folio-semantic-color-status-green);
  --ege-yellow:var(--folio-semantic-color-status-yellow);
  --ege-red:var(--folio-semantic-color-status-red);
  --ege-status-opacity-fresh:1;--ege-status-opacity-week:.6;--ege-status-opacity-old:.3;
  --ege-radius:var(--folio-primitive-radius-control);
  --ege-radius-lg:var(--folio-primitive-radius-tab);
  --ege-shadow:var(--folio-component-taskFeed-shadow);
  --ege-shadow-float:0 18px 48px rgb(29 32 30 / 16%);
  --ege-rail-w:264px;
  --ege-ref-w:372px;
  --ege-reading:var(--folio-component-workspace-readingMaxWidth);
  --ege-gap-top:28px;
  font-family:var(--ege-ui);font-size:14px;font-weight:var(--ege-w-regular);line-height:1.4;min-height:100dvh;
  -webkit-font-smoothing:antialiased;
}
.ege-shell .folio-task-feed{border-radius:var(--ege-radius-lg);font-family:var(--ege-reader);font-weight:var(--folio-semantic-typography-bookWeight)}
.ege-shell :focus-visible{outline:2px solid var(--ege-ink);outline-offset:2px}
.ege-shell :is(a,button:not(:disabled),label,summary,[role=button]){cursor:pointer}
.ege-icon{fill:none;flex:none;height:20px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5;width:20px}
@media (prefers-reduced-motion:reduce){.ege-shell *,.ege-shell *::before,.ege-shell *::after{scroll-behavior:auto!important;transition:none!important}}

/* ── The bar ─────────────────────────────────────────────────────────────────── */
.ege-bar{--ege-bar-text:14px;background:var(--ege-dark);color:var(--ege-on-dark-muted);position:sticky;top:0;z-index:40}
/* The band an overscroll uncovers above the bar is the bar's own colour. */
.ege-bar::before{background:inherit;bottom:100%;content:"";height:500px;inset-inline:0;pointer-events:none;position:absolute}
.ege-bar-inner{align-items:center;display:flex;gap:24px;height:calc(var(--ege-bar-h) + var(--ege-toolbar-h));margin:0 auto;max-width:var(--ege-page-max);padding:0 24px}
/* Every word in the bar — the project's name, the places, «Войти», «Справочник» — is set
   in one face and size, so all stand on one baseline; the name is told by its weight. */
.ege-brand{color:var(--ege-on-dark);flex:none;font-size:var(--ege-bar-text);font-weight:var(--ege-w-strong);text-decoration:none;white-space:nowrap}
.ege-nav{align-self:stretch;display:flex;gap:2px}
:is(.ege-nav,.ege-tabs) a{align-items:center;color:var(--ege-on-dark-muted);display:flex;font-size:var(--ege-bar-text);padding:0 12px;position:relative;text-decoration:none;transition:color .15s;white-space:nowrap}
:is(.ege-nav,.ege-tabs) a:hover,:is(.ege-nav,.ege-tabs) a[aria-current=page]{color:var(--ege-on-dark)}
:is(.ege-nav,.ege-tabs) a[aria-current=page]::after{background:var(--ege-on-dark);border-radius:2px 2px 0 0;bottom:0;content:"";height:2px;inset-inline:12px;position:absolute}
/* The phone's row of places (see the narrow screens below). */
.ege-tabs{--ege-bar-text:14px;background:var(--ege-dark);display:none;height:44px;padding:0 4px;position:sticky;top:calc(var(--ege-bar-h) + var(--ege-toolbar-h));z-index:40}
.ege-bar-end{align-items:center;display:flex;gap:8px;margin-left:auto;min-width:0}
.ege-bar-button{align-items:center;border-radius:var(--ege-radius);color:var(--ege-on-dark-muted);display:inline-flex;flex:none;font-size:var(--ege-bar-text);gap:8px;height:36px;padding:0 10px;text-decoration:none;transition:background .15s,color .15s;white-space:nowrap}
.ege-bar-button:hover,.ege-bar-button[aria-expanded=true],.ege-bar-button[aria-current=page]{background:var(--ege-on-dark-line);color:var(--ege-on-dark)}
/* The pupil's name, or «Войти», stands before the reference data. */
.ege-account{flex:0 1 auto;min-width:0}
.ege-account .ege-bar-label{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.ege-bar :focus-visible{outline-color:var(--ege-on-dark)}

/* ── Buttons, fields, chips ─────────────────────────────────────────────────── */
.ege-button{align-items:center;border:1px solid transparent;border-radius:var(--ege-radius);display:inline-flex;font-family:var(--ege-ui);font-size:14px;font-weight:var(--ege-w-strong);gap:8px;height:38px;justify-content:center;padding:0 16px;text-decoration:none;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}
.ege-button-primary{background:var(--ege-dark);color:var(--ege-on-dark)}
.ege-button-primary:hover:not(:disabled){background:var(--ege-dark-2)}
.ege-button-primary:disabled{background:var(--ege-faint);color:var(--ege-paper);cursor:default}
.ege-button-quiet{background:transparent;border-color:var(--ege-line);color:var(--ege-ink);font-weight:var(--ege-w-medium)}
.ege-button-quiet:hover{border-color:var(--ege-ink)}
.ege-button-light{background:var(--ege-on-dark);color:var(--ege-dark);height:34px}
.ege-button-light:hover{background:var(--folio-primitive-color-graphite-100)}
.ege-button .ege-icon,.ege-list-go .ege-icon{height:18px;width:18px}
.ege-link-button{color:var(--ege-muted);font-size:13px;text-decoration:underline;text-decoration-color:var(--ege-line);text-underline-offset:3px}
.ege-link-button:hover:not(:disabled){color:var(--ege-ink);text-decoration-color:currentColor}
.ege-link-button:disabled{cursor:default;opacity:.5}
.ege-icon-button{align-items:center;border-radius:var(--ege-radius);color:var(--ege-muted);display:inline-flex;flex:none;height:34px;justify-content:center;width:34px}
.ege-icon-button:hover{background:var(--ege-hover);color:var(--ege-ink)}
.ege-badge{background:var(--ege-dark);border-radius:9px;color:var(--ege-on-dark);font-size:11.5px;font-variant-numeric:tabular-nums;line-height:18px;min-width:18px;padding:0 5px;text-align:center}
.ege-search{align-items:center;background:var(--ege-paper);border:1px solid var(--ege-line);border-radius:var(--ege-radius);color:var(--ege-muted);cursor:text;display:flex;gap:8px;height:38px;padding:0 10px;transition:border-color .15s}
.ege-search:focus-within{border-color:var(--ege-ink);color:var(--ege-ink)}
.ege-search input:focus-visible{outline:none}
.ege-search input{appearance:none;background:transparent;border:0;color:var(--ege-ink);flex:1;font:inherit;height:100%;min-width:0;outline:none;padding:0}
.ege-search input::placeholder{color:var(--ege-muted);opacity:1}
.ege-search input::-webkit-search-cancel-button{filter:grayscale(1);opacity:.55}
.ege-search .ege-icon,.ege-exam-time .ege-icon{height:17px;width:17px}
.ege-search-small{height:34px}
.ege-chip{background:var(--ege-paper);border:1px solid var(--ege-line);border-radius:var(--ege-radius);color:var(--ege-ink);font-size:13.5px;height:32px;padding:0 12px;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}
.ege-chip:hover{border-color:var(--ege-ink)}
.ege-chip[aria-pressed=true]{background:var(--ege-dark);border-color:var(--ege-dark);color:var(--ege-on-dark)}
.ege-meter{background:var(--ege-line);border-radius:3px;display:block;height:6px;overflow:hidden;width:120px}
.ege-meter>span{background:var(--ege-ink);border-radius:inherit;display:block;height:100%;transition:width .3s ease}
.ege-narrow-only{display:none}

/* ── Page frame: a rail, the reading column, a card ─────────────────────────── */
.ege-main{min-height:calc(100dvh - var(--ege-header-h));transition:margin .2s ease}
.ege-layout{align-items:start;column-gap:40px;display:grid;margin:0 auto;max-width:var(--ege-page-max);padding:var(--ege-gap-top) 24px 96px}
/* The return occupies the original rail position, above its controls. It shares
   the rail grid on every internal page; no extra full-width toolbar on desktop. */
.ege-back-row{height:0;margin-top:var(--folio-primitive-space-20);margin-bottom:calc(-1 * var(--folio-primitive-space-20));pointer-events:none;position:sticky;top:calc(var(--ege-header-h) + var(--folio-primitive-space-20));z-index:35}
.ege-back-inner{column-gap:40px;display:grid;margin-inline:auto;max-width:var(--ege-page-max);min-height:var(--folio-primitive-size-control-touch);padding-inline:var(--folio-primitive-space-24)}
/* The back glyph has a 4px optical inset; its visible edge aligns with rail text. */
.ege-back-slot{box-sizing:border-box;grid-column:1;justify-self:end;width:min(100%,var(--ege-rail-w))}
.ege-back-slot>.ege-toc-back{pointer-events:auto}
.ege-layout-rail{grid-template-columns:minmax(220px,1fr) minmax(0,var(--ege-reading)) minmax(0,1fr)}
.ege-layout-rail>.ege-rail{grid-column:1;grid-row:1;justify-self:end;width:min(100%,var(--ege-rail-w))}
.ege-layout-rail>.ege-center,.ege-layout-cart>.ege-center{grid-column:2;grid-row:1}
.ege-layout-cart{grid-template-columns:minmax(0,1fr) minmax(0,var(--ege-reading)) minmax(280px,1fr)}
.ege-layout-cart>.ege-cart{grid-column:3;grid-row:1;justify-self:start;width:min(100%,300px)}
/* «Мои работы» stand in the same reading column as the bank, the builder and a result
   (it had been 760 px, 30 px wider on each side — owner). */
.ege-layout-single{grid-template-columns:minmax(0,var(--ege-reading));justify-content:center}
.ege-center{min-width:0}
.ege-rail{max-height:calc(100dvh - var(--ege-content-top) - var(--ege-gap-top) - 16px);overflow-y:auto;overscroll-behavior:contain;padding:4px;position:sticky;scrollbar-width:none;top:calc(var(--ege-content-top) + var(--ege-gap-top) - 4px)}
.ege-rail::-webkit-scrollbar{display:none}
/* Where the rail has more above or below, that edge fades (see ege.js). */
@media (min-width:1024px){
  .ege-rail{--ege-fade-top:0px;--ege-fade-bottom:0px;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--ege-fade-top),#000 calc(100% - var(--ege-fade-bottom)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--ege-fade-top),#000 calc(100% - var(--ege-fade-bottom)),transparent 100%)}
  .ege-rail[data-fade-top]{--ege-fade-top:28px}
  .ege-rail[data-fade-bottom]{--ege-fade-bottom:40px}
}
.ege-page-head{margin:0 0 20px;padding:0 4px}
.ege-page-head h1,.ege-feed-head h1{font-family:var(--ege-reader);font-size:26px;font-weight:var(--ege-w-medium);letter-spacing:-.005em;line-height:1.2;margin:0}
.ege-section{margin:0 0 32px}
.ege-section-title,.ege-filter-title h3,.ege-part-title{color:var(--ege-muted);font-size:11.5px;font-weight:var(--ege-w-strong);letter-spacing:.07em;line-height:1.3;margin:0;text-transform:uppercase}
.ege-section>.ege-section-title{margin:0 0 10px;padding:0 4px}
.ege-section-head{align-items:center;display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;margin:0 0 12px;padding:0 4px}
.ege-drawer-head{display:none}
.ege-scrim{background:var(--folio-semantic-color-background-overlay);inset:0;position:fixed;z-index:45}
/* The live region sat past the page's end with a paragraph's margins and uncovered 15 px
   of the dark page background under every page. */
.ege-shell>.folio-sr-only[data-live]{margin:0;top:0}
.ege-toast{background:var(--ege-dark);border-radius:var(--ege-radius);bottom:24px;box-shadow:var(--ege-shadow-float);color:var(--ege-on-dark);font-size:14px;left:50%;margin:0;max-width:calc(100% - 32px);padding:10px 16px;position:fixed;transform:translateX(-50%);z-index:60}

/* ── Task rows: the taskbook's own, as before ─────────────────────────────────
   A row keeps the taskbook's four columns even without its status or actions, so
   every statement starts exactly where it starts in the taskbook. */
/* The sheet's corners are round, so the last task keeps no rule of its own under it: a
   square rule there ran out past the curve. */
.ege-shell .folio-task-feed>.folio-task-row:last-of-type{border-bottom:0}
@container task-list (min-width: 549px){
  .ege-task>.folio-task-status{grid-column:1;grid-row:1}
  .ege-task>.folio-task-number{grid-column:2;grid-row:1}
  .ege-task>.folio-task-body{grid-column:3;grid-row:1}
  .ege-task>.folio-task-sections{grid-column:3}
  .ege-task>.ege-score{grid-column:4;grid-row:1}
  .ege-task:has(>.ege-score){grid-template-columns:var(--folio-component-taskRow-statusColumn) var(--folio-component-taskRow-numberColumn) minmax(0,1fr) 48px}
  .ege-task>.ege-score{justify-self:end;text-align:end;white-space:normal}
}
@container task-list (max-width: 548px){
  .ege-task>.ege-score{grid-column:3/5;grid-row:1;justify-self:end}
  .ege-task:not(:has(>.folio-task-status))>.folio-task-number{grid-column:1/3;justify-self:start}
}
.ege-score{align-self:start;color:var(--ege-muted);font-family:var(--ege-ui);font-size:12.5px;line-height:var(--folio-semantic-typography-readerLineHeight);white-space:nowrap}
.ege-task{--folio-component-taskRow-paddingBottom:var(--folio-primitive-space-18);scroll-margin-top:calc(var(--ege-content-top) + 16px)}
.ege-shell .folio-task-feed .folio-chevron{color:var(--ege-muted)}
.ege-shell .folio-task-feed :is(a,button,summary):hover .folio-chevron{color:var(--ege-ink)}
.ege-shell .folio-disclosure-toggle{font-weight:var(--ege-w-medium)}
.ege-shell .folio-disclosure-toggle:hover{color:var(--ege-ink)}
.ege-grading-guide{overflow-wrap:anywhere;font-size:var(--folio-component-disclosure-contentSize);line-height:var(--folio-semantic-typography-readerLineHeight)}
.ege-grading-section+.ege-grading-section{margin-block-start:var(--folio-primitive-space-24)}
.ege-grading-guide :is(.ege-grading-title,.ege-flow-title){font-family:var(--ege-ui);font-size:var(--folio-component-disclosure-labelSize);font-weight:var(--ege-w-medium);margin:0 0 var(--folio-primitive-space-16)}
.ege-grading-bands{margin:0}
.ege-grading-band{display:grid;grid-template-columns:var(--folio-primitive-space-68) minmax(0,1fr);align-items:baseline;gap:var(--folio-primitive-space-24);padding-block:var(--folio-primitive-space-16);border-bottom:var(--folio-primitive-border-thin) solid var(--ege-line)}
.ege-grading-band:first-child{padding-block-start:0}
.ege-grading-band dt{font-family:var(--ege-ui);font-size:var(--folio-component-disclosure-labelSize);font-weight:var(--ege-w-medium);white-space:nowrap}
.ege-grading-band dd{margin:0}
.ege-grading-guide .ege-grading-band :is(p,ul){margin:0}
.ege-grading-guide .ege-grading-band dd>*+*{margin-block-start:var(--folio-primitive-space-12)}
.ege-grading-band ul{padding-inline-start:0}
.ege-grading-band li+li{margin-block-start:var(--folio-primitive-space-8)}
.ege-grading-notes{margin-block-start:var(--folio-primitive-space-24)}
.ege-grading-guide .ege-grading-notes p{margin:0}
.ege-grading-guide .ege-grading-notes p+p{margin-block-start:var(--folio-primitive-space-16)}
/* Match the existing disclosure typography. Shared columns align criterion prose
   and branch outcomes; weight and scale do not compete with the disclosure title. */
.ege-grading-flow+.ege-grading-flow{margin-block-start:var(--folio-primitive-space-24)}
.ege-grading-guide .ege-flow-question{font:inherit;margin:0;padding:var(--folio-primitive-space-8) var(--folio-primitive-space-12);border:var(--folio-primitive-border-thin) solid var(--ege-line);background:var(--ege-paper)}
.ege-grading-guide .ege-flow-branches{list-style:none;margin:0 0 0 var(--folio-primitive-space-12);padding:0}
.ege-grading-guide .ege-flow-branch{position:relative;border-inline-start:var(--folio-primitive-border-thin) solid var(--ege-line);padding:var(--folio-primitive-space-12) 0 0 var(--folio-primitive-space-16);margin:0}
.ege-flow-branch::before{content:"";position:absolute;inset-inline-start:0;top:var(--folio-primitive-space-20);width:var(--folio-primitive-space-12);border-top:var(--folio-primitive-border-thin) solid var(--ege-line)}
.ege-flow-label{display:block;font-family:var(--ege-ui);font-size:var(--folio-component-disclosure-labelSize);font-weight:var(--ege-w-regular);color:var(--ege-ink);margin-block-end:var(--folio-primitive-space-8)}
.ege-grading-guide .ege-flow-score{justify-self:start;font-family:var(--ege-ui);font-size:var(--folio-component-disclosure-labelSize);font-weight:var(--ege-w-medium);margin:0;padding:0 0 var(--folio-primitive-space-2);border-bottom:var(--folio-primitive-border-thin) solid var(--ege-ink);white-space:nowrap}
.ege-grading-guide .ege-flow-branch--result{display:grid;grid-template-columns:var(--folio-primitive-space-32) minmax(0,1fr);align-items:baseline;gap:var(--folio-primitive-space-12)}
.ege-flow-branch--result>.ege-flow-label{margin:0}
.ege-grading-guide .ege-flow-total{font-family:var(--ege-ui);font-size:var(--folio-component-disclosure-labelSize);font-weight:var(--ege-w-medium);border-block:var(--folio-primitive-border-thin) solid var(--ege-line);margin-block:var(--folio-primitive-space-24);padding-block:var(--folio-primitive-space-12)}
@media(max-width:560px){
  .ege-grading-band{grid-template-columns:minmax(0,1fr);gap:var(--folio-primitive-space-8)}
  .ege-grading-band dd{padding-inline-start:var(--folio-primitive-space-16)}
  .ege-grading-guide .ege-flow-branches{margin-inline-start:var(--folio-primitive-space-4)}
  .ege-grading-guide .ege-flow-branch{padding-inline-start:var(--folio-primitive-space-12)}
  .ege-grading-guide .ege-flow-question{padding-inline:var(--folio-primitive-space-12)}
  .ege-flow-branch::before{width:var(--folio-primitive-space-8)}
}
.ege-shell :is(.ege-bar,.ege-main,.ege-reference,.ege-dialog) :is(strong,b):not(.folio-task-feed .folio-task-body *){font-weight:var(--ege-w-strong)}
.ege-check{cursor:pointer}
.ege-task>.folio-task-status{top:var(--folio-primitive-space-2)}
.ege-check:disabled{cursor:default}
.ege-catalogue [data-status-age]>.folio-task-status-marker{opacity:var(--ege-status-opacity-fresh)}
.ege-catalogue [data-status-age="week"]>.folio-task-status-marker{opacity:var(--ege-status-opacity-week)}
.ege-catalogue [data-status-age="old"]>.folio-task-status-marker{opacity:var(--ege-status-opacity-old)}
.ege-check:not(:disabled)[data-status="none"]{color:var(--ege-muted)}
.ege-check:not(:disabled)[data-status="none"]:hover{color:var(--ege-ink)}
.ege-shell .folio-choice-list[data-figure-only="true"] .folio-task-asset{margin:0}
.ege-shell .workspace-empty{color:var(--ege-muted);display:block;font-family:var(--ege-ui);margin:0;min-height:0;padding:28px 24px;text-align:center}

/* The answer as FIPI prints it under the task: «Ответ: ______ м/с.» */
.folio-task-body>.ege-answer,.folio-task-sections>.ege-answer{align-items:baseline;clear:both;column-gap:.4em;display:flex;flex-wrap:wrap;margin:var(--folio-primitive-space-16) 0 0;row-gap:8px}
.ege-answer-value{white-space:nowrap}
.ege-blank{appearance:none;background:transparent;border:0;border-bottom:var(--folio-primitive-border-thin) solid var(--folio-semantic-color-border-strong);border-radius:0;color:inherit;display:inline-block;font:inherit;height:1.45em;line-height:inherit;margin:0;min-width:0;padding:0 .2em;text-align:center;transition:background .15s;vertical-align:baseline;width:10em}
.ege-answer-value:has(>.ege-blank~.ege-blank)>.ege-blank{width:5em}
span.ege-blank{font-variant-numeric:tabular-nums}
.ege-mark .ege-blank{width:2em}
/* The field being typed in is found at a glance: a faint wash under its line. */
.ege-blank:focus,.ege-cell:focus{background:var(--ege-hover);box-shadow:none;outline:none}
/* №20: two boxes; tables: the printed empty cells are the fields themselves. */
.ege-task .folio-matching-answer{align-items:center;display:flex;gap:var(--folio-primitive-space-16)}
.ege-task .folio-matching-answer:has(>.ege-discuss-button),.ege-task .folio-answer-actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--folio-primitive-space-12)}
.ege-task .folio-answer-actions>.folio-content-table-scroll{max-width:100%;min-width:0}
.ege-task :is(.folio-answer-actions,.folio-matching-answer,.ege-photos)>.ege-discuss-button{margin-left:0}
.ege-boxes{display:inline-flex;font-size:var(--folio-component-disclosure-labelSize);vertical-align:middle}
.ege-box{align-items:center;border:var(--folio-primitive-border-thin) solid var(--folio-semantic-color-border-subtle);display:inline-flex;height:var(--folio-primitive-space-32);justify-content:center;width:var(--folio-primitive-space-32)}
.ege-box+.ege-box{border-left:0}
.folio-matching-answer-table td:has(>.ege-cell),.folio-content-table td:has(>.ege-cell),.ege-box:has(>.ege-cell){padding:0}
.ege-cell{appearance:none;background:transparent;border:0;border-radius:0;color:inherit;display:block;font:inherit;font-variant-numeric:tabular-nums;height:var(--folio-primitive-space-32);margin:0;min-width:var(--folio-primitive-space-32);padding:0 var(--folio-primitive-space-4);text-align:center;width:100%}
.folio-matching-answer-table .ege-cell,.ege-box .ege-cell{width:var(--folio-primitive-space-32)}
@media (pointer:coarse){.ege-cell{font-size:16px}}

/* In the bank, «Проверить ↵» follows an answer once something is typed. */
.ege-check-button{align-items:center;align-self:center;background:var(--ege-dark);border-radius:6px;color:var(--ege-on-dark);display:inline-flex;font-family:var(--ege-ui);font-size:13px;font-weight:var(--ege-w-strong);gap:6px;height:28px;margin-left:10px;padding:0 10px;transition:background .15s}
.ege-check-button:hover{background:var(--ege-dark-2)}
.ege-check-button kbd{font:inherit;font-weight:var(--ege-w-regular);opacity:.6}
.ege-verdict-line{align-items:center;display:flex;flex-wrap:wrap;gap:var(--folio-primitive-space-12);margin-bottom:var(--folio-primitive-space-12)}
.ege-verdict-line>.ege-verdict{margin:0}
.ege-verdict-line>.ege-check-button{margin-left:0}
.ege-discuss-button{background:var(--ege-paper);border:1px solid var(--ege-line);color:var(--ege-ink);transition:background .15s,border-color .15s,color .15s}
.ege-discuss-button:hover{background:var(--ege-paper);border-color:var(--ege-ink)}
.ege-discuss-button[aria-pressed=true]{background:var(--ege-dark);border-color:var(--ege-dark);color:var(--ege-on-dark)}
.ege-discuss-button[aria-pressed=true]:hover{background:var(--ege-dark-2);border-color:var(--ege-dark-2)}
.ege-discuss-button svg{display:none;fill:none;height:14px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6;width:14px}
.ege-discuss-button[aria-pressed=true] svg{display:block}
.ege-discuss-button:disabled{cursor:wait;opacity:.6}
.ege-discussion-entry:last-of-type>.folio-task-row{border-bottom:0}
.ege-discussion-tools{align-items:center;display:flex;justify-content:flex-end;gap:var(--folio-primitive-space-12);padding-top:var(--folio-primitive-space-12)}
.ege-discussion-tools form{margin:0}
.ege-answer-table{margin-top:12px}
.ege-answer-table>.ege-check-button{margin-left:0}
/* A checked answer says so under itself: the result in words and points, on a rule in
   the marker's colour. */
.ege-verdict{border-left:3px solid;font-family:var(--ege-ui);margin:0 0 var(--folio-primitive-space-12);padding:4px 0 4px 12px}
.ege-verdict[data-status=green]{border-color:var(--ege-green)}
.ege-verdict[data-status=yellow]{border-color:var(--ege-yellow)}
.ege-verdict[data-status=red]{border-color:var(--ege-red)}
.ege-verdict strong{font-weight:var(--ege-w-strong)}

/* Photos of a written solution: a drop zone (the file field itself, stretched over it,
   takes a click and a dropped file alike), then the pictures. */
.ege-photos{align-items:stretch;display:flex;flex-wrap:wrap;gap:10px}
.ege-drop{align-items:center;border:1.5px dashed var(--ege-faint);border-radius:var(--ege-radius-lg);color:var(--ege-muted);display:flex;flex-basis:100%;font-family:var(--ege-ui);gap:14px;padding:14px 16px;position:relative;transition:border-color .15s,background .15s,color .15s}
.ege-drop:hover,.ege-drop.is-over{background:var(--ege-hover);border-color:var(--ege-ink);color:var(--ege-ink)}
.ege-drop .ege-icon{height:26px;width:26px}
.ege-drop-text{font-size:13.5px;line-height:1.35}
.ege-drop-text strong{color:var(--ege-ink);font-weight:var(--ege-w-strong)}
.ege-drop-rule{display:block;font-size:12px;margin-top:2px}
.ege-drop input{cursor:pointer;height:100%;inset:0;opacity:0;position:absolute;width:100%}
.ege-drop.is-busy{cursor:progress;opacity:.6}
/* A bank row's photos, state and solution stand above its drop zone. */
.ege-practice-state:empty{display:none}
.ege-practice-state{display:grid;gap:var(--folio-component-disclosure-sectionGap)}
.ege-practice-state>.ege-verdict{margin:0}
.ege-verdict[data-status=none]{border-color:var(--ege-faint)}
@media (pointer:coarse){.ege-drop-or{display:none}}
.ege-photo{background:var(--ege-paper);border:1px solid var(--ege-line);border-radius:8px;display:block;height:112px;margin:0;overflow:hidden;padding:0;position:relative}
button.ege-photo{cursor:zoom-in}
.ege-photo img{display:block;height:100%;max-width:200px;object-fit:contain;width:auto}
.ege-photo-remove{align-items:center;background:rgb(29 32 30 / 72%);border-radius:50%;color:var(--ege-on-dark);display:flex;height:26px;justify-content:center;position:absolute;right:5px;top:5px;width:26px}
.ege-photo-remove:hover{background:var(--ege-dark)}
.ege-photo-remove .ege-icon{height:14px;width:14px}

/* In a result a task with all its points starts folded, as a reviewed homework task. */
.ege-fold{align-self:start;background:transparent;border:0;border-radius:6px;color:inherit;display:grid;height:var(--folio-component-taskStatus-targetSize);padding:0;place-items:center;width:var(--folio-component-taskStatus-targetSize)}
.ege-fold:hover{background:var(--ege-hover)}
.ege-fold[aria-expanded=true]>.folio-chevron{transform:rotate(180deg)}
.ege-task>.ege-fold{grid-column:4;grid-row:1;justify-self:end}
.ege-task:has(>.ege-fold)>.ege-score{display:none}
.ege-task[data-folded=true]>.folio-task-body{cursor:pointer}
.ege-task[data-folded=true]>.folio-task-body>p:first-of-type{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ege-task[data-folded=true]>.folio-task-body>:is(p:not(:first-of-type),.folio-choice-list,.folio-matching-columns,.folio-matching-answer,.folio-change-options,.folio-figure-panel,.folio-content-table-scroll,.folio-display-math,.ege-answer,ol,ul),
.ege-task[data-folded=true]>.folio-task-sections{display:none}
.ege-task[data-folded=true] .folio-task-asset{align-items:start;max-height:var(--folio-component-disclosure-collapsedAssetHeight);overflow:hidden;position:relative}
.ege-task[data-folded=true] .folio-task-asset img{height:var(--folio-task-asset-render-block-size, var(--folio-task-asset-max-block-size))}
.ege-task[data-folded=true] .folio-task-asset::after,.ege-work-row[data-work-preview]::after{background:linear-gradient(to bottom,transparent,var(--ege-paper));bottom:0;content:"";height:var(--folio-component-disclosure-fadeHeight);inset-inline:0;pointer-events:none;position:absolute}

/* ── Bank: filters and the feed's head ───────────────────────────────────────── */
.ege-feed-head{align-items:baseline;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px;padding:0 4px}
.ege-feed-count{color:var(--ege-muted);font-size:14px;font-variant-numeric:tabular-nums}
.ege-filters-open{display:none}
.ege-filter-form{display:grid;gap:26px}
.ege-filter-title{align-items:center;display:flex;gap:8px;justify-content:space-between;margin:0 0 10px;min-height:18px}
/* One line height for everything in a heading line, so what appears in it moves nothing. */
.ege-filter-title>*{line-height:18px}
.ege-link-button[data-idle]{visibility:hidden}
.ege-filter-summary{color:var(--ege-muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ege-filter-block:has(>.ege-number-grid),.ege-toc{container-type:inline-size}
.ege-number-grid,.ege-toc-grid{display:grid;gap:4px;grid-template-columns:repeat(10,minmax(0,1fr))}
@container (max-width:275.98px){.ege-number-grid,.ege-toc-grid{grid-template-columns:repeat(7,minmax(24px,28px))}}
.ege-number:nth-child(21){grid-column-start:1}
.ege-number{display:block;position:relative}
.ege-number:nth-child(n+21){margin-top:6px}
.ege-number input{appearance:none;cursor:pointer;inset:0;margin:0;opacity:0;position:absolute}
.ege-number span{align-items:center;aspect-ratio:1;background:var(--ege-paper);border:1px solid var(--ege-line);border-radius:5px;color:var(--ege-ink);display:flex;font-size:12.5px;font-variant-numeric:tabular-nums;justify-content:center;transition:background .12s,border-color .12s,color .12s}
.ege-number:hover span{border-color:var(--ege-ink)}
.ege-number input:checked+span{background:var(--ege-dark);border-color:var(--ege-dark);color:var(--ege-on-dark)}
.ege-number input:focus-visible+span{outline:2px solid var(--ege-ink);outline-offset:2px}
.ege-shell .ege-tree{font-size:13.5px;margin-top:10px;max-height:none;overflow:visible}
.ege-tree-all{margin-bottom:2px}
.ege-shell .ege-filter-options{margin-top:0}
/* Unavailable options keep their geometry and order; selected options stay operable. */
.ege-number input:disabled{cursor:default}
.ege-number input:disabled+span{border-color:var(--ege-line);color:var(--ege-muted);opacity:.5}
.ege-tree .folio-skill-group-head:has(input:disabled)>.folio-skill-disclosure{color:var(--ege-muted)}
.ege-tree-empty{color:var(--ege-muted);font-size:13px;margin:6px 0 0}
/* Marks: a square — not chosen; filled with a tick — chosen; a cross — excluded (its
   name struck out); a dash — a group chosen in part. */
.ege-filter-foot{align-items:center;display:flex;gap:12px;justify-content:space-between}
.ege-filters-done{display:none}

/* ── Reference data: a panel at the right edge ─────────────────────────────────── */
.ege-reference{background:var(--ege-paper);border-left:1px solid var(--ege-line);bottom:0;box-shadow:var(--ege-shadow-float);display:flex;flex-direction:column;padding-right:var(--folio-primitive-space-12);position:fixed;right:0;top:var(--ege-header-h);width:var(--ege-ref-w);z-index:48}
.ege-reference-head{align-items:center;border-bottom:1px solid var(--ege-line);display:grid;gap:10px 8px;grid-template-columns:minmax(0,1fr) auto;padding:14px 16px 12px 20px}
.ege-reference-head h2{font-family:var(--ege-reader);font-size:19px;font-weight:var(--ege-w-medium);margin:0}
.ege-reference-search,.ege-reference-index{grid-column:1/-1}
.ege-reference-index,.ege-unanswered-list{display:flex;flex-wrap:wrap;gap:4px}
.ege-reference-index a{border:1px solid var(--ege-line);border-radius:5px;color:var(--ege-muted);font-size:12px;line-height:1.3;padding:3px 7px;text-decoration:none;transition:border-color .15s,color .15s}
.ege-reference-index a:hover{border-color:var(--ege-ink);color:var(--ege-ink)}
.ege-reference[data-searching] .ege-reference-index{display:none}
/* Part of the existing right inset now belongs to the panel, outside this scroller. */
.ege-reference-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 var(--folio-primitive-space-8) 28px 20px}
.ege-reference-section{scroll-margin-top:0}
.ege-reference-section h3{background:var(--ege-paper);color:var(--ege-muted);font-size:11.5px;font-weight:var(--ege-w-strong);letter-spacing:.07em;margin:0;padding:16px 0 7px;position:sticky;text-transform:uppercase;top:0;z-index:1}
.ege-reference-table{border-collapse:collapse;font-family:var(--ege-reader);font-size:13.5px;line-height:1.3;width:100%}
.ege-reference-table td{border:1px solid var(--ege-line);padding:4px 7px;text-align:start;vertical-align:top}
.ege-reference-table :is(sup,sub){font-size:.72em;line-height:0}
.ege-reference-empty{color:var(--ege-muted);margin:20px 0 0}
/* On a wide screen the panel stands beside the page instead of over it. */
@media (min-width:1180px){
  :is(:where(.ege-root[data-ege-reference-open]) .ege-shell,.ege-shell[data-ref-open]) .ege-main{margin-right:var(--ege-ref-w)}
  :is(:where(.ege-root[data-ege-reference-open]) .ege-shell,.ege-shell[data-ref-open]) .ege-reference{box-shadow:none}
  /* The remembered panel is already visible while the deferred controls load. */
  .ege-root[data-ege-reference-open] .ege-reference[hidden]{display:flex!important}
}

/* ── Variants: ready ones, the builder and its card ────────────────────────────── */
/* Shared panel surface; each component below owns its layout and spacing. */
:where(.ege-positions,.ege-cart-card,.ege-list,.ege-empty,.ege-home-sheet,.ege-sign-in-card){background:var(--ege-paper);border-radius:var(--ege-radius-lg);box-shadow:var(--ege-shadow)}
.ege-ready-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.ege-ready{align-items:end;background:var(--ege-dark);border-radius:var(--ege-radius-lg);box-shadow:var(--ege-shadow);color:var(--ege-on-dark);column-gap:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;padding:18px 20px;text-decoration:none;transition:background .15s}
.ege-ready:hover{background:var(--ege-dark-2)}
/* The name takes the card's whole width; what it holds and the arrow share the line under it. */
.ege-ready-title{font-family:var(--ege-reader);font-size:21px;grid-column:1/-1;line-height:1.2}
.ege-ready-meta{color:var(--ege-on-dark-muted);font-size:13px;grid-column:1;grid-row:2;margin-top:4px}
.ege-ready-go{align-items:center;display:inline-flex;font-size:13.5px;font-weight:var(--ege-w-strong);gap:6px;grid-column:2;grid-row:2}
.ege-presets{display:flex;flex-wrap:wrap;gap:6px}
.ege-preset-parts{display:flex;gap:6px}
.ege-positions{padding:4px 0 8px}
.ege-part-title{padding:16px 20px 6px}
.ege-type{border-top:1px solid var(--ege-line);padding:0 16px 0 20px;transition:background .15s}
.ege-position-list>.ege-type:first-child{border-top:0}
.ege-type-header,.ege-subtype{align-items:center;column-gap:16px;display:grid;grid-template-columns:auto minmax(0,1fr)}
.ege-expand,.ege-type-title{align-items:center;border-radius:6px;display:grid;gap:12px;grid-template-columns:22px minmax(0,1fr) 16px;min-height:48px;text-align:start;width:100%}
.ege-type-number,.ege-home-n{color:var(--ege-muted);font-variant-numeric:tabular-nums;font-weight:var(--ege-w-strong);text-align:end}
.ege-type.is-selected .ege-type-number{color:var(--ege-ink)}
.ege-type-name,.ege-home-name{font-size:14.5px;line-height:1.35;min-width:0}
.ege-type-points{color:var(--ege-muted);font-size:12.5px;white-space:nowrap}
.ege-expand:hover .ege-type-name{text-decoration:underline;text-decoration-color:var(--ege-line);text-underline-offset:3px}
.ege-expand[aria-expanded=true]>.folio-chevron{transform:rotate(180deg)}
.ege-subtypes{display:grid;gap:2px;padding:0 0 12px}
.ege-subtype{min-height:34px}
.ege-topic-label{font-size:13.5px;line-height:1.3;min-width:0;padding-block:4px}
.ege-limit{color:var(--folio-semantic-color-statusBorder-red);font-size:12.5px;font-weight:var(--ege-w-regular);margin-left:8px;white-space:nowrap}
/* A counter: minus, the count, plus. A chosen position's counter turns dark, so the
   column reads as the variant being built. */
.ege-counter{align-items:center;background:var(--ege-canvas);border-radius:var(--ege-radius);display:inline-grid;font-variant-numeric:tabular-nums;grid-template-columns:28px 30px 28px;height:30px}
/* The counter owns the fill fade; avoid a second background tween on hover/zero changes. */
.ege-counter button{align-items:center;border-radius:6px;color:var(--ege-muted);display:flex;height:30px;justify-content:center;position:relative;transition:color var(--folio-semantic-motion-duration) var(--folio-semantic-motion-easing)}
.ege-counter button:hover:not(:disabled){background:var(--ege-hover);color:var(--ege-ink)}
.ege-counter button:disabled,.ege-counter button[aria-disabled=true]{cursor:default;opacity:.35}
.ege-counter svg{fill:none;height:12px;stroke:currentColor;stroke-linecap:round;stroke-width:1.6;width:12px}
.ege-counter input{-moz-appearance:textfield;appearance:textfield;background:transparent;border:0;color:var(--ege-ink);font:inherit;font-size:14px;font-weight:var(--ege-w-strong);height:30px;min-width:0;outline:none;padding:0;text-align:center;width:100%}
.ege-counter input::-webkit-inner-spin-button,.ege-counter input::-webkit-outer-spin-button{appearance:none;margin:0}
.ege-counter.is-zero input{color:var(--ege-muted);font-weight:var(--ege-w-regular)}
.ege-counter:focus-within{box-shadow:0 0 0 1px var(--ege-ink)}
.ege-counter input:focus-visible{outline:none}
.ege-counter input::selection{background:var(--ege-line);color:var(--ege-ink)}
.ege-type-header>.ege-counter:not(.is-zero) input::selection{background:var(--ege-on-dark-line);color:var(--ege-on-dark)}
/* Fade one fill layer without repainting the counter's controls throughout the transition. */
.ege-type-header>.ege-counter{isolation:isolate;position:relative}
.ege-type-header>.ege-counter::before{background:var(--ege-dark);border-radius:inherit;content:"";inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:-1}
.ege-type-header>.ege-counter:not(.is-zero)::before{opacity:1}
.ege-type-header>.ege-counter:not(.is-zero) input{color:var(--ege-on-dark)}
.ege-type-header>.ege-counter:not(.is-zero) button{color:var(--ege-on-dark-muted)}
.ege-type-header>.ege-counter:not(.is-zero) button:hover:not(:disabled){background:var(--ege-on-dark-line);color:var(--ege-on-dark)}
.ege-subtype>.ege-counter{background:transparent;box-shadow:inset 0 0 0 1px var(--ege-line)}
@media (pointer:coarse){.ege-counter{grid-template-columns:36px 30px 36px;height:36px}.ege-counter button,.ege-counter input{height:36px}}
.ege-cart{position:sticky;top:calc(var(--ege-content-top) + var(--ege-gap-top))}
.ege-cart-card{display:grid;gap:14px;padding:20px}
.ege-cart-total{align-items:baseline;display:flex;flex-wrap:wrap;gap:0 8px;margin:0}
.ege-cart-number{font-family:var(--ege-reader);font-size:46px;font-variant-numeric:tabular-nums;line-height:1}
.ege-cart-total>[data-selected-word]{font-size:15px}
:is(.ege-cart-map,.ege-toc-grid,.ege-navigator) a{align-items:center;aspect-ratio:1;border:1px solid var(--ege-line);color:var(--ege-muted);display:flex;font-variant-numeric:tabular-nums;justify-content:center;text-decoration:none}
.ege-cart-map,.ege-navigator{display:grid;gap:3px;grid-template-columns:repeat(10,minmax(0,1fr))}
.ege-cart-map a{border-radius:4px;font-size:11px;transition:background .15s,color .15s}
.ege-cart-map a:nth-child(n+21){margin-top:4px}
.ege-cart-map a.is-on{background:var(--ege-dark);border-color:var(--ege-dark);color:var(--ege-on-dark)}
.ege-cart-parts{display:grid;font-size:13.5px;gap:4px;margin:0}
.ege-cart-parts>div{display:flex;justify-content:space-between}
.ege-cart-parts dd{font-variant-numeric:tabular-nums;margin:0}
.ege-cart-empty,.ege-summary-kicker,.ege-sign-in-hint{color:var(--ege-muted);font-size:13px;margin:0}
.ege-cart-actions{display:flex;flex-direction:column-reverse;gap:10px}
.ege-cart-actions .ege-button{width:100%}
.ege-cart-error,.ege-dialog .folio-refusal,.ege-sign-in-problem{margin:0;text-align:start}

/* ── Solving: bank-style title/date, header controls, map and feed ──────────── */
.ege-work-heading{grid-column:2;grid-row:1}
.ege-work-details{align-items:center;display:flex;flex-wrap:wrap;gap:inherit}
.ege-work-details .ege-exam-time{font-size:inherit}
.ege-solve>.ege-center,.ege-result>.ege-center{grid-row:2}
@media (min-width:1024px){
  .ege-solve>.ege-rail,.ege-result>.ege-summary{grid-row:1/3}
  .ege-solve>.ege-rail,.ege-result>.ege-summary{padding-top:var(--folio-primitive-space-40);top:calc(var(--ege-header-h) + var(--ege-gap-top))}
}
.ege-work-title{min-width:0;overflow-wrap:anywhere}
.ege-exam{align-items:center;display:flex;gap:var(--folio-primitive-space-18);margin-left:auto;min-width:0}
.ege-bar .ege-exam-count{color:var(--ege-on-dark)}
.ege-bar .ege-exam-time{color:var(--ege-on-dark-muted)}
.ege-bar .ege-exam .ege-meter{background:var(--ege-on-dark-line)}
.ege-bar .ege-exam .ege-meter>span{background:var(--ege-on-dark)}
.ege-exam-progress{align-items:center;display:flex;gap:10px;margin-left:auto}
.ege-exam-count{color:var(--ege-ink);font-size:13px;font-variant-numeric:tabular-nums}
.ege-exam-time{align-items:center;color:var(--ege-muted);display:inline-flex;font-size:13px;font-variant-numeric:tabular-nums;gap:6px}
.ege-exam .ege-button{height:var(--folio-primitive-space-36);min-height:0}
.ege-toc{align-content:start;display:grid;gap:10px}
.ege-toc-back{align-items:center;color:var(--ege-muted);display:inline-flex;font-size:13px;gap:6px;justify-self:start;min-height:var(--folio-primitive-size-control-touch);text-decoration:none}
.ege-toc-back:hover{color:var(--ege-ink)}
.ege-toc-back .ege-icon{height:16px;width:16px}
/* The same cells as the bank's number grid: outlined — no answer, dark — answered,
   ringed — the task being read. */
.ege-toc-grid:empty{display:none}
.ege-toc-grid a{background:var(--ege-paper);border-radius:5px;font-size:12.5px;transition:background .12s,border-color .12s,color .12s}
.ege-toc-grid a:hover{border-color:var(--ege-ink);color:var(--ege-ink)}
.ege-toc-grid a[data-answered=true]{background:var(--ege-dark);border-color:var(--ege-dark);color:var(--ege-on-dark)}
.ege-toc-grid a[aria-current]{box-shadow:0 0 0 1.5px var(--ege-canvas),0 0 0 3px var(--ege-ink);color:var(--ege-ink)}
.ege-toc-grid a[data-answered=true][aria-current]{color:var(--ege-on-dark)}
.ege-reading-progress{display:none}
.ege-feed-end{display:flex;justify-content:center;padding:28px 0 0}
.ege-dialog.folio-dialog{border:0;border-radius:var(--ege-radius-lg);box-shadow:var(--ege-shadow-float);font-family:var(--ege-ui);height:fit-content;inset:0;margin:auto;max-height:calc(100dvh - 32px);max-width:min(460px,calc(100% - 32px));position:fixed}
.ege-dialog::backdrop{background:var(--folio-semantic-color-background-overlay)}
.ege-dialog-head{align-items:center;display:flex;gap:12px;justify-content:space-between;padding:18px 16px 4px 22px}
.ege-dialog-head h2{font-family:var(--ege-reader);font-size:22px;font-weight:var(--ege-w-medium);margin:0}
.ege-dialog-body{display:grid;gap:14px;padding:6px 22px 22px}
.ege-unanswered>p{color:var(--ege-muted);font-size:13px;margin:0 0 8px}
.ege-unanswered-list a{align-items:center;border:1px solid var(--ege-line);border-radius:5px;color:var(--ege-ink);display:flex;font-size:13px;font-variant-numeric:tabular-nums;height:30px;justify-content:center;min-width:30px;padding:0 6px;text-decoration:none}
.ege-unanswered-list a:hover{border-color:var(--ege-ink)}
.ege-dialog-hint,.ege-sign-in-text{color:var(--ege-muted);line-height:1.45;margin:0}
.ege-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:4px}

/* ── Result ───────────────────────────────────────────────────────────────────── */
.ege-summary{align-content:start;display:grid;gap:14px}
.ege-score-line{align-items:baseline;display:flex;font-family:var(--ege-reader);font-weight:var(--ege-w-medium);gap:10px;margin:0}
.ege-score-value{font-size:64px;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:.95}
.ege-score-max{color:var(--ege-muted);font-size:21px}
.ege-score-caption{color:var(--ege-muted);font-size:13px;margin:-8px 0 2px}
.ege-score-primary{font-size:13.5px;margin:-6px 0 0}
.ege-score-primary b,.ege-tally b{font-variant-numeric:tabular-nums;font-weight:var(--ege-w-strong)}
.ege-parts-score{display:grid;gap:10px;margin:0}
.ege-parts-score>div{display:grid;gap:5px}
.ege-parts-score dt{font-size:13px}
.ege-parts-score dd{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;margin:0}
.ege-parts-score .ege-meter{width:auto}
.ege-parts-number{color:var(--ege-muted);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ege-tally{display:flex;flex-wrap:wrap;font-size:13px;gap:6px 14px;list-style:none;margin:0;padding:0}
.ege-tally li{align-items:center;display:inline-flex;gap:6px}
.ege-tally-dot{background:var(--ege-line);border-radius:50%;height:10px;width:10px}
[data-status=green]>.ege-tally-dot{background:var(--ege-green)}
[data-status=yellow]>.ege-tally-dot{background:var(--ege-yellow)}
[data-status=red]>.ege-tally-dot{background:var(--ege-red)}
.ege-tally [data-status=none]>.ege-tally-dot{background:transparent;border:1.5px solid var(--folio-primitive-color-graphite-400)}
.ege-navigator a{border-radius:4px;font-size:11.5px;transition:transform .12s}
.ege-navigator a:hover{border-color:var(--ege-ink);color:var(--ege-ink)}
.ege-navigator a[data-status=green]{background:var(--ege-green);border-color:var(--ege-green);color:var(--ege-ink)}
.ege-navigator a[data-status=yellow]{background:var(--ege-yellow);border-color:var(--ege-yellow);color:var(--ege-ink)}
.ege-navigator a[data-status=red]{background:var(--ege-red);border-color:var(--ege-red);color:var(--ege-ink)}
.ege-navigator a[data-status]:not([data-status=none]):hover{border-color:var(--ege-ink)}
.ege-summary-actions{display:grid;gap:8px;margin-top:4px}
.ege-summary-actions form{margin:0}
.ege-summary-actions .ege-button{width:100%}
.ege-mark{margin-top:4px}

/* ── My work ──────────────────────────────────────────────────────────────────── */
.ege-list{overflow:hidden}
.ege-list[data-work-list]{position:relative}
.ege-work-row[data-work-preview]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content;max-height:var(--folio-component-disclosure-fadeHeight);pointer-events:none;user-select:none}
.ege-work-row[data-work-preview]>.ege-list-row{grid-area:1/1}
.ege-work-row[data-work-preview]>.ege-work-actions{align-self:stretch;grid-area:1/1;justify-self:end;position:relative;right:auto}
.ege-work-row[data-work-preview]::after{z-index:1}
.ege-work-more{align-items:center;display:flex;justify-content:center;padding:0 var(--folio-primitive-space-12) var(--folio-primitive-space-12)}
.ege-work-more>.ege-button{height:var(--folio-primitive-size-control-touch);pointer-events:auto}
.ege-list-row{align-items:center;border-top:1px solid var(--ege-line);color:var(--ege-ink);column-gap:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,210px) auto;min-height:64px;padding:12px 20px;text-decoration:none;transition:background .12s}
.ege-list-row:first-child{border-top:0}
.ege-list-row:hover{background:var(--ege-hover)}
.ege-work-row{align-items:center;border-top:1px solid var(--ege-line);display:flex;isolation:isolate;overflow:hidden;position:relative}
.ege-work-row:first-child{border-top:0}
.ege-work-row>.ege-list-row{border-top:0;flex:1;grid-template-columns:minmax(0,1fr) minmax(120px,210px);min-width:0;padding-right:var(--folio-primitive-space-68)}
.ege-work-row>.ege-list-row>.ege-list-main:only-child{grid-column:1/-1}
/* The panel overlays the row; all controls keep their layout coordinates even
   while hidden. Only the background and revealed contents move, never the arrow. */
.ege-work-actions{align-items:center;display:flex;inset-block:0;isolation:isolate;max-width:100%;pointer-events:none;position:absolute;right:0;z-index:1}
.ege-work-actions::before{background:var(--ege-dark);content:"";inset:0;position:absolute;transform:translateX(calc(100% + var(--folio-primitive-space-2)));transition:transform var(--folio-primitive-duration-base) var(--folio-semantic-motion-easing),visibility 0s linear var(--folio-primitive-duration-base);visibility:hidden;z-index:-1}
.ege-work-open{align-items:center;align-self:stretch;color:var(--ege-muted);display:flex;font-size:13.5px;font-weight:var(--ege-w-strong);padding-right:var(--folio-primitive-space-8);text-decoration:none}
.ege-work-open::before{content:"";inset-block:0;pointer-events:auto;position:absolute;right:0;width:var(--folio-primitive-space-110)}
.ege-work-actions:is(.is-open,:not([data-menu-ready])) .ege-work-open::before{pointer-events:none}
.ege-work-arrow{align-items:center;align-self:stretch;display:flex;flex:none;justify-content:center;pointer-events:auto;width:var(--folio-primitive-space-40)}
.ege-work-arrow .ege-icon{height:var(--folio-primitive-space-18);width:var(--folio-primitive-space-18)}
.ege-work-label{opacity:0;padding-left:var(--folio-primitive-space-12);transform:translateX(var(--folio-primitive-space-20));transition:opacity var(--folio-semantic-motion-duration),transform var(--folio-primitive-duration-base) var(--folio-semantic-motion-easing);visibility:hidden;white-space:nowrap}
.ege-work-remove{flex:none;margin:0;opacity:0;order:-1;padding-left:var(--folio-primitive-space-8);transform:translateX(var(--folio-primitive-space-20));transition:opacity var(--folio-semantic-motion-duration),transform var(--folio-primitive-duration-base) var(--folio-semantic-motion-easing);visibility:hidden}
.ege-work-remove .ege-icon-button{color:var(--ege-on-dark-muted)}
.ege-work-remove .ege-icon-button:hover{background:var(--ege-on-dark-line);color:var(--ege-on-dark)}
.ege-work-actions:is(.is-open,:not([data-menu-ready])){pointer-events:auto}
.ege-work-actions:is(.is-open,:not([data-menu-ready]))::before{transform:translateX(0);transition-delay:0s;visibility:visible}
.ege-work-actions:is(.is-open,:not([data-menu-ready])) .ege-work-open{color:var(--ege-on-dark)}
.ege-work-actions:is(.is-open,:not([data-menu-ready])) :is(.ege-work-label,.ege-work-remove){opacity:1;transform:translateX(0);visibility:visible}
.ege-work-actions :focus-visible{outline-color:var(--ege-on-dark);outline-offset:calc(-1 * var(--folio-primitive-space-4))}
.ege-work-row .ege-list-progress{transform:translateX(0);transition:transform var(--folio-primitive-duration-base) var(--folio-semantic-motion-easing)}
.ege-work-row[data-work-open] .ege-list-progress{transform:translateX(calc(-1 * var(--ege-work-shift,0px)))}
@media (any-pointer:coarse),(hover:none){
  .ege-work-row>.ege-list-row{padding-right:var(--folio-primitive-space-110)}
  .ege-work-actions{pointer-events:auto}
  .ege-work-actions::before,.ege-work-open::before,.ege-work-label{display:none}
  .ege-work-row .ege-work-actions .ege-work-open{color:var(--ege-muted)}
  .ege-work-row .ege-work-actions .ege-work-remove{opacity:1;transform:none;transition:none;visibility:visible}
  .ege-work-remove .ege-icon-button{color:var(--ege-muted);height:var(--folio-primitive-space-40);width:var(--folio-primitive-space-40)}
  .ege-work-remove .ege-icon-button:hover{background:var(--ege-hover);color:var(--ege-ink)}
  .ege-work-actions :focus-visible{outline-color:var(--ege-ink)}
  .ege-work-row .ege-list-progress{transform:none;transition:none}
}
.ege-list-main{display:grid;gap:2px;min-width:0}
.ege-list-main strong{font-weight:var(--ege-w-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ege-list-meta{color:var(--ege-muted);font-size:13px}
.ege-list-progress{align-items:center;column-gap:10px;display:grid;grid-template-columns:minmax(0,1fr) auto}
.ege-list-progress>.ege-list-figure:only-child{grid-column:1/-1;justify-self:end}
.ege-list-progress .ege-meter{width:auto}
.ege-list-figure{color:var(--ege-muted);font-size:13.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ege-list-figure b{color:var(--ege-ink);font-weight:var(--ege-w-strong)}
.ege-list-go{align-items:center;color:var(--ege-muted);display:inline-flex;font-size:13.5px;font-weight:var(--ege-w-strong);gap:6px;justify-self:end;transition:color .12s}
.ege-list-row:hover .ege-list-go{color:var(--ege-ink)}
.ege-empty{display:grid;gap:16px;justify-items:start;padding:28px}
.ege-empty p{color:var(--ege-muted);margin:0}

/* ── Home ─────────────────────────────────────────────────────────────────────────
   Practice beside the forecast, then unfinished work and the exam's numbers as one sheet:
   the first part in two columns (1–10, 11–20), the second under it (21–23, 24–26). */
.ege-layout-home{grid-template-columns:minmax(0,1000px);justify-content:center}
/* Home insights: approved two-column composition, 2026-10-01. */
.ege-home-top{display:grid;gap:var(--folio-primitive-space-16);grid-template-areas:"practice forecast";grid-template-columns:repeat(2,minmax(0,1fr))}
.ege-home-variants{align-content:start;align-self:start;display:grid;gap:var(--folio-primitive-space-12);grid-area:practice;grid-template-columns:minmax(0,1fr)}
.ege-forecast{background:var(--ege-paper);border-radius:var(--ege-radius-lg);box-shadow:var(--ege-shadow);display:flex;flex-direction:column;justify-content:space-between;gap:var(--folio-primitive-space-24);grid-area:forecast;min-width:0;padding:var(--folio-primitive-space-24)}
.ege-forecast .ege-section-title{margin:0;padding:0}
.ege-forecast-range{align-items:center;display:flex;font-family:var(--ege-reader);font-size:clamp(var(--folio-primitive-space-68),7vw,var(--folio-primitive-space-110));font-weight:var(--ege-w-medium);line-height:1;margin:var(--folio-primitive-space-12) 0;white-space:nowrap}
.ege-forecast-note{color:var(--ege-muted);font-size:13px;line-height:1.5;margin:0}
.ege-next-step{border-top:1px solid var(--ege-line);padding-top:var(--folio-primitive-space-16)}
.ege-next-form{margin:var(--folio-primitive-space-8) 0 0}
.ege-next-open .ege-ready-title>span{color:var(--ege-muted);white-space:nowrap}
.ege-home-action{align-items:center;display:inline-flex;font-size:13.5px;font-weight:var(--ege-w-strong);gap:var(--folio-primitive-space-6);grid-column:2;grid-row:2;min-height:var(--folio-primitive-space-24)}
.ege-home-action .ege-icon{flex:none;height:var(--folio-primitive-space-18);width:var(--folio-primitive-space-18)}
.ege-home-action-label{opacity:0;transform:translateX(var(--folio-primitive-space-20));transition:opacity var(--folio-semantic-motion-duration),transform var(--folio-primitive-duration-base) var(--folio-semantic-motion-easing)}
.ege-forecast .ege-next-open,.ege-forecast .ege-next-open:hover{background:transparent;box-shadow:none;padding:0}
.ege-ready:focus-visible .ege-home-action-label,.ege-next-open:focus-visible .ege-home-action-label{opacity:1;transform:translateX(0)}
@media(hover:hover){.ege-home-action:hover .ege-home-action-label,.ege-next-open:hover .ege-home-action-label{opacity:1;transform:translateX(0)}}
/* The launch stack sets the shared height; only the forecast's number adapts
   to the remaining space above the recommendation. Narrow layouts stay natural. */
@media(min-width:761px){
  .ege-forecast{contain:size;gap:var(--folio-primitive-space-12);padding:var(--folio-primitive-space-20) var(--folio-primitive-space-20) var(--folio-primitive-space-18)}
  .ege-forecast-estimate{display:grid;flex:1;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}
  .ege-forecast-range{container-type:size;margin:var(--folio-primitive-space-8) 0}
  .ege-forecast-range>span{font-size:min(var(--folio-primitive-space-110),100cqh)}
  .ege-next-step{flex:none;padding-top:var(--folio-primitive-space-12)}
}
.ege-progress-tip{align-items:center;background:transparent;border:0;border-radius:var(--ege-radius);cursor:help;display:flex;justify-content:center;min-height:var(--folio-primitive-space-40);width:var(--folio-primitive-space-32)}
.ege-progress-tip[data-status=none]>.ege-tally-dot{background:transparent;border:1.5px solid var(--folio-primitive-color-graphite-400)}
.ege-progress-tooltip{background:var(--ege-dark);border-radius:var(--ege-radius);color:var(--ege-on-dark);font-size:13px;line-height:1.45;max-width:min(280px,calc(100vw - 32px));padding:var(--folio-primitive-space-8) var(--folio-primitive-space-12);position:fixed;z-index:60}
@media(max-width:760px){.ege-home-top{grid-template-areas:"forecast" "practice";grid-template-columns:minmax(0,1fr)}.ege-forecast{padding:var(--folio-primitive-space-20)}}
.ege-home-variants>form{display:grid;margin:0}
button.ege-ready{border:0;font:inherit;text-align:start;width:100%}
.ege-ready-light{background:var(--ege-paper);color:var(--ege-ink)}
.ege-ready-light:hover{background:color-mix(in srgb,var(--ege-paper),var(--ege-ink) 5%)}
.ege-ready-light .ege-ready-meta{color:var(--ege-muted)}
.ege-home-sheet{padding:4px 0 10px}
.ege-home-numbers{column-gap:40px;display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:0;padding:0 20px}
.ege-home-numbers[data-part=first]{grid-template-rows:repeat(10,auto)}
.ege-home-numbers[data-part=second]{grid-template-rows:repeat(3,auto)}
.ege-home-numbers>li{align-items:center;border-top:1px solid var(--ege-line);display:grid;grid-template-columns:minmax(0,1fr) auto;position:relative}
.ege-home-numbers>li::before{background:transparent;border-radius:var(--ege-radius);content:"";inset:0 calc(-1 * var(--folio-primitive-space-8));pointer-events:none;position:absolute;transition:background var(--folio-semantic-motion-duration);z-index:0}
.ege-home-number,.ege-progress-tip{position:relative;z-index:1}
.ege-home-numbers>li:hover::before,.ege-home-numbers>li:has(:focus-visible)::before{background:var(--ege-hover)}
.ege-home-numbers[data-part=first]>li:nth-child(10n+1),.ege-home-numbers[data-part=second]>li:nth-child(3n+1){border-top:0}
.ege-home-number{align-items:center;border-radius:6px;color:var(--ege-ink);column-gap:12px;display:grid;grid-template-columns:22px minmax(0,1fr);margin:0 -8px;min-height:46px;padding:6px 8px;text-decoration:none;transition:background .12s}
.ege-home-number:hover .ege-home-n{color:var(--ege-ink)}

/* ── Sign-in with a code from the bot ──────────────────────────────────────────── */
.ege-layout-narrow{grid-template-columns:minmax(0,400px);justify-content:center;padding-top:clamp(28px,9vh,80px)}
.ege-sign-in-card{display:grid;gap:14px;justify-items:start;padding:28px}
.ege-sign-in-card h1{font-family:var(--ege-reader);font-size:26px;font-weight:var(--ege-w-medium);line-height:1.2;margin:0}
.ege-sign-in-form{display:grid;gap:8px;justify-self:stretch;margin-top:6px}
.ege-field-label{font-weight:var(--ege-w-medium)}
.ege-code{appearance:none;background:var(--ege-paper);border:1px solid var(--ege-line);border-radius:var(--ege-radius);color:var(--ege-ink);font:inherit;font-size:22px;font-variant-numeric:tabular-nums;height:52px;letter-spacing:.16em;padding:0 14px;text-align:center;transition:border-color .15s;width:100%}
.ege-code:hover,.ege-code:focus{border-color:var(--ege-ink);outline:none}
.ege-code[aria-invalid=true]{border-color:var(--folio-semantic-color-statusBorder-red)}
.ege-sign-in-form .ege-button{height:44px;margin-top:8px;width:100%}
.ege-login-qr{display:block;justify-self:center;max-width:var(--ege-rail-w);width:100%;height:auto;aspect-ratio:1}
.ege-login-open{justify-self:stretch}
.ege-login-refresh{justify-self:stretch}
.ege-login-refresh .ege-button{width:100%;min-height:var(--folio-primitive-size-control-touch)}
.ege-sign-in-card form[hidden]{display:none}
/* Where a visitor would attach a second-part solution. */
.ege-sign-in-note{align-items:start;color:var(--ege-muted);display:flex;flex-basis:100%;font-family:var(--ege-ui);font-size:13.5px;font-weight:var(--ege-w-regular);gap:10px;line-height:1.4;margin:0}
.ege-sign-in-note .ege-icon{height:19px;width:19px}
.ege-sign-in-note a{color:var(--ege-ink);font-weight:var(--ege-w-strong);text-decoration:underline;text-decoration-color:var(--ege-line);text-underline-offset:3px}
.ege-sign-in-note a:hover{text-decoration-color:currentColor}

/* ── Narrower screens ─────────────────────────────────────────────────────────── */
/* The builder's card becomes a bar along the bottom edge. */
@media (max-width:1199px){
  .ege-layout-cart{grid-template-columns:minmax(0,1fr);max-width:calc(var(--ege-reading) + 48px);padding-bottom:120px}
  .ege-layout-cart>.ege-center{grid-column:1}
  /* The whole screen's width too, so the bar stays under its column. */
  .ege-cart{bottom:0;left:0;position:fixed;right:auto;top:auto;width:100vw;z-index:30}
  .ege-layout-cart>.ege-cart{justify-self:stretch;width:100vw}
  .ege-cart-card{align-items:center;border-radius:0;box-shadow:0 -10px 30px rgb(29 32 30 / 9%);display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px max(16px,calc((100% - var(--ege-reading)) / 2)) calc(10px + env(safe-area-inset-bottom))}
  .ege-cart-card>:is(h2,.ege-cart-map,.ege-cart-parts,.ege-cart-empty){display:none}
  .ege-cart-total{align-items:baseline;flex:1;flex-wrap:nowrap;gap:6px;min-width:0}
  .ege-cart-number{font-size:28px}
  .ege-cart-actions{align-items:center;flex-direction:row;gap:14px}
  .ege-cart-actions .ege-button{width:auto}
  .ege-cart-card:has([data-cart-empty]:not([hidden])) [data-reset]{display:none}
  .ege-cart-error{flex-basis:100%;order:3}
  :is(:where(.ege-root[data-ege-reference-open]) .ege-shell,.ege-shell[data-ref-open]) .ege-cart{width:calc(100vw - var(--ege-ref-w))}
}
@media (max-width:1179px){.ege-shell[data-ref-open] .ege-cart{width:100vw}}
/* Without room for the rail: filters slide in from the left, a thin reading line
   replaces the variant's map, and a result's summary leads the page. */
@media (max-width:1023px){
  .ege-main:has(>.ege-back-row){--ege-gap-top:var(--folio-primitive-space-12)}
  .ege-back-row{height:var(--folio-primitive-size-control-touch);margin-top:var(--folio-primitive-space-4);margin-bottom:0;position:static}
  .ege-back-slot{justify-self:start;width:auto}
  .ege-back-inner{padding-inline:var(--folio-primitive-space-16)}
  .ege-layout{padding-inline:16px}
  .ege-layout-rail{grid-template-columns:minmax(0,1fr);max-width:calc(var(--ege-reading) + 32px)}
  .ege-layout-rail>.ege-center{grid-column:1;grid-row:auto}
  .ege-layout-rail>.ege-rail{grid-column:1;grid-row:auto;justify-self:stretch;width:auto}
  .ege-work-heading{grid-column:1;grid-row:1}
  .ege-filters-open{display:inline-flex;height:34px;margin-right:4px;padding:0 12px}
  .ege-feed-head{align-items:center}
  .ege-feed-head h1{font-size:22px}
  .ege-shell .ege-filters{background:var(--ege-canvas);box-shadow:var(--ege-shadow-float);inset:0 auto 0 0;max-height:none;overflow-y:auto;padding:0 18px 0;position:fixed;top:0;transform:translateX(-102%);transition:transform .22s ease,visibility .22s;visibility:hidden;width:min(380px,100%);z-index:50}
  .ege-shell[data-filters-shown] .ege-filters{transform:none;visibility:visible}
  .ege-filters .ege-drawer-head{align-items:center;background:var(--ege-canvas);display:flex;justify-content:space-between;margin:0 -2px 14px 0;padding:14px 0 10px;position:sticky;top:0;z-index:2}
  .ege-drawer-head h2{font-family:var(--ege-reader);font-size:21px;font-weight:var(--ege-w-medium);margin:0}
  .ege-filter-foot{background:var(--ege-canvas);border-top:1px solid var(--ege-line);bottom:0;margin:0 -18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));position:sticky}
  .ege-filters-done{display:inline-flex}
  .ege-number span{font-size:13.5px}
  .ege-solve .ege-toc{display:none}
  .ege-reading-progress{background:var(--ege-line);display:block;height:var(--folio-primitive-space-2);inset-inline:0;pointer-events:none;position:fixed;top:var(--ege-header-h);z-index:40}
  .ege-reading-progress>span{background:var(--ege-dark);display:block;height:100%;transform:scaleX(0);transform-origin:left;width:100%}
  .ege-result .ege-summary{background:var(--ege-paper);border-radius:var(--ege-radius-lg);box-shadow:var(--ege-shadow);grid-template-columns:auto minmax(0,1fr);margin-bottom:18px;max-height:none;overflow:visible;padding:18px 20px;position:static;column-gap:28px}
  .ege-result .ege-summary>*{grid-column:1/-1}
  .ege-result .ege-summary>.ege-score-line{grid-column:1}
  .ege-result .ege-summary>.ege-score-caption{grid-column:1;grid-row:2}
  .ege-result .ege-summary>.ege-score-primary{grid-column:1;grid-row:3}
  .ege-result .ege-summary>.ege-parts-score{grid-column:2;grid-row:1/4;align-self:center}
  .ege-result .ege-navigator{grid-template-columns:repeat(auto-fill,minmax(30px,1fr))}
  .ege-result .ege-summary-actions{display:flex;flex-wrap:wrap}
  .ege-result .ege-summary-actions .ege-button{width:auto}
}
@media (max-width:760px){
  .ege-bar-inner{gap:12px;padding:0 12px 0 16px}
  .ege-shell .ege-nav a{padding:0 10px}
  .ege-nav a[aria-current=page]::after{inset-inline:10px}
  .ege-nav-quiet{display:none}
  .ege-bar-label{display:none}
  .ege-exam{gap:12px}
  .ege-list-row{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
  .ege-work-row>.ege-list-row{grid-template-columns:minmax(0,1fr)}
  .ege-list-progress{grid-column:1;grid-row:2}
  .ege-list-progress>.ege-list-figure:only-child{justify-self:start}
  .ege-list-go{grid-column:2;grid-row:1/3}
  .ege-list-go>span{display:none}
  .ege-type{padding:0 12px 0 14px}
  .ege-type-header,.ege-subtype{column-gap:12px}
  .ege-expand,.ege-type-title{gap:8px;grid-template-columns:20px minmax(0,1fr) 16px}
  .ege-type-points{display:none}
  .ege-limit{display:block;margin-left:0;white-space:normal}
  .ege-blank{width:8em}
  .ege-wide-only{display:none}
  .ege-narrow-only{display:inline}
  .ege-result .ege-summary{grid-template-columns:minmax(0,1fr)}
  .ege-result .ege-summary>:is(.ege-score-line,.ege-score-caption,.ege-score-primary,.ege-parts-score){grid-column:1;grid-row:auto}
  .ege-page-head h1{font-size:24px}
  .ege-home-numbers[data-part]{grid-auto-flow:row;grid-template-columns:minmax(0,1fr);grid-template-rows:none;padding:0 14px}
  .ege-home-numbers[data-part]>li:nth-child(n){border-top:1px solid var(--ege-line)}
  .ege-home-numbers[data-part]>li:first-child{border-top:0}
}
@media (max-width:640px){
  .ege-home-variants{grid-template-columns:minmax(0,1fr)}
  .ege-reference{border-left:0;width:100%}
}
/* A phone: the bar keeps «Импульс», the profile and the reference data; the four places
   share a separate row by their text widths, keeping full labels down to 320px. */
@media (max-width:560px){
  .ege-root{--ege-header-h:calc(var(--ege-bar-h) + var(--ege-toolbar-h) + 44px)}
  .ege-bar-inner>.ege-nav{display:none}
  .ege-tabs{display:flex}
  .ege-tabs a{flex:1 1 auto;justify-content:center;padding:0 var(--folio-primitive-space-4)}
  .ege-tabs a[aria-current=page]::after{inset-inline:14%}
}
/* Keep all work controls in the dark header when the menu needs its own row. */
@media (max-width:1279px){
  .ege-root:has([data-exam]){--ege-toolbar-h:var(--ege-bar-h)}
  .ege-bar-inner:has(>.ege-exam){flex-wrap:wrap;row-gap:0}
  .ege-bar-inner:has(>.ege-exam)>:not(.ege-exam){align-items:center;height:var(--ege-bar-h)}
  .ege-bar-inner:has(>.ege-exam)>.ege-brand{display:flex}
  .ege-bar-inner>.ege-exam{flex-basis:100%;height:var(--ege-bar-h);justify-content:flex-end;margin-left:0}
}
@media (max-width:560px){
  .ege-exam{gap:var(--folio-primitive-space-8)}
  .ege-exam .ege-button{padding-inline:var(--folio-primitive-space-12)}
  .ege-exam-progress{flex:1;gap:var(--folio-primitive-space-8);min-width:0}
  .ege-exam-progress .ege-meter{flex:1;min-width:var(--folio-primitive-space-24);width:auto}
}
/* The live bar wraps by content width, including the current account, count and
   timer. Its measured height supplies the shared offsets. The fixed breakpoint
   above remains a conservative fallback when JavaScript is unavailable. */
.ege-work-header-auto .ege-bar-inner{flex-wrap:wrap;height:auto;min-height:var(--ege-bar-h);row-gap:0}
.ege-work-header-auto .ege-bar-inner>:not(.ege-exam){align-items:center;height:var(--ege-bar-h)}
.ege-work-header-auto .ege-brand{display:flex}
.ege-work-header-auto .ege-bar-inner>.ege-bar-end:not(:has(*)){display:none}
.ege-work-header-auto .ege-bar-inner>.ege-nav{flex:none}
.ege-work-header-auto .ege-bar-inner>.ege-exam{flex:1 1 auto;height:var(--ege-bar-h);margin-left:auto}
