/* ХРОНИКА v14: semantic type, composition and light.
 * Load after the existing route/appearance styles, before chronika-glisse-v14.css.
 * Existing page content and state owners are the contract. Optical materials,
 * menu disclosure, atlas scenes and portrait motion have separate owners.
 */
:root {
  --ch-font-ui:"Golos Text",Arial,sans-serif;
  --ch-type-body:1.25rem;
  --ch-type-reading:1.3125rem;
  --ch-type-caption:1.125rem;
  --ch-type-control:1.1875rem;
  --ch-type-title:clamp(2rem,1.4rem + 2.5vw,3.5rem);
  --ch-type-section:clamp(1.75rem,1.35rem + 1.8vw,2.75rem);
  --ch-type-card:clamp(1.375rem,1.2rem + .65vw,1.75rem);
  --ch-leading-body:1.6;
  --ch-leading-reading:1.7;
  --ch-leading-label:1.5;
  --ch-leading-control:1.4;
  --ch-measure-reading:64ch;
  --ch-page-width:1280px;
  --ch-page-gutter:clamp(20px,3.2vw,40px);
  --ch-space-1:4px;
  --ch-space-2:8px;
  --ch-space-3:12px;
  --ch-space-4:16px;
  --ch-space-5:24px;
  --ch-space-6:32px;
  --ch-space-section:clamp(44px,6vw,80px);
  --ch-space-panel:clamp(20px,3vw,32px);
  --ch-radius-section:28px;
  --ch-radius-panel:24px;
  --ch-radius-inner:18px;
  --ch-radius-control:14px;
  --ch-radius-tight:12px;
  --ch-radius-capsule:999px;
  --ch-touch-target:48px;
  --ch-primary-height:54px;
  --ch-surface-canvas:#f3f6fa;
  --ch-surface-reading:#ffffff;
  --ch-surface-elevated:#e7effa;
  --ch-text-primary:#18283e;
  --ch-text-secondary:#293d54;
  --ch-border-default:#b5c7dc;
  --ch-link-default:#224fac;
  --ch-focus-ring:#2155c3;
  --ch-feedback-error:#a92d35;
  --ch-feedback-error-surface:#fff1f2;
  --ch-feedback-success:#216143;
  --ch-feedback-success-surface:#edf8f2;
  --ch-feedback-warning:#795017;
  --ch-feedback-warning-surface:#fff6e4;
  --ch-action-primary-fill:#2458d7;
  --ch-action-primary-hover:#1947bd;
  --ch-action-primary-ink:#ffffff;
  --ch-action-bundle-fill:var(--preview-commercial-fill,#2458d7);
  --ch-action-bundle-hover:var(--preview-commercial-hover,#1947bd);
  --ch-action-bundle-ink:var(--preview-commercial-ink,#ffffff);
  --ch-light-key:rgba(153,190,237,.31);
  --ch-light-return:rgba(255,255,255,.68);
  --ch-light-ground:#eef4fc;
}
html[data-theme="dark"] {
  --ch-surface-canvas:#0e1624;
  --ch-surface-reading:#17283e;
  --ch-surface-elevated:#233b56;
  --ch-text-primary:#edf4ff;
  --ch-text-secondary:#d6e3f4;
  --ch-border-default:#46617e;
  --ch-link-default:#9fc9ff;
  --ch-focus-ring:#afd1ff;
  --ch-feedback-error:#ffbac0;
  --ch-feedback-error-surface:#3b202b;
  --ch-feedback-success:#a1dfbf;
  --ch-feedback-success-surface:#153a30;
  --ch-feedback-warning:#f3d49a;
  --ch-feedback-warning-surface:#3c301e;
  --ch-action-primary-fill:#2f61db;
  --ch-action-primary-hover:#3b69e1;
  --ch-action-primary-ink:#ffffff;
  --ch-action-bundle-fill:#78d7ff;
  --ch-action-bundle-hover:#a7e7ff;
  --ch-action-bundle-ink:#092238;
  --ch-light-key:rgba(63,113,181,.33);
  --ch-light-return:rgba(97,148,208,.13);
  --ch-light-ground:#101e31;
}

/* Compatibility aliases stay on the owning surface. These do not alter the
 * Telegram Mini App. Published accent values are resolved on html by its owner. */
:is(body.public-site,html[data-client-surface="website"] body) {
  --ch-paper:var(--ch-surface-canvas);
  --ch-ink:var(--ch-text-primary);
  --ch-muted:var(--ch-text-secondary);
  --ch-surface:var(--ch-surface-reading);
  --ch-subtle:var(--ch-surface-elevated);
  --ch-line:var(--ch-border-default);
  --ch-link:var(--ch-link-default);
  --ch-focus:var(--ch-focus-ring);
  --ch-bundle-bg:var(--ch-action-bundle-fill);
  --ch-bundle-hover:var(--ch-action-bundle-hover);
  --ch-bundle-ink:var(--ch-action-bundle-ink);
  --ch-scene-light:var(--ch-light-key);
  --ch-scene-reflection:var(--ch-light-return);
  color:var(--ch-text-primary);
  font-family:var(--ch-font-ui);
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
  background:
    radial-gradient(ellipse 94vw 720px at 88% 0,var(--ch-light-key),transparent 78%),
    linear-gradient(155deg,var(--ch-surface-canvas) 20%,var(--ch-light-ground) 65%,var(--ch-surface-canvas) 100%)!important;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.chronika-learning,.chronika-ui) {
  font-family:var(--ch-font-ui);
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
  color:var(--ch-text-primary);
}
/* Native SSR copy predates the React role classes. Give its semantic text
 * elements the same floor; the caption/reading roles below take precedence. */
body.public-site main :is(p,li,dd) {
  font-size:var(--ch-type-body)!important;
  line-height:var(--ch-leading-body)!important;
}
body.public-site main :is(figcaption,dt,small) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  opacity:1;
}
body.public-site main :is(p,li,dd) a {font-size:inherit!important}
body.public-site main :is(button,summary,select,input:not([type="checkbox"]):not([type="radio"])) {
  min-block-size:var(--ch-touch-target);
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.chronika-learning,.chronika-ui,.public-catalog-page,.cv101-page,.cv101-pricing) {
  --cl-text:var(--ch-text-primary);
  --cl-muted:var(--ch-text-secondary);
}

/* Shared geometry. A scene remains a full scene; only its contents follow the
 * common reading edge. No overflow mask is used to conceal reflow defects. */
.public-site :is(.public-catalog-page,.public-pricing-page,.cv101-page,.cv101-pricing,.pp139-focus),
html[data-client-surface="website"] body .chronika-ui> :is(.ch-catalog,.ch-pricing,.ch-library,.ch-practice,.ch-personal-home) {
  inline-size:100%;
  max-inline-size:var(--ch-page-width);
  margin-inline:auto;
  min-inline-size:0;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-commerce-band,.ch-page-heading,.ch-commerce-heading,.ch-section-heading,.lp-heading-layout,.cv101-page-heading) {
  gap:16px 24px;
  min-inline-size:0;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-page-heading,.ch-commerce-heading,.lp-heading-layout,.cv101-page-heading) h1 {
  font-size:var(--ch-type-title);
  line-height:1.12;
  letter-spacing:-.035em;
  text-wrap:balance;
  overflow-wrap:break-word;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-section-heading,.ch-topic-purchase-heading,.ch-library-materials-heading) h2 {
  font-size:var(--ch-type-section);
  line-height:1.16;
  letter-spacing:-.025em;
  text-wrap:balance;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-copy,.ch-product-copy,.ch-package-summary,.cv101-lesson-copy) h3 {
  font-size:var(--ch-type-card);
  line-height:1.3;
  overflow-wrap:break-word;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-copy,.ch-product-copy,.ch-package-summary,.ch-topic-purchase-content,.ch-price-panel,.ch-account-banner,.ch-profile-disclosure-content,.cv101-lesson-copy,.cv101-player-info) p {
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-hero-lead,.ch-section-heading p,.ch-section-copy>p,.ch-product-description,.ch-commerce-band p,.ch-screen-heading>p,.ch-bank-copy>p,.ch-bank-guide li p,.ch-full-section>div>p,.ch-author-section p,.ch-format-explanation,.ch-bundle-difference,.ch-library-focus>p,.ch-library-offer-copy p,.ch-bundle-includes li,.ch-empty-state p,.ch-empty-copy,.cv101-page>p,.cv101-page-heading>p) {
  font-size:var(--ch-type-body)!important;
  line-height:var(--ch-leading-body)!important;
}
.public-site :is(.public-section>p,.public-section li,.public-product>p,.public-next-offer>p,.public-access details p,.as96-foundation,.as139-limit,.as143-correction p,.as141-process dd),
html[data-client-surface="website"] body :is(.cv101-strip p,.ch-pricing-faq p,.ch-topic-purchase-content>p) {
  font-size:var(--ch-type-body)!important;
  line-height:var(--ch-leading-body)!important;
}

/* Map geography, drawing and accepted open composition stay source-owned.
 * The protection gradient is continuous and contains no rectangular panel. */
:is(body.public-site,html[data-client-surface="website"] body) .h145 :is(.h145-intro,.h145-purchase) {
  min-inline-size:0;
  max-inline-size:540px;
}
:is(body.public-site,html[data-client-surface="website"] body) .h145 .h139-description {
  color:var(--ch-text-primary)!important;
  opacity:1;
  font-size:var(--ch-type-body);
  line-height:1.55;
}
:is(body.public-site,html[data-client-surface="website"] body) .h145 :is(.h146-price-note,.h146-scope-note,.h146-map-caption>span,.hero-offer-note) {
  color:var(--ch-text-secondary);
  font-size:var(--ch-type-caption);
  line-height:1.5;
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) .h145 .h146-map-caption>strong {
  color:var(--ch-text-primary);
  font-size:var(--ch-type-body);
  line-height:1.4;
}
/* Type roles use opaque inks. Metadata is smaller by hierarchy, never alpha.
 * Prices remain values from the catalogue, with the currency on the same line. */
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-meta,.ch-topic-period,.ch-topic-access,.ch-product-status,.ch-product-exclusion,.ch-package-exclusion,.ch-package-payment,.ch-price-separate,.ch-library-trial-policy,.ch-library-search-status,.ch-library-statistics,.ch-profile-disclosure small,.catalog-material-facts,.public-catalog-search label,#public-topic-results,.cv101-meta,.cv101-muted,.cv101-session-line,.cv101-catalog-state,.cv101-planned details small,.buyer-access-terms,.buyer-document-links,.buyer-seller,.input-hint,.form-message,.consent,.task-source,.question-meta,.question-number,.task-type,.task-points,.bank-filter-summary,.test-progress,.review-meta) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  color:var(--ch-text-secondary);
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-badge,.ch-topic-completed,.ch-library-pending-status,.ch-library-stat,.ch-check-stats,.ch-check-progress,.status-tag) {
  font-size:var(--ch-type-caption);
  line-height:var(--ch-leading-label);
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-author-mini,.ch-author-mini span>span,.ch-material-spread figcaption,.ch-programme-strip,.ch-small-note,.ch-price-saving,.ch-price-missing,.ch-price-label,.ch-price-context,.ch-programme-note,.ch-bank-note,.ch-catalog-note,.ch-sort-field>span,.ch-period-select-field>span,.ch-topic-picker>span,.ch-library-progress-total>span,.ch-library-stat>span,.ch-library-access-summary,.ch-library-offer-price>p,.ch-price-separate span,.ch-price-separate s,.ch-personal-shortcuts>a>span>span) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) .ch-catalog-results-heading h2 {
  font-size:var(--ch-type-body)!important;
  line-height:var(--ch-leading-label);
}
.public-site :is(.public-breadcrumbs,.topic-label>span,.topic-period,.badge,.public-topic-formats li,.topic-bottom .card-open,.section-heading>span,.public-format,.public-fine,.cl-ad-kicker,.cl-ad-summary,.cl-embedded-source,.cl-embedded-source>span,.cc139-video-future,.cc114-topic-number,.cc114-topic-counter,.library-art-placeholder span,.as96-role,.as139-sample figcaption,.as96-method a span,.as96-documents,.as96-documents a,.as96-seller dt),
html[data-client-surface="website"] body :is(.ch-badge,.ch-topic-price,.library-art-placeholder span,.offer-v141-components,.offer-v141-components span,.offer-v141-components b,.offer-v141-details p,.ch-topic-purchase-art>span) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  opacity:1;
}
.public-site .public-breadcrumbs>a {font-size:inherit}
.public-site :is(.cl-embedded-source>a,.cc112-period-link,.cc114-topic-name,.as96-text-link),
html[data-client-surface="website"] body .offer-v141-details>summary {
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
}
html[data-client-surface="website"] body .offer-v141-details>summary {min-block-size:var(--ch-touch-target)}
html[data-client-surface="website"] body .ch-art-credits :is(summary,li,a,span) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  opacity:1;
}
html[data-client-surface="website"] body .ch-art-credits>summary {
  min-block-size:var(--ch-touch-target);
  font-size:var(--ch-type-control)!important;
}
html[data-client-surface="website"] body .ch-price-panel p {
  font-size:var(--ch-type-body)!important;
  line-height:var(--ch-leading-body)!important;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-price-current,.ch-topic-price,.price-current,.store-product-price,.cv101-target-price) {
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  line-height:1.2;
}
:is(body.public-site,html[data-client-surface="website"] body) .cv101-duration {
  font-size:var(--ch-type-caption);
  line-height:var(--ch-leading-label);
  color:#ffffff;
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-card,.ch-product-card,.ch-price-panel,.ch-library-materials,.ch-account-banner,.ch-workspace,.cv101-lesson-card,.cv101-player-info,.cv101-chapters) {
  min-inline-size:0;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-bottom,.ch-topic-purchase-action,.ch-library-focus-actions,.public-actions,.cv101-catalog-state) {
  gap:12px 20px;
  flex-wrap:wrap;
}

