/* Only published preview IDs apply; no selector reaches the map or personal theme. */
html[data-theme="light"][data-ch-appearance-accent="blue"]{--preview-commercial-fill:#2455D6;--preview-commercial-hover:#1E48BD;--preview-commercial-ink:#FFFFFF}
html[data-theme="light"][data-ch-appearance-accent="rose"]{--preview-commercial-fill:#E9ADC6;--preview-commercial-hover:#F0BED3;--preview-commercial-ink:#422334}
html[data-theme="light"][data-ch-appearance-accent="petal"]{--preview-commercial-fill:#F5C3D8;--preview-commercial-hover:#F8D1E2;--preview-commercial-ink:#4B2440}
html[data-theme="light"][data-ch-appearance-accent="raspberry"]{--preview-commercial-fill:#C12F6B;--preview-commercial-hover:#AB235B;--preview-commercial-ink:#FFFFFF}
html[data-theme="light"][data-ch-appearance-accent="berry"]{--preview-commercial-fill:#A82E65;--preview-commercial-hover:#942354;--preview-commercial-ink:#FFF8FC}
html[data-theme="light"][data-ch-appearance-accent="coral"]{--preview-commercial-fill:#ED907C;--preview-commercial-hover:#F5A18F;--preview-commercial-ink:#3C211B}
html[data-theme="light"][data-ch-appearance-accent="terracotta"]{--preview-commercial-fill:#B45A3E;--preview-commercial-hover:#9C462E;--preview-commercial-ink:#FFFFFF}
html[data-theme="light"][data-ch-appearance-accent="amber"]{--preview-commercial-fill:#E4B858;--preview-commercial-hover:#EDC775;--preview-commercial-ink:#33270E}
html[data-theme="light"][data-ch-appearance-accent="sage"]{--preview-commercial-fill:#B4CEAC;--preview-commercial-hover:#C4DBBD;--preview-commercial-ink:#20331D}
html[data-theme="light"][data-ch-appearance-accent="teal"]{--preview-commercial-fill:#7BC9C4;--preview-commercial-hover:#99D9D3;--preview-commercial-ink:#123C39}
html[data-theme="light"][data-ch-appearance-accent="indigo"]{--preview-commercial-fill:#5F5BC8;--preview-commercial-hover:#4F49B4;--preview-commercial-ink:#FFFFFF}
html[data-theme="light"][data-ch-appearance-accent="violet"]{--preview-commercial-fill:#C4AFE9;--preview-commercial-hover:#D3C3F0;--preview-commercial-ink:#302044}
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) .chronika-learning .h130.h139.h145 .h130-actions a.hero-access{background-color:var(--preview-commercial-fill)!important;background-image:none!important;color:var(--preview-commercial-ink)!important;--ch-glass-reflection:rgb(255 255 255 / .15)}
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) .chronika-learning .h130.h139.h145 .h130-actions a.hero-access:is(:hover,:focus-visible){background-color:var(--preview-commercial-hover)!important}
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) .chronika-learning .h130.h139.h145 .h130-actions a.hero-access::after{opacity:.15!important}

html[data-ch-appearance-season="base"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(55 122 211 / .16)}
html[data-ch-appearance-season="newyear"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(62 155 196 / .16)}
html[data-ch-appearance-season="defender"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(69 104 143 / .16)}
html[data-ch-appearance-season="women"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(152 111 184 / .16)}
html[data-ch-appearance-season="mayday"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(83 131 109 / .16)}
html[data-ch-appearance-season="victory"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(168 120 80 / .16)}
html[data-ch-appearance-season="russia"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(77 127 193 / .16)}
html[data-ch-appearance-season="constitution"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(79 113 164 / .16)}
html[data-ch-appearance-season="revolution"] :is(body.public-site,html[data-client-surface="website"] body) #formats{--ch-scene-light:rgb(154 85 100 / .16)}
@media(forced-colors:active){html[data-ch-appearance-accent] .hero-access{forced-color-adjust:auto}}
@media (prefers-reduced-transparency:reduce),(forced-colors:active){
 html[data-ch-appearance-accent] .hero-access{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@supports not ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){
 html[data-theme="light"][data-ch-appearance-accent] .hero-access{background-color:var(--preview-commercial-fill)!important;background-image:none!important;color:var(--preview-commercial-ink)!important}
}

/* Original v14 seasonal vectors, static and confined behind the formats section. */
html[data-ch-appearance-season] :is(body.public-site,html[data-client-surface="website"] body) #formats{position:relative;isolation:isolate}
html[data-ch-appearance-season] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.32;background-repeat:no-repeat;background-position:right top;background-size:min(620px,100%) auto}
html[data-ch-appearance-season="base"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-base.svg")}
html[data-ch-appearance-season="newyear"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-newyear.svg")}
html[data-ch-appearance-season="defender"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-defender.svg")}
html[data-ch-appearance-season="women"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-women.svg")}
html[data-ch-appearance-season="mayday"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-mayday.svg")}
html[data-ch-appearance-season="victory"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-victory.svg")}
html[data-ch-appearance-season="russia"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-russia.svg")}
html[data-ch-appearance-season="constitution"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-constitution.svg")}
html[data-ch-appearance-season="revolution"] :is(body.public-site,html[data-client-surface="website"] body) #formats::after{background-image:url("/assets/appearance-v14/season-revolution.svg")}
@media(forced-colors:active),(prefers-reduced-transparency:reduce){html[data-ch-appearance-season] #formats::after{display:none!important}}

/* Explicit commercial roles only; ownership, blocked and free actions remain unmarked. */
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) [data-commercial-action]:not(:disabled):not([aria-disabled="true"]){background-color:var(--preview-commercial-fill)!important;background-image:none!important;color:var(--preview-commercial-ink)!important}
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) [data-commercial-action]:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){background-color:var(--preview-commercial-hover)!important}
html[data-theme="light"][data-ch-appearance-accent] :is(body.public-site,html[data-client-surface="website"] body) [data-commercial-action] svg{color:inherit!important;stroke:currentColor}
@media (prefers-reduced-transparency:reduce),(forced-colors:active){html[data-ch-appearance-accent] [data-commercial-action]{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;forced-color-adjust:auto}}

/* Global comfort settings only reduce effects; device accessibility can never be overridden. */
html[data-ch-appearance-motion="reduce"]{scroll-behavior:auto!important}
/* ::details-content is separate from the element and its ::before/::after. */
html:is([data-motion-static],[data-motion="off"],[data-cl-motion="paused"],[data-ch-appearance-motion="reduce"]) .chronika-ui details[data-react-disclosure]::details-content{transition:none!important;animation:none!important}
html[data-ch-appearance-motion="reduce"] *,html[data-ch-appearance-motion="reduce"] *::before,html[data-ch-appearance-motion="reduce"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html[data-ch-appearance-mode][data-theme][data-ch-appearance-transparency="solid"] body :is([data-ch-glisse],.public-header,.public-nav-more-content,.public-mobile-nav,.modal-content,.topic-card,.cl-material,.cl-price-bridge-offer,.cc139-ready-offer){background-color:var(--theme-surface,#fff)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html[data-ch-appearance-mode][data-theme][data-ch-appearance-transparency="solid"] body [data-ch-glisse-role="primary"]{background:var(--ch-action-primary-fill,#2455db)!important;color:var(--ch-action-primary-ink,#fff)!important}
html[data-ch-appearance-mode][data-theme][data-ch-appearance-transparency="solid"] body [data-ch-glisse-role="bundle"]{background:var(--ch-action-bundle-fill,#2455db)!important;color:var(--ch-action-bundle-ink,#fff)!important}
html[data-ch-appearance-mode][data-theme][data-ch-appearance-transparency="solid"] body :is(.ch-glisse-source,.ch-glisse-rim){display:none!important}
html[data-theme="light"][data-ch-appearance-accent][data-ch-appearance-transparency="solid"] [data-commercial-action]{background:var(--preview-commercial-fill)!important;color:var(--preview-commercial-ink)!important}
@media(forced-colors:active){html[data-ch-appearance-mode][data-theme][data-ch-appearance-transparency="solid"] body [data-ch-glisse]{background:ButtonFace!important;color:ButtonText!important;forced-color-adjust:auto!important}}

/* The navigation surface opens from the trigger. Optics use the original
   Glisse edge, with a quiet center behind labels. Device contrast wins. */
.public-nav-more-content, .public-nav[data-nav-motion-owner="runtime"] { transform-origin: top right; }
@media (forced-colors:none) and (prefers-contrast:no-preference) {
  html:not([data-ch-appearance-transparency="solid"]) header [data-ch-glisse-optic="nav"][data-ch-glisse-selected="false"] > .ch-glisse-rim {
    opacity:.44;
  }
  html:not([data-ch-appearance-transparency="solid"]) [data-ch-glisse-optic="accent"] > .ch-glisse-rim {
    opacity:.78;
  }
}
html[data-ch-appearance-transparency="solid"] .ch-glisse-plate { display:none!important; }

/* Selection is semantic immediately. Only the locally owned visual detail
   moves; existing text, focus, purchase and Glisse stay with their owners. */
@media (prefers-reduced-motion: no-preference) {
  html:not(:is([data-motion-static],[data-motion="off"],[data-cl-motion="paused"],[data-ch-appearance-motion="off"],[data-ch-appearance-motion="reduce"],[data-ch-appearance-motion="reduced"])) {
    & .v209-format-choices input[data-v209-format] + span {
      transition: translate 125ms cubic-bezier(.23,1,.32,1);
    }
    & .v209-format-choices:not(:disabled) input[data-v209-format]:checked:not(:disabled) + span {
      translate: 0 -1px;
    }
    & .v209-format-choices:has(:focus-visible) input[data-v209-format] + span {
      translate: none; transition: none;
    }
    & .chronika-ui .ch-workspace-check input[type="checkbox"] + svg {
      transition: opacity 125ms ease, scale 125ms cubic-bezier(.23,1,.32,1);
      scale: .94;
    }
    & .chronika-ui .ch-workspace-check input:checked + svg { scale: 1; }
    & .chronika-ui .ch-workspace-check input:focus-visible + svg { scale: 1; transition: none; }
    & :is(.public-nav-toggle,.website-nav-toggle,#account,.public-login):not([data-ch-glisse]) > :is(.account-avatar,svg) {
      transition: scale 150ms cubic-bezier(.23,1,.32,1);
    }
    & :is(.public-nav-toggle,.website-nav-toggle,#account,.public-login):not([data-ch-glisse],:disabled,[aria-disabled="true"],:focus-visible):active > :is(.account-avatar,svg) {
      scale: .98; transition-duration: 100ms;
    }
  }
}
@media (hover:hover) and (pointer:fine) and (forced-colors:none) {
  .v209-format-choices:not(:disabled) label:hover input:not(:checked,:disabled) + span {
    border-color: currentColor;
  }
}
/* The desktop website shell uses #desktop-nav, public HTML .public-nav. */
:is(#desktop-nav,.public-nav)[data-nav-motion-owner="runtime"] { transform-origin: top right; }
/* An owner can suspend movement at a section as well as at the document. */
:is([data-motion-static],[data-motion="off"],[data-cl-motion="paused"],[data-ch-appearance-motion="reduce"],[data-ch-appearance-motion="reduced"],[data-ch-appearance-motion="off"]) :is(.v209-format-choices input[data-v209-format] + span,.chronika-ui .ch-workspace-check input + svg) {
  transition: none !important; translate: none !important; scale: none !important;
}

/* R30 public QA. Append to app/web/appearance-public-v14.css. */

/* Terminal Glisse replaces the pale fallback fill with the bundle pigment.
   R30 writes the old fallback ink as inline !important `color`; paint the
   label with the same existing optic ink that paints the arrow. The frost,
   disabled, ownership-fallback and forced-colour paths keep their own pairs. */
@media not (forced-colors: active) {
  html[data-theme="light"] body.public-site #main-content
    .v209-full-offer .v209-full-action[data-commercial-action][data-ch-optic-end] {
    -webkit-text-fill-color: var(--glass-ink, #fff) !important;
  }
}

html[data-theme="light"] body.public-site.public-home #main-content
  .h145-purchase [data-hero-offer][data-ch-optic-end] {
  --ch-glass-focus: #2155c3;
}

/* Leave a dedicated lane for the arrow; the label and price may still wrap
   naturally at larger text sizes. Never narrow the actual link target. */
@media (max-width: 355px) {
  html[data-theme] body.public-site.public-home #main-content
    .h145-purchase [data-hero-offer][data-commercial-action] {
    padding-inline: 12px 46px !important;
    font-size: clamp(1rem, 5vw, 1.0625rem) !important;
    column-gap: .45em !important;
  }

  html[data-theme] body.public-site.public-home #main-content
    .h145-purchase [data-hero-offer][data-ch-optic-end] > svg,
  html[data-theme] body.public-site.public-home #main-content
    .h145-purchase [data-hero-offer][data-ch-optic-end]:not(:has(> svg))::after {
    right: 14px !important;
    top: calc(50% - 11px) !important;
    width: 22px !important;
    height: 22px !important;
  }
}

/* App-hosted home only; do not leak into the SSR home or the web cabinet. */
@media not (forced-colors: active) {
  html[data-theme="dark"]:not([data-client-surface="website"]) #main .cl-home-surface {
    --mini-home-panel: #172235;
    --mini-home-panel-edge: #3f5674;
    --mini-home-panel-ink: #edf4ff;
    --mini-home-panel-muted: #c3d2e9;
    --mini-home-panel-link: #a8c5ff;
  }

  html[data-theme="dark"]:not([data-client-surface="website"]) #main .cl-home-surface
    :is(.h146-map-study, .ht144-panel, .ht144 > summary) {
    background: var(--mini-home-panel) !important;
    border-color: var(--mini-home-panel-edge) !important;
    color: var(--mini-home-panel-ink);
  }

  html[data-theme="dark"]:not([data-client-surface="website"]) #main .cl-home-surface
    :is(.h146-map-study p, .ht144-panel .ht144-teaser, .ht144-panel .ht144-count, .ht144-panel .ht144-empty) {
    color: var(--mini-home-panel-muted);
  }

  html[data-theme="dark"]:not([data-client-surface="website"]) #main .cl-home-surface
    :is(.ht144 > summary, .ht144 > summary strong, .ht144-panel .ht144-footer a) {
    color: var(--mini-home-panel-link) !important;
  }

  html[data-theme="dark"]:not([data-client-surface="website"]) #main .cl-home-surface
    .ht144 > summary .ht144-disclosure {
    color: var(--mini-home-panel-link);
  }
}

@media (max-width: 480px) {
  html:not([data-client-surface="website"]) #main .cl-home-surface .h130-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  html:not([data-client-surface="website"]) #main .cl-home-surface
    .h130-actions > .hero-offer-lane {
    min-inline-size: 0;
    inline-size: 100%;
  }

  html:not([data-client-surface="website"]) #main .cl-home-surface
    .h130-actions :is(a.h130-secondary, a.h146-one-topic) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .45em;
    box-sizing: border-box;
    min-inline-size: 0;
    inline-size: 100%;
    min-block-size: 48px;
    padding: 8px 14px;
    text-align: center;
    white-space: normal;
  }

  /* The mini map uses the same label order as the R30 SVG: Baltic, Black Sea.
     Translate just the western label in SVG units; keep the atlas mask. */
  html:not([data-client-surface="website"]) #main .cl-home-surface
    .h140-route-map .h140-water-names > text:first-of-type {
    transform: translateX(42px);
  }
}

@media (max-width: 355px) {
  html:not([data-client-surface="website"]) #main .cl-home-surface
    .h140-route-map .h140-water-names > text:first-of-type {
    transform-box: fill-box;
    transform-origin: center;
    transform: translateX(42px) scale(.82);
  }

  html:not([data-client-surface="website"]) #main .cl-home-surface
    .h140-route-map .h140-city[data-map-city="2"] > text {
    transform-box: fill-box;
    transform-origin: left center;
    transform: scale(.85);
  }
}

/* Keep native select behavior, with a consistent tap target in WebKit.
   The two currentColor strokes follow both themes and disabled text. */
html body.public-site #main-content .v209-pricing-page select {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  min-block-size: 48px !important;
  padding: 10px 36px 10px 14px !important;
  background-image:
    linear-gradient(45deg, transparent 46%, currentColor 48% 62%, transparent 64%),
    linear-gradient(135deg, transparent 36%, currentColor 38% 52%, transparent 54%);
  background-size: 6px 6px, 6px 6px;
  background-position: right 20px center, right 14px center;
  background-repeat: no-repeat;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (forced-colors: active) {
  html body.public-site #main-content .v209-pricing-page select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-image: none !important;
  }
}

html body.public-site #main-content .ch-public-pricing-selected {
  display: none;
}

@media (max-width: 760px) {
  html body.public-site #main-content .ch-public-pricing-selected:not([hidden]) {
    display: block;
    color: var(--v209-muted, var(--ch-text-primary, #192332));
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

/* Preserve the writing measure and keep the illustration out of the
   heading's column on phones; avoid a full-height art row on tablets. */
@media (max-width: 800px) {
  html body.public-site #main-content .v209-practice-heading {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 16vw, 120px);
    gap: 14px 20px;
  }

  html body.public-site #main-content .v209-practice-heading h1 {
    grid-area: 1 / 1 / 2 / 2;
    text-wrap: balance;
  }

  html body.public-site #main-content .v209-practice-heading > img {
    grid-area: 1 / 2 / 4 / 3;
    inline-size: 100%;
    block-size: auto;
  }

  html body.public-site #main-content .v209-practice-heading p {
    grid-area: 2 / 1 / 3 / 2;
  }

  html body.public-site #main-content .v209-practice-heading .v209-practice-heading-actions {
    grid-area: 3 / 1 / 4 / 2;
  }
}

@media (max-width: 540px) {
  html body.public-site #main-content .v209-practice-heading {
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 12px;
  }

  html body.public-site #main-content .v209-practice-heading h1 {
    grid-area: 1 / 1 / 2 / -1;
    font-size: clamp(1.75rem, 7.7vw, 2.125rem);
  }

  html body.public-site #main-content .v209-practice-heading p {
    grid-area: 2 / 1 / 3 / -1;
  }

  html body.public-site #main-content .v209-practice-heading-actions {
    grid-area: 3 / 1 / 4 / 2;
  }

  html body.public-site #main-content .v209-practice-heading > img {
    grid-area: 3 / 2 / 4 / 3;
    align-self: start;
  }
}

@media (max-width: 355px) {
  html body.public-site #main-content .v209-practice-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  html body.public-site #main-content .v209-practice-heading > img {
    display: none;
  }
}

html body.public-site #main-content .v209-practice-sheet > #trial {
  /* .public-header already reserves its height through root scroll-padding. */
  scroll-margin-block-start: 16px;
}


/* Private workspaces · R31. The signed-in attribute and mounted workspace
   distinguish these components from public catalog, guest and game surfaces. */
html[data-client-signed-in="true"][data-theme="dark"] #main .ch-account-v80.ch-library .ch-badge-restricted {
  background: #25364e;
  border-color: #7289a8;
  color: #e4eeff !important; /* R30's dark global ink is itself important. */
}

/* This is a narrow secondary column even on a wide desktop. Keep each saved
   count on the same line as its label; a long label can use another line. */
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-auto-progress-metrics {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-block: .375rem .75rem;
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-auto-progress-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem;
  padding-block: .45rem;
  border-bottom: 1px solid var(--desk-line, #8b9cb3);
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-auto-progress-metrics dt {
  overflow-wrap: anywhere;
  font-size: 1rem;
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-auto-progress-metrics dd {
  order: 0;
  font-size: 1.125rem;
  white-space: nowrap;
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-auto-progress-review {
  font-size: 1rem;
  line-height: 1.5;
}

/* One consistent, native disclosure. The arrow follows the actual open
   state, including rapid reversal; content remains controlled by R30. */
html[data-client-signed-in="true"] #main :is(.ch-cabinet-home .ch-cabinet-progress-details, .ch-v209-studio .appearance-preview) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-block-size: 44px;
  list-style: none;
  cursor: pointer;
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-cabinet-progress-details {
  display: block;
  margin-inline-end: 0;
}
html[data-client-signed-in="true"] #main .ch-cabinet-home .ch-cabinet-progress-details > summary {
  padding-inline: .5rem;
}
html[data-client-signed-in="true"] #main :is(.ch-cabinet-home .ch-cabinet-progress-details, .ch-v209-studio .appearance-preview) > summary::-webkit-details-marker {
  display: none;
}
html[data-client-signed-in="true"] #main :is(.ch-cabinet-home .ch-cabinet-progress-details, .ch-v209-studio .appearance-preview) > summary::after {
  content: "";
  flex: none;
  inline-size: .5rem;
  block-size: .5rem;
  margin-inline-end: .375rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
html[data-client-signed-in="true"] #main :is(.ch-cabinet-home .ch-cabinet-progress-details, .ch-v209-studio .appearance-preview)[open] > summary::after {
  transform: rotate(225deg);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-client-signed-in="true"] #main :is(.ch-cabinet-home .ch-cabinet-progress-details, .ch-v209-studio .appearance-preview) > summary:not(:where(:is([data-motion-static], [data-motion="off"], [data-cl-motion="paused"], [data-ch-appearance-motion="reduce"], [data-ch-appearance-motion="reduced"], [data-ch-appearance-motion="off"]) *))::after {
    transition: transform 140ms ease-out;
  }
}
html[data-client-signed-in="true"] #main :is(.ch-cabinet-home, .ch-account-v80.ch-library, .ch-v209-studio) :is(summary, [role="tab"]):focus-visible {
  outline: 3px solid var(--desk-link, #2454b8);
  outline-offset: -3px;
  border-radius: 6px;
}
html[data-client-signed-in="true"][data-theme="dark"] #main :is(.ch-cabinet-home, .ch-account-v80.ch-library, .ch-v209-studio) :is(summary, [role="tab"]):focus-visible {
  outline-color: #aaccff;
}
@media (forced-colors: active) {
  html[data-client-signed-in="true"][data-theme] #main :is(.ch-cabinet-home, .ch-account-v80.ch-library, .ch-v209-studio) :is(summary, [role="tab"]):focus-visible { outline-color: Highlight; }
}

/* An overview is easier to scan if the three values share one boundary. */
html[data-client-signed-in="true"] #view-owner-slot #admin-content > .admin-metrics:not(.admin-student-metrics) {
  gap: 0;
  border-block: 1px solid var(--line, #a6b6ca);
}
html[data-client-signed-in="true"] #view-owner-slot #admin-content > .admin-metrics:not(.admin-student-metrics) > article {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
  padding: .875rem .5rem;
}

@media (max-width: 600px) {
  html[data-client-signed-in="true"] #main .ch-account-v80.ch-library .ch-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    inline-size: 100%;
    block-size: auto;
  }
  html[data-client-signed-in="true"] #main .ch-account-v80.ch-library .ch-tabs-list > [role="tab"] {
    flex: 1 0 auto;
    inline-size: auto;
    max-inline-size: 100%;
    min-block-size: 44px;
    padding-inline: .5rem;
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html[data-client-signed-in="true"][data-client-surface="website"] #main .ch-account-v80.ch-library .ch-tabs-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-client-signed-in="true"] #view-owner-slot #admin-content > .admin-metrics:not(.admin-student-metrics) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-client-signed-in="true"] #view-owner-slot #admin-content > .admin-metrics:not(.admin-student-metrics) > article {
    display: grid;
    grid-template-columns: minmax(4.5rem, 24%) minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
    padding: .625rem .25rem;
  }
  html[data-client-signed-in="true"] #view-owner-slot .admin-metrics:not(.admin-student-metrics) > article strong {
    font-size: 1.375rem;
    overflow-wrap: anywhere;
  }
  html[data-client-signed-in="true"] #view-owner-slot .admin-metrics:not(.admin-student-metrics) > article span {
    margin: 0;
    font-size: 1rem;
  }
  html[data-client-signed-in="true"] #view-owner-slot .owner-refresh-bar {
    flex-direction: column;
    gap: .375rem;
    padding-block: 0;
    margin-block: .75rem 1rem;
  }
  html[data-client-signed-in="true"] #view-owner-slot #owner-refresh-status {
    padding: 0;
    font-size: .9375rem;
  }
}
@media (max-width: 360px) {
  html[data-client-signed-in="true"][data-telegram-app] .app-shell:has(#main .ch-telegram-account-workspace) ~ #mobile-nav .nav-link {
    padding-inline: 0;
  }
  html[data-client-signed-in="true"][data-telegram-app] .app-shell:has(#main .ch-telegram-account-workspace) ~ #mobile-nav .nav-link > span:not([aria-hidden]) {
    font-size: .75rem;
  }
}

