:root:not(:lang(zh)) .brand-lockup {min-width:0;letter-spacing:normal}
:root:not(:lang(zh)) .brand-lockup strong {letter-spacing:0;line-height:1.15}
:root:not(:lang(zh)) .brand-lockup small {letter-spacing:0;white-space:normal}
:root:not(:lang(zh)) .mode {white-space:normal;line-height:1.2}
@media(max-width:600px) {
  .page-heading .atlas-tools {display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center;gap:5px 8px}
  .atlas-tools .map-counts {margin-inline-end:auto}
  :root:not(:lang(zh)) .brand-lockup strong {font-size:14px}
  :root:not(:lang(zh)) .brand-lockup small {font-size:9px}
}

:root:not(:lang(zh)) .map-surface .station[data-depth="0"] .station-title {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  white-space:normal; overflow:hidden; text-wrap:balance; line-height:1.12;
}
.course-locale-status {margin:.5rem auto;padding:.5rem 1rem;max-width:80rem;color:var(--ink);font-size:.9rem}
.course-locale-status button {margin-inline-start:.6rem;color:inherit;text-decoration:underline;cursor:pointer}

/* Keep global actions available while the learning mode changes. */
.topbar .topbar-inner:has(#focus-mini, > .site-tools) {
  grid-template-columns:auto minmax(0,1fr) auto auto auto auto;
  grid-template-areas:"brand modes timer progress switch tools";
  column-gap:clamp(8px,1.1vw,18px);
}
.topbar-inner > .brand {grid-area:brand}
.topbar-inner > .modes {grid-area:modes}
.topbar-inner > #focus-mini {grid-area:timer}
.topbar-inner > .completion {grid-area:progress}
.topbar-inner > .theme-switch {grid-area:switch}
.topbar-inner > .site-tools {grid-area:tools}
@media(max-width:1180px) {
  .topbar .topbar-inner:has(#focus-mini, > .site-tools) {
    grid-template-columns:minmax(0,1fr) auto auto auto auto;
    grid-template-areas:"brand timer progress switch tools" "modes modes modes modes modes";
    padding-top:5px;
  }
  .topbar-inner:has(#focus-mini, > .site-tools) .modes {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
  .topbar-inner:has(#focus-mini, > .site-tools) .mode {min-height:39px}
}
@media(max-width:650px) {
  .topbar .topbar-inner:has(#focus-mini, > .site-tools) {
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"brand brand tools" "timer progress switch" "modes modes modes";
    gap:2px 10px;
  }
  .topbar-inner:has(#focus-mini, > .site-tools) #focus-mini {justify-self:start}
  .topbar-inner:has(#focus-mini, > .site-tools) .completion {width:100%;min-width:0;max-width:140px;justify-self:center}
  .topbar-inner:has(#focus-mini, > .site-tools) .completion-label {gap:2px;font-size:10px;flex-wrap:wrap}
  .topbar-inner:has(#focus-mini, > .site-tools) .mode {min-width:0;min-height:40px;overflow-wrap:anywhere;padding:3px}
  .topbar-inner:has(#focus-mini, > .site-tools) .brand {min-width:0}
  .topbar-inner:has(#focus-mini, > .site-tools) .brand-lockup {white-space:normal}
  .topbar-inner:has(#focus-mini, > .site-tools) .theme-switch {justify-self:end}
}