/* The controls' material is delegated to Glisse. This layer owns legibility,
 * shape and hit area only. ProductAction owns labels, href and availability. */
:is(body.public-site,html[data-client-surface="website"] body) :is(.btn,.btn-sm,.ch-button,.ch-text-link,.text-link,.ch-topic-open,.ch-reset-button,.ch-price-tab,.ch-period-button,.ch-tabs-list [role="tab"],.ch-tabs-list [data-slot="tabs-trigger"],.cv101-chapters button,.cv101-planned summary,.ch-pricing-faq summary,.ch-profile-disclosure>summary) {
  min-block-size:var(--ch-touch-target);
  font-family:var(--ch-font-ui);
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
  white-space:normal;
  overflow-wrap:break-word;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.btn,.ch-button,.ch-reset-button,.ch-price-tab,.ch-period-button) {
  border-radius:var(--ch-radius-control);
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.btn-primary,.ch-button[data-variant="primary"],[data-commercial-action]) {
  min-block-size:var(--ch-primary-height);
}
/* Semantic controls that predate the shared component class: atlas picker,
 * native disclosures and the session-boundary retry action. */
html[data-client-surface="website"] body :is(.chronika-ui summary,.ch-atlas-periods>button,.chronika-ui [role="status"]>button,[data-map-picker],.auth-provider--telegram) {
  min-block-size:var(--ch-touch-target)!important;
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
}
html[data-client-surface="website"] body .chronika-ui [role="status"]>button {
  padding:10px 16px;
  border-radius:var(--ch-radius-control);
}
:is(body.public-site,html[data-client-surface="website"] body) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {
  outline:3px solid var(--ch-focus-ring);
  outline-offset:4px;
}

/* Reading has its own measure and line height, separate from sales captions. */
:is(body.public-site,html[data-client-surface="website"] body) :is(.question-body,.task-stimulus,.task-prompt,.reference-answer,.review-answer,.submitted-answer,.result-reference,.cl-task-form legend,.cl-material-pane-copy,.cl-note-demo,.cl-note-example,.public-article-body,.article-body,.document-body) {
  font-size:var(--ch-type-reading)!important;
  line-height:var(--ch-leading-reading)!important;
  color:var(--ch-text-primary);
  overflow-wrap:break-word;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.question-body,.task-stimulus,.reference-answer,.review-answer,.submitted-answer,.result-reference,.public-article-body,.article-body,.document-body)> :is(p,ul,ol) {
  max-inline-size:var(--ch-measure-reading);
  font-size:inherit!important;
  line-height:inherit!important;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.answer-option,.cl-options label,.cl-task-form .cl-options label,.matching-row,.order-item) {
  font-size:var(--ch-type-body)!important;
  line-height:1.55!important;
  min-block-size:var(--ch-touch-target);
  color:var(--ch-text-primary);
}