/* The visible glyph is owned by navigation-motion-v14.js; ordinary buttons,
   checkout labels and no-JS navigation retain their native presentation. */
html :is(.public-header,.topbar,#app) button:is(.public-nav-toggle,.website-nav-toggle)[data-ch-menu-icon] {
  position:relative;
  -webkit-tap-highlight-color:transparent;
}
html :is(.public-header,.topbar,#app) button:is(.public-nav-toggle,.website-nav-toggle)[data-ch-menu-icon]::before,
html :is(.public-header,.topbar,#app) button:is(.public-nav-toggle,.website-nav-toggle)[data-ch-menu-icon]::after {
  content:none!important;
}
html button[data-ch-menu-icon] > .ch-menu-glyph {
  display:block!important; width:20px;height:16px;position:absolute;
  left:calc(50% - 10px);top:calc(50% - 8px);pointer-events:none;z-index:3;
}
html button[data-ch-menu-icon] > .ch-menu-glyph > i {
  position:absolute;top:7px;left:1px;width:18px;height:2px;margin:0;
  background:currentColor;border-radius:2px;pointer-events:none;transform-origin:center;
}
html button[data-ch-menu-icon] .ch-menu-glyph > i:first-child {transform:translateY(-5px)}
html button[data-ch-menu-icon] .ch-menu-glyph > i:last-child {transform:translateY(5px)}
html button[data-ch-menu-icon][aria-expanded="true"] .ch-menu-glyph > i:first-child {transform:rotate(45deg)}
html button[data-ch-menu-icon][aria-expanded="true"] .ch-menu-glyph > i:nth-child(2) {transform:scaleX(.35);opacity:0}
html button[data-ch-menu-icon][aria-expanded="true"] .ch-menu-glyph > i:last-child {transform:rotate(-45deg)}
@media(prefers-reduced-motion:no-preference){
  html:not(:is([data-motion-static],[data-motion="off"],[data-cl-motion="paused"],[data-ch-appearance-motion="reduce"],[data-ch-appearance-motion="reduced"],[data-ch-appearance-motion="off"]))
  button[data-ch-menu-icon]:not(:focus-visible) .ch-menu-glyph > i {
    transition:transform 165ms cubic-bezier(.18,.8,.22,1),opacity 105ms ease-out;
  }
}
@media(forced-colors:active){
  html button[data-ch-menu-icon] > .ch-menu-glyph > i {background:ButtonText;forced-color-adjust:none}
}

/* R32 mobile overflow correction. Keep native controls and horizontal
   discovery content inside the public viewport in WebKit. */
@media (max-width: 640px) {
  html body.public-site #main-content {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-x: clip;
  }

  html body.public-site #main-content .ht144,
  html body.public-site #main-content .ht144-panel,
  html body.public-site #main-content .ht144-body,
  html body.public-site #main-content .ht144-results,
  html body.public-site #main-content .ht144-offers {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  html body.public-site #main-content .ht144-results {
    grid-auto-columns: minmax(0, calc(100% - 6px));
    overflow-x: clip;
  }

  html body.public-site #main-content
    :is(.v209-pricing-page, .v209-pricing-page > *,
        .v209-topic-form, .v209-topic-form > label,
        .v209-section-head, .v209-section-head > label,
        .v209-topic-comparison, .v209-topic-comparison-body,
        .v209-compare-form) {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  html body.public-site #main-content .v209-pricing-page select {
    display: block !important;
    box-sizing: border-box !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }

  html body.public-site #main-content
    .fu209-ready,
  html body.public-site #main-content
    .fu209-ready > div,
  html body.public-site #main-content
    .fu209-ready-link {
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  html body.public-site #main-content .fu209-ready-link {
    display: inline-flex;
    box-sizing: border-box;
    inline-size: 100%;
    overflow-wrap: anywhere;
  }
}