/* Forms share an opaque field and error system. Alpha applies to lights only.
 * Native validation messages and state text remain visible in normal flow. */
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-select,.ch-search-control input,.ch-search-field input,.ch-library-search>input,.public-catalog-search input,.answer-input,.search-box,.select,.owner-login-form input,.admin-form input:not([type="checkbox"]):not([type="radio"]),.admin-form select,.admin-form textarea) {
  min-block-size:var(--ch-touch-target);
  min-inline-size:0;
  max-inline-size:100%;
  font-family:var(--ch-font-ui);
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
  color:var(--ch-text-primary)!important;
  background-color:var(--ch-surface-reading)!important;
  border-color:var(--ch-border-default)!important;
  border-radius:var(--ch-radius-control);
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-filter-label,.ch-labelled-search>span,.ch-field>span,.answer-label,.practice-selector-row label,.ch-library-search label) {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  color:var(--ch-text-primary);
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(input,textarea)::placeholder {
  color:var(--ch-text-secondary);
  opacity:1;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(input,select,textarea)[aria-invalid="true"] {
  border:2px solid var(--ch-feedback-error)!important;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.error-message,.field-error,.form-message.error,.ch-error) {
  color:var(--ch-feedback-error);
  font-size:var(--ch-type-caption);
  line-height:1.5;
  opacity:1;
  overflow-wrap:anywhere;
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-empty,.ch-empty-state,.ch-pricing-empty,.empty-state,.cv101-catalog-state,.ch-topic-format-unavailable) {
  min-inline-size:0;
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
  color:var(--ch-text-primary);
}
:is(body.public-site,html[data-client-surface="website"] body) :is(.ch-empty,.ch-empty-state,.ch-pricing-empty,.empty-state,.ch-topic-format-unavailable) :is(p,small) {
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
  color:var(--ch-text-secondary);
  opacity:1;
}

/* Owner studio uses its real existing forms and native navigation, not the
 * prototype's .st-* shell. It is intentionally also legible at 400px height. */
.app-shell :is(.admin-section,.studio-grid,.studio-welcome,.material-topic-studio,.appearance-preview) {
  font-family:var(--ch-font-ui);
  font-size:var(--ch-type-body);
  line-height:var(--ch-leading-body);
  color:var(--ch-text-primary);
  min-inline-size:0;
}
.app-shell :is(.admin-form,.owner-login-form,.material-topic-studio,.appearance-preview) :is(label,legend,.answer-label,.input-hint,.form-message,.consent),
.app-shell :is(.admin-row,.material-studio-card,.studio-welcome) :is(p,small),
.app-shell .admin-metrics span {
  font-size:var(--ch-type-caption)!important;
  line-height:var(--ch-leading-label)!important;
  opacity:1;
}
.app-shell :is(.admin-form,.owner-login-form,.material-topic-studio,.appearance-preview) :is(select,textarea,input:not([type="checkbox"]):not([type="radio"])),
.app-shell :is(.admin-nav>a,.admin-row-actions>.btn,.admin-quick-actions>.btn,.appearance-preview>summary,.appearance-confirm,.appearance-preview fieldset label) {
  min-block-size:var(--ch-touch-target);
  font-size:var(--ch-type-control)!important;
  line-height:var(--ch-leading-control)!important;
}
.app-shell :is(.admin-row,.material-studio-card,.admin-row-actions,.admin-search-form,.admin-product-filters) {
  min-inline-size:0;
  gap:12px 20px;
}
.app-shell .admin-row-actions {max-inline-size:none;flex-wrap:wrap}
.app-shell .admin-nav {gap:8px;scroll-padding-inline:8px}
.app-shell .admin-nav>a {white-space:normal;border-radius:var(--ch-radius-control)}
.app-shell .appearance-preview :is(.appearance-preview-fields,.appearance-preview-body) {min-inline-size:0}
.app-shell .appearance-preview-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.app-shell .appearance-preview :is(select,button) {max-inline-size:100%;white-space:normal}

/* Existing approved library models explain a context rather than filling gaps.
 * The SVG sprite keeps its own authored paths; provider marks are not restyled. */
:is(body.public-site,html[data-client-surface="website"] body) .ch-model-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  min-inline-size:0;
}
.public-site .as141-process>.ch-model-heading {margin-block-end:24px}
.public-site .as141-process .ch-model-heading h2 {
  margin:0;
  padding-inline-end:0;
  background-image:none;
  min-inline-size:0;
}
:is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--seal {
  inline-size:96px;
  max-inline-size:22%;
  block-size:auto;
  aspect-ratio:1;
  object-fit:contain;
  flex:none;
}
:is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--analysis {
  float:inline-end;
  inline-size:64px;
  block-size:auto;
  aspect-ratio:1;
  object-fit:contain;
  margin-inline-start:16px;
  margin-block-end:8px;
}

/* Narrow reflow increases rows rather than reducing the type scale. */
@media(max-width:760px) {
  :root {--ch-space-section:44px;--ch-space-panel:20px}
  :is(body.public-site,html[data-client-surface="website"] body) :is(.ch-catalog-results-heading,.ch-library-materials-heading,.ch-topic-purchase-heading) {flex-wrap:wrap;gap:12px}
  :is(body.public-site,html[data-client-surface="website"] body) :is(.ch-catalog-results-heading,.ch-library-materials-heading)>* {min-inline-size:0;max-inline-size:100%}
  :is(body.public-site,html[data-client-surface="website"] body) .ch-catalog-results-heading>h2 {flex-basis:100%}
  :is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-grid,.ch-commerce-topic-grid) {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  :is(body.public-site,html[data-client-surface="website"] body) .cv101-player-layout {grid-template-columns:minmax(0,1fr)}
  .app-shell :is(.admin-row,.material-studio-card) {flex-wrap:wrap}
  .app-shell .admin-row-actions {inline-size:100%;justify-content:flex-start}
  :is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--seal {inline-size:64px}
  :is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--analysis {inline-size:48px}
}
@media(max-width:550px) {
  :is(body.public-site,html[data-client-surface="website"] body) :is(.ch-topic-grid,.ch-commerce-topic-grid,.ch-topic-purchase-layout,.ch-primary-bundles,.ch-period-product-grid) {grid-template-columns:minmax(0,1fr)}
  :is(body.public-site,html[data-client-surface="website"] body) :is(.ch-search-control,.public-search-row) {min-inline-size:0;gap:12px}
  :is(body.public-site,html[data-client-surface="website"] body) .public-catalog-controls .public-catalog-search {grid-template-columns:minmax(0,1fr)}
  :is(body.public-site,html[data-client-surface="website"] body) .public-catalog-controls #public-topic-results {grid-column:1;grid-row:auto;text-align:start}
  :is(body.public-site,html[data-client-surface="website"] body) .public-catalog-controls .public-search-row {grid-column:1;grid-row:auto}
  .app-shell :is(.appearance-preview-fields,.admin-price-fields,.admin-access-layout) {grid-template-columns:minmax(0,1fr)}
}
@media(max-height:500px) and (min-width:761px) {
  .app-shell:has(:is(.studio-grid,.material-topic-studio,.appearance-preview,.admin-section))>.sidebar {
    block-size:100dvh;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .app-shell:has(:is(.studio-grid,.material-topic-studio,.appearance-preview,.admin-section))>.sidebar .sidebar-bottom {position:static;margin-block-start:24px}
  .app-shell :is(.appearance-preview,.studio-grid,.material-topic-studio) {scroll-margin-block-start:20px}
  :is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--seal {inline-size:64px}
  :is(body.public-site,html[data-client-surface="website"] body) .ch-context-model--analysis {inline-size:48px}
}
@media(forced-colors:active) {
  :is(body.public-site,html[data-client-surface="website"] body) {color:CanvasText;background:Canvas!important}
  :is(body.public-site,html[data-client-surface="website"] body) :is(input,select,textarea) {color:FieldText!important;background:Field!important;border-color:FieldText!important}
  :is(body.public-site,html[data-client-surface="website"] body) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline-color:Highlight}
}

/* Final matched Home caption floor: only the observed progress, character,
 * author-basis and five FAQ paragraphs. Existing body and controls keep their
 * larger type; text, composition and motion owners are unchanged. */
:is(body.public-site,html[data-client-surface="website"] body) :is(#main-content,#main) .chronika-learning :is(.ch-journey-period-status,.lp-text,.lp-credit,.cp145-author-basis,.cl-faq details > p) {
  font-size:18px!important;
}

/* V218: a readable menu and a personal light/dark choice in the shared header. */
.ch-header-theme{position:relative;display:inline-grid;place-items:center;flex:0 0 48px;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;border:1px solid var(--ch-border-default);border-radius:50%;background:var(--ch-surface-reading);color:var(--ch-text-primary);cursor:pointer;touch-action:manipulation}
.ch-header-theme>svg{grid-area:1/1;width:23px;height:23px;pointer-events:none;transition:opacity 160ms ease,transform 200ms ease}
.ch-header-theme .ch-theme-sun{opacity:0;transform:rotate(-35deg) scale(.8)}
.ch-header-theme .ch-theme-moon{opacity:1;transform:none}
.ch-header-theme[aria-pressed="true"] .ch-theme-sun{opacity:1;transform:none}
.ch-header-theme[aria-pressed="true"] .ch-theme-moon{opacity:0;transform:rotate(30deg) scale(.8)}
.ch-header-theme:focus-visible{outline:3px solid var(--ch-focus-ring);outline-offset:3px}
.public-site .public-header .public-nav-more-content .public-nav-appearance:empty{display:none}
:is(.public-header,.topbar) :is(.public-nav-toggle,.website-nav-toggle){align-items:center;justify-content:center;gap:7px}
.ch-menu-icon{width:22px;height:22px;flex-shrink:0;pointer-events:none}
:is(.public-header,.topbar) .public-nav-more-content .public-nav-group-title{color:var(--ch-text-secondary)!important}
:is(.public-header,.topbar) .public-nav-more-content .public-nav-group>a{color:var(--ch-text-primary)!important}
:is(.public-header,.topbar) .public-nav-more-content a[aria-current]{color:var(--ch-link-default)!important;background:var(--theme-soft,#e8effb)}
:is(.public-header,.topbar) .public-nav-more-content .public-nav-edges a{color:var(--ch-text-secondary)!important}
@media(min-width:961px){
 html body.public-site .public-header .public-nav-more-content,html[data-client-surface="website"] body .topbar .public-nav-more-content{width:min(460px,calc(100vw - 40px));padding:16px;border-radius:22px}
 :is(.public-header,.topbar) .public-nav-more-content .public-nav-group{gap:3px 12px}
 :is(.public-header,.topbar) .public-nav-more-content .public-nav-group>a{padding:10px 12px}
}
@media(max-width:960px){
 .public-site .public-header-inner{gap:6px}
 .public-site .public-header .ch-header-theme{order:2;margin-left:auto}
 .public-site .public-header .public-nav-toggle{order:3;margin-left:0}
 .public-site .public-header .public-login{order:4}
 .public-site .public-header #public-primary-nav{order:5}
 html body.public-site .public-header .public-nav-more-content .public-nav-group,html[data-client-surface="website"] body .topbar .public-nav-more-content .public-nav-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 6px;padding:10px 0}
 :is(.public-header,.topbar) .public-nav-more-content .public-nav-group>a{font-size:18px;line-height:1.4;padding:8px;min-height:48px}
 html body.public-site .public-header .public-nav-more-content .public-nav-route-links>a:last-child{grid-column:auto}
 html[data-client-surface="website"] .topbar .ch-header-theme{order:2;margin-left:auto}
 html[data-client-surface="website"] .topbar .website-nav-toggle{order:3}
 html[data-client-surface="website"] .topbar .topbar-right{order:4}
 .ch-menu-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 :is(.public-header,.topbar) :is(.public-nav-toggle,.website-nav-toggle):not([hidden]){display:inline-flex;flex:0 0 48px;width:48px;min-width:48px;min-height:48px;padding:0}
 .ch-header-theme{flex-basis:48px;width:48px;min-width:48px}
}
@media(max-width:380px){
 html body.public-site .public-header-inner{gap:4px;padding-inline:8px}
 .public-site .public-brand{font-size:17px;gap:5px}
 .public-site .public-brand img{width:26px;height:26px}
 html body.public-site .public-header .public-login{font-size:17px;padding-inline:11px}
 html[data-client-surface="website"] .topbar{gap:3px;padding-inline:6px}
}
@media(prefers-reduced-motion:reduce){.ch-header-theme>svg{transition:none}}
@media(forced-colors:active){.ch-header-theme{border:1px solid ButtonText;background:ButtonFace;color:ButtonText}}
@media(max-width:380px){
 html body.public-site .public-header .public-header-inner{gap:3px!important;padding-inline:6px!important}
 html body.public-site .public-header .public-login{padding-inline:6px!important}
}

/* V219 navigation: optical controls, stable text, explicit selection. Append after V218 design CSS. */
[data-ch-glisse-nav="true"]{
 --ch-glisse-radius:14px;
 --ch-nav-tint:rgb(244 249 255 / 74%);
 --ch-nav-ink:var(--ch-text-primary,#142d50);
 --ch-nav-solid:var(--ch-surface-elevated,#e7effa);
 min-height:48px;min-width:0;max-width:100%;
 border-style:solid;border-width:1px;
 text-decoration:none;line-height:1.35;
 transition:background-color 160ms ease-out,color 160ms ease-out,outline-offset 160ms ease-out;
 touch-action:manipulation;
}
[data-theme="dark"] [data-ch-glisse-nav="true"],html.dark [data-ch-glisse-nav="true"]{--ch-nav-tint:rgb(26 49 77 / 78%)}
/* Selection is navigation, not purchase emphasis; no paid/owned authority is added. */
[data-ch-glisse-nav="true"]:is(a,button,summary){padding:10px 14px}
:is(.public-header,.topbar) [data-ch-glisse-nav="true"]{--ch-glisse-radius:999px}
.ch-header-theme[data-ch-glisse-nav="true"],:is(.public-nav-toggle,.website-nav-toggle)[data-ch-glisse-nav="true"]{padding:0}
.ch-header-theme[data-ch-glisse-nav="true"]{--ch-glisse-radius:50%}
[data-ch-glisse-nav="true"][data-ch-glisse-selected="true"]{
 --ch-nav-tint:color-mix(in srgb,var(--ch-link-default,#2455db) 13%,var(--ch-surface-reading,#f4f8ff) 87%);
 --ch-nav-solid:color-mix(in srgb,var(--ch-link-default,#2455db) 13%,var(--ch-surface-reading,#f4f8ff) 87%);
 --ch-nav-ink:var(--ch-link-default,#2455db);
 font-weight:650;
}
[data-ch-glisse-nav="true"][data-ch-glisse-selected="true"]::after{
 content:none;
}
/* V222: glass controls own selection; legacy horizontal indicators do not fit
   vertical/grid navigation. Keep aria-selected, button tint and focus outlines. */
html body :is(.cl-tabs,.ch-price-tabs-list):has([data-ch-glisse-nav]) :is(.cl-tab-indicator,.cl-react-tab-indicator),
html body [data-ch-glisse-nav] > :is(.cl-react-tab-indicator,.cl-react-format-indicator),
html body .v209-workbench-rail .cl-tabs :is(.cl-tab-indicator,.cl-react-tab-indicator){display:none!important}
html body .v209-workbench-rail .cl-tabs{border-bottom:0!important}
html body .v209-workbench-rail .cl-tabs [data-cl-tab]::after{content:none!important}
/* These action links were stretched to a full-width rule on touch screens.
   Remove that decoration, preserving prose-link underlines and keyboard focus. */
html body :is(.public-site a.text-link,.public-site .public-product-topics a,
 .chronika-learning a.cl-inline-link,.chronika-ui a.ch-text-link)::after{content:none!important}
/* Glass selection uses the button surface and weight, without a second underline. */
:is(.cl-tabs,.ch-price-tabs-list)[data-react-selection] [data-ch-glisse-nav]::after,
.cl-material[data-cl-react-motion] .cl-tabs [data-ch-glisse-nav]::after{content:none}
@media(hover:hover) and (pointer:fine){
 [data-ch-glisse-nav="true"]:not(:disabled,[aria-disabled="true"],[aria-busy="true"]):hover{
  --ch-nav-tint:color-mix(in srgb,var(--ch-link-default,#2455db) 8%,var(--ch-surface-reading,#f4f8ff) 92%);
  --ch-nav-ink:var(--ch-link-default,#2455db);
 }
 [data-ch-glisse-nav="true"][data-ch-glisse-selected="true"]:not(:disabled,[aria-disabled="true"],[aria-busy="true"]):hover{--ch-nav-tint:color-mix(in srgb,var(--ch-link-default,#2455db) 18%,var(--ch-surface-reading,#f4f8ff) 82%)}
}
[data-ch-glisse-nav="true"]:focus-visible,
.cb-radio:focus-visible+.cb-choice[data-ch-glisse-nav],
.format-option[data-ch-glisse-nav]:has(>input:focus-visible){outline:3px solid var(--ch-focus-ring,#779dff)!important;outline-offset:4px!important}
[data-ch-glisse-nav="true"]:is(:disabled,[aria-disabled="true"],[aria-busy="true"]){opacity:.55!important;cursor:not-allowed;transition:none}
/* Only bounded route controls wrap; reading links and form fields retain their material. */
:is(.ch-v209-workspace-sidebar>nav,.admin-nav,.lesson-admin-tabs,.j212-tabs,.j212-card-tabs,.ch-v209-mode-tabs) [data-ch-glisse-nav]{white-space:normal;overflow-wrap:anywhere}
:is(.public-nav,#desktop-nav) > [data-ch-glisse-nav]{--ch-glisse-radius:999px;padding-inline:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
:is(.cl-tabs,.ch-tabs-list,.ch-price-tabs-list) > [data-ch-glisse-nav]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
@media(max-width:600px){
 [data-ch-glisse-nav="true"]{min-height:48px}
 :is(.cl-tabs,.ch-tabs-list,.ch-price-tabs-list,.j212-tabs,.ch-v209-mode-tabs) [data-ch-glisse-nav]{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){[data-ch-glisse-nav="true"]{transition:none!important}}
html[data-motion-static] [data-ch-glisse-nav="true"],html[data-ch-appearance-motion="reduce"] [data-ch-glisse-nav="true"]{transition:none!important}
/* Runtime chooses --ch-nav-solid and disables lenses under these settings. */
html[data-ch-appearance-transparency="solid"] [data-ch-glisse-nav="true"] .ch-glisse-rim{display:none!important}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){[data-ch-glisse-nav="true"] .ch-glisse-rim{display:none!important}}
@media(forced-colors:active){
 [data-ch-glisse-nav="true"]{--ch-nav-ink:ButtonText;--ch-nav-tint:ButtonFace;--ch-nav-solid:ButtonFace;forced-color-adjust:auto;transition:none!important}
 [data-ch-glisse-nav="true"][data-ch-glisse-selected="true"]{outline:2px solid Highlight!important;outline-offset:-3px!important}
 [data-ch-glisse-nav="true"][data-ch-glisse-selected="true"]::after{background:Highlight}
 [data-ch-glisse-nav="true"]:is(:disabled,[aria-disabled="true"],[aria-busy="true"]){opacity:1!important;color:GrayText!important}
}

/* V223: the question owns its inset; old edge-to-edge trial margins do not. */
html body .v209-practice-sheet{padding:32px;align-self:start}
html body .v209-practice-sheet>.cl-contained-trial{margin:0!important;padding:0!important;min-width:0;width:auto}
html body .v209-practice-sheet .cl-task{max-width:none;margin:0;padding:0;min-width:0}
html body .v209-practice-sheet .cl-task-form fieldset{margin:0;padding:0;border:0;min-width:0}
html body .v209-practice-sheet .cl-task-form legend{display:block;width:100%;padding:0;margin:0 0 24px;font-size:21px;line-height:1.65;font-weight:500;white-space:pre-line}
html body .v209-practice-page .v209-practice-sheet .cl-task .cl-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
html body .v209-practice-sheet .cl-options label{padding:16px 18px;gap:12px;min-width:0;align-items:center;min-height:60px}
html body .v209-practice-sheet .cl-options label>span{min-width:0;line-height:1.5}
html body .v209-practice-sheet .cl-options input{flex:none;margin:0}
html body .v209-practice-sheet .pp139-trial-policy{margin:22px 0 16px}
html body .v209-practice-sheet .pp139-trial-details{margin:16px 0 0}
html body .v209-practice-workspace{grid-template-columns:minmax(210px,.48fr) minmax(0,1.52fr);gap:28px;align-items:start}
html body .v209-practice-context h2{margin-bottom:12px}
html body .v209-practice-context nav{gap:4px;margin-top:18px}
html body .v209-practice-context nav a{padding-block:10px}
html body .v209-practice-review{margin-block:36px!important}
html body .v209-practice-checking{gap:28px}
html body .v209-practice-checking article{padding-top:18px;border-top:1px solid var(--ch-border-default)}

/* Use the actual practice-option markup on the platform as well. */
html body .ch-v209-practice #answer-form .answer-options{display:grid;gap:12px;padding:0;margin:18px 0 24px;border:0;min-width:0}
html body .ch-v209-practice #answer-form .answer-options>legend{padding:0;margin-bottom:14px;line-height:1.5}
html body .ch-v209-practice #answer-form .answer-option{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;min-height:58px;min-width:0;border-radius:14px;line-height:1.55}
html body .ch-v209-practice #answer-form .answer-option>input{flex:none;margin:4px 0 0}
html body .ch-v209-practice #answer-form .answer-option>span{min-width:0;overflow-wrap:break-word}

/* Pair the practice model with the question, instead of an empty image row. */
html body .chronika-ui .ps219-scene{grid-template-columns:minmax(0,1fr) 184px;gap:20px 24px;align-items:center;margin-top:20px}
html body .chronika-ui .ps219-scene>div{display:contents}
html body .chronika-ui .ps219-scene h4{grid-column:1;grid-row:1;margin:0;line-height:1.3}
html body .chronika-ui .ps219-scene>img{grid-column:2;grid-row:1;width:184px;height:184px;margin:0;justify-self:center;object-fit:contain}
html body .chronika-ui .ps219-scene .ps219-choices{grid-column:1/-1;grid-row:2}
html body .chronika-ui .ps219-feedback{border:0;border-radius:16px;padding:20px 24px;margin-top:20px}

/* Larger existing catalogue models; text and illustrations share the space. */
html body .chronika-ui .bf219-model{width:204px;height:204px;margin:20px auto 0;object-fit:contain}
html body .chronika-ui .bf219-scene{gap:32px}
html body .v209-home-page .cl-study-path .cl-study-route li>:is(a,.sr145-static){grid-template-columns:88px minmax(0,1fr);gap:18px}
html body .v209-home-page .cl-study-path .cl-study-route li>:is(a,.sr145-static)>img{width:88px;height:88px;inline-size:88px;block-size:88px;object-fit:contain}
html body #formats .chronika-v3-bundle>.v3-bundle-art{width:min(100%,270px);align-self:center}
html body .v209-practice-heading{grid-template-columns:minmax(0,1fr) 260px;gap:16px 32px;margin-block:24px 32px}
html body .v209-practice-heading>div{display:contents}
html body .v209-practice-heading h1{grid-column:1;grid-row:1;margin:0}
html body .v209-practice-heading p{grid-column:1;grid-row:2;margin:0}
html body .v209-practice-heading-actions{grid-column:1;grid-row:3;margin:6px 0 0}
html body .v209-practice-heading>img{grid-column:2;grid-row:1/4;width:260px;height:260px;justify-self:center;object-fit:contain}
@media(min-width:1001px){html body .v209-home-page .cl-study-path .cl-study-route li>:is(a,.sr145-static){grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:800px){
 html body .v209-practice-workspace{grid-template-columns:minmax(0,1fr);gap:24px}
 html body .v209-practice-context nav{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:8px}
 html body .v209-practice-context nav a{gap:12px;min-height:44px}
 html body .v209-practice-heading{grid-template-columns:minmax(0,1fr) 160px;gap:16px 24px}
 html body .v209-practice-heading h1{grid-column:1/-1}
 html body .v209-practice-heading>img{grid-column:2;grid-row:2;width:160px;height:160px}
 html body .v209-practice-heading-actions{grid-column:1/-1;grid-row:3}
}
@media(max-width:680px){
 html body .chronika-ui .bf219-promise{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:16px;align-items:center}
 html body .chronika-ui .bf219-promise h3{grid-column:1/-1;grid-row:1;margin:0}
 html body .chronika-ui .bf219-promise>p{grid-column:1;grid-row:2;margin:0}
 html body .chronika-ui .bf219-model{grid-column:2;grid-row:2;width:132px;height:132px;margin:0;justify-self:center}
 html body .chronika-ui .bf219-scene{gap:24px}
 html body .chronika-ui .ps219-scene{grid-template-columns:minmax(0,1fr) 128px;gap:16px}
 html body .chronika-ui .ps219-scene>img{width:128px;height:128px}
 html body .chronika-ui .ps219-scene h4{font-size:23px;line-height:1.3}
 html body .chronika-ui .ps219-feedback{padding:18px}
 html body #formats .chronika-v3-bundle>.v3-bundle-art{width:168px}
}
@media(max-width:480px){
 html body .v209-practice-heading{grid-template-columns:minmax(0,1fr) 128px;gap:16px}
 html body .v209-practice-heading>img{width:128px;height:128px}
 html body .v209-practice-heading p{grid-column:1/-1;font-size:18px!important;line-height:1.55!important}
 html body .v209-practice-heading-actions{grid-column:1;grid-row:3}
 html body .v209-practice-heading>img{grid-row:3}
 html body .v209-practice-heading-actions>a{max-width:100%;white-space:normal}
 html body .chronika-ui .bf219-promise>p{font-size:17px!important;line-height:1.55!important}
 html body .v209-practice-sheet{padding:22px 20px}
 html body .v209-practice-sheet .cl-task-form legend{font-size:18px;line-height:1.6;margin-bottom:20px}
 html body .v209-practice-page .v209-practice-sheet .cl-task .cl-options{grid-template-columns:minmax(0,1fr)!important}
 html body .v209-practice-sheet .cl-options label{padding:14px;min-height:56px}
 html body .v209-practice-sheet :is(.pp139-trial-policy,.pp139-trial-details){font-size:16px!important;line-height:1.55!important}
 html body .v209-home-page .cl-study-path .cl-study-route li>:is(a,.sr145-static){grid-template-columns:80px minmax(0,1fr);gap:16px}
 html body .v209-home-page .cl-study-path .cl-study-route li>:is(a,.sr145-static)>img{width:80px;height:80px}
}
@media(max-width:360px){
 html body .v209-practice-heading{grid-template-columns:minmax(0,1fr) 100px;gap:12px}
 html body .v209-practice-heading>img{width:100px;height:100px}
 html body .chronika-ui .bf219-promise{grid-template-columns:minmax(0,1fr) 104px;gap:12px}
 html body .chronika-ui .bf219-model{width:104px;height:104px}
 html body .chronika-ui .ps219-scene{grid-template-columns:minmax(0,1fr) 104px;gap:12px}
 html body .chronika-ui .ps219-scene>img{width:104px;height:104px}
 html body .chronika-ui .ps219-choices{grid-template-columns:minmax(0,1fr)}
}

/* Two confirmed bundle offers get a clean raspberry accent in light mode.
   Local material variables also feed the inline Glisse palette. Unknown,
   owned and blocked links have no commercial marker and retain their state. */
html:not([data-theme="dark"]):not(.dark) body :is(.h130-actions a.hero-access,#formats .v3-bundle-purchase>:is(a.cl-button,button.cl-button[data-action="product"][data-id="library-full"]))[data-commercial-action]{
 --preview-commercial-fill:#bd174d;--preview-commercial-hover:#a91041;--preview-commercial-ink:#fff;
 --ch-action-bundle-fill:#bd174d;--ch-action-bundle-hover:#a91041;--ch-action-bundle-ink:#fff;
 --ch-bundle-bg:#bd174d;--ch-bundle-hover:#a91041;--ch-bundle-glass:#bd174d;--ch-bundle-glass-hover:#a91041;--ch-bundle-ink:#fff;
}
@media(hover:hover) and (pointer:fine){
 html:not([data-theme="dark"]):not(.dark) body :is(.h130-actions a.hero-access,#formats .v3-bundle-purchase>:is(a.cl-button,button.cl-button[data-action="product"][data-id="library-full"]))[data-commercial-action]:hover{--ch-action-bundle-fill:#a91041;--ch-bundle-glass:#a91041}
}
html:not([data-theme="dark"]):not(.dark) body :is(.h130-actions a.hero-access,#formats .v3-bundle-purchase>:is(a.cl-button,button.cl-button[data-action="product"][data-id="library-full"]))[data-commercial-action]:active{--ch-action-bundle-fill:#970b38;--ch-bundle-glass:#970b38}

/* V224: one readable four-step route. Own the text grid, not just icon size. */
html body.public-site #main-content .v209-home-page .cl-study-path{
 --study-step-icon:112px;
 margin-block:36px 28px;padding-block:32px;
 border-block:1px solid var(--ch-border-default);background:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path>h3{
 max-width:30ch;margin:0 0 32px;padding:0;
 font-size:clamp(28px,2.6vw,36px);font-weight:720;line-height:1.2;
 letter-spacing:-.025em;color:var(--ch-text-primary,var(--cl-ink));text-wrap:balance;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:28px!important;margin:0;padding:0;list-style:none;align-items:start;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route::before{content:none}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li{
 display:block;position:relative;min-width:0;margin:0;padding:0;border:0;background:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li:not(:last-child)::after{
 content:"";display:block;position:absolute;inset:56px -8px auto 132px;
 height:1px;background:var(--ch-border-default);pointer-events:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li>:is(a,.sr145-static){
 display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:112px auto;
 justify-items:start;justify-content:stretch;align-items:start;align-content:start;
 gap:20px;width:100%;min-width:0;min-height:0;margin:0;padding:0!important;
 text-align:left;text-decoration:none;background:none;border:0;border-radius:0;box-shadow:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li>:is(a,.sr145-static)>img{
 display:block;grid-column:1;grid-row:1;
 width:112px;height:112px;inline-size:112px;block-size:112px;max-width:none;
 margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;object-fit:contain;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;
 justify-content:stretch;justify-items:start;align-items:start;align-content:start;
 width:100%;min-width:0;gap:8px;margin:0;padding:0;text-align:left;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-index{
 display:block!important;grid-column:1;grid-row:1;margin:0;padding:0;
 color:var(--ch-link-default,#2455db);font-size:16px!important;font-weight:650;line-height:1.25;
 font-variant-numeric:tabular-nums;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy>strong{
 display:block;grid-column:1;grid-row:2;min-height:0;margin:0;padding:0;
 color:var(--ch-text-primary,var(--cl-ink));font-size:24px!important;font-weight:700;line-height:1.3;
 text-align:left;text-wrap:wrap;overflow-wrap:normal;word-break:normal;hyphens:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy>span:last-child{
 display:block;grid-column:1;grid-row:3;margin:0;padding:0;max-width:26ch;
 color:var(--ch-text-secondary,var(--cl-muted));font-size:18px!important;line-height:1.55;
 text-align:left;text-wrap:wrap;overflow-wrap:normal;word-break:normal;hyphens:none;
}
html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route a:focus-visible{
 outline:3px solid var(--ch-focus-ring,#779dff)!important;outline-offset:8px!important;border-radius:8px;
}
@media(hover:hover) and (pointer:fine){
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route a:hover .sr145-copy>strong{color:var(--ch-link-default,#2455db)}
}
@media(max-width:1000px){
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route{grid-template-columns:minmax(0,1fr);gap:28px!important}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li>:is(a,.sr145-static){grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto;gap:28px;min-height:128px}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy{grid-column:2;grid-row:1}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy>span:last-child{max-width:44ch}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li:not(:last-child)::after{inset:124px auto -16px 56px;width:1px;height:auto}
}
@media(max-width:600px){
 html body.public-site #main-content .v209-home-page .cl-study-path{--study-step-icon:88px;margin-block:28px;padding-block:28px}
 html body.public-site #main-content .v209-home-page .cl-study-path>h3{font-size:28px;margin-bottom:28px}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route{gap:24px!important}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li>:is(a,.sr145-static){grid-template-columns:88px minmax(0,1fr);gap:20px;min-height:132px}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li>:is(a,.sr145-static)>img{width:88px;height:88px;inline-size:88px;block-size:88px}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy>strong{font-size:22px!important;line-height:1.3}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route .sr145-copy>span:last-child{font-size:17px!important;line-height:1.5}
 html body.public-site #main-content .v209-home-page .cl-study-path .cl-study-route.sr145-route>li:not(:last-child)::after{inset:100px auto -12px 44px}
}

/* V227 — home hierarchy only. Existing semantic colours and Glisse engine. */
html body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h130.h139.h145 h1 > span {
  color:var(--ch-link-default,var(--theme-link,#2455d6))!important;
}
html[data-theme="dark"] body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h130.h139.h145 h1 > span {color:#78d7ff!important;}

/* The search stays a dense, readable surface. No extra glass panel or blur. */
html body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h145 .h146-topic-entry .ht144 > summary {
  border-color:color-mix(in srgb,var(--ch-link-default,var(--theme-link,#2455d6)) 34%,var(--theme-line,#d7e0ea));
  background:color-mix(in srgb,var(--ch-link-default,var(--theme-link,#2455d6)) 5%,var(--theme-surface,#fff))!important;
}
html body .chronika-learning:is(.v209-home-page,.cl-home-surface) #formats .chronika-v3-bundle .v3-bundle-saving:not([hidden]) {
  padding:12px 16px;
  border-radius:16px;
  border-color:color-mix(in srgb,currentColor 34%,transparent);
  background:color-mix(in srgb,currentColor 12%,transparent);
}

/* fit() reads these real lens/rim parameters at activation or refit.
   No new RAF, geometry work, blur or filter graph is introduced. Commercial
   markers remain the responsibility of existing ownership/availability code. */
html body :is(.v209-home-page,.cl-home-surface) .h130-actions :is(a.h146-one-topic,a[data-hero-free-link])[data-ch-glisse],
html body :is(.v209-home-page,.cl-home-surface) .h130-actions a.hero-access[data-commercial-action][data-ch-glisse],
html body :is(.v209-home-page,.cl-home-surface) #formats .v3-bundle-purchase > :is(a.cl-button,button.cl-button[data-action="product"][data-id="library-full"])[data-commercial-action][data-ch-glisse] {
  --lg-glass-bend:.60;
  --lg-glass-dispersion:.30;
  --lg-rim-shine:.56;
}
html[data-theme="dark"] body :is(.v209-home-page,.cl-home-surface) .h130-actions :is(a.h146-one-topic,a[data-hero-free-link])[data-ch-glisse],
html[data-theme="dark"] body :is(.v209-home-page,.cl-home-surface) .h130-actions a.hero-access[data-commercial-action][data-ch-glisse],
html[data-theme="dark"] body :is(.v209-home-page,.cl-home-surface) #formats .v3-bundle-purchase > :is(a.cl-button,button.cl-button[data-action="product"][data-id="library-full"])[data-commercial-action][data-ch-glisse] {
  --lg-rim-shine:.38;
}

/* Keep the existing solid/reduced-transparency and forced-colour policies. */
@media (forced-colors:active) {
  html body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h130.h139.h145 h1 > span,
  html[data-theme] body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h130.h139.h145 h1 > span {color:CanvasText!important;}
  html body .chronika-learning:is(.v209-home-page,.cl-home-surface) .h145 .h146-topic-entry .ht144 > summary {border-color:ButtonText;background:ButtonFace!important;}
  html body .chronika-learning:is(.v209-home-page,.cl-home-surface) #formats .chronika-v3-bundle .v3-bundle-saving:not([hidden]) {background:Canvas;border-color:CanvasText;}
}
/* The materials workshop, three benefits and the purchase offer have different
   jobs. Let the workshop lead with the selected format, the benefits with the
   teaching interaction and the offer with the price supplied by the server. */
html body .chronika-learning #materials-demo .v209-workbench-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(88px, 15vw, 192px);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(12px, 4vw, 48px);
  row-gap: 12px;
  max-inline-size: none;
  margin: 0 0 clamp(22px, 3vw, 36px);
  padding: clamp(22px, 3vw, 38px);
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  background: radial-gradient(ellipse at 85% 80%, #8fb8ff 0%, transparent 30%),
              linear-gradient(116deg, #e0eafa 10%, #c9dcfb 66%, #a8c6fa 100%);
  color: #142c53;
}
html body .chronika-learning #materials-demo .v209-workbench-heading h2 {
  grid-column: 1; align-self: end;
  max-inline-size: 21ch; margin: 0;
  color: inherit; text-wrap: balance;
  font-size: clamp(29px, 4.7vw, 58px); line-height: 1.02;
}
html body .chronika-learning #materials-demo .v209-workbench-heading p {
  grid-column: 1; align-self: start;
  margin: 0; color: #304a70; max-inline-size: 49ch;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45;
}
/* The puzzle is an existing catalogue render: four formats assemble one topic. */
html body .chronika-learning #materials-demo .v209-workbench-heading::after {
  content: "";
  grid-column: 2; grid-row: 1 / 3;
  place-self: center; pointer-events: none;
  inline-size: 100%; max-inline-size: 172px; aspect-ratio: 1;
  background: url("/assets/education-v79/3d-puzzle-cobalt-f00dc557e8.webp") center / contain no-repeat;
  transform: rotate(-9deg);
}
html[data-theme="dark"] body .chronika-learning #materials-demo .v209-workbench-heading {
  background: radial-gradient(ellipse at 84% 75%, #326897 0%, transparent 34%),
              linear-gradient(116deg, #152d4c 9%, #193c65 66%, #234f78);
  color: #f3f8ff;
}
html[data-theme="dark"] body .chronika-learning #materials-demo .v209-workbench-heading p {color: #d4e5fb;}
html body .chronika-learning #materials-demo .v209-workbench-rail h3 {
  font-size: clamp(21px, 2.4vw, 30px); line-height: 1.13; letter-spacing: -.025em;
}
html body .chronika-learning #materials-demo .v209-workbench-rail [data-cl-tab][aria-selected="true"] {
  outline: 2px solid var(--ch-link-default, #2455d6);
  outline-offset: -2px;
}
html body .chronika-learning #materials-demo .v209-workbench-rail [data-cl-tab]:focus-visible {
  outline: 3px solid var(--ch-link-default, #2455d6); outline-offset: 3px;
}

html body .chronika-learning :is(#benefits.bf219,#benefits .bf219) > h2,
html body .chronika-learning #benefits .v219-benefits-fallback h2 {
  font-size: clamp(32px, 5vw, 62px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 clamp(16px, 2vw, 24px); text-wrap: balance;
}
html body .chronika-learning #benefits .bf219-scene {
  grid-template-columns: minmax(232px, .8fr) minmax(0, 1.4fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding: 0;
  border: 0; background: transparent;
}
html body .chronika-learning #benefits .bf219-promise {
  --bf-paper: #dfeafa; --bf-light: #a8caff; --bf-ink: #122d57; --bf-sub: #314d73;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: 15px;
  padding: clamp(22px, 2.6vw, 36px);
  background: radial-gradient(ellipse at 57% 83%, var(--bf-light), transparent 54%), var(--bf-paper);
  border-radius: 20px;
  color: var(--bf-ink);
}
html body .chronika-learning #benefits .bf219:has(.bf219-tabs > :nth-child(2)[data-state="active"]) .bf219-promise {
  --bf-paper: #d9ecf4; --bf-light: #a1d6eb;
}
html body .chronika-learning #benefits .bf219:has(.bf219-tabs > :nth-child(3)[data-state="active"]) .bf219-promise {
  --bf-paper: #e3e6fb; --bf-light: #b4bff0;
}
html[data-theme="dark"] body .chronika-learning #benefits .bf219 .bf219-promise {
  --bf-paper: #192e50; --bf-light: #375a92; --bf-ink: #f0f6ff; --bf-sub: #d3e2f8;
}
html[data-theme="dark"] body .chronika-learning #benefits .bf219:has(.bf219-tabs > :nth-child(2)[data-state="active"]) .bf219-promise {
  --bf-paper: #133346; --bf-light: #295971;
}
html[data-theme="dark"] body .chronika-learning #benefits .bf219:has(.bf219-tabs > :nth-child(3)[data-state="active"]) .bf219-promise {
  --bf-paper: #252c4f; --bf-light: #454e80;
}
html body .chronika-learning #benefits .bf219-promise h3 {
  grid-column: 1; grid-row: 1; margin: 0; color: inherit;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.08; text-wrap: balance;
}
html body .chronika-learning #benefits .bf219-promise > p {
  grid-column: 1; grid-row: 2; margin: 0;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.46; color: var(--bf-sub);
}
html body .chronika-learning #benefits .bf219-model {
  grid-column: 1; grid-row: 3; justify-self: center; align-self: center;
  width: min(100%, 244px); height: auto; aspect-ratio: 1; margin: 0;
  object-fit: contain;
}
html body .chronika-learning #benefits .bf219-interaction {
  min-width: 0; padding-block: clamp(8px, 1.7vw, 24px);
}
html body #main-content .chronika-learning #formats .chronika-v3-bundle {
  background: radial-gradient(ellipse at 50% 54%, #4879dc 0%, transparent 44%),
              linear-gradient(110deg, #16378b 0%, #1b49bb 64%, #173d9c 100%) !important;
}
html[data-theme="dark"] body #main-content .chronika-learning #formats .chronika-v3-bundle {
  background: radial-gradient(ellipse at 50% 54%, #415fad 0%, transparent 44%),
              linear-gradient(110deg, #142951 0%, #193772 65%, #182e5c 100%) !important;
}
/* Book + target match the two parts of the bundle; they are decorative and
   never participate in checkout, price visibility or keyboard navigation. */
html body .chronika-learning #formats .chronika-v3-bundle > .v3-bundle-art {
  position: relative; isolation: isolate; justify-self: center;
  inline-size: min(100%, 270px);
}
html body .chronika-learning #formats .v3-bundle-art > img {
  display: block; object-fit: contain;
  width: 78% !important; max-width: 100%; block-size: auto; margin: 0 16% 0 6%;
}
html body .chronika-learning #formats .v3-bundle-art::after {
  content: ""; position: absolute; inset: auto 0 0 auto;
  inline-size: 50%; aspect-ratio: 1; pointer-events: none;
  background: url("/assets/education-v79/3d-target-blue.webp") center / contain no-repeat;
}
@media (max-width: 800px) {
  html body .chronika-learning #benefits .bf219-scene {
    grid-template-columns: 1fr; gap: 16px;
  }
  html body .chronika-learning #benefits .bf219-promise {
    grid-template-columns: minmax(0,1fr) clamp(94px, 24vw, 158px);
    gap: 9px 14px; align-items: center;
  }
  html body .chronika-learning #benefits .bf219-promise h3 {grid-column:1; grid-row:1;}
  html body .chronika-learning #benefits .bf219-promise > p {grid-column:1; grid-row:2;}
  html body .chronika-learning #benefits .bf219-model {grid-column:2; grid-row:1 / 3; width:100%;}
}
@media (max-width: 520px) {
  html body .chronika-learning #materials-demo .v209-workbench-heading {
    grid-template-columns:minmax(0,1fr) 82px; padding:20px; gap:10px;
  }
  html body .chronika-learning #materials-demo .v209-workbench-heading h2 {grid-column:1;grid-row:1;}
  html body .chronika-learning #materials-demo .v209-workbench-heading p {grid-column:1 / -1;grid-row:2;}
  html body .chronika-learning #materials-demo .v209-workbench-heading::after {grid-row:1;}
  html body .chronika-learning #benefits .bf219-promise {padding:18px;}
  html body .chronika-learning #benefits .bf219-promise > p {grid-column:1 / -1; grid-row:2;}
  html body .chronika-learning #benefits .bf219-model {grid-row:1;}
  html body #main-content .chronika-learning #formats .chronika-v3-bundle {
    grid-template-columns: minmax(0, 1fr) clamp(70px, 23vw, 116px) !important;
    grid-template-areas: "copy book" "purchase purchase";
    gap: 16px 8px;
  }
  html body #main-content .chronika-learning #formats .v3-bundle-art {
    inline-size: 100%; max-inline-size: 116px;
  }
  html body #main-content .chronika-learning #formats .ch-bundle-includes li {gap:6px;}
}
@media (forced-colors: active) {
  html body .chronika-learning #materials-demo .v209-workbench-heading,
  html body .chronika-learning #benefits .bf219 .bf219-promise,
  html body #main-content .chronika-learning #formats .chronika-v3-bundle,
  html[data-theme="dark"] body #main-content .chronika-learning #formats .chronika-v3-bundle {
    color: CanvasText !important; background: Canvas !important;
  }
  html body .chronika-learning #materials-demo .v209-workbench-heading p,
  html body .chronika-learning #benefits .bf219-promise > p {color:CanvasText !important;}
  html body .chronika-learning #materials-demo .v209-workbench-rail [data-cl-tab][aria-selected="true"] {outline-color:Highlight;}
}
/* Gallery light. The light belongs to the page, so it never ends at a card
   boundary. One viewport-sized sheet, no blur, scroll listener or frame loop. */
body.public-site,html[data-client-surface="website"] body:has(.cl-home-surface) {
  --ch228-wash-left:rgb(84 152 221 / .15);
  --ch228-wash-right:rgb(89 111 222 / .12);
  --ch228-polished:rgb(255 255 255 / .57);
  --ch228-bounce:rgb(115 190 239 / .18);
  isolation:isolate;
}
html[data-theme="dark"] :is(body.public-site,body:has(.cl-home-surface)) {
  --ch228-wash-left:rgb(34 137 194 / .21);
  --ch228-wash-right:rgb(83 105 205 / .20);
  --ch228-polished:rgb(218 242 255 / .40);
  --ch228-bounce:rgb(100 196 251 / .27);
}
body.public-site::before,html[data-client-surface="website"] body:has(.cl-home-surface)::before {
  content:"";pointer-events:none;position:fixed;z-index:-1;inset:-3vh -3vw;
  background:radial-gradient(ellipse 58% 62% at 0% 38%,var(--ch228-wash-left),transparent 82%),
             radial-gradient(ellipse 54% 70% at 98% 66%,var(--ch228-wash-right),transparent 83%);
}
/* Transform only, for a finite slow entrance. Never animate filters, texture
   size, layout or paint on scroll; leave a static end state at rest. */
@media(prefers-reduced-motion:no-preference) {
  html:not([data-motion-static]):not([data-ch-appearance-motion="reduce"]) body.public-home::before,
  html[data-client-surface="website"]:not([data-motion-static]):not([data-ch-appearance-motion="reduce"]) body:has(.cl-home-surface)::before {
    animation:ch228-gallery-light 4.8s ease-in-out both;
  }
}
@supports (animation-timeline:scroll()) {
  @media(prefers-reduced-motion:no-preference) {
    html:not([data-motion-static]):not([data-ch-appearance-motion="reduce"]) body.public-home::before,
    html[data-client-surface="website"]:not([data-motion-static]):not([data-ch-appearance-motion="reduce"]) body:has(.cl-home-surface)::before {
      animation:ch228-gallery-light 4.8s ease-in-out both,ch228-reading-light auto linear both;
      animation-timeline:auto,scroll(root block);
    }
  }
}
@keyframes ch228-reading-light {
  0%,100% {translate:0 0}
  24%,72% {translate:1.6% -1.6%}
  49% {translate:-1.9% 1.3%}
}
@keyframes ch228-gallery-light {
  from {transform:translate3d(-2.4%,1.8%,0)}
  55% {transform:translate3d(1.8%,-1.6%,0)}
  to {transform:translate3d(0,0,0)}
}
/* Existing Glisse lens distorts the scene; the existing rim span catches a
   diagonal skylight. Keep labels above the highlights and all controls hittable. */
@media(forced-colors:none) and (prefers-contrast:no-preference) {
  html:not([data-ch-appearance-transparency="solid"]) :is(body.public-site,body:has(.cl-home-surface)) :is(a,button,summary)[data-ch-glisse]:not(:disabled,[aria-busy="true"],[aria-disabled="true"],[data-offer-state]:not([data-commercial-action])) {
    --lg-glass-bend:.72!important; --lg-glass-dispersion:.32!important; --lg-rim-shine:.62!important;
  }
  html:not([data-ch-appearance-transparency="solid"]) :is(body.public-site,body:has(.cl-home-surface)) :is(a,button,summary)[data-ch-glisse]:not([aria-disabled="true"],:disabled) > .ch-glisse-rim {
    background-image:var(--lg-rim,linear-gradient(transparent,transparent)),
      radial-gradient(ellipse 82% 75% at 17% -20%,var(--ch228-polished),transparent 96%),
      radial-gradient(ellipse 70% 45% at 93% 110%,var(--ch228-bounce),transparent 98%)!important;
    box-shadow:inset 0 1px 1px rgb(255 255 255 / .48),inset 1px 0 1px rgb(255 255 255 / .19),inset 0 -1px 1px rgb(24 48 98 / .18);
  }
  html[data-theme="dark"]:not([data-ch-appearance-transparency="solid"]) :is(body.public-site,body:has(.cl-home-surface)) :is(a,button,summary)[data-ch-glisse]:not([data-offer-state]:not([data-commercial-action])) {--lg-rim-shine:.47!important}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active),print {
  :is(body.public-site,body:has(.cl-home-surface))::before {display:none!important;animation:none!important}
}
html[data-ch-appearance-transparency="solid"] :is(body.public-site,body:has(.cl-home-surface))::before {display:none;animation:none}

/* Informational first-visit notice uses normal document flow on eligible screens. */
html body .analytics-cookie-notice[data-consent-mode="initial"] {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:4px 16px; padding:6px 14px; border-radius:12px;
}
/* The painted geography extends behind the first-visit notice on wide screens. */
body.public-home .analytics-cookie-notice[data-consent-mode="initial"] {
  position: relative;
  z-index: 1;
}
html body .analytics-cookie-notice .analytics-consent-copy {
  flex:1 1 30ch; margin:0; font-size:.875rem; line-height:1.45;
}
html body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
  display:flex; align-items:center; gap:12px; min-width:0; margin:0;
}
html body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions > * {flex:none; width:auto; white-space:nowrap;}
html body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions .btn {padding-inline:12px; min-height:44px;}
html body .analytics-consent .analytics-notice-settings {
  min-height:44px; padding:0; border:0; border-radius:4px; background:transparent;
  color:var(--theme-link, #2455d6); font:inherit; font-size:.875rem;
  text-decoration:underline; text-underline-offset:.18em; cursor:pointer;
}
html[data-theme="dark"] body .analytics-consent .analytics-notice-settings {color:#a5c2ff;}
@media (forced-colors:active) {
  html body .analytics-consent .analytics-notice-settings {color:LinkText;}
}
/* Enlarge the artwork inside its existing space. The adjacent headings and
   controls keep their positions when the selected benefit changes. */
html body .chronika-learning #benefits .bf219-model,
html body .chronika-learning #materials-demo .v209-workbench-heading::after {
  scale: 1.12;
}

/* The actual document, player or exercise supplies the visual boundary. */
html body .chronika-learning #materials-demo .v209-workbench .cl-material-stage {
  padding: clamp(8px, 1.25vw, 18px);
  border: 0;
  box-shadow: none;
  background: transparent;
}
html body .chronika-learning #materials-demo .v209-workbench-heading {
  margin-block-end: clamp(18px, 2.1vw, 28px);
}

/* Glisse reads these tokens directly. Use the same selected-tab language
   for native benefit tabs and the format selector managed by Glisse. */
html body .chronika-learning :is(#benefits, #materials-demo) {
  --tab-active-fill: #deebff;
  --tab-active-ink: #173e84;
  --tab-edge: #6b8dcd;
  --action-wash: #e8f0fc;
}
html[data-theme="dark"] body .chronika-learning :is(#benefits, #materials-demo) {
  --tab-active-fill: #254774;
  --tab-active-ink: #f1f7ff;
  --tab-edge: #83b4ed;
  --action-wash: #20354f;
}
html body .chronika-learning #benefits .bf219-tabs > [aria-selected="true"],
html body .chronika-learning #materials-demo .cl-tabs [data-cl-tab][aria-selected="true"] {
  --ch-nav-tint: color-mix(in srgb, var(--tab-active-fill) 90%, transparent);
  --ch-nav-solid: var(--tab-active-fill);
  --ch-nav-ink: var(--tab-active-ink);
  background-color: var(--tab-active-fill);
  color: var(--tab-active-ink);
  outline: 2px solid var(--tab-edge);
  outline-offset: -2px;
}
html body .chronika-learning #materials-demo .v209-workbench-rail > .cl-inline-link {
  align-self: flex-start;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--action-wash);
  color: var(--tab-active-ink);
  text-decoration: none;
}
html body .chronika-learning #benefits .bf219-footer > .ch-button:not(.ch-button-secondary) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 3px 10px -5px rgb(24 66 150 / .36);
}
@media (hover: hover) {
  html body .chronika-learning #benefits .bf219-tabs > [role="tab"]:hover,
  html body .chronika-learning #materials-demo .cl-tabs [data-cl-tab]:hover,
  html body .chronika-learning #materials-demo .v209-workbench-rail > .cl-inline-link:hover {
    outline: 1px solid var(--tab-edge);
    outline-offset: -1px;
  }
}
html body .chronika-learning :is(#benefits, #materials-demo)
  :is(.bf219-tabs > [role="tab"], .cl-tabs [data-cl-tab], .v209-workbench-rail > a, .bf219-footer > a):focus-visible {
  outline: 3px solid var(--ch-focus-ring, #3974dd);
  outline-offset: 3px;
}
@media (forced-colors:active) {
  html body .chronika-learning :is(#benefits, #materials-demo) [role="tab"][aria-selected="true"],
  html body .chronika-learning :is(#benefits, #materials-demo) :focus-visible {
    outline-color: Highlight;
  }
}
/* The book and target share one illustration slot. Compensate for whitespace
   inside the original square renders instead of making the offer taller. */
body #main-content .chronika-learning #formats .chronika-v3-bundle > .v3-bundle-art {
  width: min(100%, 304px);
  max-inline-size: 304px;
}
body #main-content .chronika-learning #formats .v3-bundle-art > img {
  margin: 0;
  scale: 1.13;
  transform-origin: 48% 58%;
}
body #main-content .chronika-learning #formats .v3-bundle-art::after {
  inline-size: 56%;
  inset-inline-end: -1%;
  inset-block-end: -2%;
}
/* On the pricing page, enlarge the object inside the art slot. Its optical
   bounds stay in the slot and the purchasing controls keep their own row. */
body #main-content .v209-pricing-page .v209-full-offer .v209-full-art img,
body #main-content.v209-pricing-page .v209-full-offer .v209-full-art img {
  scale: 1.16;
  transform-origin: 48% 51%;
}
@media (min-width: 1051px) {
  body #main-content .v209-full-offer .v209-full-art {
    inset-inline-end: 8px;
  }
  body #main-content .v209-full-offer .v209-full-copy {
    padding-inline-end: clamp(184px, 16vw, 234px);
  }
}
@media (max-width: 520px) {
  html body #main-content .chronika-learning #formats .chronika-v3-bundle {
    grid-template-columns: minmax(0, 1fr) clamp(90px, 31vw, 146px) !important;
  }
  html body #main-content .chronika-learning #formats .chronika-v3-bundle > .v3-bundle-art {
    inline-size: 100%;
    max-inline-size: 146px;
  }
}
/* The same book follows the complete programme into its product page,
   catalogue card and checkout header. Leave ordinary topic covers alone. */
.cl-ad-landing--full .cl-ad-book img {
  width: min(100%, 395px);
}
@media (min-width: 701px) {
  .cl-ad-landing.cl-ad-landing--full .cl-ad-lead {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}
@media (max-width: 700px) {
  .cl-ad-landing.cl-ad-landing--full .cl-ad-lead {
    grid-template-columns: minmax(0, 1fr) clamp(72px, 23vw, 136px);
    gap: 0 clamp(8px, 3vw, 20px);
  }
  .cl-ad-landing--full .cl-ad-lead > div:first-child { display: contents; }
  .cl-ad-landing--full .cl-ad-lead > div:first-child > :not(h1,.cl-ad-kicker) { grid-column: 1 / -1; }
  .cl-ad-landing--full .cl-ad-lead .cl-ad-kicker { grid-column: 1; grid-row: 1; }
  .cl-ad-landing--full .cl-ad-lead h1 { grid-column: 1; grid-row: 2; }
  .cl-ad-landing--full .cl-ad-book {
    display: grid;
    grid-column: 2; grid-row: 1 / 3;
    align-self: center;
  }
}
html body .ch-package-full.chronika-v3-bundle > .v3-bundle-art {
  width: min(100%, 264px);
}
@media (max-width: 480px) {
  html body .ch-package-full.chronika-v3-bundle > .v3-bundle-art {
    width: min(100%, 148px);
  }
}
.pf115-purchase.v3-bundle-dialog > .modal-cover {
  grid-template-columns: minmax(0, 1fr) clamp(88px, 27vw, 166px);
}

/* A compass marks the invitation to choose a study direction. Keep the test
   itself on its existing reading surface after an attempt begins or resumes. */
html body #find-start {
  --entry-paper: #e3f5f4;
  --entry-edge: #a0cdce;
  --entry-light: #a5dbde;
  --entry-ink: #142f43;
  --entry-muted: #355366;
  --entry-button: #125267;
  --entry-button-ink: #fff;
}
html[data-theme="dark"] body #find-start {
  --entry-paper: #122836;
  --entry-edge: #426974;
  --entry-light: #1c5564;
  --entry-ink: #f2fbff;
  --entry-muted: #c4e0e6;
  --entry-button: #99e1e3;
  --entry-button-ink: #0b3444;
}
html body #find-start .ch-inline-check:has(.ch-check-intro-compact),
html body #find-start .v209-inline-check:has(> a.cl-button:only-child) {
  padding: clamp(20px, 3.4vw, 46px);
  color: var(--entry-ink);
  border: 1px solid var(--entry-edge);
  border-radius: 24px;
  background: radial-gradient(ellipse 37% 96% at 88% 27%, var(--entry-light), transparent 100%), var(--entry-paper);
  box-shadow: none;
}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(142px, 21vw, 260px);
  align-items: center;
  gap: 12px clamp(20px, 4vw, 68px);
  max-inline-size: none;
}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy > * {grid-column: 1;}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy::after,
html body #find-start .v209-inline-check:has(> a.cl-button:only-child)::after {
  content: "";
  grid-column: 2; grid-row: 1 / span 4;
  justify-self: center;
  inline-size: 100%; max-inline-size: 254px; aspect-ratio: 1;
  pointer-events: none;
  background: url("/assets/education-v79/3d-compass-blue.webp") center / contain no-repeat;
}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy > h2 {
  color: var(--entry-ink); margin: 0;
  font-size: clamp(30px, 3.8vw, 53px); line-height: 1.06;
  letter-spacing: -.035em; max-inline-size: 22ch;
  text-wrap: balance;
}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy > p {
  color: var(--entry-ink); margin: 0; max-inline-size: 55ch;
  line-height: 1.48 !important;
}
html body #find-start .ch-check-intro-compact .ch-check-intro-copy > p.ch-check-compact-access {
  color: var(--entry-muted); font-size: 16px !important;
}
html body #find-start .ch-check-intro-compact .ch-check-main-action,
html body #find-start .v209-inline-check > a.cl-button:only-child {
  justify-self: start;
  min-height: 48px;
  padding: 12px 21px;
  color: var(--entry-button-ink) !important;
  border: 1px solid color-mix(in srgb, var(--entry-button) 80%, var(--entry-ink));
  border-radius: 999px;
  background: radial-gradient(ellipse 80% 90% at 15% -25%, rgb(255 255 255 / .33), transparent 100%), var(--entry-button) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .32), 0 4px 9px -6px rgb(32 37 48 / .5);
}
html body #find-start .ch-check-intro-compact details.ch-check-compact-recovery {
  grid-column: 1 / -1; margin: 4px 0 0; padding: 5px 0 0;
  border-color: var(--entry-edge); color: var(--entry-ink);
}
html body #find-start .ch-inline-check:has(.ch-check-intro-compact) > .ch-inline-alternatives {
  margin: 0; padding: 0; border: 0; color: var(--entry-ink);
}
html body #find-start .ch-inline-check:has(.ch-check-intro-compact) :is(summary, .ch-text-link, details a) {
  color: var(--entry-ink);
}
html body #find-start .v209-inline-check:has(> a.cl-button:only-child) {
  display: grid; grid-template-columns: minmax(0,1fr) clamp(65px, 13vw, 110px);
  align-items: center; gap: 16px;
}
html body #find-start .v209-inline-check:has(> a.cl-button:only-child)::after {grid-row: 1;}
@media (max-width: 600px) {
  html body #find-start .ch-check-intro-compact .ch-check-intro-copy {
    grid-template-columns: minmax(0,1fr) clamp(75px, 23vw, 116px);
    gap: 12px;
  }
  html body #find-start .ch-check-intro-compact .ch-check-intro-copy > * {grid-column: 1 / -1;}
  html body #find-start .ch-check-intro-compact .ch-check-intro-copy > h2 {
    grid-column: 1; grid-row: 1;
    font-size: clamp(24px, 6vw, 32px);
    text-wrap: initial;
  }
  html body #find-start .ch-check-intro-compact .ch-check-intro-copy::after {grid-row: 1;}
  html body #find-start #public-inline-check-preview .ch-check-intro-compact .ch-check-main-action {
    justify-self: stretch; padding-inline: 12px; gap: 7px; font-size: 17px !important;
  }
}
@media (hover:hover) {
  html body #find-start .ch-check-intro-compact .ch-check-main-action:hover:not(:disabled),
  html body #find-start .v209-inline-check > a.cl-button:only-child:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 5px 14px -6px rgb(27 52 85 / .48);
  }
}
html body #find-start .ch-inline-check:has(.ch-check-intro-compact) :focus-visible,
html body #find-start .v209-inline-check > a.cl-button:focus-visible {outline: 3px solid var(--entry-ink); outline-offset: 4px;}
@media (forced-colors:active) {
  html body #find-start .ch-inline-check:has(.ch-check-intro-compact),
  html body #find-start .v209-inline-check:has(> a.cl-button:only-child) {
    --entry-ink: CanvasText; --entry-muted: CanvasText; --entry-edge: CanvasText;
    background: Canvas; color: CanvasText;
  }
  html body #find-start .ch-check-intro-compact .ch-check-main-action,
  html body #find-start .v209-inline-check > a.cl-button:only-child {
    background: ButtonFace !important; border: 1px solid ButtonText; color: ButtonText !important; box-shadow: none;
  }
}

/* Visitors can search directly below the catalogue heading. */
.public-site .v209-page-intro .v209-catalog-search {
  grid-column: 1 / -1;
  margin: 16px 0 6px;
  max-width: 48rem;
}
@media (max-width: 760px) {
  .public-site .v209-catalog-page .v209-page-intro { gap: 10px; padding: 4px 0 12px; }
  .public-site .v209-page-intro .v209-catalog-search { width: 100%; margin: 0; }
  .public-site .v209-page-intro .v209-catalog-search p { margin: 6px 0 0; }
  .public-site .v209-pricing-page .v209-pricing-heading { padding: 4px 0 16px; }
  .public-site .v209-pricing-page .v209-pricing-heading h1 { margin: 0 0 12px; }
  .public-site .v209-pricing-page .v209-entry-prices { gap: 4px 14px; margin: 0 0 4px; }
}

/* Keep the native offer, price and action together at the start of the card. */
.public-site .v209-pricing-page .v209-full-offer[data-format="full"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(112px, 13vw, 200px);
  grid-template-areas:
    "title art"
    "purchase art"
    "intro intro"
    "facts facts"
    "boundary boundary";
  gap: 16px 20px;
  align-items: start;
}
.public-site .v209-full-offer[data-format="full"] .v209-full-copy { display: contents; }
.public-site .v209-full-offer[data-format="full"] .v209-full-copy h2 { grid-area: title; margin: 0; }
.public-site .v209-full-offer[data-format="full"] .v209-full-copy > p { grid-area: intro; margin: 4px 0 0; max-width: 48ch; }
.public-site .v209-full-offer[data-format="full"] .v209-composition { grid-area: facts; margin: 0; }
.public-site .v209-full-offer[data-format="full"] .v209-full-art {
  grid-area: art;
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  margin: 0;
}
.public-site .v209-full-offer[data-format="full"] .v209-full-purchase {
  grid-area: purchase;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}
.public-site .v209-full-offer[data-format="full"] .v209-full-action {
  grid-area: auto;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 6px 0 0;
}
.public-site .v209-full-offer[data-format="full"] .v209-video-boundary { grid-area: boundary; margin: 0; }
@media (max-width: 560px) {
  .public-site .v209-pricing-page .v209-full-offer[data-format="full"] {
    grid-template-columns: minmax(0, 1fr) clamp(76px, 22vw, 106px);
    grid-template-areas:
      "title art"
      "purchase purchase"
      "intro intro"
      "facts facts"
      "boundary boundary";
    gap: 12px;
    align-items: center;
  }
  .public-site .v209-full-offer[data-format="full"] .v209-full-action { width: 100%; }
}

/* The review link sits beside its explanation whenever the panel itself is wide enough. */
.chronika-ui .ch-learner-next > [data-today-kind="diagnostic_review"] {
  container: diagnostic-review / inline-size;
}
@container diagnostic-review (min-width: 40rem) {
  .chronika-ui .ch-learner-next [data-today-kind="diagnostic_review"] .ch-today-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title action" "reason action";
    align-items: center;
    gap: 8px clamp(20px, 3vw, 48px);
  }
  .chronika-ui .ch-learner-next [data-today-kind="diagnostic_review"] h1 {
    grid-area: title;
    margin: 0;
  }
  .chronika-ui .ch-learner-next [data-today-kind="diagnostic_review"] .ch-today-main > p:not(.ch-today-eyebrow) {
    grid-area: reason;
    margin: 0;
  }
  .chronika-ui .ch-learner-next [data-today-kind="diagnostic_review"] .ch-today-action {
    grid-area: action;
    justify-self: end;
    width: max-content;
    max-width: 18rem;
    margin: 0;
  }
}

/* PDF programme illustration on the full-library offer. */
.public-site .page-heading:has(+ .public-product-detail[data-public-product="library-all"]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(76px, 15vw, 158px);
  align-items: center;
  column-gap: clamp(12px, 3vw, 36px);
}
.public-site .page-heading:has(+ .public-product-detail[data-public-product="library-all"])::after {
  content: "";
  inline-size: 100%;
  aspect-ratio: 1;
  background: url("/assets/education-v79/3d-notebook-cornflower-099c288fcb.webp") center / contain no-repeat;
  pointer-events: none;
}

/* Preserve the full wordmark at the default type size. When larger text no longer
   fits, the brand link keeps its accessible name and the compact symbol. */
@media (max-width: 380px) {
  .public-site .public-header .public-header-inner {
    container-type: inline-size;
    container-name: chronika-public-nav;
  }
  @container chronika-public-nav (max-width: 13rem) {
    .public-brand > span { display: none; }
  }
}

@media (max-width: 600px) {
  html body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
    max-inline-size: 100%;
    flex-wrap: wrap;
  }
  html body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions > * {
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* The topic is an action; progress has independently expanding content.
   Share this layout between the library and the Today fallback in every shell. */
.chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact {
  container: study-overview / inline-size;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-inline-size: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-library-focus {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-inline-size: 0;
  border-radius: 1rem;
}
.chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-library-focus.ch-continue-with-preview {
  grid-template-columns: minmax(0, 1fr) auto;
}
.chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-library-focus :is(h2, p, .ch-library-focus-actions > *) {
  max-inline-size: 100%;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-auto-progress {
  min-inline-size: 0;
  margin: 0;
}
.chronika-ui .ch-account-study .ch-auto-progress :is(.ch-auto-progress-evidence, .ch-auto-progress-week, .ch-auto-progress-metrics dt) {
  min-inline-size: 0;
  overflow-wrap: break-word;
}
@container study-overview (min-width: 42rem) {
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-auto-progress:has(.ch-auto-progress-evidence):has(.ch-auto-progress-week) {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3cqi, 2rem);
    align-items: start;
  }
  .chronika-ui .ch-account-study .ch-auto-progress > :is(header, .ch-auto-progress-scope, footer) { grid-column: 1 / -1; }
  .chronika-ui .ch-account-study .ch-auto-progress-evidence + .ch-auto-progress-week {
    margin: 0;
    padding: 0;
    padding-inline-start: clamp(1.25rem, 3cqi, 2rem);
    border-top: 0;
    border-inline-start: 1px solid var(--ch-border-default, #b5c7dc);
  }
}
/* Compose the topic as a compact row only when its own container has room. */
@container study-overview (min-width: 48rem) {
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact > .ch-library-focus.ch-continue-with-preview {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(1rem, 2.5cqi, 2rem);
    row-gap: .35rem;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > .ch-continue-preview {
    grid-area: 1 / 1 / 3 / 2;
    align-self: center;
    width: 4rem;
    height: 5rem;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > h2 {
    grid-area: 1 / 2; align-self: end;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > p {
    grid-area: 2 / 2; align-self: start;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > .ch-library-focus-actions {
    grid-area: 1 / 3 / 3 / 4;
    justify-self: end;
    justify-content: end;
    min-inline-size: 0;
    max-inline-size: 24rem;
    margin: 0;
  }
}
@container study-overview (max-width: 24rem) {
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-library-focus-actions { align-items: stretch; flex-direction: column; }
  .chronika-ui .ch-account-study .ch-auto-progress-metrics { gap: .6rem; }
  .chronika-ui .ch-account-study .ch-auto-progress-week ol { gap: .25rem; }
}

/* Scrolling tabs and headings must not read as additional nav items.
   Keep the glass controls and rim; give the shared header a solid backing. */
html[data-client-surface="website"] body:has(.ch-account-v80.ch-library) header.topbar[data-website-shell="ready"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--ch-surface-reading, #fff);
}
@media (forced-colors: active) {
  html[data-client-surface="website"] body:has(.ch-account-v80.ch-library) header.topbar[data-website-shell="ready"]::before {
    background: Canvas;
  }
}
@container study-overview (max-width: 47.999rem) {
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > .ch-continue-preview {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > h2 {
    grid-area: 1 / 1; align-self: end;
  }
  .chronika-ui .ch-account-v80.ch-library .ch-account-study.is-compact .ch-continue-with-preview > p {
    grid-area: 2 / 1; align-self: start;
  }
}

/* An embedded workspace can be much narrower than its host viewport. */
.chronika-ui .ch-personal-home .ch-learner-next {
  container: study-home / inline-size;
  min-inline-size: 0;
}
@container study-home (max-width: 41.999rem) {
  .chronika-ui .ch-personal-home .ch-learner-next > .ch-auto-progress:not(.is-compact) { display: block; }
  .chronika-ui .ch-personal-home .ch-learner-next .ch-auto-progress-week {
    margin-block-start: 1.25rem;
    padding: 1.25rem 0 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--ch-border-default, #b5c7dc);
  }
}

/* On phones a label and its value fit on one line; three narrow columns do not. */
@container study-overview (max-width: 25rem) {
  .chronika-ui .ch-account-study .ch-auto-progress .ch-auto-progress-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
  }
  .chronika-ui .ch-account-study .ch-auto-progress .ch-auto-progress-metrics > div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .chronika-ui .ch-account-study .ch-auto-progress .ch-auto-progress-metrics dd { order: 0; }
}
@container study-home (max-width: 25rem) {
  .chronika-ui .ch-learner-next .ch-auto-progress .ch-auto-progress-metrics { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .chronika-ui .ch-learner-next .ch-auto-progress .ch-auto-progress-metrics > div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .chronika-ui .ch-learner-next .ch-auto-progress .ch-auto-progress-metrics dd { order: 0; }
}


/* A compact, informational notice. Keep it in reach without allowing the sticky
   header or the mobile learning navigation to cover the two tap targets. */
html:root body .analytics-cookie-notice[data-consent-mode="initial"] {
  position: fixed; inset: auto 0 max(.75rem,env(safe-area-inset-bottom)) 0;
  z-index: 91; inline-size: max-content; max-inline-size: calc(100% - 1.5rem);
  box-sizing: border-box; margin: 0 auto; padding: 4px 8px 4px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0 14px; border-radius: 16px; background: var(--theme-surface,#fff);
  box-shadow: 0 3px 16px rgb(8 25 55 / .12);
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-copy {
  flex: 1 1 auto; font-size: .875rem; line-height: 1.4;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
  flex: 0 0 auto; gap: 4px;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-inline-size: 44px; min-block-size: 44px; padding-inline: 10px;
  box-sizing: border-box; white-space: nowrap; touch-action: manipulation;
}
html:root body .analytics-cookie-notice .analytics-notice-policy {
  font-size: .875rem; color: var(--theme-link,#214bc0); text-underline-offset: .17em;
}
html:is(.dark,[data-theme="dark"]) body .analytics-cookie-notice[data-consent-mode="initial"] {
  background: #17283d; color: #f3f7fd;
}
html:is(.dark,[data-theme="dark"]) body .analytics-cookie-notice .analytics-notice-policy { color: #b1ceff; }
@media (max-width: 660px) {
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] { inline-size: max-content; padding: 7px 10px; }
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-copy { flex-basis:100%; }
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions { margin-inline-start:auto; }
  html body[data-analytics-context="spa"] .analytics-cookie-notice[data-consent-mode="initial"] {
    bottom: calc(var(--chronika-mobile-nav-height,64px) + max(8px,env(safe-area-inset-bottom)));
  }
}
@media (forced-colors: active) {
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] {background: Canvas; color: CanvasText; border:1px solid CanvasText;}
  html:root body .analytics-cookie-notice .analytics-notice-policy {color:LinkText;}
}

/* First-visit consent and its settings share a small set of local colors. */
html:root body :is(.analytics-consent,.analytics-settings) {
  --consent-paper: #fff;
  --consent-tint: #f0f5ff;
  --consent-ink: #172d4b;
  --consent-copy: #364e68;
  --consent-edge: #bdcde0;
  --consent-link: #254ea7;
  --consent-top: #3468d8;
  --consent-base: #224ba9;
  --consent-on: #fff;
  --consent-focus: #1256cd;
  --consent-rim: rgb(255 255 255 / .52);
}
html:root:is(.dark,[data-theme="dark"]) body :is(.analytics-consent,.analytics-settings) {
  --consent-paper: #192a40;
  --consent-tint: #20344d;
  --consent-ink: #f0f6ff;
  --consent-copy: #c9d9ed;
  --consent-edge: #49617e;
  --consent-link: #abcaff;
  --consent-top: #b9d7ff;
  --consent-base: #8bb7fa;
  --consent-on: #102d50;
  --consent-focus: #b4dcff;
  --consent-rim: rgb(255 255 255 / .25);
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  container: chronika-cookie / inline-size;
  width: min(50.5rem, calc(100% - 1.5rem));
  max-inline-size: calc(100% - 1.5rem);
  padding: .875rem 1rem;
  border: 1px solid var(--consent-edge);
  border-radius: 1.375rem;
  color: var(--consent-ink);
  background: linear-gradient(115deg, var(--consent-tint), var(--consent-paper) 50%);
  box-shadow: inset 0 1px var(--consent-rim), 0 4px 18px rgb(14 36 69 / .14);
  max-block-size: calc(100dvh - 1.75rem);
  overflow-y: auto;
}
html:root body .analytics-cookie-notice .analytics-notice-layout {
  display: grid; min-width: 0; grid-column: 1 / -1;
  grid-template-columns: 3.25rem minmax(0,1fr) auto;
  grid-template-areas: "art title actions" "art copy actions";
  align-items: center; gap: .18rem .875rem;
}
html:root body .analytics-cookie-notice .analytics-notice-layout::before {
  content: ""; grid-area: art; align-self: center;
  display: block; width: 100%; aspect-ratio: 1;
  background: url("data:image/webp;base64,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") center/contain no-repeat;
  pointer-events: none;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-title {
  grid-area: title; margin: 0; color: inherit;
  font-size: 1.125rem; line-height: 1.18; font-weight: 700; letter-spacing: -.025em;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-copy {
  grid-area: copy; margin: 0; color: var(--consent-copy);
  font-size: .875rem; line-height: 1.35;
}
html:root body .analytics-cookie-notice .analytics-notice-policy,
html:root body .analytics-consent .analytics-consent-note {
  color: var(--consent-link); font-weight: 550;
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px;
}
html:root body .analytics-cookie-notice .analytics-notice-policy {
  display: inline-block; min-height: 24px; line-height: 24px; margin: 0;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
  grid-area: actions; display: flex; align-items: stretch; justify-content: start;
  gap: .5rem; min-width: 0; margin: 0;
}
html:root body .analytics-consent .analytics-consent-actions :is(.analytics-choice,[data-analytics-choice],[data-yandex-choice],.btn) {
  display: inline-flex; justify-content: center; align-items: center; gap: .4rem;
  width: auto; min-inline-size: 44px; min-block-size: 44px; box-sizing: border-box;
  padding: .55rem .8rem; border-radius: .875rem;
  appearance: none; -webkit-appearance: none; cursor: pointer; touch-action: manipulation;
  font-family: inherit; font-weight: 600; font-size: .875rem; line-height: 1.2;
  text-align: center; text-shadow: none; white-space: normal; word-break: normal;
  background: var(--consent-paper) !important; color: var(--consent-ink) !important;
  border: 1px solid var(--consent-edge) !important;
  box-shadow: inset 0 1px var(--consent-rim) !important;
}
html:root body .analytics-consent .analytics-consent-actions [data-yandex-choice="accept"] {
  --lg140-foreground: var(--consent-on);
  -webkit-text-fill-color: var(--consent-on);
  background: linear-gradient(168deg,var(--consent-top),var(--consent-base) 82%) !important;
  color: var(--consent-on) !important;
  border: 1px solid var(--consent-base) !important;
  box-shadow: inset 0 1px var(--consent-rim), 0 2px 5px rgb(23 56 119 / .16) !important;
}
html:root body .analytics-cookie-notice[data-consent-mode="initial"] [data-yandex-choice="accept"]::before {
  /* Three small bars identify the statistics action without changing its accessible name. */
  content: ""; flex: 0 0 14px; width: 14px; height: 14px;
  color: var(--consent-on);
  background: linear-gradient(var(--consent-on),var(--consent-on)) left bottom/3px 6px no-repeat,
              linear-gradient(var(--consent-on),var(--consent-on)) center bottom/3px 10px no-repeat,
              linear-gradient(var(--consent-on),var(--consent-on)) right bottom/3px 14px no-repeat;
}
html:root body .analytics-settings:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; box-sizing: border-box; padding: .4rem .8rem;
  border: 1px solid var(--consent-edge); border-radius: 2rem;
  color: var(--consent-link); background: var(--consent-paper);
  text-decoration: none; font-size: .8125rem; font-weight: 600;
  box-shadow: inset 0 1px var(--consent-rim), 0 1px 5px rgb(10 32 57 / .12);
}
html:root body .analytics-settings:not([hidden])::before {
  content: ""; flex: 0 0 13px; width: 13px; height: 14px;
  background: radial-gradient(circle at 4px 4px,currentColor 2px,transparent 2.5px),
              radial-gradient(circle at 9px 10px,currentColor 2px,transparent 2.5px),
              linear-gradient(currentColor,currentColor) left 3px/100% 1.5px no-repeat,
              linear-gradient(currentColor,currentColor) left 9px/100% 1.5px no-repeat;
}
html:root body .analytics-consent[data-consent-mode="manual"] {
  max-block-size: calc(100dvh - 2rem); overflow-y: auto;
  border: 1px solid var(--consent-edge); border-radius: 1.25rem;
  background: var(--consent-paper); color: var(--consent-ink);
}
html:root body .analytics-consent[data-consent-mode="manual"] .analytics-consent-copy {color: var(--consent-copy);}
html:root body .analytics-consent[data-consent-mode="manual"] > .analytics-notice-settings {
  display: flex; width: fit-content; align-items: center; justify-content: center;
  min-height: 44px; margin: .45rem auto 0; padding: .35rem .95rem;
  appearance: none; font-family: inherit;
  font-size: .875rem; font-weight: 600; line-height: 1.25;
  color: var(--consent-link); background: transparent; border: 1px solid transparent;
  border-radius: .85rem; text-decoration: none; cursor: pointer;
}
html:root body .analytics-consent[data-consent-mode="manual"] .analytics-consent-actions {
  display: grid; gap: .5rem; grid-template-columns: repeat(2,minmax(0,1fr));
}
html:root body .analytics-consent[data-consent-mode="manual"] [data-yandex-choice],
html:root body .analytics-consent[data-consent-mode="manual"] .analytics-consent-actions button:only-child,
html:root body .analytics-consent[data-consent-mode="manual"] .analytics-consent-actions button:nth-child(4) {
  grid-column: 1 / -1;
}
html:root body :is(.analytics-consent button,.analytics-consent a,.analytics-settings):focus-visible {
  outline: 3px solid var(--consent-focus); outline-offset: 2px;
}
@media (hover: hover) {
  html:root body .analytics-consent .analytics-choice:hover,
  html:root body .analytics-settings:hover {filter: brightness(1.055);}
}
@media (prefers-reduced-motion: no-preference) {
  html:root body .analytics-consent .analytics-choice {transition: transform 130ms ease-out, filter 130ms ease-out;}
  html:root body .analytics-consent .analytics-choice:active {transform: translateY(1px);}
}
/* The available text measure decides when the actions wrap, including in product dialogs. */
@media (max-width: 740px) {
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] {
    width: min(30rem, calc(100% - 1rem)); max-inline-size: calc(100% - 1rem); padding: .7rem .8rem;
  }
}
@container chronika-cookie (max-width: 41rem) {
  html:root body .analytics-cookie-notice .analytics-notice-layout {
    grid-template-columns: 2.75rem minmax(0,1fr);
    grid-template-areas: "art title" "art copy" "actions actions"; gap: .18rem .65rem;
  }
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
    display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); margin-block-start: .35rem;
  }
}
@container chronika-cookie (max-width: 18rem) {
  html:root body .analytics-cookie-notice .analytics-notice-layout {
    grid-template-columns: minmax(0,1fr) 1.8rem;
    grid-template-areas: "title art" "copy copy" "actions actions";
  }
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions {
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  }
  html:root body .analytics-cookie-notice[data-consent-mode="initial"] .analytics-consent-actions .analytics-choice {
    padding-inline: .4rem;
  }
}
@media (forced-colors: active) {
  html:root body :is(.analytics-consent,.analytics-settings) {
    --consent-paper: Canvas; --consent-tint: Canvas; --consent-ink: CanvasText;
    --consent-copy: CanvasText; --consent-link: LinkText; --consent-focus: Highlight;
    --consent-edge: ButtonText; --consent-base: ButtonText; --consent-on: ButtonText;
  }
  html:root body .analytics-consent .analytics-consent-actions [data-yandex-choice="accept"] {
    background: ButtonFace !important; color: ButtonText !important; border: 2px solid ButtonText !important;
  }
}

/* The store's featured bundle is an inverse surface in either site theme. */
#main .ch-pricing-main-bundle .ch-package-full {
  --bundle-paper: #f4f8ff;
  --bundle-ink: #123578;
  --bundle-caption: #edf3ff;
  --bundle-detail-edge: rgb(255 255 255 / 34%);
  align-items: stretch;
  gap: 20px;
}
html[data-theme="dark"] #main .ch-pricing-main-bundle .ch-package-full {
  --bundle-paper: #d5f2ff;
  --bundle-ink: #092f50;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-package-copy {
  padding-inline-end: 0;
}
#main .ch-pricing-main-bundle .ch-package-full h2 {
  padding-inline-end: clamp(88px, 10vw, 136px);
}
#main .ch-pricing-main-bundle .ch-package-full .ch-package-summary {
  max-width: 32ch;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-bundle-includes {
  margin-block: 16px 12px;
  gap: 8px;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-bundle-includes svg {
  color: #fff;
  background: transparent;
  padding: 2px;
  inline-size: 26px;
  block-size: 26px;
  flex: 0 0 26px;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-package-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  width: 100%;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-package-payment {
  color: var(--bundle-caption) !important;
  margin: 4px 0 0;
}
#main .ch-pricing-main-bundle .ch-package-full .ch-package-purchase > .ch-price {
  margin: 0;
}
#main .ch-pricing-main-bundle .ch-package-full .v3-bundle-saving {
  gap: 3px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  margin: 14px 0 0;
  background: rgb(10 40 120 / 28%);
}
#main .ch-pricing-main-bundle .ch-package-full .v3-bundle-saving strong {
  font-size: 1.125rem;
  line-height: 1.35;
}
#main .ch-pricing-main-bundle .ch-package-full .v3-bundle-saving span {
  color: var(--bundle-caption) !important;
  font-size: 1rem;
  line-height: 1.45;
}
#main .ch-pricing-main-bundle .ch-package-full [data-commercial-action][data-id="library-full"] {
  --ch-glass-on-color-fill: var(--bundle-paper);
  --ch-glass-on-color-ink: var(--bundle-ink);
  --ch-action-primary-fill: var(--bundle-paper);
  --ch-action-primary-ink: var(--bundle-ink);
  --ch-focus-ring: #fff;
  color: var(--bundle-ink) !important;
  background: var(--bundle-paper) !important;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: auto;
  margin: 14px 0 0;
  padding: 12px 16px;
  gap: 8px;
  font-size: 1.0625rem !important;
  line-height: 1.35 !important;
  text-align: center;
  white-space: normal;
}
#main .ch-pricing-main-bundle .ch-package-full > :is(.v3-bundle-comparison, .v3-bundle-sample) {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
}
#main .ch-pricing-main-bundle .ch-package-full > .v3-bundle-sample:where(.v3-bundle-comparison + *) {
  margin-top: -20px;
}
#main .ch-pricing-main-bundle .ch-package-full > details > summary {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  border-top: 1px solid var(--bundle-detail-edge);
  font-size: 1.0625rem;
  line-height: 1.4;
}
#main .ch-pricing-main-bundle .ch-package-full > details > summary::-webkit-details-marker {
  display: none;
}
#main .ch-pricing-main-bundle .ch-package-full > details > summary::after {
  content: "";
  display: block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
#main .ch-pricing-main-bundle .ch-package-full > details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
#main .ch-pricing-main-bundle .ch-package-full > details > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}
#main .ch-pricing-main-bundle .ch-package-full > details[open] > :last-child:not(summary) {
  margin-block: 6px 16px;
}
#main .ch-pricing-main-bundle .ch-package-full .v3-bundle-comparison > .ch-price {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ch-surface-elevated, #f4f8ff);
  color: var(--ch-text-primary, #192332);
}
@media (forced-colors: active) {
  #main .ch-pricing-main-bundle .ch-package-full {
    --bundle-paper: ButtonFace;
    --bundle-ink: ButtonText;
    --bundle-caption: CanvasText;
    --bundle-detail-edge: CanvasText;
  }
  #main .ch-pricing-main-bundle .ch-package-full .ch-bundle-includes svg {
    color: CanvasText;
  }
}

/* The purchase action sits on a saturated blue offer. These tokens also
   supply the optical renderer, which otherwise draws its own blue fill. */
.v209-full-offer .v209-full-action[data-offer-state="unowned"] {
  --ch-glass-on-color-fill: #f4f8ff;
  --ch-glass-on-color-ink: #123578;
  --ch-action-primary-fill: #f4f8ff;
  --ch-action-primary-ink: #123578;
  background: #f4f8ff;
  color: #123578;
  min-height: 52px !important;
  padding: 12px 16px !important;
}
@media (max-width: 540px) {
  .public-site .ch-atlas-footer {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center;
    gap: 8px 16px !important;
  }
  .public-site .ch-atlas-footer .ch-atlas-all {
    flex: 0 1 auto !important;
    max-inline-size: 100%;
    inline-size: auto !important;
  }
  .public-site .ch-atlas-footer .ch-atlas-credit { flex: 0 0 auto; }
}
@media (max-width: 540px) {
  .public-site .v209-practice-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
  }
  .public-site .v209-practice-heading > div { display: contents; }
  .public-site .v209-practice-heading h1 { grid-area: 1 / 1; margin: 0; }
  .public-site .v209-practice-heading > img {
    grid-area: 1 / 2;
    inline-size: 64px;
    block-size: auto;
  }
  .public-site .v209-practice-heading :is(p,.v209-practice-heading-actions) {
    grid-column: 1 / -1;
  }
  .public-site .v209-practice-heading-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* A number on an active control is content, even when its position is secondary. */
body .cg-game-page .cg-city-picker > button > span {
  opacity: 1;
  color: inherit;
}
.public-site .v209-practice-sheet button[data-cl-grade]:disabled {
  --ch-action-primary-fill: var(--ch-surface-elevated);
  --ch-action-primary-ink: var(--ch-text-secondary);
  --ch-glass-on-color-fill: var(--ch-surface-elevated);
  --ch-glass-on-color-ink: var(--ch-text-secondary);
  opacity: 1;
  color: var(--ch-text-secondary) !important;
  background: var(--ch-surface-elevated) !important;
  border: 1px solid var(--ch-border-default) !important;
  box-shadow: none !important;
}

/* WebKit otherwise includes the closed select's longest label in page overflow. */
.public-site #v209-topic {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  /* Clip only the moving page during its 8px entrance on narrow viewports. */
  html:has(main.public-main.ch-action-moving) {
    overflow-x: clip;
  }
}
